/* 5 Card Flash product page. Self-contained: nothing here is shared with the rest of beahinc.com.
   Identity: night navy, gold and teal from the app; Big Shoulders Display (marquee) and Fraunces (the hosts' voice). */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/BigShouldersDisplay-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --night: #0B1328; --navy: #101A31; --deep: #162447; --royal: #2450BE; --royal-hi: #3B6BE0;
  --gold: #CBA760; --gold-hi: #F1D58E; --ivory: #FAFBFF; --mist: rgba(250, 251, 255, .78); --faint: rgba(250, 251, 255, .6);
  --teal: #0B7F72; --aurora: #6FE3D2; --miss: #E58A8A; --felt: #1D3E8F;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --voice: "Fraunces", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(18px, 5vw, 56px); --head: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body.fcf { margin: 0; background: var(--night); color: var(--ivory); font: 17px/1.55 var(--body); overflow-x: clip; }
img, picture, canvas { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; }
a { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold-hi); color: var(--night); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
h1, h2, h3, p { margin: 0; }
.sec-title { font: 800 clamp(34px, 7.6vw, 64px)/.98 var(--display); letter-spacing: .005em; text-wrap: balance; }
.sec-title + p { margin-top: 14px; }
p { text-wrap: pretty; }

/* ---------- header ---------- */
.fcf-header { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--head); display: flex; align-items: center; gap: 12px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top); transition: background .3s, box-shadow .3s; }
.fcf-header.solid { background: rgba(11, 19, 40, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(203, 167, 96, .25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); font: 800 24px/1 var(--display); letter-spacing: .01em; margin-right: auto; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(241, 213, 142, .5); }
.top-nav { display: none; gap: 22px; }
.top-nav a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.top-nav a:hover { color: var(--ivory); }
.toggles { display: flex; gap: 6px; }
.tog { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(250, 251, 255, .28); background: rgba(11, 19, 40, .45); cursor: pointer; font-size: 14px; font-weight: 600; }
.tog svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tog svg path:first-child { fill: currentColor; }
#motion-toggle svg path:first-child { fill: none; }
.tog .wave { display: none; } .tog[aria-pressed="true"] .wave { display: inline; } .tog[aria-pressed="true"] .mute { display: none; }
.tog[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); }
/* sound states (see the sound notes in the script): waiting for the first tap, and a browser that can't play */
.tog[data-state="waiting"] { border-style: dashed; color: var(--ivory); }
.tog[data-state="waiting"] svg { animation: soundWait 1.6s ease-in-out infinite; }
@keyframes soundWait { 50% { opacity: .45; } }
html.rm .tog[data-state="waiting"] svg { animation: none; }
.tog[data-state="failed"] { border-color: rgba(250, 251, 255, .28); color: var(--faint); }
.tog[data-state="failed"] .wave { display: none; } .tog[data-state="failed"] .mute { display: inline; }
.tog-label { display: none; }
@media (min-width: 700px) { .tog-label { display: inline; } }
@media (min-width: 1080px) { .top-nav { display: flex; margin-right: 28px; } }

/* ---------- pinned scroll beats ---------- */
.beat { position: relative; height: var(--len, 300vh); }
.beat-descent { --len: 420vh; }
.beat-deal { --len: 320vh; }
.beat-vault { --len: 260vh; }
.beat-companion { --len: 230vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.frame { position: absolute; inset: 0; background: var(--night); }
.frame .still, .frame .seq { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .still-last { opacity: 0; }
.frame .seq { opacity: 0; transition: opacity .25s; }
.beat.ready .frame .seq { opacity: 1; }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 19, 40, .55) 0%, rgba(11, 19, 40, 0) 26%, rgba(11, 19, 40, 0) 52%, rgba(11, 19, 40, .82) 100%); }
.glow { display: none; }
.words { position: absolute; inset: 0; pointer-events: none; }
.line { position: absolute; left: var(--pad); right: var(--pad); bottom: max(9vh, 64px); opacity: 0; will-change: opacity, transform; }
.line a { pointer-events: auto; }
.line-say { font: 600 clamp(22px, min(6.6vw, 7svh), 46px)/1.18 var(--voice); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); max-width: 22ch; }
.line-big { font: 800 clamp(34px, min(11vw, 12svh), 92px)/.95 var(--display); text-shadow: 0 2px 24px rgba(0, 0, 0, .55); max-width: 12ch; text-wrap: balance; }
.line-open { bottom: auto; top: 24svh; text-align: center; display: grid; justify-items: center; }
.line-open .tagline { margin-inline: auto; }
.logo { position: relative; width: min(100%, 88vw, 720px, 62svh * 5); margin: 0; overflow: hidden; }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 0 22px rgba(111, 227, 210, .35)) drop-shadow(0 6px 26px rgba(0, 0, 0, .55)); }
.logo .sweep { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgba(246, 222, 159, .95) 50%, rgba(255, 250, 235, .9) 52%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: url("/5-card-flash/assets/wordmark-reverse.svg") center / 100% 100% no-repeat; mask: url("/5-card-flash/assets/wordmark-reverse.svg") center / 100% 100% no-repeat; opacity: 0; }
.js:not(.rm) .logo .sweep { animation: sweep 2.2s cubic-bezier(.45, 0, .2, 1) .9s 1 both; }
.js:not(.rm) .logo img { animation: logo-in 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sweep { 0% { opacity: 1; background-position: 100% 0; } 100% { opacity: 1; background-position: 0% 0; } }
@keyframes logo-in { from { opacity: 0; filter: blur(14px) drop-shadow(0 0 0 transparent); transform: scale(1.06); } }
.tagline { margin-top: 14px; font: 600 clamp(21px, 5.4vw, 30px)/1.25 var(--voice); max-width: 20ch; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 18px; border-radius: 999px; background: linear-gradient(180deg, #F6DE9F, #CBA760); color: #1B1606; font-weight: 750; font-size: clamp(14px, 4.3vw, 16px); white-space: nowrap; box-shadow: 0 6px 24px rgba(203, 167, 96, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(11, 127, 114, .25); }
.cue { display: table; margin-top: 18px; padding: 10px 2px; color: var(--ivory); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); }
.line-land { text-align: center; bottom: max(10vh, 70px); mix-blend-mode: screen; }
.lettering { width: min(92%, 560px); margin: 0 auto; }
.lettering img { height: auto; }
.line-land { bottom: calc(max(10vh, 70px) + 64px); }
.line-sub { bottom: max(7vh, 48px); text-align: center; margin: 0 auto; max-width: 28ch; font-weight: 650; font-size: 18px; color: var(--ivory); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 40px; margin-left: -13px; border: 2px solid rgba(250, 251, 255, .55); border-radius: 14px; opacity: var(--hint, 1); }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ivory); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* cinematic layers over the descent (driven by --p and --cam from the script) */
.beat-descent .frame .seq, .beat-descent .frame .still { transform: scale(var(--cam, 1)); transform-origin: 50% 62%; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bloom { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: var(--bloom, 0);
  background: radial-gradient(38% 30% at 50% 44%, rgba(255, 236, 180, .95), rgba(241, 213, 142, .35) 45%, transparent 75%); }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 8, 20, .75)); }
.letterbox i { position: absolute; left: 0; right: 0; height: var(--bar, 0px); background: #02050C; z-index: 3; }
.letterbox i:first-child { top: 0; } .letterbox i:last-child { bottom: 0; }
.line-say, .line-big { filter: blur(var(--blur, 0px)); }
html.rm .fx, html.rm .bloom, html.rm .letterbox, html:not(.js) .fx, html:not(.js) .letterbox { display: none; }

/* the deal's five slots fill as the cards land */
.slots { position: absolute; left: 50%; top: calc(var(--head) + 14px); transform: translateX(-50%); display: flex; gap: 8px; margin: 0; padding: 8px 12px; list-style: none; border-radius: 999px; background: rgba(11, 19, 40, .55); z-index: 2; }
.slots li { width: 18px; height: 26px; border-radius: 4px; border: 1.5px solid rgba(241, 213, 142, .55); transition: background .2s, transform .2s; }
.slots li.in { background: linear-gradient(160deg, #F1D58E, #B88E3F); border-color: var(--gold-hi); transform: translateY(-2px); }

@media (min-width: 900px) {
  .glow { display: block; position: absolute; inset: -40px; background: var(--glow-img) center / cover no-repeat; filter: blur(38px) brightness(.42) saturate(1.2); }
  .beat-descent .glow { --glow-img: url("/5-card-flash/assets/seq/descent-last.jpg"); }
  .beat-deal .glow { --glow-img: url("/5-card-flash/assets/seq/deal-last.jpg"); }
  .frame { inset: auto; right: max(var(--pad), calc(50% - 600px)); top: calc(var(--head) + 3vh); height: calc(100svh - var(--head) - 6vh); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(241, 213, 142, .55), 0 0 0 7px rgba(11, 19, 40, .6), 0 0 0 8px rgba(241, 213, 142, .25), 0 30px 80px rgba(0, 0, 0, .55); }
  .frame::after { background: linear-gradient(180deg, rgba(11, 19, 40, .35), rgba(11, 19, 40, 0) 30%); }
  .line { left: max(var(--pad), calc(50% - 600px)); right: auto; width: min(560px, 46vw); bottom: auto; top: 50%; transform: translateY(-50%); }
  .line-open { top: 50%; text-align: left; justify-items: start; }
  .line-open .tagline { margin-inline: 0; }
  .line-land { text-align: left; top: 42%; }
  .lettering { margin: 0; width: 100%; }
  .line-sub { top: calc(42% + min(16vw, 170px)); text-align: left; max-width: 26ch; }
}

/* ---------- 1 · crew showcase ---------- */
.crew { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.crew-bg, .crew-bg picture { position: absolute; inset: 0; }
.crew-bg picture { opacity: 0; transition: opacity .6s ease; }
.crew-bg picture.on { opacity: 1; }
.crew-bg img { object-fit: cover; }
.crew-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 19, 40, .7), rgba(11, 19, 40, .2) 30%, rgba(11, 19, 40, .55) 62%, rgba(11, 19, 40, .95)); }
.crew-inner { position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; padding: calc(var(--head) + 18px) var(--pad) 28px; max-width: 1240px; margin: 0 auto; }
.crew-title { font: 800 22px/1 var(--display); color: var(--gold-hi); letter-spacing: .02em; }
.rail { display: flex; gap: 10px; margin-top: 14px; }
.rail button { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--faint); font-size: 12px; font-weight: 650; min-width: 64px; }
.rail img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px rgba(250, 251, 255, .35); transition: box-shadow .2s, transform .2s; }
.rail button[aria-selected="true"] { color: var(--gold-hi); }
.rail button[aria-selected="true"] img { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 22px rgba(241, 213, 142, .6); transform: scale(1.06); }
.host { position: relative; display: grid; align-content: end; min-height: 520px; }
.host-art { position: absolute; right: calc(var(--pad) * -1 - 40px); bottom: 150px; width: min(118vw, 560px); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.host-art img { height: auto; }
.host-copy { position: relative; z-index: 2; }
.host-name { font: 900 clamp(48px, min(17vw, 15svh), 128px)/.86 var(--display); color: var(--ivory); text-shadow: 0 4px 26px rgba(0, 0, 0, .6); }
.host-role { margin-top: 6px; color: var(--gold-hi); font-weight: 700; font-size: 16px; }
.quote { position: relative; margin: 16px 0 0; padding: 16px 64px 16px 18px; max-width: 30rem; border-radius: 14px; background: rgba(11, 19, 40, .72); border: 1px solid rgba(241, 213, 142, .55); box-shadow: inset 0 0 0 4px rgba(11, 19, 40, .6), inset 0 0 0 5px rgba(241, 213, 142, .2); }
.quote::before, .quote::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold-hi); }
.quote::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.quote::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.quote blockquote { margin: 0; font: 600 20px/1.35 var(--voice); }
.play { position: absolute; right: 10px; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: radial-gradient(circle at 35% 30%, #2A3F78, #101A31); cursor: pointer; display: grid; place-items: center; }
.play svg { width: 18px; height: 18px; fill: var(--gold-hi); margin-left: 2px; }
.collectible { position: absolute; right: 0; bottom: 190px; width: 104px; z-index: 1; display: none; }
.ccard { position: relative; display: block; aspect-ratio: 5 / 7; border-radius: 10px; overflow: hidden; border: 2px solid var(--gold-hi); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transform: rotate(4deg); background: var(--navy); }
.ccard img { width: 100%; height: 100%; object-fit: cover; }
.ccard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); }
.collectible.glint .ccard::after { animation: glint .9s ease; }
@keyframes glint { to { transform: translateX(120%); } }
.platform { position: absolute; left: -18%; right: -18%; bottom: -16px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(111, 227, 210, .55), rgba(111, 227, 210, 0) 70%); }
.arrows { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.arr { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(241, 213, 142, .6); background: rgba(11, 19, 40, .6); display: grid; place-items: center; cursor: pointer; }
.arr svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-hi); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cutin { position: absolute; z-index: 3; left: -20%; right: -20%; top: 42%; height: 120px; background: linear-gradient(90deg, transparent, var(--gold-hi) 20%, #fff 50%, var(--gold-hi) 80%, transparent); transform: translateX(-130%) skewY(-8deg); opacity: .9; pointer-events: none; mix-blend-mode: soft-light; }
.crew.switching .cutin { animation: cutin .5s ease-in-out; }
@keyframes cutin { from { transform: translateX(-130%) skewY(-8deg); } to { transform: translateX(130%) skewY(-8deg); } }
.host.out .host-art { transform: translateX(-30%); opacity: 0; }
.host.in .host-art { transform: translateX(30%); opacity: 0; transition: none; }
.host.out .host-copy, .host.in .host-copy { opacity: 0; }
.host-copy { transition: opacity .3s; }
@media (min-width: 560px) { .collectible { display: block; } }
@media (min-width: 900px) {
  .crew-inner { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 32px; padding-top: calc(var(--head) + 28px); }
  .crew-title { grid-column: 1 / -1; font-size: 26px; }
  .rail { grid-row: 2; flex-direction: column; justify-content: center; gap: 22px; margin: 0; }
  .rail img { width: 66px; height: 66px; }
  .host { grid-row: 2; min-height: 640px; align-content: center; }
  .host-art { right: -40px; bottom: 0; width: min(54vw, 660px); }
  .host-copy { max-width: 520px; }
  .collectible { right: 2%; bottom: 36px; width: 130px; z-index: 3; }
  .arrows { grid-column: 2; justify-content: flex-start; }
}

/* ---------- 2b · play a real card (styled like the app's question card) ---------- */
.tryit { padding: 80px var(--pad) 90px; background: radial-gradient(120% 60% at 50% 0%, #1A3474, var(--night) 70%); }
.try-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.try-copy p { color: var(--mist); max-width: 34rem; }
.deck-pick { display: inline-flex; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 999px; background: rgba(250, 251, 255, .08); border: 1px solid rgba(241, 213, 142, .35); }
.deck-pick button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 700; color: var(--mist); }
.deck-pick button[aria-selected="true"] { background: linear-gradient(180deg, #F6DE9F, #CBA760); color: #1B1606; }
.qcard { position: relative; max-width: 520px; width: 100%; padding: 22px 20px 20px; border-radius: 22px; background: #F7F9FE; color: #101A31; box-shadow: 0 0 0 1px rgba(203, 167, 96, .7), 10px 10px 0 -2px #1E3A80, 10px 10px 0 -1px rgba(203, 167, 96, .6), 0 30px 70px rgba(0, 0, 0, .5); }
.qcard::before, .qcard::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2.5px solid #CBA760; }
.qcard::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; } .qcard::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.qhead { display: flex; align-items: center; gap: 10px; color: #2450BE; font-weight: 750; font-size: 15px; }
.qhead img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #CBA760; }
.qtitle { margin-top: 10px; font: 800 clamp(26px, 7vw, 34px)/1.08 var(--body); letter-spacing: -.01em; }
.qpassage { margin-top: 12px; font-size: 17px; line-height: 1.55; }
.blank { display: inline-block; min-width: 4.5em; border-bottom: 2.5px solid #101A31; color: transparent; font-size: 0; height: 1em; vertical-align: -2px; margin: 0 4px; }
.qtext { margin-top: 12px; font-weight: 750; font-size: 19px; line-height: 1.35; }
.qlabel { display: block; margin-top: 16px; font-weight: 700; color: #4A5672; font-size: 15px; }
.numrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 0 16px; min-height: 60px; border-radius: 16px; border: 2px solid #C9D2E6; background: #fff; }
.numrow input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 800 28px/1 var(--body); color: #101A31; padding: 12px 0; }
.numrow:focus-within { border-color: #2450BE; box-shadow: 0 0 0 3px rgba(36, 80, 190, .2); }
.numrow .unit { color: #4A5672; font-weight: 700; }
.numrow.right { border-color: #0B7F72; background: #E3F5EF; } .numrow.wrong { border-color: #B23A48; background: #FCE8EA; }
.qopts { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.qopt { width: 100%; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 14px; border-radius: 16px; border: 2px solid #D5DCEC; background: #fff; color: #101A31; text-align: left; cursor: pointer; font-size: 18px; font-weight: 650; }
.qopt b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #EEF2FA; color: #4A5672; font-size: 15px; }
.qopt .otext { flex: 1; min-width: 0; }
.qopt[aria-pressed="true"] { border-color: #2450BE; box-shadow: 0 0 0 3px rgba(36, 80, 190, .18); }
.qopt[aria-pressed="true"] b { background: #2450BE; color: #fff; }
.qopt[disabled] { cursor: default; color: #7A86A3; }
.qopt.right { border-color: #0B7F72; background: #E3F5EF; color: #0A3F38; } .qopt.right b { background: #0B7F72; color: #fff; }
.qopt.wrong { border-color: #B23A48; background: #FCE8EA; color: #6E1C27; } .qopt.wrong b { background: #B23A48; color: #fff; } .qopt.wrong .otext { text-decoration: line-through; }
.qopt .tag { flex-basis: 100%; padding-left: 48px; font-size: 15px; font-weight: 750; }
.qopt.right .tag { color: #07594F; } .qopt.wrong .tag { color: #8E2533; }
.hintbtn { margin-top: 14px; padding: 10px 0; min-height: 44px; border: 0; background: none; color: #2450BE; font-weight: 700; text-decoration: underline; cursor: pointer; }
.hinttext { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #FFF6DE; color: #4A3A10; font-size: 16px; }
.qmsg { min-height: 1.4em; margin-top: 6px; color: #8E2533; font-weight: 700; font-size: 15px; }
.checkbtn { width: 100%; min-height: 54px; margin-top: 8px; border: 0; border-radius: 16px; background: #2450BE; color: #fff; font-weight: 800; font-size: 19px; cursor: pointer; box-shadow: 0 6px 18px rgba(36, 80, 190, .35); }
.checkbtn:hover { background: #2C5BD4; }
.fb { margin-top: 16px; padding: 16px; border-radius: 18px; border: 2px solid; outline-offset: 4px; }
.fb.right { border-color: #0B7F72; background: #E3F5EF; color: #0A3F38; } .fb.miss { border-color: #B23A48; background: #FCE8EA; color: #5E1621; }
.fbtop { display: flex; align-items: center; gap: 12px; }
.fbtop img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px currentColor; }
.fbwho { display: block; font-size: 14px; font-weight: 700; opacity: .85; }
.fb strong { display: block; font-size: 24px; line-height: 1.1; }
.fb p { margin-top: 10px; font-size: 17px; line-height: 1.45; }
.fbkey { font-weight: 750; }
.fbnext { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 15px !important; font-weight: 700; }
.againbtn { display: block; margin-top: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tryit .after { font: 800 30px/1.05 var(--display); }
.shots { max-width: 1120px; margin: 64px auto 0; }
.shots-title { font: 800 34px/1 var(--display); }
.shot-strip { display: flex; gap: 16px; margin: 18px calc(var(--pad) * -1) 0; padding: 6px var(--pad) 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shot-strip li { flex: 0 0 min(64vw, 230px); scroll-snap-align: start; }
.shot-strip figure { margin: 0; }
.shot-strip picture { display: block; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(241, 213, 142, .6), 0 0 0 7px #05070D, 0 0 0 8px rgba(241, 213, 142, .25), 0 20px 50px rgba(0, 0, 0, .5); margin: 8px; }
.shot-strip img { aspect-ratio: 780 / 1688; height: auto; }
.shot-strip figcaption { margin-top: 12px; font-size: 14px; color: var(--mist); }
.shots-note { margin-top: 6px; font-size: 14px; color: var(--faint); }
@media (min-width: 900px) {
  .try-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start; column-gap: 60px; }
  .try-copy { position: sticky; top: calc(var(--head) + 40px); }
  .tryit .after { grid-column: 2; }
  .shot-strip { margin: 18px 0 0; padding: 6px 0 18px; overflow: visible; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- scenes ---------- */
.scene { position: relative; padding: 88px var(--pad); max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.scene-copy { max-width: 34rem; }
.scene-copy p { color: var(--mist); }
.say { margin-top: 14px; font: 600 18px/1.4 var(--voice); color: var(--ivory) !important; }
.say b { font-family: var(--body); color: var(--gold-hi); font-size: 15px; }
.fine { margin-top: 12px; font-size: 14px; color: var(--faint) !important; }
@media (min-width: 900px) { .scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: 60px; padding: 120px var(--pad); } }

/* 3 · rematch trail */
.scene-rematch { background: none; }
.trail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; position: relative; }
.trail::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; border-top: 2px dashed rgba(241, 213, 142, .45); }
.trail li { position: relative; aspect-ratio: 5 / 7; border-radius: 12px; display: grid; justify-items: center; align-content: space-between; padding: 10px 4px; text-align: center; background: linear-gradient(170deg, #22386E, #131F3E); border: 1.5px solid rgba(241, 213, 142, .5); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.trail .day { font: 800 17px/1 var(--display); color: var(--gold-hi); }
.trail .mark { font-size: 26px; line-height: 1; }
.trail .what { font-size: 12px; font-weight: 650; color: var(--mist); line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.t-miss .mark { color: var(--miss); }
.t-ok .mark { color: var(--aurora); }
.t-master { background: linear-gradient(170deg, #F6DE9F, #B88E3F) !important; border-color: #fff !important; }
.t-master .day, .t-master .what, .t-master .mark { color: #1B1606; }
.stamp { font: 900 22px/1 var(--display); color: var(--aurora); border: 2.5px solid var(--aurora); border-radius: 8px; padding: 4px 8px; transform: rotate(-12deg); }
.duo { display: flex; justify-content: center; gap: 16px; }
.duo picture { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(0, 0, 0, .5); }
.duo img { object-fit: cover; }
.js:not(.rm) .trail li { opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .4s, transform .4s cubic-bezier(.2, .9, .3, 1.3); }
.js:not(.rm) .trail.go li { opacity: 1; transform: none; }
.js:not(.rm) .trail.go li:nth-child(2) { transition-delay: .25s; } .js:not(.rm) .trail.go li:nth-child(3) { transition-delay: .5s; } .js:not(.rm) .trail.go li:nth-child(4) { transition-delay: .75s; }
.js:not(.rm) .trail .stamp { transform: rotate(-12deg) scale(2.4); opacity: 0; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1) .5s, opacity .15s .5s; }
.js:not(.rm) .trail.go .stamp { transform: rotate(-12deg) scale(1); opacity: 1; }
.js:not(.rm) .trail.go .t-won { animation: shake .3s ease .72s; }
@keyframes shake { 25% { translate: -3px 1px; } 50% { translate: 3px -1px; } 75% { translate: -2px 0; } }
@media (min-width: 900px) { .duo { grid-column: 1 / -1; justify-content: flex-start; } .trail li { padding: 16px 6px; } .trail .day { font-size: 22px; } .trail .what { font-size: 14px; } }

/* 4 · the Vault */
.vault-bg, .vault-bg picture, .finale-bg picture { position: absolute; inset: 0; }
.vault-bg img { object-fit: cover; object-position: 50% 30%; }
.vault-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 19, 40, .85), rgba(11, 19, 40, .35) 40%, rgba(11, 19, 40, .9)); }
.vault-copy { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); top: calc(var(--head) + 18px); max-width: 32rem; }
.vault-copy p { color: var(--mist); }
.spin { position: absolute; left: 50%; top: 58%; width: min(54vw, 260px); aspect-ratio: 1; transform: translate(-50%, -50%); perspective: 900px; }
.chip3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(var(--turn, 0deg)) rotateX(8deg); }
.chip3d .face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(5px); }
.chip3d .back { transform: rotateY(180deg) translateZ(5px); }
/* the coin's thickness: eight thin discs in the tier's colour between the two faces, so it doesn't vanish edge-on */
.chip3d .edge { position: absolute; inset: .6%; border-radius: 50%; transform: translateZ(calc(var(--z) * 1.15px + 4.6px)); background: radial-gradient(circle, var(--edge, #B98E3E) 60%, color-mix(in srgb, var(--edge, #B98E3E) 55%, #000) 100%); }
.spin { filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .65)); }
.spin::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -14%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse, rgba(241, 213, 142, .45), transparent 70%); }
.tier { position: absolute; z-index: 1; left: 0; right: 0; bottom: max(7vh, 40px); text-align: center; }
.tier-name { display: block; font: 900 clamp(44px, 12vw, 80px)/.9 var(--display); color: var(--gold-hi); }
.tier-needs { display: block; margin-top: 6px; color: var(--ivory); font-weight: 600; }
@media (min-width: 900px) {
  .vault-copy { top: 50%; transform: translateY(-50%); left: max(var(--pad), calc(50% - 600px)); }
  .spin { left: 72%; top: 46%; width: 300px; }
  .tier { left: 52%; right: 0; bottom: 9vh; }
}
.case-wrap { padding: 56px var(--pad) 80px; max-width: 760px; margin: 0 auto; text-align: center; }
.case-title { font: 800 34px/1 var(--display); }
.case-hint { margin-top: 6px; color: var(--faint); }
.case { margin: 22px auto 0; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, #7A4A26, #4A2A14 60%, #6B3F1F); box-shadow: inset 0 2px 0 rgba(255, 220, 170, .35), 0 20px 50px rgba(0, 0, 0, .5); }
.case-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 12px; background: radial-gradient(120% 120% at 50% 0%, #1E2F5E, #0E1733); box-shadow: inset 0 4px 14px rgba(0, 0, 0, .6); }
.case-grid button { display: grid; justify-items: center; gap: 4px; padding: 6px 2px 8px; min-height: 44px; border: 0; border-radius: 10px; background: rgba(250, 251, 255, .04); cursor: pointer; font-size: 12px; font-weight: 650; color: var(--mist); }
.case-grid img { width: 100%; max-width: 64px; aspect-ratio: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.case-grid button span { max-width: 100%; font-size: clamp(9.5px, 2.9vw, 12px); letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 420px) { .case { padding: 8px; } .case-grid { gap: 4px; padding: 8px; } .case-grid button { padding: 6px 0 8px; } }
.case-grid button[aria-pressed="true"] { background: rgba(241, 213, 142, .16); box-shadow: inset 0 0 0 2px var(--gold-hi); color: var(--gold-hi); }
.case-detail { margin-top: 16px; min-height: 3em; color: var(--mist); }
.case-detail b { display: block; font: 800 26px/1.1 var(--display); color: var(--gold-hi); }

/* 5 · Wild Card */
.week-card { padding: 20px; border-radius: 20px; background: linear-gradient(170deg, #1E3570, #121D3C); border: 1px solid rgba(241, 213, 142, .4); }
.streak { display: flex; align-items: baseline; gap: 10px; }
.streak b { font: 900 64px/1 var(--display); color: var(--gold-hi); }
.streak span { color: var(--mist); font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.week li { display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 10px; background: rgba(250, 251, 255, .06); font-size: 13px; font-weight: 650; color: var(--mist); }
.week i { font-style: normal; color: var(--aurora); font-size: 18px; line-height: 26px; }
.week .today { box-shadow: inset 0 0 0 2px var(--gold-hi); }
.week .gap { background: rgba(229, 138, 138, .12); }
.week-note { margin-top: 12px; font-size: 14px; color: var(--mist); }
.wild { width: 22px; height: 30px; border-radius: 5px; background: linear-gradient(150deg, #6FE3D2, #2450BE 55%, #F1D58E); box-shadow: 0 0 14px rgba(111, 227, 210, .7); display: block; }
.js:not(.rm) .wild { transform: translateY(-46px) rotateY(180deg) scale(1.3); opacity: 0; transition: transform .6s cubic-bezier(.2, .9, .3, 1.2), opacity .3s; }
.js:not(.rm) .week.go .wild { transform: none; opacity: 1; }
.captain { display: flex; justify-content: center; }
.captain picture { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(0, 0, 0, .5); }
.captain img { object-fit: cover; }
@media (min-width: 900px) { .captain { grid-column: 1; justify-content: flex-start; } .week li { font-size: 15px; } }

/* 6 · companions */
.beat-companion .stage { display: grid; align-content: center; gap: 22px; padding: calc(var(--head) + 10px) var(--pad) 28px; max-width: 1240px; margin: 0 auto; background: radial-gradient(90% 60% at 50% 60%, #1A3474, transparent 70%); }
.comp-copy p { color: var(--mist); }
.picker { display: flex; gap: 8px; margin-top: 16px; }
.picker button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(241, 213, 142, .5); background: rgba(11, 19, 40, .5); cursor: pointer; font-weight: 700; }
.picker button[aria-checked="true"] { background: linear-gradient(180deg, #F6DE9F, #CBA760); color: #1B1606; border-color: transparent; }
.comp-blurb { margin-top: 10px; font: 600 17px/1.4 var(--voice); color: var(--ivory) !important; }
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.forms li { position: relative; display: grid; gap: 6px; justify-items: center; font-weight: 700; font-size: 14px; color: var(--faint); }
.forms img { width: 100%; height: auto; max-width: min(170px, 19svh); aspect-ratio: 1; border-radius: 18px; object-fit: cover; filter: grayscale(.85) brightness(.45); transition: filter .5s, box-shadow .5s; box-shadow: 0 0 0 1.5px rgba(250, 251, 255, .2); }
.forms li.lit { color: var(--gold-hi); }
.forms li.lit img { filter: none; box-shadow: 0 0 0 2px var(--gold-hi), 0 0 30px rgba(241, 213, 142, .45); }
.forms li.flash::after { content: ""; position: absolute; inset: -6px -6px 22px; border-radius: 22px; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(241, 213, 142, 0) 70%); animation: flash .6s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
@media (min-width: 640px) { .forms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .beat-companion .stage { grid-template-columns: 1fr 1.3fr; align-items: center; column-gap: 50px; } }

/* 7 · the Grand Table */
.table-wrap { position: relative; }
.sample-tag { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--gold); color: var(--gold-hi); font-weight: 700; font-size: 14px; }
.ptable { position: relative; aspect-ratio: 1200 / 896; border-radius: 16px; overflow: hidden; }
.ptable img { object-fit: cover; }
.seat { position: absolute; width: 9.2%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.4); opacity: 0; border-radius: 50%; display: grid; place-items: center; font: 800 clamp(10px, 2.6vw, 17px)/1 var(--display); color: var(--ivory); background: radial-gradient(circle at 35% 30%, #34477A, #18234A); box-shadow: 0 0 0 1.5px rgba(250, 251, 255, .5), 0 4px 10px rgba(0, 0, 0, .5); transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .3s, left .9s cubic-bezier(.5, 0, .2, 1), top .9s cubic-bezier(.5, 0, .2, 1), background .4s; }
.seat.up { background: radial-gradient(circle at 35% 30%, #F8E2A6, #B88E3F); color: #1B1606; box-shadow: 0 0 0 1.5px #fff, 0 0 14px rgba(241, 213, 142, .7); }
.seat.you { background: radial-gradient(circle at 35% 30%, #5B86F0, #2450BE); box-shadow: 0 0 0 2.5px #fff, 0 0 16px rgba(91, 134, 240, .8); z-index: 2; }
.seat.you.up { background: radial-gradient(circle at 35% 30%, #F8E2A6, #B88E3F); color: #1B1606; }
.ptable.go .seat, .rm .seat, html:not(.js) .seat { transform: translate(-50%, -50%); opacity: 1; }
.pot { position: absolute; left: 50%; top: 49.5%; transform: translate(-50%, -50%); text-align: center; color: #F3E6C4; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.pot b { display: block; font: 800 clamp(16px, 4vw, 26px)/1 var(--display); color: var(--gold-hi); }
.pot span { font-size: clamp(11px, 2.6vw, 14px); font-weight: 650; }
.gap-line { margin-top: 12px; font-weight: 700; color: var(--ivory); }
.floors { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.floors li { padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--faint); background: rgba(250, 251, 255, .06); }
.floors li.here { color: #1B1606; background: var(--gold-hi); }

/* 8 · the Sixth Card */
.finale { position: relative; min-height: 100svh; display: grid; align-content: end; overflow: hidden; isolation: isolate; }
.finale-bg { position: absolute; inset: 0; z-index: -1; }
.finale-bg img { object-fit: cover; object-position: 50% 40%; }
.finale-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 19, 40, .3), rgba(11, 19, 40, .15) 35%, rgba(11, 19, 40, .92) 78%); }
.finale-copy { padding: 0 var(--pad) 72px; max-width: 1240px; width: 100%; margin: 0 auto; }
.finale-title { font: 900 clamp(40px, 9.5vw, 84px)/.95 var(--display); max-width: 15ch; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.six { display: flex; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.six li { width: 38px; height: 54px; border-radius: 6px; background: url("/5-card-flash/assets/art/card-back.jpg") center / cover; border: 1.5px solid var(--gold); }
.six .vi { background: none; border: 2px dashed var(--aurora); color: var(--aurora); display: grid; place-items: center; font: 800 16px/1 var(--display); box-shadow: 0 0 20px rgba(111, 227, 210, .5); }
.js:not(.rm) .finale.go .vi { animation: shimmer 2.4s ease-in-out 1; }
@keyframes shimmer { 50% { box-shadow: 0 0 40px rgba(111, 227, 210, .95); transform: translateY(-4px); } }
.start { margin-top: 18px; font: 600 26px/1.2 var(--voice); }

/* parents + FAQ */
.parents { padding: 80px var(--pad) 90px; background: #0E1834; border-top: 1px solid rgba(241, 213, 142, .2); }
.parents-inner { max-width: 760px; margin: 0 auto; }
.promises { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.promises li { padding: 14px 16px; border-radius: 12px; background: rgba(250, 251, 255, .05); color: var(--mist); }
.promises b { color: var(--ivory); }
.faq-title { margin-top: 44px; font: 800 30px/1 var(--display); }
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid rgba(250, 251, 255, .14); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 26px/1 var(--body); color: var(--gold-hi); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--mist); }

/* footer */
.fcf-footer { padding: 40px var(--pad) 34px; background: #08101F; color: var(--faint); font-size: 14px; }
.footer-top, .footer-bottom { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer-bottom { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(250, 251, 255, .1); justify-content: space-between; }
.fcf-footer a { color: var(--mist); text-decoration: none; padding: 12px 0; min-height: 44px; min-width: 44px; display: inline-block; }
.fcf-footer a:hover { color: var(--ivory); text-decoration: underline; }
.fcf-footer nav, .footer-bottom div { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.beah { font-weight: 800; color: var(--ivory) !important; }
.beah span { font-weight: 500; color: var(--faint); }

/* ---------- Reduce Motion and no-JS: every beat becomes a still scene ---------- */
html.rm .beat, html:not(.js) .beat { height: auto; }
html.rm .stage, html:not(.js) .stage { position: relative; height: auto; min-height: 100svh; }
html.rm .frame .seq, html:not(.js) .frame .seq { display: none; }
html.rm .frame .still-first, html:not(.js) .frame .still-first { opacity: 0 !important; }
html.rm .frame .still-last, html:not(.js) .frame .still-last { opacity: 1 !important; }
/* Reduce Motion switched on mid-page: the scroll timeline may have left an inline camera zoom on the stills */
html.rm .frame .still, html:not(.js) .frame .still { transform: none !important; }
html.rm .words, html:not(.js) .words { position: relative; inset: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: calc(var(--head) + 20px) var(--pad) 56px; pointer-events: auto; }
html.rm .line-sub, html:not(.js) .line-sub { margin: 0; }
html.rm .line, html:not(.js) .line { position: static; opacity: 1 !important; transform: none !important; width: auto;
  /* fadeLines() leaves inline visibility, translate and blur on lines it faded out; Reduce Motion shows them all, still */
  visibility: visible !important; translate: none !important; filter: none !important; }
html.rm .line-say, html:not(.js) .line-say { display: none; }
html.rm .scroll-hint, html:not(.js) .scroll-hint { display: none; }
html.rm .slots li, html:not(.js) .slots li { background: linear-gradient(160deg, #F1D58E, #B88E3F); }
html.rm .beat-vault .stage, html:not(.js) .beat-vault .stage { min-height: 0; padding: calc(var(--head) + 20px) var(--pad) 40px; }
html.rm .vault-copy, html:not(.js) .vault-copy, html.rm .tier, html:not(.js) .tier { position: relative; inset: auto; transform: none; }
html.rm .spin, html:not(.js) .spin { position: relative; left: auto; top: auto; transform: none; margin: 28px auto; }
html.rm .beat-companion .stage, html:not(.js) .beat-companion .stage { min-height: 0; }
html.rm .forms img, html:not(.js) .forms img { filter: none; }
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
@media (min-width: 900px) {
  html.rm .words, html:not(.js) .words { justify-content: safe center; max-width: 52%; }
  html.rm .line, html:not(.js) .line { width: auto; }
}

/* short landscape phones: keep each pinned beat's words inside the screen */
@media (max-height: 520px) and (max-width: 899px) {
  .line-open { top: calc(var(--head) + 8px); }
  .tagline { margin-top: 6px; font-size: 18px; }
  .status { margin-top: 10px; padding: 8px 14px; }
  .cue { margin-top: 6px; }
  .line-land { bottom: 70px; } .lettering { width: min(60%, 360px); }
  .line-sub { bottom: 16px; font-size: 15px; }
  .host-art { width: min(60vw, 360px); bottom: 40px; }
  .host { min-height: 380px; }
}

/* widescreen descent on desktop (used once the page ships the 16:9 frames) */
@media (min-width: 900px) {
  .beat-descent.wide .frame { inset: 0; top: 0; right: 0; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .beat-descent.wide .glow { display: none; }
  .beat-descent.wide .frame::after { background: linear-gradient(90deg, rgba(5, 10, 24, .78) 0%, rgba(5, 10, 24, .35) 38%, rgba(5, 10, 24, 0) 60%), linear-gradient(180deg, rgba(5, 10, 24, .4), transparent 24%, transparent 70%, rgba(5, 10, 24, .7)); }
}
@media (min-width: 900px) {
  /* framed-card layout: the beam's bloom sits over the card, not the middle of the screen */
  .beat-descent:not(.wide) .bloom { inset: auto; right: max(var(--pad), calc(50% - 600px)); top: calc(var(--head) + 3vh); height: calc(100svh - var(--head) - 6vh); aspect-ratio: 9 / 16; border-radius: 22px; }
}

/* ?sound=debug only: one line of audio diagnostics for checking a real phone */
.sound-debug { position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(2, 5, 12, .9); color: #9FF5E6; font: 600 12px/1.4 ui-monospace, Menlo, monospace; pointer-events: none; }
