/* RecreateAAA: an academic project page. A white ground, one grotesk, and the side-by-side replay as the proof. */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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 {
  --ground: #f8f8f9;
  --surface: #ffffff;
  --ink: #151723;
  --ink-2: #252937;
  --muted: #5d6272;
  --faint: #6a6f7f;
  --line: #e3e4e9;
  --track: #d4d7de;
  --chip: #ececef;
  --chip-hover: #e0e1e6;
  --blue: #1a5ff5;
  --blue-deep: #0d44bf;
  --tag: rgba(16, 17, 25, .74);
  --pass: #13653b;
  --pass-bg: #e3f2e9;
  --fail: #a3241a;
  --fail-bg: #fae8e5;
  --font: "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(24px, 4vw, 64px);
  --wrap: min(1680px, calc(100vw - 2 * var(--gutter)));
  /* The page is two halves on one centre axis: an original and its recreation meet on it, and so do a title and its lead.
     --pair is the seam inside a pair, --axis the space between the halves, --section the space between sections. */
  --pair: 2px;
  --axis: clamp(20px, 2.2vw, 32px);
  --section: 120px;
  --radius: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: #c5c8d0 var(--ground);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: #d8e4fe; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The logo beside the name: its ink half takes the text colour, its blue half is fixed in the symbol. */
.mark { width: 1.76em; height: 1.3em; flex: none; margin-block: -.08em; /* taller than the line it sits on, without making that line taller */ }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Navigation: one floating pill that stays with the reader. */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav__pill {
  display: flex; align-items: center; gap: 26px;
  /* 821px on a wide window, and never more than a little over half of a narrower one, so it floats over the page instead of roofing it. */
  width: min(821px, max(57.1vw, 520px), 100%); height: 51px; padding: 0 18px 0 20px;
  pointer-events: auto;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(21, 23, 35, .04), 0 8px 24px rgba(21, 23, 35, .06);
}
.nav__brand { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.012em; white-space: nowrap; }
.nav__brand:hover { color: var(--ink); text-decoration: none; }
.nav__links { display: flex; align-self: stretch; gap: 26px; }
.nav__links a { display: flex; align-items: center; }
.nav__links a, .nav__lang { color: #4c5160; font-size: 13.75px; font-weight: 500; white-space: nowrap; }
.nav__links a:hover, .nav__lang:hover { color: var(--ink); text-decoration: none; }
.nav__links a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
/* The repo: a small dark button between the section links and the language switch. */
.nav__code { display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.75px; font-weight: 500; white-space: nowrap; }
.nav__code:hover { color: #fff; text-decoration: none; opacity: .88; }
.nav__code .ico { width: 15px; height: 15px; }
.nav__lang { align-self: stretch; padding: 0 4px; border: 0; background: none; cursor: pointer; }

/* Hero: the name, the claim, then the replay at full width. */
.hero { padding-top: 104px; }
.hero__title { display: flex; align-items: center; gap: .32em; font-size: clamp(25px, 2.13vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.014em; }
.hero__statement { margin-top: 8px; font-size: clamp(40px, 4.73vw, 76px); font-weight: 700; line-height: .94; letter-spacing: -.03em; text-wrap: balance; }
:root[lang="zh-CN"] .hero__statement { line-height: 1.08; letter-spacing: .01em; }
:root[lang="zh-CN"] .section__head h2, :root[lang="zh-CN"] .hero__title { letter-spacing: 0; }

/* A frame holds one half of a side-by-side clip: its still, a canvas the clip is drawn on, and a label. */
.frame { position: relative; overflow: hidden; background: #0b0c11; }
.frame__still, .frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame canvas { opacity: 0; transition: opacity .28s var(--ease); }
.frame canvas.is-live { opacity: 1; }
.tag { position: absolute; top: 7px; left: 9px; padding: 4px 10px; border-radius: 7px; background: var(--tag); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; pointer-events: none; }
.tag--end { left: auto; right: 9px; }
.tag--sm { top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; font-size: 12px; }

.media-source { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.hero, .game { position: relative; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pair); margin-top: 34px; aspect-ratio: 1314 / 365; border-radius: var(--radius); overflow: hidden; }

/* The player bar under the replay, in two rows: play, clock, scrub and the build link, then every game by name. */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 41px; margin-top: 18px; }
.bar__play {
  display: grid; place-items: center; flex: none; width: 41px; height: 41px;
  border: 0; border-radius: 50%; background: var(--chip); color: var(--ink);
  font-size: 14px; cursor: pointer; transition: background-color .15s;
}
.bar__play:hover { background: var(--chip-hover); }
.bar__clock { flex: none; min-width: 78px; color: var(--faint); font-size: 13.9px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The names scroll sideways where a window is too narrow for all eight, and the fade at the end says there are more.
   The padding and the negative margin leave room for a focus ring inside the scroller without moving the row. */
.switch {
  position: relative; order: 5; display: flex; flex: 1 1 100%; align-items: center; min-width: 0;
  margin: -4px 0 -4px -4px; padding: 4px 28px 4px 4px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.switch::-webkit-scrollbar { display: none; }
.switch li { display: flex; flex: none; align-items: center; }
.switch li + li::before { content: "\00B7"; margin: 0 11px; color: #b6b9c3; }
.switch button { padding: 6px 0; border: 0; background: none; color: var(--faint); font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
/* The one filled control on the page: the recreation can be played, not only watched. */
.bar__link {
  display: inline-flex; align-items: center; gap: 7px; flex: none; order: 4; height: 41px; margin-left: 6px; padding: 0 18px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .15s;
}
.bar__link:hover { background: var(--blue-deep); color: #fff; text-decoration: none; }
.bar__link .ico { font-size: 15px; transition: translate .2s var(--ease); }
.bar__link:hover .ico { translate: 3px 0; }

.scrub {
  --pct: 0%;
  flex: 1 1 auto; min-width: 96px; height: 20px; margin: 0;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.scrub::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink-2) var(--pct), var(--track) var(--pct)); }
.scrub::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
.scrub::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink-2); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border: 0; border-radius: 50%; background: var(--ink-2); }
.scrub::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--ink-2); }

/* Sections share one head: the title in the left half, its one line starting on the axis.
   The negative scroll margin lands a section link on the heading, not on the space above it. */
.section { padding-top: 64px; scroll-margin-top: -50px; }
.section + .section { padding-top: var(--section); scroll-margin-top: calc(14px - var(--section)); }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--axis); }
/* The lead's last line sits on the title's baseline; browsers without last-baseline alignment get the two bottoms level. */
.section__head { align-items: end; align-items: last baseline; margin-bottom: 24px; }
.section__head h2 { font-size: clamp(30px, 2.92vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.024em; white-space: nowrap; }
.section__aside { display: flex; flex-direction: column; gap: 6px; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.steps { display: flex; flex-wrap: wrap; color: var(--ink); font-size: 15px; font-weight: 500; }
.steps li { display: flex; align-items: center; }
.steps li + li::before { content: ""; width: 18px; height: 1px; margin: 0 10px; background: #b2b6c0; }

/* Recording 2 Game: every game is the hero in small, its original on the left and its recreation on the right,
   with one caption line under the pair. Two games to a row, so the row keeps the page's axis. */
.games { row-gap: 44px; }
/* align-content keeps a short caption at the top of its card when its neighbour in the row has a longer one. */
.game { display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; column-gap: 12px; min-width: 0; container-type: inline-size; }
.game__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--pair); flex: 0 0 100%; margin-bottom: 12px; border-radius: 10px; overflow: hidden; }
.game__media .frame { aspect-ratio: 16 / 9; }
/* The workflow: the promo film's figure, recorded as a nine-second loop (dark, as in the film). */
.workflow { aspect-ratio: 16 / 9; border-radius: 14px; }
.workflow video { display: block; width: 100%; height: 100%; object-fit: cover; }
.game__media .frame + .frame .tag { left: auto; right: 6px; }
/* The pair itself is the way to the large player: one press loads the game into the hero. */
.game__open { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in; }
.game__open:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--blue); }
.game__play {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 12px; cursor: pointer; box-shadow: 0 1px 3px rgba(11, 12, 17, .25);
}
.game__play:hover { background: #fff; }
.game h3 { flex: none; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.006em; }
/* The description shares the title's line while the card has room for the longest title and a sentence;
   narrower than that, every card drops it under the title, so the captions keep one shape. */
.game p { flex: 1 1 250px; min-width: 0; color: var(--muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
@container (max-width: 463px) { .game p { flex-basis: 100%; } }
.game__link { display: inline-flex; align-items: center; flex: none; gap: 5px; margin-left: auto; /* right-aligned on the name's line */ font-size: 15px; font-weight: 500; }
.game__link .ico { transition: translate .2s var(--ease); }
.game__link:hover .ico { translate: 3px 0; }

/* Repo 2 Game: the repo and the pipeline it goes through in the left half, the game that comes out in the right. */
.repo { grid-template-rows: auto 1fr; row-gap: 32px; align-items: start; }
.repo__out { grid-column: 2; grid-row: 1 / span 2; }
.repo h3 { margin-bottom: 14px; font-size: 17px; font-weight: 600; letter-spacing: -.006em; }
.repo__card { padding: 20px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.repo__name { color: var(--ink); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.repo__name:hover { color: var(--blue); }
.repo__files { margin-top: 12px; columns: 2; column-gap: 20px; color: var(--muted); font: 400 13px/1.9 var(--mono); }
.repo__supports { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.repo__supports span { margin-right: 6px; color: var(--ink); font-weight: 600; }
.repo__steps { counter-reset: step; display: grid; gap: 12px; }
.repo__steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.repo__steps li::before {
  content: counter(step); display: grid; place-items: center; flex: none; width: 26px; height: 26px;
  border-radius: 50%; background: var(--chip); color: var(--ink);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.repo__out img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.repo__out figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Eval: Celeste's strawberry recording at the hero's size, with every judge check under it. */
.eval__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.eval__head h3 { font-size: 26px; font-weight: 600; letter-spacing: -.016em; }
.eval__head p { color: var(--muted); font-size: 16px; }
.example { margin-top: 22px; }
.example__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.example__head h4 { font-size: 19px; font-weight: 600; letter-spacing: -.008em; }
.tally { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; color: var(--ink); font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tally small { color: var(--muted); font-size: 14.5px; font-weight: 500; }

.player { min-width: 0; }
.player__screen { position: relative; aspect-ratio: 32 / 9; overflow: hidden; border-radius: var(--radius); background: #0b0c11; }
/* Wipe folds the two halves into one frame, so it keeps the height the pair had. */
.player[data-view="wipe"] .player__screen { aspect-ratio: 16 / 9; width: max(50%, min(100%, 560px)); margin-inline: auto; 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; }
/* The same label pills as the hero: original in the first corner, recreation in the far one. */
.player__tag { position: absolute; top: 8px; padding: 3px 9px; border-radius: 7px; background: var(--tag); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; pointer-events: none; }
.player__tag--a { left: 9px; }
.player__tag--b { right: 9px; }
.player[data-view="stack"] .player__tag--b { top: calc(50% + 8px); right: auto; left: 9px; }
.player__big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 64px; height: 64px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 24px; cursor: pointer; box-shadow: 0 2px 10px rgba(11, 12, 17, .3);
}
.player__big:hover { background: #fff; }
.player__msg { position: absolute; inset: auto 0 0; padding: 8px 14px; background: var(--fail); color: #fff; font-size: 14px; font-weight: 500; }
.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: #fff; }
.wipe .ico { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(11, 12, 17, .3); }
/* One bar under the screen, laid out like the hero's: play, clock, scrub, then the view. */
.player__bar { display: flex; align-items: center; gap: 14px; min-height: 41px; margin-top: 18px; }
.icon-btn { display: grid; place-items: center; flex: none; width: 41px; height: 41px; border: 0; border-radius: 50%; background: var(--chip); color: var(--ink); font-size: 14px; cursor: pointer; transition: background-color .15s; }
.icon-btn:hover { background: var(--chip-hover); }
.player__time { flex: none; color: var(--faint); font-size: 13.9px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__time b { color: var(--ink); font-weight: 600; }
.seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--chip); }
.seg button { padding: 4px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 23, 35, .12); }

/* The checks run in time order down one list and into the next; the script makes as many lists as the width holds. */
.checks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 var(--axis); align-items: start; margin-top: 20px; }
.checks ol { border-bottom: 1px solid var(--line); }
.check { border-top: 1px solid var(--line); }
.check > summary {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 14px; gap: 12px; align-items: center;
  padding: 9px 8px 9px 6px; cursor: pointer; list-style: none; border-radius: 8px;
  color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3;
}
.check > summary::-webkit-details-marker { display: none; }
.check > summary:hover { background: #f0f1f4; }
.check > summary[aria-current="true"] { background: #e9effe; }
.check > summary .ico { width: 14px; height: 14px; color: var(--faint); transition: rotate .2s var(--ease); }
.check[open] > summary .ico { rotate: 90deg; }
.check__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.check__name b { font-weight: 600; }
.check__name small { color: var(--faint); font-size: 13px; }
.check__at { color: var(--faint); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.check__why { padding: 2px 10px 14px 82px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.check__why > b { font-weight: 600; }
.checks__note { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.verdict__chip { padding: 3px 0; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.verdict__chip[data-v="pass"] { background: var(--pass-bg); color: var(--pass); }
.verdict__chip[data-v="fail"] { background: var(--fail-bg); color: var(--fail); }
.verdict__chip[data-v="unknown"] { color: var(--muted); outline: 1px dashed #a9adb8; outline-offset: -1px; }
.time-link {
  display: inline; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.time-link:hover { color: var(--blue-deep); }

/* Footer: who to write to in the left half, the notes in the right. */
.cite__authors { max-width: 100ch; margin: 0 0 10px; color: var(--ink); font-size: 16px; line-height: 1.7; }
.cite__who { white-space: nowrap; }
.cite__authors sup, .cite__affs sup { margin-left: 1px; color: var(--blue); font-size: .7em; font-weight: 600; }
.cite__affs { display: flex; flex-wrap: wrap; gap: 4px 20px; max-width: 100ch; margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cite__aff sup { margin: 0 3px 0 0; }
/* Citation: the BibTeX in a quiet card, with a copy button over its corner. */
.cite { position: relative; }
.cite__bib { margin: 0; padding: 22px 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 400 13.5px/1.6 var(--mono); white-space: pre; }
.cite__copy { position: absolute; top: 12px; right: 12px; }
.footer { margin-top: 140px; padding: 36px 0 56px; border-top: 1px solid var(--line); }
.footer .halves { row-gap: 12px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 12px 24px; grid-row: 1 / span 2; }
.footer__note { grid-column: 2; }
.footer__contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 15.5px; }
.footer__contact b { font-weight: 600; }
.footer__contact span { color: var(--muted); }
.footer__copy { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.footer__copy:hover { background: var(--chip); }
.footer__note { max-width: 72ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.copy-field { margin-top: 10px; width: 100%; max-width: 30em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: 500 14px/1.4 var(--font); }

@media (max-width: 1024px) {
  :root { --wrap: calc(100vw - 48px); }
}
/* Below this the two halves fold into one column, everywhere at once. The games keep two to a row until the
   hero stacks on a phone, so a card's frame is always half the size of the hero's and never its twin. */
@media (max-width: 860px) {
  .halves:not(.games) { grid-template-columns: minmax(0, 1fr); }
  .section__head { row-gap: 10px; }
  .repo { grid-template-rows: none; row-gap: 28px; }
  .repo__out, .footer__row, .footer__note { grid-column: auto; grid-row: auto; }
}
/* Phones: the name is already the page's first line, so the pill gives its room to the sections. */
@media (max-width: 640px) {
  :root { --wrap: calc(100vw - 32px); --section: 88px; }
  body { font-size: 16px; }
  .nav { top: 10px; }
  .nav__pill { width: 100%; height: 46px; gap: 12px; padding: 0 12px 0 18px; }
  .nav__brand { display: none; }
  .nav__links { gap: clamp(14px, 5vw, 24px); margin-right: auto; }
  .hero { padding-top: 78px; }
  .compare { grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; margin-top: 26px; }
  .compare .frame { aspect-ratio: 16 / 9; }
  .tag { font-size: 13px; padding: 3px 8px; }
  .tag--sm { top: 5px; left: 5px; padding: 1px 6px; font-size: 12px; }
  .bar { gap: 6px 12px; }
  .bar__link { order: 6; flex: 1 1 100%; justify-content: center; margin: 4px 0 0; }
  .section__aside { font-size: 16px; }
  .games { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .game__media { margin-bottom: 10px; border-radius: 8px; }
  .game__play { right: 5px; bottom: 5px; width: 26px; height: 26px; font-size: 10px; }
  .player__bar { flex-wrap: wrap; gap: 8px 12px; }
  .player__bar .scrub { order: 3; flex-basis: 100%; }
  .seg { margin-left: auto; }
  .check > summary { grid-template-columns: 58px minmax(0, 1fr) auto 14px; gap: 10px; }
  .check__why { padding-left: 8px; }
}
/* Fingers get a full-size target without the controls growing on screen. */
@media (pointer: coarse) {
  .scrub { height: 36px; }
  .switch button { min-height: 44px; }
  .game__play::after { content: ""; position: absolute; inset: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
