/* styles.css — navjot.dev birthday field */
:root {
  --sky-0: #1b0a31;
  --sky-1: #3c2068;
  --sky-2: #7d4a9e;
  --sky-3: #d59ec9;
  --text: #fbf2ff;
  --accent: #ecc8ff;
  --glow: #c79bf0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%; width: 100%;
  overflow: hidden;
  background: var(--sky-0);
  font-family: 'Jost', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

#stage {
  position: fixed; inset: 0;
  background:
    radial-gradient(140% 95% at 50% 118%, var(--sky-3) 0%, transparent 45%),
    linear-gradient(to bottom, var(--sky-0) 0%, var(--sky-1) 48%, var(--sky-2) 100%);
  transition: background 1.2s ease;
  overflow: hidden;
}
body.light-bg { color: #583a6e; }

/* horizon haze */
#stage::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 46%;
  background: radial-gradient(120% 120% at 50% 130%, var(--glow) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}
body.light-bg #stage::after { mix-blend-mode: multiply; opacity: 0.28; }

/* ground mist + vignette (depth/polish) */
#ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(to top, var(--sky-3) 0%, transparent 100%);
  opacity: 0.5; pointer-events: none; z-index: 3; mix-blend-mode: screen;
}
body.light-bg #ground { mix-blend-mode: multiply; opacity: 0.32; }
#vignette {
  position: fixed; inset: 0; z-index: 7; pointer-events: none;
  box-shadow: inset 0 0 200px 46px rgba(12,5,26,0.55);
}
body.light-bg #vignette { box-shadow: inset 0 0 160px 40px rgba(150,110,170,0.2); }

canvas { position: fixed; inset: 0; display: block; }
#field-canvas { z-index: 2; }
#petal-canvas { z-index: 6; pointer-events: none; }

/* ---------- revealed scene content ---------- */
#scene {
  position: fixed; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease 0.15s;
}
#scene.revealed { opacity: 1; }

.hero {
  text-align: center;
  margin-top: clamp(4vh, 7vh, 11vh);
  transform: translateY(22px);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) 0.25s, opacity 1.1s ease 0.25s;
}
#scene.revealed .hero { transform: none; opacity: 1; }

.hero { position: relative; }
.hero::before {
  content: ''; position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
  width: 74%; height: 360px;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 68%);
  opacity: 0.2; filter: blur(34px); pointer-events: none; z-index: -1;
}
body.light-bg .hero::before { opacity: 0.3; }
.hero-shift {
  transform: translate(var(--hx, 0px), var(--hy, 0px));
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.kicker {
  font-family: 'Sacramento', cursive;
  font-size: clamp(34px, 5.6vw, 64px);
  color: var(--accent);
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-name {
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(62px, 14.5vw, 200px);
  line-height: 0.94;
  margin: 0.02em 0 0;
  color: var(--text);
  letter-spacing: 0;
  text-shadow: 0 6px 60px rgba(120,60,170,0.45), 0 2px 18px rgba(120,60,170,0.3);
}
body.light-bg .hero-name { text-shadow: 0 6px 50px rgba(180,130,210,0.5); }

.subline {
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--text);
  opacity: 0.9;
  margin-top: 0.9em;
  font-weight: 600;
  text-shadow: 0 2px 20px rgba(22,6,42,0.95), 0 0 3px rgba(22,6,42,0.7);
}
.subline span { white-space: nowrap; }
body.light-bg .subline { text-shadow: 0 1px 12px rgba(255,255,255,0.9), 0 0 3px rgba(255,255,255,0.8); opacity: 0.78; }

/* ---------- candle ---------- */
#candle {
  position: fixed;
  left: 50%; bottom: clamp(11%, 13.5%, 16%);
  transform: translateX(-50%) translateX(var(--cx, 0px));
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  transition: opacity 1s ease 0.7s;
}
#scene.revealed ~ #candle, #candle { }
#scene.revealed + #candle { opacity: 1; }

#candle .candle-pillar {
  width: 13px; height: 42px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #fff0fb, #d9b6e8 42%, #b487cf 72%, #e6c8f0);
  box-shadow: inset 0 0 6px rgba(255,255,255,0.5), 0 4px 10px rgba(60,20,90,0.35);
  position: relative; z-index: 4; margin-bottom: -7px;
}
#candle .candle-pillar::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 8px, rgba(255,255,255,0.35) 8px 10px);
  border-radius: inherit; opacity: 0.6;
}
.wick { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 2px; height: 8px; background: #3a2a22; border-radius: 2px; }

/* ---------- cake ---------- */
.cake { position: relative; display: flex; flex-direction: column; align-items: center; }
.cake-glow {
  position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
  width: 250px; height: 180px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in oklab, var(--glow) 72%, #fff) 0%, transparent 64%);
  opacity: 0.42; filter: blur(13px); pointer-events: none; z-index: -1;
}
.cake-frost {
  width: 132px; height: 32px; border-radius: 66px / 24px;
  background: linear-gradient(#fff7fc 0%, #f6e2f5 70%, #ecd0ec 100%);
  box-shadow: inset 0 3px 5px rgba(255,255,255,0.95), 0 5px 0 -1px #e7c9e7;
  position: relative; z-index: 3;
}
.cake-frost::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: -6px; height: 16px;
  background:
    radial-gradient(circle at 12% 0, #fff7fc 0 7px, transparent 8px),
    radial-gradient(circle at 32% 0, #fff7fc 0 9px, transparent 10px),
    radial-gradient(circle at 52% 0, #fff7fc 0 6px, transparent 7px),
    radial-gradient(circle at 72% 0, #fff7fc 0 9px, transparent 10px),
    radial-gradient(circle at 90% 0, #fff7fc 0 7px, transparent 8px);
}
.cake-tier {
  width: 146px; height: 58px; margin-top: 2px;
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(180deg, #ecd8f7 0%, #d9b8ee 58%, #c79ee0 100%);
  box-shadow: inset 0 -9px 16px rgba(120,70,160,0.28), inset 0 3px 6px rgba(255,255,255,0.4), 0 12px 28px rgba(55,18,85,0.5);
  position: relative; z-index: 2; overflow: hidden;
}
.cake-tier::before {
  content: ''; position: absolute; left: 0; right: 0; top: 52%; height: 13px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #ffdcef 0 13px, #f3b3dc 13px 26px);
  opacity: 0.85;
}
.cake-tier::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, #fff0a8 0 2.5px, transparent 3px),
    radial-gradient(circle at 70% 30%, #b6e0ff 0 2.5px, transparent 3px),
    radial-gradient(circle at 40% 78%, #ffd0e8 0 2.5px, transparent 3px),
    radial-gradient(circle at 85% 72%, #d8c0ff 0 2.5px, transparent 3px);
}
.cake-plate {
  width: 168px; height: 16px; margin-top: -3px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 32%, #f2e7f6, #c8acda 80%);
  box-shadow: 0 9px 22px rgba(35,10,65,0.55);
  position: relative; z-index: 1;
}

.flame-wrap { position: relative; height: 60px; width: 40px; display: flex; justify-content: center; align-items: flex-end; }
#flame {
  --lean: 0deg; --squish: 1;
  position: absolute; bottom: 0;
  width: 20px; height: 42px;
  border-radius: 50% 50% 50% 50% / 64% 64% 40% 40%;
  background: radial-gradient(circle at 50% 78%, #fff6d8 0%, #ffd27a 32%, #ff9f43 64%, #ff6b3d 100%);
  transform-origin: 50% 100%;
  transform: rotate(var(--lean)) scaleY(var(--squish));
  box-shadow: 0 0 26px 8px rgba(255,170,80,0.6), 0 0 70px 26px rgba(255,140,60,0.35);
  animation: flicker 0.16s infinite alternate ease-in-out;
  cursor: pointer;
}
#flame::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 9px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, #fffdf2, #ffe7a8 70%, transparent);
}
.flame-glow {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,90,0.45) 0%, transparent 62%);
  animation: glowpulse 2.6s infinite ease-in-out;
  pointer-events: none;
}
@keyframes flicker {
  from { transform: rotate(calc(var(--lean) - 2deg)) scaleY(calc(var(--squish) * 0.97)); }
  to   { transform: rotate(calc(var(--lean) + 2deg)) scaleY(calc(var(--squish) * 1.03)); }
}
@keyframes glowpulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

#candle.out #flame, #candle.out .flame-glow { opacity: 0; transform: scale(0.3); transition: opacity 0.3s, transform 0.3s; }
#candle.listening #flame { animation-duration: 0.08s; }

/* cake contrast on light moods */
body.light-bg .cake-glow { background: radial-gradient(ellipse at 50% 45%, rgba(255,170,205,0.55) 0%, transparent 62%); opacity: 0.55; }
body.light-bg .cake-plate { box-shadow: 0 9px 22px rgba(120,70,150,0.4); }
body.light-bg .cake-tier { box-shadow: inset 0 -9px 16px rgba(150,110,180,0.3), inset 0 3px 6px rgba(255,255,255,0.6), 0 12px 26px rgba(140,95,165,0.42); }

#smoke { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; opacity: 0; }
#smoke.rising::before, #smoke.rising::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(220,210,230,0.5);
  animation: smoke 2.4s ease-out forwards;
}
#smoke.rising::after { animation-delay: 0.3s; }
@keyframes smoke {
  0% { opacity: 0; transform: translate(-50%,0) scale(0.6); }
  20% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-50%,-70px) scale(2.4); filter: blur(6px); }
}

#candle-controls {
  position: fixed; left: 50%; bottom: clamp(4%, 5.5%, 7%);
  transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transition: opacity 1s ease 0.9s; pointer-events: auto;
}
#scene.revealed ~ #candle-controls { opacity: 1; }
#candle-hint, #mic-btn {
  font-family: 'Jost', sans-serif;
}
#candle-hint { margin-bottom: 8px; }
#candle-hint {
  font-size: 13px; letter-spacing: 0.12em; text-transform: lowercase;
  color: var(--text); opacity: 0.75; transition: opacity 0.4s;
  text-shadow: 0 1px 12px rgba(22,6,42,0.9);
}
body.light-bg #candle-hint { text-shadow: 0 1px 8px rgba(255,255,255,0.95); opacity: 0.65; }
#mic-btn {
  margin-top: 10px;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: linear-gradient(135deg, var(--accent), var(--glow));
  color: #2a0f3f;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow:
    0 6px 20px rgba(20,6,42,0.45),
    0 0 22px color-mix(in oklab, var(--glow) 55%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.6);
  animation: micbreathe 2.6s ease-in-out infinite;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}
#mic-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 9px 26px rgba(20,6,42,0.5),
    0 0 32px color-mix(in oklab, var(--glow) 80%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
#mic-btn.listening { animation: pulse 1.4s infinite; }
#mic-btn.denied { opacity: 0.75; animation: none; }
@keyframes micbreathe {
  0%, 100% { box-shadow: 0 6px 20px rgba(20,6,42,0.45), 0 0 16px color-mix(in oklab, var(--glow) 40%, transparent), inset 0 1px 0 rgba(255,255,255,0.6); }
  50%      { box-shadow: 0 6px 22px rgba(20,6,42,0.5),  0 0 34px color-mix(in oklab, var(--glow) 85%, transparent), inset 0 1px 0 rgba(255,255,255,0.6); }
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 11px transparent; } }

#wish-line {
  position: fixed; left: 50%; bottom: clamp(26%, 30%, 34%);
  transform: translate(-50%, 8px);
  z-index: 5;
  font-family: 'Sacramento', cursive;
  font-size: clamp(34px, 5.4vw, 62px);
  color: var(--accent);
  opacity: 0; pointer-events: none;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
  transition: opacity 0.7s ease, transform 0.7s ease;
  white-space: nowrap;
}
#wish-line.show { opacity: 1; transform: translate(-50%, 0); }
#wish-line.done { color: var(--text); }

/* prose note lines that fade in below the script wish-line (never-wilt + hopeful) */
#wish-note {
  position: fixed; left: 50%; bottom: clamp(17%, 21%, 25%);
  transform: translateX(-50%);
  z-index: 5; width: min(86vw, 25rem);
  display: flex; flex-direction: column; gap: 9px; align-items: center;
  text-align: center; pointer-events: none;
}
.wish-note-line {
  font-family: 'Jost', sans-serif;
  font-size: clamp(15px, 3.4vw, 19px);
  font-weight: 400; line-height: 1.5; letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(20,6,42,0.9), 0 1px 3px rgba(20,6,42,0.7);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.wish-note-line.show { opacity: 0.95; transform: translateY(0); }
body.light-bg .wish-note-line { color: #4a2d63; text-shadow: 0 1px 10px rgba(255,255,255,0.95); }

/* ---------- wrap (unwrap) scene ---------- */
#wrap-scene {
  position: fixed; inset: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(140% 95% at 50% 120%, var(--sky-3) 0%, transparent 46%),
    linear-gradient(to bottom, var(--sky-0) 0%, var(--sky-1) 50%, var(--sky-2) 100%);
  transition: opacity 0.8s ease;
}
#wrap-scene::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 1.5px at 18% 24%, #fff, transparent),
    radial-gradient(circle 1px at 76% 17%, #fff, transparent),
    radial-gradient(circle 1.6px at 62% 36%, var(--accent), transparent),
    radial-gradient(circle 1px at 31% 64%, #fff, transparent),
    radial-gradient(circle 1.4px at 86% 68%, var(--accent), transparent),
    radial-gradient(circle 1px at 47% 12%, #fff, transparent),
    radial-gradient(circle 1.2px at 9% 46%, var(--accent), transparent);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.55; } 50% { opacity: 0.95; } }
#wrap-scene.gone { opacity: 0; pointer-events: none; }

.wrap-psst {
  font-family: 'Sacramento', cursive;
  font-size: clamp(30px, 4.4vw, 50px);
  color: var(--accent);
  margin-bottom: 42px;
  opacity: 1;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#giftbox {
  position: relative; width: 150px; height: 130px;
  animation: bob 3.4s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(60,15,90,0.55));
}
#giftbox::before {
  content: ''; position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%);
  width: 330px; height: 330px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  opacity: 0.5; filter: blur(6px); z-index: -1; pointer-events: none;
  animation: glowpulse 3.6s ease-in-out infinite;
}
.gift-hrib { position: absolute; bottom: 36px; left: 5px; width: 140px; height: 20px; background: linear-gradient(#ffe3f3, #f3a8d8); opacity: 0.92; box-shadow: inset 0 1px 3px rgba(255,255,255,0.5); }
.gift-body {
  position: absolute; bottom: 0; left: 5px; width: 140px; height: 96px;
  border-radius: 8px;
  background: linear-gradient(160deg, #a36fd6, #7c45c0 60%, #5e2ea0);
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.25);
}
.gift-lid {
  position: absolute; top: 18px; left: 0; width: 150px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(160deg, #c79bf0, #9c6fda 70%, #7c45c0);
  box-shadow: 0 6px 12px rgba(40,10,70,0.35), inset 0 2px 8px rgba(255,255,255,0.3);
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(.5,-0.3,.3,1), opacity 0.5s;
}
.gift-vrib { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 96px; background: linear-gradient(#ffd9f0, #f3a8d8); opacity: 0.92; }
.gift-bow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 72px; height: 38px; z-index: 2; transition: transform 0.5s, opacity 0.5s; }
.gift-bow::before, .gift-bow::after {
  content: ''; position: absolute; top: 0; width: 36px; height: 38px;
  border-radius: 62% 42% 50% 50%;
  background: radial-gradient(circle at 38% 38%, #ffe3f3, #f48fc4 78%);
  box-shadow: 0 4px 10px rgba(70,15,90,0.3), inset 0 0 6px rgba(255,255,255,0.4);
}
.gift-bow::before { left: -4px; transform: rotate(-20deg); }
.gift-bow::after { right: -4px; transform: rotate(20deg) scaleX(-1); }
.bow-knot { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff9ccb, #ef5fa6); z-index: 3; box-shadow: inset 0 0 5px rgba(255,255,255,0.5); }

#giftbox.opening .gift-lid { transform: translateY(-44px) rotate(-16deg); opacity: 0; }
#giftbox.opening .gift-bow { transform: translateX(-50%) translateY(-60px) scale(0.6); opacity: 0; }
#giftbox.opening .gift-body { animation: jiggle 0.5s ease; }
#giftbox.opening { animation: none; }

.wrap-tap {
  margin-top: 36px;
  font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text); opacity: 0.8; font-weight: 600;
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes jiggle { 0%,100% { transform: scale(1); } 30% { transform: scale(1.08,0.94); } 60% { transform: scale(0.97,1.03); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%,100% { opacity: 0.55; } 50% { opacity: 0.95; } }

/* ---------- controls ---------- */
#controls {
  position: fixed; top: 18px; right: 18px; z-index: 9;
  display: flex; gap: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease 0.3s;
}
#controls.show { opacity: 1; pointer-events: auto; }
.ctrl-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--sky-0) 55%, transparent);
  color: var(--text);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.25s, box-shadow 0.25s;
}
.ctrl-btn:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--accent) 22%, transparent); }
#music-btn.on { background: color-mix(in oklab, var(--accent) 34%, transparent); box-shadow: 0 0 16px color-mix(in oklab, var(--accent) 50%, transparent); }
#music-btn .wave { display: none; }
#music-btn.on .eqbar { animation: eq 0.9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  #giftbox, .flame-glow, #flame { animation: none !important; }
  .wrap-psst, .wrap-tap { animation: none !important; opacity: 1 !important; }
  #scene, .hero { transition: none !important; }
  #intro { animation: none !important; opacity: 0 !important; }
  #wrap-scene::before { animation: none !important; }
}

/* intro fade-in */
#intro {
  position: fixed; inset: 0; z-index: 20; background: #100619;
  pointer-events: none;
  animation: introOut 1.1s ease 0.15s forwards;
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  .hero { margin-top: clamp(7vh, 10vh, 13vh); }
  .kicker { font-size: clamp(30px, 9vw, 50px); }
  .hero-name { font-size: clamp(58px, 21vw, 124px); }
  .subline { font-size: 12px; letter-spacing: 0.1em; margin-top: 1em; padding: 0 16px; }
  .subline span { white-space: nowrap; }
  .hero::before { height: 240px; }

  #candle { bottom: clamp(17%, 19%, 21%); }
  #candle .candle-pillar { height: 38px; }
  .cake-frost { width: 116px; }
  .cake-tier { width: 128px; height: 52px; }
  .cake-plate { width: 150px; }
  .cake-glow { width: 210px; height: 150px; }

  #candle-controls { bottom: clamp(3.5%, 4.5%, 6%); }
  #candle-hint { font-size: 12px; }
  #mic-btn { padding: 13px 22px; font-size: 14px; }

  #wish-line {
    bottom: 37%;
    font-size: clamp(30px, 9vw, 46px);
    white-space: normal;
    width: min(86vw, 460px);
    text-align: center; line-height: 1.05;
  }
  #wish-note { bottom: 24%; width: min(90vw, 24rem); }
  #controls { top: 14px; right: 14px; }
  .ctrl-btn { width: 46px; height: 46px; }
}

/* short / landscape phones */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { margin-top: 3vh; }
  .kicker { font-size: clamp(20px, 6.5vh, 38px); }
  .hero-name { font-size: clamp(42px, 16vh, 96px); }
  .subline { margin-top: 0.5em; font-size: 12px; }
  .hero::before { height: 180px; }
  #candle { bottom: 18%; }
  #candle .candle-pillar { height: 30px; }
  .cake-frost { width: 104px; height: 26px; }
  .cake-tier { width: 116px; height: 44px; }
  .cake-plate { width: 136px; }
  .cake-glow { width: 180px; height: 130px; }
  .flame-wrap { height: 48px; }
  #flame { height: 34px; }
  #candle-controls { flex-direction: row; align-items: center; gap: 10px; bottom: 3%; }
  #candle-hint { display: none; }
  #mic-btn { padding: 9px 18px; }
  #wish-line { bottom: 46%; }
  #wish-note { bottom: 20%; width: min(78vw, 32rem); }
  .wish-note-line { font-size: 13px; line-height: 1.4; gap: 5px; }
}
