/* Layout: an arcade select screen on top, then plain white pages to read. One diagonal cut, four inks. */
:root {
  --p1: #D8321A;
  --p2: #1E3FD8;
  --cursor: #FFD400;
  --ink: #15132B;
  --paper: #F6F7FB;
  --pure: #FFFFFF;

  /* Tints for marks that sit on ink, and for secondary text. Inks only, never a grey. */
  --soft-on-ink: #CBCCE3;
  --soft: #45436A;
  --rule: #15132B;
  --hairline: #C9C8DC;

  --display: "Kanit", "Segoe UI Black", "Arial Black", sans-serif;
  --body: "M PLUS 2", "Segoe UI", sans-serif;
  --cond: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Chinese: Latin stays in the page's faces, Han falls through to these. */
:root[lang="zh-CN"] {
  font-synthesis: none;
  --display: "Kanit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cond: "Sofia Sans Extra Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--ink);
}
::selection { background: var(--cursor); color: var(--ink); }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--p2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--p1); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--p2); outline-offset: 2px; }
.nav :focus-visible, .stage :focus-visible, .deck :focus-visible, .roster :focus-visible,
.player :focus-visible, .finale :focus-visible,
.footer :focus-visible, .flow :focus-visible { outline-color: var(--cursor); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.wrap {
  width: 100%;
  max-width: 1768px;
  margin-inline: auto;
  padding-left: max(56px, env(safe-area-inset-left, 0px));
  padding-right: max(56px, env(safe-area-inset-right, 0px));
}

h2 { font: italic 800 56px/1.02 var(--display); letter-spacing: -.01em; text-wrap: balance; }
h3 { font: italic 800 40px/1.05 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.pitch { margin-top: 8px; font: italic 800 40px/1.05 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.pitch--small { font-size: 26px; line-height: 1.3; }
.claim { font: italic 800 31px/1.1 var(--display); letter-spacing: -.005em; text-wrap: balance; }
/* Chinese breaks between phrases, never inside one. */
.pitch span, .claim span, .cell > p span { display: inline-block; }
.note { font: 500 15px/1.5 var(--body); color: var(--soft); }

/* Navigation */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
}
.nav__row { display: flex; align-items: center; gap: 28px; min-height: 56px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font: italic 800 25px/1 var(--display); color: inherit; text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--cursor); }
.nav .brand span { visibility: hidden; }
.nav .brand.is-named span { visibility: visible; }
.brand i { display: inline-flex; flex: none; width: 30px; height: 18px; transform: skewX(-14deg); }
.brand i::before { content: ""; flex: 1; background: var(--p1); }
.brand i::after { content: ""; flex: 1; background: var(--p2); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--paper); text-decoration: none; font-size: 15px; line-height: 1.5; font-weight: 500; white-space: nowrap; padding-block: 4px; }
.nav__links a:hover { color: var(--cursor); }
.lang-btn {
  flex: none; min-width: 52px; border: 0; cursor: pointer; background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--soft-on-ink); padding: 7px 10px; font: 700 14.5px/1.3 var(--body); white-space: nowrap;
}
.lang-btn:hover { color: var(--cursor); box-shadow: inset 0 0 0 1.5px var(--cursor); }
.copy-link {
  flex: none; border: 0; cursor: pointer; background: var(--cursor); color: var(--ink);
  padding: 14px 26px; font: italic 800 24px/1.2 var(--display); white-space: nowrap;
}
.copy-link:hover { background: var(--paper); }
.copy-field { margin-top: 10px; width: 100%; max-width: 30em; padding: 6px 8px; border: 2px solid var(--ink); font: 500 14px/1.4 var(--body); }

/* Versus stage */
.stage {
  --vs-gap: 96px;
  --stage-w: 100vw;
  --pipe-w: clamp(240px, calc(var(--stage-w) * .18), 300px);
  --gutters: 112px;
  --screen-room: calc((var(--stage-w) - var(--gutters) - var(--pipe-w)) / 2);
  --width-cap: min(var(--screen-room), 720px);
  /* The room left under the nav, deck and roster decides the screen size in short windows. */
  --height-fit: max(340px, calc((100vh - 430px) * 1.72));
  --screen-w: min(var(--width-cap), var(--height-fit));
  /* Capped or short, the screens hug the panel; the title and the list keep to their outer edges. */
  --screen-inset: calc(var(--screen-room) - var(--screen-w));
  --intro-cap: min(calc((var(--stage-w) - 208px) / 2), 780px);
  --intro-w: min(var(--intro-cap), var(--height-fit));
  /* Short windows shrink the title toward the middle; the cut stays clear of it. */
  --cut: min(57%, calc(50% + var(--vs-gap) / 2 + var(--intro-w) - 360px));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--p2);
  color: var(--pure);
  padding: 14px 0 20px;
}
.stage::before, .stage::after { content: ""; position: absolute; inset: 0; z-index: -1; }
/* 100vw counts a classic scrollbar; the stage's own width does not. */
@supports (width: 1cqw) { .stage { container-type: inline-size; --stage-w: 100cqw; } }
.stage::before { background: var(--p1); clip-path: polygon(0 0, var(--cut) 0, calc(100% - var(--cut)) 100%, 0 100%); }
.stage::after { background: var(--pure); clip-path: polygon(var(--cut) 0, calc(var(--cut) + .5%) 0, calc(100% - var(--cut) + .5%) 100%, calc(100% - var(--cut)) 100%); }
.stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pipe-w) minmax(0, 1fr);
  align-items: center;
  padding-left: max(56px, env(safe-area-inset-left, 0px));
  padding-right: max(56px, env(safe-area-inset-right, 0px));
}
.intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--vs-gap) minmax(0, 1fr);
  align-items: start;
  margin-block: 4px 10px;
}
.intro__what { grid-column: 1; justify-self: start; width: var(--intro-w); margin-left: var(--screen-inset); }
.intro h1 { font: italic 900 calc(var(--intro-w) * .125) / 1 var(--display); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.intro__tag { margin-top: 2px; font: italic 800 calc(var(--intro-w) * .057) / 1.1 var(--display); letter-spacing: -.005em; }
.intro__line { margin-top: 8px; font: 700 17px/1.35 var(--body); }
.intro__for { grid-column: 3; justify-self: end; display: grid; gap: 2px; margin: 8px var(--screen-inset) 0 0; text-align: right; }
.intro__for a { color: var(--pure); font: italic 800 calc(var(--intro-w) * .048) / 1.25 var(--display); text-decoration: none; white-space: nowrap; }
.intro__for a:hover { color: var(--cursor); }
.tag { display: flex; width: var(--screen-w); }
.tag b { font: italic 900 calc(var(--screen-w) * .1) / 1.1 var(--display); letter-spacing: -.005em; }
.tag--a { grid-column: 1; justify-self: end; justify-content: flex-end; }
.tag--a b { margin-right: calc(var(--screen-w) * .012); }
.tag--b { grid-column: 3; justify-self: start; }
.tag--b b { margin-left: calc(var(--screen-w) * .012); }
.stage__to {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: center;
  z-index: 2;
  margin-bottom: -6px;
  font: italic 900 calc(var(--screen-w) * .17) / .9 var(--display);
  color: var(--pure);
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  pointer-events: none;
}
/* The pipeline between the two screens: what goes in, the steps, what comes out. */
.pipe { position: relative; grid-column: 2; grid-row: 3; align-self: stretch; display: flex; margin-inline: 44px; padding: 10px 16px; background: var(--ink); }
.pipe__in, .pipe__out { position: absolute; top: 50%; rotate: 90deg; margin-top: -15px; color: var(--pure); font-size: 30px; }
.pipe__in { left: -37px; }
.pipe__out { right: -37px; }
.pipe__steps { flex: 1; display: grid; align-content: space-evenly; }
.pipe__steps li { display: flex; align-items: center; gap: 12px; color: var(--pure); font: italic 800 clamp(16px, calc(var(--screen-w) * .042), 24px) / 1.1 var(--display); white-space: nowrap; }
.screen { position: relative; width: var(--screen-w); aspect-ratio: 16 / 9; border: 5px solid var(--pure); background: var(--ink); overflow: hidden; }
.screen--a { grid-column: 1; justify-self: end; }
.screen--b { grid-column: 3; justify-self: start; }
.screen__repo { position: absolute; inset: 0; display: grid; align-content: center; gap: 4%; padding: 5%; background: var(--ink); color: var(--paper); font: 500 max(12px, calc(var(--screen-w) * .03)) / 1.55 ui-monospace, Consolas, monospace; }
.screen__repo-name { color: var(--pure); font: italic 800 calc(var(--screen-w) * .06) / 1.1 var(--display); }
.screen__repo ul { columns: 2; column-gap: 4%; }
.screen__still, .screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__source, .cell__source { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

/* The one authored moment: selecting a game slams it into the stage. */
.stage.is-slam .stage__to { animation: slam-to .46s var(--ease) both; }
.stage.is-slam .screen--a, .stage.is-slam .tag--a { animation: slam-a .46s var(--ease) both; }
.stage.is-slam .screen--b, .stage.is-slam .tag--b { animation: slam-b .46s var(--ease) both; }
@keyframes slam-to { from { scale: 1.7; } to { scale: 1; } }
@keyframes slam-a { from { translate: -44px 0; } to { translate: 0 0; } }
@keyframes slam-b { from { translate: 44px 0; } to { translate: 0 0; } }

/* Key deck */
.deck { position: relative; background: var(--ink); color: var(--paper); }
.deck__row { display: flex; align-items: center; gap: 18px; min-height: 60px; padding-top: 12px; padding-bottom: 12px; }
.play-btn {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--cursor); color: var(--ink); font-size: 18px;
}
.play-btn:hover { background: var(--paper); }
.deck__label { font: 800 21px/1.2 var(--cond); letter-spacing: .04em; white-space: nowrap; }
.tokens { flex: 1; min-width: 0; overflow: hidden; }
.tokens__strip { display: flex; align-items: center; gap: 4px; width: max-content; transition: transform .12s linear; }
.tok {
  min-width: 28px; height: 30px; padding: 0 6px; flex: none; display: grid; place-items: center;
  color: var(--soft-on-ink);
  font: 700 15px/1 var(--body);
}
.tok .ico { font-size: 16px; }
.tok--on { background: var(--cursor); color: var(--ink); }
.tok--gap { width: 14px; flex: none; }
.seek {
  --pct: 0%;
  display: block; position: absolute; left: 0; right: 0; bottom: -3px; z-index: 1;
  width: 100%; height: 8px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.seek::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--cursor) var(--pct), var(--soft) var(--pct)); }
.seek::-moz-range-track { height: 3px; background: var(--soft); }
.seek::-moz-range-progress { height: 3px; background: var(--cursor); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; background: var(--cursor); border: 0; }
.seek::-moz-range-thumb { width: 10px; height: 10px; background: var(--cursor); border: 0; border-radius: 0; }

/* Roster: one row of tiles, grouped by task */
.roster { background: var(--ink); color: var(--paper); padding: 10px 0 22px; border-top: 2px solid var(--soft); }
.roster__grid { display: grid; grid-template-columns: minmax(0, 1fr) calc((100% - 48px) / 5); gap: 12px; }
.task { min-width: 0; }
.task__name { font: italic 800 26px/1.15 var(--display); color: var(--cursor); white-space: nowrap; }
.kbd { display: inline-grid; flex: none; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border: 1.5px solid currentColor; font: 700 13px/1 var(--body); }
.tiles { display: grid; gap: 12px; margin-top: 8px; }
.tiles--video { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; padding: 0; border: 0; text-align: left; background: var(--paper); color: var(--ink); cursor: pointer; }
.tile img { width: 100%; height: 100%; min-height: 54px; object-fit: cover; }
.tile__name { padding-right: 10px; font: 800 15.5px/1.25 var(--body); }
.tile:hover { outline: 3px solid var(--cursor); }
.tile:focus-visible { outline: 6px solid var(--cursor); outline-offset: 0; }
.tile[aria-pressed="true"] { outline: 6px solid var(--cursor); }

/* Reading pages */
.page { padding: 88px 0; }
.page--flush { padding-top: 0; }

/* Game sheets */
.sheet { margin-top: 40px; scroll-margin-top: 72px; }
.sheet + .sheet { margin-top: 72px; }
.sheet__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.sheet__head p { font: 700 17px/1.4 var(--body); }
.sheet__head select {
  align-self: center; margin-left: auto; min-width: 0; max-width: 100%; padding: 8px 36px 8px 12px; border: 2px solid var(--rule); border-radius: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; color: var(--ink); font: 800 14.5px/1.3 var(--body);
  background: var(--pure) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315132B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 18px;
}

/* Celeste's judge results */
.tally { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 12px; font: 800 16.5px/1.4 var(--body); font-variant-numeric: tabular-nums; }
.tally small { color: var(--soft); font: 500 15px/1.4 var(--body); }
.verdicts { margin-top: 6px; }
.verdicts > summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--p2); font: 700 15px/1.4 var(--body); list-style: none; }
.verdicts > summary::-webkit-details-marker { display: none; }
.verdicts > summary:hover { color: var(--p1); }
.verdicts[open] > summary .ico { rotate: 90deg; }
.verdicts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 10px; }
.verdicts__note { grid-column: 1 / -1; padding-bottom: 10px; color: var(--soft); font: 500 14.5px/1.45 var(--body); }
.verdict { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 2px 10px; padding: 11px 0; border-top: 1.5px solid var(--hairline); font: 500 14.5px/1.45 var(--body); }
.verdict__chip { align-self: start; padding: 3px 0; text-align: center; font: 800 15px/1.1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.verdict__chip[data-v="pass"] { background: var(--p2); color: var(--pure); }
.verdict__chip[data-v="fail"] { background: var(--p1); color: var(--pure); }
.verdict__chip[data-v="unknown"] { background: var(--pure); color: var(--ink); outline: 2px dashed var(--ink); outline-offset: -2px; }
.verdict__head { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.verdict__head b { font-weight: 800; }
.verdict__head span { font-size: 13px; color: var(--soft); }
.verdict__body { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.time-link {
  display: inline; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--p2); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px;
}
.time-link:hover { background: var(--cursor); color: var(--ink); }
.eval { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px 40px; align-items: center; margin-top: 32px; }

/* The eval example: the recording beside the judge's checks, with the current check in yellow */
.example { margin-top: 28px; }
.example__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin-bottom: 12px; }
.example__head h4 { font: italic 800 26px/1.15 var(--display); letter-spacing: -.005em; }
.example__head .tally { margin-top: 0; }
.example__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px 32px; align-items: start; }
/* Every reason shares one cell, so the block keeps the height of the longest and the page stays still during playback. */
.example__why { display: grid; margin-top: 10px; font: 500 15px/1.5 var(--body); }
.example__why p { grid-area: 1 / 1; visibility: hidden; }
.example__why p[data-now] { visibility: visible; }
.example__why b { font-weight: 800; }
.checks { border-bottom: 1.5px solid var(--hairline); }
.check {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%;
  padding: 6px 10px 6px 6px; border: 0; border-top: 1.5px solid var(--hairline); background: none; cursor: pointer;
  color: var(--ink); font: 800 15.5px/1.3 var(--body); text-align: left;
}
.check b { font-weight: inherit; }
.check:hover b { color: var(--p2); }
.check .verdict__chip { align-self: center; }
.check__at { color: var(--soft); font: 800 18px/1 var(--cond); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.check[aria-current="true"] { background: var(--cursor); }
.check[aria-current="true"] b, .check[aria-current="true"] .check__at { color: var(--ink); }

/* More games: 1P and 2P side by side, two games to a row, so it can keep growing */
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.cell { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 4px; min-width: 0; scroll-margin-top: 72px; }
.cell h4, .cell > p { grid-column: 1 / -1; }
.cell h4 { padding-block: 4px 2px; font: italic 800 26px/1.15 var(--display); letter-spacing: -.005em; white-space: nowrap; }
.cell figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.cell img, .cell canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell figcaption { position: absolute; left: 0; top: 0; padding: 2px 7px; color: var(--pure); font: italic 800 14px/1.2 var(--display); }
.cell figure:nth-of-type(1) figcaption { background: var(--p1); }
.cell figure:nth-of-type(2) figcaption { background: var(--p2); }
.cell > p { margin-top: 4px; font: 700 15.5px/1.4 var(--body); }
.cell__play { position: absolute; right: 6px; bottom: 6px; }

/* Repo 2 Game */
.flow { display: grid; grid-template-columns: minmax(0, 4fr) auto minmax(0, 3fr) auto minmax(0, 5fr); gap: 20px; margin-top: 24px; padding: 20px 24px 24px; background: var(--ink); color: var(--paper); }
.flow > div { display: flex; flex-direction: column; min-width: 0; }
.flow h3 { margin-bottom: 12px; font-size: 31px; line-height: 1.15; color: var(--pure); }
.flow__arrow { align-self: center; margin-top: 44px; color: var(--pure); font-size: 44px; }
.flow__arrow .ico { rotate: 90deg; }
.flow__in { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.flow__card { padding: 12px 14px; border: 1.5px solid var(--soft); font: 500 13.5px/1.5 ui-monospace, Consolas, monospace; }
.flow__repo { display: block; margin-bottom: 6px; color: var(--pure); font: italic 800 19px/1.15 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.flow__repo:hover { color: var(--cursor); }
.flow__label { padding-block: 16px 6px; font: 800 19px/1.2 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.engines { display: flex; flex-wrap: wrap; gap: 6px; }
.engines li { padding: 3px 9px; border: 1.5px solid var(--soft-on-ink); font: 700 15px/1.3 var(--body); }
.flow__steps { flex: 1; display: grid; align-content: center; gap: 22px; }
.flow__steps li { display: flex; align-items: center; gap: 12px; color: var(--pure); font: italic 800 23px/1.1 var(--display); white-space: nowrap; }
.flow__shot { width: 100%; }
.flow-claim { margin-top: 24px; }
.repo-eval { margin-top: 56px; }
.labs { margin-top: 56px; scroll-margin-top: 72px; }

/* Close */
.finale { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0; background: var(--p2); color: var(--pure); }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--p1); clip-path: polygon(0 0, 57% 0, 43% 100%, 0 100%); }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pure); clip-path: polygon(57% 0, 57.5% 0, 43.5% 100%, 43% 100%); }
.finale__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.finale h2 { font-size: 80px; line-height: 1; font-weight: 900; }

.footer { padding: 28px 0; background: var(--ink); color: var(--soft-on-ink); font: 500 14.5px/1.5 var(--body); }
.footer .brand { color: var(--paper); font-size: 21px; margin-bottom: 8px; }
.footer p:last-child { max-width: 86ch; }

/* Compare player */
.player { min-width: 0; overflow: hidden; background: var(--ink); color: var(--paper); }
.player__labels { display: grid; grid-template-columns: 1fr 1fr; font: 800 14px/1.3 var(--body); }
.player__labels span { padding: 7px 12px; color: var(--pure); }
.player__labels span:first-child { background: var(--p1); }
.player__labels span:last-child { background: var(--p2); }
.player[data-view="wipe"] .player__labels span:last-child { text-align: right; }
.player[data-view="stack"] .player__labels { display: none; }
.player__screen { position: relative; aspect-ratio: 32 / 9; overflow: hidden; background: var(--ink); }
.player[data-view="wipe"] .player__screen { aspect-ratio: 16 / 9; cursor: ew-resize; touch-action: pan-y; }
.player[data-view="stack"] .player__screen { aspect-ratio: 8 / 9; }
.player video, .player canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.player[data-view="split"] video { cursor: pointer; }
.player:not([data-view="split"]) video { opacity: 0; pointer-events: none; }
.player__tag { display: none; position: absolute; left: 0; padding: 3px 9px; color: var(--pure); font: 800 12.5px/1.3 var(--body); pointer-events: none; }
.player__tag--a { top: 0; background: var(--p1); }
.player__tag--b { top: 50%; background: var(--p2); }
.player[data-view="stack"] .player__tag { display: block; }
.player__big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 68px; height: 68px; border: 0; cursor: pointer;
  background: var(--cursor); color: var(--ink); font-size: 30px;
}
.player__big:hover { background: var(--paper); }
.player__msg { position: absolute; inset: auto 0 0; padding: 8px 14px; background: var(--p1); color: var(--pure); font: 700 14px/1.4 var(--body); }
.wipe { position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px; padding: 0; border: 0; background: transparent; cursor: ew-resize; touch-action: none; }
.wipe::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--pure); }
.wipe .ico { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 36px; height: 36px; padding: 7px; background: var(--cursor); color: var(--ink); }
.player .seek { position: static; height: 16px; }
.player__bar { display: flex; align-items: center; gap: 12px; padding: 2px 12px 12px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; cursor: pointer; background: #2A2850; color: var(--paper); font-size: 16px; }
.icon-btn:hover { background: var(--soft); }
.icon-btn--play { background: var(--cursor); color: var(--ink); }
.icon-btn--play:hover { background: var(--paper); }
.player__time { font: 800 19px/1 var(--cond); letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--soft-on-ink); }
.player__time b { color: var(--paper); font-weight: 800; }
.player__spacer { flex: 1 1 auto; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #2A2850; }
.seg button { padding: 4px 9px; border: 0; background: transparent; cursor: pointer; color: var(--soft-on-ink); font: 700 13.5px/1.3 var(--body); white-space: nowrap; }
.seg button:hover { color: var(--pure); }
.seg button[aria-pressed="true"] { background: var(--cursor); color: var(--ink); }

@media (max-width: 1240px) {
  .example__grid { grid-template-columns: minmax(0, 1fr); }
  .checks { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 24px; }
}
@media (max-width: 1180px) {
  .wrap, .stage__grid { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .stage { --vs-gap: 64px; --gutters: 64px; --pipe-w: 190px; --intro-cap: calc((var(--stage-w) - 128px) / 2); }
  .pipe { margin-inline: 30px; padding: 6px 10px; }
  .pipe__in { left: -27px; font-size: 24px; margin-top: -12px; }
  .pipe__out { right: -27px; font-size: 24px; margin-top: -12px; }
  .pipe__steps li { gap: 8px; font-size: 15px; }
  .pipe .kbd { min-width: 22px; height: 22px; padding: 0 4px; font-size: 12px; }
  .flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .flow__arrow--out { grid-column: 1 / -1; justify-self: center; margin-top: 0; font-size: 36px; }
  .flow__arrow--out .ico { rotate: 180deg; }
  .flow__out { grid-column: 1 / -1; justify-self: center; width: min(100%, 680px); }
  .intro__line { font-size: 15px; }
  .roster__grid { grid-template-columns: minmax(0, 1fr) minmax(max-content, calc((100% - 48px) / 5)); }
  .task__name { font-size: 22px; }
  .cell h4 { font-size: 22px; }
  .verdicts__list { grid-template-columns: minmax(0, 1fr); }
  .finale h2 { font-size: 64px; }
  h2 { font-size: 46px; }
  .tile { grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
  .tile__name { padding-right: 6px; font-size: 14.5px; }
}
@media (max-width: 820px) {
  .wrap, .stage__grid { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body { font-size: 16.5px; }
  .brand { font-size: 21px; }
  .nav__row { gap: 14px; }
  .nav__links { display: none; }
  .lang-btn { margin-left: auto; }
  .stage { --screen-w: min(calc(100vw - 32px), 640px); --intro-w: var(--screen-w); }
  .stage::before { clip-path: polygon(0 0, 100% 0, 100% 44%, 0 56%); }
  .stage::after { clip-path: polygon(100% 44%, 100% 45%, 0 57%, 0 56%); }
  .stage__grid { display: flex; flex-direction: column; align-items: center; }
  .intro { order: -1; display: block; width: var(--screen-w); margin-block: 2px 12px; }
  .intro__what, .intro__for { justify-self: auto; width: auto; margin-inline: 0; }
  .intro h1 { font-size: calc(var(--screen-w) * .118); }
  .intro__tag { font-size: calc(var(--screen-w) * .06); }
  .intro__line { margin-top: 6px; }
  .intro__for { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; text-align: left; }
  .intro__for a { font-size: 17px; }
  .tag { position: relative; z-index: 1; align-self: flex-start; align-items: center; gap: 6px; width: 96px; height: auto; margin-left: calc((100% - var(--screen-w)) / 2); margin-bottom: -27px; padding: 3px 8px; }
  .tag b { margin: 0; font-size: 17px; }
  .screen__repo { padding-top: 34px; }
  .tag--a { background: var(--p1); }
  .tag--b { order: 4; background: var(--p2); }
  .screen--a { order: 1; }
  .stage__to { order: 2; align-self: center; margin-block: -30px -18px; font-size: 76px; -webkit-text-stroke-width: 7px; }
  .pipe { order: 3; align-self: center; width: var(--screen-w); margin: 0 0 8px; padding: 20px 8px 10px; }
  .pipe__in, .pipe__out { display: none; }
  .pipe__steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .pipe__steps li { flex-direction: column; gap: 4px; font-size: clamp(14px, 4.3vw, 16px); }
  .pipe .kbd { min-width: 26px; height: 26px; font-size: 13px; }
  .screen--b { order: 5; }
  .deck__row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; align-items: center; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .play-btn { grid-row: 1 / span 2; }
  .deck__label { font-size: 16px; }
  .tokens { grid-column: 2; }
  .deck__row:has(.play-btn[hidden]) { display: block; }
  .roster__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tiles, .tiles--video { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page { padding: 56px 0; }
  .page--flush { padding-top: 0; }
  h2 { font-size: 40px; }
  h3 { font-size: 32px; }
  .pitch { font-size: 30px; }
  .pitch--small { font-size: 22px; }
  .claim { font-size: 26px; }
  .sheet + .sheet { margin-top: 48px; }
  .sheet__head select { flex: 1 1 100%; margin-left: 0; }
  .finale__grid, .eval { grid-template-columns: minmax(0, 1fr); }
  .example__head h4 { font-size: 22px; }
  .checks { display: block; }
  .check { padding-block: 10px; }
  .matrix { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cell__play { width: 30px; height: 30px; right: 4px; bottom: 4px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px 16px; }
  .flow__arrow { justify-self: center; margin-top: 0; font-size: 36px; }
  .flow__steps { gap: 12px; }
  .flow__arrow .ico { rotate: 180deg; }
  .finale::before { clip-path: polygon(0 0, 100% 0, 100% 27%, 0 45%); }
  .finale::after { clip-path: polygon(100% 27%, 100% 28%, 0 46%, 0 45%); }
  .finale__grid { gap: 76px; }
  .finale h2 { font-size: 56px; }
  .copy-link { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
