/* ==========================================================================
   Waitlist (src/pages/waitlist.mjs): what mythicbrain.com shows before the site and the Lookout open.
   First screen: the home hero's picture (src/scenes/photo.mjs#waitlistLookout) with the title and the form over its
   quiet left side; then what opens first, how joining works and the footer. Flat light: hard drops, hard-stop steps,
   no blur, no glow. Every loop is one transform/opacity animation; [data-scene].off pauses them off screen and
   reduced motion cuts them to their end state (shared/site.css).
   ========================================================================== */
.wl-hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; background: var(--nf-1); overflow: clip; }

/* ---------- the scene: the 16:9 picture covers the screen with the tower kept on the right (as .a-stage, shared/home.css) ---------- */
.wl-scene { position: absolute; inset: 0; z-index: -1; overflow: clip; container-type: size; }
.wl-stage {
  --fx: .85; --fy: .1; --sw: max(100cqw, 177.78cqh);
  position: absolute; width: var(--sw); aspect-ratio: 16 / 9;
  left: calc((100cqw - var(--sw)) * var(--fx)); top: calc((100cqh - var(--sw) * .5625) * var(--fy));
  background: #081419;
}
/* the title side reads on stepped ink; the picture's own floor steps into the page below */
.wl-scene::before, .wl-scene::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.wl-scene::before {
  /* --e: where the lede ends, wherever the column sits (it centres past --maxw-site); then eight 40 px steps to clear */
  --e: calc(max(var(--gutter-site), (100% - var(--maxw-site)) / 2) + 560px);
  inset: 0;
  background: linear-gradient(to right,
    rgb(6 17 22 / .78) 0 var(--e), rgb(6 17 22 / .68) var(--e) calc(var(--e) + 40px),
    rgb(6 17 22 / .58) calc(var(--e) + 40px) calc(var(--e) + 80px), rgb(6 17 22 / .48) calc(var(--e) + 80px) calc(var(--e) + 120px),
    rgb(6 17 22 / .38) calc(var(--e) + 120px) calc(var(--e) + 160px), rgb(6 17 22 / .28) calc(var(--e) + 160px) calc(var(--e) + 200px),
    rgb(6 17 22 / .18) calc(var(--e) + 200px) calc(var(--e) + 240px), rgb(6 17 22 / .08) calc(var(--e) + 240px) calc(var(--e) + 280px),
    transparent calc(var(--e) + 280px));
}
.wl-scene::after {
  inset: auto 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent 0 20%, rgb(10 23 29 / .3) 20% 40%, rgb(10 23 29 / .6) 40% 60%, rgb(10 23 29 / .85) 60% 80%, var(--nf-1) 80% 100%);
}

/* scene coordinates are the picture's 1536 x 864 box (ANCHORS.hero): calc(x / 1536 * 100%), calc(y / 864 * 100%) */
.wl-photo { position: absolute; inset: 0; animation: fade-in 1.1s var(--e-out) both; }
.wl-photo > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wl-photo .ph-art { position: absolute; inset: 0; display: block; background: var(--bands, #081419); }
.wl-photo .ph-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wl-photo i { position: absolute; translate: -50% -50%; pointer-events: none; }
.wl-photo .ring { left: calc(1361 / 1536 * 100%); top: calc(177 / 864 * 100%); width: 13.5%; aspect-ratio: 1; border-radius: 50%; border: clamp(4px, .5cqw, 9px) solid rgb(246 234 211 / .06); animation: breathe 7s var(--e-in-out) infinite; }
.wl-photo .ring.r2 { width: 18.5%; border-color: rgb(246 234 211 / .035); animation-delay: -3.5s; }
.wl-photo .win { left: calc(1266.5 / 1536 * 100%); top: calc(326.5 / 864 * 100%); width: calc(138 / 1536 * 100%); height: calc(36 / 864 * 100%); background: #fff3d6; opacity: 0; animation: wl-flicker 5.5s steps(1) infinite 2s; }
.wl-photo .beacon { left: calc(1267.5 / 1536 * 100%); top: calc(186 / 864 * 100%); width: .7%; aspect-ratio: 1; border-radius: 50%; background: var(--coral-500); animation: blink 2.2s linear infinite; }
.wl-photo .beacon::after { content: ""; position: absolute; inset: -60%; border-radius: 50%; border: 2px solid var(--coral-500); animation: ping 2.2s var(--e-out) infinite; }
.wl-photo .glint { animation: wl-glint 2.8s ease-in-out infinite alternate; }
.wl-photo .glint.g2 { animation-delay: -1.4s; }
.wl-photo .mist { animation: drift 46s ease-in-out infinite alternate; }
.wl-photo .mist.m2 { animation-duration: 62s; animation-direction: alternate-reverse; }
/* asked to join: the tower's window lights and stays lit (the end state is the state, so reduced motion keeps it) */
.wl-hero.joined .wl-photo .win { animation: wl-lit 2.4s var(--e-out) both; }
@keyframes wl-flicker { 0%, 100% { opacity: 0; } 41% { opacity: .3; } 43% { opacity: .06; } 45% { opacity: .24; } 47% { opacity: 0; } 78% { opacity: .18; } 80% { opacity: 0; } }
@keyframes wl-lit { 0%, 30%, 60% { opacity: .6; } 15%, 45% { opacity: 0; } 100% { opacity: .42; } }
@keyframes wl-glint { from { opacity: .05; transform: translateX(-.25%); } to { opacity: 1; transform: translateX(.25%); } }

/* ---------- the first screen's content ---------- */
.wl-in {
  width: min(calc(100% - 2 * var(--gutter-site)), var(--maxw-site)); margin-inline: auto;
  display: grid; grid-template-rows: auto 1fr; gap: 24px; padding-block: clamp(16px, 3vw, 34px) clamp(56px, 9vh, 110px);
}
.wl-in > .brand { justify-self: start; }
.wl-copy { align-self: center; display: grid; justify-items: start; width: min(100%, 640px); animation: rise .7s var(--e-out) both .1s; }
.wl-copy > .eyebrow { margin-bottom: 20px; }
.wl-copy h1 { font-size: clamp(2.7rem, min(1.3rem + 4vw, 10vh), 4.9rem); margin-bottom: 20px; }
.wl-copy h1 .ln { display: block; }
.wl-copy .lede { max-width: 54ch; color: var(--cream); }

/* the form: the site's newsletter plate (shared/site.css), its words in ink on cream */
.wl-form { display: grid; gap: 14px; width: 100%; margin-top: 30px; padding-top: clamp(30px, 3vw, 36px); color-scheme: light; } /* light: the checkbox draws on cream, not the page's dark */
.wl-form .tab { --tab: var(--sage-300); }
.wl-form .field > label { color: var(--ink-700); }
.wl-form .err { color: var(--rust-500); }
.wl-form .btn { flex: none; }
.wl-form .btn:disabled:not(.done) { opacity: .62; cursor: not-allowed; }
.wl-status { font-size: .9rem; font-weight: 650; color: var(--ink-500); }
.wl-fine { font-size: .84rem; color: var(--ink-500); }
.wl-fine .link { display: inline; color: var(--ink-700); }
.wl-form .stamp { position: absolute; top: -18px; right: 18px; z-index: 2; background: var(--paper-50); --sc: var(--sage-700); }
.wl-form[aria-busy="true"] .btn .i:first-child { animation: wobble .6s var(--e-out) infinite; }

/* ---------- below the first screen ---------- */
.wl-more { background: var(--nf-1); padding-top: clamp(8px, 2vw, 24px); }
.wl-wrap { width: min(calc(100% - 2 * var(--gutter-site)), var(--maxw-site)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); }
.wl-h { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font: 700 .76rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-300); text-shadow: none; }
.wl-h .i { width: 16px; height: 16px; }
.wl-block > p { color: var(--cream-dim); max-width: 52ch; margin-bottom: 22px; }

/* the arcade shelf: the open games as tiles (as the menu's shelf), not links: nothing can be played yet */
.wl-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; }
.wl-shelf li { display: grid; justify-items: center; gap: 9px; text-align: center; }
.wl-badge { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 21px; background: var(--nf-4); border: var(--bw) solid var(--nf-edge); box-shadow: inset 0 -4px 0 var(--nf-2), 0 4px 0 var(--nf-drop); }
.wl-badge img { width: 62px; height: 62px; object-fit: contain; }
.wl-name { font-weight: 700; font-size: .84rem; line-height: 1.2; color: var(--cream); text-wrap: balance; }

/* how joining works */
.wl-steps { display: grid; gap: 22px; }
.wl-steps li { display: flex; align-items: flex-start; gap: 16px; }
.wl-steps .medal { width: 52px; height: 52px; }
.wl-steps .medal .i { width: 24px; height: 24px; }
.wl-steps .medal b { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font: 700 .74rem/1 var(--f); color: var(--cream); background: var(--nf-3); border: 2px solid var(--nf-edge); }
.wl-steps h3 { font-size: 1.08rem; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.wl-steps p { font-size: .95rem; line-height: 1.5; color: var(--cream-dim); }

/* ---------- footer ---------- */
.wl-foot {
  width: min(calc(100% - 2 * var(--gutter-site)), var(--maxw-site)); margin: clamp(48px, 7vw, 96px) auto 0;
  padding-block: 26px max(26px, env(safe-area-inset-bottom)); border-top: 2px dashed var(--nf-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: .9rem; color: var(--cream-mute);
}
.wl-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; flex-basis: 100%; }
.wl-social > span { font: 700 .7rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-mute); }
.wl-social a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-weight: 700; color: var(--cream); }
.wl-social a .i { width: 14px; height: 14px; color: var(--amber-300); transition: transform .3s var(--e-pop); }
.wl-social a:hover { color: var(--amber-300); }
.wl-social a:hover .i { transform: translate(2px, -2px); }
.wl-mail { display: flex; align-items: flex-start; gap: 10px; color: var(--cream-dim); }
.wl-mail > .i { width: 18px; height: 18px; margin-top: 2px; color: var(--amber-300); flex: none; }
.wl-mail .link { overflow-wrap: anywhere; }
.wl-legal-line a { color: var(--cream-dim); text-decoration: underline; text-underline-offset: 3px; }
.wl-legal-line a:hover { color: var(--amber-300); }

/* ---------- the privacy notice in the same shell ---------- */
.wl-doc { background: var(--nf-1); min-height: 100vh; }
.wl-doc-in { width: min(calc(100% - 2 * var(--gutter-site)), 760px); margin-inline: auto; padding-top: clamp(16px, 3vw, 34px); display: grid; justify-items: start; gap: 16px; }
.wl-back { margin-top: 18px; }
.wl-doc h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.8rem); }
.wl-doc h1 .ln { display: block; }
.wl-meta { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: var(--cream-mute); }
.wl-meta .i { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.wl-prose { display: grid; gap: 30px; margin-top: 18px; }
.wl-prose h2 { font-size: 1.3rem; font-weight: 700; color: var(--cream); margin-bottom: 10px; }
.wl-prose p, .wl-prose li { line-height: 1.65; color: var(--cream-dim); }
.wl-prose p + p { margin-top: 12px; }
.wl-prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.wl-prose strong { color: var(--cream); }
.wl-prose .link { display: inline; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) { .wl-wrap { grid-template-columns: minmax(0, 1fr); } }
/* short laptop screens: keep the form on the first screen */
@media (min-width: 701px) and (max-height: 820px) {
  .wl-in { gap: 14px; padding-block: 14px 48px; }
  .wl-copy > .eyebrow { margin-bottom: 14px; }
  .wl-copy h1 { margin-bottom: 14px; }
  .wl-form { margin-top: 22px; gap: 10px; }
}
/* phones and portrait tablets: the picture is a band at the top, cropped to the tower (beside the copy the tower
   would sit under the lede); the copy starts where the band steps into the page */
@media (max-width: 700px), (max-aspect-ratio: 4 / 5) {
  .wl-scene { bottom: auto; height: calc(26svh + 190px); }
  .wl-stage { --fx: .9; }
  .wl-scene::before { display: none; }
  .wl-scene::after { height: 150px; }
  .wl-in { grid-template-rows: auto auto; padding-bottom: 40px; }
  .wl-copy { align-self: start; padding-top: calc(26svh + 34px); }
  .wl-copy > .eyebrow { margin-bottom: 14px; }
  .wl-form { margin-top: 24px; }
  .wl-form .stamp { position: static; justify-self: start; margin-top: 4px; } /* beside the tab it would cover it */
  .wl-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .wl-foot { flex-direction: column; align-items: flex-start; }
}

/* Forced colors: the moon's rings and the beacon's ping are borders, which would turn into thick black circles */
@media (forced-colors: active) { .wl-photo .ring, .wl-photo .beacon { forced-color-adjust: none; } }

/* ==========================================================================
   Pass ideas (waitlist/<k>/, src/pages/waitlist.mjs#waitlistIdea): hero/3's pass scene with the offer on the card.
   The stepped bands, the stamp ring and two ghost cards behind; the pass leans toward the pointer (screens/waitlist.js);
   three notes float around it. Copy and a compact form in a narrow column on the right.
   ========================================================================== */
.wl-pass-hero { position: relative; isolation: isolate; overflow: clip; min-height: 100vh; min-height: 100svh; display: grid; background: var(--nf-1); }
.wl-pass-hero .ph-bands { inset: 0 0 30% 0; }
.wl-pass-in {
  width: min(calc(100% - 2 * var(--gutter-site)), var(--maxw-site)); margin-inline: auto;
  display: grid; grid-template-rows: auto 1fr; gap: 12px; padding-block: clamp(16px, 3vw, 34px) clamp(40px, 7vh, 84px);
}
.wl-pass-in > .brand { justify-self: start; }
.wl-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.wl-grid > .wl-side { grid-column: 1; grid-row: 1; } /* copy and form on the left, the card on the right (user, 2026-10-06) */
.wl-grid > .wl-card { grid-column: 2; grid-row: 1; }

/* the stage: ring and ghosts behind, the pass, the notes around it (placed from the stage's centre, so they hug the pass) */
.wl-card { position: relative; display: grid; place-items: center; min-height: clamp(520px, 40vw, 600px); }
.wl-ring { position: absolute; left: 50%; top: 50%; width: min(120%, 640px); aspect-ratio: 1; translate: -50% -50%; animation: spin 140s linear infinite; }
.wl-ring circle { fill: none; stroke: var(--nf-line); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.wl-ring text { font: 700 17px/1 var(--f); letter-spacing: .3em; text-transform: uppercase; fill: var(--ink-500); }
.wl-ghost { position: absolute; left: 50%; top: 50%; width: min(380px, 88%); aspect-ratio: 380 / 470; translate: -50% -50%; border-radius: 26px; border: var(--bw) solid var(--nf-edge); background: var(--nf-3); box-shadow: 0 10px 0 var(--nf-drop); }
.wl-ghost.g1 { transform: rotate(-9deg) translate(-34px, 6px); }
.wl-ghost.g2 { transform: rotate(8deg) translate(34px, 2px); background: var(--nf-4); }
.wl-tilt { position: relative; z-index: 1; width: min(380px, 100%); transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(2deg); transition: transform .5s var(--e-out); will-change: transform; animation: pop-in .7s var(--e-pop) both .25s; }
.wl-pass { width: 100%; }
.wl-notes { margin: 0; padding: 0; list-style: none; }
.wl-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 250px; padding: 10px 16px 11px 10px; background: var(--nf-4); border: var(--bw) solid var(--nf-edge); border-radius: 16px; box-shadow: var(--lip), var(--drop-2); animation: float 6s var(--e-in-out) infinite; }
.wl-note .medal { width: 42px; height: 42px; }
.wl-note .medal .i { width: 20px; height: 20px; }
.wl-note b { display: block; font-weight: 700; font-size: .92rem; line-height: 1.2; color: var(--cream); }
.wl-note small { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.3; color: var(--cream-dim); }
.wl-note.n1 { right: calc(50% + 140px); top: 30%; }
.wl-note.n2 { left: calc(50% + 172px); top: 1%; animation-delay: -2s; }
.wl-note.n3 { left: calc(50% + 140px); bottom: 7%; animation-delay: -4s; }

/* ---------- the animated pass (user, 2026-10-06: animated; dark tried, then "light again") ----------
   Golden hour: the sun breathes, first stars twinkle out of step, a shooting star now and then, the tower's lamp
   flickers on the far ridge. The gift: an amber sunburst turning behind a bobbing disc, fading out in hard steps (it
   reads whole over sky and paper alike), three sparkles. A foil shine crosses the card, a scan line reads the barcode.
   All flat: hard stops, no blur, no glow; every loop one transform/opacity animation; reduced motion ends each one on a
   still, readable frame (shared/site.css). */
.wl-pass { box-shadow: inset 0 0 0 2px rgb(244 177 66 / .35), inset 0 -5px 0 var(--paper-200), 0 10px 0 var(--nf-drop); }
.wl-pass .pass-sky .wl-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; transition: translate .5s var(--e-out); translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -6px); }
.wl-pass .pass-sun { right: 14%; top: 20px; transition: translate .5s var(--e-out); translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -8px); }
.wl-shoot { position: absolute; left: 10%; top: 22px; width: 64px; height: 2px; border-radius: 2px; background: var(--paper-50); opacity: 0; transform-origin: right; animation: wl-shoot 9s var(--e-out) infinite 2.5s; }
@keyframes wl-shoot { 0%, 84% { opacity: 0; transform: translate(0, 0) rotate(-14deg) scaleX(.3); } 86% { opacity: 1; } 94%, 100% { opacity: 0; transform: translate(150px, 36px) rotate(-14deg) scaleX(1); } }
.wl-pass .pass-sky .wl-ridges { position: absolute; left: 0; bottom: -1px; width: 100%; height: 62px; }
.wl-lamp { animation: wl-lamp 5s steps(1) infinite 1s; }
@keyframes wl-lamp { 0%, 100% { opacity: 1; } 40% { opacity: .45; } 42% { opacity: 1; } 44% { opacity: .6; } 46% { opacity: 1; } }
/* the gift: sunburst behind, the disc bobbing in front, sparkles, and the burst of bits when someone asks to join */
.wl-gift { position: relative; z-index: 1; width: 108px; height: 108px; margin-top: -58px; animation: pop-in .6s var(--e-pop) both .55s; transition: translate .5s var(--e-out); translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 5px); }
.wl-rays { position: absolute; left: 50%; top: 50%; z-index: -1; width: 220px; aspect-ratio: 1; margin: -110px 0 0 -110px; border-radius: 50%; background: repeating-conic-gradient(rgb(232 112 74 / .26) 0 9deg, transparent 9deg 24deg); -webkit-mask-image: radial-gradient(circle closest-side, #000 0 52%, rgb(0 0 0 / .55) 52% 76%, rgb(0 0 0 / .22) 76% 100%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 0 52%, rgb(0 0 0 / .55) 52% 76%, rgb(0 0 0 / .22) 76% 100%, transparent 100%); animation: spin 36s linear infinite; }
.wl-gift > .wl-disc { --size: 108px; display: grid; place-items: center; border: 4px solid var(--ink-700); background: var(--amber-500); color: var(--ink-800); box-shadow: inset 0 -6px 0 var(--amber-700), 0 5px 0 var(--ink-700); animation: float 4.5s var(--e-in-out) infinite; }
.wl-disc .i { width: 50px; height: 50px; }
.wl-spark { position: absolute; width: 14px; height: 14px; background: var(--paper-50); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: wl-spark 2.6s var(--e-in-out) infinite; }
.wl-spark.s1 { left: -16px; top: 8px; }
.wl-spark.s2 { right: -20px; top: 30px; width: 10px; height: 10px; background: var(--cream); animation-delay: -.9s; }
.wl-spark.s3 { right: -6px; bottom: -6px; width: 12px; height: 12px; background: var(--amber-500); animation-delay: -1.7s; }
@keyframes wl-spark { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .1; transform: scale(.35) rotate(45deg); } }
.wl-bits { position: absolute; inset: 0; pointer-events: none; }
.wl-bits i { position: absolute; left: 50%; top: 50%; width: 8px; height: 12px; margin: -6px 0 0 -4px; border-radius: 2px; background: var(--amber-300); opacity: 0; }
.wl-bits i:nth-child(3n+1) { background: var(--sage-500); } .wl-bits i:nth-child(3n+2) { background: var(--ink-700); } .wl-bits i:nth-child(4n) { background: var(--coral-500); }
.wl-bits i:nth-child(1) { --dx: -96px; --dy: -70px; --r: -160deg; } .wl-bits i:nth-child(2) { --dx: -60px; --dy: -104px; --r: 120deg; }
.wl-bits i:nth-child(3) { --dx: -12px; --dy: -118px; --r: -90deg; } .wl-bits i:nth-child(4) { --dx: 40px; --dy: -110px; --r: 200deg; }
.wl-bits i:nth-child(5) { --dx: 86px; --dy: -80px; --r: -220deg; } .wl-bits i:nth-child(6) { --dx: 112px; --dy: -30px; --r: 140deg; }
.wl-bits i:nth-child(7) { --dx: 104px; --dy: 30px; --r: -120deg; } .wl-bits i:nth-child(8) { --dx: 70px; --dy: 70px; --r: 260deg; }
.wl-bits i:nth-child(9) { --dx: -70px; --dy: 66px; --r: -260deg; } .wl-bits i:nth-child(10) { --dx: -110px; --dy: 24px; --r: 180deg; }
.wl-bits i:nth-child(11) { --dx: -112px; --dy: -24px; --r: -140deg; } .wl-bits i:nth-child(12) { --dx: 14px; --dy: 96px; --r: 90deg; }
.joined .wl-bits i { animation: wl-bit .95s var(--e-out) both; }
.joined .wl-bits i:nth-child(even) { animation-delay: .06s; }
@keyframes wl-bit { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.5); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }
.joined .wl-gift > .wl-disc { animation: wobble .7s var(--e-pop) both, float 4.5s var(--e-in-out) infinite .7s; }

/* the words, the facts, the stub */
.wl-pass .pass-body { gap: 4px; }
.wl-pass .pass-body .eyebrow { margin-top: 12px; }
.wl-pass .pass-user { display: inline-flex; align-items: center; gap: 6px; }
.wl-pass .pass-user .i { width: 16px; height: 16px; }
.wl-pass .pass-facts { margin: 12px 0 0; }
.wl-stub { position: relative; align-self: stretch; display: grid; justify-items: center; gap: 3px; margin: 14px -22px 12px; padding: 14px 22px 0; border-top: 2px dashed var(--paper-300); }
.wl-stub::before, .wl-stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--nf-3); border: var(--bw) solid var(--nf-edge); }
.wl-stub::before { left: -13px; } .wl-stub::after { right: -13px; }
.wl-stub b { display: inline-flex; align-items: center; gap: 8px; font: 700 .86rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-700); }
.wl-stub b .i { width: 18px; height: 18px; color: var(--amber-800); }
.wl-stub small { font-size: .8rem; font-weight: 650; color: var(--ink-500); }

/* the barcode (bar widths are classes written by the build) and its scan line */
.wl-pass .pass-code { position: relative; }
.wl-pass .pass-code i { flex: 0 0 4px; }
.wl-pass .pass-code i.w1 { flex-basis: 2px; } .wl-pass .pass-code i.w3 { flex-basis: 6px; } .wl-pass .pass-code i.w4 { flex-basis: 8px; }
.wl-pass .pass-code .wl-scan { position: absolute; inset: -5px 0; flex: none; background: none; pointer-events: none; animation: wl-scan 4.2s var(--e-in-out) infinite 1.4s; }
.wl-scan::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--coral-500); }
@keyframes wl-scan { 0% { opacity: 0; transform: translateX(0); } 8%, 52% { opacity: 1; } 60%, 100% { opacity: 0; transform: translateX(100%); } }

/* the foil shine: one hard-edged band crosses the card, then rests */
.wl-shine { position: absolute; inset: 0; z-index: 4; overflow: hidden; border-radius: inherit; pointer-events: none; }
.wl-shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -45%; width: 34%; background: linear-gradient(90deg, transparent 0 18%, rgb(255 255 255 / .22) 18% 58%, rgb(255 255 255 / .4) 58% 72%, transparent 72%); transform: skewX(-18deg) translateX(0); animation: wl-shine 7s var(--e-in-out) infinite 1.2s; }
@keyframes wl-shine { 0%, 62% { transform: skewX(-18deg) translateX(0); } 86%, 100% { transform: skewX(-18deg) translateX(560%); } }

/* asked to join: the stamp lands on the stub, clear of the gift */
.wl-pass .pass-stamp { top: auto; bottom: 56px; right: 18px; z-index: 5; }
/* the column on the right: smaller title and text, a compact form */
.wl-side { display: grid; justify-items: start; gap: 14px; animation: rise .7s var(--e-out) both .1s; }
.wl-side h1 { font-size: clamp(1.9rem, 1.2rem + 1.5vw, 2.7rem); line-height: .98; }
.wl-side h1 .ln { display: block; }
.wl-side .lede { font-size: 1rem; line-height: 1.55; max-width: 42ch; }
.wl-side .wl-form { margin-top: 12px; }
/* the compact form: field and button as one block, the consent as a row you tick, availability as a status pill with
   a coloured dot (form[data-state], set by screens/waitlist.js), a light "Try again" chip, the privacy line last */
.wl-form-sm { gap: 12px; padding: 30px clamp(18px, 1.8vw, 24px) clamp(18px, 1.8vw, 22px); }
.wl-form-sm .tab { font-size: .68rem; }
.wl-form-sm .field > label { font-size: .78rem; letter-spacing: .04em; }
.wl-stack { display: grid; gap: 10px; }
.wl-form-sm .input { min-height: 52px; font-size: 1rem; }
.wl-form-sm .btn.primary { min-height: 52px; font-size: 1.02rem; }
/* closed: a quiet paper button, not a faded amber one */
.wl-form-sm .btn.primary:disabled:not(.done) { --c: var(--paper-200); --cd: var(--paper-300); --tc: var(--ink-500); opacity: 1; }
.wl-form-sm .btn.primary:disabled:not(.done) .i { opacity: .7; }
/* consent: the whole row is the target; it turns sage once ticked */
.wl-form-sm .consent-field > .newsletter-consent { gap: 12px; padding: 10px 12px; font-size: .86rem; line-height: 1.45; border-radius: 13px; border: 2px solid var(--paper-300); background: var(--paper-50); cursor: pointer; transition: border-color .15s, background-color .15s; }
.wl-form-sm .consent-field > .newsletter-consent:hover { border-color: var(--ink-500); }
.wl-form-sm .consent-field > .newsletter-consent:has(input:checked) { border-color: var(--sage-500); background: #eef2df; }
.wl-form-sm .field.invalid > .newsletter-consent { border-color: var(--rust-500); }
.wl-form-sm .newsletter-consent input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink-700); border-radius: 7px; background: var(--paper-50); box-shadow: inset 0 2px 0 var(--paper-200); cursor: pointer; transition: background-color .15s, transform .2s var(--e-pop); }
.wl-form-sm .newsletter-consent input::before { content: ""; width: 10px; height: 5px; border: solid var(--ink-800); border-width: 0 0 3px 3px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--e-pop); }
.wl-form-sm .newsletter-consent input:checked { background: var(--sage-500); box-shadow: none; transform: scale(1.06); }
.wl-form-sm .newsletter-consent input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.wl-form-sm .newsletter-consent input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.wl-form-sm .newsletter-consent input:disabled { cursor: default; }
/* availability */
.wl-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 12px; background: var(--paper-50); border: 2px dashed var(--paper-300); }
.wl-form-sm .wl-status { display: flex; align-items: flex-start; gap: 9px; font-size: .8rem; font-weight: 650; line-height: 1.4; color: var(--ink-500); }
.wl-form-sm .wl-status::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .32em; border-radius: 50%; background: var(--paper-300); }
.wl-form-sm:is([data-state="checking"], [data-state="sending"]) .wl-status::before { background: var(--amber-500); animation: blink 1.2s linear infinite; }
.wl-form-sm[data-state="ready"] .wl-status::before, .wl-form-sm[data-state="sent"] .wl-status::before { background: var(--sage-500); }
.wl-form-sm:is([data-state="off"], [data-state="error"]) .wl-status::before { background: var(--coral-500); }
.wl-form-sm[data-state="sent"] .wl-status-row { border-style: solid; border-color: var(--sage-500); background: #eef2df; }
.wl-retry { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 7px; border-radius: 9px; font: 700 .78rem/1 var(--f); color: var(--ink-700); background: var(--paper-100); border: 2px solid var(--ink-700); box-shadow: 0 2px 0 var(--ink-700); cursor: pointer; transition: transform .15s var(--e-pop), box-shadow .15s; }
.wl-retry[hidden] { display: none; }
.wl-retry .i { width: 14px; height: 14px; transition: transform .4s var(--e-out); }
.wl-retry:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink-700); }
.wl-retry:hover .i { transform: rotate(180deg); }
.wl-retry:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink-700); }
.wl-retry:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
/* the privacy line */
.wl-form-sm .wl-fine { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; line-height: 1.45; }
.wl-form-sm .wl-fine > .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--sage-700); }

/* below: the three steps side by side */
.wl-wrap-one { grid-template-columns: minmax(0, 1fr); }
.wl-steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* development only: the bar that links the ideas (not in any deploy) */
.wl-ideas { position: fixed; z-index: 50; top: 18px; right: 18px; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 24px); overflow-x: auto; padding: 5px; font: 700 .78rem/1 var(--f); background: var(--nf-4); border: var(--bw) solid var(--nf-edge); border-radius: 14px; box-shadow: var(--drop-2); }
.wl-ideas b { padding: 0 8px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-300); }
.wl-ideas a { padding: 8px 11px; border-radius: 10px; color: var(--cream-dim); white-space: nowrap; }
.wl-ideas a:hover { color: var(--cream); background: var(--nf-5); }
.wl-ideas a[aria-current="page"] { color: var(--ink-800); background: var(--amber-500); }

/* short laptop screens: a smaller pass and a tighter column, so the card and the whole form share one screen */
@media (min-width: 901px) and (max-height: 820px) {
  .wl-pass-in { padding-block: 14px 28px; gap: 4px; }
  .wl-card { min-height: 0; padding-block: 24px; }
  .wl-tilt { width: 330px; }
  .wl-ghost { width: 330px; }
  .wl-ring { width: min(112%, 540px); }
  .wl-pass .pass-sky { height: 124px; }
  .wl-side { gap: 10px; }
  .wl-side .wl-form { margin-top: 8px; }
  .wl-form-sm { gap: 8px; padding-top: 26px; }
}

/* the notes float beside the pass only while the stage has room; below that they sit under it as a row of chips */
@media (max-width: 1180px) {
  .wl-card { min-height: 0; gap: 20px; padding-block: 34px 6px; }
  .wl-ring, .wl-ghost { top: 268px; }
  .wl-notes { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(480px, 100%); }
  .wl-note, .wl-note.n1, .wl-note.n2, .wl-note.n3 { position: static; width: auto; max-width: none; gap: 9px; padding: 6px 13px 7px 6px; border-radius: 13px; box-shadow: var(--drop-1); animation: none; }
  .wl-note .medal { width: 32px; height: 32px; }
  .wl-note .medal .i { width: 16px; height: 16px; }
  .wl-note b { font-size: .84rem; }
  .wl-note small { display: none; }
}
/* one column: the copy and the form first (the reason to be here), then the pass */
@media (max-width: 900px) {
  .wl-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .wl-grid > .wl-side, .wl-grid > .wl-card { grid-column: 1; grid-row: auto; }
  .wl-side { order: -1; }
  .wl-side .lede { max-width: 56ch; }
  .wl-side .wl-form { width: 100%; max-width: 480px; }
  .wl-steps-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
  .wl-card { padding-top: 20px; }
  .wl-tilt { width: min(340px, 100%); }
  .wl-ring { width: 140%; }
  .wl-ring, .wl-ghost { top: 236px; }
  .wl-ghost { width: min(330px, 84%); }
}

/* The form's tab sits straight (user, 2026-10-07). */
.wl-form .tab { transform: none; }
/* The status row speaks only when there is something to say: hidden while checking and once ready (user, 2026-10-07). */
.wl-form-sm:is(:not([data-state]), [data-state="checking"], [data-state="ready"]) .wl-status-row { display: none; }

/* The confirmation page (/confirm/, filled by waitlist-api): the pass scene with the action card on the right. */
.wl-act { display: grid; gap: 14px; }
.wl-act form { display: grid; }
.wl-act .wl-back { color: var(--ink-700); justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; }
.wl-act .wl-back .i { width: 16px; height: 16px; }
.wl-act .wl-fine { color: var(--ink-500); }
.wl-act[data-tone="ok"] { border-color: var(--sage-500); }
.wl-more-foot { padding-top: 0; }

/* B · Olymbo pass (user, 2026-10-07): the free game's key art in the sky, its lamp badge on the disc, its wordmark. */
.wl-pass-art .pass-sky { display: block; height: 176px; background: #3a1f33; }
.wl-pass-art .wl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 42%; transition: translate .5s var(--e-out), scale .5s var(--e-out); scale: 1.06; translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -5px); }
.wl-pass-art .pass-sky .brand-mini { z-index: 2; }
.wl-gift > .wl-disc.wl-disc-art { background: var(--paper-50); box-shadow: inset 0 -6px 0 var(--paper-300), 0 5px 0 var(--ink-700); overflow: hidden; }
.wl-disc-art img { display: block; width: 84px; height: 84px; }
.wl-wordmark { display: block; margin: 2px 0 0; }
.wl-wordmark img { display: block; width: min(250px, 100%); height: auto; }
@media (prefers-reduced-motion: reduce) { .wl-pass-art .wl-art img { transition: none; translate: none; } }

/* B · the wordmark centred; the facts dealt as a fanned hand of three cards; the stub as one row (user, 2026-10-07). */
.wl-wordmark { align-self: stretch; }
.wl-wordmark img { margin-inline: auto; }
.wl-hand { list-style: none; margin: 16px 0 6px; padding: 0; display: flex; justify-content: center; }
.wl-hand li { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; width: 86px; height: 104px; margin-inline: -4px; background: var(--paper-50); border: 2px solid var(--ink-700); border-radius: 11px; box-shadow: 0 4px 0 var(--ink-700); transform-origin: 50% 120%; transition: transform .3s var(--e-pop); }
.wl-hand li:nth-child(1) { transform: rotate(-8deg); }
.wl-hand li:nth-child(2) { z-index: 1; transform: translateY(-6px); }
.wl-hand li:nth-child(3) { transform: rotate(8deg); }
.wl-hand .c { position: absolute; left: 8px; top: 6px; font: 800 .74rem/1 var(--f); color: var(--amber-800); }
.wl-hand b { font: 800 2rem/1 var(--f); letter-spacing: -.03em; color: var(--ink-800); }
.wl-hand small { font: 800 .56rem/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); }
.wl-card:hover .wl-hand li:nth-child(1) { transform: rotate(-12deg) translateX(-4px); }
.wl-card:hover .wl-hand li:nth-child(3) { transform: rotate(12deg) translateX(4px); }
@media (prefers-reduced-motion: reduce) { .wl-hand li { transition: none; } }
.wl-stub-row { grid-template-columns: 1fr auto; justify-items: start; align-items: center; gap: 12px; margin-bottom: -4px; text-align: left; }
.wl-stub-row > span:first-child { display: grid; gap: 4px; }
.wl-stub-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--amber-500); border: 2px solid var(--ink-700); border-radius: 10px; box-shadow: 0 3px 0 var(--ink-700); }
.wl-stub-mark svg { width: 22px; height: 24px; }
.idea-b .wl-note.n3 { left: calc(50% + 176px); } /* clear of the stub mark */
/* Joined (or confirmed): the stub says so in its own line, no stamp. */
.wl-stub.sent { border-top-color: var(--sage-500); }
.wl-stub.sent small { color: var(--sage-700); }
.wl-stub.sent .wl-stub-mark { background: var(--sage-500); }

/* Olymbo pass: Zeus leans into the art's top left with a speech bubble (user, 2026-10-07). */
.wl-zeus { position: absolute; left: -10px; bottom: -4px; z-index: 2; width: 128px; height: 128px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 40% 100%; animation: wl-zeus-in .6s var(--e-pop) both .9s; }
.wl-zeus img { display: block; width: 100%; height: 100%; }
.wl-zeus:hover { transform: rotate(-3deg); }
.wl-zeus:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -3px; border-radius: 12px; }
.wl-zeus.nod { animation: wl-zeus-nod .45s var(--e-pop); }
.wl-bubble { position: absolute; left: 112px; top: 18px; z-index: 3; max-width: 168px; margin: 0; padding: 8px 11px 9px; font-size: .78rem; line-height: 1.32; font-weight: 650; color: var(--ink-800); background: var(--paper-50); border: 2px solid var(--ink-700); border-radius: 12px 12px 12px 4px; box-shadow: 0 3px 0 var(--ink-700); animation: pop-in .45s var(--e-pop) both 1.3s; }
.wl-bubble b { font-weight: 800; color: #b4690e; }
.wl-bubble.pop { animation: pop-in .35s var(--e-pop) both; }
@keyframes wl-zeus-in { from { transform: translateY(70%); } }
@keyframes wl-zeus-nod { 40% { transform: rotate(-4deg); } } /* no lift: the art cuts him off (user) */
@media (prefers-reduced-motion: reduce) { .wl-zeus, .wl-bubble, .wl-zeus.nod, .wl-bubble.pop { animation: none; } }

/* The bubble's tail: an ink triangle with a paper one inside, pointing down-left at Zeus. */
.wl-bubble::before, .wl-bubble::after { content: ""; position: absolute; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.wl-bubble::before { left: -15px; bottom: 6px; width: 17px; height: 15px; background: var(--ink-700); }
.wl-bubble::after { left: -10px; bottom: 8.5px; width: 12px; height: 10px; background: var(--paper-50); }

/* The facts as a stack of Libation cards (the arcade game's matte sprites) beside a legend (user, 2026-10-07; no face-down card). */
.wl-deal { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; width: 100%; margin: 14px 0 4px; text-align: left; }
.lb-stack { --cw: 62px; --ch: 92px; position: relative; list-style: none; margin: 0; padding: 0; width: calc(var(--cw) + 48px); height: calc(var(--ch) + 14px); }
.lb { position: absolute; left: 0; top: 6px; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .13); background: #fff4dc url(../assets/art/olymbo/libation-front.webp) center / 100% 100% no-repeat; border: 3px solid var(--ink-800); box-shadow: 0 4px 0 var(--ink-800); color: var(--sc); overflow: hidden; transform-origin: 50% 100%; transition: transform .3s var(--e-pop); }
.lb.s-S { --sc: #243a73; } .lb.s-H { --sc: #e8443a; } .lb.s-D { --sc: #f08a1c; }
.lb .idx { position: absolute; top: 10%; left: 10%; font: 900 calc(var(--cw) * .32)/1 var(--f); letter-spacing: -.04em; }
.lb .pip { position: absolute; object-fit: contain; }
.lb .pip.small { top: 44%; left: 10%; width: 22%; }
.lb .pip.big { right: 9%; bottom: 9%; width: 52%; }
.lb:nth-child(1) { transform: rotate(-7deg); }
.lb:nth-child(2) { left: 24px; top: 2px; transform: rotate(0deg); }
.lb:nth-child(3) { left: 48px; top: 4px; transform: rotate(7deg); }
.wl-card:hover .lb:nth-child(1) { transform: rotate(-10deg) translateX(-3px); }
.wl-card:hover .lb:nth-child(3) { transform: rotate(10deg) translateX(3px); }
.lb-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-legend li { display: flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 700; line-height: 1.2; color: var(--ink-700); }
.lb-key { flex: none; display: inline-flex; align-items: center; gap: 2px; min-width: 34px; padding: 3px 6px; font: 900 .82rem/1 var(--f); color: var(--sc); background: #fff4dc; border: 2px solid var(--ink-700); border-radius: 7px; }
.lb-key.s-S { --sc: #243a73; } .lb-key.s-H { --sc: #e8443a; } .lb-key.s-D { --sc: #f08a1c; }
.lb-key .pip.key { width: 12px; height: 12px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .lb { transition: none; } }
