/* 30 Days to Prom: The Game. Landing page.
   Every section sits on one of the series' own backdrops (kit/sets.jsx): the mint sunburst, Milo's bedroom wall,
   his carpet, and the coral sunburst behind his profile picture. Type and the HUD follow kit/ui.jsx and the covers. */

:root {
  --ink: #16112a;
  --navy: #141a40;
  --cream: #fbf3e4;
  --coral: #ff5a5f;
  --yellow: #ffd23f;
  --mint: #3ddc97;
  --sky: #5ec8ff;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --page: 1120px;
  --ring: var(--ink);
  /* The kit's Backdrop: 18 rays and a soft glow over a two-colour fall. */
  --rays: repeating-conic-gradient(from -2.5deg at 50% var(--burst, 40%), rgba(255, 255, 255, 0.1) 0deg 5deg, rgba(255, 255, 255, 0) 5.4deg 19.6deg, rgba(255, 255, 255, 0.1) 20deg);
  --glow: radial-gradient(ellipse 70% 46% at 50% var(--burst, 40%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 17px/1.5 var(--ui);
  overflow-x: hidden;
}
/* The cast lean in from outside the screen, so the page must not scroll sideways to meet them. Browsers that
   do not know `clip` (Safari before 16) fall back to `hidden`. */
main { display: block; overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }

/* ---- scenes ---- */
.scene { position: relative; isolation: isolate; }
.scene-mint { background: var(--glow), var(--rays), linear-gradient(#7ee0b5, #1f8f7a); --burst: 34%; }
.scene-wall {
  --ring: var(--yellow);
  color: var(--cream);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 5px, rgba(255, 255, 255, 0) 6px) 0 0 / 112px 360px,
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 5px, rgba(255, 255, 255, 0) 6px) 56px 180px / 112px 360px,
    linear-gradient(#2f7378, #1f4f55);
}
/* The bedroom's string of lights, along the top of the wall. */
.scene-wall::before {
  content: ""; position: absolute; z-index: -2; inset: 0 0 auto; height: 62px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='62' viewBox='0 0 300 62'%3E%3Cdefs%3E%3CradialGradient id='a'%3E%3Cstop stop-color='%23ffd23f' stop-opacity='.55'/%3E%3Cstop offset='.7' stop-color='%23ffd23f' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b'%3E%3Cstop stop-color='%23ff8fb1' stop-opacity='.55'/%3E%3Cstop offset='.7' stop-color='%23ff8fb1' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='c'%3E%3Cstop stop-color='%235ec8ff' stop-opacity='.55'/%3E%3Cstop offset='.7' stop-color='%235ec8ff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 8C40 30 60 30 100 20S160 12 200 20S260 30 300 8' fill='none' stroke='%2320323a' stroke-width='4'/%3E%3Ccircle cx='50' cy='36' r='26' fill='url(%23a)'/%3E%3Cellipse cx='50' cy='36' rx='7' ry='10' fill='%23ffd23f'/%3E%3Ccircle cx='150' cy='27' r='26' fill='url(%23b)'/%3E%3Cellipse cx='150' cy='27' rx='7' ry='10' fill='%23ff8fb1'/%3E%3Ccircle cx='250' cy='35' r='26' fill='url(%23c)'/%3E%3Cellipse cx='250' cy='35' rx='7' ry='10' fill='%235ec8ff'/%3E%3C/svg%3E") repeat-x center top;
}
/* The pink-to-violet sunburst behind Ava's first post (Day 1). */
.scene-ava { background: var(--glow), var(--rays), linear-gradient(#ff9ec4, #7b5cff); --burst: 30%; }
.scene-coral { background: var(--glow), var(--rays), linear-gradient(#ff9f68, #e0567a); --burst: 62%; }

/* The cover headline: Anton, white with an ink outline, one part in yellow. */
.cover {
  font: 400 clamp(46px, 17.5vw, 104px)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.075em 0 var(--ink);
}
.cover .y { color: var(--yellow); }
.cover-s { font-size: clamp(38px, 8vw, 60px); text-align: center; text-wrap: balance; }

/* ---- the "coming soon" bar across the very top ---- */
/* It stays on one line down to the narrowest phones: the type shrinks with the screen instead of wrapping. */
.announce {
  padding: 9px 12px 8px; border-bottom: 4px solid var(--ink); background: var(--coral);
  text-align: center; font: 800 clamp(9.5px, 3.3vw, 13px)/1.2 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; text-wrap: balance;
}

/* ---- top bar ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--page); margin: 0 auto; padding: 20px 16px 0 var(--bear-clear, 16px); }
/* Both are at least 44px tall, whatever the type size: big enough to tap. */
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; text-transform: uppercase; font: 400 20px/1 var(--display); letter-spacing: 0.03em; white-space: nowrap; }
.brand-tag { padding: 4px 8px 3px; border: 3px solid var(--ink); border-radius: 9px; background: var(--yellow); font-size: 14px; }
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.top-link:hover { background: #fff; }
@media (max-width: 439px) { .brand-tag { display: none; } }

/* ---- hero ---- */
.hero { display: grid; gap: 40px; max-width: var(--page); margin: 0 auto; padding: 32px 16px 64px; }
.pitch { min-width: 0; }
.lede { margin-top: 26px; max-width: 32em; font-size: clamp(17px, 2.2vw, 19px); font-weight: 700; text-wrap: pretty; }
.lede strong { font-weight: 800; background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); }

/* ---- waitlist form ---- */
.join { margin-top: 28px; max-width: 520px; scroll-margin-top: 24px; }
.join-form { display: grid; gap: 10px; }
.join-form input[type="email"] {
  width: 100%; min-width: 0; height: 58px; padding: 0 18px; border: 4px solid var(--ink); border-radius: 18px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 17px;
}
.join-form input::placeholder { color: #8f879f; font-weight: 500; }
.join-form button, .btn {
  display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 24px; border: 4px solid var(--ink); border-radius: 18px;
  background: var(--yellow); color: var(--ink); font: 800 16px/1 var(--ui); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 0 var(--ink); cursor: pointer; transition: translate 0.08s, box-shadow 0.08s, background-color 0.15s;
}
.join-form button:hover, .btn:hover { background: #ffe066; }
.join-form button:active, .btn:active { translate: 0 4px; box-shadow: 0 2px 0 var(--ink); }
.join-form button[disabled] { background: #d9cfa6; cursor: progress; }
.trap { position: absolute; left: -9999px; }
.join-note { display: inline-block; margin-top: 12px; padding: 7px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--cream); font-size: 14px; font-weight: 800; color: #b3122e; }
.join-note:empty { display: none; }
/* "Did you mean ...?": asked when the part after the @ looks like a slip (next.js, email-hint.js). */
.join-ask { margin-top: 12px; padding: 12px 14px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); color: var(--ink); }
.join-ask [hidden] { display: none; }
.join-ask-text { font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.join-ask-email { font-weight: 800; }
.join-ask-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.join-ask-row button {
  flex: 1 1 auto; min-height: 46px; padding: 6px 16px; border: 3px solid var(--ink); border-radius: 12px;
  background: var(--yellow); color: var(--ink); font: 800 14px/1.1 var(--ui); letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer;
}
.join-ask-row button:hover { background: #ffe066; }
.join-ask-row .join-ask-no, .join-ask-row .join-ask-no:hover { background: #fff; }
.join-fine { margin-top: 12px; font-size: 13px; font-weight: 700; opacity: 0.78; }
.joined { position: relative; padding: 20px 22px; border: 4px solid var(--ink); border-radius: 22px; background: var(--cream); box-shadow: 0 6px 0 var(--ink); }
.joined-title { font: 400 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.joined-title::before { content: "✓"; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border: 3px solid var(--ink); border-radius: 50%; background: var(--mint); font: 800 16px/1 var(--ui); vertical-align: 3px; }
.joined-text { margin-top: 8px; font-weight: 700; font-size: 15px; }
.join.is-done .join-form, .join.is-done .join-note, .join.is-done .join-ask, .join.is-done .join-fine { display: none; }

/* ---- inviting friends: under "You're on the list", once this browser has its invite link ---- */
.invite { margin-top: 18px; padding-top: 18px; border-top: 3px dashed rgba(22, 17, 42, 0.22); }
/* Friends, as polar bears on a picnic: the more who join, the bigger the picnic. */
.invite-art { display: block; width: 100%; max-width: 300px; height: auto; margin: -4px auto 10px; }
.invite-title { font: 400 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.invite-text { margin-top: 7px; font-weight: 700; font-size: 15px; text-wrap: pretty; }
.invite-go { width: 100%; margin-top: 16px; }
/* The link itself, for pasting where a share sheet does not reach (a story's link sticker, a bio). It is one box:
   the link, and a Copy tab on its end. The type shrinks a little on a narrow phone so the whole link shows from
   360px up, and one press and hold selects all of it, even where a narrower screen cuts it short. */
.invite-link { display: flex; height: 50px; margin-top: 18px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.invite-url {
  flex: 1; min-width: 0; padding: 0 4px 0 11px; font: 800 clamp(12px, 3.3vw, 13px)/44px var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-user-select: all; user-select: all;
}
.invite-copy {
  flex: none; min-width: 50px; padding: 0 11px; border: 0; background: var(--ink); color: var(--cream);
  font: 800 11px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background-color 0.15s;
}
.invite-copy:hover { background: var(--navy); }
.invite-copy:focus-visible { outline: 3px solid var(--yellow); outline-offset: -5px; }
/* For a moment after the link is copied, its box and the button that was pressed say so (flash in app.js). */
.invite-url.is-flash { font-family: var(--ui); -webkit-user-select: none; user-select: none; }
.btn.is-flash, .btn.is-flash:hover { background: var(--mint); }
/* How many friends are in, as a HUD panel like Ava's vibe: a seat fills for each of the first five. */
.crew {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 10px; margin-top: 14px; padding: 11px 12px 12px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--navy); color: #fff; font: 800 12px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase;
}
.crew-label { color: var(--mint); white-space: nowrap; }
.crew-value { font-weight: 800; color: var(--yellow); white-space: nowrap; }
.crew-track { display: flex; flex-basis: 100%; gap: 3px; }
.crew-track i { flex: 1; height: 10px; border-radius: 3px; background: #2c335e; transition: background-color 0.3s; }
.crew-track i.is-on { background: var(--mint); }
.crew-track i.is-new { animation: seat 0.6s both; }
@keyframes seat { 0% { scale: 1 0.3; } 55% { scale: 1 1.7; } 100% { scale: 1 1; } }

/* ---- the console: stage on top, controls below ---- */
.console {
  width: 100%; max-width: 400px; margin: 0 auto; border: 5px solid var(--ink); border-radius: 30px; overflow: hidden;
  background: var(--cream); box-shadow: 0 12px 0 var(--ink);
}
.stage {
  --u: calc(100cqw / 1080);                 /* one pixel of the 1080-wide episode canvas */
  position: relative; container-type: inline-size; aspect-ratio: 1080 / 1660; overflow: hidden; background: #2f7378;
  scroll-margin-top: 12px;                  /* where the page stops when it follows the action (app.js) */
}
.layer, .layer-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage.is-live .poster { display: none; }
.stage .once .fl { animation-iteration-count: 1; animation-fill-mode: forwards; }

/* The HUD, laid out as in kit/ui.jsx. */
.hud { position: absolute; left: calc(60 * var(--u)); right: calc(60 * var(--u)); top: calc(26 * var(--u)); display: flex; gap: calc(20 * var(--u)); }
.hud-panel { position: relative; height: calc(156 * var(--u)); border: calc(6 * var(--u)) solid var(--ink); border-radius: calc(26 * var(--u)); background: var(--navy); }
.hud-days { width: calc(310 * var(--u)); text-align: center; }
.hud-meter { flex: 1; padding-left: calc(20 * var(--u)); }
.hud-label { display: block; padding-top: calc(14 * var(--u)); font: 800 calc(38 * var(--u))/1 var(--ui); text-transform: uppercase; color: var(--yellow); white-space: nowrap; }
.hud-meter .hud-label { color: var(--mint); }
.hud-num { display: block; margin-top: calc(8 * var(--u)); font: 800 calc(78 * var(--u))/1 var(--mono); color: #fff; }
.bar { position: absolute; left: calc(240 * var(--u)); top: calc(86 * var(--u)); width: calc(360 * var(--u)); height: calc(30 * var(--u)); border-radius: 999px; background: #2c335e; overflow: hidden; }
.bar i { display: block; width: 2%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--yellow)); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }

.bump {
  position: absolute; right: calc(70 * var(--u)); top: calc(205 * var(--u)); padding: calc(10 * var(--u)) calc(26 * var(--u));
  border: calc(6 * var(--u)) solid var(--ink); border-radius: 999px; background: var(--coral); color: var(--ink);
  font: 800 calc(56 * var(--u))/1.1 var(--mono); rotate: -4deg; opacity: 0;
}
.bump.is-on { animation: bump 1.7s both; }
@keyframes bump { 0% { opacity: 0; scale: 0.4; } 12% { opacity: 1; scale: 1.12; } 20% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

.caption {
  position: absolute; left: 5%; right: 5%; top: calc(1318 * var(--u)); text-align: center; text-wrap: balance;
  font: 800 calc(60 * var(--u))/1.14 var(--ui); text-transform: uppercase; color: #fff;
  -webkit-text-stroke: calc(13 * var(--u)) var(--ink); paint-order: stroke fill; text-shadow: 0 calc(7 * var(--u)) 0 var(--ink);
}
.caption b { color: var(--yellow); font-weight: 800; }
.caption.is-on { animation: pop 0.28s both; }
@keyframes pop { 0% { scale: 0.86; opacity: 0.2; } 60% { scale: 1.04; opacity: 1; } 100% { scale: 1; } }

.deck { padding: 16px 16px 16px; border-top: 5px solid var(--ink); scroll-margin-bottom: 30px; }
.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.deck-title { padding: 6px 10px 5px; border: 3px solid var(--ink); border-radius: 10px; background: var(--yellow); font: 800 13px/1.2 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.deck-count { font: 700 12px/1.2 var(--ui); color: #6b6480; white-space: nowrap; }
/* The pick: two fixes on the table with an OR between them, as on the series' vote card. */
.picks { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 136px; padding: 14px 12px;
  border: 4px solid var(--ink); border-radius: 20px; background: #ff9f43; color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink); transition: translate 0.08s, box-shadow 0.08s, opacity 0.2s, background-color 0.15s;
}
.pick-b { background: var(--sky); }
.pick:hover:enabled { translate: 0 -2px; box-shadow: 0 7px 0 var(--ink); }
.pick:active:enabled { translate: 0 3px; box-shadow: 0 2px 0 var(--ink); }
.pick:disabled { cursor: default; opacity: 0.4; }
.pick.is-picked { opacity: 1; background: var(--mint); }
.pick-name { font: 400 28px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.pick-why { font: 700 13px/1.3 var(--ui); }
.pick-tag { position: absolute; left: 10px; top: -11px; padding: 3px 8px 2px; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); font: 800 10px/1.2 var(--ui); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.tag-short { display: none; }               /* "Back again", for cards too narrow for "Back from yesterday" */
.or { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; translate: -50% -50%; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 800 13px/1 var(--ui); text-transform: uppercase; pointer-events: none; }

/* The night: what Milo's phone does, in the series' chat colours. */
.night { display: grid; gap: 10px; }
.thread-where { font: 800 11px/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: #6b6480; }
.thread { display: grid; gap: 8px; }
.msg { display: flex; align-items: flex-end; gap: 7px; font: 700 14px/1.3 var(--ui); animation: msg-in 0.26s both; animation-delay: calc(var(--i, 0) * 0.5s); }
@keyframes msg-in { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
.msg span { max-width: 86%; padding: 8px 12px; border-radius: 16px 16px 16px 5px; background: #e6deff; }
.msg img, .msg-anon { flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; }
.msg-anon { background: #c9d3e0; }
.msg-milo { justify-content: flex-end; }
.msg-milo span { border-radius: 16px 16px 5px 16px; background: #3b82f6; color: #fff; }
.msg-sys { justify-content: center; padding: 9px 10px; border: 2px dashed #b9b3d0; border-radius: 12px; font-size: 13px; color: #4a4460; text-align: center; }
.night-note { font: 500 13px/1.4 var(--ui); color: #3a3350; }
.btn-next { width: 100%; height: 46px; font-size: 14px; box-shadow: 0 5px 0 var(--ink); }
/* Ava's vibe, as the kit's AvaMeter sticker: a navy panel with a cold-to-hot track. */
.vibe { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 14px; background: var(--navy); color: #fff; font: 800 12px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; }
.vibe-label { white-space: nowrap; }
.vibe-track { display: flex; flex: 1; gap: 3px; }
.vibe-track i { flex: 1; height: 10px; border-radius: 3px; background: #2c335e; transition: background-color 0.3s; }
.vibe-value { min-width: 5.6em; text-align: right; color: var(--sky); white-space: nowrap; }

.deck-end { text-align: center; padding: 18px 16px 22px; }
.end-art { width: 100%; max-width: 250px; height: auto; margin: 0 auto 12px; }
.end-title { font: 400 36px/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.end-text { margin-top: 8px; font-size: 15px; font-weight: 700; color: #3a3350; }
.end-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; }
.end-actions .btn { width: 100%; }
.link { margin-block: -6px; padding: 13px 14px; border: 0; background: none; font-weight: 800; font-size: 13px; color: #6b6480; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }

/* ---- sections ---- */
.band { max-width: var(--page); margin: 0 auto; padding: 64px 16px; }
.band > .cover-s { margin-bottom: 36px; }
.ava { padding-top: 132px; }
.cast { padding-top: 120px; }

/* ---- Ava: her post, what she has said so far, and the question that starts the countdown ---- */
.band > .ava-lede { margin: -16px auto 40px; max-width: 30em; text-align: center; font-size: clamp(17px, 2.2vw, 20px); font-weight: 700; text-wrap: balance; }
.ava-grid { display: grid; gap: 32px; align-items: center; }
.post { width: 100%; max-width: 420px; margin: 0 auto; padding: 14px 14px 18px; border: 4px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: 0 10px 0 var(--ink); rotate: -2.5deg; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 17px; }
.post-head img { width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 50%; }
.post-head strong { font-weight: 800; }
.post-photo { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 18px; }
.post-likes { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 800; }
.post-likes svg { width: 26px; height: 26px; fill: var(--coral); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.post figcaption { margin-top: 2px; font-size: 16px; font-weight: 700; color: #3a3350; }

.traits { display: grid; gap: 16px; }
.trait { padding: 18px 18px 20px; border: 4px solid var(--ink); border-radius: 24px; background: var(--cream); box-shadow: 0 8px 0 var(--ink); }
.trait h3 { font: 400 27px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.said { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.said img { flex: none; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 50%; }
.said q { quotes: none; padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: #e6deff; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: #3a3350; text-wrap: pretty; }

.ava-ask { display: grid; gap: 16px; align-items: center; margin-top: 36px; padding: 20px 22px 22px; border: 4px solid var(--ink); border-radius: 26px; background: var(--navy); color: #fff; box-shadow: 0 8px 0 var(--ink); }
.ask-chat { font: 800 12px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: #9aa0bf; }
.ava-ask .said { margin-top: 10px; }
.ava-ask .said q { background: #fff; font-size: 18px; }
.ask-line { font: 400 clamp(28px, 6.4vw, 38px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--yellow); text-wrap: balance; }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Three cards in two columns: the third sits centred under the pair. */
.person:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
.person { border: 4px solid var(--ink); border-radius: 24px; overflow: hidden; background: var(--cream); color: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 4px solid var(--ink); }
.art::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255, 255, 255, 0) 0 10deg, rgba(255, 255, 255, 0.14) 10deg 20deg); }
.art img { position: absolute; left: 50%; top: 5%; width: 88%; height: auto; max-width: none; translate: -50% 0; }
.person-nana .art { background: linear-gradient(#ffe08a, #ff9f43); }
.person-dee .art { background: linear-gradient(#bfe3ff, #6a9ef5); }
.person-sal .art { background: linear-gradient(#ffd6e4, #e8457a); }
.person h3 { padding: 14px 14px 0; font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.person p { padding: 6px 14px 16px; font-size: 14px; line-height: 1.4; color: #3a3350; }

.series { padding-top: 120px; padding-bottom: 0; }
.series-card { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 28px 22px; border: 4px solid var(--ink); border-radius: 28px; background: var(--cream); box-shadow: 0 8px 0 var(--ink); }
.series-face { width: 84px; height: 84px; border: 4px solid var(--ink); border-radius: 50%; }
.series h2 { font: 400 30px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.series p { margin-top: 6px; font-weight: 700; color: #3a3350; }

.last { text-align: center; padding-bottom: 88px; }
.last .join { margin: 0 auto; text-align: left; }
.last .join-fine { text-align: center; }

.foot { position: relative; z-index: 1; padding: 26px 16px 36px; background: var(--ink); color: #b9b3d0; text-align: center; font-size: 14px; }
.foot a { display: inline-block; margin: -13px -6px; padding: 13px 6px; font-weight: 700; color: var(--cream); }

/* ---- the cast, leaning in from the sides of the screen ----
   Each is a full rig standing just outside the edge and tilted in, so the head and an arm cross into view. */
.peek { position: absolute; z-index: -1; width: calc(var(--h) * 0.545); height: var(--h); pointer-events: none; }
.peek-right { right: calc(var(--h) * -0.5); --tilt: -35deg; --away: 90%; }
.peek-left { left: calc(var(--h) * -0.5); --tilt: 35deg; --away: -90%; }
.peek-slide { display: block; width: 100%; height: 100%; transition: translate 0.75s cubic-bezier(0.3, 1.45, 0.5, 1); }
.peeks-wait .peek:not(.is-in) .peek-slide { translate: var(--away) 0; }
.peek img { width: 100%; height: 100%; max-width: none; transform-origin: 50% 100%; rotate: var(--tilt); animation: lean 4.6s ease-in-out infinite alternate; }
.peek-flip img { scale: -1 1; }
@keyframes lean { from { rotate: calc(var(--tilt) * 0.94); } to { rotate: calc(var(--tilt) * 1.06); } }

/* Nana leans in beside the headline. The other three lean in where one section meets the next: their heads sit just
   under the join, clear of the section above, and their bodies pass behind their own section's cards. */
.peek-nana { --h: 270px; top: 70px; }
.peek-dee, .peek-sal, .peek-milo { --h: 280px; top: -74px; }
/* A polar bear leans in from the other side at the end of the page, beside the last form. He is wider than the
   cast's rigs (peek-bear.webp is cut tight to him), so he keeps his own width and tips in less. */
/* On a phone the form takes the whole width, so he leans in under it, in room the section keeps for him. */
.peek-bear { width: calc(var(--h) * 0.834); }
.peek-right.peek-bear { --h: 150px; right: calc(var(--h) * -0.42); top: auto; bottom: -34px; --tilt: -22deg; --away: 110%; }
.last { padding-bottom: 150px; }
/* A second bear leans in at the top left, where the page starts. He tips in much further than the one at the end,
   from a spot far enough outside the edge that his feet never show: only his head, a shoulder and a paw come in.
   --bear is his height. There is no room beside the headline until the screen is wider than the page, so up to
   there he is small (his paw has to stay above the headline) and his head looks in beside the name of the game,
   which moves over for it (--bear-clear, the top bar's left padding). His head sits level with the name, but never
   rises past the top of the scene. Under 360px the name and the series link fill the bar, and he stays out. */
.peek-left.peek-bear { display: none; --h: var(--bear); left: calc(var(--h) * -0.737); top: max(41px - var(--h) * 0.537, 12px - var(--h) * 0.17); --tilt: 50deg; --away: -110%; }
/* He slides in with hardly any spring: the cast's bounce would swing a foot into view on the way. */
.peek-left.peek-bear .peek-slide { transition-timing-function: cubic-bezier(0.3, 1.2, 0.5, 1); }
@media (min-width: 360px) {
  .scene-mint { --bear: 70px; --bear-clear: calc(var(--bear) * 0.62 + 8px); }
  .peek-left.peek-bear { display: block; }
}
/* From 360 to 389px the bar only has room for him at the smallest phones' type sizes (see "narrow phones" below). */
@media (min-width: 360px) and (max-width: 389px) {
  .brand { font-size: 18px; }
  .top-link { padding-inline: 11px; font-size: 13px; }
}
@media (min-width: 390px) { .scene-mint { --bear: 72px; } }
/* With him in the bar, the tag beside the name has no room until 480px (without him it fits from 440). */
@media (min-width: 360px) and (max-width: 479px) { .brand-tag { display: none; } }
/* Wider than the page, a margin opens beside the headline and he grows into it, to a little under the size of the
   bear at the end of the page. The name only moves over for as much of his head as the margin does not hold. */
@media (min-width: 1120px) {
  .scene-mint { --bear: clamp(72px, calc((100vw - 1120px) * 0.757 + 23px), 290px); --bear-clear: max(24px, calc(var(--bear) * 0.62 + 8px - (100vw - 1120px) / 2)); }
}

/* ---- narrow phones ----
   The page is built for a phone about 390px wide. These keep it whole on smaller ones. */
/* Under 420px a fix's card is too narrow for "Back from yesterday", and a full-size OR would sit on the cards' text. */
@media (max-width: 419px) {
  .tag-long { display: none; }
  .tag-short { display: inline; }
  .or { width: 34px; height: 34px; font-size: 11px; }
  .joined { padding: 18px 14px; }             /* room for the whole invite link on one line */
}
/* 320 to 359px, the smallest phones in use: everything keeps its place and gives up a little size. */
@media (max-width: 359px) {
  .top { gap: 8px; }
  .brand { font-size: 18px; }
  .top-link { padding-inline: 11px; font-size: 13px; }
  .hero { gap: 32px; padding-top: 24px; }
  .lede { margin-top: 20px; font-size: 16px; }
  .join { margin-top: 22px; }
  .deck { padding: 14px 12px; }
  .deck-title { padding-inline: 8px; font-size: 12px; letter-spacing: 0.04em; }
  .count-demo { display: none; }              /* "Demo: day 1 of 3" becomes "Day 1 of 3" */
  .deck-count::first-letter { text-transform: uppercase; }
  .picks { gap: 10px; }
  .pick { padding: 12px 10px; }
  .pick-name { font-size: 26px; }
  .person h3 { padding: 12px 12px 0; font-size: 21px; }
  .person p { padding: 6px 12px 14px; font-size: 13px; }
}
/* Under 300px, a folding phone's outer screen: one column wherever two no longer fit, and buttons may wrap. */
@media (max-width: 299px) {
  .brand { font-size: 16px; }
  .top-link { padding-inline: 9px; font-size: 12px; }
  .picks { grid-template-columns: 1fr; }
  .pick { min-height: 0; }
  .people { grid-template-columns: 1fr; }
  .person:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .art { aspect-ratio: 5 / 4; }
  .join-form button, .btn { height: auto; min-height: 58px; padding: 10px 16px; white-space: normal; text-align: center; line-height: 1.15; }
  .btn-next { min-height: 46px; }
}

/* ---- wider screens ---- */
@media (min-width: 560px) {
  .join-form { grid-template-columns: minmax(0, 1fr) auto; }
  .people { gap: 20px; }
  .person:last-child:nth-child(odd) { width: calc(50% - 10px); }
  .person p { font-size: 15px; }
  .peek-nana { display: none; }
}
/* From here three people fit side by side. In two columns on a tablet each card would be taller than the screen. */
@media (min-width: 600px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
}
@media (min-width: 640px) {
  .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .ava-ask { grid-template-columns: auto 1fr; gap: 36px; padding: 24px 30px 26px; }
  .ask-line { text-align: right; }
  .series-card { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; padding: 26px 30px; }
  .peek-dee, .peek-sal, .peek-milo { --h: clamp(330px, 36vw, 520px); top: calc(var(--h) * -0.22); }
  .peek-right.peek-bear { --h: clamp(240px, 24vw, 340px); right: calc(var(--h) * -0.56); bottom: -40px; --tilt: -24deg; }
  .last { padding-bottom: 88px; }
}
@media (min-width: 940px) {
  .top { padding-inline: var(--bear-clear, 24px) 24px; }
  .hero { padding-inline: 24px; }
  .band { padding: 80px 24px; }
  .ava, .cast, .series { padding-top: 128px; }
  .series { padding-bottom: 0; }
  .ava-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 52px; }
  .people { max-width: 880px; margin: 0 auto; }
  .cover-s { font-size: 60px; }
}
/* Two columns: the pitch, and the console laid on its side with the fixes as a menu beside the stage. */
@media (min-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: 34px 24px 96px; }
  .cover { font-size: clamp(84px, 8.2vw, 104px); }
  .console { display: grid; grid-template-columns: 320px 236px; width: auto; max-width: none; margin: 0; }
  .deck { display: flex; flex-direction: column; padding: 18px 18px; border-top: 0; border-left: 5px solid var(--ink); }
  .deck-head { flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 16px; }
  .picks { flex: 1; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .pick { min-height: 124px; }
  .night { flex: 1; align-content: start; grid-template-rows: auto auto 1fr auto; }
  .btn-next { align-self: end; }
  .vibe { flex-wrap: wrap; justify-content: space-between; row-gap: 8px; margin-top: 16px; }
  .vibe-track { order: 3; flex-basis: 100%; }
  .deck-end { justify-content: center; }
  /* Nana fits in whatever margin the screen leaves beside the console. */
  .peek-nana { display: block; --h: clamp(250px, calc((100vw - 1120px) * 1.28 + 51px), 520px); top: calc(330px - var(--h) * 0.37); }
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bump.is-on, .caption.is-on { animation-duration: 0.01s; }
  .msg, .crew-track i.is-new { animation: none; }
  .bump.is-on { opacity: 0; }
  .peek img { animation: none; }
  .peeks-wait .peek:not(.is-in) .peek-slide { translate: none; }
  * { transition-duration: 0.01s !important; }
}
