/* ═══════════════════════════════════════════════════════════
   HAPPY BIRTHDAY WEBSITE — GLOBAL STYLES
   Color Palette:
   --cream:    #F7EBDD
   --burgundy: #941B1B
   --red:      #C81020
   --pink:     #F6C7CC
   --brown:    #A67C62
   --white:    #FFFFFF
═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:    #F7EBDD;
  --cream2:   #F0DDC8;
  --burgundy: #941B1B;
  --red:      #C81020;
  --pink:     #F6C7CC;
  --pink2:    #FFD9DE;
  --brown:    #A67C62;
  --white:    #FFFFFF;
  --gold:     #D4AF37;
  --shadow:   rgba(148, 27, 27, 0.15);
  --shadow2:  rgba(0,0,0,0.15);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--burgundy);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREEN SYSTEM ── */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: var(--cream);
  overflow-y: auto;
  overflow-x: hidden;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  z-index: 1;
}

.screen.active {
  display: flex;
  opacity: 1;
  z-index: 10;
}

.screen.slide-in {
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.screen.slide-out {
  animation: slideOutDown 0.4s ease-in forwards;
}

.screen.fade-in {
  animation: fadeInScale 0.6s ease forwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(60px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideOutDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-40px); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── GINGHAM BORDERS ── */
.gingham-border {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(20px, 5vw, 44px);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(200,16,32,0.3) 14px,
      rgba(200,16,32,0.3) 28px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 14px,
      rgba(200,16,32,0.3) 14px,
      rgba(200,16,32,0.3) 28px
    );
  background-color: #e8c8c8;
  z-index: 20;
  pointer-events: none;
}

.gingham-border.left  { left: 0; }
.gingham-border.right { right: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(1rem, 4vw, 1.3rem);
  letter-spacing: 0.05em;
  padding: 14px 36px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s ease,
              filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn:active {
  transform: scale(0.93) !important;
}

.btn-yes {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 0 var(--burgundy), 0 8px 20px rgba(200,16,32,0.35);
  position: relative;
}

.btn-yes::before {
  content: '';
  position: absolute;
  top: 4px; left: 8px; right: 8px; bottom: 8px;
  border-radius: 50px;
  border-top: 2.5px solid rgba(255,255,255,0.4);
}

.btn-yes:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--burgundy), 0 12px 24px rgba(200,16,32,0.4);
}

.btn-no {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 0 var(--burgundy), 0 8px 20px rgba(200,16,32,0.35);
  position: relative;
}

.btn-no::before {
  content: '';
  position: absolute;
  top: 4px; left: 8px; right: 8px; bottom: 8px;
  border-radius: 50px;
  border-top: 2.5px solid rgba(255,255,255,0.4);
}

.btn-no:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--burgundy), 0 12px 24px rgba(200,16,32,0.4);
}

.btn-tryagain {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 0 var(--burgundy), 0 8px 20px rgba(200,16,32,0.35);
  font-size: clamp(1rem, 4vw, 1.4rem);
  padding: 14px 40px;
}

.btn-letsgo {
  background: linear-gradient(135deg, var(--red), var(--burgundy));
  color: var(--white);
  box-shadow: 0 6px 0 #5a1010, 0 10px 24px rgba(200,16,32,0.4);
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  padding: 16px 44px;
}

.btn-letsgo:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn-mic {
  background: linear-gradient(135deg, var(--burgundy), var(--red));
  color: var(--white);
  padding: 12px 28px;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  box-shadow: 0 4px 0 #5a1010, 0 6px 16px rgba(200,16,32,0.35);
}

.btn-manual-blow {
  background: var(--pink);
  color: var(--burgundy);
  padding: 11px 26px;
  font-size: clamp(0.85rem, 3vw, 1rem);
  border: 2px solid var(--burgundy);
  margin-top: 8px;
}

.btn-continue {
  background: linear-gradient(135deg, var(--red), var(--burgundy));
  color: var(--white);
  padding: 13px 32px;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  box-shadow: 0 4px 0 #5a1010;
  margin-top: 16px;
}

.btn-journey {
  background: linear-gradient(135deg, var(--red), var(--burgundy));
  color: var(--white);
  font-size: clamp(1rem, 4vw, 1.25rem);
  padding: 15px 40px;
  box-shadow: 0 6px 0 #5a1010, 0 8px 24px rgba(148,27,27,0.4);
}

.btn-skip-cut {
  background: var(--burgundy);
  color: var(--white);
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  padding: 12px 28px;
  margin-top: 16px;
}

.btn-back-home {
  background: var(--pink);
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
  font-size: clamp(0.9rem, 3vw, 1rem);
  padding: 11px 28px;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 1: INVITATION
═══════════════════════════════════════════════════════════ */

#screen-invitation {
  background: var(--cream);
  padding: 0 clamp(30px, 8vw, 80px);
}

.invitation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  gap: 0;
  padding: 20px 0 32px;
  animation: fadeInScale 0.7s ease both;
}

.curved-text-wrapper {
  width: 100%;
  max-width: 420px;
  margin-bottom: -10px;
}

.curved-text-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(1px 2px 3px rgba(148,27,27,0.2));
}

.howdare-svg text {
  font-weight: bold;
}

.character-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.shinchan-svg {
  width: clamp(120px, 35vw, 200px);
  height: auto;
  filter: drop-shadow(2px 6px 12px rgba(0,0,0,0.12));
}

.shinchan-happy {
  animation: shinchanBounce 2s ease-in-out infinite;
}

@keyframes shinchanBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(-4px) rotate(-2deg); }
}

.shinchan-angry {
  animation: shinchanTantrum 0.5s ease-in-out infinite alternate;
}

.shinchan-tantrum {
  animation: shinchanTantrum 0.4s ease-in-out infinite alternate;
}

@keyframes shinchanTantrum {
  from { transform: rotate(-5deg) translateY(0); }
  to   { transform: rotate(5deg) translateY(-6px); }
}

.shinchan-dance {
  animation: shinchanDance 1s ease-in-out infinite;
}

@keyframes shinchanDance {
  0%   { transform: rotate(-5deg) scale(1); }
  50%  { transform: rotate(5deg) scale(1.04); }
  100% { transform: rotate(-5deg) scale(1); }
}

.floating-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  color: var(--gold);
  font-size: 1.2rem;
  animation: starFloat 2.5s ease-in-out infinite;
}

.star.s1 { top: 10%; left: 5%;  animation-delay: 0s; }
.star.s2 { top: 15%; right: 5%; animation-delay: 0.8s; }
.star.s3 { bottom: 20%; left: 10%; animation-delay: 1.5s; }

@keyframes starFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  50%       { transform: translateY(-10px) rotate(20deg); opacity: 1; }
}

.question-text {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(1.3rem, 5.5vw, 2rem);
  color: var(--burgundy);
  text-align: center;
  margin: 4px 0 20px;
  letter-spacing: 0.02em;
}

.btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.floating-hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 1B: HOW DARE YOU
═══════════════════════════════════════════════════════════ */

#screen-howdare {
  background: var(--cream);
  padding: 0 clamp(30px, 8vw, 80px);
}

.howdare-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 500px;
  animation: fadeInScale 0.5s ease both;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 2: EXCITEMENT
═══════════════════════════════════════════════════════════ */

#screen-excited {
  background: radial-gradient(ellipse at center, var(--pink2) 0%, var(--cream) 70%);
  padding: 20px clamp(30px, 8vw, 80px);
}

.excited-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 500px;
  width: 100%;
  animation: fadeInScale 0.6s ease both;
}

.excited-heading {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--burgundy);
  text-align: center;
  line-height: 1.1;
  text-shadow: 2px 3px 0 var(--pink);
}

.pulsing-heart {
  font-size: clamp(2.5rem, 10vw, 4rem);
  animation: heartPulse 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

.sparkles-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.sparkle {
  font-size: 1.4rem;
  animation: sparkleAnim 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { animation-delay: 0s; }
.sparkle:nth-child(2) { animation-delay: 0.3s; }
.sparkle:nth-child(3) { animation-delay: 0.6s; }
.sparkle:nth-child(4) { animation-delay: 0.9s; }
.sparkle:nth-child(5) { animation-delay: 1.2s; }

@keyframes sparkleAnim {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50%       { transform: scale(1.4) rotate(20deg); opacity: 1; }
}

.excited-sub {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: var(--burgundy);
  text-align: center;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 3: CAKE / CANDLE BLOWING
═══════════════════════════════════════════════════════════ */

#screen-cake {
  background: radial-gradient(ellipse at center top, #fff8f0 0%, var(--cream) 60%, var(--cream2) 100%);
  padding: 20px;
  gap: 0;
}

.cake-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.balloon {
  position: absolute;
  font-size: clamp(2rem, 6vw, 3.5rem);
  animation: balloonFloat 4s ease-in-out infinite;
}

.balloon.b1 { top: 5%;  left: 5%;  animation-delay: 0s; }
.balloon.b2 { top: 10%; right: 6%; animation-delay: 1.3s; }
.balloon.b3 { top: 3%;  left: 45%; animation-delay: 0.7s; }

@keyframes balloonFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-18px) rotate(5deg); }
}

.cake-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  gap: 10px;
  padding: 60px 20px 20px;
  position: relative;
  z-index: 2;
}

/* Birthday banner */
.birthday-banner {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4px;
}

.banner-letter {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: var(--burgundy);
  animation: letterDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.07s);
  display: inline-block;
  text-shadow: 2px 2px 0 var(--pink);
}

@keyframes letterDrop {
  from { opacity: 0; transform: translateY(-30px) rotate(-10deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.cake-subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  color: var(--brown);
  text-align: center;
}

/* Cake scene */
.cake-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cake-svg {
  width: clamp(240px, 75vw, 340px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(148,27,27,0.2));
}

/* Candles */
.candles-group {
  display: flex;
  gap: clamp(20px, 6vw, 36px);
  justify-content: center;
  margin-bottom: -8px;
  position: relative;
  z-index: 5;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.candle-body {
  width: clamp(8px, 2.5vw, 12px);
  height: clamp(28px, 7vw, 40px);
  background: linear-gradient(to right, #ffd0dc, #f8aab8, #ffd0dc);
  border-radius: 3px 3px 2px 2px;
}

.candle-body-green {
  background: linear-gradient(to right, #c8f0c8, #90d890, #c8f0c8);
}

.candle-body-blue {
  background: linear-gradient(to right, #c8d8f8, #90a8f0, #c8d8f8);
}

.flame {
  width: clamp(14px, 4vw, 20px);
  height: clamp(22px, 6vw, 32px);
  position: relative;
  margin-bottom: -2px;
  transform-origin: bottom center;
  animation: flameFlicker 0.15s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  from { transform: scaleX(1) scaleY(1) rotate(-2deg); }
  to   { transform: scaleX(0.85) scaleY(1.08) rotate(2deg); }
}

.flame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, #fff 0%, #FFD700 30%, #FF8C00 60%, #FF4500 80%, transparent 100%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  filter: blur(1px);
}

.flame-inner {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 45%;
  background: radial-gradient(ellipse, #fff 0%, #FFD700 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0.9;
}

.smoke {
  display: none;
  width: 4px;
  height: 30px;
  background: linear-gradient(to top, rgba(180,180,180,0.8) 0%, transparent 100%);
  border-radius: 2px;
  margin-bottom: -2px;
  animation: smokeRise 1s ease-out infinite;
}

@keyframes smokeRise {
  0%   { opacity: 0.8; transform: translateX(0) scaleX(1); }
  50%  { transform: translateX(4px) scaleX(1.4); opacity: 0.5; }
  100% { opacity: 0; transform: translateX(-2px) translateY(-15px) scaleX(0.8); }
}

.flame.extinguished {
  display: none;
}

.smoke.active {
  display: block;
}

/* Blow instruction */
.blow-instruction {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  text-align: center;
  padding: 0 12px;
}

#mic-status-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  color: var(--burgundy);
}

.mic-meter {
  width: 200px;
  height: 12px;
  background: var(--cream2);
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--pink);
}

.mic-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--pink), var(--red));
  border-radius: 6px;
  transition: width 0.08s ease;
}

.wish-message {
  text-align: center;
  padding: 20px;
  animation: fadeInScale 0.7s ease both;
}

.wish-message h2 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.4rem, 6vw, 2rem);
  color: var(--burgundy);
  text-shadow: 2px 2px 0 var(--pink);
}

.wish-message p {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  color: var(--red);
  margin: 8px 0;
}

/* Music player */
.music-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--pink);
  border-radius: 50px;
  padding: 8px 18px;
  backdrop-filter: blur(6px);
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: 20px;
  z-index: 100;
  box-shadow: 0 4px 16px var(--shadow);
}

.music-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: var(--burgundy);
}

.music-btn {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 4: CAKE CUTTING
═══════════════════════════════════════════════════════════ */

#screen-cutcake {
  background: radial-gradient(ellipse at center, var(--pink2) 0%, var(--cream) 70%);
  padding: 20px;
}

.cutcake-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.cutcake-heading {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  color: var(--burgundy);
  text-align: center;
  text-shadow: 2px 2px 0 var(--pink);
}

.cutcake-sub {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  color: var(--brown);
}

.cutcake-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#cake-canvas {
  width: clamp(240px, 80vw, 320px);
  height: auto;
  border-radius: 12px;
  touch-action: none;
  cursor: crosshair;
  box-shadow: 0 8px 24px rgba(148,27,27,0.15);
}

.cake-guests {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 8px;
}

.guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  border: 2px solid var(--pink);
  min-width: 80px;
  transition: transform 0.3s ease;
}

.guest-emoji {
  font-size: 2rem;
}

.guest-plate {
  font-size: 1.2rem;
  position: relative;
}

.guest-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 0.8rem;
  color: var(--burgundy);
}

.cake-slices-container {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 80vw, 320px);
  height: clamp(140px, 45vw, 180px);
  pointer-events: none;
}

.cake-slice {
  position: absolute;
  font-size: 2rem;
  cursor: grab;
  pointer-events: all;
  user-select: none;
  touch-action: none;
  transition: transform 0.15s ease;
  z-index: 10;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.2));
}

.cake-slice:active { cursor: grabbing; transform: scale(1.15); }

.serving-msg {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  color: var(--burgundy);
  text-align: center;
  min-height: 1.5em;
  animation: fadeInScale 0.4s ease both;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 5: BIRTHDAY CARD
═══════════════════════════════════════════════════════════ */

#screen-card {
  background: var(--cream);
  padding: 20px clamp(30px, 7vw, 70px);
  align-items: stretch;
  overflow-y: auto;
}

.card-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 40px;
  animation: fadeInScale 0.7s ease both;
}

/* Card decorative shapes */
.card-shape {
  position: absolute;
  background: var(--red);
  z-index: 0;
  pointer-events: none;
  border-radius: 50% 20%;
}

.card-shape-tl {
  width: 120px; height: 130px;
  top: -20px; left: -30px;
  border-radius: 0 50% 50% 0;
  opacity: 0.85;
}

.card-shape-tr {
  width: 90px; height: 100px;
  top: -15px; right: -30px;
  border-radius: 50% 0 0 50%;
  opacity: 0.85;
}

.card-shape-bl {
  width: 100px; height: 90px;
  bottom: 30px; left: -30px;
  border-radius: 0 50% 50% 0;
  opacity: 0.85;
}

.card-left, .card-right {
  position: relative;
  z-index: 2;
}

.card-heading-block {
  margin-bottom: 16px;
}

.card-happy {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

.card-birthday {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 11vw, 5rem);
  color: var(--burgundy);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.sparkle-icon {
  color: var(--gold);
  font-size: 0.7em;
  animation: sparkleAnim 1.5s ease-in-out infinite;
}

.card-message {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--burgundy);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-name-banner {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  font-family: 'Satisfy', cursive;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  padding: 10px 32px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  box-shadow: 4px 4px 12px rgba(148,27,27,0.3);
  position: relative;
}

.card-name-banner::before,
.card-name-banner::after {
  content: '▶';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  color: rgba(255,255,255,0.6);
}

.card-name-banner::before { left: 8px; transform: translateY(-50%) scaleX(-1); }
.card-name-banner::after  { right: 8px; }

.spiderman-detail {
  font-size: 1.5rem;
  margin-top: 12px;
  opacity: 0.6;
  cursor: help;
  title: "For my friendly neighbourhood Spider-Man fan 🕷️";
}

/* Polaroid frame */
.polaroid-frame {
  position: relative;
  background: white;
  padding: 14px 14px 40px;
  box-shadow: 3px 5px 20px rgba(0,0,0,0.18), -2px -2px 8px rgba(255,255,255,0.8);
  transform: rotate(3deg);
  max-width: 240px;
  margin: 0 auto 16px;
  border: 1px solid #e0d8d0;
}

.paper-clip {
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 1.8rem;
  transform: rotate(15deg);
  filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.2));
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream), var(--pink2));
  overflow: hidden;
  border: 3px solid var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
}

.photo-placeholder span { font-size: 2.5rem; }
.photo-placeholder p { font-size: 0.8rem; color: var(--brown); font-family: 'Nunito', sans-serif; }
.photo-placeholder small { font-size: 0.65rem; color: var(--brown); opacity: 0.7; }

.polaroid-caption {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: var(--burgundy);
  text-align: center;
  margin-top: 8px;
}

/* Click Me Heart */
.click-me-heart {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.heart-btn {
  width: 56px;
  height: 56px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(246,199,204,0.6);
  border: 2px solid var(--burgundy);
}

.click-me-label {
  font-family: 'Fredoka One', sans-serif;
  font-size: 0.65rem;
  color: var(--burgundy);
  letter-spacing: 0.06em;
}

/* Card stickers */
.card-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.sticker {
  position: absolute;
  font-size: clamp(1rem, 3vw, 1.5rem);
  animation: stickerWiggle 3s ease-in-out infinite;
}

.sticker.st1 { bottom: 60px; right: 40px; animation-delay: 0s; color: var(--gold); }
.sticker.st2 { top: 80px; left: 30px; animation-delay: 0.5s; }
.sticker.st3 { bottom: 120px; left: 20px; animation-delay: 1s; color: var(--burgundy); }
.sticker.st4 { top: 40%; right: 10px; animation-delay: 1.5s; }
.sticker.st5 { top: 30px; left: 50%; animation-delay: 2s; color: var(--gold); }

@keyframes stickerWiggle {
  0%, 100% { transform: rotate(0deg); }
  33%       { transform: rotate(15deg) scale(1.1); }
  66%       { transform: rotate(-10deg) scale(0.95); }
}

/* Card shinchan */
.card-shinchan {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  animation: shinchanBounce 2s ease-in-out infinite;
}

/* Letter overlay */
.letter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeInScale 0.4s ease both;
}

.letter-paper {
  background: #fffef8;
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  border: 2px solid var(--cream2);
  max-height: 85dvh;
  overflow-y: auto;
  animation: fadeInScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.letter-paper::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--pink);
  border-radius: 8px;
  pointer-events: none;
}

.letter-close {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--burgundy);
  opacity: 0.6;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
}

.letter-header {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--pink);
}

.letter-body {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.9rem, 3vw, 1rem);
  line-height: 1.8;
  color: #3a2a2a;
}

.letter-body p { margin-bottom: 14px; }

.letter-sign {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: var(--burgundy);
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 6: OUR LOVE STORY
═══════════════════════════════════════════════════════════ */

#screen-story {
  background: linear-gradient(160deg, var(--cream) 0%, var(--pink2) 50%, var(--cream) 100%);
  overflow-y: auto;
}

.story-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  animation: fadeInScale 0.7s ease both;
  position: relative;
}

.story-stars {
  display: flex;
  gap: 12px;
  font-size: 1.2rem;
  color: var(--gold);
}

.story-heading {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.2rem, 9vw, 3.8rem);
  color: var(--burgundy);
  line-height: 1.05;
  text-shadow: 3px 4px 0 var(--pink);
}

.story-sub {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  color: var(--burgundy);
  line-height: 1.5;
}

.story-desc {
  background: rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 20px 24px;
  border: 2px solid var(--pink);
  backdrop-filter: blur(4px);
}

.story-desc p {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  color: var(--burgundy);
  line-height: 1.7;
}

.spiderweb-corner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 2rem;
  opacity: 0.3;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 7: RELATIONSHIP TIMELINE
═══════════════════════════════════════════════════════════ */

#screen-timeline {
  background: var(--cream);
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding-bottom: 40px;
}

.timeline-header {
  padding: 32px 24px 16px;
  text-align: center;
  background: linear-gradient(to bottom, var(--cream2), transparent);
  width: 100%;
}

.timeline-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--burgundy);
  text-shadow: 2px 3px 0 var(--pink);
}

.timeline-intro {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--brown);
  margin-top: 6px;
}

/* Timeline nav pills */
.timeline-nav {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-nav::-webkit-scrollbar { display: none; }

.tl-nav-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: var(--white);
  color: var(--burgundy);
  font-family: 'Fredoka One', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tl-nav-btn.active,
.tl-nav-btn:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  transform: scale(1.1);
}

/* Chapter cards */
.timeline-chapters {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 20px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.chapter-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
  border: 2px solid var(--pink);
  animation: fadeInScale 0.5s ease both;
  position: relative;
}

.chapter-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--red), var(--burgundy));
}

.chapter-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--burgundy) 100%);
  padding: 20px 24px 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chapter-num {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.chapter-title-block h3 {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  color: white;
  line-height: 1.2;
}

.chapter-title-block .chapter-date {
  font-family: 'Dancing Script', cursive;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.chapter-body {
  padding: 20px 24px;
}

.chapter-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
}

.chapter-story {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: #3a2a2a;
  line-height: 1.75;
  margin-bottom: 14px;
}

.chapter-photo-slot {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--cream2), var(--pink2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  border: 2px dashed var(--pink);
  overflow: hidden;
}

.chapter-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.chapter-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--brown);
}

.chapter-photo-placeholder span { font-size: 2rem; }
.chapter-photo-placeholder p { font-size: 0.75rem; font-family: 'Nunito', sans-serif; }

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.chapter-tag {
  background: var(--cream);
  color: var(--burgundy);
  border: 1.5px solid var(--pink);
  border-radius: 50px;
  padding: 4px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.chapter-nav-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 20px;
}

.chapter-next-btn {
  background: linear-gradient(135deg, var(--red), var(--burgundy));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #5a1010;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chapter-next-btn:hover { transform: translateY(-2px) scale(1.03); }
.chapter-next-btn:active { transform: scale(0.95); }

.timeline-footer {
  padding: 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL OVERLAYS — HEARTS & CONFETTI
═══════════════════════════════════════════════════════════ */

.hearts-overlay,
.confetti-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.floating-heart {
  position: absolute;
  font-size: clamp(1rem, 4vw, 2rem);
  animation: floatHeart linear forwards;
  pointer-events: none;
}

@keyframes floatHeart {
  0%   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.3) rotate(30deg); }
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (min-width: 600px) {
  .card-scene {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .card-left {
    flex: 1;
  }

  .card-right {
    flex: 0 0 240px;
  }

  .click-me-heart {
    position: static;
    transform: none;
    margin-top: 16px;
  }

  .timeline-chapters {
    padding: 16px 32px;
  }

  .gingham-border {
    width: clamp(28px, 4vw, 52px);
  }
}

@media (min-width: 900px) {
  .cake-content {
    max-width: 600px;
  }

  .shinchan-svg {
    width: clamp(160px, 20vw, 240px);
  }

  #screen-invitation {
    padding: 0 clamp(50px, 8vw, 100px);
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }
