:root {
  --bg: #0b0908;
  --bg-2: #15110e;
  --text: #efe6d8;
  --soft: #a89c8b;
  --gold: #d9b26f;
  --pink: #ff3fa4;
  --cyan: #2de2e6;
  --purple: #6b2fd6;
  --bar: clamp(10px, 3.2vh, 34px);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --neon: "Monoton", "Impact", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw + 10px, 26px);
  line-height: 1.55;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; height: 100svh; }
img { max-width: 100%; display: block; }
em { color: var(--gold); font-style: italic; }
button { font: inherit; cursor: pointer; }

/* ---------- film overlays ---------- */
.bar { position: fixed; left: 0; right: 0; height: var(--bar); background: #000; z-index: 50; pointer-events: none; }
.bar-top { top: 0; }
.bar-bottom { bottom: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 49; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; top: var(--bar); left: 0; right: 0; height: 2px; z-index: 51; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--pink)); opacity: .7; }

/* ---------- lock ---------- */
#gate {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, #241b14 0%, var(--bg) 70%);
  transition: opacity 1s ease;
}
#gate.gone { opacity: 0; pointer-events: none; }
.gate-inner { width: 100%; max-width: 420px; text-align: center; }
.gate-kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); margin: 0 0 8px; }
.gate-title { font-weight: 400; font-style: italic; font-size: clamp(40px, 9vw, 64px); margin: 0 0 28px; color: var(--gold); }
#gate-form label { display: block; font-size: 1.15em; margin-bottom: 14px; }
#gate-form input {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 20px; text-align: center;
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid rgba(217,178,111,.35); border-radius: 10px; outline: none;
}
#gate-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,111,.15); }
#gate-form button {
  margin-top: 14px; width: 100%; padding: 12px; border-radius: 10px; border: 0;
  background: var(--gold); color: #1b140c; font-family: var(--sans); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
}
#gate-hint { min-height: 1.6em; color: var(--soft); font-style: italic; font-size: .85em; margin: 14px 0 0; }
.gate-sound { font-family: var(--sans); font-size: 12px; color: var(--soft); opacity: .7; margin-top: 30px; }
.shake { animation: shake .45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- countdown leader ---------- */
#leader { position: fixed; inset: 0; z-index: 45; display: none; place-items: center; background: #1a1612; }
#leader.on { display: grid; animation: flicker .18s infinite; }
.leader-ring {
  width: min(60vw, 280px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid #d8d0c2; display: grid; place-items: center; position: relative;
  background: conic-gradient(rgba(216,208,194,.18) var(--sweep, 0deg), transparent 0);
}
.leader-ring::before, .leader-ring::after { content: ""; position: absolute; background: #d8d0c2; opacity: .6; }
.leader-ring::before { width: 2px; height: 130%; }
.leader-ring::after { height: 2px; width: 130%; }
#leader-num { font-family: var(--sans); font-weight: 700; font-size: min(28vw, 140px); color: #d8d0c2; position: relative; z-index: 1; }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .9; } }

/* ---------- sound control ---------- */
.sound {
  position: fixed; right: 16px; bottom: calc(var(--bar) + 14px); z-index: 52;
  display: none; align-items: center; gap: 8px;
}
.sound.show { display: flex; }
.sound-btn, .sound-panel {
  border: 1px solid rgba(217,178,111,.4); background: rgba(11,9,8,.82); color: var(--gold);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sound-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; padding: 0; }
.sound.muted .sound-btn { opacity: .5; text-decoration: line-through; }
.sound-panel {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px;
  opacity: 0; visibility: hidden; transform: translateX(12px) scale(.96); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sound.open .sound-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.sound-mute { width: 34px; height: 34px; padding: 0; border: 0; background: none; color: inherit; display: grid; place-items: center; }
.sound-mute svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-mute .spk { fill: currentColor; }
.sound-mute .cross, .sound.muted .sound-mute .waves { display: none; }
.sound.muted .sound-mute .cross { display: inline; }

#volume { -webkit-appearance: none; appearance: none; width: min(40vw, 150px); height: 28px; margin: 0; background: transparent; cursor: pointer; --fill: 60%; }
#volume:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
#volume::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--fill), rgba(255,255,255,.2) var(--fill)); }
#volume::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,178,111,.2); }
#volume::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); }
#volume::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
#volume::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold); }

/* ---------- scenes ---------- */
#film { position: relative; }
.scene, .title-card {
  max-width: 680px; margin: 0 auto; padding: 18vh 16px;
}
.scene > .line + .line { margin-top: 1.1em; }
.scene p { margin: 0; }
.title-card {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16vh 16px;
}
.title-card h2 { font-weight: 400; font-style: italic; font-size: clamp(38px, 8vw, 68px); line-height: 1.1; margin: .15em 0 0; color: var(--text); }
.chapter { font-family: var(--sans); font-size: 12px !important; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin: 0; }
.dim { color: #cfc5b6; }
.title-card.dim h2 { color: #b9b0a3; }

.line { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 1.4s ease, transform 1.4s ease, filter 1.4s ease; }
.line.in { opacity: 1; transform: none; filter: none; }
.soft { color: var(--soft); font-style: italic; }
.big { font-size: clamp(40px, 9vw, 72px); line-height: 1.1; font-style: italic; }
.emphasis { font-style: italic; color: var(--gold); font-size: 1.12em; }
.big-number { font-family: var(--sans); font-weight: 800; font-size: clamp(64px, 18vw, 140px); line-height: 1; color: var(--gold); letter-spacing: -.02em; }

/* opening */
.opening { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.scroll-hint { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); margin-top: 18vh !important; }
.scroll-hint span { display: block; margin-top: 6px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }
.cast { text-align: center; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.cast .line + .line { margin-top: .3em !important; }
.cast .kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--soft); margin-bottom: 2em !important; }
.cast .role { font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--soft); margin-top: 1.6em !important; }
.cast .star { font-size: clamp(44px, 10vw, 80px); font-style: italic; color: var(--gold); line-height: 1.1; }
.cast .name { font-size: 1.3em; }

/* game chat */
.game-chat {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 16px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 12px 14px; color: #d6f5c8;
}
.game-chat .tag { color: #7fe07a; }
.game-chat .who { color: #f2d27a; }

/* figures */
figure { margin: 0; }
.wide { margin-left: -16px !important; margin-right: -16px !important; }
@media (min-width: 760px) { .wide { margin-left: -80px !important; margin-right: -80px !important; } }
.wide img { width: 100%; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
/* the game screenshots have grey letterbox bars baked in (140px of 1080 top and bottom) */
.wide img.crop-bars { aspect-ratio: 1920 / 800; object-fit: cover; }
.wide figcaption { font-family: var(--hand); font-size: 22px; color: var(--soft); text-align: center; margin-top: 10px; }

/* follow demo */
.follow-demo { text-align: center; }
.ig-card {
  display: flex; align-items: center; gap: 12px; max-width: 380px; margin: 0 auto; padding: 12px 14px;
  background: #fff; color: #111; border-radius: 14px; font-family: var(--sans); text-align: left;
}
.ig-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; background: url("images/AI_80s_her.png") center 20% / cover, #ddd; outline: 2px solid #e1306c; outline-offset: 2px; }
.ig-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.25; }
.ig-text b, .ig-text small { display: block; }
.ig-text small { color: #777; font-size: 12px; }
.ig-follow { border: 0; border-radius: 8px; padding: 8px 16px; background: #0095f6; color: #fff; font-weight: 600; font-size: 14px; transition: background .2s; }
.ig-follow.requested { background: #efefef; color: #111; }
.ig-follow.nudge { animation: nudge 1.8s ease-out infinite; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(0,149,246,.7); } 70%, 100% { box-shadow: 0 0 0 12px rgba(0,149,246,0); } }
.tap-hint {
  display: flex; justify-content: flex-end; align-items: flex-end; gap: 2px;
  max-width: 380px; margin: 0 auto 2px; padding-right: 34px;
  font-family: var(--hand); font-size: 22px; color: var(--gold); line-height: 1;
  transition: opacity .4s ease;
}
.tap-hint span { transform: rotate(-4deg); margin-bottom: 26px; }
.tap-hint svg { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: point 1.2s ease-in-out infinite; }
@keyframes point { 50% { transform: translate(2px, 5px) rotate(4deg); } }
.tap-hint.gone { opacity: 0; }
.follow-caption { font-family: var(--hand); color: var(--soft); font-size: 20px; margin-top: 10px !important; min-height: 1.5em; }

/* buttons */
.btn {
  display: inline-block; border: 1px solid rgba(217,178,111,.5); background: rgba(217,178,111,.08); color: var(--gold);
  padding: 10px 20px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn:hover { background: rgba(217,178,111,.18); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.gold { background: var(--gold); color: #1b140c; }
.btn.ghost { background: transparent; }

/* call timer */
.call-timer {
  display: inline-flex !important; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; color: #9fe6a8;
  background: rgba(60,180,90,.12); border: 1px solid rgba(60,180,90,.35); padding: 6px 14px; border-radius: 999px;
}
.call-timer .dot { width: 8px; height: 8px; border-radius: 50%; background: #3cd46a; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* boxes */
.rate-box, .dive-box, .enhance-box {
  text-align: center; padding: 22px 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08);
}
.rate-q, .dive-title { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: .04em; }
.rate-sub { font-size: 16px; color: var(--soft); font-style: italic; }
.stars { display: flex; justify-content: center; gap: 4px; margin: 10px 0 6px; }
.stars button { background: none; border: 0; font-size: 34px; color: #4a4038; padding: 4px; line-height: 1; transition: color .15s, transform .15s; }
.stars button.on { color: var(--gold); }
.stars button:hover { transform: scale(1.15); }
.rate-verdict { min-height: 1.6em; font-style: italic; }
/* until she votes: a gold shimmer sweeps across the stars + a hand-drawn arrow */
.stars.nudge button { animation: twinkle 2.2s ease-in-out infinite; }
.stars.nudge button:nth-child(2) { animation-delay: .15s; }
.stars.nudge button:nth-child(3) { animation-delay: .3s; }
.stars.nudge button:nth-child(4) { animation-delay: .45s; }
.stars.nudge button:nth-child(5) { animation-delay: .6s; }
@keyframes twinkle { 0%, 45%, 100% { color: #4a4038; transform: none; } 18% { color: var(--gold); transform: scale(1.2); text-shadow: 0 0 12px rgba(217,178,111,.6); } }
.rate-hint { display: inline-flex; align-items: center; gap: 6px; font-family: var(--hand); font-style: normal; font-size: 22px; color: var(--gold); }
.rate-hint svg { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: point-up 1.2s ease-in-out infinite; }
@keyframes point-up { 50% { transform: translate(-1px, -5px) rotate(-4deg); } }

.keys { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: 6px 10px; margin: 12px 0 16px; font-size: 22px; }
.keys span { transition: opacity .3s, transform .3s; }
.keys span.used { opacity: .15; transform: scale(.8); }
.dive-log { min-height: 3em; margin-top: 14px !important; font-size: 18px; color: var(--soft); font-style: italic; }
.dive-log.win { color: var(--gold); font-style: normal; font-weight: 600; text-shadow: 0 0 18px rgba(217,178,111,.5); }
.dive-box.win { border-color: rgba(217,178,111,.6); box-shadow: 0 0 40px rgba(217,178,111,.15); }

.enh-item { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 14px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); font-family: var(--sans); font-size: 15px; }
.enh-icon { font-size: 26px; }
.enh-level { color: #f2d27a; font-weight: 700; }
.enh-level.up { color: #ffd84a; text-shadow: 0 0 14px rgba(255,200,60,.8); }
.enhance-box.spinning .enh-item { animation: charge .12s infinite; }
@keyframes charge { 50% { box-shadow: 0 0 22px rgba(255,200,60,.55); } }
.enh-result { min-height: 3em; margin-top: 14px !important; font-family: var(--sans); font-size: 15px; }
.enh-result .success { color: #ffd84a; font-weight: 800; letter-spacing: .15em; font-size: 22px; display: block; }
.enh-result .sys { color: #ff8a8a; display: block; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* 80s */
.eighties-card { background: linear-gradient(180deg, transparent, rgba(107,47,214,.18) 50%, transparent); max-width: none; }
.neon {
  font-family: var(--neon) !important; font-style: normal !important; font-weight: 400 !important; color: #ffd6ef !important;
  text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink), 0 0 40px var(--purple);
  letter-spacing: .02em; font-size: clamp(30px, 7.5vw, 60px) !important;
}
.polaroids, .dogs { display: flex; justify-content: center; gap: 16px; padding: 10px 0; }
.polaroid {
  background: #f6f1e7; padding: 10px 10px 0; box-shadow: 0 18px 40px rgba(0,0,0,.55); width: 46%; max-width: 260px;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.polaroid figcaption { font-family: var(--hand); color: #2b2420; font-size: clamp(16px, 4vw, 22px); text-align: center; padding: 6px 2px 10px; line-height: 1.15; }
.polaroid.left, .tilt-l { transform: rotate(-4deg); }
.polaroid.right, .tilt-r { transform: rotate(3.5deg) translateY(18px); }
.line.in .polaroid.left, .line.in .tilt-l { animation: drop-l 1.2s ease both; }
.line.in .polaroid.right, .line.in .tilt-r { animation: drop-r 1.2s .25s ease both; }
@keyframes drop-l { from { transform: rotate(-14deg) translateY(-30px); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
@keyframes drop-r { from { transform: rotate(12deg) translateY(-30px); opacity: 0; } to { transform: rotate(3.5deg) translateY(18px); opacity: 1; } }

/* Luca */
.luca {
  max-width: none; text-align: center; padding: 22vh 16px;
  background: radial-gradient(ellipse at 50% 30%, rgba(233,196,130,.16), transparent 65%);
}
.luca > * { max-width: 600px; margin-left: auto; margin-right: auto; }
.luca .line { transition-duration: 2.6s; }
.luca-photo { margin-top: 1.6em !important; margin-bottom: 1.6em !important; }
.luca-photo img {
  width: min(78vw, 380px); margin: 0 auto; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px;
  filter: sepia(.25) saturate(.9) brightness(.95);
  box-shadow: 0 0 80px rgba(233,196,130,.25);
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent);
}

/* little things */
.little-things { list-style: none; padding: 0; margin-left: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.little-things li {
  font-family: var(--sans); font-size: 16px; background: #2a5bd7; color: #fff; padding: 8px 14px; border-radius: 18px 18px 18px 4px;
  opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s;
}
.little-things.in li { opacity: 1; transform: none; }
.little-things.in li:nth-child(2) { transition-delay: .5s; }
.little-things.in li:nth-child(3) { transition-delay: 1s; }
.little-things.in li:nth-child(4) { transition-delay: 1.5s; }
.little-things.in li:nth-child(5) { transition-delay: 2s; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; border-radius: 18px; background: #12100e; border: 1px solid rgba(255,255,255,.07); font-family: var(--sans); font-size: 16px; line-height: 1.35; }
.msg { max-width: 82%; padding: 9px 14px; border-radius: 18px; display: none; }
.msg.show { display: block; animation: pop .3s ease; }
.msg.me { align-self: flex-end; background: #2a5bd7; color: #fff; border-bottom-right-radius: 4px; }
.msg.her-msg { align-self: flex-start; background: #2c2723; color: #f3ece2; border-bottom-left-radius: 4px; }
.msg.typing::after { content: "•••"; letter-spacing: 2px; animation: pulse 1s infinite; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* finale */
.finale-intro { text-align: center; }
.finale {
  position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 8vh 16px; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #1c0b2e 30%, #3a0d4a 60%, #120618 100%);
}
.sun {
  position: absolute; top: 12%; left: 50%; width: min(90vw, 560px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffe46b 0%, #ff8a3d 40%, #ff3fa4 75%);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
  mask-image: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
  opacity: .55; filter: blur(.5px);
}
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 40%;
  background:
    repeating-linear-gradient(90deg, rgba(45,226,230,.5) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(0deg, rgba(45,226,230,.5) 0 2px, transparent 2px 50px);
  transform: perspective(300px) rotateX(60deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%);
  animation: grid 2.5s linear infinite;
}
@keyframes grid { to { background-position: 0 0, 0 50px; } }
.finale-photo { position: relative; z-index: 1; width: min(86vw, 440px, 44vh); padding: 10px; background: #f6f1e7; box-shadow: 0 0 60px rgba(255,63,164,.35), 0 30px 60px rgba(0,0,0,.6); transform: rotate(-1.5deg); }
.finale-photo.line.in { transform: rotate(-1.5deg); }
.hb { position: relative; z-index: 1; margin: 1.1em 0 0; line-height: 1.25; }
.hb .her { font-size: 1.15em; }

/* gift */
.gift-scene { text-align: center; padding-bottom: 30vh; }
.gift { margin-top: 2em !important; display: flex; flex-direction: column; align-items: center; }
.present {
  position: relative; width: 150px; height: 150px; border: 0; background: none; padding: 0;
  animation: wiggle 2.4s ease-in-out infinite;
}
.present-box { position: absolute; left: 15px; right: 15px; bottom: 0; height: 90px; background: linear-gradient(90deg, #1db954 0 42%, #f6f1e7 42% 58%, #1db954 58%); border-radius: 6px; }
.present-lid { position: absolute; left: 5px; right: 5px; top: 30px; height: 32px; z-index: 1; background: linear-gradient(90deg, #17a34a 0 42%, #f6f1e7 42% 58%, #17a34a 58%); border-radius: 6px; transition: transform .8s cubic-bezier(.3,1.6,.5,1); }
.present-lid::before, .present-lid::after { content: ""; position: absolute; top: -26px; width: 34px; height: 30px; border: 7px solid #f6f1e7; border-radius: 50% 50% 0 50%; }
.present-lid::before { left: 34px; transform: rotate(-10deg); }
.present-lid::after { right: 34px; transform: scaleX(-1) rotate(-10deg); }
.present-label { position: absolute; left: 0; right: 0; bottom: -40px; font-family: var(--sans); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.present.open { animation: none; }
.present.open .present-lid { transform: translateY(-80px) rotate(-25deg); }
.present.gone { display: none; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg); } 85% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }

.ticket {
  width: min(100%, 420px); margin-top: 10px; padding: 26px 20px; border-radius: 18px; text-align: center;
  background: linear-gradient(145deg, #1db954, #128a3e); color: #06210f; box-shadow: 0 20px 60px rgba(29,185,84,.3);
  animation: rise .9s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes rise { from { transform: translateY(40px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket-kicker { font-family: var(--sans); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 15px; }
.ticket-for { font-style: italic; margin-top: 2px !important; }
.ticket code {
  display: block; margin: 18px 0; padding: 14px 10px; border-radius: 10px; background: rgba(0,0,0,.82); color: #fff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(16px, 4.6vw, 22px); letter-spacing: .08em;
  word-break: break-all; user-select: all; -webkit-user-select: all;
}
.ticket-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ticket .btn { background: #06210f; color: #fff; border-color: #06210f; }
.ticket .btn.ghost { background: transparent; color: #06210f; }
.ticket-note { font-family: var(--sans); font-size: 13px; margin-top: 14px !important; min-height: 1.4em; }

/* credits */
.credits { position: relative; height: 100svh; overflow: hidden; text-align: center; background: #000;
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.credits-roll { position: absolute; left: 0; right: 0; top: 100%; padding: 0 16px; }
.credits.rolling .credits-roll { animation: roll 34s linear forwards; }
@keyframes roll { to { transform: translateY(calc(-100% - 50vh)); } }
.c-head { font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--soft); margin: 2.4em 0 .4em; }
.c-name { margin: .15em 0; font-size: 1.1em; }
.c-end { margin-top: 4em; font-style: italic; color: var(--gold); font-size: 1.5em; }

.post-credits { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px; background: #000; }
.pc-label { font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--soft); margin: 0 0 1.4em; }
.post-credits .line { margin: 0; }
.heart { color: var(--pink); font-size: 2em; margin-top: .6em !important; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  .grain, .grid-floor, .present, .heart, .scroll-hint span { animation: none; }
  .line { transition-duration: .4s; filter: none; transform: none; }
}
