/* ==========================================================================
   oosh shell — layout built from brand.css primitives (v3 "input")

   Scroll-linked pieces read CSS custom properties that shell.js writes:
     --p      0→1 progress of a card / art piece arriving in view
     --cover  0→1 how far the next card in the deck has slid over this one
     --e      0→1 the studio panel expanding to full bleed
     --sp     0→1 the studio lines sliding into place
     --lit    how many words of the studio paragraph are lit
   Every one has a sensible resting value in CSS, so no-JS and
   reduced-motion visitors get a finished, static composition.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page transitions — cross-document view transitions, where supported.
   Game titles share a name between the deck and the game page, so the
   title flies from its card into the page header.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 380ms;
  animation-timing-function: var(--ease-in-out);
}
::view-transition-group(*) {
  animation-duration: 560ms;
  animation-timing-function: var(--ease-out);
}

.brandname { text-transform: lowercase; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

/* --------------------------------------------------------------------------
   Guides — the quartered column grid, drawn faintly behind everything
   -------------------------------------------------------------------------- */
/* Behind everything via z-index: -1 over a transparent body (html paints the
   ground). Deliberately no z-index on <main>: that would make it a stacking
   context and trap the CSS-fallback fullscreen frame (z-index: 999) under
   the fixed nav. */
body { background: transparent; }
.guides {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.guides__inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
}
.guides__inner i {
  width: 1px;
  height: 100%;
  background: rgba(228, 238, 240, 0.045);
}
@media (max-width: 640px) {
  .guides__inner i:nth-child(2),
  .guides__inner i:nth-child(4) { display: none; }
}

/* --------------------------------------------------------------------------
   Nav — fixed, solid, tucks away on scroll down and returns on scroll up
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--ink-deep);
  border-bottom: 1px solid transparent;
  view-transition-name: nav;
  transition: transform 460ms var(--ease-in-out), border-color var(--settle) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-101%); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__brand { font-size: clamp(1.6rem, 4.6vw, 1.9rem); padding-block: 0.4rem; }
.nav__links {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  padding: 0.95rem 0.85rem;       /* 44px+ tap target */
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color var(--snap) var(--ease);
}
.nav__links a::before,
.nav__links a::after {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--settle) var(--ease), transform var(--settle) var(--ease);
}
.nav__links a::before { content: '['; left: 0.2rem; transform: translateX(5px); }
.nav__links a::after  { content: ']'; right: 0.2rem; transform: translateX(-5px); }
.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current] { color: var(--fg); }
.nav__links a:hover::before, .nav__links a:hover::after,
.nav__links a:focus-visible::before, .nav__links a:focus-visible::after,
.nav__links a[aria-current]::before, .nav__links a[aria-current]::after { opacity: 1; transform: none; }
.nav__clock {
  min-width: 9.5em;
  text-align: right;
  color: var(--fg-muted);
}
.nav__clock span { color: var(--fg); }
@media (max-width: 760px) {
  .nav__clock { display: none; }
  .nav__links a { padding-inline: 0.6rem; }
}

/* --------------------------------------------------------------------------
   Intro — on arrival and refresh. Covers the font load, then wipes upward.
   -------------------------------------------------------------------------- */
.intro { display: none; }
html.intro-pending .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink-deep);
  cursor: pointer;
  clip-path: inset(0 0 0 0);
  transition: clip-path 800ms var(--ease-in-out);
  /* Failsafe: if the script never arrives, get out of the way regardless */
  animation: introFailsafe 0s 5s forwards;
}
html.intro-pending .intro.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes introFailsafe { to { visibility: hidden; pointer-events: none; } }

.intro__mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: clamp(72px, 12vw, 120px);
}
.intro__sq { aspect-ratio: 1; display: block; }
.intro__sq--ice    { background: var(--oosh-ice); animation: introSq 620ms var(--ease-out) 60ms both; }
.intro__sq--orange { grid-column: 2; grid-row: 2; background: var(--oosh-orange); animation: introSq 620ms var(--ease-out) 220ms both; }
@keyframes introSq { from { transform: scale(0); } }
.intro.is-out .intro__mark { transform: translateY(-30vh); transition: transform 800ms var(--ease-in-out); }

.intro .intro__count {
  position: absolute;
  left: calc(var(--gutter) + var(--safe-l));
  bottom: calc(var(--gutter) + var(--safe-b));
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  font-weight: 900;
  font-size: clamp(4.5rem, 16vw, 13rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--oosh-ice);
  font-variant-numeric: tabular-nums;
}
.intro__label {
  position: absolute;
  right: calc(var(--gutter) + var(--safe-r));
  bottom: calc(var(--gutter) + var(--safe-b));
  max-width: 22ch;
  text-align: right;
}
.intro__label .intro__skip-fine,
.intro__label .intro__skip-touch { color: var(--fg); }
.intro__skip-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .intro__skip-fine { display: none; }
  .intro__skip-touch { display: inline; }
}
@media (max-width: 640px) {
  .intro__label { left: calc(var(--gutter) + var(--safe-l)); right: auto; top: calc(var(--gutter) + 0.5rem); bottom: auto; text-align: left; }
}

/* --------------------------------------------------------------------------
   Reveal — content arrives as it scrolls into view, every time: once it's
   well out of view it resets (no transition, so it snaps) to play again.
   Hidden states only apply once JS has flagged itself, with a failsafe if
   it never runs.
   -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js:not(.reveal-ready) [data-reveal] { animation: revealFailsafe 0s 3s forwards; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; } }

/* Split headings: each word rises out of its own mask. Transitions live on
   the .is-in state only, so when a heading scrolls well out of view and
   is reset (to replay next time) it snaps back instead of animating out. */
.split .w {
  display: inline-block;
  clip-path: inset(-0.14em -0.12em -0.16em -0.12em);
}
.split .w > span {
  display: inline-block;
  transform: translate3d(0, 115%, 0);
}
.split.is-in .w > span {
  transform: none;
  transition: transform 1050ms var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * 65ms);
}
/* The marked phrase is revealed by its own marker swipe instead */
html.js .split mark {
  background-size: 0% 100%;
  color: transparent;
}
html.js .split.is-in mark {
  background-size: 100% 100%;
  color: var(--accent-fg);
  transition: background-size 760ms var(--ease-in-out), color 200ms var(--ease);
  transition-delay: calc(var(--d, 0ms) + 260ms), calc(var(--d, 0ms) + 620ms);
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.section-head__label { color: var(--fg); }
.section-head__rule { flex: 1; height: 1px; background: var(--line-strong); }
.section-title {
  font-size: var(--fs-h2);
  font-variation-settings: 'wdth' 70, 'wght' 900;
  line-height: 0.86;
  max-width: 16ch;
  margin: 0 0 clamp(2.25rem, 6vw, 4.5rem);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding-top: var(--nav-h);
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  row-gap: clamp(0.9rem, 2.4vh, 1.75rem);
  padding-block: clamp(0.9rem, 2.6vh, 1.75rem) clamp(0.9rem, 2.4vh, 1.5rem);
}
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero__meta > span { white-space: nowrap; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
}
@media (max-width: 760px) { .hero__est { display: none; } }

.hero__field {
  position: relative;
  min-height: clamp(7rem, 26vw, 34rem);
}
.hero__copy {
  display: grid;
  gap: 1.5rem 3rem;
}
@media (min-width: 960px) {
  .hero__copy {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
  }
}
/* Two set lines ("Simple games" / "that pack a punch."), so size by the
   longer one: ~8.7em wide, full width on phones, the 7/11 column on desktop. */
.hero__title {
  font-size: clamp(2rem, 10.2vw, 6rem);
  font-variation-settings: 'wdth' 72, 'wght' 900;
  line-height: 0.92;              /* any tighter and line two's marker covers the line above */
  letter-spacing: -0.02em;
  max-width: none;
  margin: 0;
}
@media (min-width: 960px) {
  .hero__title { font-size: clamp(2.6rem, 6vw, 6rem); }
}
.hero__lede {
  font-size: var(--fs-lede);
  color: var(--fg-muted);
  max-width: 40ch;
  margin: 0 0 1.35rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.hero__hint { color: var(--accent); }
.hero__scroll-arrow { display: inline-block; margin-left: 0.35em; color: var(--fg); }

/* The dot-matrix field — full-bleed canvas, the wordmark aligned to the
   container's left edge (field.js does the maths). */
.field {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: none;               /* the reset caps canvases at 100%; this one bleeds */
  height: 100%;
  translate: -50% 0;
  touch-action: pan-y;
  cursor: crosshair;
}
.field__fallback {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: clamp(7rem, 30vw, 30rem);
  line-height: 0.74;
  pointer-events: none;
}
html.js .hero__field:not(.is-live) .field__fallback { opacity: 0; animation: fieldFailsafe 0s 2.5s forwards; }
@keyframes fieldFailsafe { to { opacity: 1; } }
.hero__field.is-live .field__fallback { display: none; }
.hero__field .reg { color: var(--line-strong); }

/* Touch screens can't hover, so nothing says the sign is alive. field.js
   adds .is-cued when it demonstrates a tap; the chip retires (.is-poked)
   the first time the visitor pops the sign themselves. */
.field__hint {
  position: absolute;
  left: 0;
  top: max(0.5rem, calc(var(--sign-top, 3rem) - 2.6rem));
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  background: var(--accent);
  color: var(--accent-fg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.field__hint i {
  position: relative;
  width: 0.95em;
  height: 0.95em;
  box-shadow: inset 0 0 0 2px currentColor;
}
.field__hint i::after { content: ''; position: absolute; inset: 32%; background: currentColor; }
@media (hover: none), (pointer: coarse) {
  .hero__field.is-interactive .field__hint { display: inline-flex; }
  .hero__field.is-cued .field__hint { opacity: 1; transform: none; }
  .hero__field.is-poked .field__hint { opacity: 0; transform: translateY(-6px); }
  /* the chip on the sign replaces the desktop hint in the foot row */
  .hero__field.is-interactive ~ .hero__foot .hero__hint { visibility: hidden; }
}

/* --------------------------------------------------------------------------
   Ticker — two scroll-driven marquees. They move only when you scroll.
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
  border-block: 1px solid var(--line);
  background: var(--ink-deep);
}
.ticker__row {
  font-size: clamp(3.4rem, 11vw, 10.5rem);
  white-space: nowrap;
  line-height: 0.92;
}
.ticker__track {
  display: inline-flex;
  will-change: transform;
}
.ticker__set { display: inline-flex; align-items: center; }
.ticker__set span {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding-inline: 0.1em;
}
.ticker__set i {
  display: inline-block;
  flex: none;
  width: 0.3em;
  height: 0.3em;
  margin-inline: 0.32em;
  background: var(--accent);
}
.ticker__row--outline { color: transparent; }
.ticker__row--outline span {
  -webkit-text-stroke: 1.5px var(--oosh-ice);
  paint-order: stroke fill;
}
.ticker__row--outline i { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }

/* --------------------------------------------------------------------------
   Lineup — the deck. Cards stick and stack like a hand being dealt.
   -------------------------------------------------------------------------- */
.lineup { padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7rem); }
.deck {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.title-card {
  --p: var(--p-poster, 1);
  --pc: clamp(0, var(--p), 1);     /* --p runs past 1 while the next card covers; some art must not */
  --card-top: calc(var(--nav-h) + 1rem + var(--i) * 14px);
  position: sticky;
  top: var(--card-top);
}
.title-card__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: min(calc(100svh - var(--nav-h) - 4.5rem), 700px);
  background: var(--card-bg);
  color: var(--card-fg);
  box-shadow: inset 0 0 0 1px var(--card-line);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover, 0) * 0.06));
  will-change: transform;
}
/* Frame drawn above the art, so full-bleed art never swallows the edge */
.title-card__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 1px var(--card-frame, var(--card-line));
  pointer-events: none;
}
/* The card underneath dims as the next one slides over it */
.title-card__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ink-deep);
  opacity: calc(var(--cover, 0) * 0.6);
  pointer-events: none;
}
.title-card:nth-child(even) .title-card__art { order: 2; }

.title-card__art {
  position: relative;
  overflow: hidden;
  background: var(--art-bg);
  min-height: 15rem;
  container-type: size;           /* art sizes itself off the panel (cqh) */
}
.title-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3.2vw, 2.75rem);
  --fg-muted: var(--card-muted);
  --line: var(--card-line);
}
.title-card__top { display: flex; align-items: center; gap: 0.6rem; }
.title-card__top .idx { color: var(--card-fg); }
.title-card__top .badge { margin-left: auto; }
.title-card__title {
  margin: auto 0 0;
  padding-top: 1.5rem;
  font-size: clamp(2.7rem, 6.6vw, 6.5rem);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  line-height: 0.84;
  letter-spacing: -0.02em;
  transition: font-variation-settings 700ms var(--ease-out);
}
.title-card__link { color: inherit; text-decoration: none; }
.title-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.title-card__link:focus-visible { outline: none; }
.title-card__link:focus-visible::after { outline: 3px solid var(--oosh-orange); outline-offset: -3px; }
.title-card__tag {
  margin: 0;
  max-width: 36ch;
  font-size: var(--fs-lede);
  color: var(--card-muted);
}
.title-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin: 0.25rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-line);
}
.title-card__facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--card-muted);
}
.title-card__facts dd {
  margin: 0.2rem 0 0;
  font-variation-settings: 'wdth' 88, 'wght' 700;
  font-weight: 700;
}
/* The CTA is a picture of a button — the whole card is the link. It must let
   taps through: the title's view-transition-name makes the title a stacking
   context, which traps the link's full-card ::after below the CTA's own
   positioned panels, so without this a tap on "Play" landed on a dead span. */
.title-card__cta { align-self: flex-start; pointer-events: none; }
.title-card:active .title-card__cta { transform: translate(1px, 1px); }

@media (hover: hover) and (pointer: fine) {
  .title-card:hover .title-card__title { font-variation-settings: 'wdth' 86, 'wght' 900; }
  .title-card:hover .title-card__cta .btn__label::before { transform: scaleX(1); }
  .title-card:hover .title-card__cta .btn__label { color: var(--btn-wipe-fg); }
  .title-card:hover .title-card__cta .btn__arrow i { transform: translateX(var(--arrow-w)); }
}

/* Per-title surfaces */
.title-card--nightgrid {
  --card-bg: var(--oosh-ink); --card-fg: var(--oosh-ice); --card-muted: var(--ice-dim);
  --card-line: var(--hair-dark); --art-bg: var(--ink-deep);
}
.title-card--coloursnap {
  --card-bg: var(--oosh-ice); --card-fg: var(--oosh-ink); --card-muted: var(--ink-80);
  --card-line: var(--hair-light); --art-bg: var(--ice-deep);
  --line-strong: rgba(22, 35, 42, 0.34); --fg: var(--oosh-ink); --bg-panel: var(--ice-white);
}
.title-card--coloursnap .btn {
  --btn-arrow-bg: var(--oosh-ink); --btn-arrow-fg: var(--oosh-ice);
  --btn-wipe: var(--oosh-ink); --btn-wipe-fg: var(--oosh-ice);
}
.title-card--peapops {
  --p-poster: 0.5;
  --card-bg: var(--oosh-teal); --card-fg: var(--oosh-ice); --card-muted: var(--ice-deep);
  --card-line: rgba(228, 238, 240, 0.2); --art-bg: #06464B;
}
.title-card--peapops .badge--beta { box-shadow: inset 0 0 0 1px var(--oosh-ice); }
.title-card--hexhold {
  --p-poster: 1;
  --card-bg: var(--oosh-ink); --card-fg: var(--oosh-ice); --card-muted: var(--ice-dim);
  --card-line: var(--hair-dark); --art-bg: var(--ink-deep);
}
.title-card--floopy {
  --p-poster: 1;
  --card-bg: #0B1A2E; --card-fg: var(--oosh-ice); --card-muted: var(--ice-dim);
  --card-line: rgba(228, 238, 240, 0.14); --art-bg: #031230;
}
.title-card--syncboard {
  --p-poster: 1;
  --card-bg: #0A3A40; --card-fg: var(--oosh-ice); --card-muted: var(--ice-deep);
  --card-line: rgba(228, 238, 240, 0.18); --art-bg: #0A1216;
}
.title-card--syncboard .badge--beta { box-shadow: inset 0 0 0 1px var(--oosh-ice); }

@media (max-width: 860px) {
  .title-card { --card-top: calc(var(--nav-h) + 0.6rem + var(--i) * 8px); }
  .title-card__inner { grid-template-columns: 1fr; min-height: 0; }
  .title-card:nth-child(even) .title-card__art { order: 0; }
  .title-card__art { aspect-ratio: 16 / 10; min-height: 0; }
  .title-card__title { padding-top: 0.5rem; }
  .title-card__body { gap: 0.85rem; }
  .title-card__tag { font-size: 1rem; }
}
/* Too short to hold a whole card on screen: stop stacking, just list */
@media (max-height: 620px) {
  .title-card { position: relative; top: 0; }
}

/* ---------------------------------------------------------------- art
   Each piece is scrubbed by the card's --p. Thresholds (--t) are set
   inline per element, so the composition is authored in the markup.     */
.art { color: var(--card-fg); }
.art .mono { color: inherit; }

/* NIGHT//GRID — a city boots up on a perspective grid */
.ng { position: absolute; inset: 0; }
.ng__city {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 44%;
  height: 38%;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.ng__city i {
  position: relative;
  flex: var(--w) 1 0;
  height: var(--h);
  background: var(--ink-raise);
  box-shadow: inset 0 1px 0 rgba(228, 238, 240, 0.14);
  transform-origin: 50% 100%;
  transform: scaleY(clamp(0, calc((var(--p) - var(--t)) * 4), 1));
}
/* Lit windows: an orange ground knocked back to a grid of 3px squares */
.ng__city i::after {
  content: '';
  position: absolute;
  inset: 8px 22% 10px;
  background:
    linear-gradient(90deg, var(--ink-raise) 4px, transparent 0) 0 0 / 7px 9px,
    linear-gradient(var(--ink-raise) 6px, transparent 0) 0 0 / 7px 9px,
    var(--oosh-orange);
  opacity: clamp(0, calc((var(--p) - var(--tw)) * 10), 1);
}
.ng__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44%;
  height: 2px;
  background: var(--oosh-orange);
}
/* The floor pivots on its near edge, so nothing is ever magnified past 1:1
   — lines stay crisp up front and thin out toward the horizon. */
.ng__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  overflow: hidden;
  perspective: 320px;
  perspective-origin: 50% 0;
}
.ng__grid {
  position: absolute;
  left: -230%;
  right: -230%;
  bottom: 0;
  height: 480%;
  color: var(--oosh-orange);
  opacity: 0.75;
  background-size: 48px 48px;
  background-position: 50% calc(var(--p) * 240px);
  transform-origin: 50% 100%;
  transform: rotateX(80deg);
  /* fade the far rows out before they converge into moiré at the horizon */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 22%, #000 62%);
          mask-image: linear-gradient(to bottom, transparent 0, transparent 22%, #000 62%);
}
.ng__hud {
  position: absolute;
  left: clamp(1rem, 2.5vw, 1.75rem);
  top: clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  gap: 0.3rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--ice-dim);
}
.ng__hud span { opacity: clamp(0, calc((var(--p) - var(--t)) * 14), 1); white-space: pre; }
/* Short art panels (phones): keep only the warning, clear of the skyline */
@container (max-height: 330px) {
  .ng__hud span:not(.ng__warn) { display: none; }
  .ng__city { height: 34%; }
}
.ng__hud b { color: var(--oosh-ice); font-weight: 700; }
.ng__hud .ng__warn, .ng__hud .ng__warn b { color: var(--oosh-orange); }

/* COLOUR SNAP — "you" converges on the target as you scroll */
.snap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.snap__swatch {
  --size: clamp(8.5rem, 21vw, 19rem);
  position: relative;
  width: var(--size);
  height: var(--size);
  display: grid;
  grid-template-rows: 1fr 1fr;
  box-shadow: 10px 10px 0 var(--oosh-ink);
}
.snap__half { padding: 0.7rem 0.8rem; }
.snap__half .mono { color: var(--oosh-ink); }
.snap__half--target { background: var(--oosh-orange); }
.snap__half--you {
  display: flex;
  align-items: flex-end;
  background: color-mix(in srgb, var(--oosh-orange) calc(28% + var(--pc) * 72%), var(--oosh-ice));
}
.snap__seam {
  position: absolute;
  left: -12px;
  right: -12px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--oosh-ink);
}
.snap__side {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2rem);
  height: var(--size, clamp(8.5rem, 21vw, 19rem));
}
.snap__side { height: clamp(8.5rem, 21vw, 19rem); }
.snap__bar {
  position: relative;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  width: clamp(1.1rem, 1.8vw, 1.6rem);
  box-shadow: 0 0 0 2px var(--oosh-ink);
}
.snap__bar i:nth-child(1) { background: var(--ice-white); }
.snap__bar i:nth-child(2) { background: color-mix(in srgb, var(--oosh-orange) 28%, var(--oosh-ice)); }
.snap__bar i:nth-child(3) { background: color-mix(in srgb, var(--oosh-orange) 60%, var(--oosh-ice)); }
.snap__bar i:nth-child(4) { background: var(--oosh-orange); }
.snap__bar i:nth-child(5) { background: color-mix(in srgb, var(--oosh-orange) 68%, var(--oosh-ink)); }
.snap__bar i:nth-child(6) { background: color-mix(in srgb, var(--oosh-orange) 36%, var(--oosh-ink)); }
.snap__bar i:nth-child(7) { background: var(--oosh-ink); }
.snap__thumb {
  position: absolute;
  left: -7px;
  right: -7px;
  height: calc(100% / 7);
  top: calc((1 + var(--pc) * 2) * 100% / 7);
  box-shadow: 0 0 0 3px var(--oosh-ink), inset 0 0 0 2px var(--ice-white);
}
.snap__readout {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
}
.snap__readout .mono { color: var(--ink-80); }
.snap__pct {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  font-weight: 900;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--oosh-ink);
  font-variant-numeric: tabular-nums;
}
.snap__pct small { font-size: 0.42em; letter-spacing: 0; }
.snap__stamp {
  align-self: flex-start;
  padding: 0.3rem 0.55rem;
  background: var(--oosh-ink);
  color: var(--oosh-ice) !important;
  opacity: clamp(0, calc((var(--pc) - 0.92) * 30), 1);
}
@media (max-width: 480px) {
  .snap__readout .mono:first-child { display: none; }
}

/* PEAPOPS — one tap, the whole board goes, exactly as the rules say */
.pp {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.8rem;
  padding: 1.25rem;
}
.pp__hud { display: flex; gap: 1.75rem; color: var(--ice-deep); }
.pp__hud b { color: var(--oosh-ice); }
.pp__board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  height: min(30rem, 62cqh);
  aspect-ratio: 5 / 6;
  padding: 3px;
  background-color: var(--oosh-ink);
  background-image:
    linear-gradient(rgba(228, 238, 240, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 238, 240, 0.06) 1px, transparent 1px);
  background-size: 20% calc(100% / 6);
  box-shadow: 0 0 0 2px var(--oosh-ink), 9px 9px 0 #04353A;
}
.pea, .pop {
  grid-column: var(--c);
  grid-row: var(--r);
  margin: 13%;
}
.pea {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;            /* game content: peas are round */
  background: var(--oosh-ice);
  box-shadow: inset 0 0 0 2px var(--oosh-ink);
  scale: clamp(0, calc((var(--t) - var(--p)) * 16), 1);
}
.pea b {
  display: block;
  width: 17%;
  aspect-ratio: 1;
  background: var(--oosh-ink);
}
.pea--o {
  --on: clamp(0, calc((var(--t1) - var(--p)) * 1000), 1);
  background: color-mix(in srgb, var(--oosh-orange) calc(var(--on) * 100%), var(--oosh-ice));
}
.pea--o b + b { width: calc(17% * var(--on)); margin-left: calc(8% * var(--on)); }
.pea--w { background: var(--ink-raise); box-shadow: inset 0 0 0 2px var(--oosh-ice); }
.pea--w::before { content: ''; width: 34%; aspect-ratio: 1; box-shadow: inset 0 0 0 2px var(--oosh-ice); }
.pea--tap { box-shadow: inset 0 0 0 2px var(--oosh-ink), 0 0 0 3px var(--oosh-orange); }
.pop {
  --since: calc(var(--p) - var(--t));
  pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--oosh-orange);
  opacity: calc(clamp(0, var(--since) * 400, 1) * clamp(0, 1 - var(--since) * 9, 1));
  scale: calc(1 + clamp(0, var(--since) * 9, 1) * 0.9);
}
.pp__status {
  padding: 0.3rem 0.6rem;
  background: var(--oosh-orange);
  color: var(--oosh-ink) !important;
  opacity: clamp(0, calc((var(--p) - 1.42) * 30), 1);
}

/* HEXHOLD — a dealt-out island under an outbreak; orange spreads from one unit
   as you scroll, and the unit is promoted civilian → soldier → tank on the way */
.hx {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1.25rem;
}
.hx__hud { display: flex; gap: 1.75rem; color: var(--ice-dim); }
.hx__hud b { color: var(--oosh-ice); }
.hx__map { width: 100%; height: 100%; max-height: 30rem; overflow: visible; }
.hx__shadow { fill: var(--oosh-teal); }
.hx__c { stroke: var(--ink-deep); stroke-width: 1.1; stroke-linejoin: round; }
.hx__c--ice   { --c: var(--oosh-ice); }
.hx__c--teal  { --c: #2A7A80; }
.hx__c--dim   { --c: var(--ice-dim); }
.hx__c--slate { --c: #4E5E66; }
.hx__c { fill: var(--c); }
.hx__c--take {
  fill: color-mix(in srgb, var(--oosh-orange) calc(clamp(0, (var(--p) - var(--t)) * 1000, 1) * 100%), var(--c));
}
.hx__rank {
  fill: var(--oosh-ice);
  opacity: calc(clamp(0, (var(--p) - var(--t0)) * 1000, 1) * clamp(0, (var(--t1) - var(--p)) * 1000, 1));
}
.hx__status {
  padding: 0.3rem 0.6rem;
  background: var(--oosh-orange);
  color: var(--oosh-ink) !important;
  opacity: clamp(0, calc((var(--p) - 0.86) * 30), 1);
}

/* FLOOPY — the deep at night: cool water runs in from the left, warm water
   from the right, motes light up, and the jellyfish rises into the gap */
.art--floopy { background: linear-gradient(180deg, #062046 0%, #031230 55%, #010612 100%); }
.fl {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1.25rem;
}
.fl__hud { position: relative; z-index: 1; display: flex; gap: 1.75rem; color: var(--ice-dim); }
.fl__hud b { color: var(--oosh-ice); }
.fl__sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl__cur {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1px 1px;
  stroke-dashoffset: calc((1 - clamp(0, (var(--p) - var(--t)) * 2.4, 1)) * 1px);
}
.fl__cur--cool { stroke: #5FA8FF; stroke-opacity: 0.55; }
.fl__cur--warm { stroke: #FF7A66; stroke-opacity: 0.55; }
.fl__motes circle { opacity: clamp(0, calc((var(--p) - var(--t)) * 8), 1); }
.fl__jelly {
  transform-box: view-box;
  transform: translateY(calc((1 - var(--pc)) * 70px));
  opacity: clamp(0, calc(var(--p) * 2.2), 1);
}
.fl__tent path { stroke: #E2B4FF; stroke-opacity: 0.5; stroke-width: 1; }
.fl__tent .fl__arm { stroke-width: 3; stroke-opacity: 0.22; }
.fl__rim { stroke: #F7DDFF; stroke-opacity: 0.6; stroke-width: 1.2; }
.fl__gonads { fill: #F3C8FF; fill-opacity: 0.18; stroke: #F3C8FF; stroke-opacity: 0.3; stroke-width: 0.8; }
.fl__status {
  position: relative;
  z-index: 1;
  grid-row: 3;
  padding: 0.3rem 0.6rem;
  background: #FF7A66;
  color: var(--oosh-ink) !important;
  opacity: clamp(0, calc((var(--p) - 0.86) * 30), 1);
}

/* SYNCBOARD — the run in perspective: the waveform walls rise near to far,
   the notes drop onto their lanes, the sun comes up and the rider drops in */
.art--syncboard { background: #0A1216; }
.sb {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1.25rem;
}
.sb__hud { position: relative; z-index: 1; display: flex; gap: 1.75rem; color: var(--ice-deep); }
.sb__hud b { color: var(--oosh-ice); }
.sb__run { position: absolute; inset: 0; width: 100%; height: 100%; }
.sb__sun { transform: translateY(calc((1 - var(--pc)) * 48px)); }
.sb__track { fill: rgba(14, 23, 28, 0.07); }
.sb__bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(clamp(0, calc((var(--p) - var(--t)) * 7), 1));
}
.sb__bar--l { fill: #FF5804; }
.sb__bar--r { fill: #36D6D0; }
.sb__beats line { stroke: #36D6D0; stroke-opacity: 0.45; stroke-width: 0.8; }
.sb__beats .sb__bar-line { stroke: var(--oosh-ice); stroke-opacity: 0.9; stroke-width: 1.4; }
.sb__lane {
  stroke: #36D6D0; stroke-width: 1.6;
  stroke-dasharray: 1px 1px;
  stroke-dashoffset: calc((1 - clamp(0, var(--p) * 3, 1)) * 1px);
}
.sb__k1 { fill: #FF5804; }
.sb__k2 { fill: var(--oosh-ink); }
.sb__kicker { opacity: clamp(0, calc((var(--p) - 0.5) * 10), 1); }
.sb__gem { stroke: var(--ink-deep); stroke-width: 0.6; opacity: clamp(0, calc((var(--p) - var(--t)) * 10), 1); }
.sb__gem--0 { fill: #FF5804; }
.sb__gem--1 { fill: var(--oosh-ice); }
.sb__gem--2 { fill: #36D6D0; }
.sb__rider {
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.62) * 4, 1)) * 60px));
}
.sb__status {
  position: relative;
  z-index: 1;
  grid-row: 3;
  padding: 0.3rem 0.6rem;
  background: var(--oosh-orange);
  color: var(--oosh-ink) !important;
  opacity: clamp(0, calc((var(--p) - 0.86) * 30), 1);
}

/* --------------------------------------------------------------------------
   Studio — the ice panel. Expands to full bleed as it arrives.
   -------------------------------------------------------------------------- */
.studio {
  position: relative;
  padding-block: clamp(5rem, 12vw, 10rem);
  overflow: clip;
  clip-path: inset(0 calc((1 - var(--e, 1)) * 5vw));
}
.studio__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: min(46%, 560px);
  height: 72%;
  color: var(--oosh-teal);
  opacity: 0.2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000 18%, transparent 68%);
          mask-image: linear-gradient(225deg, #000 18%, transparent 68%);
}
.studio .container { position: relative; }
.studio__lines {
  font-size: clamp(2.1rem, 8.4vw, 9.25rem);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  max-width: none;
  text-wrap: nowrap;
}
.studio__line {
  display: block;
  white-space: nowrap;
  translate: calc(var(--dir) * (1 - var(--sp, 1)) * 16vw) 0;
}
.studio__line:nth-child(2) { text-align: right; color: var(--oosh-teal); }
.studio__line .dot { color: var(--orange-deep); }
.studio__body { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 960px) {
  .studio__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
}
.studio__text {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.45rem, 2.9vw, 2.6rem);
  font-variation-settings: 'wdth' 88, 'wght' 650;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.studio__text .sw { opacity: clamp(0.14, calc(var(--lit, 999) - var(--wi)), 1); }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  margin: 0;
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: var(--bw) solid var(--oosh-ink);
}
.stats__item dd { margin: 0; color: var(--oosh-ink); }
.stats__item:nth-child(1) dd { color: var(--orange-deep); }

/* --------------------------------------------------------------------------
   Apps — list rows, Kodilion-style. The whole row is the link.
   -------------------------------------------------------------------------- */
.apps { padding-block: clamp(5rem, 12vw, 9rem); }
.rows {
  list-style: none;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1.25fr) minmax(0, 1fr) 7rem 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3.2vw, 2.4rem) 0.75rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  text-decoration: none;
  transition: color var(--settle) var(--ease);
}
.row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--oosh-orange);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform var(--wipe) var(--ease-in-out);
}
.row__idx { color: var(--fg-muted); }
.row__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 70, 'wght' 900;
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: font-variation-settings 700ms var(--ease-out);
}
.row__desc { color: var(--fg-muted); font-size: var(--fs-small); max-width: 44ch; }
.row__tag { justify-self: end; color: var(--fg-muted); }
.row__arrow {
  justify-self: end;
  overflow: hidden;
  width: 1.4em;
  font-size: 1.7rem;
  line-height: 1;
}
.row__arrow i {
  display: block;
  font-style: normal;
  text-shadow: -1.4em 0 0 currentColor;
  transition: transform var(--wipe) var(--ease-in-out);
}
@media (hover: hover) and (pointer: fine) {
  .row:hover { color: var(--oosh-ink); }
  .row:hover::before { transform: scaleY(1); }
  .row:hover .row__idx,
  .row:hover .row__desc,
  .row:hover .row__tag { color: var(--oosh-ink); }
  .row:hover .row__title { font-variation-settings: 'wdth' 88, 'wght' 900; }
  .row:hover .row__arrow i { transform: translateX(1.4em); }
}
.row:focus-visible { outline-offset: -3px; }
@media (max-width: 860px) {
  .row { grid-template-columns: 2rem minmax(0, 1fr) 1.6rem; gap: 0.5rem 1rem; }
  .row__desc { grid-column: 2 / -1; }
  .row__tag { display: none; }
  .row__arrow { grid-column: 3; grid-row: 1; font-size: 1.3rem; }
}

/* --------------------------------------------------------------------------
   Footer — ends on the sign: the wordmark at full width
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding-bottom: calc(1.25rem + var(--safe-b));
  overflow: hidden;
}
.footer__stripe {
  height: 12px;
  color: var(--oosh-orange);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.footer__head { margin: 0 0 1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer__list a,
.footer__text {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 84, 'wght' 800;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0;
}
.footer__list a { display: inline-block; padding-block: 0.2rem; transition: color var(--snap) var(--ease); }
.footer__list a:hover { color: var(--accent); }
.footer__text { color: var(--fg-muted); }
.footer__clock {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.footer__clock .mono { vertical-align: 0.6em; margin-left: 0.3em; }
.footer__top {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--fg);
  text-decoration: none;
}
.footer__top:hover { color: var(--accent); }
.footer__sign-wrap { margin-top: clamp(2.5rem, 7vw, 5rem); }
.footer__sign {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 70, 'wght' 900;
  font-weight: 900;
  font-size: 38vw;
  line-height: 0.74;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  white-space: nowrap;
  color: var(--oosh-ice);
  user-select: none;
  -webkit-user-select: none;
}
.footer__sign span {
  display: block;
  font-variation-settings: 'wdth' var(--sw, 70), 'wght' var(--sg, 900);
}
.footer__sign .dot { color: var(--accent); }
.footer__base {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  padding-top: 1rem;
}
/* Rule sits on the content box, like every other rule on the page */
.footer__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(var(--gutter) + var(--safe-l));
  right: calc(var(--gutter) + var(--safe-r));
  height: 1px;
  background: var(--line);
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.footer__cookie {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.footer__cookie:hover, .footer__cookie:focus-visible { color: var(--oosh-orange); }

/* --------------------------------------------------------------------------
   Cookie consent — sits above everything, gates Analytics until answered.
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--bg-panel);
  border-top: 1px solid var(--line-strong);
}
.consent[hidden] { display: none; }
.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}
.consent__text {
  margin: 0;
  max-width: 42rem;
  color: var(--fg);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.consent__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.consent__btn {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--snap) var(--ease), color var(--snap) var(--ease), border-color var(--snap) var(--ease);
}
.consent__btn--accept { background: var(--oosh-orange); color: var(--oosh-ink); border-color: var(--oosh-orange); }
.consent__btn:hover, .consent__btn:focus-visible { background: var(--oosh-orange); color: var(--oosh-ink); border-color: var(--oosh-orange); }
.consent__btn:focus-visible { outline-offset: -3px; }
@media (max-width: 560px) {
  .consent__inner { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Per-game page
   -------------------------------------------------------------------------- */
.game { padding-top: calc(var(--nav-h) + clamp(1.25rem, 3.5vw, 2.75rem)); }
.game__crumbs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
.game__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  transition: color var(--snap) var(--ease);
}
.game__back:hover { color: var(--accent); }
.game__crumbs .section-head__rule { opacity: 0.7; }

.game__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem 2rem;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.game__title {
  margin: 0;
  font-size: clamp(3.2rem, 11.5vw, 11rem);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  line-height: 0.8;
  letter-spacing: -0.025em;
}
.game__tagline {
  margin: 1rem 0 0;
  max-width: 48ch;
  font-size: var(--fs-lede);
  color: var(--fg-muted);
}
.game__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  text-align: right;
}
@media (max-width: 640px) {
  .game__head { grid-template-columns: 1fr; }
  .game__status { flex-direction: row; align-items: center; text-align: left; }
}

/* The screen: a bar, the frame, and crop marks at the corners. The hard
   shadow sits on the whole unit so bar and frame read as one object. */
.screen { position: relative; box-shadow: var(--shadow-lift); }
.screen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0 0.9rem;
  background: var(--ink-raise);
  box-shadow: inset 0 0 0 1px var(--line);
}
.screen__live { color: var(--fg); padding-block: 0.7rem; }
.screen__live::before {
  content: '';
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.6em;
  background: var(--accent);
  vertical-align: 0.02em;
}
.screen__fs {
  align-self: stretch;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--snap) var(--ease), color var(--snap) var(--ease);
}
.screen__fs:hover, .screen__fs:focus-visible { background: var(--oosh-orange); color: var(--oosh-ink); }
.screen__fs:focus-visible { outline-offset: -3px; }

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: calc(100svh - var(--nav-h) - 5.5rem);
  overflow: hidden;
  background: var(--oosh-ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.game-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 640px) {
  .screen { box-shadow: var(--shadow); }
  .game-frame {
    aspect-ratio: 3 / 4;
    max-height: calc(100dvh - var(--nav-h) - 4.5rem);
  }
}

/* The way out of fullscreen — a strip across the top of the frame, not a
   badge over a corner, so even in fullscreen it covers none of the game's
   own controls. It's a sibling of the iframe (inside .game-frame) because
   in fullscreen only the fullscreen element and its descendants render.
   Hidden until the frame fills the screen; the screen bar's button is the
   way in. */
.game-frame__exit {
  display: none;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 44px;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px))
           calc(0.9rem + env(safe-area-inset-right, 0px))
           0.55rem
           calc(0.9rem + env(safe-area-inset-left, 0px));
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink-raise);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  transition: background var(--snap) var(--ease), color var(--snap) var(--ease);
}
.game-frame__exit .mono { color: inherit; }
.game-frame__exit svg { width: 18px; height: 18px; }
.game-frame__exit:hover,
.game-frame__exit:focus-visible { background: var(--oosh-orange); color: var(--oosh-ink); }
.game-frame__exit:focus-visible { outline-offset: -3px; }

/* Filling the screen, however it got there (native or the CSS fallback):
   the frame becomes a column — the exit strip, then the game. */
.game-frame.is-filling { display: flex; flex-direction: column; }
.game-frame.is-filling .game-frame__exit { display: flex; }
.game-frame.is-filling iframe { flex: 1 1 auto; min-height: 0; height: auto; }

/* Fullscreen state: fill the real screen instead of the aspect-ratio box,
   and drop the card chrome (border/shadow read as a stray frame at 100vw).
   Separate rules on purpose: a browser that doesn't know one of these
   pseudo-classes drops every selector in a combined list. */
.game-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: unset;
  border: 0;
  box-shadow: none;
}
.game-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: unset;
  border: 0;
  box-shadow: none;
}

/* CSS-only fallback for browsers where the real Fullscreen API is missing
   or silently refuses (iOS Safari/Chrome on iPhone, notably). This can't
   hide the browser's own address bar — no web API can — but it does make
   the game fill the actual visible viewport edge to edge, same as native
   fullscreen everywhere else does. */
.game-frame--fallback-fs {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  aspect-ratio: unset;
  border: 0;
  box-shadow: none;
}
html.fs-fallback-lock, html.fs-fallback-lock body { overflow: hidden; height: 100%; }

.game__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.game__info > div { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.game__info h2 {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}
.game__info p { color: var(--fg-muted); }
@media (max-width: 860px) {
  .game__info { grid-template-columns: 1fr; }
}

/* Up next — full-bleed link to the next title in the deck */
.next {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  color: var(--fg);
  text-decoration: none;
  transition: color var(--settle) var(--ease);
}
.next::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--oosh-orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 700ms var(--ease-in-out);
}
.next__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem 1.5rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.next__label { grid-column: 1 / -1; }
.next__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  transition: font-variation-settings 800ms var(--ease-out);
}
.next__arrow {
  overflow: hidden;
  width: 1.2em;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 0.9;
}
.next__arrow i {
  display: block;
  font-style: normal;
  text-shadow: -1.2em 0 0 currentColor;
  transition: transform 700ms var(--ease-in-out);
}
@media (hover: hover) and (pointer: fine) {
  .next:hover { color: var(--oosh-ink); }
  .next:hover::before { transform: scaleX(1); }
  .next:hover .mono { color: var(--oosh-ink); }
  .next:hover .next__title { font-variation-settings: 'wdth' 92, 'wght' 900; }
  .next:hover .next__arrow i { transform: translateX(1.2em); }
}

/* --------------------------------------------------------------------------
   Reduced motion — finished compositions, nothing scrubbed or revealed
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  html.js .split mark { background-size: 100% 100%; color: var(--accent-fg); }
  .studio { clip-path: none; }
  .studio__line { translate: none; }
  .title-card__inner { transform: none; }
  .title-card__inner::after { opacity: 0; }
}
