* { margin:0; padding:0; box-sizing: border-box; }

:root {
  --gold: #ffd700;
  --gold-light: #ffed4e;
  --purple: #a78bfa;
  --purple-deep: #7c3aed;
  --teal: #06b6d4;
  --pink: #f472b6;
  --dark-1: #0a0a1e;
  --dark-2: #1a103d;
  --dark-3: #2d1b5c;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: radial-gradient(ellipse at center, #1a103d 0%, #0a0a1e 100%);
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
}

/* ========= LOW-END DEVICE OPTIMIZATIONS ========= */
html.low-end #cursorCanvas { display: none; }
html.low-end .story-card,
html.low-end #giftInput,
html.low-end .mini-btn,
html.low-end .journey-btn,
html.low-end .music-toggle,
html.low-end .sound-toggle,
html.low-end .skip-btn,
html.low-end .carousel-arrow {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.low-end .card-icon,
html.low-end .finale-emojis span,
html.low-end .balloon,
html.low-end .p-ring,
html.low-end .portal-glow,
html.low-end .orb-inner {
  animation-duration: 6s !important;
}
html.low-end .cake-3d { animation-duration: 40s !important; }
html.low-end .reveal-name,
html.low-end .finale-name,
html.low-end .scene-title,
html.low-end .gold-shine { animation-duration: 12s !important; }
html.low-end .story-card { box-shadow: none; }
html.low-end .story-card:hover { box-shadow: 0 10px 30px rgba(167,139,250,0.3); }

#three-canvas {
  position: fixed;
  top:0; left:0;
  width: 100%; height: 100%;
  z-index: 0;
}
#cursorCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ========= LOADER ========= */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1a103d 0%, #0a0a1e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-orb {
  position: relative;
  width: 120px;
  height: 120px;
}
.orb-inner {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd700, #a78bfa);
  box-shadow: 0 0 60px #a78bfa, 0 0 100px #ffd700;
  animation: orbPulse 2s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #ffd700;
  border-right-color: transparent;
}
.orb-ring.r1 { animation: spinRev 3s linear infinite; }
.orb-ring.r2 {
  inset: 10%;
  border-top-color: #a78bfa;
  animation: spinRev 2s linear infinite reverse;
}
.orb-ring.r3 {
  inset: 20%;
  border-top-color: #06b6d4;
  animation: spinRev 1.5s linear infinite;
}
@keyframes spinRev { to { transform: rotate(360deg); } }
.loader-text {
  margin-top: 30px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
}
.loader-bar {
  width: 260px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffd700, #a78bfa, #06b6d4);
  box-shadow: 0 0 20px #a78bfa;
  transition: width 0.2s ease;
}
.loader-percent {
  margin-top: 15px;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
}

/* ========= SCENES ========= */
.scene {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
}
.scene.active { display: flex; opacity: 1; transform: translateY(0); }
.scene-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; }
.center-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* ========= CHAPTER BADGE ========= */
.chapter-badge {
  display: inline-block;
  margin: 0 auto 20px;
  padding: 8px 24px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 30px;
  color: #ffd700;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(10px);
  text-align: center;
  align-self: center;
}

/* ========= OPENING TITLES ========= */
.opening-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.opening-text .line-small {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeUp 1.5s ease 0.4s forwards;
}
.opening-text .line-big {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 1.5s ease 1.2s forwards;
  text-shadow: 0 0 60px rgba(255,255,255,0.3);
}
.gold-shine {
  background: linear-gradient(90deg, #ffd700 0%, #fff 25%, #a78bfa 50%, #ffd700 75%, #fff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1.5s ease 1.2s forwards, shine 6s linear infinite;
}
@keyframes shine {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.poetic-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: rgba(255,215,0,0.9);
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 1.5s ease 2.2s forwards;
  letter-spacing: 1px;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 1.5s ease 3s forwards;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
}
.scroll-dot {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #ffd700;
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* ========= JOURNEY BUTTON ========= */
.journey-btn {
  margin-top: 40px;
  padding: 18px 42px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 60px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 1.5s ease 2.8s forwards;
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(10px);
}
.journey-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #a78bfa, #ffd700, #06b6d4);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  animation: shine 3s linear infinite;
}
.journey-btn:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(167,139,250,0.5);
  letter-spacing: 5px;
}
.journey-btn:hover::before { opacity: 1; }
.journey-btn svg { width: 20px; height: 20px; }
.journey-btn.hidden { display: none; }
.journey-btn.restart-btn, .journey-btn.share-btn { animation-delay: 3.5s; }

/* ========= SCENE TITLES ========= */
.scene-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  text-align: center;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff 0%, #ffd700 50%, #a78bfa 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
  letter-spacing: 1px;
}
.scene-sub {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  letter-spacing: 1px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========= SCENE 3: PORTAL REVEAL ========= */
.portal-container {
  position: relative;
  width: 600px;
  height: 600px;
  max-width: 92vw;
  max-height: 92vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-glow {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, rgba(167,139,250,0.2) 40%, transparent 70%);
  filter: blur(30px);
  animation: portalGlow 4s ease-in-out infinite;
}
@keyframes portalGlow {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.portal-rings {
  position: absolute;
  inset: 0;
}
.p-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.p-ring.ring-a {
  width: 100%; height: 100%;
  border-top-color: #ffd700;
  border-right-color: #a78bfa;
  animation: portalSpin 20s linear infinite;
  box-shadow: 0 0 40px rgba(255,215,0,0.4);
}
.p-ring.ring-b {
  width: 80%; height: 80%;
  border-top-color: #06b6d4;
  border-left-color: #f472b6;
  animation: portalSpin 15s linear infinite reverse;
  box-shadow: 0 0 30px rgba(6,182,212,0.4);
}
.p-ring.ring-c {
  width: 60%; height: 60%;
  border-bottom-color: #a78bfa;
  border-right-color: #ffd700;
  animation: portalSpin 12s linear infinite;
  box-shadow: 0 0 25px rgba(167,139,250,0.4);
}
.p-ring.ring-d {
  width: 45%; height: 45%;
  border-top-color: rgba(255,255,255,0.6);
  border-bottom-color: #ffd700;
  animation: portalSpin 8s linear infinite reverse;
}
@keyframes portalSpin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
.portal-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 30px;
}
.reveal-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 4px;
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}
.reveal-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 8rem);
  background: linear-gradient(45deg, #ffd700 0%, #fff 30%, #a78bfa 60%, #ffd700 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite, fadeUp 1.5s ease 1s forwards;
  filter: drop-shadow(0 0 40px rgba(255,215,0,0.6));
  line-height: 1;
  letter-spacing: -2px;
  opacity: 0;
}
.reveal-sub {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeUp 1s ease 2s forwards;
}

/* ========= SCENE 4: STORY CARDS ========= */
.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 50px 0 30px;
}
.story-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), box-shadow 0.7s, border-color 0.7s;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
}
.story-card.in-view { opacity: 1; transform: translateY(0); transition: opacity 1s ease, transform 1s cubic-bezier(0.16,1,0.3,1); }
.card-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,215,0,0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.story-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 30px 80px rgba(167,139,250,0.4), 0 0 40px rgba(255,215,0,0.2);
}
.story-card:hover .card-glow { opacity: 1; }
.card-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
.story-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.story-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  font-weight: 300;
}

/* ========= SCENE 5: CAKE ========= */
.mic-btn-wrap { margin-bottom: 30px; }
.mini-btn {
  padding: 12px 26px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.4s;
}
.mini-btn:hover {
  background: linear-gradient(90deg, rgba(255,215,0,0.3), rgba(167,139,250,0.3));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(167,139,250,0.3);
}
.mini-btn.listening {
  background: linear-gradient(90deg, rgba(255,20,147,0.5), rgba(167,139,250,0.5));
  animation: micPulse 1s infinite;
}
@keyframes micPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,20,147,0.6); }
  50% { box-shadow: 0 0 0 25px rgba(255,20,147,0); }
}
.cake-stage {
  perspective: 1400px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cake-3d {
  position: relative;
  width: 340px;
  height: 400px;
  transform-style: preserve-3d;
  animation: cakeRotate 25s linear infinite;
}
@keyframes cakeRotate {
  from { transform: rotateY(0) rotateX(-10deg); }
  to { transform: rotateY(360deg) rotateX(-10deg); }
}
.cake-plate {
  position: absolute;
  bottom: 0;
  left: -40px;
  width: 420px;
  height: 45px;
  background: radial-gradient(ellipse at center, #f8f8f8 0%, #999 70%, #444 100%);
  border-radius: 50%;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}
.cake-shadow {
  position: absolute;
  bottom: -25px;
  left: -10px;
  width: 360px;
  height: 35px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.7), transparent);
  filter: blur(20px);
  border-radius: 50%;
}
.tier {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 15px 15px 10px 10px;
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.25), 0 8px 20px rgba(0,0,0,0.4);
}
.tier-bot {
  bottom: 35px;
  width: 340px;
  height: 110px;
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 60%, #4c1d95 100%);
}
.tier-mid {
  bottom: 135px;
  width: 260px;
  height: 95px;
  background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 60%, #7c3aed 100%);
}
.tier-top {
  bottom: 220px;
  width: 190px;
  height: 80px;
  background: linear-gradient(180deg, #fff 0%, #f0e6ff 50%, #d4b3ff 100%);
  z-index: 2;
}
.drips {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 28px;
  background:
    radial-gradient(circle at 10% 0%, #ffd700 8%, transparent 8%),
    radial-gradient(circle at 28% 0%, #ffd700 6%, transparent 6%),
    radial-gradient(circle at 45% 0%, #ffd700 10%, transparent 10%),
    radial-gradient(circle at 62% 0%, #ffd700 7%, transparent 7%),
    radial-gradient(circle at 78% 0%, #ffd700 9%, transparent 9%),
    radial-gradient(circle at 92% 0%, #ffd700 6%, transparent 6%);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.2));
}
.frosting-top {
  position: absolute;
  top: -8px;
  left: 5%;
  width: 90%;
  height: 14px;
  background: linear-gradient(180deg, #fff 0%, #ffd700 100%);
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}
.cherry {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #ff4d4d, #a00000);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4), inset -3px -3px 6px rgba(0,0,0,0.3);
}
.cherry::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 8px;
  width: 2px;
  height: 12px;
  background: #2d5016;
  transform: rotate(15deg);
}
.sprinkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sprinkles span {
  position: absolute;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(30deg);
}
.sprinkles span:nth-child(1) { top: 20%; left: 20%; background: #ffd700; }
.sprinkles span:nth-child(2) { top: 40%; left: 70%; background: #06b6d4; transform: rotate(-45deg); }
.sprinkles span:nth-child(3) { top: 60%; left: 30%; background: #f472b6; }
.sprinkles span:nth-child(4) { top: 30%; left: 60%; background: #43e97b; transform: rotate(60deg); }
.sprinkles span:nth-child(5) { top: 55%; left: 45%; background: #a78bfa; }
.sprinkles span:nth-child(6) { top: 45%; left: 15%; background: #ffd700; transform: rotate(-30deg); }
.candle-3d {
  position: absolute;
  bottom: 295px;
  width: 14px;
  height: 60px;
  background: repeating-linear-gradient(180deg,
    #ffd700 0px, #ffd700 8px,
    #fff 8px, #fff 16px);
  border-radius: 3px;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}
.candle-3d:hover { transform: scale(1.15); filter: brightness(1.2); }
.candle-3d:nth-child(1) { left: 105px; }
.candle-3d:nth-child(2) { left: 135px; }
.candle-3d:nth-child(3) { left: 165px; }
.candle-3d:nth-child(4) { left: 195px; }
.candle-3d:nth-child(5) { left: 225px; }
.wick {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #333;
}
.flame-3d {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 28px;
  border-radius: 50% 50% 20% 20%;
  background: radial-gradient(ellipse at 50% 70%, #fff 0%, #ffeb3b 20%, #ff9800 60%, #ff5722 100%);
  box-shadow: 0 0 25px #ff9800, 0 0 50px #ffeb3b, 0 0 80px rgba(255,152,0,0.6);
  animation: flameFlicker 0.15s infinite alternate;
  transform-origin: bottom;
}
.flame-inner {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 14px;
  background: radial-gradient(ellipse, #fff 0%, #a8e0ff 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0.8;
}
@keyframes flameFlicker {
  0% { transform: translateX(-50%) scale(1) rotate(-3deg); }
  100% { transform: translateX(-50%) scale(1.1) rotate(3deg); }
}
.candle-3d[data-lit="false"] .flame-3d { display: none; }
.smoke {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 45px;
  background: radial-gradient(circle, rgba(200,200,220,0.7), transparent);
  border-radius: 50%;
  animation: smokeUp 2s ease-out forwards;
  pointer-events: none;
}
@keyframes smokeUp {
  0% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -100px) scale(2.5); opacity: 0; }
}

/* ========= SCENE 6: BALLOONS ========= */
.balloon-sky {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 450px;
  overflow: hidden;
  margin: 20px 0;
}
.balloon {
  position: absolute;
  width: 85px;
  height: 105px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  cursor: pointer;
  animation: balloonFloat 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}
.balloon::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: inherit;
}
.balloon::after {
  content: '';
  position: absolute;
  bottom: -110px;
  left: 50%;
  width: 1.5px;
  height: 110px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1));
}
.balloon:hover {
  transform: scale(1.15) translateY(-15px);
  filter: drop-shadow(0 20px 30px rgba(255,215,0,0.6));
}
.balloon.popped {
  animation: balloonPop 0.5s cubic-bezier(0.5, 0, 0.5, 1) forwards;
  pointer-events: none;
}
@keyframes balloonPop {
  0% { transform: scale(1); opacity: 1; }
  30% { transform: scale(1.4); opacity: 0.7; filter: brightness(1.8); }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes balloonFloat {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}
.floating-message {
  min-height: 100px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: #fff;
  text-shadow: 0 0 30px rgba(255,215,0,0.8);
  margin: 20px 0;
  opacity: 0;
  padding: 20px;
  transition: opacity 0.5s;
}
.floating-message.show {
  opacity: 1;
  animation: floatMsg 3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes floatMsg {
  0% { transform: translateY(30px) scale(0.7); filter: blur(20px); }
  50% { transform: translateY(-8px) scale(1.05); filter: blur(0); }
  100% { transform: translateY(0) scale(1); filter: blur(0); }
}

/* ========= SCENE 7: PHOTO GALLERY ========= */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px auto 30px;
  max-width: 1100px;
  padding: 0 10px;
  min-height: 240px;
}
.photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 215, 0, 0.25);
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  animation: photoIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s, border-color 0.5s;
}
@keyframes photoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.5s;
  filter: saturate(1.05);
}
.photo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s;
}
.photo-tile:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.7);
  box-shadow: 0 30px 60px rgba(255, 215, 0, 0.25),
              0 0 40px rgba(167, 139, 250, 0.35);
}
.photo-tile:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.05); }
.photo-tile:hover::after { opacity: 0.2; }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(167,139,250,0.05));
  border: 2px dashed rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  color: rgba(255,255,255,0.75);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.gallery-empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: bob 4s ease-in-out infinite;
}
.gallery-empty p { font-size: 1.2rem; margin: 6px 0; }
.gallery-empty .empty-hint { font-size: 0.95rem; opacity: 0.7; }
.gallery-empty code {
  background: rgba(255,215,0,0.15);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  color: #ffd700;
  font-size: 0.85em;
}

/* ========= PHOTO LIGHTBOX ========= */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.photo-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 60px rgba(255,215,0,0.15);
  border: 2px solid rgba(255,215,0,0.4);
  z-index: 2;
  animation: lbZoom 0.5s cubic-bezier(0.16,1,0.3,1);
}
@keyframes lbZoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,215,0,0.4);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  top: 25px; right: 25px;
  width: 48px; height: 48px;
  font-size: 1.8rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 2.2rem;
}
.lightbox-nav.lb-prev { left: 25px; }
.lightbox-nav.lb-next { right: 25px; }
.lightbox-close:hover, .lightbox-nav:hover {
  background: linear-gradient(45deg, #ffd700, #a78bfa);
  box-shadow: 0 10px 30px rgba(167,139,250,0.5);
  transform: scale(1.1);
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.1); }

/* ========= WARP / HYPERSPACE CANVAS ========= */
#warpCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9996;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
#warpCanvas.active { opacity: 1; }

/* ========= TOAST ========= */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(167,139,250,0.15));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,215,0,0.4);
  color: #fff;
  padding: 14px 26px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========= SCENE 8: LETTER ========= */
.letter-paper {
  position: relative;
  max-width: 720px;
  margin: 40px auto;
  padding: 60px 55px;
  background: linear-gradient(135deg, #fff9ec 0%, #ffe9c9 100%);
  color: #3a2f1a;
  border-radius: 6px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 80px rgba(255,215,0,0.1);
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  line-height: 2;
  min-height: 420px;
  transform: rotate(-0.8deg);
}
.letter-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 35px;
  background: repeating-linear-gradient(90deg,
    transparent, transparent 8px,
    rgba(255,215,0,0.15) 8px, rgba(255,215,0,0.15) 16px);
}
.paper-fold {
  position: absolute;
  top: 0; right: 0;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, transparent 50%, #ffd58a 50%);
  border-radius: 0 6px 0 6px;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.15);
}
.type-cursor {
  animation: blink 0.7s infinite;
  color: #b8860b;
  font-weight: 700;
}
@keyframes blink {
  0%,49% { opacity: 1; }
  50%,100% { opacity: 0; }
}

/* ========= SCENE 9: GIFT WISHLIST ========= */
.gift-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 30px auto;
  flex-wrap: wrap;
  justify-content: center;
}
#giftInput {
  flex: 1;
  min-width: 260px;
  padding: 16px 26px;
  border-radius: 40px;
  border: 1.5px solid rgba(255,215,0,0.4);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}
#giftInput:focus {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255,215,0,0.4);
  background: rgba(255,255,255,0.12);
}
#giftInput::placeholder { color: rgba(255,255,255,0.4); font-style: italic; }
.add-gift-btn {
  padding: 16px 32px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #2d1b5c;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(255,215,0,0.4);
  letter-spacing: 1px;
}
.add-gift-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,215,0,0.7);
}
.gift-list {
  max-width: 700px;
  margin: 30px auto;
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.gift-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.4);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
}
.gift-item {
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(167,139,250,0.1));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: giftIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes giftIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gift-item:hover {
  transform: translateY(-5px);
  border-color: #ffd700;
  box-shadow: 0 15px 40px rgba(255,215,0,0.3);
}
.gift-item .gift-icon {
  font-size: 1.8rem;
}
.gift-item .gift-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}
.gift-item .gift-remove {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}
.gift-item .gift-remove:hover {
  background: rgba(255,20,20,0.6);
  transform: scale(1.15);
}
.gift-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 25px 0;
  flex-wrap: wrap;
}

/* ========= SCENE 10: FINALE ========= */
#scene-10 { background: rgba(0,0,0,0.5); }
#fireworks-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.finale-content { position: relative; z-index: 2; }
.finale-emojis {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-bottom: 30px;
}
.finale-emojis span {
  font-size: 3.5rem;
  display: inline-block;
  animation: emojiBounce 2.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  filter: drop-shadow(0 5px 15px rgba(255,215,0,0.5));
}
.finale-emojis span:nth-child(1) { animation-delay: 0s; }
.finale-emojis span:nth-child(2) { animation-delay: 0.2s; }
.finale-emojis span:nth-child(3) { animation-delay: 0.4s; }
.finale-emojis span:nth-child(4) { animation-delay: 0.6s; }
.finale-emojis span:nth-child(5) { animation-delay: 0.8s; }
@keyframes emojiBounce {
  0%,100% { transform: translateY(0) scale(1) rotate(0); }
  50% { transform: translateY(-25px) scale(1.2) rotate(12deg); }
}
.finale-main {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  color: #fff;
  text-shadow: 0 0 60px rgba(255,255,255,0.6);
  letter-spacing: 2px;
  line-height: 1;
}
.finale-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 8rem);
  background: linear-gradient(45deg, #ffd700, #fff, #a78bfa, #ffd700);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  filter: drop-shadow(0 0 50px rgba(255,215,0,0.9));
  margin: 15px 0 40px;
  line-height: 1;
  letter-spacing: -1px;
}
.finale-message {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 2;
  color: rgba(255,255,255,0.95);
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: 1px;
}
.finale-sub {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #ffd700;
  letter-spacing: 2px;
}
.finale-signature {
  margin-top: 40px;
}
.finale-signature p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
}
.finale-signature .signer {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: #ffd700;
  margin-top: 5px;
}
.finale-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========= UI OVERLAY ========= */
.ui-overlay {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Hide progress bar completely on the finale so it doesn't clash with emojis */
body:has(#scene-10.active) .ui-overlay,
body.on-finale .ui-overlay {
  opacity: 0;
  transform: translateX(-50%) translateY(-30px);
  pointer-events: none;
}
/* Also hide skip button on the finale — nothing to skip to */
body:has(#scene-10.active) .skip-btn,
body.on-finale .skip-btn {
  opacity: 0;
  pointer-events: none;
}
/* Finale scene padding — push everything down so emojis clear the top */
#scene-10 .scene-content { padding-top: 40px; }
.progress-track {
  width: 220px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #ffd700, #a78bfa, #06b6d4);
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 15px rgba(167,139,250,0.6);
}
.progress-label {
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.sound-toggle, .skip-btn {
  position: fixed;
  bottom: 25px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,215,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  font-size: 1.4rem;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.sound-toggle { right: 25px; }
.skip-btn { right: 90px; }
.sound-toggle:hover, .skip-btn:hover {
  background: linear-gradient(45deg, #ffd700, #a78bfa);
  border-color: transparent;
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(167,139,250,0.5);
}
.sound-toggle:active, .skip-btn:active { transform: scale(0.95); }
.sound-toggle.muted { opacity: 0.5; }

/* ========= CHAPTER MENU ========= */
.chapter-menu-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,215,0,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  font-size: 1.6rem;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  user-select: none;
}
.chapter-menu-btn:hover {
  background: linear-gradient(45deg, #ffd700, #a78bfa);
  border-color: transparent;
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(167,139,250,0.5);
}
.chapter-menu-btn.active {
  background: linear-gradient(45deg, #ffd700, #a78bfa);
  border-color: transparent;
}
.chapter-menu {
  position: fixed;
  bottom: 90px;
  left: 25px;
  width: 300px;
  max-height: 480px;
  overflow-y: auto;
  background: rgba(20, 10, 45, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,215,0,0.35);
  border-radius: 20px;
  padding: 12px;
  z-index: 600;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(167,139,250,0.2);
}
.chapter-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chapter-menu-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: #ffd700;
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.chapter-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.chapter-item:hover {
  background: rgba(255,215,0,0.08);
  color: #fff;
  transform: translateX(4px);
}
.chapter-item.active {
  background: linear-gradient(90deg, rgba(255,215,0,0.15), rgba(167,139,250,0.15));
  color: #ffd700;
  font-weight: 500;
}
.chapter-item .ch-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  color: #ffd700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid rgba(255,215,0,0.3);
}
.chapter-item.active .ch-num {
  background: linear-gradient(45deg, #ffd700, #a78bfa);
  color: #2d1b5c;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}
.chapter-item .ch-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}
/* Scrollbar */
.chapter-menu::-webkit-scrollbar { width: 6px; }
.chapter-menu::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 4px; }

/* Hide menu button on finale too (to match the other UI) */
body:has(#scene-10.active) .chapter-menu-btn,
body.on-finale .chapter-menu-btn {
  opacity: 0;
  pointer-events: none;
}

/* ========= AGE BADGE (26 on cake) ========= */
.age-badge {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #7c3aed;
  text-shadow: 0 2px 4px rgba(255,215,0,0.6);
  z-index: 4;
  pointer-events: none;
  letter-spacing: 1px;
}

/* ========= CAROUSEL ITEM BACKGROUNDS ========= */
.ci-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.ci-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.ci-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.ci-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.ci-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.ci-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }
.ci-7 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #333; }
.ci-8 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #333; }

/* ========= FINALE main sup ========= */
.finale-main sup {
  font-size: 0.5em;
  color: #ffd700;
  vertical-align: super;
  margin-left: 4px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 700px) {
  .story-cards { grid-template-columns: 1fr; }
  .carousel-arrow { width: 48px; height: 48px; font-size: 1.7rem; }
  .carousel-arrow.left { left: 10px; }
  .carousel-arrow.right { right: 10px; }
  .letter-paper { padding: 40px 25px; font-size: 1.3rem; }
  .journey-btn { padding: 14px 30px; font-size: 0.8rem; letter-spacing: 3px; }
  .finale-emojis span { font-size: 2.2rem; }
  .finale-emojis { gap: 12px; }
  .cake-3d { transform: scale(0.8); }
  .balloon { width: 65px; height: 80px; }
  .portal-container { width: 400px; height: 400px; }
  .scene { padding: 40px 15px; }
  .gift-form { flex-direction: column; }
  #giftInput, .add-gift-btn { width: 100%; }
}
