/* ============================================================
   Birthday page: "sticker scrapbook" style, one screen at a time
   ============================================================ */
:root {
  --cream: #FFF4EC;
  --paper: #FFFBF5;
  --ink: #3B2142;
  --ink-soft: #735A78;
  --pink: #FF6B9A;
  --pink-2: #FFA5C0;
  --pink-3: #FFE0EA;
  --butter: #FFD36E;
  --lilac: #B9A5FF;
  --lilac-2: #E9E2FF;
  --mint: #7ED8BE;
  --sky: #8CCBFF;

  --pop-sm: 2px 3px 0 var(--ink);
  --pop: 4px 5px 0 var(--ink);
  --pop-lg: 6px 7px 0 var(--ink);

  --font: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;

  --top: 60px;   /* room for the progress hearts */
  --foot: 100px; /* room for the Next button */
  --dots: radial-gradient(rgba(59, 33, 66, .08) 1.3px, transparent 1.6px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  position: fixed; inset: 0;
  margin: 0; overflow: hidden; overscroll-behavior: none;
  font-family: var(--font); color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
svg { display: block; }
p { margin: 0; }
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
button:disabled { opacity: .35; cursor: default; }
.hand { font-family: var(--hand); }

/* ---------- shared bits ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--pop-sm);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.chip--pulse { animation: chipPulse 1.4s ease-in-out infinite; }
@keyframes chipPulse { 50% { transform: scale(1.07) rotate(-2deg); } }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--pop);
  font-size: 17px; font-weight: 600; color: var(--ink);
  transition: box-shadow .12s ease;
}
.btn:active { box-shadow: 1px 1px 0 var(--ink); }
.btn--white { background: #fff; }

.hint { font-size: 15px; color: var(--ink-soft); }

.tape {
  position: absolute; top: -14px; left: 50%; z-index: 3;
  width: 92px; height: 28px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 211, 110, .78);
  clip-path: polygon(4% 0, 96% 0, 100% 20%, 96% 40%, 100% 60%, 96% 80%, 100% 100%, 4% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%, 0 0);
}

.round-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: var(--pop-sm);
  transition: box-shadow .12s;
}
.round-btn:active { box-shadow: 0 0 0 var(--ink); }
.deck-nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; }
.deck-count { min-width: 64px; font-weight: 600; font-size: 16px; }

/* ---------- stage & scenes ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
.scene {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) var(--foot);
  padding: calc(env(safe-area-inset-top) + var(--top)) 20px env(safe-area-inset-bottom);
  text-align: center; overflow: hidden; visibility: hidden; z-index: 0;
  background-color: var(--cream);
  background-image: var(--glow), var(--dots);
  background-size: auto, auto, 22px 22px;
}
.scene.is-active { visibility: visible; z-index: 1; }
.scene__head { position: relative; z-index: 1; max-width: 440px; justify-self: center; }
.scene__main {
  position: relative; z-index: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 0 6px;
}
.fit { position: relative; flex: 1 1 0; min-height: 0; width: 100%; container-type: size; display: grid; place-items: center; }
.fit > * { grid-area: 1 / 1; }

.h2 {
  margin: 12px 0 8px;
  font-size: clamp(36px, 10.5vw, 56px); font-weight: 700; line-height: .98; letter-spacing: -.01em;
}
.h2 em {
  display: inline-block; margin: 0 .1em; font-style: normal; color: var(--pink);
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--ink);
}
.lead { max-width: 30ch; margin: 0 auto; font-size: 16px; line-height: 1.4; color: var(--ink-soft); }

.scene--hero { --glow: radial-gradient(80% 50% at 100% 0%, rgba(255, 165, 192, .5), transparent 70%), radial-gradient(70% 45% at 0% 100%, rgba(185, 165, 255, .38), transparent 70%); }
.scene--cake { --glow: radial-gradient(70% 40% at 0% 15%, rgba(255, 211, 110, .4), transparent 70%), radial-gradient(60% 40% at 100% 90%, rgba(255, 165, 192, .32), transparent 70%); }
.scene--jar { --glow: radial-gradient(70% 45% at 0% 10%, rgba(126, 216, 190, .38), transparent 70%), radial-gradient(60% 40% at 100% 90%, rgba(255, 165, 192, .32), transparent 70%); }
.scene--game { --glow: radial-gradient(75% 45% at 100% 8%, rgba(140, 203, 255, .42), transparent 70%), radial-gradient(60% 40% at 0% 92%, rgba(255, 211, 110, .34), transparent 70%); }
.scene--letter { --glow: radial-gradient(70% 40% at 0% 10%, rgba(255, 165, 192, .44), transparent 70%), radial-gradient(60% 45% at 100% 85%, rgba(185, 165, 255, .36), transparent 70%); }

/* ---------- decorative doodles ---------- */
.doodle {
  position: absolute; z-index: 0; display: block;
  width: var(--s, 24px); height: var(--s, 24px);
  pointer-events: none;
}
.doodle svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- overlays: progress, next, curtain, fx ---------- */
.topbar {
  position: fixed; top: calc(env(safe-area-inset-top) + 14px); left: 0; right: 0; z-index: 1700;
  display: flex; justify-content: center; pointer-events: none;
  opacity: 0; visibility: hidden;
}
.topbar__hearts {
  display: flex; gap: 8px; padding: 6px 12px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: var(--pop-sm);
}
.topbar__hearts i { display: block; width: 20px; height: 20px; }
.topbar__hearts svg { width: 100%; height: 100%; overflow: visible; }
.topbar__hearts path { fill: #fff; transition: fill .3s; }
.topbar__hearts i.is-full path { fill: var(--pink); }

.next {
  position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 22px); z-index: 1800;
  width: max-content; margin: 0 auto;
  padding: 16px 30px; font-size: 18px;
  visibility: hidden; transform: scale(0);
}
.next.is-on { visibility: visible; }

.curtain {
  position: fixed; inset: 0; z-index: 2400; visibility: hidden;
  display: grid; place-items: center; padding: 24px; text-align: center;
  background-color: var(--bg, #FFA5C0);
  background-image: radial-gradient(rgba(255, 255, 255, .4) 1.6px, transparent 2px);
  background-size: 22px 22px;
}
.curtain::before, .curtain::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background: radial-gradient(circle at 11px 11px, var(--bg, #FFA5C0) 10.5px, transparent 11px) 0 0 / 22px 22px repeat-x;
}
.curtain::before { top: -11px; }
.curtain::after { bottom: -11px; }
.curtain__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.curtain__icon { width: 74px; }
.curtain__icon svg { width: 100%; height: auto; overflow: visible; }
.curtain__title {
  font-size: clamp(42px, 12vw, 64px); font-weight: 700; line-height: 1; color: #fff;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--ink);
}

.fx { position: fixed; inset: 0; z-index: 2900; pointer-events: none; overflow: hidden; }
.fx-spark, .fx-heart, .fx-pop { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
.fx-spark svg, .fx-heart svg { width: 100%; height: 100%; overflow: visible; }
.fx-pop {
  font-weight: 700; font-size: 26px; color: var(--butter);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 2px 3px 0 var(--ink); white-space: nowrap;
}

.rotate {
  position: fixed; inset: 0; z-index: 5000; display: none; place-items: center;
  background: var(--cream); text-align: center; font-weight: 600; font-size: 20px;
}
.rotate__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (orientation: landscape) and (max-height: 500px) {
  .rotate { display: grid; }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 2800;
  display: grid; place-items: center;
  padding: 24px; text-align: center;
  background-color: var(--cream);
  background-image: radial-gradient(70% 50% at 50% 45%, rgba(255, 165, 192, .55), transparent 70%), var(--dots);
  background-size: auto, 22px 22px;
}
.intro__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.intro__kicker { font-size: 34px; font-weight: 700; color: var(--pink); transform: rotate(-4deg); }
.intro__title {
  margin: 6px 0 0;
  font-size: clamp(42px, 12.5vw, 64px); font-weight: 700; line-height: .95; white-space: pre-line;
}
.gift { width: min(60vw, 240px, 32vh); margin: 26px 0 16px; }
.gift svg { width: 100%; height: auto; overflow: visible; }

/* ============================================================
   HERO
   ============================================================ */
.scene--hero { grid-template-rows: minmax(0, 1fr) var(--foot); }
.hero__content { position: relative; z-index: 1; align-self: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { margin: 22px 0 0; font-weight: 700; line-height: .92; }
.hero__line { display: block; font-size: clamp(44px, 13vw, 76px); }
.hero__name {
  display: block; margin-top: 8px;
  font-size: clamp(100px, 32vw, 190px); line-height: 1;
  color: var(--pink);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  text-shadow: 5px 7px 0 var(--ink);
  transform: rotate(-4deg);
}
.hero__name .ch { will-change: transform; }
.hero__sub { margin-top: 22px; font-size: 30px; font-weight: 700; color: var(--ink-soft); transform: rotate(-2deg); }
.hero__hint {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: var(--pop-sm);
  font-size: 14px; font-weight: 600;
}
.hero__hint b { color: var(--pink); }

.balloons { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.balloon { position: absolute; pointer-events: auto; width: var(--w); }
.balloon__b { display: block; width: 100%; }
.balloon__b svg { width: 100%; height: auto; overflow: visible; }

/* ============================================================
   01 CAKE
   ============================================================ */
.cake { width: min(100cqw, 330px, 100cqh * 1.03); }
.cake svg { width: 100%; height: auto; overflow: visible; }
.cake .hit { cursor: pointer; }
.cake__controls { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mic-btn { overflow: hidden; }
.mic-btn > * { position: relative; }
.mic-btn__lvl {
  position: absolute !important; inset: 0;
  background: var(--pink-3);
  transform-origin: 0 50%; transform: scaleX(var(--lvl, 0));
  transition: transform .08s linear;
}
.mic-btn.is-on { animation: micRing 1.2s ease-out infinite; }
@keyframes micRing {
  0% { box-shadow: var(--pop), 0 0 0 0 rgba(255, 107, 154, .55); }
  100% { box-shadow: var(--pop), 0 0 0 16px rgba(255, 107, 154, 0); }
}
.wish { max-width: 320px; min-height: 84px; display: grid; place-items: center; }
.wish__text { font-size: 30px; font-weight: 700; line-height: 1.05; }

/* ============================================================
   02 REASONS JAR
   ============================================================ */
.jar { width: min(70cqw, 250px, 100cqh * .8); display: block; }
.jar svg { width: 100%; height: auto; overflow: visible; }
.jar-count { font-weight: 600; font-size: 17px; min-height: 1.4em; }

.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(59, 33, 66, .38); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; }
.note-card {
  position: relative; width: min(86vw, 350px);
  padding: 36px 24px 26px; text-align: center;
  background: radial-gradient(rgba(255, 107, 154, .22) 1.3px, transparent 1.7px) 0 0 / 16px 16px, var(--paper);
  border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: var(--pop-lg);
}
.note-card .chip { background: var(--accent, var(--pink-2)); }
.note-card__text { margin: 18px 0 26px; font-size: 34px; font-weight: 700; line-height: 1.05; }
.note-card.has-photo .note-card__text { margin: 14px 0 0; font-size: 30px; text-wrap: balance; }
.note-card__photo { margin: 14px 0 22px; transform: rotate(-1.5deg); }

/* ============================================================
   03 GAME
   ============================================================ */
.arena {
  position: relative;
  width: min(100cqw, 400px); height: min(100cqh, 560px);
  background: linear-gradient(180deg, #E3F2FF 0%, #F3EDFF 55%, #FFE6EF 100%);
  border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--pop-lg);
  overflow: hidden;
}
.arena__clouds i {
  position: absolute; display: block; width: 90px; height: 30px; border-radius: 99px; background: #fff; opacity: .9;
}
.arena__clouds i::before {
  content: ""; position: absolute; left: 18px; top: -16px; width: 44px; height: 38px; border-radius: 50%; background: #fff;
}
.arena__clouds i:nth-child(1) { top: 22%; left: -10px; }
.arena__clouds i:nth-child(2) { top: 48%; right: -18px; transform: scale(.8); }
.arena__clouds i:nth-child(3) { top: 76%; left: 30%; transform: scale(.65); }
.arena__hud { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: var(--pop-sm);
  font-size: 16px; font-weight: 600;
}
.pill b { font-weight: 700; font-size: 18px; min-width: 1.2em; text-align: center; }
.pill__of { color: var(--ink-soft); font-weight: 500; }
.arena__bar {
  position: absolute; top: 62px; left: 18px; right: 18px; z-index: 3; height: 12px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 99px; overflow: hidden;
}
.arena__bar span {
  display: block; height: 100%;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 8px, var(--pink-2) 8px 16px);
  transform-origin: 0 50%; transform: scaleX(0);
}
.arena__field { position: absolute; inset: 0; z-index: 2; }
.fheart { position: absolute; left: 0; top: 0; padding: 4px; }
.fheart svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 3px 0 rgba(59, 33, 66, .85)); }
.fheart.is-gold svg { filter: drop-shadow(2px 3px 0 rgba(59, 33, 66, .85)) drop-shadow(0 0 10px rgba(255, 211, 110, .95)); }
.plus {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  font-weight: 700; font-size: 26px; color: var(--pink);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 2px 3px 0 var(--ink);
}
.plus.is-gold { color: var(--butter); font-size: 34px; }
.arena__count {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none;
  font-size: 120px; font-weight: 700; color: var(--pink);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 5px 6px 0 var(--ink);
  opacity: 0;
}
.arena__screen {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 22px;
  background: rgba(255, 251, 245, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.arena__panel { display: flex; flex-direction: column; align-items: center; }
.arena__icon { width: 70px; margin-bottom: 10px; }
.arena__icon svg { width: 100%; height: auto; overflow: visible; }
.arena__big { font-size: 32px; font-weight: 700; line-height: 1; }
.arena__msg { margin: 12px 0 22px; max-width: 26ch; font-size: 26px; font-weight: 700; line-height: 1.08; color: var(--ink-soft); }

/* ============================================================
   04 LETTER
   ============================================================ */
.envelope {
  position: relative;
  width: min(88cqw, 340px, 100cqh * 1.1); aspect-ratio: 330 / 228;
  margin-top: min(16cqh, 80px);
  perspective: 900px; cursor: pointer; outline: none;
}
.envelope > * { position: absolute; }
.env-back { inset: 0; background: #FF8FB1; border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--pop-lg); }
.env-paper {
  left: 7%; right: 7%; top: 7%; height: 86%; z-index: 1;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 15px, rgba(255, 107, 154, .25) 15px 16px);
  background-position: 0 22px;
  border: 2.5px solid var(--ink); border-radius: 8px;
}
.env-front { inset: 0; z-index: 2; width: 100%; height: 100%; }
.env-flap { left: 0; top: 0; z-index: 3; width: 100%; height: auto; transform-origin: 50% 0; }
.env-seal { left: 50%; top: 57%; z-index: 4; width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.env-seal svg { width: 100%; height: 100%; overflow: visible; }

.book { position: relative; width: min(100cqw - 8px, 400px); height: min(100cqh - 8px, 640px); }
.book__sheet, .page {
  position: absolute; inset: 0;
  background-color: var(--paper);
  border: 3px solid var(--ink); border-radius: 8px 8px 20px 20px;
}
.book__sheet { box-shadow: var(--pop); }
.book__sheet--1 { transform: rotate(2.6deg) translate(5px, 5px); }
.book__sheet--2 { transform: rotate(-3.2deg) translate(-5px, 8px); }
.page {
  /* text sits on a ruled rhythm; --fs/--lh shrink when a page has a lot to say */
  --fs: 27px; --lh: 38px; --pt: 40px;
  padding: var(--pt) 22px 44px 36px; text-align: left;
  background-image:
    linear-gradient(90deg, transparent 22px, rgba(255, 107, 154, .35) 22px 24px, transparent 24px),
    repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), rgba(255, 107, 154, .22) calc(var(--lh) - 1px) var(--lh));
  background-position: 0 0, 0 calc(var(--pt) - var(--lh) * .21);
  box-shadow: var(--pop-lg);
  font-family: var(--hand); font-size: var(--fs); line-height: var(--lh); font-weight: 500;
  will-change: transform;
}
.page .tape { top: -13px; }
.page .tape--l { left: 20%; transform: translateX(-50%) rotate(-8deg); }
.page .tape--r { left: 80%; transform: translateX(-50%) rotate(7deg); background: rgba(185, 165, 255, .75); }
.page__text { margin: 0 0 var(--lh); }
.page__sign { text-align: right; }
.page__name { text-align: right; font-size: 1.35em; font-weight: 700; color: var(--pink); }
.page__num { position: absolute; right: 18px; bottom: 12px; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.page--cover {
  display: grid; place-items: center; padding: 34px 26px; text-align: center;
  background-image: radial-gradient(rgba(255, 107, 154, .22) 1.3px, transparent 1.7px);
  background-size: 16px 16px; background-position: 0 0;
}
.page__cover { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page__heart { width: 80px; }
.page__heart svg { width: 100%; height: auto; overflow: visible; }
.page__greet { font-size: clamp(40px, 12cqw, 56px); font-weight: 700; line-height: 1.05; color: var(--pink); }
.page__turn { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-soft); animation: nudgeRight 1.4s ease-in-out infinite; }
@keyframes nudgeRight { 50% { transform: translateX(6px); } }

/* ============================================================
   FLOWERS
   ============================================================ */
.scene--flower { --glow: radial-gradient(70% 45% at 50% 40%, rgba(255, 211, 110, .42), transparent 70%), radial-gradient(60% 40% at 100% 90%, rgba(255, 165, 192, .36), transparent 70%); }
.bouquet { display: block; width: min(72cqw, 240px, 100cqh * .8); }
.bouquet svg { width: 100%; height: auto; overflow: visible; }
.flower-note {
  position: relative; width: min(90vw, 360px);
  padding: 22px 20px 16px; text-align: center;
  background: radial-gradient(rgba(255, 107, 154, .2) 1.3px, transparent 1.7px) 0 0 / 16px 16px, var(--paper);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--pop);
  transform: rotate(-1.5deg);
}
.flower-note .tape { top: -13px; }
.flower-note__title { font-size: 27px; font-weight: 700; line-height: 1.05; color: var(--pink); text-wrap: balance; }
.flower-note__text { margin-top: 8px; font-size: 22px; font-weight: 500; line-height: 1.12; text-wrap: pretty; }
.flower-note__sign { margin-top: 8px; font-size: 26px; font-weight: 700; }
.flower-note__sign:empty { display: none; }
/* a framed photo, used in the reason notes and the flower note */
.snap {
  margin: 14px auto 4px; padding: 6px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: var(--pop-sm);
  transform: rotate(1.5deg);
}
.snap img {
  /* full picture where there's room, gently cropped on short phones */
  display: block; width: 100%; aspect-ratio: 1280 / 719;
  max-height: min(200px, 24vh); max-height: min(200px, 24svh);
  object-fit: cover; border-radius: 6px;
}
.fx-ghost { position: absolute; left: 0; top: 0; display: block; }
.fx-ghost svg { width: 100%; height: auto; overflow: visible; }
.fx-petal {
  position: absolute; left: 0; top: 0; display: block; width: 12px; height: 9px;
  border-radius: 80% 0 80% 0; border: 1.5px solid rgba(59, 33, 66, .55);
}
@media (max-height: 720px) {
  .flower-note { padding: 18px 16px 12px; }
  .flower-note__title { font-size: 23px; }
  .flower-note__text { font-size: 19.5px; }
  .flower-note__sign { font-size: 22px; }
}

/* ============================================================
   FINALE night sky
   ============================================================ */
.scene--night {
  display: block; padding: 0; color: #fff;
  background: radial-gradient(120% 80% at 50% 115%, #6A2C78 0%, #2A1544 50%, #140B28 100%);
}
.scene--night canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.night__stars i { position: absolute; display: block; border-radius: 50%; background: #fff; }
.night__text {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 9vh);
  padding: 0 20px; text-align: center;
}
.night__title {
  margin: 0;
  font-size: clamp(46px, 13vw, 78px); font-weight: 700; line-height: .95;
  color: var(--butter);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--ink), 0 0 30px rgba(255, 211, 110, .45);
}
.night__sub { margin-top: 14px; font-size: 32px; font-weight: 700; color: var(--pink-3); }
.night__replay {
  margin-top: 26px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; color: #fff; opacity: 0;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px;
}

/* ---------- short phones (iPhone SE & co) ---------- */
@media (max-height: 720px) {
  :root { --top: 54px; --foot: 90px; }
  .h2 { font-size: clamp(32px, 9.5vw, 44px); margin: 10px 0 6px; }
  .lead { font-size: 14.5px; }
  .chip { font-size: 11px; padding: 5px 12px; }
  .hero__name { font-size: clamp(90px, 28vw, 150px); }
  .hero__line { font-size: clamp(40px, 11.5vw, 60px); }
  .hero__sub { font-size: 26px; margin-top: 16px; }
  .next { padding: 14px 26px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip--pulse, .mic-btn.is-on, .page__turn { animation: none; }
}
