/* ==========================================================================
   Mad Silly Diorama  ·  msg.css
   Shared by every Mad Silly Games site. One world: a toy diorama on a
   workbench at night. Low-poly models under one warm work lamp and a cool
   rim light, flat-shaded facets, chunky toon outlines, brass plates for
   numbers. A site picks its paint key with
   <html data-production="studio|trench-horde|..."> and inherits everything
   else. See system/README.md and DESIGN.md.
   ========================================================================== */
@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bagel-fat-one.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url('fonts/martian-mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The bench at night: warm umber darks, never neutral grey, never pure black */
  --night: #0d0b0a;          /* the room beyond the lamp */
  --soil-1: #15110e;         /* page ground */
  --soil-2: #1d1814;         /* raised panel, shadow facet */
  --soil-3: #28211b;         /* raised panel, mid facet */
  --soil-4: #352b23;         /* raised panel, lit facet */
  --edge: #3f3329;           /* panel edges, rules */
  --outline: #050403;        /* toon outline, same as the renders */

  /* Text: bone under lamp light */
  --bone: #f1e9dc;           /* 16:1 on soil-1 */
  --bone-soft: #bcae99;      /* 8.6:1 on soil-1 */
  --bone-faint: #8a7c69;     /* 4.6:1 on soil-1, labels only */

  /* Materials from the models (zombie3d.ts and turretModels.ts) */
  --brass: #e7ad3f;  --brass-lit: #ffd27a;  --brass-deep: #8f5f17;
  --blood: #c8262c;  --blood-lit: #ef4a44;  --blood-deep: #6a0c12;
  --skin:  #b4ee46;  --skin-lit:  #d8ff86;  --skin-deep:  #557f1f;   /* walker skin */
  --coat:  #a85c28;  --coat-deep: #5e3214;                           /* greatcoat */
  --steel: #8e9ba7;  --steel-deep: #4a535c;
  --lamp:  #a86cff;          /* tier lamp purple: rare, glows */
  --rim:   #7fd6e8;          /* cool rim light: focus, live states */

  /* Paint key. Productions override --paint-* only. */
  --paint-a: var(--brass); --paint-a-lit: var(--brass-lit); --paint-a-deep: var(--brass-deep);
  --paint-b: var(--blood); --paint-b-lit: var(--blood-lit); --paint-b-deep: var(--blood-deep);
  --paint-c: var(--rim);

  /* Type */
  --f-title: "Bagel Fat One", "Bricolage Grotesque", system-ui, sans-serif;
  --f-text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-brand: "Archivo", "Bricolage Grotesque", system-ui, sans-serif;  /* studio wordmark + MSG lines */
  --f-data: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-hero: clamp(3.8rem, 12vw, 7.25rem);
  --t-1: clamp(2.4rem, 6vw, 4.25rem);
  --t-2: clamp(1.8rem, 3.6vw, 2.6rem);
  --t-3: 1.375rem;
  --t-body: 1.0625rem;
  --t-small: .9rem;
  --t-data: .72rem;

  /* Space: one rhythm, 8px base */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem; --s-5: 4rem; --s-6: 6.5rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 62ch;
  --max: 1240px;

  /* Shape: chamfered (cut) corners, like the octagonal turret bases */
  --cut: 14px;
  --cut-s: 8px;
  --stroke: 3px;
  --stroke-heavy: 5px;

  /* Light: one warm key from the upper left, one cool rim, deep soft drops */
  --drop: 0 18px 40px -18px rgb(0 0 0 / .85), 0 2px 0 rgb(0 0 0 / .4);
  --key-glow: radial-gradient(60% 55% at 22% 0%, rgb(255 190 110 / .13), transparent 70%);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

/* Production paint keys -------------------------------------------------- */
/* Studio = the MSG reactor (2026-11-12): signal yellow, alert red, Cherenkov blue. */
[data-production="studio"] {
  --signal: #ffd60a; --signal-lit: #ffe766; --signal-deep: #8a6c00;
  --alert: #e8342a;  --alert-lit: #ff5f52;  --alert-deep: #7a120c;
  --core: #3d7bff;   --core-lit: #8fb6ff;
  --paint-a: var(--signal); --paint-a-lit: var(--signal-lit); --paint-a-deep: var(--signal-deep);
  --paint-b: var(--alert);  --paint-b-lit: var(--alert-lit);  --paint-b-deep: var(--alert-deep);
  --paint-c: var(--core-lit);
  --f-title: var(--f-brand);
}
/* Archivo carries the studio's titles: heavy and a little wide, never the toy extrusion. */
[data-production="studio"] :is(h2, h3, .btn, .title-toy) { font-weight: 900; font-stretch: 112%; }
[data-production="studio"] h2 { letter-spacing: -.01em; line-height: 1; }
[data-production="studio"] .title-toy { -webkit-text-stroke: 0; paint-order: normal; text-shadow: 0 .06em .25em rgb(0 0 0 / .6); }
[data-production="studio"] .title-toy :is(.b, .c) { text-shadow: 0 .06em .25em rgb(0 0 0 / .6); }
[data-production="trench-horde"] {
  --paint-a: var(--skin);  --paint-a-lit: var(--skin-lit);  --paint-a-deep: var(--skin-deep);
  --paint-b: var(--blood); --paint-b-lit: var(--blood-lit); --paint-b-deep: var(--blood-deep);
  --paint-c: var(--brass);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; scrollbar-color: var(--soil-4) var(--night); }
body {
  margin: 0; color: var(--bone); background: var(--soil-1);
  font: 400 var(--t-body)/1.6 var(--f-text);
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--paint-a); color: var(--outline); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--paint-a-deep); transition: text-decoration-color .2s var(--ease-out), color .2s; }
a:hover { text-decoration-color: var(--paint-a); }
:focus-visible { outline: 3px solid var(--rim); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-title); font-weight: 400; line-height: .98; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: var(--t-1); }
h3 { font-size: var(--t-3); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 99; background: var(--paint-a); color: var(--outline); padding: .6rem 1rem; }
.skip:focus { top: .75rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { position: relative; padding-block: var(--s-6); }
.band > .wrap { position: relative; z-index: 1; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.42; max-width: 36ch; color: var(--bone); font-variation-settings: "opsz" 32; }
.soft { color: var(--bone-soft); }

/* Chamfer: cut corners where the browser can, small rounds where it can't.
   corner-shape keeps borders, outlines and shadows on the cut. */
.cut, .btn, .panel, .hud, .spec-scroll, .box, .plate, .player-shell, .lab, .range, .key, input[type="email"] { border-radius: var(--cut-s); }
@supports (corner-shape: bevel) {
  .cut, .btn, .panel, .hud, .spec-scroll, .box, .plate, .player-shell, .lab, .range, .key, input[type="email"] { corner-shape: bevel; border-radius: var(--cut); }
  .key, .plate { border-radius: var(--cut-s); }
}

/* Facets: a low-poly ground painted by msg.js into any [data-facets] band.
   Without JS the band is flat soil, which is fine. */
.facets { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.facets canvas { width: 100%; height: 100%; }
.facets::after { content: ""; position: absolute; inset: 0; background: var(--key-glow), linear-gradient(180deg, transparent 55%, var(--soil-1)); }

/* Top bar ---------------------------------------------------------------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--edge);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 64px; flex-wrap: wrap; padding-block: .4rem; }
.mark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 900 1.05rem/1 var(--f-brand); font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; color: var(--bone); }
.mark img { width: 42px; height: 42px; transition: rotate .4s var(--ease-snap); }
.mark:hover img { rotate: -12deg; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tabs a { font: 600 .95rem/1 var(--f-text); text-decoration: none; padding: .65rem .85rem; color: var(--bone-soft); border-radius: 6px; transition: color .2s, background-color .2s; }
.tabs a:hover { color: var(--bone); background: var(--soil-3); }
.tabs a[aria-current="page"] { color: var(--outline); background: var(--paint-a); }
/* EN / FR picker: a two-key switch at the end of the top bar. Both labels stay in their own language. */
.topbar nav.tabs { margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--edge); border-radius: 7px; padding: 2px; gap: 2px; background: var(--soil-1); }
.lang a { font: 600 .78rem/1 var(--f-data); letter-spacing: .04em; text-decoration: none; padding: .5rem .55rem; min-width: 2.4rem; text-align: center; color: var(--bone-soft); border-radius: 5px; transition: color .2s, background-color .2s; }
.lang a:hover { color: var(--bone); background: var(--soil-3); }
.lang a[aria-current="true"] { color: var(--outline); background: var(--paint-a); }

/* Account: sign-in key (signed out) or initial badge with a popover (signed in), just before EN / FR. */
.acct { position: relative; display: inline-flex; }
.acct-in { display: inline-flex; align-items: center; gap: .5rem; font: 700 .9rem/1 var(--f-text); text-decoration: none; color: #1f1f1f; background: #fff; border: 1px solid #dadce0; border-radius: 999px; padding: .5rem .9rem .5rem .6rem; box-shadow: 0 2px 0 rgb(0 0 0 / .35); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.acct-in:hover { transform: translateY(-1px); box-shadow: 0 3px 0 rgb(0 0 0 / .35); }
.acct-in svg { width: 18px; height: 18px; flex: none; }
.acct-me { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--paint-a); background: var(--soil-3); cursor: pointer; padding: 0; }
.acct-me .dot { font: 800 1rem/1 var(--f-text); color: var(--paint-a); }
.acct-me[aria-expanded="true"] { background: var(--paint-a); }
.acct-me[aria-expanded="true"] .dot { color: var(--outline); }
.acct .acct-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); padding: var(--s-2); z-index: 70; display: grid; gap: .5rem; text-align: left; }
.acct-pop[hidden] { display: none; }
.acct-pop p { margin: 0; }
.acct-pop .data { color: var(--bone-soft); }
.acct-pop .who { font-weight: 700; color: var(--bone); overflow-wrap: anywhere; }
.acct-pop .small { font-size: .88rem; color: var(--bone-soft); }
.acct-pop .btn { justify-self: start; font-size: .95rem; padding: .6rem 1rem .8rem; }

/* "Welcome back": one card, once per visit, for a signed-in visitor (msg.js hello). Same avatar dot as the account key. */
.hello { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); z-index: 90; display: flex; align-items: center; gap: .75rem;
  max-width: min(440px, calc(100vw - 32px)); padding: .6rem 1rem .6rem .6rem; border-radius: 14px; background: var(--soil-2); color: var(--bone);
  border: 1px solid var(--edge); box-shadow: 0 10px 30px rgb(0 0 0 / .5); pointer-events: none; opacity: 0; transform: translate(-50%, -8px);
  transition: opacity .28s ease, transform .38s cubic-bezier(.2, .9, .3, 1.25); }
.hello.on { opacity: 1; transform: translate(-50%, 0); }
.hello .dot { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paint-a); color: var(--outline); font: 800 1rem/1 var(--f-text); }
.hello b { display: block; font: 700 .98rem/1.25 var(--f-text); }
.hello small { display: block; font-size: .84rem; color: var(--bone-soft); margin-top: 1px; }
@media (prefers-reduced-motion: reduce) { .hello { transition: opacity .2s linear; transform: translate(-50%, 0); } }

/* Titles: toy letters. Paint face, heavy outline, extruded side. ---------- */
.title-toy {
  color: var(--paint-a);
  -webkit-text-stroke: var(--stroke-heavy) var(--outline); paint-order: stroke fill;
  text-shadow:
    0 .025em 0 var(--paint-a-deep), 0 .05em 0 var(--paint-a-deep), 0 .075em 0 var(--paint-a-deep),
    0 .1em 0 var(--outline), 0 .2em .35em rgb(0 0 0 / .55);
}
.title-toy .b { color: var(--bone); text-shadow: 0 .025em 0 #8d8172, 0 .05em 0 #8d8172, 0 .075em 0 #8d8172, 0 .1em 0 var(--outline), 0 .2em .35em rgb(0 0 0 / .55); }
.title-toy .c { color: var(--paint-b); text-shadow: 0 .025em 0 var(--paint-b-deep), 0 .05em 0 var(--paint-b-deep), 0 .075em 0 var(--paint-b-deep), 0 .1em 0 var(--outline), 0 .2em .35em rgb(0 0 0 / .55); }

/* Buttons: chunky keys. Lit top facet, paint face, extruded base. ------- */
.btn {
  --fill: var(--paint-a); --lit: var(--paint-a-lit); --deep: var(--paint-a-deep); --ink: var(--outline);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 1.15rem/1 var(--f-title); letter-spacing: .005em; text-decoration: none; color: var(--ink);
  padding: .95rem 1.4rem 1.25rem; min-height: 54px; border: var(--stroke) solid var(--outline);
  background: linear-gradient(172deg, var(--lit) 0 30%, var(--fill) 30%);
  box-shadow: inset 0 -6px 0 var(--deep), inset 0 2px 0 rgb(255 255 255 / .28), var(--drop);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-snap), box-shadow .18s var(--ease-out), filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06) saturate(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--deep), inset 0 2px 0 rgb(255 255 255 / .2), 0 4px 10px -6px rgb(0 0 0 / .8); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn.blood { --fill: var(--paint-b); --lit: var(--paint-b-lit); --deep: var(--paint-b-deep); --ink: var(--bone); }
.btn.steel { --fill: var(--soil-4); --lit: #4a3d31; --deep: var(--soil-2); --ink: var(--bone); }
.btn.big { font-size: 1.4rem; padding: 1.15rem 1.75rem 1.5rem; }

/* Data: plates and readouts ---------------------------------------------- */
.data { font: 500 var(--t-data)/1.3 var(--f-data); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.num { font-family: var(--f-data); font-variant-numeric: tabular-nums slashed-zero; font-weight: 600; }

/* Panel: a raised, flat-shaded block. The lit facet faces the lamp. ------ */
.panel {
  position: relative; border: 1px solid var(--edge);
  background: linear-gradient(160deg, var(--soil-4) 0 22%, var(--soil-3) 22% 64%, var(--soil-2) 64%);
  box-shadow: inset 0 1px 0 rgb(255 230 190 / .07), var(--drop);
}

/* Brass plate: the label on a toy box. Numbers and names only. */
.plate {
  display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .55rem .36rem;
  font: 600 var(--t-data)/1.2 var(--f-data); letter-spacing: .06em; text-transform: uppercase; color: var(--outline);
  background: linear-gradient(172deg, var(--brass-lit) 0 40%, var(--brass) 40%);
  border: 2px solid var(--outline); box-shadow: inset 0 -2px 0 var(--brass-deep);
}

/* Small key: level selectors and toggles */
.key {
  font: 700 .8rem/1 var(--f-data); min-width: 44px; min-height: 44px; padding: 0 .5rem; color: var(--bone-soft);
  border: 2px solid var(--outline); background: linear-gradient(172deg, #3d3229 0 35%, var(--soil-3) 35%);
  box-shadow: inset 0 -3px 0 var(--soil-1); cursor: pointer;
  transition: transform .18s var(--ease-snap), color .15s, background .15s;
}
.key:hover { transform: translateY(-2px); color: var(--bone); }
.key[aria-pressed="true"] { color: var(--outline); background: linear-gradient(172deg, var(--paint-a-lit) 0 35%, var(--paint-a) 35%); box-shadow: inset 0 -3px 0 var(--paint-a-deep); }

/* Meter: a dark well with a paint fill and a lit top facet */
.meter { position: relative; height: 16px; border: 2px solid var(--outline); background: var(--night); overflow: hidden; border-radius: 3px; }
.meter::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--fill, 1)); background: linear-gradient(180deg, var(--paint-b-lit) 0 40%, var(--paint-b) 40%); transition: transform .12s linear; }

/* Spec tables ------------------------------------------------------------ */
.spec-scroll { overflow-x: auto; border: 1px solid var(--edge); background: var(--soil-2); box-shadow: var(--drop); }
.spec { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; }
.spec th { font: 600 var(--t-data)/1.2 var(--f-data); letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--paint-c); padding: .85rem .9rem; border-bottom: 2px solid var(--outline); background: var(--soil-3); white-space: nowrap; }
.spec td { padding: .75rem .9rem; border-bottom: 1px solid var(--edge); vertical-align: middle; color: var(--bone); }
.spec td.soft { color: var(--bone-soft); }
.spec tr:last-child td { border-bottom: 0; }
.spec td.n, .spec th.n { text-align: right; font-family: var(--f-data); font-variant-numeric: tabular-nums; font-size: .85rem; }
.spec td.fr { font-family: var(--f-data); font-size: .72rem; color: var(--bone-faint); width: 3.5rem; }
.spec tbody tr { transition: background-color .15s; }
.spec tbody tr:hover { background: color-mix(in srgb, var(--paint-a) 9%, transparent); }
.spec .who { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.spec .who img { width: 40px; height: 48px; object-fit: contain; object-position: 50% 100%; flex: none; }
.spec .who img.tw { width: 56px; height: 44px; }
.swatch { display: inline-block; width: .95em; height: .95em; border: 2px solid var(--outline); vertical-align: -.12em; margin-right: .45em; background: var(--c); rotate: 45deg; scale: .85; }

/* Lamp band: the one big ask, under a pool of paint-coloured light ------ */
.band-lamp { overflow: hidden; border-block: 1px solid var(--edge);
  background: radial-gradient(55% 110% at 78% 100%, color-mix(in srgb, var(--paint-a) 30%, transparent), transparent 70%), radial-gradient(40% 80% at 10% 0%, rgb(255 190 110 / .08), transparent 70%), var(--night); }
.band-lamp .zed { position: absolute; z-index: 1; right: max(8px, calc(50% - var(--max) / 2 - 30px)); bottom: -36px; height: 250px; width: auto; pointer-events: none; filter: drop-shadow(0 14px 10px rgb(0 0 0 / .6)); rotate: -6deg; }

/* Form ------------------------------------------------------------------- */
.field { display: grid; gap: .45rem; }
.field label { font-weight: 700; font-size: .98rem; }
.input-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.input-row > input { flex: 1 1 15rem; min-width: 0; }
input[type="email"] {
  font: 500 1.05rem var(--f-text); color: var(--bone); background: var(--night);
  padding: .9rem 1rem; min-height: 54px; border: var(--stroke) solid var(--outline);
  box-shadow: inset 0 3px 0 rgb(0 0 0 / .5), 0 1px 0 rgb(255 230 190 / .08); caret-color: var(--paint-a);
}
input[type="email"]::placeholder { color: var(--bone-faint); }
input[type="email"]:focus-visible { outline: 3px solid var(--rim); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--blood); }
.note { min-height: 1.5em; font-weight: 600; }
.fine { font-size: var(--t-small); color: var(--bone-soft); }

/* Arrivals: smooth rise, once. Visible by default; only enhanced pages hide. */
.js [data-enter] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js [data-enter].in-view { animation: rise .9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }

/* Headline words rise out of their own masks */
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .14em .3em; margin: -.1em -.14em -.3em; }
.word { display: inline-block; }
.words-ready .word { animation: word-up .95s var(--ease-out) both; }
@keyframes word-up { from { transform: translate3d(0, 115%, 0) rotate(5deg); } to { transform: none; } }

/* Story beats: hidden until their turn, then pop */
.js [data-story] [data-beat] { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .35s var(--ease-out), transform .45s var(--ease-snap); }
.js [data-story] [data-beat].on { opacity: 1; transform: none; }

/* Footer ----------------------------------------------------------------- */
.credits { background: var(--night); color: var(--bone-soft); padding-block: var(--s-5) var(--s-4); border-top: 1px solid var(--edge); }
.credits a { color: var(--bone); text-decoration-color: var(--paint-a-deep); }
.credits .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-4); }
.credits h2 { font-size: var(--t-2); color: var(--paint-a); }
.credits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.credits .data { color: var(--bone-faint); margin-bottom: .8rem; }
.credits .fin { grid-column: 1 / -1; border-top: 1px solid var(--edge); padding-top: var(--s-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--bone-faint); font-size: var(--t-small); }

/* Ad slot: reserved so turning ads on never shifts layout ---------------- */
.ad-slot { display: none; min-height: 100px; border: 2px dashed var(--edge); place-items: center; color: var(--bone-faint); }
.ads-on .ad-slot { display: grid; }


/* ==========================================================================
   Production components
   ========================================================================== */

/* Hero: the live diorama fills the stage; the title sits in the lamp light */
.stage { position: relative; isolation: isolate; overflow: hidden; background: var(--night); }
.diorama { position: absolute; inset: 0; z-index: -1; touch-action: manipulation; cursor: crosshair; }
.diorama canvas { width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgb(13 11 10 / .9) 0, rgb(13 11 10 / .55) 34%, transparent 58%), linear-gradient(0deg, var(--soil-1) 0, transparent 16%); }
.hero { min-height: clamp(560px, 86svh, 820px); display: grid; align-content: start; padding-block: clamp(2rem, 7vh, 5rem) 4rem; pointer-events: none; }
.hero-title { display: grid; gap: var(--s-3); max-width: 40rem; pointer-events: none; }
.hero-title > * { pointer-events: auto; }
.hero-title h1 { font-size: var(--t-hero); line-height: .84; }
.hero-title h1 .line { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
/* One obvious way in: the play button, with the promise right under it */
.play-now { display: grid; justify-items: start; gap: .6rem; }
.play-now .btn.big { font-size: clamp(1.45rem, 3.2vw, 1.85rem); padding: 1.25rem 2rem 1.6rem 1.6rem; gap: .8rem; }
.play-now .btn.big svg { width: 1.3em; height: 1.3em; filter: drop-shadow(0 2px 0 var(--paint-b-deep)); }
.play-now .btn.big::after { content: ""; position: absolute; inset: -8px; border: 2px solid var(--paint-b-lit); border-radius: inherit; opacity: 0; pointer-events: none; animation: beckon 2.6s var(--ease-out) 1.4s infinite; }
@keyframes beckon { 0% { opacity: .7; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.08, 1.22); } }
.play-sub { font-size: var(--t-small); color: var(--bone-soft); font-weight: 600; text-shadow: 0 1px 6px var(--night); }
@media (prefers-reduced-motion: reduce) { .play-now .btn.big::after { animation: none; } }
.quick-beta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.quick-beta input[type="email"] { width: 14rem; max-width: 100%; }
.quick-beta .note { flex-basis: 100%; min-height: 0; font-size: var(--t-small); color: var(--bone-soft); }

/* HUD: the instrument strip under the diorama */
.hud { position: relative; z-index: 2; margin-top: -2.5rem; margin-bottom: var(--s-2); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0; align-items: stretch;
  border: 1px solid var(--edge); background: color-mix(in srgb, var(--soil-2) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--drop); }
.hud > * { padding: var(--s-2) var(--s-3); }
.hud-fire { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; border-right: 1px solid var(--edge); }
.hud .caption { align-self: center; font-size: var(--t-small); color: var(--bone-soft); max-width: 48ch; line-height: 1.4; }
.nerd-toggle { align-self: stretch; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; border: 0; border-left: 1px solid var(--edge); background: none; color: var(--bone-faint); cursor: pointer; transition: color .15s; }
.nerd-toggle::after { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -.15em; transition: rotate .25s var(--ease-snap); }
.nerd-toggle[aria-expanded="true"]::after { rotate: -135deg; translate: 0 .1em; }
.nerd-toggle:hover, .nerd-toggle[aria-expanded="true"] { color: var(--paint-a); }
.nerd { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; border-top: 1px solid var(--edge); }
.nerd[hidden] { display: none; }
.hud-levels { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.hud-weapons { display: flex; gap: .3rem; }
.hud-weapons .key { flex: 1; }
.hud [hidden] { display: none !important; }
.hud-levels .data { color: var(--bone-faint); margin-right: .2rem; }
.hud-ball { display: grid; gap: .6rem; align-content: center; }
.hud-ball .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.hud-ball .row .data { color: var(--bone-faint); }
.hud-ball .row b { font: 600 1rem/1 var(--f-data); color: var(--bone); font-variant-numeric: tabular-nums slashed-zero; }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(5.5rem, auto)); gap: .7rem 1.4rem; margin: 0; align-content: center; }
.readouts div { display: grid; gap: .2rem; }
.readouts dt { color: var(--bone-faint); }
.readouts dd { margin: 0; font: 600 1.15rem/1 var(--f-data); color: var(--paint-a); font-variant-numeric: tabular-nums slashed-zero; }
.readouts .big dd { font-size: 1.7rem; color: var(--bone); }

/* Lineup: models standing on a plinth, with brass plates */
.cast { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(.2rem, 1.5vw, 1.4rem); padding: var(--s-4) var(--s-2) 0; }
.cast::before { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 64px; z-index: -1;
  background: linear-gradient(172deg, var(--soil-4) 0 40%, var(--soil-3) 40% 70%, var(--soil-2) 70%); border: 1px solid var(--edge); border-radius: var(--cut-s); box-shadow: var(--drop); }
@supports (corner-shape: bevel) { .cast::before { corner-shape: bevel; border-radius: 22px / 32px; } }
.model { position: relative; display: grid; justify-items: center; gap: .5rem; margin: 0; }
.model img { width: auto; height: var(--h, 180px); filter: drop-shadow(0 14px 10px rgb(0 0 0 / .55)); transform-origin: 50% 100%; transition: transform .45s var(--ease-snap); }
.model:hover img { transform: translateY(-6px) rotate(-3deg); }
.model figcaption { position: relative; z-index: 1; margin-bottom: 6px; }
.in-view .model img { animation: idle 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.7s); }
@keyframes idle { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg) translateY(-2px); } }

/* Two-up: a picture beside copy */
.twoup { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.twoup > * { min-width: 0; }
.twoup h2 { margin-bottom: var(--s-2); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.notes li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.notes li > b { width: 40px; height: 40px; display: grid; place-items: center; font: 700 .8rem/1 var(--f-data); color: var(--outline); background: linear-gradient(172deg, var(--paint-a-lit) 0 40%, var(--paint-a) 40%); border: 2px solid var(--outline); box-shadow: inset 0 -3px 0 var(--paint-a-deep); rotate: 45deg; }
.notes li > b > span { rotate: -45deg; }
.notes h3 { margin-bottom: .2rem; }
.notes p { color: var(--bone-soft); }

/* Cannon lab: the momentum rule, played out on real models */
.lab { border: 1px solid var(--edge); background: var(--soil-2); box-shadow: var(--drop); overflow: hidden; }
.lab-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--edge); background: var(--soil-3); }
.lab-top .data { color: var(--bone-soft); }
.lab-levels { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.lab-stage { position: relative; padding: var(--s-4) var(--s-3) var(--s-3); overflow-x: auto; background: var(--key-glow), linear-gradient(180deg, transparent 70%, rgb(0 0 0 / .25)); }
.lineup { position: relative; display: flex; align-items: flex-end; gap: clamp(.1rem, .8vw, .6rem); min-width: 720px; padding: 0 0 .7rem 70px; }
.lineup::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 0; background: linear-gradient(180deg, var(--soil-4) 0 45%, var(--soil-1) 45%); border: 2px solid var(--outline); border-radius: 3px; }
.token { position: relative; z-index: 1; display: grid; justify-items: center; gap: .3rem; margin-bottom: 8px; transition: transform .55s var(--ease-out), opacity .55s; }
.token img { height: var(--h); width: auto; filter: drop-shadow(0 8px 6px rgb(0 0 0 / .5)); }
.token span { font: 600 .72rem/1 var(--f-data); letter-spacing: .04em; color: var(--bone-soft); text-shadow: 0 1px 3px var(--night), 0 0 8px var(--night); }
.token.hit { transform: translate(34px, -64px) rotate(48deg); opacity: .18; }
.token.stopper img { filter: drop-shadow(0 0 0 var(--paint-b)) drop-shadow(0 0 14px var(--paint-b)); }
.token.stopper span { color: var(--paint-b-lit); }
.lab-ball { position: absolute; left: 12px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%; z-index: 3;
  background: conic-gradient(from 210deg at 36% 34%, #5d666d 0 25%, #3a4046 25% 50%, #22262a 50% 75%, #2d3237 75%); border: 3px solid var(--outline); box-shadow: inset 4px 4px 0 rgb(255 255 255 / .18), 0 10px 10px -4px rgb(0 0 0 / .7); }
.lab-read { display: grid; grid-template-columns: auto minmax(8rem, 16rem) 1fr; gap: var(--s-2); align-items: center; padding: var(--s-2) var(--s-3) var(--s-3); border-top: 1px solid var(--edge); }
.lab-read .num { font-size: 1.7rem; min-width: 4.5ch; color: var(--paint-a); }
.lab-read [data-lab-verdict] { font-weight: 600; }

/* Test range: the hero's sim on a straight lane */
.range { border: 1px solid var(--edge); background: var(--soil-2); box-shadow: var(--drop); overflow: hidden; }
.range-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--edge); background: var(--soil-3); }
.range-top .lab-levels .data { color: var(--bone-soft); margin-right: .3rem; }
.range-top .btn { min-width: 9rem; }
.range-stage { position: relative; height: clamp(240px, 30vw, 340px); background: var(--night); cursor: crosshair; touch-action: manipulation; }
.range-stage canvas { display: block; width: 100%; height: 100%; }
.range-swaps { position: absolute; left: var(--s-2); right: var(--s-2); bottom: var(--s-2); display: flex; flex-wrap: wrap; gap: .3rem; clip-path: inset(50%); }
.range-swaps:focus-within { clip-path: none; }
.range-swaps .key { min-height: 36px; font-size: .7rem; background: var(--soil-3); }
.range-hint { position: absolute; left: var(--s-3); top: var(--s-2); margin: 0; color: var(--bone-faint); pointer-events: none; text-shadow: 0 1px 4px var(--night); }
.range .lab-read .num { transition: color .2s; }
.range.stopped .lab-read .num { color: var(--paint-b-lit); animation: thud .5s var(--ease-snap); }
.range.through .lab-read .num { color: var(--skin); }
@keyframes thud { 0% { transform: scale(1.5) rotate(-6deg); } 100% { transform: none; } }

/* Shelf: productions as boxed toys */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.box { position: relative; display: grid; grid-template-rows: 200px auto 1fr; overflow: hidden; border: 1px solid var(--edge); background: linear-gradient(160deg, var(--soil-4) 0 22%, var(--soil-3) 22% 64%, var(--soil-2) 64%); box-shadow: var(--drop); transition: transform .35s var(--ease-snap); }
.box:hover { transform: translateY(-4px); }
.box .window { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: .2rem; padding-top: 1rem; background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--paint-a) 22%, transparent), transparent 70%), var(--night); border-bottom: 2px solid var(--outline); overflow: hidden; }
.box .window img { height: 170px; width: auto; margin-bottom: -6px; filter: drop-shadow(0 10px 8px rgb(0 0 0 / .6)); }
.box .window img.dark { filter: brightness(0) drop-shadow(0 0 1px rgb(255 230 190 / .35)); opacity: .9; }
.box .window .q { position: absolute; top: 14px; right: 18px; font: 4.5rem/1 var(--f-title); color: var(--bone-faint); text-shadow: 0 4px 0 var(--outline); }
.box header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 1rem .2rem; }
.box h3 a { text-decoration: none; }
.box h3 a::after { content: ""; position: absolute; inset: 0; }
.box p { padding: .2rem 1rem 1.1rem; color: var(--bone-soft); }
.box.live { outline: 3px solid var(--paint-a); outline-offset: -1px; }

/* 002: the mystery box. A wrapped parcel that shakes, pops, and drops a hint. */
.box .gift { border: 0; border-bottom: 2px solid var(--outline); width: 100%; cursor: pointer; font: inherit; color: inherit;
  background: radial-gradient(60% 80% at 50% 100%, rgb(127 214 232 / .2), transparent 70%), radial-gradient(1.5px 1.5px at 20% 30%, #fff8 99%, transparent), radial-gradient(1.5px 1.5px at 70% 18%, #fff6 99%, transparent), radial-gradient(2px 2px at 84% 52%, #fff5 99%, transparent), radial-gradient(1.5px 1.5px at 38% 62%, #fff4 99%, transparent), var(--night); }
.gift .parcel { width: 170px; height: auto; overflow: visible; margin-bottom: 6px; filter: drop-shadow(0 12px 8px rgb(0 0 0 / .6)); transform-origin: 50% 95%; transition: transform .3s var(--ease-snap); }
.gift:hover .parcel { transform: rotate(-3deg) translateY(-3px); }
.gift .lid { transform-origin: 20px 66px; transition: transform .5s var(--ease-snap); }
.gift .hand { transform: translateY(40px); transition: transform .45s var(--ease-snap) .08s; }
.gift .body { position: relative; }
.tease.opened .gift .lid { transform: translate(-6px, -22px) rotate(-24deg); }
.tease.opened .gift .hand { transform: translateY(0); animation: wave 1.1s ease-in-out .5s 2; transform-origin: 82px 92px; }
.tease.shake .parcel { animation: shake .45s var(--ease-out); }
@keyframes shake { 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg) translateY(-6px); } 70% { transform: rotate(-3deg); } 100% { transform: none; } }
@keyframes wave { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.gift .flakes { position: absolute; left: 50%; bottom: 70px; pointer-events: none; }
.gift .flakes i { position: absolute; width: var(--s); height: var(--s); background: var(--bone); border: 1px solid var(--outline); rotate: 45deg; animation: flake 1.3s var(--ease-out) forwards; }
@keyframes flake { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(200deg); opacity: 0; } }
.tease [data-gift-note] { transition: color .2s; }
.tease.opened [data-gift-note] { color: var(--bone); font-weight: 600; }
.gift:focus-visible { outline: 3px solid var(--paint-a); outline-offset: -5px; }
@media (prefers-reduced-motion: reduce) { .tease.shake .parcel, .tease.opened .gift .hand { animation: none; } }

/* 003: one-tap vote. Fixed choices; after a tap each one fills to its share. */
.box.vote { grid-template-rows: auto auto 1fr; }
.ballot { display: grid; gap: .4rem; align-content: center; min-height: 200px; padding: .9rem; background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--paint-a) 16%, transparent), transparent 70%), var(--night); border-bottom: 2px solid var(--outline); }
.vote-opt { --share: 0; position: relative; display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; padding: .45rem .75rem; text-align: left; font: 600 .95rem/1.2 var(--f-text); color: var(--bone); border: 2px solid var(--outline); border-radius: 6px; background: linear-gradient(172deg, #3d3229 0 35%, var(--soil-3) 35%); box-shadow: inset 0 -3px 0 var(--soil-1); cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .18s var(--ease-snap); }
.vote-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; transform-origin: 0 50%; transform: scaleX(var(--share)); background: linear-gradient(172deg, color-mix(in srgb, var(--paint-a-lit) 55%, transparent) 0 35%, color-mix(in srgb, var(--paint-a) 45%, transparent) 35%); transition: transform .9s var(--ease-out); }
.vote-opt:hover { transform: translateY(-2px); }
.vote-opt .pct { font: 700 .78rem/1 var(--f-data); font-variant-numeric: tabular-nums; color: var(--bone); flex: none; }
.voted .vote-opt { cursor: default; }
.voted .vote-opt:hover { transform: none; }
.vote-opt[aria-pressed="true"] { border-color: var(--paint-a); }
.vote-opt[aria-pressed="true"] .lbl::after { content: ""; display: inline-block; width: .35em; height: .7em; margin-left: .55em; border: solid var(--paint-a-lit); border-width: 0 3px 3px 0; rotate: 45deg; translate: 0 -.1em; }
.vote [data-vote-note] { color: var(--bone-soft); }

/* Spine: a cannonball trajectory that draws itself as you scroll */
.spined { position: relative; }
.spine { position: absolute; left: max(16px, calc(50% - var(--max) / 2 + 16px)); top: 0; bottom: 0; width: 64px; pointer-events: none; z-index: 1; }
.spine svg { display: block; width: 64px; height: 100%; overflow: visible; }
.spine-track { stroke: var(--edge); stroke-width: 2; stroke-dasharray: 2 8; fill: none; }
.spine-ink { stroke: var(--paint-a); stroke-width: 3; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--paint-a) 60%, transparent)); }
.beats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-left: 96px; }
.beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-4); align-items: center; }
.beat > * { min-width: 0; }
.beat:nth-child(even) .beat-art { order: -1; }
.beat .plate { margin-bottom: var(--s-2); }
.beat h2 { font-size: var(--t-2); margin-bottom: var(--s-2); }
.beat p { max-width: 46ch; color: var(--bone-soft); }
.beat-art { position: relative; }
.scene { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: .5rem; min-height: 300px; padding: var(--s-3) var(--s-2) var(--s-2); overflow: hidden;
  background: radial-gradient(60% 70% at 40% 100%, color-mix(in srgb, var(--paint-a) 16%, transparent), transparent 70%), linear-gradient(180deg, var(--night), var(--soil-2)); }
.scene img { height: var(--h, 220px); width: auto; filter: drop-shadow(0 14px 10px rgb(0 0 0 / .6)); }
.scene .plate { position: absolute; right: 12px; top: 12px; margin: 0; }

/* Player in its case */
.player-shell { border: var(--stroke-heavy) solid var(--outline); background: var(--night); overflow: hidden; box-shadow: var(--drop), 0 0 0 1px var(--edge); }
.player { position: relative; aspect-ratio: 16 / 10; max-width: 100%; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { position: absolute; inset: 0; display: grid; place-items: center; }
.player .poster canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.player .poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgb(13 11 10 / .25), rgb(13 11 10 / .7)); pointer-events: none; }
.player .poster .btn { position: relative; z-index: 1; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 1rem; color: var(--bone-soft); font-size: var(--t-small); border-top: 1px solid var(--edge); }
.player-bar a { color: var(--paint-a); }
.player-bar [hidden] { display: none; }

/* Paint band with the beta form */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-4); align-items: center; }
.beta-copy { display: grid; gap: var(--s-3); }
/* Phone mockup: the game in landscape, tilted toward the lamp, with the tester stamp slapped on */
.phone { position: relative; margin: 0; padding: var(--s-3) var(--s-2) var(--s-4); }
.phone-body { position: relative; padding: 12px 34px 12px 22px; border-radius: 30px; background: linear-gradient(160deg, #3a3f45, #16191c 60%); border: 3px solid var(--outline); box-shadow: inset 0 0 0 2px #5a636b, inset 0 2px 0 3px rgb(255 255 255 / .08), 0 40px 60px -24px rgb(0 0 0 / .9); rotate: -5deg; transition: rotate .6s var(--ease-snap); }
.phone-body::before { content: ""; position: absolute; right: 13px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #0a0c0e; box-shadow: 0 0 0 2px #2a2f34; translate: 0 -50%; }
.phone-body img { display: block; width: 100%; aspect-ratio: 20 / 9.6; object-fit: cover; border-radius: 14px; border: 2px solid var(--outline); }
.phone:hover .phone-body { rotate: -2deg; }
.stamp { position: absolute; right: 0; bottom: 0; display: grid; justify-items: center; gap: .15rem; padding: .7rem 1rem .8rem; rotate: 8deg; color: var(--paint-b-lit); border: 3px solid currentColor; border-radius: 10px; background: color-mix(in srgb, var(--night) 82%, transparent); box-shadow: inset 0 0 0 2px var(--night), inset 0 0 0 4px color-mix(in srgb, currentColor 40%, transparent), 0 12px 20px -10px rgb(0 0 0 / .8); font: 600 .62rem/1.1 var(--f-data); letter-spacing: .14em; text-transform: uppercase; }
.stamp b { font: 400 1.35rem/1 var(--f-title); letter-spacing: .01em; color: var(--bone); text-transform: none; }
.in-view .stamp { animation: stamp .55s var(--ease-snap) .45s backwards; }
@keyframes stamp { from { opacity: 0; transform: scale(2.2) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .in-view .stamp { animation: none; } }
.beta > * { min-width: 0; }
.beta h2 { font-size: var(--t-1); }

/* Read surfaces: press kit, privacy -------------------------------------- */
.page-head { padding-block: var(--s-5) var(--s-4); }
.page-head h1 { font-size: clamp(3rem, 9vw, 5.5rem); line-height: .9; }
.read { display: grid; gap: var(--s-2); max-width: var(--measure); }
.read h2 { font-size: var(--t-2); margin-top: var(--s-3); }
.read h2:first-child { margin-top: 0; }
.read p, .read li { color: var(--bone-soft); }
.read strong, .read b { color: var(--bone); }
.read ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.read li::marker { color: var(--paint-a); }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.press-grid > * { min-width: 0; }
.facts-table th { width: 9rem; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.asset { display: grid; gap: .55rem; text-decoration: none; color: var(--bone-soft); }
.asset img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--night); border: 1px solid var(--edge); border-radius: var(--cut-s); transition: transform .3s var(--ease-snap); }
.asset.render img { object-fit: contain; padding: .8rem; background: radial-gradient(70% 80% at 50% 100%, color-mix(in srgb, var(--paint-a) 18%, transparent), transparent 70%), var(--night); }
.asset:hover img { transform: translateY(-3px); }
.asset.logo img { object-fit: contain; padding: 1.5rem; }

/* Scroll cue: anything that scrolls sideways says so */
.can-scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.scroll-hint { display: none; margin-top: .5rem; color: var(--bone-faint); }
.can-scroll + .scroll-hint, .lab .can-scroll ~ .scroll-hint { display: block; }
.can-scroll .scroll-hint { display: block; position: sticky; left: 0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1020px) {
  .nerd { grid-template-columns: 1fr 1fr; }
  .nerd .readouts { grid-column: 1 / -1; }
  .twoup, .beta, .beat { grid-template-columns: 1fr; }
  .phone { max-width: 34rem; }
  .beat:nth-child(even) .beat-art { order: 0; }
  .lab-read { grid-template-columns: auto 1fr; }
  .lab-read [data-lab-verdict] { grid-column: 1 / -1; }
  .band-lamp .zed { height: 150px; bottom: -24px; opacity: .9; }
}
@media (max-width: 900px) {
  .shelf { grid-template-columns: 1fr; }
  .credits .wrap { grid-template-columns: 1fr 1fr; }
  .credits .wrap > :first-child { grid-column: 1 / -1; }
  .band { padding-block: var(--s-5); }
  .press-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stage::after { background: linear-gradient(180deg, rgb(13 11 10 / .92) 0, rgb(13 11 10 / .6) 34%, transparent 52%), linear-gradient(0deg, var(--soil-1) 0, transparent 14%); }
  .hero { min-height: 0; padding-bottom: max(340px, 50svh); }
  .hud { grid-template-columns: 1fr; }
  .hud-fire { border-right: 0; }
  .hud-fire .btn { flex: 1 1 auto; }
  .hud .caption { padding-top: 0; }
  .nerd-toggle { border-left: 0; border-top: 1px solid var(--edge); justify-content: space-between; }
  .nerd { grid-template-columns: 1fr; }
  .nerd .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hud > * { padding: var(--s-2); }
  .range-top .btn { flex: 1 1 100%; }
  .play-now, .play-now .btn.big { width: 100%; }
  .play-now .btn.big { font-size: clamp(1.05rem, 4.6vw, 1.3rem); padding: 1.05rem .9rem 1.35rem; gap: .55rem; }
  .stamp { scale: .78; right: -10px; bottom: -8px; transform-origin: 100% 100%; }
  .range-stage { height: 230px; }
  .spine { display: none; }
  .beats { padding-left: 0; gap: var(--s-5); }
  .cast { gap: 0; padding-inline: 0; }
  .lab-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .lab-levels .data { grid-column: 1 / -1; }
  .lab-top { padding: var(--s-2); }
  .lab-stage { padding-inline: var(--s-2); }
  .quick-beta input[type="email"] { width: 100%; flex: 1 1 12rem; }
}
@media (max-width: 560px) {
  .title-toy { -webkit-text-stroke-width: 4px; }
  .tabs a { padding: .6rem .55rem; font-size: .9rem; }
  .lang a { padding: .45rem .4rem; min-width: 2.1rem; }
  /* Phones: logo and EN/FR on the first row, the tabs on one sideways-scrolling row under them. */
  .topbar .wrap { row-gap: 0; }
  .topbar .lang { order: 1; margin-left: auto; }
  .topbar .acct { order: 1; margin-left: auto; }
  .topbar .acct + .lang { margin-left: 0; }
  .acct-in { padding: .45rem .7rem .45rem .5rem; font-size: .85rem; }
  .topbar nav.tabs { order: 2; flex: 1 0 100%; margin-left: -.55rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .topbar nav.tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-enter] { opacity: 1; transform: none; }
}

/* A read column inside a wrap keeps the page's left edge */
.wrap.read { max-width: var(--max); }
.wrap.read > * { max-width: var(--measure); }
@media (max-width: 720px) {
  .scene { min-height: 230px; }
  .scene img { height: calc(var(--h, 220px) * .7); }
}

/* MSG studio brand (2026-11-12) ------------------------------------------- */
/* Hazard tape under the studio top bar: thin, the one nuclear wink on every page. */
[data-production="studio"] .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(135deg, var(--signal) 0 10px, transparent 10px 20px); opacity: .85; pointer-events: none; }
/* Expanded grotesk headline: the reactor voice. Max 6rem. */
.title-brand { margin: 0; font: 900 clamp(1.9rem, 8vw, 6rem)/.94 var(--f-brand); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.015em; color: var(--bone); text-wrap: balance; text-shadow: 0 .06em .25em rgb(0 0 0 / .6); }
.hero-title h1.title-brand { font-size: clamp(1.9rem, 8vw, 6rem); line-height: .94; }
.title-brand .line { display: block; }
.title-brand .a { color: var(--paint-a); }
.formula { margin: 0; font: 500 .74rem/1.5 var(--f-data); letter-spacing: .04em; color: var(--bone-soft); text-shadow: 0 1px 3px var(--night), 0 0 8px var(--night); }
.formula sub { font-size: .8em; vertical-align: -.25em; line-height: 0; }
.hero-title { position: relative; min-width: 0; }
.hero-title > * { min-width: 0; }
.hero-mascot { position: absolute; right: clamp(1.5rem, 6vw, 7rem); bottom: 5rem; width: 9.5rem; height: auto; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .6)); pointer-events: none; }
@media (max-width: 1100px) { .hero-mascot { display: none; } }

/* Games shelf (2026-11-18): the games sit right under the hero. Christmas vs Zombies leads in its own paint:
   ice blue night, candy red, a striped Beta stamp. */
.hero-new {
  justify-self: start; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .35rem .85rem .35rem .4rem;
  font: 700 .95rem/1.2 var(--f-text); color: var(--bone); text-decoration: none;
  background: rgb(13 11 10 / .72); border: 2px solid var(--outline); border-radius: 999px; box-shadow: 0 0 0 1px rgb(143 182 255 / .35), var(--drop);
  backdrop-filter: blur(4px); transition: transform .25s var(--ease-snap), box-shadow .2s;
}
.hero-new:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px #8fb6ff, var(--drop); }
.hero-new .tag { padding: .28rem .55rem .3rem; border-radius: 999px; font: 700 var(--t-data)/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: repeating-linear-gradient(135deg, #e8342a 0 7px, #c81e1e 7px 14px); border: 2px solid var(--outline); }
.hero-new svg { width: 1.05em; height: 1.05em; color: #8fb6ff; transition: translate .25s var(--ease-snap); }
.hero-new:hover svg { translate: 0 3px; }

.games { padding-block: var(--s-5) var(--s-6); }
.games-wrap { display: grid; gap: var(--s-3); }
.games-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); }
.games-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.games-head .lede { max-width: 44ch; color: var(--bone-soft); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.game {
  position: relative; display: grid; overflow: hidden; border: 1px solid var(--edge); border-radius: var(--cut);
  background: linear-gradient(160deg, var(--soil-4) 0 22%, var(--soil-3) 22% 64%, var(--soil-2) 64%); box-shadow: var(--drop);
}
@supports (corner-shape: bevel) { .game { corner-shape: bevel; } }
.game-shot { position: relative; display: block; overflow: hidden; background: var(--night); border-bottom: 2px solid var(--outline); }
.game-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.game:hover .game-shot img { transform: scale(1.035); }
.game-body { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-3); }
.game-body > p { color: var(--bone-soft); max-width: 48ch; margin: 0; }
.game-body .fine { margin: 0; }
.game h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; margin: 0; }
.game h3 a { text-decoration: none; color: inherit; }
.game h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.game-plates { display: flex; gap: .4rem; flex-wrap: wrap; }
.plate.hot { color: #fff; background: linear-gradient(172deg, #ff5f52 0 40%, #e8342a 40%); box-shadow: inset 0 -2px 0 #7a120c; }

.game.feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); outline: 3px solid #8fb6ff; outline-offset: -1px;
  background: radial-gradient(90% 80% at 100% 0%, rgb(61 123 255 / .22), transparent 60%), linear-gradient(160deg, #1d2333 0 30%, #161a26 30% 70%, #12151e 70%); }
.game.feature .game-shot { border-bottom: 0; border-right: 2px solid var(--outline); min-height: 100%; }
.game.feature .game-body { align-content: center; padding: var(--s-4) var(--s-4) var(--s-3); }
.game.feature h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.game.feature .btn.blood { font-size: 1.2rem; }
.stamp-beta {
  position: absolute; top: 18px; left: 18px; padding: .45rem 1rem .5rem; rotate: -6deg;
  font: 900 clamp(1.1rem, 2.4vw, 1.6rem)/1 var(--f-brand); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: repeating-linear-gradient(135deg, #e8342a 0 12px, #b71c1c 12px 24px); border: 3px solid var(--outline); border-radius: 6px;
  box-shadow: 0 0 0 3px #fff, 0 10px 18px -6px rgb(0 0 0 / .7); text-shadow: 0 2px 0 var(--outline);
}
.game-cast { display: flex; align-items: flex-end; gap: .4rem; height: 120px; margin-block: -.25rem; }
.game-cast img { height: 104px; width: auto; filter: drop-shadow(0 8px 6px rgb(0 0 0 / .55)); transform-origin: 50% 100%; transition: transform .35s var(--ease-snap); }
.game-cast img:nth-child(2) { height: 120px; }
.game.feature:hover .game-cast img { transform: translateY(-4px) rotate(-3deg); }
.game.feature:hover .game-cast img:nth-child(2) { transform: translateY(-6px) rotate(2deg); transition-delay: .05s; }
.game.feature:hover .game-cast img:nth-child(3) { transition-delay: .1s; }

.games-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s-3); }
.game.th { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.game.th .game-shot { border-bottom: 0; border-right: 2px solid var(--outline); }
.games-row .box.vote { transition: none; }
.games-row .box.vote:hover { transform: none; }

@media (max-width: 960px) {
  .game.feature, .game.th, .games-row { grid-template-columns: 1fr; }
  .game.feature .game-shot, .game.th .game-shot { border-right: 0; border-bottom: 2px solid var(--outline); aspect-ratio: 1200 / 629; }
  .game.feature .game-body { padding: var(--s-3); }
}
@media (max-width: 560px) {
  .game .actions .btn { flex: 1 1 100%; justify-content: center; }
  .stamp-beta { top: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-shot img, .game-cast img, .hero-new, .hero-new svg { transition: none; }
  .game:hover .game-shot img, .game.feature:hover .game-cast img { transform: none; }
}

/* Christmas vs Zombies game page (2026-11-18) */
.xmas-hero { padding-block: var(--s-4) var(--s-5); overflow: hidden;
  background: radial-gradient(70% 70% at 80% 10%, rgb(61 123 255 / .25), transparent 65%), radial-gradient(50% 60% at 0% 100%, rgb(232 52 42 / .14), transparent 70%), #0d1420; }
.xmas-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-4); align-items: center; }
.hero-title.xmas-copy h1.title-brand { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: .92; }
.xmas-copy h1 .line { display: block; }
.xmas-copy .lede { max-width: 34ch; }
.xmas-shot { position: relative; margin: 0; border: 3px solid var(--outline); border-radius: var(--cut); overflow: hidden; outline: 3px solid #8fb6ff; outline-offset: -1px; box-shadow: var(--drop); rotate: 1.2deg; }
.xmas-shot img { display: block; width: 100%; height: auto; }
.xmas-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.xmas-cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.xmas-cast li { display: grid; grid-template-rows: 140px auto 1fr; justify-items: center; align-content: start; gap: .3rem; padding: var(--s-2) .6rem var(--s-2); text-align: center; border: 1px solid var(--edge); border-radius: var(--cut-s);
  background: radial-gradient(70% 60% at 50% 100%, rgb(143 182 255 / .14), transparent 70%), var(--soil-2); }
.xmas-cast img { height: 130px; width: 100%; object-fit: contain; align-self: end; filter: drop-shadow(0 10px 8px rgb(0 0 0 / .6)); margin-bottom: .3rem; }
.xmas-cast b { font: 900 1.05rem/1.1 var(--f-brand); font-stretch: 112%; }
.xmas-cast span { font-size: var(--t-small); color: var(--bone-soft); line-height: 1.35; }
.xmas-end { display: grid; gap: var(--s-2); justify-items: start; }
@media (max-width: 960px) {
  .xmas-top, .xmas-steps { grid-template-columns: 1fr; }
  .xmas-shot { rotate: 0deg; }
  .xmas-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .xmas-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xmas-cast img { height: 110px; }
  .xmas-copy .btn.big, .xmas-end .btn.big { width: 100%; justify-content: center; }
}

/* Critique pass (2026-11-18): CTAs side by side on wide cards, readable fine print, no cast row on phones. */
.game.feature .actions { flex-wrap: nowrap; }
.game .fine, .xmas-copy .fine { color: var(--bone); font-size: .92rem; }
@media (max-width: 1100px) { .game.feature .actions { flex-wrap: wrap; } }
@media (max-width: 560px) { .game-cast { display: none; } }

/* Equal billing (William 2026-11-18): Christmas vs Zombies and Trench Horde side by side, same size, each in its paint. */
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: stretch; }
.games-grid .game { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.games-grid .game-shot { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 2px solid var(--outline); }
.games-grid .game-body { display: flex; flex-direction: column; padding: var(--s-3); }
.games-grid .game-body .actions { margin-top: auto; }
.games-grid .game h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.game.xmas { outline: 3px solid #8fb6ff; outline-offset: -1px;
  background: radial-gradient(90% 70% at 100% 0%, rgb(61 123 255 / .22), transparent 60%), linear-gradient(160deg, #1d2333 0 30%, #161a26 30% 70%, #12151e 70%); }
.game.th { outline: 3px solid var(--skin); outline-offset: -1px;
  background: radial-gradient(90% 70% at 100% 0%, rgb(180 238 70 / .12), transparent 60%), linear-gradient(160deg, var(--soil-4) 0 30%, var(--soil-3) 30% 70%, var(--soil-2) 70%); }
.game:hover .game-cast img { transform: translateY(-4px) rotate(-3deg); }
.game:hover .game-cast img:nth-child(2) { transform: translateY(-6px) rotate(2deg); transition-delay: .05s; }
.game:hover .game-cast img:nth-child(3) { transition-delay: .1s; }
.stamp-free { position: absolute; top: 18px; left: 18px; padding: .45rem 1rem .5rem; rotate: -6deg;
  font: 900 clamp(1.1rem, 2.4vw, 1.6rem)/1 var(--f-brand); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--outline);
  background: repeating-linear-gradient(135deg, var(--skin-lit) 0 12px, var(--skin) 12px 24px); border: 3px solid var(--outline); border-radius: 6px;
  box-shadow: 0 0 0 3px var(--bone), 0 10px 18px -6px rgb(0 0 0 / .7); }
.games-wrap > .box.vote { grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; }
.games-wrap > .box.vote header { grid-row: 1; grid-column: 1; display: grid; gap: .5rem; justify-items: start; }
.games-wrap > .box.vote [data-vote-note] { grid-row: 2; grid-column: 1; align-self: start; }
.games-wrap > .box.vote .ballot { grid-row: 1 / span 2; grid-column: 2; border-bottom: 0; border-left: 2px solid var(--outline); min-height: 0; height: 100%; }
.games-wrap > .box.vote:hover { transform: none; }
@media (max-width: 960px) {
  .games-grid, .games-wrap > .box.vote { grid-template-columns: 1fr; }
  .games-wrap > .box.vote :is(header, [data-vote-note], .ballot) { grid-column: 1; grid-row: auto; }
  .games-wrap > .box.vote .ballot { order: -1; border-left: 0; border-bottom: 2px solid var(--outline); }
}
@media (max-width: 560px) { .stamp-free { top: 12px; left: 12px; } }
@media (prefers-reduced-motion: reduce) { .game:hover .game-cast img { transform: none; } }

/* Path of the Dead pre-alpha + Last Brains Standing teaser (2026-11-18): the shelf's second row. */
.game.potd { --ember: #ff8a3d; --ember-lit: #ffb27a; --ember-deep: #7a3410; outline: 3px solid var(--ember); outline-offset: -1px;
  background: radial-gradient(90% 70% at 100% 0%, rgb(255 138 61 / .16), transparent 60%), linear-gradient(160deg, #33241a 0 30%, #271b14 30% 70%, #1d1510 70%); }
.game.potd .btn { --fill: var(--ember); --lit: var(--ember-lit); --deep: var(--ember-deep); }
.stamp-alpha, .stamp-soon { position: absolute; top: 18px; left: 18px; padding: .45rem 1rem .5rem; rotate: -6deg;
  font: 900 clamp(1.1rem, 2.4vw, 1.6rem)/1 var(--f-brand); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase;
  border: 3px solid var(--outline); border-radius: 6px; box-shadow: 0 0 0 3px var(--bone), 0 10px 18px -6px rgb(0 0 0 / .7); }
.stamp-alpha { color: var(--outline); background: repeating-linear-gradient(135deg, #ffd60a 0 12px, #e7ad3f 12px 24px); }
.plate.warn { color: var(--outline); background: repeating-linear-gradient(135deg, #ffd60a 0 8px, #f0b400 8px 16px); box-shadow: inset 0 -2px 0 #8a6c00; }

.game.lbs { outline: 3px solid #c77dff; outline-offset: -1px;
  background: radial-gradient(90% 70% at 100% 0%, rgb(199 125 255 / .16), transparent 60%), linear-gradient(160deg, #282033 0 30%, #1e1828 30% 70%, #17121f 70%); }
.lbs-board { display: grid; grid-template-rows: 1fr auto; isolation: isolate; container-type: inline-size;
  background: radial-gradient(120% 90% at 30% 10%, #2f4a3c, #1c2d25 60%, #132019); box-shadow: inset 0 0 0 7px #5a3b22, inset 0 0 0 10px var(--outline), inset 0 0 60px rgb(0 0 0 / .55); }
.lbs-board::after { content: ""; position: absolute; inset: 10px; z-index: -1; opacity: .5; pointer-events: none;
  background: radial-gradient(40% 30% at 70% 30%, rgb(255 255 255 / .06), transparent), repeating-linear-gradient(8deg, transparent 0 22px, rgb(255 255 255 / .025) 22px 24px); }
.chalk { margin: 0; padding: 16% 8% 0; display: grid; gap: .35em; justify-items: start; color: #eef3e8; text-shadow: 0 0 1px #fff, 0 0 6px rgb(238 243 232 / .35); rotate: -2deg; }
.chalk-h { font: 900 clamp(1.8rem, 10cqi, 3.4rem)/.9 var(--f-brand); font-stretch: 118%; letter-spacing: .04em; text-transform: uppercase; opacity: .92;
  text-decoration: underline wavy rgb(238 243 232 / .55); text-decoration-thickness: 3px; text-underline-offset: .18em; }
.chalk-m { font: 600 clamp(1rem, 5cqi, 1.7rem)/1 var(--f-data); color: #e9efe0; opacity: .92; }
.chalk-m b { color: #d9a8ff; font-weight: 800; }
.lbs-cast { display: flex; justify-content: flex-end; align-items: flex-end; gap: 0; padding: 0 4% 10px; margin-top: -10%; }
.lbs-cast img { height: clamp(80px, 22cqi, 150px); width: auto; margin-left: -4%; filter: drop-shadow(0 10px 8px rgb(0 0 0 / .65)); transform-origin: 50% 100%; transition: transform .35s var(--ease-snap); }
.lbs-cast img:nth-child(2) { height: clamp(76px, 20.5cqi, 140px); }
.lbs-cast img:nth-child(4) { height: clamp(72px, 19.5cqi, 132px); }
.game.lbs:hover .lbs-cast img { transform: translateY(-5px) rotate(-3deg); }
.game.lbs:hover .lbs-cast img:nth-child(even) { transform: translateY(-3px) rotate(3deg); transition-delay: .06s; }
.stamp-soon { top: 26px; left: 26px; rotate: -3deg; color: #fff; background: repeating-linear-gradient(135deg, #8f3de0 0 12px, #6a22bd 12px 24px); text-shadow: 0 2px 0 var(--outline); }
.lbs-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lbs-facts li { padding: .3rem .6rem .3rem .5rem; font: 600 .88rem/1.2 var(--f-text); color: #ecd9ff; border-left: 3px solid #c77dff; background: rgb(199 125 255 / .1); }
@media (max-width: 560px) { .stamp-alpha { top: 12px; left: 12px; } .stamp-soon { top: 18px; left: 18px; font-size: 1rem; padding: .35rem .7rem .4rem; } }
@media (prefers-reduced-motion: reduce) { .lbs-cast img { transition: none; } .game.lbs:hover .lbs-cast img { transform: none; } }
/* Narrow board (phones): the chalk climbs and the kids shrink so "brains" stays readable. */
@container (max-width: 480px) {
  .chalk { padding-top: 19%; }
  .chalk-h { font-size: 9cqi; }
  .lbs-cast { margin-top: -4%; padding-right: 7%; }
  .lbs-cast img { height: 17cqi; }
  .lbs-cast img:nth-child(2) { height: 16cqi; }
  .lbs-cast img:nth-child(4) { height: 15cqi; }
}
.game.lbs .btn.steel { --fill: #7b2fd0; --lit: #a15ef0; --deep: #3f1470; --ink: #fff; }
