:root{
  --bg-color: #faf6f0; /* Cream background */
  --red-accent: #a3001e; /* Stamp red */
  --text-dark: #2e2528; /* Pencil charcoal text */
  --muted-brown: #8a7377; /* Muted brown */
  --pink-blush: #ffd3db; /* Blushing pink */
  --rose: #ff5c8a;
  --green: #7da57f;
}

*{margin:0;padding:0;box-sizing:border-box;}

html,body{
  height:100%;
  /* Red and white gingham pattern background */
  background-color: #ffffff;
  background-image: 
    linear-gradient(90deg, rgba(163, 0, 30, 0.08) 50%, transparent 50%),
    linear-gradient(rgba(163, 0, 30, 0.08) 50%, transparent 50%);
  background-size: 32px 32px;
  color: var(--text-dark);
  font-family: 'Quicksand', sans-serif;
  overflow: hidden;
}

.typewriter {
  font-family: 'Special Elite', 'Courier New', monospace;
}

.font-stamp {
  font-family: 'Special Elite', 'Courier New', monospace;
  text-transform: uppercase;
  color: var(--red-accent);
}

.script{
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
}

#bg-flowers{
  position:fixed; inset:0; pointer-events:none; z-index:0;
  overflow:hidden;
}

/* Falling stars & hearts & petals for scrapbook style */
.petal {
  position: absolute;
  top: -40px;
  pointer-events: none;
  z-index: 0;
  animation: fall linear infinite, sway ease-in-out infinite alternate;
  user-select: none;
}

@keyframes fall {
  0% {
    transform: translateY(-40px) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes sway {
  0% {
    margin-left: -25px;
  }
  100% {
    margin-left: 25px;
  }
}

/* VIEWPORT SCRAPBOOK DECORATIONS */
.scrapbook-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Wavy border frame lines */
.wavy-frame-left, .wavy-frame-right {
  position: fixed;
  top: 15px; bottom: 15px;
  width: 40px;
  pointer-events: none;
  border-left: 3px solid var(--red-accent);
  border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%;
  opacity: 0.8;
}
.wavy-frame-left { left: 15px; }
.wavy-frame-right { right: 15px; border-left: none; border-right: 3px solid var(--red-accent); }

/* Bunting flags */
.bunting-banner {
  position: fixed;
  top: 5px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.left-bunting { left: 45px; }
.right-bunting { right: 45px; }
.bunting-flag {
  width: 24px; height: 32px;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.bunting-flag.red { background-color: var(--red-accent); }
.bunting-flag.gold { background-color: #dfb23f; color: var(--text-dark); }

/* Viewport Corner stickers */
.corner-sticker {
  position: fixed;
  pointer-events: auto;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.corner-sticker:hover {
  transform: scale(1.2) rotate(6deg);
}
.star-top-left {
  top: 30px; left: 30px;
  font-size: 32px;
  color: var(--red-accent);
  transform: rotate(-15deg);
  text-shadow: 0 4px 8px rgba(163,0,30,0.25);
}
.camera-bottom-left {
  bottom: 30px; left: 30px;
  font-size: 42px;
  transform: rotate(8deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.glass-top-right {
  top: 30px; right: 30px;
  font-size: 38px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.star-bottom-right {
  bottom: 30px; right: 30px;
  font-size: 30px;
  color: var(--red-accent);
  transform: rotate(15deg);
  text-shadow: 0 4px 8px rgba(163,0,30,0.25);
}
.star2-bottom-right {
  bottom: 40px; right: 75px;
  font-size: 18px;
  color: var(--red-accent);
  transform: rotate(-10deg);
}
.discoball-bottom-right {
  bottom: 20px;
  right: 120px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #fdfdfd, #9c9c9c 60%, #444);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border: 1.5px solid #ccc;
  position: relative;
  overflow: hidden;
  animation: rotate-disco 5s ease-in-out infinite alternate;
}
.discoball-bottom-right .disco-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 6px 6px;
}
.discoball-bottom-right .disco-shine {
  position: absolute;
  top: -20px; left: -20px;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
}

.screen{
  min-height:100vh;
  width:100%;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:30px 15px;
  position:relative;
  z-index:1;
  animation: slideUpIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow-y: auto;
  max-height: 100vh;
}
.screen.active{display:flex;}

@keyframes slideUpIn {
  from {
    transform: translateY(100vh);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Vintage Grid Notebook Scrapbook Page */
.scrapbook-page {
  background-color: var(--bg-color);
  /* Cream paper subtle red grid lines */
  background-image: 
    linear-gradient(rgba(163, 0, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 0, 30, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 4px solid var(--red-accent);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 30px 22px;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* Simulating stitching thread line */
  outline: 2px dashed rgba(163, 0, 30, 0.25);
  outline-offset: -8px;
}

/* Washi Tape sticker styling */
.scrapbook-page::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 30%;
  width: 60px;
  height: 20px;
  background: rgba(223, 178, 63, 0.45); /* Gold washi */
  transform: rotate(-4deg);
  border-left: 2px dashed rgba(255,255,255,0.4);
  border-right: 2px dashed rgba(255,255,255,0.4);
}

.scrapbook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px dashed rgba(163, 0, 30, 0.15);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.stamp-text {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--red-accent);
  letter-spacing: 1px;
  border: 2px solid var(--red-accent);
  padding: 2px 6px;
  border-radius: 3px;
  transform: rotate(-3deg);
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
}

.retro-star {
  color: var(--red-accent);
  font-size: 18px;
  animation: spin-slow 15s linear infinite;
  display: inline-block;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.eyebrow{
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: bold;
  color: var(--red-accent);
  margin-bottom: 12px;
}

.section-title{
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-dark);
}
.section-title.script{font-size:36px; color: var(--red-accent);}

.mascot{
  font-size: 38px; 
  margin-bottom: 15px; 
  animation: bob 3.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
@keyframes bob{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }

.glow-text{
  font-size: 24px; font-weight: bold; margin-bottom: 8px;
  color: var(--red-accent);
}

.hint{color:var(--muted-brown); font-size:14px; margin-bottom:24px;}
.hint-tag{color:var(--red-accent); font-weight: bold;}

.pin-dots{display:flex; gap:16px; margin-bottom:24px;}
.dot{
  width:14px; height:14px; border-radius:50%;
  border:2px solid var(--red-accent);
  transition: all .2s ease;
  background: transparent;
}
.dot.filled{ background: var(--red-accent); box-shadow: 0 0 8px rgba(163, 0, 30, 0.4); }
.dot.shake{ animation: shake .4s ease; border-color:#ff4d4d; }
@keyframes shake{
  0%,100%{transform:translateX(0);}
  25%{transform:translateX(-6px);}
  75%{transform:translateX(6px);}
}

.numpad{
  display:grid;
  grid-template-columns:repeat(3, 68px);
  gap:12px;
}
.numpad button{
  width:68px; height:68px;
  border-radius:50%;
  border:1px solid rgba(163, 0, 30, 0.2);
  background: #ffffff;
  color:var(--text-dark);
  font-size:20px;
  cursor:pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all .15s ease;
  font-weight: bold;
}
.numpad button:hover{ 
  background: rgba(163, 0, 30, 0.05); 
  border-color: var(--red-accent); 
  transform: scale(1.05); 
}
.numpad button.ghost{ visibility:hidden; cursor:default; }
#backspace{font-size:18px;}

.error-msg{
  color:#ff4d4d; font-size:13px; margin-top:20px; opacity:0; transition:opacity .3s ease;
  font-weight: bold;
}
.error-msg.show{opacity:1;}

.big-name{
  font-size: 30px; line-height: 1.3; font-weight: bold; margin-bottom:16px;
  color: var(--text-dark);
}
.name-gradient{
  font-family: 'Dancing Script', cursive;
  font-size: 52px;
  color: var(--red-accent);
}
.sub{color:var(--muted-brown); font-size:14px; max-width:320px; margin-bottom:24px; line-height: 1.5;}

.btn-continue{
  padding:12px 30px;
  border-radius:6px;
  border:2px solid var(--red-accent);
  background: var(--red-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(163, 0, 30, 0.15);
  transition: all 0.2s ease;
  margin-top: 10px;
  font-family: 'Special Elite', monospace;
  text-transform: uppercase;
}
.btn-continue:hover{ 
  transform: translateY(-2px); 
  background: #ffffff;
  color: var(--red-accent);
  box-shadow: 0 6px 15px rgba(163, 0, 30, 0.25);
}
.hidden{display:none !important;}

/* camera / photos scrapbook page */
.camera-click{
  font-size: 50px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform .2s ease;
  filter: drop-shadow(0 4px 8px rgba(163, 0, 30, 0.2));
}
.camera-click:active{ transform:scale(0.85) rotate(-5deg); }
.photo-counter{color: var(--red-accent); font-size:13px; margin-bottom:20px; font-weight: bold;}

.polaroid-row{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-bottom:20px; width: 100%; }
.polaroid{
  background: #ffffff;
  padding: 10px 10px 18px 10px;
  border-radius: 2px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transform: rotate(-3deg);
  transition: all .5s ease;
  width: 130px;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
}
.polaroid:nth-child(2){ transform:rotate(4deg); }
.polaroid.hidden{ opacity:0; transform:translateY(20px) rotate(0deg) scale(0.9); pointer-events:none; height:0; padding:0; margin:0; overflow:hidden; border:none; }

.polaroid::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 45px;
  height: 14px;
  background: rgba(163, 0, 30, 0.15); /* Red transparent washi sticker */
  border-left: 2px dashed rgba(255,255,255,0.4);
  border-right: 2px dashed rgba(255,255,255,0.4);
}

.polaroid p{ color: var(--text-dark); font-size:11px; margin-top:8px; text-align:center; font-style:italic; font-weight: bold; }
.polaroid-img{
  width:100%; height:110px; border-radius:2px;
  background-size:cover; background-position:center;
}
.ph1{ background-image: url('../assets/photos/p1.svg'); }
.ph2{ background-image: url('../assets/photos/p2.svg'); }
.ph3{ background-image: url('../assets/photos/ph3.svg'); }
.ph4{ background-image: url('../assets/photos/ph4.svg'); }

/* cake screen interactive cut */
.cake-wrap{ margin-bottom:20px; display: flex; justify-content: center; }
.cake{
  position:relative;
  width: 180px; height: 130px;
  display:flex;
  cursor:grab;
  user-select:none;
  touch-action:none;
}
.cake-half{ width:50%; position:relative; transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cake-half.left{ transform-origin:left center; }
.cake-half.right{ transform-origin:right center; }
.cake.cut .cake-half.left{ transform:translateX(-18px) rotate(-3deg); }
.cake.cut .cake-half.right{ transform:translateX(18px) rotate(3deg); }
.layer{ width:100%; }

/* Red Velvet / White Cream Cake Topping */
.layer.top{ height:30%; background:#ffffff; border-radius:10px 10px 0 0; border-bottom: 2px dashed var(--red-accent); }
.layer.mid{ height:35%; background:#d63031; border-bottom: 2px dashed #ffffff; }
.layer.bottom{ height:35%; background: var(--red-accent); border-radius:0 0 10px 10px; }

.candles{ position:absolute; top:-24px; left:50%; transform:translateX(-50%); font-size:16px; }
.cake-result{ color:var(--red-accent); font-weight: bold; margin-bottom:15px; font-size:14px; }

/* SCREEN 3: SCRAPBOOK LAYOUT FROM USER IMAGE */
.letter-scrapbook {
  max-width: 760px; /* Wider to show side-by-side elements like reference photo */
  width: 100%;
}

.scrapbook-row {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Stacks on small screens */
}

/* Red-bordered item card panels */
.scrapbook-item-card {
  border-radius: 8px;
  padding: 20px 15px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vinyl Card left */
.vinyl-card {
  background-color: var(--red-accent);
  color: #ffffff;
  border: 3px solid #5c0010;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.vinyl-record-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
}

.vinyl-record {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #2c2c2c 40%, #111 60%, #000);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #1a1a1a;
}
.vinyl-groove {
  position: absolute;
  inset: 10px;
  border: 1px double rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.vinyl-groove::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.vinyl-label {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}
.vinyl-heart {
  font-size: 14px;
  color: var(--red-accent);
  animation: beat 1.2s infinite ease-in-out;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Record spin animation */
.vinyl-record.spinning {
  animation: spin 3.5s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Tonearm needle */
.tonearm {
  width: 25px;
  height: 50px;
  position: absolute;
  top: -5px;
  right: -5px;
  background: none;
  border-right: 4px solid #888;
  border-top: 4px solid #888;
  border-top-right-radius: 6px;
  transform-origin: top right;
  transform: rotate(0deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 5;
}
.tonearm::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -8px;
  width: 12px;
  height: 6px;
  background: #bbb;
  border-radius: 2px;
}
.tonearm.active {
  transform: rotate(26deg);
}

.vinyl-quote {
  font-size: 13px;
  line-height: 1.6;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-top: 5px;
}
.highlight-you {
  font-family: 'Dancing Script', cursive;
  font-size: 26px;
  color: #ffccd5;
  display: block;
}

/* Spotify Widget */
.spotify-widget {
  background: #8a0014;
  border: 1px solid #57000d;
  border-radius: 24px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.spotify-cover {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #ffa4b2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.spotify-details {
  flex: 1;
  text-align: left;
}
.spotify-title {
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}
.spotify-artist {
  font-size: 9px;
  color: #ffb8c2;
  display: block;
}
.spotify-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #8a0014;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.spotify-play-btn:hover {
  transform: scale(1.1);
}

/* Flork Card Right */
.flork-card {
  background-color: #ffffff;
  border: 4px double var(--red-accent);
  color: var(--text-dark);
  justify-content: center;
}

.flork-sketch {
  width: 110px;
  height: 100px;
  margin-top: 10px;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}
.flork-svg {
  width: 100%;
  height: 100%;
}

.flork-text-so {
  font-size: 14px;
  font-style: italic;
  font-weight: bold;
  color: var(--red-accent);
  margin-bottom: 2px;
}
.flork-much {
  font-size: 24px;
  font-weight: bold;
  color: var(--red-accent);
  margin-bottom: 15px;
}
.flork-sticker-seal {
  font-size: 24px;
  margin-top: 10px;
  letter-spacing: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* SCREEN 7: LETTER STATIONERY STYLING */
.letter-stationery-page {
  max-width: 580px;
}
.stationery-letter {
  background: #fffdf9; /* Stationery white/cream paper */
  border: 1px solid rgba(163,0,30,0.15);
  border-radius: 8px;
  padding: 30px 24px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(74,46,53,0.06);
  position: relative;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Waxy letter seal sticker */
.letter-seal {
  position: absolute;
  top: -16px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--red-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(163, 0, 30, 0.25);
  border: 2px solid #ffffff;
  transform: rotate(8deg);
}

.stationery-letter .letter-greeting {
  font-size: 18px;
  color: var(--red-accent);
  font-weight: bold;
  margin-bottom: 12px;
}
.stationery-letter .letter-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.stationery-letter .letter-sign {
  font-size: 20px;
  color: var(--red-accent);
  text-align: right;
  line-height: 1.3;
}

/* Scrapbook Footer & Disco Ball */
.scrapbook-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.disco-ball-wrap {
  margin-bottom: 15px;
}
.disco-ball {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 30% 30%, #fdfdfd, #9c9c9c 60%, #444);
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  animation: rotate-disco 5s ease-in-out infinite alternate;
  border: 1.5px solid #bbb;
}
.disco-shine {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
}
@keyframes rotate-disco {
  0% { transform: rotate(-20deg) translateY(0); }
  100% { transform: rotate(20deg) translateY(-3px); }
}

.music-btn{
  position:fixed; bottom:20px; right:20px;
  width:46px; height:46px; border-radius:50%;
  border:2px solid var(--red-accent);
  background:#ffffff;
  color:var(--red-accent); font-size:18px; cursor:pointer;
  z-index:10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width:480px) {
  .scrapbook-page, .letter-stationery-page {
    padding: 20px 14px;
    max-width: 92% !important;
  }
  .scrapbook-item-card {
    min-width: 100%;
  }
  .discoball-bottom-right {
    display: none; /* Hide bottom stickers on tiny mobile viewports to prevent overlap */
  }
  .corner-sticker {
    display: none;
  }
  .bunting-banner {
    display: none;
  }
}

/* Collage & Big Age Badge style rules */
.collage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.collage-word {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.cutout-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 44px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
  user-select: none;
}
.cutout-letter:nth-child(odd) {
  transform: rotate(-6deg) translateY(-2px);
}
.cutout-letter:nth-child(even) {
  transform: rotate(5deg) translateY(2px);
}
.char-h { background-color: var(--red-accent); }
.char-a { background-color: #dfb23f; color: var(--text-dark); }
.char-p { background-color: #7da57f; }
.char-y { background-color: var(--text-dark); }
.char-b { background-color: #dfb23f; color: var(--text-dark); }
.char-i { background-color: var(--red-accent); }
.char-r { background-color: #7da57f; }
.char-t { background-color: var(--text-dark); }
.char-d { background-color: #dfb23f; color: var(--text-dark); }

.the-big-tag {
  font-size: 13px;
  font-weight: bold;
  color: var(--muted-brown);
  margin-top: 15px;
  letter-spacing: 2px;
}

.big-age-badge {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 64px;
  font-weight: bold;
  color: var(--red-accent);
  background: #ffffff;
  border: 4px dashed var(--red-accent);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(163, 0, 30, 0.1);
  margin: 10px 0 20px 0;
  transform: rotate(-4deg);
  animation: float-badge 3.5s ease-in-out infinite alternate;
  user-select: none;
}

@keyframes float-badge {
  0% { transform: rotate(-5deg) translateY(0); }
  100% { transform: rotate(4deg) translateY(-6px); }
}

.highlight-name {
  color: var(--red-accent);
  font-weight: bold;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* ============ SCREEN 7-B: ACCEPT SURPRISE GAME ============ */
.accept-game-page {
  max-width: 440px;
}
.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.blushing-creature-wrap {
  width: 140px; height: 140px;
  margin-bottom: 20px;
}
.accept-buttons-wrap {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  position: relative;
  min-height: 54px;
  width: 100%;
  justify-content: center;
}
.game-btn {
  padding: 10px 24px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid var(--red-accent);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  outline: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.yes-btn {
  background-color: var(--red-accent);
  color: #ffffff;
}
.yes-btn:hover {
  background-color: #ffffff;
  color: var(--red-accent);
  box-shadow: 0 6px 12px rgba(163, 0, 30, 0.15);
}
.no-btn {
  background-color: #ffffff;
  color: var(--red-accent);
  transition: left 0.1s ease, top 0.1s ease;
}
.back-to-gifts-btn {
  margin-top: 15px;
  background-color: #ffffff;
  color: var(--red-accent);
  border: 1px solid var(--red-accent);
}
.back-to-gifts-btn:hover {
  background-color: var(--red-accent);
  color: #ffffff;
}

/* Interactive Secret Message envelope inside Flork card */
.interactive-envelope {
  cursor: pointer;
  display: inline-block;
  animation: pulse-envelope 2.5s infinite ease-in-out;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.interactive-envelope:hover {
  transform: scale(1.35) rotate(-8deg);
}

@keyframes pulse-envelope {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(4deg); }
}

.secret-message-overlay {
  position: absolute;
  inset: 0;
  background: rgba(163, 0, 30, 0.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 8px;
  animation: fadeIn 0.4s ease forwards;
}

.secret-notebook-paper {
  background-color: #fffef2;
  background-image: 
    linear-gradient(rgba(163, 0, 30, 0.08) 1.5px, transparent 1.5px);
  background-size: 100% 22px;
  border: 2px solid var(--red-accent);
  border-radius: 8px;
  padding: 30px 18px 20px 18px;
  width: 90%;
  max-height: 90%;
  box-shadow: 0 10px 25px rgba(163, 0, 30, 0.2);
  position: relative;
  text-align: left;
  transform: rotate(-1.5deg);
  line-height: 22px;
}

.close-secret-btn {
  position: absolute;
  top: 5px;
  right: 12px;
  font-size: 22px;
  font-weight: bold;
  color: var(--red-accent);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.close-secret-btn:hover {
  transform: scale(1.2);
}

.secret-note-greeting {
  font-size: 16px;
  font-weight: bold;
  color: var(--red-accent);
  margin-bottom: 10px;
}
.secret-note-text {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 15px;
}
.secret-note-sign {
  font-size: 18px;
  color: var(--red-accent);
  text-align: right;
  margin-top: 5px;
}

/* ============ INTERACTIVE GIFT CHOOSE OPTIONS HUB LAYOUT ============ */
.gift-hub-page {
  max-width: 580px;
}
.gift-options-row {
  display: flex;
  gap: 20px;
  width: 100%;
  margin: 20px 0;
  justify-content: center;
  flex-wrap: wrap;
}
.gift-option-box {
  width: 142px;
  height: 190px;
  border-radius: 8px;
  padding: 20px 10px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Different paper scraps background styles */
.gift-option-box.tape-pink {
  background: #fff0f3;
  transform: rotate(-3deg);
  border: 2px dashed #ffb3c1;
}
.gift-option-box.tape-green {
  background: #f0f7f4;
  transform: rotate(2deg);
  border: 2px dashed #b7e4c7;
}
.gift-option-box.tape-yellow {
  background: #fffdf0;
  transform: rotate(-1.5deg);
  border: 2px dashed #ffe5ec;
}

/* Hover scales, aligns straight, and deepens shadow */
.gift-option-box:hover {
  transform: scale(1.08) rotate(0deg) translateY(-5px);
  box-shadow: 0 12px 24px rgba(163,0,30,0.12);
  z-index: 5;
}

/* Washi tape on top of cards */
.tape-sticker {
  position: absolute;
  top: -12px;
  width: 50px;
  height: 16px;
  opacity: 0.8;
  transform: rotate(2deg);
  z-index: 12;
}
.tape-sticker.gold {
  background: rgba(223, 178, 63, 0.6);
  border-left: 1px dashed #ffffff;
  border-right: 1px dashed #ffffff;
}
.tape-sticker.red {
  background: rgba(163, 0, 30, 0.4);
  border-left: 1px dashed #ffffff;
  border-right: 1px dashed #ffffff;
}

/* Custom CSS illustrations */
.gift-visual {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Premium Envelope */
.custom-envelope {
  width: 60px;
  height: 42px;
  background: #ffa4b2;
  border: 1.5px solid var(--red-accent);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.custom-envelope::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 0;
  border-top: 22px solid var(--red-accent);
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  opacity: 0.15;
  z-index: 2;
}
.custom-envelope::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 0;
  border-bottom: 24px solid var(--red-accent);
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  opacity: 0.25;
  z-index: 3;
}
.daisy-seal {
  position: absolute;
  top: 10px;
  left: 19px;
  font-size: 16px;
  z-index: 10;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

/* Premium Bouquet */
.custom-bouquet {
  font-size: 40px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  animation: float-bouquet 3s ease-in-out infinite alternate;
}
@keyframes float-bouquet {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-4px) rotate(2deg); }
}

/* Premium Mystery Gift Box */
.custom-box {
  font-size: 40px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.shake-box {
  animation: shake-box 2.5s infinite ease-in-out;
}
@keyframes shake-box {
  0%, 100%, 80% { transform: rotate(0deg) scale(1); }
  85% { transform: rotate(5deg) scale(1.05); }
  90% { transform: rotate(-5deg) scale(1.05); }
  95% { transform: rotate(5deg) scale(1.05); }
}

/* Ink Stamp styling for unpacked status */
.gift-option-box.unpacked::after {
  content: "OPENED";
  position: absolute;
  bottom: 45px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  font-weight: bold;
  color: #d63031;
  border: 2px solid #d63031;
  padding: 3px 6px;
  border-radius: 4px;
  transform: rotate(-12deg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(214,48,49,0.15);
  letter-spacing: 1px;
  z-index: 15;
  animation: stamp-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes stamp-pop {
  from { transform: scale(2) rotate(15deg); opacity: 0; }
  to { transform: scale(1) rotate(-12deg); opacity: 1; }
}

.gift-tag-label {
  font-size: 12px;
  font-weight: bold;
  color: var(--red-accent);
  text-transform: uppercase;
}

/* Locked Done Continue Button in Hub */
#gift-hub-continue-btn {
  opacity: 0.55;
  pointer-events: none;
  background: #ccc;
  border-color: #bbb;
}
#gift-hub-continue-btn.unlocked {
  opacity: 1;
  pointer-events: auto;
  background: var(--red-accent);
  border-color: var(--red-accent);
}

/* Flowers Layout screen styling */
.flowers-title {
  font-size: 32px;
  margin-bottom: 22px;
  color: var(--red-accent);
  line-height: 1.2;
  text-align: center;
}
.flowers-layout {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.flowers-details {
  flex: 1.2;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cute-creature-sketch {
  width: 140px; height: 140px;
  position: relative;
}
.creature-bubble {
  position: absolute;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: bold;
  border: 1.5px solid var(--red-accent);
  color: var(--red-accent);
  background: #ffffff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}
.creature-bubble.bg-purple {
  top: -5px; left: -30px;
  transform: rotate(-10deg);
}
.creature-bubble.bg-rose {
  bottom: 12px; right: -25px;
  transform: rotate(8deg);
}

.bouquet-big-card {
  flex: 1;
  min-width: 160px;
  background: #ffffff;
  border: 2px solid var(--red-accent);
  border-radius: 8px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  position: relative;
}
.bouquet-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
  animation: float-bouquet 3s ease-in-out infinite alternate;
}

@keyframes float-bouquet {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-4px) rotate(2deg); }
}

/* Accept Screen Polaroid Reveal */
.accept-reveal-polaroid {
  background: #ffffff;
  padding: 10px 10px 18px 10px;
  border-radius: 2px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transform: rotate(3deg);
  width: 160px;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  margin-bottom: 20px;
  z-index: 10;
  animation: polaroidPopUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes polaroidPopUp {
  0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(3deg); opacity: 1; }
}

.accept-reveal-polaroid .polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 50px;
  height: 16px;
  background: rgba(223, 178, 63, 0.7); /* Gold washi tape */
  border-left: 1.5px dashed #ffffff;
  border-right: 1.5px dashed #ffffff;
}

.polaroid-img-wrap {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #f0f0f0;
}
.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.accept-reveal-polaroid p {
  color: var(--text-dark);
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  font-weight: bold;
}

/* Minimal birthday video reveal */
.video-surprise-page {
  width: min(92vw, 760px);
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.video-surprise-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-surprise-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Local birthday surprise video */
.video-surprise-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#video-gift-play-btn[hidden] {
  display: none;
}
/* Scrollable birthday letter */
#screen-letter .stationery-letter {
  max-height: min(65vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#screen-letter .letter-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  #screen-letter .stationery-letter {
    max-height: 60vh;
    padding: 22px 18px;
  }
}