/* Mind vs Model
   Look: a letterpress fight bill, pasted up on a wall of old bills.

   Three inks on cream stock. Red is always the human's corner, blue is always the machine's,
   and mustard is the spotlight: anything that says "look here" or "press this".
   Black wood type does the shouting. Nothing is quite in register, because nothing printed
   this way ever was.

   Type:  League Gothic   tall condensed headlines and labels
          Ultra           fat slab for numerals and knockout words
          Yellowtail      sign-painter's script, used sparingly
          Besley          a Clarendon for reading
          Special Elite   typewriter, for fine print and for anything the machine says
   The font files live in /fonts (see scripts/fonts.js). */

@font-face { font-family: "League Gothic"; src: url("/fonts/league-gothic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Ultra"; src: url("/fonts/ultra.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url("/fonts/yellowtail.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("/fonts/besley-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("/fonts/special-elite.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* stock */
  --paper: #e8dabb;      /* the wall of old bills everything is pasted on */
  --sheet: #f4ead2;      /* a fresher sheet pasted on top */
  --white: #fbf4e2;      /* the cleanest stock: boxes to write in, game boards */
  --shade: #dccba5;      /* a printed tint */
  /* inks */
  --ink: #1d1a16;
  --ink-2: #4b4337;
  --ink-3: #7c715f;
  --rule: #cdbd98;
  --rule-2: #a59575;
  --red: #cf3520;
  --red-deep: #a5270f;   /* the same red, dark enough for small type */
  --red-soft: #f0cbbb;
  --red-lite: #f2664c;   /* red that reads on black */
  --blue: #214d9e;
  --blue-soft: #cdd8ee;
  --blue-lite: #86acec;  /* blue that reads on black */
  --gold: #efb92d;
  --gold-soft: #f6e2a4;
  --good: #2a6b3f;
  --good-soft: #d2e5d0;
  --on-ink: #fff8e8;     /* type reversed out of a solid colour */

  /* The names the components use. */
  --human: var(--red);
  --human-deep: var(--red-deep);
  --human-soft: var(--red-soft);
  --on-human: var(--on-ink);
  --model: var(--blue);
  --model-soft: var(--blue-soft);
  --stamp: var(--red);
  --stamp-soft: var(--red-soft);
  --mark: var(--gold);
  --mark-soft: var(--gold-soft);
  --bad: var(--red-deep);
  --pict-human: var(--red);
  --pict-model: var(--blue);

  --gothic: "League Gothic", "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --fat: "Ultra", "Rockwell Extra Bold", "Cooper Black", Georgia, serif;
  --script: "Yellowtail", "Brush Script MT", "Segoe Script", cursive;
  --serif: "Besley", "Clarendon", Georgia, "Times New Roman", serif;
  --type: "Special Elite", "Courier New", Courier, monospace;
  --display: var(--gothic);

  --wrap: 1160px;
  /* A sheet lying on the wall: a tight contact shadow and a soft one where it lifts. */
  --lift: 0 1px 1px rgba(46, 30, 8, 0.3), 0 9px 14px -9px rgba(46, 30, 8, 0.6);
  --lift-big: 0 2px 2px rgba(46, 30, 8, 0.3), 0 22px 30px -18px rgba(46, 30, 8, 0.7);
  --star: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  --burst: polygon(50% 0%, 58.9% 11%, 71.7% 5%, 74.9% 18.7%, 89.1% 18.8%, 86% 32.6%, 98.7% 38.9%, 90% 50%, 98.7% 61.1%, 86% 67.4%, 89.1% 81.2%, 74.9% 81.3%, 71.7% 95%, 58.9% 89%, 50% 100%, 41.1% 89%, 28.3% 95%, 25.1% 81.3%, 10.9% 81.2%, 14% 67.4%, 1.3% 61.1%, 10% 50%, 1.3% 38.9%, 14% 32.6%, 10.9% 18.8%, 25.1% 18.7%, 28.3% 5%, 41.1% 11%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

/* The display faces come in one weight each. Without this the browser smears them bolder. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-synthesis: none; overflow-x: clip; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  /* Sheets are pasted at a slight angle; nothing may push the page wider than the screen. */
  overflow-x: hidden;
  overflow-x: clip;
  background-color: var(--paper);
  color: var(--ink);
  font: 400 1.05rem/1.62 var(--serif);
  -webkit-font-smoothing: antialiased;
}
/* The stock itself: fibres and blotches lie over everything printed on it, and scroll with it. */
body::before {
  content: "";
  position: absolute; inset: 0; z-index: 70; pointer-events: none;
  background-image: url("/img/grain.svg"), url("/img/mottle.svg");
  background-size: 360px 360px, 900px 900px;
  opacity: 0.58;
}
/* The light falls off toward the edges of the wall. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 71; pointer-events: none;
  background: radial-gradient(ellipse 115% 95% at 50% 42%, transparent 58%, rgba(60, 38, 6, 0.2) 100%);
}

.ink-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ht-ink { fill: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-family: var(--gothic); font-weight: 400; line-height: 0.95; letter-spacing: 0.012em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.8rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); text-decoration-thickness: 2.5px; }
strong, b { font-weight: 800; }
code, kbd { font-family: var(--type); font-size: 0.86em; background: var(--white); border: 1.5px solid var(--ink); border-radius: 2px; padding: 0.12em 0.4em 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band-ink :focus-visible, .site-footer :focus-visible, .scorebar :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.human { color: var(--red-deep); }
.model { color: var(--blue); }
.gold { color: var(--red-deep); }
.mono { font-family: var(--type); font-variant-numeric: tabular-nums; }
.script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.row-between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.boot { padding: 30vh 1rem; text-align: center; font: 400 2.2rem/1 var(--gothic); letter-spacing: 0.16em; text-transform: uppercase; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--sheet); padding: 0.6rem 1rem 0.5rem; font: 400 1.1rem var(--gothic); letter-spacing: 0.1em; text-transform: uppercase; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- printer's ornaments ---------- */

.star { display: inline-block; width: 0.8em; height: 0.8em; background: currentColor; clip-path: var(--star); }
.stars { display: inline-flex; gap: 0.3em; align-items: center; }

.burst { display: block; overflow: visible; }
.badge { position: relative; display: inline-grid; place-items: center; width: 5rem; aspect-ratio: 1; }
.badge .burst { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--gold); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; animation: spin 46s linear infinite; }
.badge-words { position: relative; font: 400 1.5rem/0.95 var(--fat); text-transform: uppercase; text-align: center; }

.tape-strip { position: absolute; z-index: 4; width: 96px; height: 30px; background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%, rgba(120, 84, 10, 0.12)), rgba(226, 200, 120, 0.8); box-shadow: 0 1px 2px rgba(46, 30, 8, 0.4); clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 12%, 98% 96%, 95% 100%, 4% 96%, 0 88%); pointer-events: none; }

/* The drawings: black key lines over flat colour plates. */
.art-line { fill: none; stroke: var(--ink); stroke-width: 4.2; stroke-linejoin: round; stroke-linecap: round; }
.art-thin { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.art-brow { fill: none; stroke: var(--ink); stroke-width: 5.4; stroke-linecap: round; }
.art-needle { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; }
.art-shine { fill: none; stroke: var(--white); stroke-width: 3.6; stroke-linecap: round; opacity: 0.85; }
.art-teeth { fill: none; stroke: var(--white); stroke-width: 2.6; }
.art-ink { fill: var(--ink); }
.art-paper, .art-skin { fill: var(--white); }
.art-plaster { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.art-red { fill: var(--red); }
.art-blue { fill: var(--blue); }
.art-yellow { fill: var(--gold); }
.art-tone { fill: url(#ht-ink); opacity: 0.55; }
.boxer, .bell, .glove-mark { display: block; overflow: visible; }
.boxer.is-head { overflow: hidden; }
.halftone { display: block; fill: var(--gold); }
.art-glove { transform-box: fill-box; transform-origin: 50% 70%; }

/* ---------- buttons: blocks of wood type, with a face and a side ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.62rem 1.2rem 0.48rem;
  border: 2.5px solid var(--ink); border-radius: 4px;
  background: var(--sheet); color: var(--ink);
  font: 400 1.32rem/1 var(--gothic); letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 4px 0 var(--ink), 0 9px 9px -4px rgba(46, 30, 8, 0.5);
  cursor: pointer; user-select: none;
  transition: transform 0.07s ease, box-shadow 0.07s ease, background-color 0.12s ease;
}
.btn:hover { background: var(--gold-soft); color: var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink), 0 1px 2px rgba(46, 30, 8, 0.4); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: var(--on-ink); }
.btn-primary:hover { background: #df4128; color: #fff; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #f8cb4e; }
.btn-ghost { background: transparent; box-shadow: 0 2px 0 var(--ink); }
.btn-ghost:active { transform: translateY(2px); box-shadow: none; }
.btn-danger { background: transparent; border-color: var(--red-deep); color: var(--red-deep); box-shadow: 0 2px 0 var(--red-deep); }
.btn-danger:hover { background: var(--red); border-color: var(--ink); color: var(--on-ink); }
.btn-danger:active { transform: translateY(2px); box-shadow: none; }
.btn-lg { padding: 0.82rem 1.7rem 0.66rem; font-size: 1.8rem; box-shadow: 0 6px 0 var(--ink), 0 13px 12px -5px rgba(46, 30, 8, 0.5); }
.btn-lg:active { transform: translateY(6px); }
.btn-sm { padding: 0.36rem 0.72rem 0.26rem; font-size: 1.06rem; border-width: 2px; box-shadow: 0 2px 0 var(--ink); }
.btn-sm:active { transform: translateY(2px); box-shadow: none; }
.btn-block { width: 100%; }
.btn kbd { font-size: 0.5em; letter-spacing: 0; border-color: currentColor; background: transparent; color: inherit; opacity: 0.8; }
.btn .glove-mark { width: 1.05em; height: 1.05em; margin: -0.2em 0 -0.08em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.icon-btn { background: none; border: 0; color: var(--ink); font: 400 2rem/1 var(--gothic); padding: 0 0.5rem; cursor: pointer; }
.icon-btn:hover { background: var(--gold); }

/* ---------- small parts ---------- */

.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.24rem 0.55rem 0.1rem; border: 1.5px solid var(--ink); border-radius: 2px;
  color: var(--ink); background: transparent;
  font: 400 0.95rem/1.2 var(--gothic); letter-spacing: 0.11em; text-transform: uppercase; white-space: nowrap;
}
.tag-human { background: var(--red); border-color: var(--red); color: var(--on-ink); }
.tag-model { background: var(--blue); border-color: var(--blue); color: var(--on-ink); }
.tag-gold { background: var(--gold); }
.tag-win { background: var(--good); border-color: var(--good); color: var(--on-ink); }
.tag-lose { border-color: var(--red-deep); color: var(--red-deep); }

/* A card is a sheet of fresher paper pasted on the wall. */
.card { position: relative; background: var(--sheet); border-radius: 2px; padding: 1.4rem; box-shadow: inset 0 0 0 1px rgba(46, 30, 8, 0.14), var(--lift); }
.card-tight { padding: 1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; font: 400 1.15rem/1.2 var(--gothic); letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-deep); }
.eyebrow::before, .eyebrow::after { content: ""; flex: none; width: 0.75em; height: 0.75em; background: currentColor; clip-path: var(--star); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

.notice { position: relative; border-left: 10px solid var(--ink); padding: 0.8rem 1rem 0.75rem; background: var(--sheet); box-shadow: inset 0 0 0 1px rgba(46, 30, 8, 0.14), var(--lift); }
.notice-good { border-left-color: var(--good); }
.notice-bad { border-left-color: var(--red); }
.notice-model { border-left-color: var(--blue); }
.notice > :first-child { margin-top: 0; }

.spinner { width: 1em; height: 1em; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }

/* ---------- forms: typed on the dotted line ---------- */

.field { display: block; }
.field-wrap { display: block; }
.field + .field { margin-top: 1rem; }
.field-label { display: block; font: 400 1.05rem/1.2 var(--gothic); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.3rem; }
.field-hint { display: block; color: var(--ink-2); font-size: 0.88rem; margin-top: 0.35rem; }
.input, .select, .textarea {
  width: 100%; padding: 0.62rem 0.8rem 0.48rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: 2px;
  color: var(--ink); font: 400 1.05rem/1.4 var(--type);
  box-shadow: inset 0 3px 0 rgba(46, 30, 8, 0.1);
}
.input::placeholder { color: var(--rule-2); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--ink); outline-offset: 2px; background: #fffaf0; }
.input-row { display: flex; gap: 0.5rem; }
.input-row > .input { flex: 1; min-width: 0; }
.form-error { color: var(--red-deep); font-weight: 800; margin-top: 0.75rem; }
.form-error:empty { display: none; }
.seg { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 4px; background: var(--white); overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.seg button { border: 0; background: transparent; color: var(--ink); padding: 0.48rem 0.95rem 0.34rem; cursor: pointer; font: 400 1.18rem/1 var(--gothic); letter-spacing: 0.09em; text-transform: uppercase; }
.seg button:hover { background: var(--gold-soft); }
.seg button + button { border-left: 2.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }

/* "Or", between two ways of doing the same thing: a short double rule either side, as a bill sets it. */
.or-rule { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.3rem; color: var(--ink-2); font: 400 1.1rem/1 var(--gothic); letter-spacing: 0.24em; text-transform: uppercase; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 7px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* Continue with Google: the same block of wood type, on the cleanest stock, with Google's own
   mark stuck on like a label. The mark keeps Google's colours and its white ground. */
.btn-google { background: var(--white); font-size: 1.55rem; }
.btn-google:hover { background: var(--gold-soft); }
.g-mark { flex: none; width: 1.5em; height: 1.5em; margin: -0.24em 0 -0.12em; padding: 0.24em; background: #fff; border: 2px solid var(--ink); border-radius: 2px; transform: rotate(-3deg); }
.g-red { fill: #ea4335; }
.g-blue { fill: #4285f4; }
.g-yellow { fill: #fbbc05; }
.g-green { fill: #34a853; }

/* ---------- masthead and footer ---------- */

.demo-bar { position: relative; z-index: 31; background: var(--gold); color: var(--ink); font: 400 0.82rem/1.5 var(--type); text-align: center; padding: 0.5rem 1rem 0.32rem; border-bottom: 2.5px solid var(--ink); }
.demo-bar a { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 5px solid var(--ink); box-shadow: 0 3px 0 var(--paper), 0 5px 0 var(--ink), 0 16px 16px -14px rgba(46, 30, 8, 0.55); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.34rem; padding-top: 0.14em; text-decoration: none; font: 400 2.45rem/0.9 var(--gothic); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.brand-h { color: var(--red); }
.brand-m { color: var(--blue); }
.brand-vs { display: inline-grid; place-items: center; width: 2.25em; height: 2.25em; margin-top: -0.14em; padding-top: 0.12em; background: var(--ink); color: var(--gold); clip-path: var(--burst); font: 400 0.34em/1 var(--fat); letter-spacing: 0; transform: rotate(-12deg); transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.brand:hover .brand-vs { transform: rotate(348deg); }
.nav { display: flex; gap: 0.2rem; margin-left: auto; }
.nav a { padding: 0.5rem 0.72rem 0.36rem; color: var(--ink); text-decoration: none; font: 400 1.32rem/1 var(--gothic); letter-spacing: 0.1em; text-transform: uppercase; }
.nav a:hover { background: var(--gold); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--sheet); transform: rotate(-1.6deg); }
.header-user { display: flex; align-items: center; gap: 0.7rem; }
/* Your credits, as a ticket stub. */
.credit-chip {
  display: inline-flex; align-items: baseline; gap: 0.38rem; padding: 0.42rem 0.95rem 0.26rem;
  background: var(--gold); color: var(--ink); text-decoration: none; font: 400 1.02rem/1 var(--type);
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 6px at 0 50%, #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
}
.credit-chip::after { content: "credits"; font: 400 0.92rem/1 var(--gothic); letter-spacing: 0.12em; text-transform: uppercase; }
.credit-chip:hover { color: var(--ink); background: #f8cb4e; }

/* A band is a strip of coloured paper torn off and pasted right across the wall. */
.band { --band: var(--ink); position: relative; margin-top: 5.5rem; padding: 3.2rem 0 3.6rem; background-color: var(--band); }
.band::before, .band::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 30px; pointer-events: none;
  background-color: var(--band);
  -webkit-mask: url("/img/tear.svg") 0 0 / 1200px 30px repeat-x;
  mask: url("/img/tear.svg") 0 0 / 1200px 30px repeat-x;
}
.band::before, .site-footer::before { bottom: calc(100% - 1px); }
.band::after { top: calc(100% - 1px); transform: scaleY(-1); -webkit-mask-position: 430px 0; mask-position: 430px 0; }
.band-ink { --band: var(--ink); color: var(--sheet); }
.band-ink .muted { color: #cbbd9d; }
.band-ink .human { color: var(--red-lite); }
.band-ink .model { color: var(--blue-lite); }
.band-gold { --band: var(--gold); }

.site-footer { --band: var(--ink); position: relative; z-index: 2; margin-top: 5rem; padding: 2rem 0 3rem; background: var(--ink); color: #cbbd9d; font: 400 0.84rem/1.6 var(--type); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; justify-content: space-between; align-items: baseline; }
.site-footer a { color: var(--sheet); }
.site-footer a:hover { color: var(--gold); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-bills { flex: 1 0 100%; margin: 0 0 0.2rem; color: var(--sheet); font: 400 1.5rem/1 var(--gothic); letter-spacing: 0.3em; text-transform: uppercase; }
.footer-bills .stars { color: var(--gold); margin: 0 0.5em; font-size: 0.7em; }

/* The footer sits at the bottom of the wall even when the page is short. */
#app { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; min-height: 60vh; }
.page { padding: 2.6rem 0 1rem; }
.page-head { position: relative; margin-bottom: 2.4rem; padding-bottom: 1.2rem; border-bottom: 5px solid var(--ink); }
.page-head::after, .section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; border-bottom: 2px solid currentColor; }
.page-head h1 { font-size: clamp(3.2rem, 8vw, 5.8rem); line-height: 0.9; filter: url(#press-soft); }
.page-head .lede { margin-top: 0.7rem; }
.page-head.center .lede { margin-inline: auto; }
.kicker { display: inline-block; margin: 0 0 -0.05rem 0.15rem; font: 400 2.2rem/1 var(--script); color: var(--red); transform: rotate(-4deg); transform-origin: 0 100%; }
.section { padding: 4.2rem 0 0; }
.section-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.6rem 2rem; margin-bottom: 1.9rem; padding-bottom: 0.7rem; border-bottom: 5px solid currentColor; }
.section-head p { margin: 0; max-width: 56ch; }

/* A heading set the way a bill sets them: centred between rules, with a line of script under it. */
.bill-head { margin-bottom: 2.2rem; text-align: center; }
.bill-head h2 { display: flex; align-items: center; gap: 1.3rem; font-size: clamp(2.8rem, 6.6vw, 4.8rem); line-height: 0.9; filter: url(#press-soft); }
.bill-head h2::before, .bill-head h2::after { content: ""; flex: 1; min-width: 1rem; height: 11px; border-top: 5px solid currentColor; border-bottom: 2px solid currentColor; }
.bill-head .script { display: inline-block; margin: -0.1rem 0 0; font-size: 2.1rem; line-height: 1; color: var(--red); transform: rotate(-3deg); }

/* ---------- ringside sponsors: boxed notices, as in a fight programme ---------- */

.sponsors { padding: 2.8rem 0 0; }
.sponsors-label { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.sponsors-label span { background: var(--ink); color: var(--sheet); padding: 0.36rem 0.85rem 0.22rem; font: 400 1.15rem/1 var(--gothic); letter-spacing: 0.22em; text-transform: uppercase; transform: rotate(-1.2deg); }
.sponsors-label::after { content: ""; flex: 1; height: 9px; border-top: 4px solid var(--ink); border-bottom: 1.5px solid var(--ink); order: 1; }
.sponsors-label a { order: 2; font: 400 1.1rem/1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; color: var(--red-deep); }
.sponsor-grid { display: grid; gap: 0.95rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.sponsor-card {
  position: relative; display: flex; align-items: center; gap: 0.8rem; min-height: 80px;
  padding: 0.85rem 1rem; background: var(--sheet); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 2.5px var(--ink), inset 0 0 0 5.5px var(--sheet), inset 0 0 0 6.5px var(--ink), var(--lift);
  transition: transform 0.14s ease;
}
a.sponsor-card:hover { color: var(--ink); transform: rotate(-1deg) translateY(-3px); }
.sponsor-logo, .sponsor-initial { flex: none; width: 46px; height: 46px; object-fit: contain; background: #fff; }
.sponsor-initial { display: grid; place-items: center; padding-top: 0.1em; background: var(--red); color: var(--on-ink); font: 400 1.5rem/1 var(--fat); text-transform: uppercase; }
.sponsor-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sponsor-text strong { font: 400 1.5rem/1 var(--gothic); letter-spacing: 0.03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-text span { color: var(--ink-2); font-size: 0.86rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; }
/* An empty slot: this space for rent. */
.sponsor-empty { box-shadow: none; border: 2px dashed var(--ink-3); background: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(46, 30, 8, 0.05) 9px 18px); }
.sponsor-empty .sponsor-initial { background: transparent; border: 2px dashed var(--ink-3); color: var(--red-deep); }
.sponsor-empty strong { color: var(--ink-2); white-space: normal; }
.sponsor-empty .sponsor-text span { color: var(--red-deep); font: 400 0.8rem/1.3 var(--type); }
.sponsor-held { opacity: 0.6; }
.sponsors.is-home-hidden { display: none; }

/* ---------- home: the poster ---------- */

.hero { position: relative; padding: 2.8rem 0 1.6rem; }
/* Rays of light behind the bill. */
.hero::before {
  content: ""; position: absolute; inset: -6rem 0 -4rem; pointer-events: none;
  background: repeating-conic-gradient(from 3deg at 74% 50%, rgba(120, 78, 12, 0.085) 0 5deg, transparent 5deg 10deg);
  -webkit-mask: radial-gradient(ellipse 52% 72% at 74% 50%, #000 12%, transparent 72%);
  mask: radial-gradient(ellipse 52% 72% at 74% 50%, #000 12%, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 3.4rem; align-items: center; }
.hero-copy { min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0; padding: 0.44rem 0.95rem 0.28rem; background: var(--ink); color: var(--sheet); font: 400 1.2rem/1 var(--gothic); letter-spacing: 0.22em; text-transform: uppercase; transform: rotate(-1deg); }
.hero-kicker .stars { color: var(--gold); font-size: 0.8em; }

/* The headline is three lines of type, each set to the full measure. */
.hero-title { position: relative; margin: 1.5rem 0 1rem; text-transform: none; line-height: 1; letter-spacing: 0; }
.fit-line { display: block; width: max-content; white-space: nowrap; }
.hero-title .is-script { position: relative; z-index: 1; margin: 0 0 -0.2em 0.04em; font: 400 5rem/1 var(--script); color: var(--red); transform: rotate(-5deg); transform-origin: 0 100%; text-shadow: 2px 2px 0 var(--paper), -2px 2px 0 var(--paper), 2px -2px 0 var(--paper), -2px -2px 0 var(--paper); }
.hero-title .is-giant { font: 400 clamp(6rem, 15vw, 12.5rem)/0.84 var(--gothic); letter-spacing: 0.004em; text-transform: uppercase; filter: url(#press); }
.hero-title .is-fat { margin-top: 0.1em; font: 400 clamp(2rem, 4.4vw, 3.5rem)/1.08 var(--fat); letter-spacing: -0.005em; text-transform: uppercase; color: var(--blue); text-shadow: 3px 3px 0 var(--gold); }
.hero-rule { height: 11px; margin: 1.3rem 0 1.2rem; border-top: 5px solid var(--ink); border-bottom: 2px solid var(--ink); }
.hero .lede { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.1rem; margin: 1.6rem 0 1.3rem; }
.hero-note { display: flex; gap: 0.5rem; align-items: baseline; color: var(--ink-2); font: 400 0.84rem/1.5 var(--type); }
.hero-note::before { content: "✓"; color: var(--good); font-family: var(--serif); font-weight: 800; }

/* A rubber stamp, thumped on at an angle. */
.stamp { display: block; overflow: visible; color: var(--red); filter: url(#press); }
.stamp circle { fill: none; stroke: currentColor; }
.stamp text { fill: currentColor; font-family: var(--gothic); text-transform: uppercase; }
.stamp-ring { font-size: 15.5px; letter-spacing: 0.2em; }
.stamp-big { font-family: var(--fat); font-size: 40px; }
.stamp-small { font-size: 15px; letter-spacing: 0.22em; }
.card-bill > .card-stamp { position: absolute; right: -2.4rem; bottom: -3.6rem; width: 8.8rem; opacity: 0.88; transform: rotate(-13deg); pointer-events: none; }

/* The bill itself: a real sheet, taped over an older one. */
.bill-wrap { position: relative; justify-self: center; width: min(100%, 520px); transform: rotate(1.5deg); }
.bill-wrap::before { content: ""; position: absolute; inset: 14px -15px -17px 12px; background: var(--red); box-shadow: var(--lift); transform: rotate(-3.6deg); }
.bill-wrap > .tape-strip.is-left { top: -13px; left: 28px; transform: rotate(-6deg); }
.bill-wrap > .tape-strip.is-right { top: -11px; right: 30px; transform: rotate(5deg); }
.bill { position: relative; padding: 1.5rem 1.35rem 1.2rem; background: var(--sheet); box-shadow: var(--lift-big); }
.bill::before { content: ""; position: absolute; inset: 8px; border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 3px var(--sheet), inset 0 0 0 4px var(--ink); pointer-events: none; }
.bill > * { position: relative; }
.bill-presents { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0 0 0.45rem; font: 400 1rem/1 var(--gothic); letter-spacing: 0.3em; text-transform: uppercase; }
.bill-presents .stars { color: var(--red); font-size: 0.8em; }
.bill-bar { margin: 0 0.35rem; padding: 0.5rem 0.5rem 0.3rem; background: var(--ink); color: var(--gold); text-align: center; font: 400 1.65rem/1 var(--fat); letter-spacing: 0.1em; text-transform: uppercase; filter: url(#press-soft); }
.bill-fighters { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0.9rem 0.35rem 0; }
.bill-corner { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.fighter { position: relative; display: block; width: 100%; aspect-ratio: 240 / 232; }
.fighter .halftone { position: absolute; left: 3%; top: -2%; width: 94%; }
.fighter .boxer { position: absolute; left: 4%; bottom: 0; width: 92%; height: auto; }
.bill-corner.is-human .fighter { transform: rotate(-2.5deg) translateX(5%); transform-origin: 50% 100%; }
.bill-corner.is-model .fighter { transform: rotate(2.5deg) translateX(-5%); transform-origin: 50% 100%; }
.bill-name { position: relative; z-index: 2; align-self: stretch; margin: -3px 0 0; padding: 0.13em 0 0; text-align: center; color: var(--on-ink); font: 400 4.7rem/0.92 var(--gothic); letter-spacing: 0.03em; text-transform: uppercase; filter: url(#press-soft); }
.bill-corner.is-human .bill-name { background: var(--red); margin-right: 2px; }
.bill-corner.is-model .bill-name { background: var(--blue); margin-left: 2px; }
.bill-nick { margin-top: 0.42rem; font: 400 1.42rem/1 var(--script); color: var(--ink); transform: rotate(-3deg); }
.vs-badge { position: absolute; left: 50%; top: 40%; z-index: 3; width: 5.4rem; margin: -2.7rem 0 0 -2.7rem; }
.vs-badge .badge-words { font-size: 1.75rem; padding-top: 0.12em; }
.bill-rule { display: flex; align-items: center; gap: 0.7rem; margin: 1.05rem 0.35rem 0.15rem; font: 400 1.08rem/1 var(--gothic); letter-spacing: 0.28em; text-transform: uppercase; }
.bill-rule::before, .bill-rule::after { content: ""; flex: 1; height: 6px; border-top: 2.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.tape-rows { margin: 0 0.35rem; }
.tape-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: center; padding: 0.36rem 0.15rem 0.3rem; border-top: 1px dotted var(--ink-3); }
.tape-row:first-child { border-top: 0; }
.tape-row dt { grid-column: 2; grid-row: 1; min-width: 6.6rem; max-width: 8rem; text-align: center; font: 400 0.98rem/1.1 var(--gothic); letter-spacing: 0.15em; text-transform: uppercase; }
.tape-row dd { margin: 0; font-size: 0.88rem; line-height: 1.25; }
.tape-row dd:first-of-type { grid-column: 1; grid-row: 1; text-align: right; }
.tape-row dd:last-of-type { grid-column: 3; grid-row: 1; }
.tape-score { margin-top: 0.4rem; padding: 0.5rem 0.7rem 0.3rem; border: 0; background: var(--ink); color: var(--sheet); }
.tape-score dt { color: var(--gold); }
.tape-score dd { font: 400 2.2rem/1 var(--fat); font-variant-numeric: tabular-nums; }
.tape-score dd:first-of-type { color: var(--red-lite); }
.tape-score dd:last-of-type { color: var(--blue-lite); }
.bill-foot { margin: 0.75rem 0 0; text-align: center; font: 400 0.74rem/1.4 var(--type); color: var(--ink-2); }

/* How the fight goes: three rounds, printed straight on the wall. */
.rounds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.round { position: relative; padding: 0.3rem 2rem 0.4rem; }
.round:first-child { padding-left: 0.2rem; }
.round + .round { border-left: 2.5px solid var(--ink); }
.round-no { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.7rem; }
.round-no small { font: 400 1.3rem/1 var(--gothic); letter-spacing: 0.32em; text-transform: uppercase; }
.round-no b { font: 400 6.6rem/0.78 var(--fat); color: var(--red); text-shadow: 4px 4px 0 var(--ink); }
.round:nth-child(2) .round-no b { color: var(--gold); }
.round:nth-child(3) .round-no b { color: var(--blue); }
.round h3 { font-size: 2.3rem; margin-bottom: 0.45rem; }
.round p { color: var(--ink-2); }

/* The fight card: every event listed as a bout, the way a bill lists them. */
.card-bill { position: relative; padding: 2.4rem 2.6rem 1.7rem; background: var(--sheet); box-shadow: var(--lift-big); transform: rotate(-0.35deg); }
.card-bill::before { content: ""; position: absolute; inset: 9px; border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 3px var(--sheet), inset 0 0 0 4px var(--ink); pointer-events: none; }
.card-bill > * { position: relative; }
.card-bill > .tape-strip { position: absolute; top: -14px; }
.card-bill > .tape-strip.is-left { left: 8%; transform: rotate(-4deg); }
.card-bill > .tape-strip.is-right { right: 8%; transform: rotate(3deg); }
.card-bill .bill-head { margin-bottom: 0.9rem; }
.card-note { max-width: 54ch; margin: 0 auto 1.5rem; text-align: center; color: var(--ink-2); }
.bouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; background: linear-gradient(var(--ink), var(--ink)) 50% 0 / 2px 100% no-repeat; }
.bouts li { border-top: 2px solid var(--ink); }
.bouts li:nth-child(-n+2) { border-top-width: 5px; }
/* An odd number of bouts: the last one stands alone under both columns, centred, the way a bill closes. */
.bouts li:last-child:nth-child(odd) { grid-column: 1 / -1; background: var(--sheet); }
.bouts li:last-child:nth-child(odd) .bout { width: calc(50% - 1.5rem); margin-inline: auto; }
.bout { display: grid; grid-template-columns: 2.5rem 58px minmax(0, 1fr); gap: 0.95rem; align-items: center; height: 100%; padding: 0.9rem 0.6rem 0.85rem 0.25rem; color: var(--ink); text-decoration: none; transition: background-color 0.12s ease; }
.bout:hover { background: var(--gold-soft); color: var(--ink); }
.bout:hover .pict { transform: rotate(-8deg) scale(1.06); }
.bout-no { text-align: center; font: 400 2.1rem/1 var(--fat); }
.bout-skill { display: block; font: 400 0.98rem/1 var(--gothic); letter-spacing: 0.17em; text-transform: uppercase; color: var(--red-deep); }
.bout h3 { margin: 0.14rem 0 0.1rem; font-size: 2.15rem; }
.bout-line { display: block; font-size: 0.92rem; font-style: italic; line-height: 1.35; color: var(--ink-2); }
.bout-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.card-foot { margin: 1.1rem 0 0; text-align: center; font: 400 0.76rem/1.4 var(--type); color: var(--ink-2); }

/* An event's pictogram: a printer's cut, with its second colour a little off. */
.pict { width: 56px; height: 56px; flex: none; padding: 8px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--ink); box-shadow: 4px 3px 0 var(--gold); color: var(--ink); transition: transform 0.16s ease; }
.event-top { display: flex; align-items: center; gap: 0.9rem; }

/* Three ways in: three tickets. */
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.7rem; filter: drop-shadow(0 8px 5px rgba(46, 30, 8, 0.34)); }
.ticket {
  --stub: 5.2rem;
  position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr); min-height: 15.5rem; background: var(--sheet);
  -webkit-mask: radial-gradient(circle 11px at var(--stub) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at var(--stub) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at var(--stub) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at var(--stub) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
  transition: transform 0.18s ease;
}
.ticket:nth-child(1) { transform: rotate(-1.4deg); }
.ticket:nth-child(2) { transform: rotate(1deg) translateY(8px); }
.ticket:nth-child(3) { transform: rotate(-0.6deg); }
.ticket:hover { transform: rotate(0deg) translateY(-6px); }
.ticket-stub { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.9rem 0; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--ink); color: var(--on-ink); }
.ticket-stub small { font: 400 0.98rem/1 var(--gothic); letter-spacing: 0.36em; text-transform: uppercase; opacity: 0.9; }
.ticket-stub b { font: 400 1.75rem/1 var(--fat); letter-spacing: 0.05em; text-transform: uppercase; }
.ticket.is-own .ticket-stub { background: var(--blue); }
.ticket.is-house .ticket-stub { background: var(--red); }
.ticket-body { position: relative; display: flex; flex-direction: column; gap: 0.45rem; padding: 1.3rem 1.3rem 1.25rem 1.45rem; border-left: 2.5px dashed var(--ink); }
.ticket-body .price { font: 400 1.05rem/1 var(--gothic); letter-spacing: 0.17em; text-transform: uppercase; color: var(--red-deep); }
.ticket-body h3 { font-size: 2.2rem; }
.ticket-body p { flex: 1; margin: 0; font-size: 0.98rem; color: var(--ink-2); }
.ticket-body a { align-self: flex-start; font: 400 1.25rem/1 var(--gothic); letter-spacing: 0.1em; text-transform: uppercase; }
.ticket-no { position: absolute; right: 0.95rem; bottom: 1.15rem; font: 400 0.72rem/1 var(--type); color: var(--ink-3); }

/* The same card where it is used as a plain sheet (the models page). */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.way { border-top: 12px solid var(--ink); }
.way.is-own { border-top-color: var(--blue); }
.way.is-house { border-top-color: var(--red); }
.way.is-bot { border-top-color: var(--gold); }
.way h3 { margin-bottom: 0.5rem; }
.way p { color: var(--ink-2); }
.way .price { display: block; margin-bottom: 0.6rem; font: 400 1.05rem/1 var(--gothic); letter-spacing: 0.17em; text-transform: uppercase; color: var(--red-deep); }

/* The running score: the arena's scoreboard, lights and all. */
.scoreband .wrap::before { content: ""; display: block; height: 14px; margin: -0.6rem 0 2.2rem; background: radial-gradient(circle, #ffe9a6 0 2px, var(--gold) 2.5px 4.5px, transparent 5.5px) 0 0 / 34px 14px repeat-x; filter: drop-shadow(0 0 5px rgba(239, 185, 45, 0.95)); animation: chase 1.1s steps(1) infinite; }
.score-totals { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.6rem; max-width: 780px; margin: 0 auto 2.4rem; text-align: center; }
.score-totals b { display: block; font: 400 clamp(4rem, 11vw, 7.6rem)/0.92 var(--fat); font-variant-numeric: tabular-nums; }
.score-totals .is-h b { color: var(--red-lite); }
.score-totals .is-m b { color: var(--blue-lite); }
.score-totals span { font: 400 1.35rem/1 var(--gothic); letter-spacing: 0.26em; text-transform: uppercase; }
.score-totals i { font: 400 2.6rem/1 var(--script); font-style: normal; color: var(--gold); transform: rotate(-6deg); }
.tally { display: grid; gap: 0.6rem; max-width: 880px; margin-inline: auto; }
.tally-row { display: grid; grid-template-columns: 12rem 1fr 6.5rem; gap: 1rem; align-items: center; }
.tally-name { font: 400 1.5rem/1 var(--gothic); letter-spacing: 0.05em; text-transform: uppercase; }
.tally-bar { display: flex; height: 16px; background: #3b342b; }
.tally-bar i { display: block; height: 100%; }
.tally-bar .is-h { background: var(--red-lite); }
.tally-bar .is-d { background: #8c806b; }
.tally-bar .is-m { background: var(--blue-lite); }
.tally-num { font: 400 0.86rem/1 var(--type); text-align: right; white-space: nowrap; }
.tally > .muted { text-align: center; }

/* The last word: both fighters, waiting. */
.closer { margin-bottom: -5rem; padding: 3.4rem 0 0; background-image: repeating-conic-gradient(from 2.5deg at 50% 118%, rgba(160, 100, 0, 0.2) 0 5deg, transparent 5deg 10deg); }
.closer::after { display: none; }
.closer-inner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 300px); gap: 1rem; align-items: end; }
.closer-copy { padding-bottom: 3.6rem; text-align: center; }
.closer .script { display: inline-block; margin: 0 0 0.15rem; font-size: 2.7rem; line-height: 1; color: var(--red-deep); transform: rotate(-4deg); }
.closer h2 { margin-bottom: 1.5rem; font-size: clamp(3rem, 7.6vw, 6.2rem); line-height: 0.88; filter: url(#press); }
.closer .halftone { fill: var(--white); opacity: 0.75; }

/* ---------- play: the weigh-in ---------- */

.setup { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.2rem; align-items: start; }
.setup-step { margin-bottom: 2.6rem; }
.setup-step > h2 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; font-size: 2.5rem; }
.setup-step > h2 .num { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; padding-top: 0.12em; background: var(--red); color: var(--on-ink); clip-path: var(--burst); font: 400 1.3rem/1 var(--fat); }
.setup-step > p { color: var(--ink-2); margin-bottom: 1.15rem; }
.group-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.7rem 0 0.7rem; font: 400 1.15rem/1 var(--gothic); letter-spacing: 0.2em; text-transform: uppercase; }
.group-title:first-of-type { margin-top: 0; }
.group-title span { flex: 1; display: flex; align-items: center; gap: 0.6rem; }
.group-title span::before { content: ""; flex: none; width: 0.8em; height: 0.8em; margin-top: -0.12em; background: var(--red); clip-path: var(--star); }
.group-title span::after { content: ""; flex: 1; border-top: 2px solid var(--ink); }
.group-title a { letter-spacing: 0.12em; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 0.75rem; }
.pick {
  position: relative; display: flex; flex-direction: column; gap: 0.16rem; text-align: left;
  padding: 0.78rem 0.9rem 0.72rem 2.7rem; border: 0; border-radius: 2px;
  background: var(--sheet); color: var(--ink); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--ink), var(--lift);
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}
/* A hole to punch. */
.pick::before { content: ""; position: absolute; left: 0.85rem; top: 0.95rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); }
.pick:not([disabled]):hover { background: var(--gold-soft); transform: translateY(-2px) rotate(-0.5deg); }
.pick[aria-pressed="true"], .pick[aria-checked="true"] { background: var(--gold-soft); box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--ink), 0 12px 12px -8px rgba(46, 30, 8, 0.6); }
.pick[aria-pressed="true"]::before, .pick[aria-checked="true"]::before { background: var(--red); box-shadow: inset 0 0 0 2.5px var(--white); }
.pick[disabled] { opacity: 0.5; cursor: not-allowed; }
.pick-class { font: 400 0.92rem/1 var(--gothic); letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-deep); }
.pick-name { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; font: 400 1.55rem/1.05 var(--gothic); letter-spacing: 0.02em; text-transform: uppercase; }
.pick-sub { color: var(--ink-2); font-size: 0.88rem; line-height: 1.35; }
.pick-tags { margin-top: 0.4rem; }
.pick-cost { font: 400 0.78rem/1 var(--type); letter-spacing: 0; text-transform: none; color: var(--red-deep); white-space: nowrap; }
.pick-add { align-items: center; justify-content: center; min-height: 4.5rem; padding-left: 0.9rem; text-align: center; text-decoration: none; background: transparent; border: 2px dashed var(--ink-3); box-shadow: none; color: var(--blue); font: 400 1.3rem/1.1 var(--gothic); letter-spacing: 0.09em; text-transform: uppercase; }
.pick-add::before { display: none; }

/* The bout sheet: what has been agreed, typed up. */
.summary { position: sticky; top: 96px; padding: 1.5rem 1.35rem 1.4rem; transform: rotate(0.7deg); }
.summary > .tape-strip { top: -14px; left: 50%; margin-left: -48px; transform: rotate(-2deg); }
.slip-head { margin: 0 0 1rem; padding-bottom: 0.55rem; border-bottom: 4px double var(--ink); text-align: center; font: 400 2rem/1 var(--gothic); letter-spacing: 0.16em; text-transform: uppercase; }
.summary dl { margin: 0 0 1.2rem; display: grid; gap: 0.85rem; }
.summary dt { color: var(--ink-2); font: 400 0.98rem/1 var(--gothic); letter-spacing: 0.17em; text-transform: uppercase; }
.summary dd { margin: 0.2rem 0 0; font: 400 1.02rem/1.35 var(--type); }
.summary .small { font-size: 0.84rem; }

.report { margin-top: 3.4rem; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.report-table th { text-align: left; padding: 0.55rem 0.65rem 0.4rem; vertical-align: bottom; }
.report-table thead th { background: var(--ink); color: var(--sheet); font: 400 1.15rem/1.1 var(--gothic); letter-spacing: 0.08em; text-transform: uppercase; }
.report-table th small, .report-table td small { display: block; font: 400 0.76rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.report-table thead th small { color: #cbbd9d; }
.report-table tbody th { font: 400 1.25rem/1.1 var(--gothic); letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px dotted var(--ink-3); white-space: nowrap; }
.report-table td { padding: 0.5rem 0.65rem 0.42rem; border-bottom: 1px dotted var(--ink-3); border-left: 1px solid var(--rule); min-width: 8.5rem; }
.report-table td b { display: block; font-family: var(--type); font-weight: 400; }
.report-table td.is-human { background: var(--red-soft); }
.report-table td.is-model { background: var(--blue-soft); }
.report-table td.rc-none { color: var(--rule-2); text-align: center; }

/* ---------- the match: scoreboard, ring, and the blue corner ---------- */

.match { padding: 1.5rem 0 0; }
.scorebar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; background: var(--ink); color: var(--sheet); box-shadow: var(--lift-big); }
.sb-side { display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 0.55rem 1rem; color: var(--on-ink); }
.sb-side.is-human { background: var(--red); }
.sb-side.is-model { background: var(--blue); text-align: right; }
.sb-face { flex: none; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: var(--sheet); border: 3px solid var(--ink); }
.sb-face .boxer { width: 100%; height: 100%; }
.sb-name { flex: 1 1 auto; min-width: 0; }
.sb-name span { display: block; font: 400 0.95rem/1.1 var(--gothic); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A long name takes two short lines rather than being cut off. */
.sb-name b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font: 400 2.1rem/0.98 var(--gothic); letter-spacing: 0.02em; text-transform: uppercase; }
.sb-score { flex: none; min-width: 1.25ch; padding-top: 0.08em; text-align: center; font: 400 3.5rem/1 var(--fat); font-variant-numeric: tabular-nums; text-shadow: 3px 3px 0 var(--ink); }
.sb-score.is-up { animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
.sb-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.32rem; padding: 0.6rem 1.5rem 0.5rem; text-align: center; }
.sb-round { font: 400 1.05rem/1 var(--gothic); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.sb-event { font: 400 1.75rem/1 var(--gothic); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
/* One bulb per event. It lights up in the colour of whoever won it. */
.round-dots { display: flex; gap: 7px; }
.round-dots i { width: 13px; height: 13px; border-radius: 50%; background: #3b342b; box-shadow: inset 0 0 0 2px #5d5346; }
.round-dots i.is-human { background: var(--red-lite); box-shadow: 0 0 8px 1px rgba(242, 102, 76, 0.85); }
.round-dots i.is-model { background: var(--blue-lite); box-shadow: 0 0 8px 1px rgba(134, 172, 236, 0.85); }
.round-dots i.is-draw { background: #b9ab8e; box-shadow: none; }
.round-dots i.is-now { background: var(--gold); box-shadow: 0 0 9px 2px rgba(239, 185, 45, 0.9); animation: bulb 0.9s ease-in-out infinite alternate; }

.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; margin-top: 1.4rem; align-items: start; }
/* The ring, seen from above: three ropes, four corner pads, and the canvas. */
.ring { position: relative; padding: 21px; }
.ring::before, .ring::after { content: ""; position: absolute; pointer-events: none; }
.ring::before { inset: 3px; border: 3.5px solid var(--red); }
.ring::after { inset: 10px; border: 3.5px solid var(--blue); }
.ring-post { position: absolute; z-index: 3; width: 32px; height: 32px; border: 3px solid var(--ink); border-radius: 5px; background: var(--sheet); box-shadow: 0 3px 0 var(--ink); }
.ring-post::after { content: ""; position: absolute; inset: 6px; background: var(--ink); clip-path: var(--star); }
.ring-post.is-red { top: -5px; left: -5px; background: var(--red); }
.ring-post.is-blue { top: -5px; right: -5px; background: var(--blue); }
.ring-post.is-red::after, .ring-post.is-blue::after { background: var(--on-ink); }
.ring-post.is-sw { bottom: -5px; left: -5px; }
.ring-post.is-se { bottom: -5px; right: -5px; }
.stage {
  position: relative; min-height: 480px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.6rem;
  background-color: var(--white);
  background-image: repeating-linear-gradient(0deg, rgba(46, 30, 8, 0.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(46, 30, 8, 0.035) 0 1px, transparent 1px 3px);
  box-shadow: 0 0 0 3.5px var(--ink), 0 22px 26px -16px rgba(46, 30, 8, 0.7);
}
.stage > * { width: 100%; }
.match-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; color: var(--ink-2); font: 400 0.82rem/1.4 var(--type); }
.match-foot .row { gap: 1.2rem; }

/* The blue corner: what the machine is doing now, what it just said, and everything before that. */
.rival { position: relative; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding: 1rem 1.05rem 1.1rem; background: var(--sheet); border-top: 13px solid var(--blue); box-shadow: inset 0 0 0 1px rgba(46, 30, 8, 0.14), var(--lift-big); }
.rival-head { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.rival-head div { min-width: 0; }
.rival-face { position: relative; flex: none; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; background: var(--blue-soft); border: 3px solid var(--ink); }
.rival-face .boxer { width: 100%; height: 100%; }
.rival-face.is-busy .art-lamp { animation: lamp 0.5s steps(1) infinite; }
.rival-face.is-busy .art-eye { animation: scan 1.3s ease-in-out infinite; }
.rival-head small { display: block; font: 400 0.95rem/1.1 var(--gothic); letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.rival-head b { display: block; font: 400 1.85rem/1 var(--gothic); letter-spacing: 0.02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rival-head span { display: block; font: 400 0.76rem/1.3 var(--type); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rival-now { margin: 0; min-height: 1.4em; font: 700 0.95rem/1.4 var(--serif); overflow-wrap: anywhere; }
.rival-now.is-busy { color: var(--blue); }
.rival-now.is-problem { color: var(--red-deep); }
/* What it said, in a speech balloon, typed as it comes. */
.rival-balloon { position: relative; margin-top: 0.35rem; }
.rival-balloon::before { content: ""; position: absolute; left: 24px; top: -9px; width: 18px; height: 18px; background: var(--white); border-left: 2.5px solid var(--ink); border-top: 2.5px solid var(--ink); transform: rotate(45deg) skew(8deg, 8deg); }
.rival-says { position: relative; margin: 0; padding: 0.7rem 0.85rem 0.55rem; max-height: 13em; overflow-y: auto; background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px; font: 400 0.88rem/1.5 var(--type); white-space: pre-wrap; overflow-wrap: anywhere; }
.rival-record summary { cursor: pointer; font: 400 1rem/1 var(--gothic); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.rival-log { list-style: none; margin: 0.55rem 0 0; padding: 0; display: flex; flex-direction: column; max-height: 250px; overflow-y: auto; }
.rival-item { padding: 0.42rem 0 0.36rem; border-top: 1px dotted var(--ink-3); font: 400 0.78rem/1.45 var(--type); }
.rival-item b { display: block; font-weight: 400; color: var(--ink); }
.rival-item q { display: block; quotes: none; margin-top: 0.15rem; max-height: 6em; overflow: hidden; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.rival-item.is-info { color: var(--ink-2); }
.rival-item.is-note { color: var(--red-deep); }
.rival-credits { font: 400 0.8rem/1.4 var(--type); color: var(--ink-2); }
.rival-credits:empty { display: none; }
.rival-credits b { font-weight: 400; color: var(--red-deep); }

/* Before each event: the round card. */
.intro { position: relative; max-width: 590px; margin-inline: auto; text-align: center; }
.intro-round { display: flex; align-items: baseline; justify-content: center; gap: 0.7rem; margin-bottom: 0.3rem; font: 400 1.35rem/1 var(--gothic); letter-spacing: 0.32em; text-transform: uppercase; }
.intro-round b { font: 400 5rem/0.85 var(--fat); letter-spacing: 0; color: var(--red); text-shadow: 4px 4px 0 var(--ink); }
.intro .pict { display: block; width: 84px; height: 84px; margin: 0.7rem auto 0.8rem; padding: 12px; }
.intro h2 { margin-bottom: 0.6rem; font-size: clamp(3rem, 9vw, 5.2rem); line-height: 0.88; filter: url(#press-soft); }
.intro p { color: var(--ink-2); font-size: 1.08rem; }
.intro .row { justify-content: center; margin: 1rem 0 1.6rem; }

/* The round card: the event, what it is in one line, how it works in three, and a worked example. */
.intro:has(.intro-guide) { max-width: 760px; }
.intro-title { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 0.5rem 0 0; }
.intro .intro-title .pict { flex: none; width: 68px; height: 68px; margin: 0; padding: 10px; }
.intro .intro-title h2 { margin: 0; font-size: clamp(2.6rem, 8vw, 4.6rem); text-align: left; }
.intro .intro-how { max-width: 36ch; margin: 0.55rem auto 0; color: var(--ink); font: italic 400 clamp(1.12rem, 2.6vw, 1.36rem)/1.3 var(--serif); }
.intro-guide { margin: 1rem 0 0; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); text-align: left; }
.intro-guide summary { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.55rem 0 0.42rem; cursor: pointer; list-style: none; font: 400 1.12rem/1 var(--gothic); letter-spacing: 0.2em; text-transform: uppercase; }
.intro-guide summary::-webkit-details-marker { display: none; }
.intro-guide summary::after { content: "+"; width: 1.1em; text-align: center; font: 400 1.3rem/0.8 var(--fat); letter-spacing: 0; color: var(--red); }
.intro-guide[open] summary::after { content: "\2013"; }
.intro-guide summary:hover { background: var(--gold-soft); }
.intro-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: start; padding: 0.9rem 0 0.2rem; }
.intro-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: step; }
.intro-steps li { position: relative; padding-left: 2.5rem; color: var(--ink); font-size: 0.97rem; line-height: 1.42; counter-increment: step; }
.intro-steps li::before { content: counter(step); position: absolute; left: 0; top: -0.1em; width: 1.9rem; text-align: center; font: 400 1.95rem/1 var(--fat); color: var(--red); text-shadow: 2px 2px 0 var(--ink); }
.intro-example { position: relative; padding: 1.45rem 0.9rem 0.85rem; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink), var(--lift); }
.intro-tab { position: absolute; top: -0.6rem; left: 0.8rem; padding: 0.3em 0.62em 0.14em; background: var(--ink); color: var(--sheet); font: 400 0.95rem/1 var(--gothic); letter-spacing: 0.18em; text-transform: uppercase; transform: rotate(-2deg); }
.intro .intro-fair { margin: 0.9rem 0 0.75rem; color: var(--ink-2); font: 400 0.8rem/1.5 var(--type); }
.intro-fair b { color: var(--ink); font-weight: 400; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.2em; }

/* The worked example: the real screens' own pieces at a smaller size, with the answer filled in. */
.ex { display: grid; gap: 0.6rem; text-align: center; }
.intro .ex p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.intro .ex .ex-line { color: var(--ink-2); font-size: 0.9rem; }
.intro .ex .ex-word, .ex-word { font: 400 clamp(1.5rem, 5vw, 2.1rem)/1.1 var(--fat); letter-spacing: 0.08em; }
.intro .ex .ex-text { font: 400 1.35rem/1.4 var(--type); letter-spacing: 0.04em; }
.ex mark { padding: 0.05em 0.14em 0; background: var(--gold); color: var(--ink); font-weight: 800; }
.intro .ex .ex-answer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.2rem 0.55rem; padding-top: 0.55rem; border-top: 1.5px dashed var(--ink-3); }
.ex-answer b { padding: 0.24em 0.5em 0.08em; background: var(--good); color: var(--on-ink); font: 400 0.82rem/1 var(--gothic); letter-spacing: 0.16em; text-transform: uppercase; }
.ex-answer span { font: 400 1.25rem/1.1 var(--type); color: var(--good); }
.ex-answer small { flex-basis: 100%; color: var(--ink-2); font: italic 400 0.82rem/1.38 var(--serif); }
.ex-tick { margin-left: 0.6rem; padding: 0.2em 0.45em 0.05em; background: var(--good); color: var(--on-ink); font: 400 0.74rem/1 var(--gothic); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.ex-choices { margin-top: 0; gap: 0.4rem; }
.ex-choices .choice { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0.28rem 0.5rem 0.24rem 0.35rem; gap: 0.55rem; box-shadow: 0 2px 0 var(--ink); cursor: default; font-size: 0.94rem; }
.ex-choices .choice.is-right { box-shadow: 0 2px 0 var(--good); }
.ex-choices .choice:not(.is-right) { opacity: 0.55; }
.ex-choices .choice-key { width: 1.6rem; height: 1.6rem; font-size: 1.1rem; }
.ex-choices.is-pictures .choice { grid-template-columns: 1fr; padding: 0.3rem 0.35rem 0.35rem; }
.ex-choices.is-pictures .ex-tick { margin: 0; }
.intro .ex .ask-text { font-size: 1.02rem; line-height: 1.42; text-align: left; }
.intro .ex .dispatch p { font-size: 0.88rem; line-height: 1.45; }
.ex .dispatch { padding: 0.55rem 0.75rem 0.6rem; }
.ex .dispatch-head { margin-bottom: 0.3rem; font-size: 1.05rem; }
.ex .pg { --cell: 11px; }
.ex .rule-examples { gap: 0.5rem 1.1rem; }
.ex .rule-pair { gap: 0.3rem; }
.ex .rule-pair.is-test { padding: 0.25rem 0.35rem; }
.ex .rule-arrow { font-size: 1.05rem; }
.ex .rule-what { width: calc(4 * 11px + 9px); border-width: 2px; font-size: 1.5rem; }
.ex-four { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.ex-mini { margin: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 0.35rem; padding: 0.45rem 0.4rem 0.4rem; border: 1.5px solid var(--rule-2); background: var(--sheet); }
.ex-mini figcaption { font: 400 0.84rem/1.1 var(--gothic); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.ex-pic { display: grid; place-items: center; min-height: 3.5rem; }
.intro .ex .ex-mini .ex-answer { padding-top: 0.32rem; }
.ex-mini .ex-answer span { font-size: 1.05rem; }
.ex .rc-pixels { width: calc(var(--cols) * 7px); padding: 5px; border-width: 2px; }
.ex .rc-field { width: calc(var(--cols) * 15px); padding: 3px; border-width: 2px; }
.ex .rc-field i { font-size: 0.78rem; }
.ex .rc-odd { grid-template-columns: 0.9rem repeat(var(--cols), 1.2rem); gap: 2px; }
.ex .rc-cell { padding-top: 0.1em; cursor: default; font-size: 0.82rem; }
.ex .rc-label { font-size: 0.72rem; }
.ex-code { display: grid; grid-template-columns: auto repeat(4, 36px); gap: 5px; align-items: center; justify-content: center; }
.ex-code-label { padding-right: 0.35rem; text-align: right; color: var(--ink-2); font-size: 0.86rem; }
.ex-code .cb-slot { height: 36px; font-size: 1.2rem; }
.ex-code small { align-self: start; font: 400 0.7rem/1.1 var(--gothic); letter-spacing: 0.05em; text-transform: uppercase; text-align: center; }
.ex-code small.is-exact { color: var(--good); }
.ex-code small.is-near { color: var(--blue); }
.ex-code small.is-out { color: var(--ink-3); }
.ex-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; align-items: start; }
.ex-two figure { margin: 0; display: grid; gap: 0.4rem; justify-items: center; }
.ex-two figcaption { font: 400 0.84rem/1.1 var(--gothic); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.ex .maze-grid { width: min(100%, 125px); }
.ex-pre { margin: 0; padding: 0.45rem 0.7rem 0.4rem; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); font: 400 0.98rem/1.3 var(--type); text-align: left; }
.bell-call { display: grid; justify-items: center; gap: 0.2rem; text-align: center; }
.bell-call .bell { width: min(60%, 230px); }
.bell-call b { font: 400 clamp(3.4rem, 12vw, 6rem)/1 var(--fat); text-transform: uppercase; color: var(--red); text-shadow: 5px 5px 0 var(--ink); transform: rotate(-4deg); animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.bell-ring { opacity: 0; }
.bell.is-ringing .bell-hammer { transform-box: view-box; transform-origin: 138px 104px; animation: strike 0.3s ease-in-out 2; }
.bell.is-ringing .bell-dome { transform-box: view-box; transform-origin: 68px 105px; animation: clang 0.3s ease-in-out 2; }
.bell.is-ringing .bell-ring { animation: ringlines 0.3s ease-in-out 2; }

/* After each event: the decision, in the biggest type on the bill, over turning rays. */
.verdict { position: relative; max-width: 690px; margin-inline: auto; text-align: center; }
.verdict > * { position: relative; z-index: 1; }
.verdict > .verdict-rays {
  --size: min(1500px, 230vw);
  position: absolute; z-index: 0; left: 50%; top: 7rem; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); pointer-events: none;
  background: repeating-conic-gradient(var(--ray, var(--gold-soft)) 0 6deg, transparent 6deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 6%, transparent 46%);
  mask: radial-gradient(circle, #000 6%, transparent 46%);
  animation: spin 80s linear infinite;
}
.verdict.is-human { --ray: var(--gold-soft); }
.verdict.is-model { --ray: var(--blue-soft); }
.verdict.is-draw { --ray: var(--shade); }
.verdict-kicker { display: inline-block; margin: 0 0 -0.1rem; font: 400 2.3rem/1 var(--script); transform: rotate(-4deg); }
.verdict-word { display: block; margin: 0.15rem 0 1rem; transform: rotate(-3deg); animation: slam 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.verdict-word span { display: inline-block; font: 400 clamp(4.6rem, 16vw, 9.4rem)/0.86 var(--gothic); letter-spacing: 0.012em; text-transform: uppercase; text-shadow: 6px 6px 0 var(--ink); filter: url(#press); }
.verdict.is-human .verdict-word { color: var(--red); }
.verdict.is-model .verdict-word { color: var(--blue); }
.verdict.is-draw .verdict-word { color: var(--gold); }
.verdict-line { margin-bottom: 1.4rem; font-size: 1.15rem; color: var(--ink); }
.versus-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.4rem; text-align: left; }
.versus-stats > div { padding: 0.65rem 0.9rem 0.7rem; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.versus-stats > div:first-child { border-top: 11px solid var(--red); }
.versus-stats > div:last-child { border-top: 11px solid var(--blue); }
.versus-stats small { display: block; margin-bottom: 0.15rem; color: var(--ink-2); font: 400 0.98rem/1.1 var(--gothic); letter-spacing: 0.16em; text-transform: uppercase; }
.versus-stats b { font: 400 1.8rem/1.05 var(--gothic); letter-spacing: 0.02em; text-transform: uppercase; }
.detail { width: 100%; border-collapse: collapse; margin: 0 0 1.3rem; font-size: 0.92rem; text-align: left; }
.detail th { padding: 0.45rem 0.5rem 0.3rem; border-bottom: 3px solid var(--ink); color: var(--ink); font: 400 1rem/1.1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; }
.detail td { padding: 0.48rem 0.5rem 0.42rem; border-bottom: 1px dotted var(--ink-3); vertical-align: top; }
.detail .ok, .detail .no { white-space: nowrap; }
.detail .ok { color: var(--good); font-weight: 800; }
.detail .no { color: var(--red-deep); font-weight: 800; }
.detail td.human { background: var(--red-soft); font-weight: 800; }
.detail td.model { background: var(--blue-soft); font-weight: 800; }
.detail td small { margin-left: 0.3rem; color: var(--ink-2); font-weight: 400; }
details.more { margin-bottom: 1.4rem; padding: 0.65rem 0.9rem 0.55rem; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); text-align: left; }
details.more summary { cursor: pointer; font: 400 1.1rem/1.1 var(--gothic); letter-spacing: 0.12em; text-transform: uppercase; }
details.more[open] summary { margin-bottom: 0.8rem; }

/* Whoever took it, in a medallion over the decision. */
.verdict-champ { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.champ { position: relative; display: grid; place-items: center; width: 118px; aspect-ratio: 1; }
.champ .burst { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--gold); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; animation: spin 30s linear infinite; }
.champ .boxer { position: relative; width: 66%; height: 66%; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }
.verdict.is-draw .champ { width: 92px; }
.champ { animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }

.count-big { text-align: center; font: 400 clamp(5rem, 22vw, 10rem)/1 var(--fat); text-transform: uppercase; color: var(--red); text-shadow: 6px 6px 0 var(--ink); animation: pop 0.9s ease both; }
.count-big.is-word { font-size: clamp(3.4rem, 13vw, 7rem); transform: rotate(-4deg); }

/* ---------- game: question rounds (robot check, eagle eye, math sprint, unscramble) ---------- */

.quiz { max-width: 630px; margin-inline: auto; text-align: center; }
.quiz-count { font: 400 1.1rem/1 var(--gothic); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.quiz-ask { color: var(--ink-2); margin: 0.9rem 0 0.4rem; min-height: 1.5em; }
.quiz-q { margin: 0.2rem 0 1.2rem; min-height: 1.2em; font: 400 clamp(2.4rem, 7.5vw, 4rem)/1.12 var(--fat); overflow-wrap: anywhere; }
.quiz-q.is-text { font: 400 clamp(1.2rem, 3.2vw, 1.6rem)/1.55 var(--type); letter-spacing: 0.02em; }
.quiz-q.is-letters { letter-spacing: 0.14em; }
.quiz-q.is-art { font-size: 1rem; display: flex; justify-content: center; }
.quiz mark { padding: 0.1em 0.3em 0; background: var(--gold); color: var(--ink); font-weight: 800; }
.quiz-form { display: flex; gap: 0.7rem; justify-content: center; align-items: flex-start; }
.quiz-form .input { max-width: 240px; text-align: center; font-size: 1.4rem; }
.quiz-flash { min-height: 1.8em; margin-top: 0.9rem; font-weight: 800; }
.quiz-flash.ok { color: var(--good); }
.quiz-flash.no { color: var(--red-deep); }
.timer { height: 14px; margin: 0.6rem 0 0; overflow: hidden; background: var(--sheet); border: 2.5px solid var(--ink); }
.timer i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left center; transition: transform 0.2s linear, background-color 0.3s ease; }
.timer.is-low i { background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--red-deep) 8px 16px); }

/* Robot Check: letters made of dots, a box of shapes, a grid with one odd square. */
.rc-pixels { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 1px; width: min(100%, calc(var(--cols) * 15px)); padding: 10px; background: var(--sheet); border: 3px solid var(--ink); }
.rc-pixels i { aspect-ratio: 1; }
.rc-pixels i.on { background: var(--ink); border-radius: 1px; }
.rc-field { display: grid; grid-template-columns: repeat(var(--cols), 1fr); width: min(100%, calc(var(--cols) * 30px)); padding: 8px; background: var(--sheet); border: 3px solid var(--ink); }
.rc-field i { aspect-ratio: 1; display: grid; place-items: center; font: 400 clamp(0.8rem, 3.6vw, 1.2rem)/1 Georgia, "Segoe UI Symbol", serif; font-style: normal; }
.rc-odd { display: grid; grid-template-columns: 1.5rem repeat(var(--cols), minmax(0, 2.6rem)); gap: 3px; justify-content: center; }
.rc-label { display: grid; place-items: center; font: 400 1.05rem/1 var(--gothic); letter-spacing: 0.05em; color: var(--ink-2); }
.rc-cell { aspect-ratio: 1; display: grid; place-items: center; padding: 0.15em 0 0; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--sheet); cursor: pointer; font: 400 clamp(1rem, 4vw, 1.35rem)/1 var(--type); }
.rc-cell:not([disabled]):hover { background: var(--gold); }
.rc-cell[disabled] { cursor: default; }

/* The two scorecards, side by side: one box per question. */
.lanes { display: grid; gap: 0.5rem; margin: 1.5rem auto 0; text-align: left; }
.lane { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.lane-name { font: 400 1.1rem/1 var(--gothic); letter-spacing: 0.12em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane.is-h .lane-name { color: var(--red-deep); }
.lane.is-m .lane-name { color: var(--blue); }
.lane ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.slot { min-height: 3rem; display: flex; flex-direction: column; justify-content: center; padding: 0.3rem 0.4rem 0.15rem; overflow: hidden; background: var(--sheet); border: 2px solid var(--rule-2); font: 400 0.78rem/1.25 var(--type); }
.slot-n { font-size: 0.62rem; color: var(--ink-3); }
.slot-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-v small { display: block; color: var(--ink-2); font-size: 0.66rem; }
.slot.is-idle { background: transparent; border-style: dashed; }
.slot.is-busy { border-color: var(--ink); }
.lane.is-h .slot.is-busy { background: var(--red-soft); }
.lane.is-m .slot.is-busy { background: var(--blue-soft); color: var(--blue); }
.slot.is-busy .slot-v::after { content: "…"; display: inline-block; animation: pulse 0.9s ease-in-out infinite; }
.slot.is-sealed { border-color: var(--blue); color: var(--blue); background: repeating-linear-gradient(-45deg, var(--sheet) 0 5px, var(--blue-soft) 5px 10px); }
.slot.is-ok { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.slot.is-no { border-color: var(--red-deep); background: var(--red-soft); color: var(--red-deep); }

/* ---------- multiple-choice rounds: spot the rule, sucker punch, speed read ---------- */

.quiz-form[hidden] { display: none; }
.quiz.is-choice { max-width: 660px; }
/* Lettered answers to tap. Each is a block of type with its letter on a tab. */
.choices { display: grid; gap: 0.6rem; margin-top: 1rem; text-align: left; }
.choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.8rem 0.45rem 0.5rem; border: 2.5px solid var(--ink); border-radius: 4px;
  background: var(--sheet); color: var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: pointer;
  font: 400 1.02rem/1.35 var(--serif); text-align: left;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background-color 0.12s ease;
}
.choice:not([disabled]):hover { background: var(--gold-soft); }
.choice:not([disabled]):active { transform: translateY(3px); box-shadow: none; }
.choice[disabled] { cursor: default; }
.choice-key { display: grid; place-items: center; width: 2rem; height: 2rem; padding-top: 0.12em; background: var(--ink); color: var(--sheet); font: 400 1.3rem/1 var(--gothic); }
.choice.is-right { background: var(--good-soft); border-color: var(--good); box-shadow: 0 3px 0 var(--good); }
.choice.is-right .choice-key { background: var(--good); }
.choice.is-wrong { background: var(--red-soft); border-color: var(--red-deep); box-shadow: 0 3px 0 var(--red-deep); }
.choice.is-wrong .choice-key { background: var(--red-deep); }
.choice[disabled]:not(.is-right):not(.is-wrong) { opacity: 0.55; }
.choices.is-short { grid-template-columns: 1fr 1fr; }
.choices.is-pictures { grid-template-columns: repeat(4, auto); justify-content: center; gap: 0.7rem; }
.choices.is-pictures .choice { grid-template-columns: 1fr; justify-items: center; gap: 0.35rem; padding: 0.4rem 0.5rem 0.5rem; }
.choices.is-pictures .choice-key { width: 100%; height: 1.5rem; font-size: 1.15rem; }

.ask-card { width: 100%; }
.ask-text { margin: 0; text-align: left; font: 400 clamp(1.08rem, 2.6vw, 1.28rem)/1.5 var(--serif); color: var(--ink); }
.ask-question { font: 800 1.12rem/1.35 var(--serif); color: var(--ink); }
.quiz.is-choice .quiz-ask { color: var(--ink-2); font: 400 1.05rem/1.2 var(--gothic); letter-spacing: 0.16em; text-transform: uppercase; }
.quiz.is-choice .quiz-ask .ask-question { letter-spacing: 0; text-transform: none; }
/* A fight report, set as a column of newsprint. */
.dispatch { padding: 0.8rem 1rem 0.85rem; background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ink); text-align: left; }
.dispatch-head { display: block; margin-bottom: 0.45rem; padding-bottom: 0.3rem; border-bottom: 3px double var(--ink); font: 400 1.25rem/1 var(--gothic); letter-spacing: 0.18em; text-transform: uppercase; }
.dispatch p { margin: 0; font: 400 1rem/1.5 var(--serif); letter-spacing: 0; text-align: justify; hyphens: auto; }

/* Spot the Rule: little picture grids. A square is empty or printed in one of four inks. */
.pg { --cell: 16px; display: grid; grid-template-columns: repeat(var(--n), var(--cell)); gap: 1px; padding: 2px; background: var(--ink); border: 1.5px solid var(--ink); }
.pg i { width: var(--cell); height: var(--cell); background: var(--white); }
.pg .ink-R { background: var(--red); }
.pg .ink-B { background: var(--blue); }
.pg .ink-Y { background: var(--gold); }
.pg .ink-K { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.rule { width: 100%; }
.rule-examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.7rem 1.6rem; }
.rule-pair { display: inline-flex; align-items: center; gap: 0.4rem; }
.rule-pair.is-test { padding: 0.35rem 0.5rem; background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.rule-arrow { font: 800 1.3rem/1 var(--serif); }
.rule-what { display: grid; place-items: center; width: calc(6 * 16px + 12px); aspect-ratio: 1; border: 2.5px dashed var(--ink); font: 400 2.6rem/1 var(--fat); color: var(--red); }
.detail .why { display: block; margin: 0.25rem 0 0; color: var(--ink-2); font-style: italic; }

/* ---------- game: code breaker ---------- */

.cb { max-width: 630px; margin-inline: auto; }
.cb-main { display: grid; grid-template-columns: minmax(0, 1fr) 195px; gap: 1.2rem; align-items: start; margin-top: 0.8rem; }
.cb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; color: var(--ink-2); font-size: 0.9rem; }
.cb-board { display: grid; gap: 5px; }
.cb-row { display: grid; grid-template-columns: 1.2rem repeat(4, 38px) 1fr; gap: 5px; align-items: center; }
.cb-row > span:first-child { color: var(--ink-2); font: 400 1rem/1 var(--gothic); }
.cb-slot { height: 38px; display: grid; place-items: center; padding-top: 0.14em; background: var(--sheet); border: 2px solid var(--rule-2); font: 400 1.3rem/1 var(--type); }
.cb-row.is-now .cb-slot { border-color: var(--ink); background: var(--gold-soft); box-shadow: 0 3px 0 var(--ink); }
.cb-row.is-future { opacity: 0.4; }
.cb-fb { padding-left: 0.4rem; font-size: 0.86rem; color: var(--ink-2); white-space: nowrap; }
.cb-fb b { color: var(--ink); }
.cb-fb.is-solved, .is-solved .cb-fb { color: var(--good); font-weight: 800; }
.d1 { color: #a5270f; } .d2 { color: #a65400; } .d3 { color: #6f5a00; } .d4 { color: #2a6b3f; } .d5 { color: #214d9e; } .d6 { color: #6b3fa0; }
.cb-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cb-pad .cb-enter { grid-column: span 2; }
.cb-side p { margin: 0.9rem 0 0; color: var(--ink-2); font-size: 0.88rem; }
.cb-pad button { height: 48px; padding-top: 0.14em; border: 2.5px solid var(--ink); border-radius: 4px; background: var(--sheet); box-shadow: 0 3px 0 var(--ink); cursor: pointer; font: 400 1.25rem/1 var(--type); transition: transform 0.06s ease, box-shadow 0.06s ease; }
.cb-pad button:not([disabled]):hover { background: var(--gold-soft); }
.cb-pad button:not([disabled]):active { transform: translateY(3px); box-shadow: none; }
.cb-pad button[disabled] { opacity: 0.4; cursor: default; }
.cb-pad .cb-enter { padding-top: 0.2em; background: var(--red); color: var(--on-ink); font: 400 1.2rem/1 var(--gothic); letter-spacing: 0.1em; text-transform: uppercase; }
.cb-pad .cb-enter:not([disabled]):hover { background: #df4128; }
.cb-pad .cb-back { font-size: 1.05rem; }
.cb-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.3rem; text-align: left; }
.cb-compare ol { margin: 0.3rem 0 0; padding-left: 1.4rem; font: 400 0.95rem/1.5 var(--type); }
.cb-compare li small { margin-left: 0.4rem; color: var(--ink-2); font-family: var(--serif); }
/* The machine's own board, beside yours. */
.cb-rival, .mz-rival { margin-top: 1.2rem; padding: 0.7rem 0.9rem 0.65rem; background: var(--sheet); border-top: 9px solid var(--blue); box-shadow: inset 0 0 0 2px var(--ink); text-align: left; }
.cb-rival-head, .mz-rival-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 1rem; margin-bottom: 0.5rem; }
.cb-rival-head b, .mz-rival-head b { color: var(--blue); font: 400 1.2rem/1 var(--gothic); letter-spacing: 0.08em; text-transform: uppercase; }
.cb-rival-head span, .mz-rival-head span { color: var(--ink-2); font-size: 0.8rem; }
.cb-rival ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 1.2rem; }
.cb-rival li { display: grid; grid-template-columns: 1.1rem 5.6rem minmax(0, 1fr); align-items: center; gap: 0.4rem; min-height: 1.7rem; font: 400 0.9rem/1.2 var(--type); }
.cb-rival li.is-future { opacity: 0.3; }
.cb-rival li.is-now .cb-masked { color: var(--blue); font-size: 0.78rem; animation: pulse 0.9s ease-in-out infinite; }
.cb-n { color: var(--ink-3); font-size: 0.74rem; }
.cb-masked { letter-spacing: 0.08em; white-space: nowrap; }
.cb-rival .cb-fb { padding-left: 0; font: 400 0.78rem/1.3 var(--serif); white-space: normal; }

/* ---------- game: maze run (a race: you are the red dot, the machine is the blue square) ---------- */

.maze { max-width: 660px; margin-inline: auto; }
.maze-main { display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 1fr); gap: 1.4rem; align-items: center; margin-top: 0.7rem; }
.maze-side p { margin: 0.9rem 0 0; text-align: center; color: var(--ink-2); font-size: 0.88rem; }
.maze-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; color: var(--ink-2); font-size: 0.9rem; }
.maze-who::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.45em; vertical-align: -0.05em; box-shadow: 0 0 0 2px var(--ink); }
.maze-who.is-me::before { border-radius: 50%; background: var(--red); }
.maze-who.is-it::before { border-radius: 2px; background: var(--blue); }
.maze-who b { color: var(--ink); }
.maze-grid { display: grid; grid-template-columns: repeat(var(--n, 11), 1fr); gap: 0; padding: 0; background: var(--sheet); border: 3px solid var(--ink); touch-action: none; user-select: none; }
.mz { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 0; box-shadow: inset 0 0 0 0.75px var(--rule-2); font: 400 clamp(0.5rem, 2.3vw, 0.74rem)/1 var(--gothic); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); }
.mz.is-wall { background: var(--ink); background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 248, 232, 0.16) 4px 5px); box-shadow: none; }
.mz.is-start { box-shadow: inset 0 0 0 2.5px var(--ink-3); }
.mz.is-end { background: var(--good-soft); box-shadow: inset 0 0 0 3px var(--good); color: var(--good); }
.mz.is-trail { background: #ec8d79; }
.mz.is-bot { background: var(--blue-soft); box-shadow: inset 0 0 0 2.5px var(--blue); }
.mz.is-trail.is-bot { background: linear-gradient(135deg, #ec8d79 50%, var(--blue-soft) 50%); }
/* The two runners. Side by side when they share a square. */
.mz.is-me::after, .mz.is-it::before { content: ""; position: absolute; inset: 0; margin: auto; width: 56%; height: 56%; box-shadow: 0 0 0 2.5px var(--ink); }
.mz.is-me::after { z-index: 2; border-radius: 50%; background: var(--red); }
.mz.is-it::before { z-index: 1; border-radius: 2px; background: var(--blue); }
.mz.is-me.is-it::after { transform: translate(17%, 17%); }
.mz.is-me.is-it::before { transform: translate(-17%, -17%); }
.mz.is-waiting::before { animation: pulse 0.9s ease-in-out infinite; }
.mz.is-crash { z-index: 3; box-shadow: inset 0 0 0 3px var(--red); animation: bonk 0.3s ease 2; }
.mz.is-end.is-me, .mz.is-end.is-it { font-size: 0; }
.dpad { display: grid; grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(2, 48px); gap: 7px; justify-content: center; }
.dpad button { border: 2.5px solid var(--ink); border-radius: 4px; background: var(--sheet); box-shadow: 0 3px 0 var(--ink); cursor: pointer; font-size: 1rem; transition: transform 0.06s ease, box-shadow 0.06s ease; }
.dpad button:hover { background: var(--gold-soft); }
.dpad button:active { transform: translateY(3px); box-shadow: none; }
.dpad button[disabled] { opacity: 0.35; cursor: default; transform: none; box-shadow: 0 3px 0 var(--ink); background: var(--sheet); }
/* Shown in place of the help line once you are out and the machine is still running. */
.maze-side p.maze-out { color: var(--ink); font-size: 0.95rem; }
.maze-out b { display: block; margin-bottom: 0.2rem; color: var(--good); font: 400 1.5rem/1.1 var(--gothic); letter-spacing: 0.06em; text-transform: uppercase; }
.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 2; }
.dpad .right { grid-column: 3; grid-row: 2; }
.maze-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.3rem; }
.maze-pair .mz { font-size: 0; }
.maze-pair figcaption { margin-top: 0.4rem; text-align: center; font-size: 0.86rem; color: var(--ink-2); }
.maze-pair figure { margin: 0; }
.mz-rival ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; font: 400 0.82rem/1.45 var(--type); }
.mz-rival li.is-busy { color: var(--blue); animation: pulse 1.1s ease-in-out infinite; }
.mz-rival li.is-good { color: var(--good); }
.mz-rival li.is-bad { color: var(--red-deep); }

/* ---------- models page ---------- */

.conn-list { display: grid; gap: 0.85rem; }
.conn { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-left: 10px solid var(--blue); }
.conn-main { flex: 1 1 220px; min-width: 0; }
.conn-main b { display: block; font: 400 1.7rem/1.05 var(--gothic); letter-spacing: 0.02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-main span { color: var(--ink-2); font: 400 0.84rem/1.4 var(--type); overflow-wrap: anywhere; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.6rem; }
.test-result { font-size: 0.94rem; margin-top: 0.8rem; }
.test-result q { display: block; quotes: none; margin-top: 0.5rem; padding: 0.6rem 0.8rem 0.5rem; max-height: 8em; overflow: auto; background: var(--white); border: 2.5px solid var(--ink); border-radius: 14px; font: 400 0.86rem/1.5 var(--type); white-space: pre-wrap; overflow-wrap: anywhere; }
.table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.table th { padding: 0.6rem 0.65rem 0.42rem; background: var(--ink); color: var(--sheet); text-align: left; font: 400 1.05rem/1.1 var(--gothic); letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 0.6rem 0.65rem 0.5rem; border-bottom: 1px dotted var(--ink-3); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: rgba(46, 30, 8, 0.04); }
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0.5rem; }
.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- credits: the box office ---------- */

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; filter: drop-shadow(0 8px 5px rgba(46, 30, 8, 0.34)); }
.pack {
  --stub: 4rem;
  position: relative; display: flex; flex-direction: column; gap: 0.45rem; padding: 0 1.3rem 1.4rem; text-align: center; box-shadow: none;
  -webkit-mask: radial-gradient(circle 11px at 0 var(--stub), #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--stub), #0000 96%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--stub), #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--stub), #0000 96%, #000) right / 51% 100% no-repeat;
  transition: transform 0.18s ease;
}
.pack:nth-child(1) { transform: rotate(-1.2deg); }
.pack:nth-child(3) { transform: rotate(1deg); }
.pack:hover { transform: translateY(-5px); }
.pack h3 { display: grid; place-items: center; height: var(--stub); margin: 0 -1.3rem 0.9rem; padding-top: 0.14em; background: var(--ink); color: var(--sheet); border-bottom: 2.5px dashed var(--sheet); font-size: 2rem; letter-spacing: 0.14em; }
.pack.is-best h3 { background: var(--red); color: var(--on-ink); }
.pack-credits { font: 400 3.3rem/1 var(--fat); color: var(--ink); }
.pack.is-best .pack-credits { color: var(--red); }
.pack-credits small { display: block; margin-top: 0.45rem; font: 400 1.1rem/1 var(--gothic); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); }
.pack-note { min-height: 1.9rem; }
.pack-note .tag { transform: rotate(-3deg); }
.pack .btn { margin-top: auto; }
.balance { display: flex; align-items: baseline; gap: 0.8rem; }
.balance b { font: 400 3.2rem/1 var(--fat); color: var(--red); }

/* ---------- sponsor page ---------- */

.sponsor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 2rem; align-items: start; }
.slot-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 0.6rem; }
.term-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.preview-box { position: sticky; top: 96px; }
.preview-box .sponsor-card { margin: 0.8rem 0 1.2rem; }
.preview-box .eyebrow { font-size: 1.02rem; letter-spacing: 0.13em; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding: 0.9rem 0 0.6rem; border-top: 4px double var(--ink); }
.total b { font: 400 2.3rem/1 var(--fat); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.perks li { position: relative; padding-left: 1.7rem; color: var(--ink-2); }
.perks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.35em; width: 0.95em; height: 0.95em; background: var(--red); clip-path: var(--star); }
.perks li b { color: var(--ink); }

/* ---------- account, admin, legal ---------- */

.narrow { max-width: 470px; margin-inline: auto; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 2.1rem; margin: 2.2rem 0 0.7rem; }
.prose ul { padding-left: 1.2rem; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.history li { display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0.6rem 0.2rem 0.5rem; border-bottom: 1px dotted var(--ink-3); font-size: 0.96rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; }
.checklist .mark { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 0.8rem; font-weight: 800; }
.checklist .is-ok .mark { background: var(--good); border-color: var(--good); color: #fff; }
.checklist .is-todo .mark { background: var(--gold); color: var(--ink); }
.checklist small { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; }
.stat b { display: block; font: 400 2.2rem/1.15 var(--fat); }
.stat span { color: var(--ink-2); font-size: 0.86rem; }
.admin-sponsor { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.out-count { margin: 0.4rem 0 0; font: 400 clamp(5rem, 20vw, 11rem)/0.9 var(--fat); color: var(--red); text-shadow: 6px 6px 0 var(--ink); }

/* ---------- dialog and toasts ---------- */

.dialog { width: min(100% - 2rem, 520px); max-height: min(92vh, 860px); padding: 0; border: 0; background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--sheet), 0 0 0 8.5px var(--ink), 0 34px 60px rgba(20, 12, 0, 0.55); }
.dialog-wide { width: min(100% - 2rem, 680px); }
.dialog::backdrop { background: rgba(29, 26, 22, 0.66); }
.dialog[open] { display: flex; flex-direction: column; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem 0.7rem; border-bottom: 4px double var(--ink); }
.dialog-head h2 { font-size: 2.2rem; }
.dialog-body { padding: 1.2rem 1.3rem; overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 0.8rem; flex-wrap: wrap; padding: 0.9rem 1.3rem 1.3rem; }

.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: grid; gap: 0.6rem; max-width: min(92vw, 390px); }
.toast { padding: 0.75rem 1rem 0.65rem; background: var(--ink); color: var(--sheet); border-left: 10px solid var(--gold); box-shadow: var(--lift-big); transform: rotate(-0.6deg); animation: rise 0.25s ease both; }
.toast-good { border-left-color: #58b174; }
.toast-bad { border-left-color: var(--red-lite); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }

/* ---------- movement ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.25; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { transform: scale(1.7); opacity: 0; } 35% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes slam { from { transform: rotate(-3deg) scale(2.6); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
@keyframes bonk { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes bulb { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes chase { 0% { background-position: 0 0; } 50% { background-position: 17px 0; } }
@keyframes lamp { 0% { fill: var(--gold); } 50% { fill: var(--red); } }
@keyframes scan { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes strike { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-9deg); } }
@keyframes clang { 0%, 100% { transform: rotate(0deg); } 55% { transform: rotate(-3.5deg); } 80% { transform: rotate(2deg); } }
@keyframes ringlines { 0%, 40%, 100% { opacity: 0; } 55%, 80% { opacity: 1; } }
/* The fighters never quite stand still: a bob on the toes, and now and then a jab. */
@keyframes bob { from { translate: 0 0; rotate: -0.8deg; } to { translate: 0 -5px; rotate: 0.8deg; } }
@keyframes jab { 0%, 70%, 100% { transform: none; } 78% { transform: translate(-4px, -16px) scale(1.2); } 86% { transform: translate(1px, 3px) scale(0.98); } }
@keyframes paste { from { opacity: 0; transform: translateY(14px) rotate(var(--tilt, 0deg)) scale(1.03); } to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1); } }

/* The home page arrives the way a bill goes up: the words first, then the sheet is slapped on. */
.hero-copy > * { animation: rise 0.5s ease both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.hero-copy > :nth-child(5) { animation-delay: 0.28s; }
.hero-copy > :nth-child(6) { animation-delay: 0.34s; }
.hero-kicker { --tilt: -1deg; animation-name: paste; }
.bill-wrap { --tilt: 1.5deg; animation: paste 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) 0.2s both; }

.fighter .boxer { animation: bob 1.5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.fighter-machine .boxer { animation-duration: 1.9s; animation-delay: -0.6s; }
.fighter .art-glove.is-lead { animation: jab 4.2s ease-in-out infinite; }
.fighter-machine .art-glove.is-lead { animation-delay: -2.1s; }

/* ---------- narrower screens ---------- */

@media (max-width: 1040px) {
  .hero-grid { gap: 2.4rem; }
  .bill-name { font-size: 4rem; }
  .closer-inner { grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 210px); }
}

@media (max-width: 960px) {
  .hero-grid, .setup, .sponsor-layout { grid-template-columns: 1fr; }
  .hero::before { background: repeating-conic-gradient(from 3deg at 50% 72%, rgba(120, 78, 12, 0.085) 0 5deg, transparent 5deg 10deg); -webkit-mask: radial-gradient(ellipse 80% 44% at 50% 72%, #000 12%, transparent 72%); mask: radial-gradient(ellipse 80% 44% at 50% 72%, #000 12%, transparent 72%); }
  .bill-wrap { margin-top: 0.6rem; }
  .card-bill > .card-stamp { right: -0.6rem; bottom: -4.6rem; width: 7.4rem; }
  .sponsor-grid { grid-template-columns: 1fr 1fr; }
  .preview-box { position: static; }
  .summary { position: sticky; top: auto; bottom: 0.6rem; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1rem; align-items: center; padding: 0.8rem 1rem; transform: none; box-shadow: inset 0 0 0 2.5px var(--ink), 0 -10px 24px rgba(46, 30, 8, 0.3); }
  .summary > .tape-strip, .slip-head { display: none; }
  .summary dl { margin: 0; }
  .summary dl > div:not(:first-child) { display: none; }
  .summary dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .summary .notice { grid-column: 1 / -1; margin: 0; }
  .summary .btn-block { grid-column: 2; grid-row: 1; width: auto; }
  .tickets, .ways, .packs { grid-template-columns: 1fr 1fr; }
  .rounds { grid-template-columns: 1fr; }
  .round, .round:first-child { padding: 1.4rem 0.2rem 1.5rem; }
  .round:first-child { padding-top: 0; }
  .round + .round { border-left: 0; border-top: 2.5px solid var(--ink); }
  .bouts { grid-template-columns: 1fr; background: none; }
  .intro-body { grid-template-columns: 1fr; gap: 1.3rem; }
  .bouts li:nth-child(2) { border-top-width: 2px; }
  .bouts li:last-child:nth-child(odd) .bout { width: auto; }
  .card-bill { padding: 2rem 1.6rem 1.4rem; }
  .closer-inner { grid-template-columns: 1fr 1fr; }
  .closer-copy { grid-column: 1 / -1; grid-row: 1; padding-bottom: 1.4rem; }
  .closer-inner .fighter { max-width: 210px; justify-self: center; }

  .sb-name b { font-size: 1.6rem; }
  .sb-face { width: 54px; height: 54px; }
  .sb-score { font-size: 2.9rem; }

  /* The blue corner moves above the ring and stays in view while you play. */
  .match-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .rival { order: -1; position: sticky; top: 0.4rem; z-index: 20; padding: 0.55rem 0.8rem 0.6rem; gap: 0.3rem; border-top-width: 8px; }
  .rival-face { width: 48px; height: 48px; border-width: 2.5px; }
  .rival-head small { display: none; }
  .rival-head b { font-size: 1.5rem; }
  .rival-says { max-height: 4.8em; padding: 0.4rem 0.65rem 0.3rem; font-size: 0.8rem; border-radius: 12px; }
  .rival-log { max-height: 170px; }
  .site-header { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding: 0.5rem 0 0.2rem; min-height: 0; }
  .brand { font-size: 2.1rem; }
  .nav { order: 3; width: 100%; margin: 0.15rem 0 0; justify-content: space-between; overflow-x: auto; }
  .nav a { padding: 0.5rem 0.45rem 0.36rem; font-size: 1.2rem; }
  .header-user { margin-left: auto; }
  .credit-chip::after { display: none; }
  .section { padding-top: 3.2rem; }
  .band { margin-top: 4rem; }
  .hero { padding-top: 1.9rem; }
  .hero-kicker { font-size: 1rem; letter-spacing: 0.16em; gap: 0.5rem; padding-inline: 0.7rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .bill { padding: 1.25rem 0.9rem 1rem; }
  .bill-name { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .bill-nick { font-size: 1.15rem; }
  .bill-bar { font-size: 1.3rem; }
  .vs-badge { width: 4.2rem; margin: -2.1rem 0 0 -2.1rem; }
  .vs-badge .badge-words { font-size: 1.35rem; }
  .tape-row { gap: 0.5rem; }
  .tape-row dt { min-width: 4.6rem; max-width: 5.4rem; font-size: 0.86rem; letter-spacing: 0.1em; }
  .tape-row dd { font-size: 0.8rem; }
  .tape-score dd { font-size: 1.8rem; }
  .bill-head h2 { gap: 0.7rem; }
  .bill-head .script { font-size: 1.7rem; }
  .card-bill { padding: 1.7rem 1.1rem 1.2rem; transform: none; }
  .bout { grid-template-columns: 2rem 50px minmax(0, 1fr); gap: 0.7rem; }
  .bout-no { font-size: 1.6rem; }
  .bout .pict { width: 50px; height: 50px; padding: 7px; }
  .bout h3 { font-size: 1.85rem; }
  .tickets, .ways, .packs { grid-template-columns: 1fr; }
  .ticket, .ticket:nth-child(n) { transform: none; min-height: 0; }
  .pack, .pack:nth-child(n) { transform: none; }
  .score-totals { gap: 0.8rem; }
  .score-totals span { font-size: 1.05rem; letter-spacing: 0.16em; }
  .tally-row { grid-template-columns: 1fr auto; gap: 0.25rem 0.8rem; }
  .tally-bar { grid-column: 1 / -1; grid-row: 2; }
  .closer-inner .fighter { max-width: 150px; }
  .pick-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pick-name { flex-direction: column; gap: 0.1rem; }
  .setup-step > h2 { font-size: 2.1rem; }

  /* The scoreboard folds in two: the round on top, a corner each underneath. */
  .scorebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sb-mid { grid-column: 1 / -1; grid-row: 1; flex-direction: row; flex-wrap: wrap; gap: 0.2rem 0.7rem; padding: 0.42rem 0.6rem 0.3rem; }
  .sb-side { padding: 0.4rem 0.55rem; gap: 0.5rem; }
  .sb-face { width: 40px; height: 40px; border-width: 2px; }
  .sb-name span { display: none; }
  .sb-name b { font-size: 1.22rem; }
  .sb-score { font-size: 2.2rem; text-shadow: 2px 2px 0 var(--ink); }
  .sb-round { font-size: 0.95rem; letter-spacing: 0.16em; }
  .sb-event { font-size: 1.25rem; }
  .round-dots { gap: 5px; }
  .round-dots i { width: 9px; height: 9px; }
  .sponsor-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .sponsor-card { min-height: 66px; padding: 0.6rem 0.7rem; gap: 0.55rem; }
  .sponsor-logo, .sponsor-initial { width: 34px; height: 34px; font-size: 1.1rem; }
  .sponsor-text strong { font-size: 1.2rem; white-space: normal; }
  .sponsor-text span, .sponsor-empty .sponsor-text span { font-size: 0.7rem; }
  .ring { padding: 13px; }
  .ring::before { inset: 2px; border-width: 2.5px; }
  .ring::after { inset: 7px; border-width: 2.5px; }
  .ring-post { width: 24px; height: 24px; border-width: 2.5px; }
  .ring-post::after { inset: 4px; }
  .stage { padding: 1.1rem 0.8rem; min-height: 390px; box-shadow: 0 0 0 2.5px var(--ink); }
  .rival-record { display: none; }
  .cb-main { grid-template-columns: 1fr; }
  .maze-main { grid-template-columns: 1fr; gap: 0.9rem; }
  .cb-pad { grid-template-columns: repeat(4, 1fr); }
  .cb-pad .cb-enter { grid-column: span 1; font-size: 1rem; letter-spacing: 0.04em; }
  .cb-row { grid-template-columns: 1.2rem repeat(4, 34px) 1fr; }
  .cb-slot { height: 34px; }
  .cb-fb { white-space: normal; font-size: 0.8rem; }
  .cb-rival ol { grid-template-columns: 1fr; }
  .versus-stats, .cb-compare, .maze-pair { grid-template-columns: 1fr; }
  .admin-sponsor { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
  .btn-google { padding-inline: 1rem; font-size: 1.25rem; letter-spacing: 0.06em; }
  .lane { grid-template-columns: 1fr; gap: 0.2rem; }
  .quiz-form { flex-wrap: wrap; }
  .choice { padding: 0.4rem 0.6rem 0.35rem 0.4rem; gap: 0.55rem; font-size: 0.98rem; }
  .choice-key { width: 1.8rem; height: 1.8rem; }
  .dispatch { padding: 0.6rem 0.75rem 0.65rem; }
  .dispatch p { font-size: 0.92rem; line-height: 1.42; text-align: left; hyphens: manual; }
  .ask-question { font-size: 1.05rem; }
  .choices.is-pictures { grid-template-columns: repeat(2, auto); }
  .pg { --cell: 11px; }
  .rule-what { width: calc(6 * 11px + 12px); }
  /* Three columns, each read downwards: example, example, and the one to work out. */
  .rule-examples { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: start; gap: 0.5rem; }
  .rule-pair { flex-direction: column; gap: 0.1rem; }
  .rule-pair.is-test { padding: 0.3rem; margin: -0.3rem 0; }
  .rule-arrow { transform: rotate(90deg); line-height: 0.9; }
  .quiz.is-choice .quiz-ask { font-size: 0.95rem; letter-spacing: 0.1em; }
}

/* ---------- for anyone who would rather it all held still ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fighter .boxer, .fighter .art-glove, .badge .burst, .verdict > .verdict-rays, .scoreband .wrap::before, .round-dots i.is-now { animation: none !important; }
}
