/* reveal.css — the timer-end onboarding sequence (dev). Injected only into the dev build. */

#reveal-root, #reveal-root * { box-sizing: border-box; }

#reveal-root {
  position: fixed; inset: 0; z-index: 9999;
  display: none;                 /* shown by reveal.js once 'arrived' */
  align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  background: #040308;
  color: #e8ecf5;
  font-family: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  opacity: 0; transition: opacity 3s ease;
}
#reveal-root.on { display: flex; }
#reveal-root.show { opacity: 1; }

/* ── background: deep space — black with astral stars + faint nebulae.
      BG opacity is editable in the tuner (default 50%). ── */
.rv-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; transition: opacity 1s ease; opacity: var(--rv-bgop, .5); background: #03040a; }
#reveal-root.pill .rv-bg { opacity: 0 !important; }

/* faint astral nebulae, drifting slowly */
.rv-astral {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 30%, rgba(74, 62, 150, .30) 0%, transparent 60%),
    radial-gradient(42% 44% at 80% 68%, rgba(42, 74, 140, .26) 0%, transparent 62%),
    radial-gradient(48% 50% at 62% 20%, rgba(96, 52, 118, .18) 0%, transparent 64%);
  filter: blur(42px);
  animation: rv-astral 46s ease-in-out infinite alternate; will-change: transform;
}
@keyframes rv-astral { 0% { transform: translate(0,0) scale(1.05); } 100% { transform: translate(-3%, 2%) scale(1.15); } }

/* star layers (dots generated in JS) — twinkle + slow parallax drift */
.rv-stars { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat;
  animation: rv-twinkle 5.5s ease-in-out infinite, rv-drift 150s linear infinite; }
.rv-stars.two { opacity: .82; animation: rv-twinkle 7.5s ease-in-out infinite, rv-drift2 230s linear infinite; }
@keyframes rv-twinkle { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes rv-drift  { from { transform: translate3d(0,0,0); } to { transform: translate3d(-4%, -6%, 0); } }
@keyframes rv-drift2 { from { transform: translate3d(0,0,0); } to { transform: translate3d(3%, -5%, 0); } }

/* film grain — the preset's fine moving noise */
.rv-grain {
  position: absolute; inset: -60%; pointer-events: none; opacity: .085; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: rv-grain .9s steps(4) infinite;
}
@keyframes rv-grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, 3%); }
  100% { transform: translate(0, 0); }
}
.rv-begin.leaving { opacity: 0; transition: opacity .8s ease; }

.rv-stage {
  position: relative; z-index: 2;
  width: 100%; max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  text-align: center;
}

/* ── the narrated text + word-by-word glow ── */
.rv-text {
  font-size: clamp(24px, 5.2vw, 42px); line-height: 1.5; letter-spacing: .01em;
  min-height: 1.2em;
}
.rv-text .w {
  opacity: .20; color: #d8c49a;
  transition: opacity .45s ease, color .45s ease, text-shadow .45s ease, transform .45s ease;
  display: inline-block; white-space: pre;
}
.rv-text .w.lit  { opacity: 1; color: #ecd6a6; }       /* warm gold */
.rv-text .w.glow {
  opacity: 1; color: #fff6e2; transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(246,212,154,.95), 0 0 26px rgba(233,184,115,.6);
}

/* ── cinematic credits roll (big Clash Display, slow vertical scroll, centre focus) ── */
.rv-roll {
  position: relative; width: 100%; height: 64vh; max-height: 620px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 24%, #000 45%, #000 55%, rgba(0,0,0,.12) 76%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 24%, #000 45%, #000 55%, rgba(0,0,0,.12) 76%, transparent 100%);
}
.rv-rollinner { position: absolute; left: 0; right: 0; top: 0; will-change: transform; font-size: 48px; }
.rv-rline {
  font-family: 'Clash Display', 'Helvetica Neue', Arial, sans-serif; font-weight: 300;
  font-size: 1em; line-height: 1.12; letter-spacing: .004em;      /* size set on .rv-rollinner by JS autofit */
  text-align: center; white-space: nowrap;                        /* exactly N words on one line, no wrap, no clip */
  width: -webkit-fit-content; width: fit-content; max-width: none; margin: 0 auto;  /* shrink to text so width measures right */
  padding: calc(var(--rv-gap, 16px) / 2) 0;                        /* line gap is editable in the tuner */
}
.rv-rline.blank { font-size: 0.4em; }
.rv-rline .w {
  color: rgba(234,206,152,.38);                 /* dim champagne gold */
  transition: color .5s ease, text-shadow .5s ease, opacity .5s ease;
}
.rv-rline .w.lit  { color: rgba(238,214,162,.92); }   /* settled — warm gold */
.rv-rline .w.glow { color: #fff6e2; text-shadow: 0 0 26px rgba(246,212,154,.85), 0 0 60px rgba(233,184,115,.55); }

/* ── tap-to-begin hush ── */
.rv-begin { display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: pointer; opacity: 0; transition: opacity 2s ease; }
.rv-begin.in { opacity: 1; }
.rv-begin .heart { font-size: 30px; animation: rv-pulse 2.2s ease-in-out infinite; }
.rv-begin small { color: #8b95ab; letter-spacing: .18em; text-transform: uppercase; font-family: ui-monospace, monospace; font-size: 11px; }
@keyframes rv-pulse { 0%,100%{ transform: scale(1); opacity:.75 } 50%{ transform: scale(1.12); opacity:1 } }

/* ── buttons / choices ── */
.rv-controls { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; opacity: 0; transition: opacity .6s ease .2s; }
.rv-controls.show { opacity: 1; }
/* ── iOS-style liquid-glass buttons (ref: Liquid Glass Buttons pack) ── */
.rv-btn {
  appearance: none; cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
  font: 500 16px/1 'Clash Display', 'Helvetica Neue', Arial, sans-serif; letter-spacing: .01em; color: #f4f7ff;
  padding: 16px 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.028) 50%, rgba(255,255,255,.012) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -10px 18px rgba(0,0,0,.22), 0 12px 34px rgba(0,0,0,.4);
  transition: transform .14s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.rv-btn::before {                     /* top specular gloss — the liquid-glass shine */
  content: ''; position: absolute; left: 7%; right: 7%; top: 2px; height: 46%; z-index: -1;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0)); opacity: .75;
}
/* liquid-glass refraction — a soft coloured light drifting through the frosted pill (ref: Liquid Glass Buttons pack) */
.rv-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(60% 120% at 18% 18%, rgba(120,170,255,.60), transparent 60%),
    radial-gradient(55% 120% at 82% 28%, rgba(255,120,190,.52), transparent 62%),
    radial-gradient(70% 140% at 55% 118%, rgba(120,235,220,.44), transparent 60%);
  background-size: 200% 200%; filter: blur(7px) saturate(155%); opacity: .6; mix-blend-mode: screen;
  animation: rv-caustic 7s ease-in-out infinite;
}
@keyframes rv-caustic {
  0%   { background-position: 0% 50%, 100% 50%, 50% 100%; }
  50%  { background-position: 65% 38%, 35% 62%, 50% 2%; }
  100% { background-position: 0% 50%, 100% 50%, 50% 100%; }
}
.rv-btn.primary::after { opacity: .42; mix-blend-mode: soft-light; }
.rv-btn:hover { background: linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.08) 100%); border-color: rgba(255,255,255,.34); }
.rv-btn:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 5px 16px rgba(0,0,0,.42); }
/* warm accent glass */
.rv-btn.primary {
  color: #2a1606; border-color: rgba(255,228,176,.55);
  background: linear-gradient(180deg, rgba(255,228,176,.92) 0%, rgba(243,180,104,.74) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -8px 16px rgba(150,85,30,.25), 0 12px 34px rgba(242,176,100,.3);
}
.rv-btn.primary::before { opacity: .55; }
.rv-btn.primary:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 5px 16px rgba(242,176,100,.3); }
.rv-btn.ghost { color: #cdd6ea; }
.rv-btn.plain { /* clean glass — placeholder until Mano sends the final style */ }
/* small "next page" arrow — same glass, circular */
.rv-btn.arrow {
  width: 60px; height: 60px; padding: 0 0 3px; border-radius: 50%;
  font-size: 30px; font-weight: 300; display: inline-flex; align-items: center; justify-content: center;
  animation: rv-arrow 1.9s ease-in-out infinite;
}
.rv-btn.arrow::before { left: 14%; right: 14%; height: 40%; }
@keyframes rv-arrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ── liquid-glass input (same glass language as the buttons) ── */
.rv-input {
  width: 100%; max-width: 440px; margin: 2px auto 2px; display: block; position: relative;
  color: #f2f6ff; font: 400 16px/1.5 'Clash Display', 'Helvetica Neue', Arial, sans-serif; letter-spacing: .01em;
  padding: 15px 20px; text-align: center; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26);
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.022) 55%, rgba(255,255,255,.01) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(165%); backdrop-filter: blur(16px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -8px 16px rgba(0,0,0,.2), 0 10px 30px rgba(0,0,0,.36);
  outline: none; opacity: 0; transform: translateY(6px);
  transition: opacity .55s ease, transform .55s ease, border-color .25s ease, box-shadow .25s ease;
}
.rv-input.show { opacity: 1; transform: translateY(0); }
.rv-input::placeholder { color: rgba(226,232,246,.42); }
.rv-input:focus {
  border-color: rgba(255,228,176,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 3px rgba(242,176,100,.14), 0 10px 30px rgba(0,0,0,.4);
}
.rv-input[type="time"] { max-width: 180px; text-align: center; }

/* ── time picker (Hour / Minute / AM-PM glass dropdowns) ── */
.rv-timepick { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; }
.rv-tcolon { color: #eef2fb; font: 700 clamp(28px,5vw,48px)/1 'Clash Display','Helvetica Neue',Arial,sans-serif; opacity: .8; }
.rv-tsel {
  appearance: none; -webkit-appearance: none; cursor: pointer; text-align: center; text-align-last: center;
  color: #f4f7ff; font: 600 clamp(22px,4vw,38px)/1 'Clash Display','Helvetica Neue',Arial,sans-serif;
  padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.3);
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 28px rgba(0,0,0,.4); outline: none;
}
.rv-tsel:focus { border-color: rgba(255,228,176,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 3px rgba(242,176,100,.16); }
.rv-tsel option { color: #10131c; font-size: 18px; }     /* native menu uses system colours */
.rv-q { display: flex; flex-direction: column; gap: 10px; width: 100%; align-items: center; }
.rv-q label { color: #cdd6ea; font-size: 16.5px; }
.rv-skip { color: #6b7488; font-size: 12.5px; text-decoration: underline; cursor: pointer; background: none; border: 0; }

/* ── pill scene ── */
#reveal-root.pill { background: #000; }
.rv-pills { display: flex; gap: clamp(18px, 8vw, 70px); align-items: center; justify-content: center; margin: 10px 0; }
.rv-pill {
  position: relative; width: clamp(120px, 38vw, 170px); min-height: 150px; border-radius: 22px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px;
  border: 1px solid #333; background: radial-gradient(120% 120% at 50% 20%, #1a1a1f, #0a0a0c);
  color: #e8e8ee; font-size: 14px; line-height: 1.35; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 30px rgba(0,0,0,.6);
  transition: transform .25s ease, box-shadow .25s ease, opacity .4s ease, filter .2s;
}
.rv-pill .cap { width: 46px; height: 46px; border-radius: 50%; }
.rv-pill.red  .cap { background: radial-gradient(circle at 35% 30%, #ff8a7a, #c0362c); box-shadow: 0 0 22px rgba(224,54,44,.6); }
.rv-pill.blue .cap { background: radial-gradient(circle at 35% 30%, #86b5ff, #2a63c0); box-shadow: 0 0 22px rgba(42,99,192,.6); }
.rv-pill:active { transform: scale(.97); }
.rv-pill.glitch { animation: rv-glitch .5s steps(2) both; }
@keyframes rv-glitch {
  0%{ transform: translate(0,0) } 20%{ transform: translate(-4px,2px); filter: hue-rotate(20deg) }
  40%{ transform: translate(5px,-2px); filter: contrast(1.6) } 60%{ transform: translate(-3px,1px); filter: invert(.1) }
  80%{ transform: translate(2px,-1px) } 100%{ transform: translate(0,0); filter: none }
}
.rv-pill.gone { opacity: 0; transform: scale(.6); pointer-events: none; }
.rv-third {
  opacity: 0; transform: scale(.4); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1.3);
  width: clamp(150px, 54vw, 220px); min-height: 160px; border-radius: 26px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px;
  border: 1px solid #6e4a3a; background: radial-gradient(120% 120% at 50% 20%, #2a1a14, #0a0a0c);
  color: #ffd9c2; text-align: center; font-size: 15px; line-height: 1.4;
}
.rv-third .cap { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9c2, #d98b5a); box-shadow: 0 0 34px rgba(255,170,130,.8); }
.rv-third.show { opacity: 1; transform: scale(1); }

/* ── "it's in your hands" — FULL-SCREEN cinematic: two hands fill the width, black letterbox bars top & bottom ── */
.rv-hands { position: fixed; inset: 0; z-index: 1; background: #000;
            display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rv-hrow { display: flex; width: 100%; align-items: center; justify-content: center; gap: 0;
           transform: scale(var(--rv-hands-zoom, 1)); transform-origin: center; }
.rv-offer { position: relative; width: 50vw; cursor: pointer; line-height: 0; }
.rv-offer.l { transform: translateX(var(--rv-hand-pull, 10%)); }                 /* pull toward centre */
.rv-offer.r { transform: scaleX(-1) translateX(var(--rv-hand-pull, 10%)); }      /* mirror + pull toward centre */
.rv-hand { width: 100%; line-height: 0; }
.rv-hand .rv-vid { width: 100%; display: block; }
.rv-box { position: absolute; left: 50%; top: var(--rv-box-drop, 34%); width: 30%; transform: translateX(-50%); pointer-events: none; z-index: 2;
          animation: rv-bob 3.6s ease-in-out infinite; filter: drop-shadow(0 16px 22px rgba(0,0,0,.6)); }
.rv-box .rv-vid { width: 100%; display: block;
  /* recolour the near-grey box — left box uses the Left colour, right box the Right colour */
  filter: grayscale(1) sepia(1) saturate(var(--rv-box-sat, 2.4)) hue-rotate(var(--rv-box-hue-l, 320deg)) brightness(1.06) contrast(1.03); }
.rv-offer.r .rv-box .rv-vid {
  filter: grayscale(1) sepia(1) saturate(var(--rv-box-sat, 2.4)) hue-rotate(var(--rv-box-hue-r, 190deg)) brightness(1.06) contrast(1.03); }
@keyframes rv-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -9px); } }
/* text on the box — count ↔ PRIYANKA, alternating */
.rv-boxtext { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; }
.rv-offer.r .rv-boxtext { transform: scaleX(-1); }                               /* un-mirror on flipped hand */
.rv-boxtext span { position: absolute; color: #fff; letter-spacing: .05em;
  font: 800 clamp(13px,1.5vw,22px)/1 'Clash Display','Helvetica Neue',Arial,sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.75), 0 0 18px rgba(0,0,0,.4); animation: rv-boxpulse 3.6s ease-in-out infinite; }
@keyframes rv-boxpulse { 0%,100% { opacity: .72; } 50% { opacity: 1; } }
.rv-offer:active { filter: brightness(1.08); }
.rv-offer.glitch { animation: rv-glitch .5s steps(2) both; }
.rv-offer.gone { opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .8s ease, transform .8s ease; }
.rv-offer.r.gone { transform: scaleX(-1) scale(.7); }
.rv-offer.gold { position: absolute; left: 50%; top: 50%; width: 42vw; transform: translate(-50%,-50%) scale(.5); opacity: 0; z-index: 4;
                 transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1.3); }
.rv-offer.gold.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* letterbox bars (hold the labels & the prompt) */
.rv-hbar { position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; display: flex; transition: opacity .6s ease; }
.rv-hbar.top { top: 0; height: clamp(120px, 26vh, 260px); align-items: flex-start; padding: clamp(22px,5.5vh,60px) 2vw 0; justify-content: space-around; }
.rv-hbar.bot { bottom: 0; height: clamp(96px, 22vh, 220px); align-items: center; justify-content: center; padding: 0 4vw; }
.rv-hbar.hide { opacity: 0; }
.rv-hlabel { flex: 1; text-align: center; color: #fff; font: 700 clamp(28px,3.6vw,52px)/1.12 'Clash Display','Helvetica Neue',Arial,sans-serif;
             letter-spacing: .01em; text-shadow: 0 2px 16px rgba(0,0,0,.92); }
.rv-hlabel small { display: block; margin-top: 10px; color: rgba(214,224,250,.68); font-weight: 400; font-size: .4em; line-height: 1.35; letter-spacing: .02em; }
/* bottom prompt — large */
.rv-hbar.bot .rv-line { font-size: clamp(30px, 5.6vw, 64px); font-weight: 600; min-height: 1.2em; text-align: center; }

/* gift-box-opening transition overlay (plays on selection → white flash → next page) */
.rv-giftopen { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 58%, rgba(14,16,30,.5), #000 78%); opacity: 0; transition: opacity .45s ease; }
.rv-giftopen.show { opacity: 1; }
.rv-giftopen.out { opacity: 0; }
.rv-govid { width: min(94vw, 1100px); display: block; }

/* big 0 → 46 gift counter on the reveal */
.rv-count.big { font-family: 'Clash Display','Helvetica Neue',Arial,sans-serif; font-weight: 700;
                font-size: clamp(34px, 11vw, 88px); letter-spacing: .02em; color: #ffe6a8;
                text-shadow: 0 0 44px rgba(255,200,110,.5); opacity: 0; transition: opacity .6s ease; margin-top: 12px; }
.rv-count.big.show { opacity: 1; }

/* pill-scene dialogue line */
.rv-line { min-height: 1.4em; font-size: clamp(16px, 4.4vw, 21px); color: #ecd6a6; opacity: 0; transition: opacity .45s ease; text-shadow: 0 0 16px rgba(233,184,115,.3); }
.rv-line.show { opacity: 1; }

/* pills sliding together on fix */
.rv-pill.join { transition: transform 1.3s cubic-bezier(.3,.8,.3,1); }
.rv-pill.red.join  { transform: translateX(58%) rotate(-3deg); }
.rv-pill.blue.join { transform: translateX(-58%) rotate(3deg); }

/* the stickman repairman */
.rv-stick { position: fixed; left: -70px; top: 48%; font-size: 40px; z-index: 5; transform: translateX(0); }
.rv-stick.walk  { transition: transform 2.2s linear; transform: translateX(50vw); }
.rv-stick.fixing { animation: rv-fix .45s ease-in-out infinite; }
.rv-stick.leave { transition: transform 1.4s linear; transform: translateX(112vw); }
.rv-stick .rv-tool { font-size: 24px; }
@keyframes rv-fix { 0%,100% { transform: translateX(50vw) rotate(0deg); } 50% { transform: translateX(50vw) rotate(-16deg); } }

/* the golden combined button */
.rv-third.gold { border-color: #caa14a; background: radial-gradient(120% 120% at 50% 20%, #3a2a0e, #0a0a0c); color: #ffe6a8; animation: rv-goldpulse 1.6s ease-in-out infinite; }
.rv-third.gold .cap { background: radial-gradient(circle at 35% 30%, #fff2c0, #ffb33a); box-shadow: 0 0 46px rgba(255,190,70,.95); }
@keyframes rv-goldpulse { 0%,100% { box-shadow: 0 0 30px rgba(255,190,70,.4); } 50% { box-shadow: 0 0 64px rgba(255,190,70,.8); } }

/* golden → white flash hand-off */
.rv-flash { position: fixed; inset: 0; z-index: 10002; opacity: 0; pointer-events: none; background: #fff; }
.rv-flash.on { animation: rv-flash 3s ease forwards; }
@keyframes rv-flash {
  0%   { opacity: 0; background: radial-gradient(circle, #ffd27a, #ffb347); }
  35%  { opacity: 1; background: radial-gradient(circle, #fff3d6, #ffcf7a); }
  70%  { opacity: 1; background: #fff; }
  100% { opacity: 1; background: #fff; }
}
.rv-flash.out { transition: opacity 2.4s ease; opacity: 0 !important; }

/* ── Spotify dock (bottom) ── */
#rv-spotify {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 10001;
  width: min(92vw, 540px); display: none; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 44px rgba(0,0,0,.55); opacity: .97;
}
#reveal-root.on ~ #rv-spotify { display: block; }
#reveal-root.pill ~ #rv-spotify { display: none; }
#rv-spotify iframe { display: block; width: 100%; border: 0; }
#rv-spotify .rv-sp-ph { background: #0f1622; color: #8b95ab; font: 13px/1.5 'Clash Display', sans-serif; padding: 16px 18px; text-align: center; }

/* ── music toggle ── */
#rv-music { position: fixed; right: 16px; bottom: 16px; z-index: 10001; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #334063; background: #0e1424cc; color: #cdd6ea; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 17px; }
#reveal-root.on ~ #rv-music { display: flex; }

/* ── handoff countdown ── */
/* spinning gift on the Dec-1 countdown page */
/* Dec-1 gift page — title + "reveals in" + live-site timer style */
.rv-gtitle { font: 500 clamp(22px,4vw,40px)/1.2 'Clash Display','Helvetica Neue',Arial,sans-serif; color: #f0d9a8; letter-spacing: .01em; text-shadow: 0 0 24px rgba(233,184,115,.28); }
.rv-gkick { font-family: 'Martian Mono', ui-monospace, monospace; font-weight: 400; font-size: clamp(.56rem,1.5vw,.72rem);
            letter-spacing: .42em; text-transform: uppercase; text-indent: .42em; color: #828ca8; margin-top: -14px; }
.rv-clock { display: flex; align-items: flex-start; justify-content: center; gap: clamp(14px, 5vw, 56px); flex-wrap: nowrap; }
.rv-cunit { display: flex; flex-direction: column; align-items: center; gap: clamp(8px,1.6vh,14px); }
.rv-cnum { font: 300 clamp(2.4rem,9vw,5.4rem)/0.84 'Clash Display','Helvetica Neue',Arial,sans-serif; color: #f2ece1;
           text-shadow: 0 0 40px rgba(233,184,115,.12), 0 0 15px rgba(242,236,225,.12); }
.rv-clbl { font-family: 'Martian Mono', ui-monospace, monospace; font-weight: 400; font-size: clamp(.5rem,1.4vw,.64rem);
           letter-spacing: .34em; text-transform: uppercase; text-indent: .34em; color: rgba(150,165,205,.46); }
.rv-giftimg { width: min(82vw, 540px); margin: 4px auto; }
.rv-giftimg img { width: 100%; display: block; border-radius: 16px; border: 1px solid rgba(233,184,115,.18);
                  box-shadow: 0 24px 70px rgba(0,0,0,.6); }
/* two photos side by side (real · studio) */
.rv-giftimgs { display: flex; gap: 16px; align-items: flex-start; justify-content: center; flex-wrap: wrap;
               width: 100%; max-width: 860px; margin: 2px auto 0; }
.rv-giftimgs .rv-giftimg { flex: 1 1 0; min-width: 210px; max-width: 410px; width: auto; margin: 0; }
.rv-giftimg { margin: 4px auto 0; }
.rv-giftimg figcaption { margin-top: 7px; text-align: center; font: 400 10.5px/1.3 'Martian Mono', ui-monospace, monospace;
                         letter-spacing: .16em; text-transform: uppercase; color: rgba(150,165,205,.5); }
/* per-gift note + general footer under the photos */
.rv-giftnote { max-width: 620px; margin: 6px auto 0; white-space: pre-line; text-align: center; font-style: italic;
               font: italic 400 clamp(14px,2.2vw,17.5px)/1.6 'Clash Display','Helvetica Neue',Arial,sans-serif;
               color: rgba(236,214,166,.82); letter-spacing: .01em; }
.rv-giftfoot { max-width: 640px; margin: 2px auto 0; white-space: pre-line; text-align: center;
               font: 400 clamp(12.5px,1.9vw,15px)/1.55 'Clash Display','Helvetica Neue',Arial,sans-serif;
               color: rgba(180,192,214,.6); letter-spacing: .01em; }
.rv-giftwait { width: clamp(260px, 46vw, 400px); margin: 2px auto; animation: rv-bobY 3.6s ease-in-out infinite;
               filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); }
.rv-giftwait .rv-vid { width: 100%; display: block;
  filter: grayscale(1) sepia(1) saturate(2.2) hue-rotate(5deg) brightness(1.08) contrast(1.03); }   /* warm gold gift */
@keyframes rv-bobY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Gift archive: one prominent action on the gift page, then a quiet, date-led gallery. */
#reveal-root.gift-page { overflow-y: auto; }
#reveal-root.gift-page .rv-stage { padding-bottom: 160px; }
#reveal-root.gift-page ~ #rv-music { top: 16px; bottom: auto; }
.rv-gift-actions {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 10020;
  transform: translateX(-50%); width: min(420px, calc(100vw - 36px));
  display: flex; flex-direction: column; gap: 10px;
}
.rv-gallery-open, .rv-yesterday-open {
  width: 100%;
  padding: 18px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,226,171,.7); color: #291708;
  background: linear-gradient(180deg, #f7e5bb 0%, #ddb071 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.75), 0 16px 40px rgba(0,0,0,.54), 0 0 35px rgba(221,176,113,.17);
  font: 600 clamp(16px, 3vw, 20px)/1.15 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .01em; text-align: center;
}
.rv-yesterday-open { color: #f0d9a8; border-color: rgba(233,184,115,.4);
  background: linear-gradient(180deg, rgba(28,32,49,.96), rgba(10,13,25,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 12px 30px rgba(0,0,0,.45); }
.rv-gallery-open[hidden], .rv-yesterday-open[hidden] { display: none; }
.rv-yesterday-open:disabled { opacity: .45; cursor: default; }
.rv-gallery-open:hover:not(:disabled), .rv-yesterday-open:hover:not(:disabled) { filter: brightness(1.08); }
.rv-gallery-open:focus-visible, .rv-yesterday-open:focus-visible, .rv-gallery-panel button:focus-visible { outline: 2px solid #fff1cb; outline-offset: 4px; }
#reveal-root.guest-mode.gift-page { overflow: hidden; }
#reveal-root.guest-mode { opacity: 1; transition: none; }
#reveal-root.guest-mode .rv-stage { gap: clamp(8px, 2vh, 20px); padding: 0 0 145px; max-height: 100dvh; overflow: hidden; }
#reveal-root.guest-mode .rv-giftimgs { max-height: min(52dvh, 520px); overflow: hidden; }
#reveal-root.guest-mode .rv-giftimgs .rv-giftimg { max-width: min(36vw, 400px); }
#reveal-root.guest-mode .rv-giftimgs img { max-height: min(48dvh, 475px); object-fit: contain; }
#reveal-root.guest-mode .rv-giftwait .rv-vid { max-height: min(38dvh, 320px); object-fit: contain; }
@media (max-width: 600px) {
  #reveal-root.guest-mode { padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); }
  #reveal-root.guest-mode .rv-stage { padding-bottom: 130px; gap: clamp(5px, 1.2vh, 12px); }
  #reveal-root.guest-mode .rv-giftwait { width: min(70vw, 260px); }
  #reveal-root.guest-mode .rv-giftwait .rv-vid { max-height: 30dvh; }
  #reveal-root.guest-mode .rv-gkick { margin-top: 0; }
  #reveal-root.guest-mode .rv-clock { gap: clamp(8px, 3vw, 18px); }
  #reveal-root.guest-mode .rv-cnum { font-size: clamp(2rem, 10vw, 3rem); }
  #reveal-root.guest-mode .rv-clbl { font-size: 8px; letter-spacing: .12em; }
  #reveal-root.guest-mode .rv-giftimgs { flex-wrap: nowrap; gap: 8px; }
  #reveal-root.guest-mode .rv-giftimgs .rv-giftimg { min-width: 0; max-width: 48%; }
  #reveal-root.guest-mode .rv-giftimgs img { max-height: 42dvh; }
  #reveal-root.guest-mode .rv-gift-actions { bottom: max(12px, env(safe-area-inset-bottom)); }
}
.rv-gallery-overlay {
  position: fixed; inset: 0; z-index: 10080; padding: 18px;
  display: grid; place-items: center; background: rgba(2,3,8,.88);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-family: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
}
.rv-gallery-overlay, .rv-gallery-overlay * { box-sizing: border-box; }
.rv-gallery-panel {
  width: min(100%, 980px); max-height: calc(100dvh - 36px); overflow-y: auto;
  border: 1px solid rgba(233,184,115,.26); border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, #182036 0%, #090c17 55%, #05060d 100%);
  box-shadow: 0 28px 90px rgba(0,0,0,.72); padding: clamp(20px, 4vw, 42px);
  color: #f2ece1;
}
.rv-gallery-head { display: grid; grid-template-columns: 84px 1fr 40px; align-items: center; gap: 10px; }
.rv-gallery-head button { border: 0; background: none; color: #d5c7a7; cursor: pointer; font: 500 14px 'Clash Display', sans-serif; }
.rv-gallery-back { text-align: left; padding: 8px 0; }
.rv-gallery-close { font-size: 30px !important; line-height: 1; }
.rv-gallery-title { margin: 0; text-align: center; color: #f0d9a8; font: 500 clamp(23px, 4vw, 36px)/1.15 'Clash Display', sans-serif; }
.rv-gallery-count, .rv-gallery-date { margin: 10px 0 30px; text-align: center; color: #aeb6c9; font: 400 12px/1.5 'Martian Mono', ui-monospace, monospace; }
.rv-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); }
.rv-gallery-tile { border: 1px solid rgba(233,184,115,.18); border-radius: 14px; padding: 8px 8px 15px;
  background: rgba(255,255,255,.035); color: #f2ece1; cursor: pointer; text-align: left; min-width: 0; }
.rv-gallery-tile:hover { border-color: rgba(233,184,115,.55); background: rgba(233,184,115,.09); }
.rv-gallery-frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #333151, #101421 66%, #090b13); }
.rv-gallery-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-gallery-star { color: #bda16f; font-size: 42px; }
.rv-gallery-number { display: block; margin: 13px 5px 2px; font: 500 17px 'Clash Display', sans-serif; color: #f0d9a8; }
.rv-gallery-day { display: block; margin: 0 5px; font: 400 11px 'Martian Mono', ui-monospace, monospace; color: #9ca8bf; }
.rv-gallery-slot { min-height: 205px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  border: 1px solid rgba(233,184,115,.1); border-radius: 14px;
  background: rgba(255,255,255,.018); color: rgba(233,184,115,.18); font-size: 28px; }
.rv-gallery-slot.locked { color: #aeb6c9; border-color: rgba(233,184,115,.18);
  background: radial-gradient(circle at 50% 15%, rgba(34,40,64,.7), rgba(9,12,23,.8)); text-align: center; }
.rv-gallery-slot.locked .rv-gallery-number { margin: 0; }
.rv-gallery-slot.locked .rv-gallery-day { margin: 0; }
.rv-gallery-lock { color: rgba(233,184,115,.42); font-size: 24px; }
.rv-gallery-timer { color: #edd29c; font: 500 clamp(10px,1.2vw,13px)/1.4 'Martian Mono', ui-monospace, monospace; }
.rv-gallery-pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 22px;
  color: #9ca8bf; font: 11px 'Martian Mono', ui-monospace, monospace; }
.rv-gallery-pager button { width: 38px; height: 38px; border: 1px solid rgba(233,184,115,.3); border-radius: 50%;
  background: rgba(255,255,255,.04); color: #f0d9a8; cursor: pointer; font: 600 14px 'Clash Display', sans-serif; }
.rv-gallery-pager button.on { color: #291708; background: #e9ca92; border-color: #e9ca92; }
.rv-gallery-pager button:disabled { opacity: .35; cursor: default; }
.rv-gallery-detail-photos { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.rv-gallery-detail-photo { flex: 1 1 260px; max-width: 410px; margin: 0; }
.rv-gallery-detail-photo img { display: block; width: 100%; border-radius: 12px; }
.rv-gallery-detail-photo figcaption { margin-top: 9px; color: #aeb6c9; font: 11px 'Martian Mono', ui-monospace, monospace; }
.rv-gallery-note { max-width: 650px; margin: 28px auto 0; white-space: pre-line; color: #e9d4a8; font: italic 17px/1.6 'Clash Display', sans-serif; text-align: center; }
.rv-gallery-empty { padding: 55px 12px; color: #aeb6c9; text-align: center; }
@media (max-width: 520px) {
  .rv-gallery-overlay { padding: 8px; }
  .rv-gallery-panel { max-height: calc(100dvh - 16px); padding: 18px 14px; }
  .rv-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rv-gallery-slot { min-height: 150px; }
  .rv-gallery-head { grid-template-columns: 62px 1fr 28px; }
  .rv-gallery-head button { font-size: 12px; }
}

.rv-count { font-family: ui-monospace, monospace; font-size: clamp(26px, 8vw, 44px); letter-spacing: .06em; color: #fff; }
.rv-kicker { color: #8b95ab; letter-spacing: .18em; text-transform: uppercase; font-family: ui-monospace, monospace; font-size: 11px; }

/* ── dev page switcher (hidden on the live domain) ── */
.rv-nav {
  position: fixed; top: 10px; left: 10px; right: 64px; z-index: 10060;
  display: flex; flex-wrap: wrap; gap: 5px;
}
.rv-navbtn {
  font: 600 11px/1 ui-monospace, monospace; color: #aeb8d2; cursor: pointer;
  background: #0e1424cc; border: 1px solid #2a3350; border-radius: 7px; padding: 6px 9px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rv-navbtn:hover { color: #eaf0ff; }
.rv-navbtn.on { color: #ffd9a0; border-color: #6e5a2a; background: #1a140bcc; }

/* ── dev tuner panel (hidden on the live domain) ── */
.rv-gear {
  position: fixed; top: 14px; right: 14px; z-index: 10050; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid #2a3350; background: #0e1424cc; color: #cdd6ea; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rv-gear.on { color: #ffd9a0; border-color: #6e5a2a; }
.rv-panel {
  position: fixed; top: 60px; right: 14px; z-index: 10050; width: 260px; max-width: calc(100vw - 28px);
  background: #0c1120f2; border: 1px solid #2a3350; border-radius: 14px; padding: 14px 15px 12px;
  color: #dbe2f2; font: 13px/1.4 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 18px 50px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(-8px) scale(.98); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.rv-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.rv-ptitle { font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; color: #fff; font-size: 13.5px; }
.rv-pcur { font-size: 11px; color: #e9b873; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 11px; }
.rv-row { margin: 0 0 11px; }
.rv-row label { display: flex; justify-content: space-between; font-size: 12px; color: #aeb8d2; margin-bottom: 4px; }
.rv-row label b { color: #ffd9a0; font-weight: 600; }
.rv-row input[type=range] { width: 100%; accent-color: #e9b873; cursor: pointer; }
.rv-replay { width: 100%; margin: 4px 0 8px; padding: 8px; border-radius: 9px; cursor: pointer;
  border: 1px solid #6e5a2a; background: linear-gradient(180deg, #2a2213, #17120a); color: #ffdfa6; font: 600 12.5px 'Clash Display', sans-serif; }
.rv-save { width: 100%; margin: 0 0 8px; padding: 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid #2f6b47; background: linear-gradient(180deg, #16301f, #0c1a11); color: #8fe6b4; font: 700 12.5px 'Clash Display', sans-serif; }
.rv-save:hover { border-color: #46cf8b; color: #c7f5dc; }
.rv-saveout { display: none; width: 100%; height: 92px; margin: 0 0 9px; box-sizing: border-box; resize: vertical;
  background: #0b0f16; border: 1px solid #2c3446; border-radius: 8px; color: #9fb0c8; font: 11px/1.4 ui-monospace, monospace; padding: 8px; }
.rv-pnote { font-size: 10.5px; color: #6b7488; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .rv-text .w, #reveal-root { transition: none; }
  .rv-begin .heart, .rv-astral, .rv-stars, .rv-grain { animation: none; }
}
