:root {
  --ink: #0b0809;
  --ink-2: #140e10;
  --cream: #efe2cc;
  --cream-2: #f3e7d3;
  --muted: #c2b29a;
  --label: #d9c4a0;
  --gold: #d9ab55;
  --gold-hi: #f1d08a;
  --gold-line: rgba(217, 171, 85, 0.5);
  --crimson: #b3243a;
  --wax: #8c1226;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --caps: "Cormorant SC", "Iowan Old Style", Georgia, serif;
  --body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--body); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: var(--gold-hi); }
a:hover { color: #fbe6b0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.foil { background: linear-gradient(176deg, #9a6a26 0%, #e3b866 22%, #fff0c8 38%, #ddb05a 52%, #a3742c 68%, #f1d08a 86%, #9a6a26 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gem { display: inline-block; width: 9px; height: 9px; transform: rotate(45deg); background: var(--crimson); box-shadow: 0 0 0 2px #c99a4f; flex: none; }
.gem.lg { width: 12px; height: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: max(28px, env(safe-area-inset-top)) 20px 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  linear-gradient(0deg, var(--ink) 0%, rgba(11, 8, 9, 0) 26%),
  linear-gradient(180deg, rgba(11, 8, 9, 0.5) 0%, rgba(11, 8, 9, 0.88) 45%, rgba(11, 8, 9, 0.97) 100%),
  url("/assets/candles.jpg") center 42% / cover no-repeat; }
.hero-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.copy { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-family: var(--caps); font-weight: 600; font-size: 13px; letter-spacing: 0.3em; color: var(--label); }
h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 10.8vw, 104px); line-height: 0.98; letter-spacing: 0.005em; text-wrap: balance; }
.lede { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(21px, 5.4vw, 30px); line-height: 1.28; color: var(--cream); max-width: 30ch; }

.join { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.fields { display: flex; flex-direction: column; gap: 12px; }
.fields label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-family: var(--caps); font-weight: 600; font-size: 14px; letter-spacing: 0.2em; color: var(--label); }
.fields input { width: 100%; height: 54px; padding: 0 16px; border-radius: 2px; border: 1px solid var(--gold-line); background: rgba(255, 248, 235, 0.05); color: #f6ecdc; font-family: var(--body); font-size: 18px; -webkit-appearance: none; appearance: none; }
.fields input::placeholder { color: #9d8e7a; }
.fields input:focus { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-color: var(--gold-hi); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: 0; font-size: 16px; color: #ff9aa6; }
.fine { margin: 0; font-size: 15px; line-height: 1.5; color: #b8a88f; }
.fine a { color: #d9c4a0; }

.cta { min-height: 56px; padding: 0 30px; border: 0; border-radius: 2px; cursor: pointer; background: linear-gradient(180deg, #f1d08a, #d2a14d); color: #1b0f06; font-family: var(--caps); font-weight: 700; font-size: 20px; letter-spacing: 0.16em; box-shadow: 0 10px 30px rgba(217, 171, 85, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; -webkit-tap-highlight-color: transparent; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(217, 171, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); color: #1b0f06; }
.cta[disabled] { opacity: 0.75; cursor: progress; transform: none; }
.cta .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(27, 15, 6, 0.3); border-top-color: #1b0f06; animation: spin 0.8s linear infinite; }
.cta.sm { min-height: 50px; font-size: 17px; padding: 0 24px; }
.link { background: none; border: 0; padding: 12px 8px; min-height: 44px; color: var(--label); font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: 0.22em; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(217, 196, 160, 0.4); }
.link:hover { color: var(--gold-hi); }

.joined { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--gold-line); background: rgba(255, 248, 235, 0.04); }
.joined-h { margin: 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 27px; line-height: 1.15; color: var(--gold-hi); }
.joined-s { margin: 0; font-size: 17px; color: #cdbb9c; }
.joined .link { align-self: flex-start; padding-left: 0; }

/* the floating 3D book */
.stage { --bw: 150px; --d: calc(var(--bw) * 0.085); position: relative; width: 100%; display: flex; justify-content: center; align-items: center; min-height: calc(var(--bw) * 1.78); perspective: 1600px; }
.glow { position: absolute; width: calc(var(--bw) * 2.1); height: calc(var(--bw) * 2.1); border-radius: 50%; background: radial-gradient(circle, rgba(179, 36, 58, 0.38) 0%, rgba(217, 171, 85, 0.12) 38%, rgba(11, 8, 9, 0) 70%); animation: pulse 6s ease-in-out infinite; }
.floor { position: absolute; bottom: 0; width: calc(var(--bw) * 1.1); height: calc(var(--bw) * 0.12); border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 70%); animation: shadow 7s ease-in-out infinite; }
.book { position: relative; width: var(--bw); height: calc(var(--bw) * 1.5); transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.book .f { position: absolute; inset: 0; transform: translateZ(var(--d)); background: #0f0c0d url("/assets/cover.jpg") center / cover; border-radius: 2px 4px 4px 2px; box-shadow: inset 5px 0 9px rgba(0, 0, 0, 0.6), inset -1px 0 0 rgba(255, 255, 255, 0.08); overflow: hidden; }
.book .f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 240, 200, 0) 30%, rgba(255, 240, 200, 0.16) 45%, rgba(255, 240, 200, 0) 60%); background-size: 250% 100%; animation: sheen 7s ease-in-out infinite; }
.book .b { position: absolute; inset: 0; transform: rotateY(180deg) translateZ(var(--d)); background: #120e0f; }
.book .s { position: absolute; top: 0; left: calc(var(--d) * -1); width: calc(var(--d) * 2); height: 100%; transform: rotateY(-90deg); background: linear-gradient(90deg, #0b0809, #1b1416 50%, #0b0809); display: flex; align-items: center; justify-content: center; }
.book .s span { writing-mode: vertical-rl; font-family: var(--caps); font-weight: 600; letter-spacing: 0.3em; font-size: calc(var(--bw) * 0.05); color: var(--gold); white-space: nowrap; }
.book .p { position: absolute; top: 1.2%; left: calc(var(--bw) - var(--d)); width: calc(var(--d) * 1.9); height: 97.6%; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f0e4c9 0 2px, #d6c6a3 2px 3px); }
.book .t { position: absolute; left: 0; top: calc(var(--d) * -1); width: 98%; height: calc(var(--d) * 1.9); transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #f0e4c9 0 2px, #d6c6a3 2px 3px); }

/* ---------- sections ---------- */
main section { padding: 72px 20px; }
.pillars { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 44px; border-top: 1px solid rgba(217, 171, 85, 0.18); }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar .num { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; }
.pillar h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 29px; line-height: 1.12; color: var(--cream-2); }
.pillar p { margin: 0; color: var(--muted); max-width: 36ch; }
.quote { padding-block: 96px !important; background: radial-gradient(ellipse at 50% 50%, #2a0b13 0%, var(--ink) 70%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.quote blockquote { margin: 0; max-width: 900px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(32px, 7.4vw, 62px); line-height: 1.12; text-wrap: balance; }
.cite { margin: 0; font-family: var(--caps); font-weight: 600; font-size: 14px; letter-spacing: 0.3em; color: var(--label); }
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; padding-block: 88px 76px !important; }
.final h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 7vw, 58px); line-height: 1.06; color: var(--cream-2); text-wrap: balance; }
.foot { max-width: 1200px; margin: 0 auto; padding: 30px 20px max(40px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(217, 171, 85, 0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #a3937c; }
.foot .brand { font-family: var(--caps); font-weight: 600; letter-spacing: 0.28em; color: var(--label); }
.foot a { color: #c9b896; }

@media (min-width: 760px) {
  .hero { padding: 88px 32px 96px; }
  .hero-bg { background:
    linear-gradient(90deg, rgba(11, 8, 9, 0.97) 0%, rgba(11, 8, 9, 0.86) 42%, rgba(11, 8, 9, 0.45) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 8, 9, 0) 30%),
    url("/assets/candles.jpg") center 58% / cover no-repeat; }
  .hero-in { flex-direction: row-reverse; justify-content: space-between; gap: 56px; }
  .stage { --bw: 320px; width: auto; flex: 1 1 380px; }
  .copy { flex: 1 1 460px; gap: 24px; }
  .eyebrow { font-size: 15px; }
  .fields { flex-direction: row; }
  .fields label:first-child { flex: 1 1 180px; }
  .fields label:nth-child(2) { flex: 1.4 1 220px; }
  .join { max-width: 520px; }
  main section { padding: 96px 32px; }
}

/* ---------- the reveal ---------- */
.scene { position: fixed; inset: 0; z-index: 50; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(ellipse at 50% 38%, #2c0c14 0%, #0f0608 55%, #050304 100%); opacity: 0; }
.scene.play { animation: fadeIn 0.5s ease forwards; }
.scene-in { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2dvh, 18px); padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); text-align: center; }
.scene-eyebrow { margin: 0; font-family: var(--caps); font-weight: 600; font-size: 12px; letter-spacing: 0.4em; color: var(--label); opacity: 0; }
.win { position: relative; height: clamp(250px, 54dvh, 640px); aspect-ratio: 946 / 1934; flex: none; opacity: 0; margin-bottom: clamp(18px, 4dvh, 40px); }
.win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.75)); }
.moon { position: absolute; left: 52.5%; top: 39.9%; width: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 250, 230, 0.6) 0%, rgba(255, 240, 200, 0.18) 34%, rgba(255, 240, 200, 0) 70%); mix-blend-mode: screen; opacity: 0; pointer-events: none; }

/* number inside the glass */
.numwrap { position: absolute; left: 21.7%; right: 16.5%; top: 47%; bottom: 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; }
.numwrap .veil { position: absolute; inset: -8% -14%; background: radial-gradient(ellipse at 50% 50%, rgba(5, 3, 4, 0.82) 0%, rgba(5, 3, 4, 0.55) 45%, rgba(5, 3, 4, 0) 72%); }
.numwrap .no { position: relative; font-family: var(--caps); font-weight: 600; font-size: clamp(13px, 2.2dvh, 18px); letter-spacing: 0.3em; color: var(--gold-hi); }
.numwrap .big { position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(54px, 11.5dvh, 128px); line-height: 0.95; font-variant-numeric: lining-nums tabular-nums; filter: drop-shadow(0 0 18px rgba(241, 208, 138, 0.45)) drop-shadow(0 3px 0 rgba(0, 0, 0, 0.8)); }
.numwrap .of { position: relative; margin-top: 4px; font-family: var(--caps); font-weight: 600; font-size: clamp(11px, 1.9dvh, 16px); letter-spacing: 0.32em; color: var(--label); }
.numwrap.counting .big { filter: blur(0.6px) drop-shadow(0 0 10px rgba(241, 208, 138, 0.35)); }
.numwrap.landed .big { animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }

/* sealed shutters */
.shutters { position: absolute; left: 21.7%; right: 16.5%; top: 7.6%; bottom: 15.2%; perspective: 900px; }
.sh { position: absolute; top: 0; bottom: 0; width: 50%; background:
  repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 2px, rgba(0, 0, 0, 0) 2px 9px),
  linear-gradient(180deg, #1c1113 0%, #0d0708 100%);
  box-shadow: inset 0 0 0 5px #0c0708, inset 0 0 0 7px rgba(201, 154, 79, 0.95), inset 0 0 0 12px #0c0708, inset 0 0 0 13px rgba(201, 154, 79, 0.45), inset 0 0 36px rgba(0, 0, 0, 0.9);
  backface-visibility: hidden; transform-style: preserve-3d; }
.sh.l { left: 0; transform-origin: left center; border-top-left-radius: 100% 32%; }
.sh.r { right: 0; transform-origin: right center; border-top-right-radius: 100% 32%; }
.sh::before { content: ""; position: absolute; left: 22%; right: 22%; top: 40%; height: 26%; border: 1.5px solid rgba(201, 154, 79, 0.7); border-radius: 2px; }
.sh .half { position: absolute; top: 56%; width: clamp(46px, 8dvh, 72px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d2394c, #8c1226 55%, #4e0612 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55), inset 0 -5px 10px rgba(0, 0, 0, 0.35); transform: translateY(-50%); backface-visibility: hidden; }
.sh.l .half { right: 0; translate: 50% 0; clip-path: inset(0 50% 0 0); }
.sh.r .half { left: 0; translate: -50% 0; clip-path: inset(0 0 0 50%); }
.sh .half::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1.5px solid rgba(255, 190, 190, 0.35); }
.sh .half::after { content: ""; position: absolute; inset: 20%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23f3b3b9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8.5c3.2 0 5.4 2.2 5.4 4.8s-2.3 4.6-5.4 4.6-4.8-1.9-4.8-4.2 1.9-3.7 4-3.7 3.2 1.3 3.2 2.8-1.1 2.3-2.4 2.3'/%3E%3Cpath d='M9 12.5c0 5.2 3.1 9.3 7 9.3s7-4.1 7-9.3'/%3E%3Cpath d='M11.2 8.6c-1.4 1.3-2.2 2.6-2.2 3.9M20.8 8.6c1.4 1.3 2.2 2.6 2.2 3.9'/%3E%3Cpath d='M16 21.8v7'/%3E%3Cpath d='M16 25.6c-2.6-.1-4.4-1.3-5.3-3.2 2.5-.1 4.4 1 5.3 3.2z' fill='%23f3b3b9'/%3E%3Cpath d='M16 24.4c2.3-.1 3.9-1.1 4.7-2.8-2.2-.1-3.9.9-4.7 2.8z' fill='%23f3b3b9'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 1px 0 rgba(255, 210, 210, 0.2)); }
.seam { position: absolute; left: 50%; top: 4%; bottom: 0; width: 2px; translate: -1px 0; background: linear-gradient(180deg, rgba(255, 230, 170, 0), #ffe7a8 30%, #fff4d6 56%, #ffe7a8 80%, rgba(255, 230, 170, 0)); box-shadow: 0 0 12px 3px rgba(255, 220, 150, 0.7); opacity: 0; }

/* the number seal that stamps at the end */
.seal2 { position: absolute; left: 50%; bottom: -6%; width: clamp(64px, 10.5dvh, 104px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d2394c, #8c1226 55%, #4e0612 100%); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 -6px 12px rgba(0, 0, 0, 0.35), inset 0 4px 8px rgba(255, 160, 160, 0.25); display: grid; place-items: center; opacity: 0; }
.seal2::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 2px solid rgba(255, 190, 190, 0.35); }
.seal2 span { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 4dvh, 40px); color: #f3b3b9; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 210, 210, 0.2); font-variant-numeric: lining-nums; }
.ring { position: absolute; left: 50%; bottom: -6%; width: clamp(64px, 10.5dvh, 104px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 2px solid var(--gold-hi); opacity: 0; pointer-events: none; }

.scene-h { margin: 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(28px, 4.6dvh, 46px); line-height: 1.05; text-wrap: balance; opacity: 0; }
.scene-s { margin: 0; max-width: 34ch; font-size: clamp(15px, 2.2dvh, 18px); line-height: 1.5; color: #d8c7a8; opacity: 0; }
.scene-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; opacity: 0; }
.close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(217, 171, 85, 0.6); background: rgba(11, 8, 9, 0.6); color: var(--gold-hi); cursor: pointer; display: grid; place-items: center; opacity: 0; }
.flash { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at 50% 42%, rgba(255, 247, 225, 0.95) 0%, rgba(255, 228, 170, 0.5) 25%, rgba(255, 228, 170, 0) 62%); opacity: 0; }
.rain i, .burst { position: fixed; top: -5vh; width: 15px; height: 19px; border-radius: 80% 0 80% 0; background: radial-gradient(circle at 30% 30%, #d03a50, #8c1226 60%, #4a0614); pointer-events: none; opacity: 0; z-index: 1; }
.burst { top: 0; left: 0; z-index: 4; }

/* the choreography (times in seconds from opening) */
.scene.play .scene-eyebrow { animation: rise 0.9s ease 0.3s forwards; }
.scene.play .win { animation: winIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards; }
.scene.play .shutters { animation: shake 0.5s ease-in-out 1.05s 1; }
.scene.play .seam { animation: seamGlow 1.3s ease 1.05s forwards; }
.scene.play .sh.l { animation: openL 1.7s cubic-bezier(0.55, 0, 0.15, 1) 1.6s forwards; }
.scene.play .sh.r { animation: openR 1.7s cubic-bezier(0.55, 0, 0.15, 1) 1.6s forwards; }
.scene.play .flash { animation: flash 1.3s ease-out 1.75s forwards; }
.scene.play .moon { animation: fadeIn 1s ease 1.9s forwards, moon 4.5s ease-in-out 2.9s infinite; }
.scene.play .numwrap { animation: fadeIn 0.5s ease 2.55s forwards; }
.scene.play .scene-h { animation: rise 0.9s ease 3.95s forwards; }
.scene.play .scene-s { animation: rise 0.9s ease 4.25s forwards; }
.scene.play .seal2 { animation: stamp 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) 4.6s forwards; }
.scene.play .ring { animation: ring 1.1s ease-out 4.85s forwards; }
.scene.play .scene-actions { animation: rise 0.8s ease 5.1s forwards; }
.scene.play .close { animation: fadeIn 0.6s ease 2.2s forwards; }
.scene.play .rain i { animation: fall linear infinite; }
.rain i:nth-child(1) { left: 6%; animation-duration: 9s; animation-delay: 3.2s; --dx: 40px; }
.rain i:nth-child(2) { left: 15%; animation-duration: 11s; animation-delay: 4.4s; --dx: -60px; }
.rain i:nth-child(3) { left: 24%; animation-duration: 8s; animation-delay: 3.6s; --dx: 70px; }
.rain i:nth-child(4) { left: 33%; animation-duration: 12s; animation-delay: 5.1s; --dx: -30px; }
.rain i:nth-child(5) { left: 42%; animation-duration: 10s; animation-delay: 3.9s; --dx: 60px; }
.rain i:nth-child(6) { left: 51%; animation-duration: 9.5s; animation-delay: 6s; --dx: -80px; }
.rain i:nth-child(7) { left: 60%; animation-duration: 8.5s; animation-delay: 3.4s; --dx: 50px; }
.rain i:nth-child(8) { left: 69%; animation-duration: 11.5s; animation-delay: 4.8s; --dx: -50px; }
.rain i:nth-child(9) { left: 78%; animation-duration: 9s; animation-delay: 5.6s; --dx: 60px; }
.rain i:nth-child(10) { left: 87%; animation-duration: 10.5s; animation-delay: 4.2s; --dx: -70px; }
.rain i:nth-child(11) { left: 95%; animation-duration: 8s; animation-delay: 5s; --dx: 30px; }
.rain i:nth-child(12) { left: 11%; animation-duration: 13s; animation-delay: 7s; --dx: 90px; }
.rain i:nth-child(13) { left: 56%; animation-duration: 12.5s; animation-delay: 7.5s; --dx: 40px; }
.rain i:nth-child(14) { left: 83%; animation-duration: 11s; animation-delay: 8s; --dx: -60px; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes winIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-2px) rotate(-0.3deg); } 40% { transform: translateX(2px) rotate(0.3deg); } 60% { transform: translateX(-1.5px); } 80% { transform: translateX(1px); } }
@keyframes seamGlow { 0% { opacity: 0; } 45% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes openL { 0% { transform: none; } 12% { transform: rotateY(-6deg); } 100% { transform: rotateY(-118deg); } }
@keyframes openR { 0% { transform: none; } 12% { transform: rotateY(6deg); } 100% { transform: rotateY(118deg); } }
@keyframes flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes moon { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.14); } }
@keyframes pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.8) rotate(-24deg); } 60% { opacity: 1; transform: scale(0.9) rotate(4deg); } 100% { opacity: 1; transform: rotate(-6deg); } }
@keyframes ring { 0% { opacity: 0.95; transform: scale(0.7); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes fall { 0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); } 8% { opacity: 0.95; } 100% { opacity: 0.9; transform: translate3d(var(--dx), 112vh, 0) rotate(560deg); } }
@keyframes float { 0%, 100% { transform: rotateY(-27deg) rotateX(7deg) translateY(0); } 50% { transform: rotateY(-19deg) rotateX(4deg) translateY(-12px); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(0.86); opacity: 0.6; } }
@keyframes pulse { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes sheen { 0%, 35% { background-position: 120% 0; } 65%, 100% { background-position: -60% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .rain, .flash { display: none; }
}

.scene.play .sh .half { animation: halfOff 0.5s ease 2.6s forwards; }
@keyframes halfOff { to { opacity: 0; } }
.eyebrow .tail { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
