@font-face{font-family:"Bungee";src:url("/assets/fonts/bungee/Bungee-Regular.c4f5361ce1.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("/assets/fonts/barlow-condensed/BarlowCondensed-BlackItalic.e1ed5d7e50.ttf") format("truetype");font-weight:900;font-style:italic;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("/assets/fonts/barlow-condensed/BarlowCondensed-Bold.e476562ec9.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("/assets/fonts/barlow-condensed/BarlowCondensed-SemiBold.7b619d14bc.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
/* Kinetic League site: the broadcast look. The page is the video paused: the stadium behind the
   next match, the fighters big and squaring off across the VS diamond, slanted HUD plates, the
   tilted magenta banner, ticker rows, the gold winner plate.
   Colours are the broadcast palette (packages/render/src/theme.ts, mirrored as C in site.ts) and
   nothing else; magenta and gold are the only accents. A fighter's own colours arrive only through
   its generated .f-<id> class (--p, --s, --a; --bar and --on, a record bar's fill and its text at AA).
   Type: Bungee for names and scores, Barlow Condensed for labels and headings, the system face for
   reading. Shapes: the broadcast plate, leaning by its slant (0.24 px per px, about 13.5deg).
   build-site.ts prepends the @font-face rules and appends the .f-<id> palette classes.
   Phone first: one column; the stage widens from 47.5rem (760px), the columns split at 64rem. */

:root {
  --night: #0a0824;
  --indigo: #17124a;
  --indigo-hi: #2b2380;
  --grid: #3a31a0;
  --ink: #0b0820;
  --plate: #120e33;
  --chalk: #f7f4ff;
  --mute: #9c95d8;
  --magenta: #ff2d78;
  --gold: #ffc23d;

  --slant: -13.5deg; /* atan(0.24) */
  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2.25rem;
  --sp-7: 3rem;
  --gutter: 1rem;
  --wrap: 72rem;
  --tap: 2.75rem; /* 44px */
  color-scheme: dark;
}

@media (min-width: 47.5rem) {
  :root {
    --gutter: 2rem;
  }
}

/* ---- Base ---------------------------------------------------------------------------------- */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--chalk);
  font: 400 1rem/1.55 var(--font-body);
  overflow-wrap: break-word;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

p {
  margin: 0 0 var(--sp-4);
}

a {
  color: var(--magenta);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--chalk);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

abbr[title] {
  text-decoration: none;
}

.skip {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font: 700 1rem/1 var(--font-cond);
  text-decoration: none;
}

.skip:focus {
  top: var(--sp-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.narrow {
  --wrap: 46rem;
}

.muted,
.small {
  color: var(--mute);
}

.small {
  font-size: 0.9rem;
}

.flip {
  transform: scaleX(-1);
}

/* Script-only controls stay out of the page when the script doesn't run. */
.js-only,
.pick {
  display: none;
}

[data-js] .js-only,
[data-js] .pick {
  display: block;
}

/* ---- The plate: the broadcast's slanted shape ------------------------------------------------
   Each of these draws its plate as a skewed ::before behind its content, so the text itself stays
   upright and selectable; the rules further down only set the plate's fill and edge. */

.np,
.btn,
.pick-btn,
.show-result,
.countdown,
.form-mark,
.video-play,
.links a,
.wm-b,
.h2 > span,
.ticker,
.tk-tag,
.sl-rec,
.fx,
.fx-when,
.result-latest .result-what,
.result-latest .result-how,
.result-full .result-what,
.result-full .result-how,
.meta div,
.pager a {
  position: relative;
  isolation: isolate;
}

.np::before,
.btn::before,
.pick-btn::before,
.show-result::before,
.countdown::before,
.form-mark::before,
.video-play::before,
.links a::before,
.wm-b::before,
.h2 > span::before,
.ticker::before,
.tk-tag::before,
.sl-rec::before,
.fx::before,
.fx-when::before,
.result-latest .result-what::before,
.result-latest .result-how::before,
.result-full .result-what::before,
.result-full .result-how::before,
.meta div::before,
.pager a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(var(--slant));
}

/* ---- Masthead ------------------------------------------------------------------------------ */

.masthead {
  background: var(--ink);
  border-bottom: 3px solid var(--magenta);
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--sp-4);
  min-height: 3.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: var(--tap);
  color: var(--chalk);
  font: 400 1.25rem/1 var(--font-display);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--chalk);
}

.wm-b {
  padding: 0.3em 0.5em;
}

.wm-b::before {
  background: var(--magenta);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  border-bottom: 3px solid transparent;
  color: var(--chalk);
  font: 700 1.1rem/1 var(--font-cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover {
  color: var(--gold);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--magenta);
}

/* On a phone the nav is its own row under the wordmark, spread across it. It never wraps; if a
   narrow screen can't fit it, the row scrolls on its own rather than the page. */
@media (max-width: 47.49rem) {
  /* The padding (cancelled by the margin) leaves room inside the scroll box for the 3px focus ring
     and its 3px offset, which overflow would otherwise clip on the first and last links. */
  .masthead-row > nav {
    flex: 1 0 calc(100% + 12px);
    overflow-x: auto;
    margin: -6px;
    padding: 6px;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0 var(--sp-3);
  }

  .nav a {
    font-size: 1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

.stale {
  margin-block: var(--sp-3) 0;
  padding: var(--sp-2) var(--sp-3);
  border-left: 4px solid var(--gold);
  background: var(--plate);
  color: var(--gold);
  font: 700 1rem/1.3 var(--font-cond);
}

/* ---- Headings, bars, buttons --------------------------------------------------------------- */

/* A section heading: the name on a slanted magenta plate, a rule running out to the right. */
.h2 {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-4);
  color: var(--chalk);
  font: italic 900 clamp(1.75rem, 7vw, 2.5rem) / 1 var(--font-cond);
  text-transform: uppercase;
}

.h2 > span {
  flex: none;
  /* Leave room for the rule after it, so a long heading wraps instead of pushing the page wider. */
  max-width: calc(100% - 1.9rem - var(--sp-4));
  margin-left: 0.4rem;
  padding: 0.3rem 1rem 0.2rem 0.85rem;
}

.h2 > span::before {
  background: var(--magenta);
  border: 3px solid var(--ink);
}

.h2::after {
  content: "";
  flex: 1;
  min-width: 1.5rem;
  height: 4px;
  background: var(--grid);
  transform: skewX(var(--slant));
}

.h2-gold > span {
  color: var(--ink);
}

.h2-gold > span::before {
  background: var(--gold);
}

/* A section's heading row: the heading and its rule, a link at the end. */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-4);
}

.bar .h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--chalk);
  font: 700 1.05rem/1 var(--font-cond);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.more::after {
  content: "\00a0\2192";
}

.more:hover {
  color: var(--gold);
}

/* The broadcast's call to action: magenta plate, gold drop edge. Large type, so chalk on magenta
   clears AA (3:1 for large text). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.6rem 1.75rem;
  color: var(--chalk);
  font: italic 900 1.3rem/1 var(--font-cond);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn::before {
  background: var(--magenta);
  border: 3px solid var(--ink);
  box-shadow: 0 0.3rem 0 var(--gold);
}

.btn::after {
  content: "\2192";
  font-style: normal;
}

.btn:hover {
  color: var(--ink);
}

.btn:hover::before {
  background: var(--gold);
  box-shadow: 0 0.3rem 0 var(--magenta);
}

.btn-quiet::before {
  background: var(--ink);
  border: 2px solid var(--magenta);
  box-shadow: none;
}

.btn-quiet:hover {
  color: var(--chalk);
}

.btn-quiet:hover::before {
  background: var(--indigo-hi);
  box-shadow: none;
}

/* ---- Layout -------------------------------------------------------------------------------- */

.cols {
  display: grid;
  padding-bottom: var(--sp-7);
}

.col-main,
.col-side {
  min-width: 0;
}

.block {
  margin-top: var(--sp-7);
}

@media (min-width: 47.5rem) {
  .cols-video {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .cols {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 3.5rem;
    align-items: start;
  }
}

/* ---- Fighters: portrait disc, name plate, crest -------------------------------------------- */

.pt {
  --d: 4rem;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--plate);
  box-shadow:
    inset 0 0 0 calc(var(--d) * 0.045) var(--p, var(--grid)),
    0 0 0 calc(var(--d) * 0.035) var(--ink);
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .pt {
    background: color-mix(in srgb, var(--s, var(--plate)) 30%, var(--ink));
  }
}

.pt img {
  width: 96%;
}

.pt-md {
  --d: 5rem;
}

@media (min-width: 47.5rem) {
  .pt-md {
    --d: 7rem;
  }
}

/* The name plate: ink, the fighter's colour on its edge, crest on the outer end. */
.np {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  max-width: 100%;
  padding: 0.5em 1.2em;
  color: var(--chalk);
  font: 400 clamp(0.85rem, 3.8vw, 1.5rem) / 1.1 var(--font-display);
  text-align: left;
}

.np::before {
  background: var(--ink);
  border: 3px solid var(--p, var(--grid));
}

.np-r {
  flex-direction: row-reverse;
  text-align: right;
}

.np-r::before {
  transform: skewX(calc(-1 * var(--slant)));
}

.np-group {
  text-align: center;
}

.np-gold::before {
  border-color: var(--gold);
}

.np-crest {
  width: 1.3em;
  flex: none;
}

.crest {
  width: 1.5rem;
  flex: none;
}

/* A fighter name that links somewhere: crest + name. */
.who {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  color: var(--chalk);
  text-decoration: none;
}

.who span {
  font: 400 0.85rem/1.15 var(--font-display);
}

a.who:hover span {
  color: var(--gold);
}

/* ---- The stage: a match on the broadcast's stadium ----------------------------------------- */

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--sp-3) var(--sp-6);
  border-bottom: 4px solid var(--gold);
  background: var(--night);
}

.stage-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.stage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* A scrim, for text contrast only: the lower stage, where the ticker and pick sit, darkens. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(10 8 36 / 0) 40%, rgb(10 8 36 / 0.6));
}

.stage-aired {
  padding-bottom: var(--sp-5);
}

.sl {
  position: relative;
}

/* The fighters: big, bare, bleeding off the stage's edges, facing in to the diamond. */
.sl-art {
  position: relative;
  height: clamp(13.5rem, 64vw, 27rem);
}

.sl-art .sl-side {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  width: 76%;
}

.sl-art .sl-a {
  left: -17%;
}

.sl-art .sl-b {
  right: -17%;
  justify-content: flex-end;
}

.sl-fighter {
  flex: none;
  width: 100%;
}

/* Two a side: a pair, the back one stepped behind. Three or more: a huddle of smaller cut-outs. */
.sl-art .sl-n2 {
  align-items: center;
  width: 52%;
}

.sl-art .sl-n2.sl-a {
  left: -10%;
}

.sl-art .sl-n2.sl-b {
  right: -10%;
}

.sl-n2 .sl-fighter {
  width: 62%;
}

.sl-n2 .sl-fighter + .sl-fighter {
  margin-left: -24%;
}

.sl-art .sl-n3,
.sl-art .sl-n4,
.sl-art .sl-n5 {
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  width: 46%;
}

.sl-art .sl-n3.sl-a,
.sl-art .sl-n4.sl-a,
.sl-art .sl-n5.sl-a {
  left: 0;
}

.sl-art .sl-n3.sl-b,
.sl-art .sl-n4.sl-b,
.sl-art .sl-n5.sl-b {
  right: 0;
}

.sl-n3 .sl-fighter,
.sl-n4 .sl-fighter,
.sl-n5 .sl-fighter {
  width: 46%;
  margin: -0.6rem -0.3rem;
}

/* Groups stand in the middle of their half, so the stage needs less height than a duel's. */
.sl:not(.sl-single) .sl-art {
  height: clamp(9.5rem, 44vw, 22rem);
}

/* The VS diamond: ink, gold edge, between the two. */
.vs {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  transform: translate(-50%, -50%);
}

.vs::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--gold);
  background: var(--ink);
  transform: rotate(45deg);
}

.vs span {
  position: relative;
  color: var(--chalk);
  font: 400 1.2rem/1 var(--font-display);
}

/* The HUD under the fighters: plates, record bars, the countdown. */
.sl-hud {
  position: relative;
  z-index: 3;
  margin-top: -2.25rem;
}

.sl-names,
.sl-plates,
.sl-recs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: start;
  margin: 0;
}

.sl-plates {
  grid-column: 1 / -1;
}

.sl-name {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.sl-name.sl-a {
  align-items: flex-start;
  padding-left: 0.4rem;
}

.sl-name.sl-b {
  align-items: flex-end;
  padding-right: 0.4rem;
  text-align: right;
}

.sl-names .np {
  font-size: clamp(0.8rem, 3.9vw, 1.75rem);
}

.sl-vs {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sl-members {
  color: var(--chalk);
  font: 600 0.95rem/1.25 var(--font-cond);
}

/* A record bar in the fighter's own colour, text in whichever of ink and chalk reads on it. */
.sl-recs {
  margin-top: 0.4rem;
}

.sl-rec {
  display: flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.8rem;
  color: var(--on, var(--ink));
  font: 700 clamp(0.85rem, 3.6vw, 1.15rem) / 1.1 var(--font-cond);
}

.sl-rec::before {
  background: var(--bar, var(--chalk));
  border: 2px solid var(--p, var(--ink));
}

.sl-rec.sl-b {
  justify-content: flex-end;
  text-align: right;
}

.sl-clock {
  display: flex;
  justify-content: center;
  margin: var(--sp-4) 0 0;
}

.countdown {
  padding: 0.4rem 1.1rem;
  color: var(--gold);
  font: 400 1.2rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.countdown::before {
  background: var(--ink);
  border: 2px solid var(--grid);
}

.countdown:empty {
  display: none;
}

/* A royale: its field, every fighter with a small plate. */
.sl-field {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
}

.sl-title {
  margin: 0;
  color: var(--chalk);
  font: 400 clamp(2rem, 10vw, 3.5rem) / 1 var(--font-display);
  text-shadow: 3px 3px 0 var(--ink);
}

.sl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-2);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sl-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.sl-cell-art {
  width: 100%;
  max-width: 9rem;
  margin-bottom: -1rem;
}

.np-sm {
  font-size: clamp(0.65rem, 2.8vw, 0.9rem);
  padding: 0.4em 0.8em;
}

/* No matchup yet: two empty places either side of the diamond. */
.sl-empty .sl-art {
  height: clamp(11rem, 50vw, 20rem);
}

.sl-empty .sl-side {
  align-items: center;
  justify-content: center;
  width: 50%;
}

.sl-empty .sl-a {
  left: 0;
}

.sl-empty .sl-b {
  right: 0;
}

.sl-ghost {
  display: grid;
  place-items: center;
  width: min(70%, 15rem);
  aspect-ratio: 1;
  border: 4px dashed var(--grid);
  border-radius: 50%;
  background: rgb(11 8 32 / 0.55);
  color: var(--mute);
  font: 400 clamp(2.5rem, 12vw, 5rem) / 1 var(--font-display);
}

/* The hook, as the broadcast captions it: a tilted magenta banner, gold under it. */
.banner {
  position: relative;
  z-index: 4;
  margin: var(--sp-5) var(--gutter) 0;
  text-align: center;
}

.banner span {
  display: block;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.9rem 1.1rem 1rem;
  border: 3px solid var(--ink);
  background: var(--magenta);
  box-shadow: 0 0.55rem 0 var(--gold);
  color: var(--chalk);
  font: 400 clamp(1.6rem, 7.6vw, 3.75rem) / 1.06 var(--font-display);
  text-shadow: 3px 3px 0 var(--ink);
  text-wrap: balance;
  transform: rotate(-2.2deg) skewX(-4deg);
}

.next-empty .banner span {
  font-size: clamp(1.2rem, 5.2vw, 2.4rem);
}

.stage-foot {
  display: grid;
  justify-items: center;
}

/* When and where, as the broadcast's lower-third ticker. */
.ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  max-width: 60rem;
  margin: var(--sp-6) 0 0;
  padding: 0.6rem 1.4rem;
}

.ticker::before {
  background: var(--ink);
  border: 2px solid var(--gold);
}

.tk-tag {
  padding: 0.2rem 0.8rem;
  color: var(--ink);
  font: italic 900 1.15rem/1.1 var(--font-cond);
}

.tk-tag::before {
  background: var(--magenta);
}

.tk-text {
  font: 700 1.15rem/1.3 var(--font-cond);
}

.sep {
  color: var(--mute);
}

.pending {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-2) var(--sp-3);
  background: var(--ink);
  color: var(--gold);
  font: 700 1.1rem/1.35 var(--font-cond);
  text-align: center;
}

.pending a {
  color: var(--chalk);
}

.stage-more {
  margin: var(--sp-6) 0 0;
}

/* ---- Pick'em ------------------------------------------------------------------------------- */

.pick {
  width: 100%;
  max-width: 44rem;
  margin: var(--sp-6) 0 0;
  text-align: center;
}

.pick-q {
  margin: 0 0 var(--sp-3);
  color: var(--chalk);
  font: italic 900 1.6rem/1 var(--font-cond);
  text-shadow: 2px 2px 0 var(--ink);
}

.pick-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-inline: 0.5rem;
}

.pick-many .pick-options {
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.pick-many .pick-btn {
  padding-inline: var(--sp-3);
  font-size: clamp(0.75rem, 3.4vw, 0.95rem);
}

.pick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3.5rem;
  padding: var(--sp-2) var(--sp-4);
  border: 0;
  background: none;
  color: var(--chalk);
  font: 400 clamp(0.8rem, 3.6vw, 1.15rem) / 1.15 var(--font-display);
  cursor: pointer;
}

.pick-btn::before {
  background: var(--plate);
  border: 3px solid var(--p, var(--grid));
}

.pick-btn:hover::before {
  background: var(--indigo-hi);
}

.pick-btn[aria-pressed="true"] {
  color: var(--ink);
}

.pick-btn[aria-pressed="true"]::before {
  background: var(--gold);
  border-color: var(--ink);
  box-shadow: 0 0.3rem 0 var(--magenta);
}

.pick-btn:disabled {
  cursor: default;
}

.pick-btn:disabled:not([aria-pressed="true"]) {
  color: var(--mute);
}

.pick-btn:disabled:not([aria-pressed="true"])::before {
  background: var(--ink);
  border-color: var(--grid);
}

.pick-crest {
  width: 1.6rem;
  flex: none;
}

.pick-note {
  max-width: 34em;
  margin: var(--sp-4) auto 0;
  color: var(--chalk);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pickem-line {
  margin: var(--sp-6) 0 0;
  color: var(--mute);
}

/* /pickem: one copy line above the list, and a compact pick group under each fixture. */
[data-js] .no-js-only {
  display: none;
}

.pickem-note {
  margin: 0 0 var(--sp-5);
}

.pickem-nojs {
  margin: 0 0 var(--sp-5);
  color: var(--chalk);
  font: 600 1.15rem/1.35 var(--font-cond);
}

/* On /pickem each open match is its fixture row with the pick buttons under it. */
.pickem-item {
  display: grid;
  gap: var(--sp-3);
}

.pickem-item + .pickem-item {
  margin-top: var(--sp-4);
}

.pick.pick-row {
  max-width: none;
  margin: 0;
  padding-inline: 0.6rem;
  text-align: left;
}

.pick-row .pick-btn span {
  min-width: 0;
}

.pick-row .pick-options {
  gap: var(--sp-2);
  padding-inline: 0.3rem;
}

.pick-row.pick-many .pick-options {
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
}

.pick-row .pick-btn,
.pick-row.pick-many .pick-btn {
  justify-content: flex-start;
  min-height: var(--tap);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.8rem;
}

@media (min-width: 47.5rem) {
  .pick-row.pick-many .pick-options {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  }
}

.pickem-record {
  margin: 0 0 var(--sp-4);
  color: var(--gold);
  font: italic 900 1.35rem/1 var(--font-cond);
}

/* /fair */
.steps {
  margin: 0 0 var(--sp-5);
  padding-left: 1.5rem;
}

.steps li + li {
  margin-top: var(--sp-2);
}

.fair p {
  max-width: 40em;
}

/* ---- Results ------------------------------------------------------------------------------- */

.result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-3);
  margin: 0;
}

.result-what {
  color: var(--gold);
  font: 400 1.35rem/1.15 var(--font-display);
}

.result-how {
  color: var(--chalk);
  font: 600 1.05rem/1.2 var(--font-cond);
}

/* The winner plate: gold, ink type, magenta under it; how it ended on a gold-edged plate. */
.result-latest .result-line,
.result-full .result-line {
  align-items: stretch;
  gap: var(--sp-3);
  margin: var(--sp-2) 0 var(--sp-3) 0.4rem;
}

.result-latest .result-what,
.result-full .result-what {
  padding: 0.55rem 1.1rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 6.2vw, 2.1rem);
  line-height: 1;
}

.result-latest .result-what::before,
.result-full .result-what::before {
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 0 0.3rem 0 var(--magenta);
}

.result-latest .result-how,
.result-full .result-how {
  display: flex;
  align-items: center;
  padding: 0.3rem 1rem;
  font: italic 900 1.4rem/1 var(--font-cond);
}

.result-latest .result-how::before,
.result-full .result-how::before {
  background: var(--ink);
  border: 2px solid var(--gold);
}

.verdict {
  margin: var(--sp-2) 0 0;
  color: var(--magenta);
  font: 700 1.15rem/1.2 var(--font-cond);
}

.verdict:empty {
  display: none;
}

.result-full > * + * {
  margin-top: var(--sp-4);
}

.placings {
  margin: 0;
  padding-left: 1.6rem;
  color: var(--mute);
  font: 700 1rem/1 var(--font-cond);
}

.show-result {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: var(--sp-2) 1.2rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: italic 900 1.1rem/1 var(--font-cond);
  letter-spacing: 0.03em;
  cursor: pointer;
}

.show-result::before {
  background: var(--gold);
}

.show-result:hover::before {
  background: var(--chalk);
}

/* ---- Fixtures: ticker rows, the time on a magenta block ------------------------------------- */

.fixtures {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0 0.45rem;
  list-style: none;
}

.fx {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 4.5rem;
}

.fx::before {
  background: var(--plate);
  border: 2px solid var(--grid);
}

.fx:hover::before,
.fx:focus-within::before {
  border-color: var(--magenta);
}

.fx-when {
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
}

.fx-when::before {
  background: var(--magenta);
}

/* Ink on magenta (5.5:1): the script rewrites the time as a full local date, so it can't rely on
   being large text. */
.fx-when time {
  color: var(--ink);
  font: italic 900 1.15rem/1.05 var(--font-cond);
}

.fx-fmt {
  color: var(--ink);
  font: 700 1rem/1 var(--font-cond);
}

.fx > :not(.fx-when) {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  padding-inline: 1.2rem 1rem;
}

.fx-link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding-block: 0.6rem;
  color: var(--chalk);
  text-decoration: none;
}

.fx-link,
.fx-open .fx-tbd {
  align-self: center;
}

.fx-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.fx-side {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}

.fx-name {
  font: 400 0.9rem/1.15 var(--font-display);
}

.fx-link:hover .fx-name {
  color: var(--gold);
}

.fx-vs {
  padding-left: 0.15rem;
  color: var(--mute);
  font: 700 0.95rem/1 var(--font-cond);
}

.fx-crest {
  width: 1.6rem;
  flex: none;
}

.fx-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.fx-crests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.fx-tbd {
  color: var(--chalk);
  font: 600 1.05rem/1.3 var(--font-cond);
}

.fx-pending {
  padding-bottom: var(--sp-2);
  color: var(--gold);
  font: 700 1rem/1.2 var(--font-cond);
}

.result-row {
  padding-bottom: var(--sp-3);
}

.result-row .result-what {
  font-size: 0.9rem;
}

.result-row .result-how {
  color: var(--mute);
  font-size: 1rem;
}

.fx > .show-result {
  justify-self: start;
  margin: 0 0 var(--sp-3) 1.2rem;
  padding-inline: 1rem;
}

@media (min-width: 47.5rem) {
  .fx {
    grid-template-columns: 9.25rem minmax(0, 1fr);
  }

  .fx-when time {
    font-size: 1.3rem;
  }

  .fx-body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-4);
  }

  .fx-name {
    font-size: 1rem;
  }

  .fx-field {
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--sp-4);
  }
}

/* ---- Video ---------------------------------------------------------------------------------
   .video-tall: the Short's own 9:16 thumbnail, width-capped. .video-compact: no thumbnail, so the
   stadium with both fighters either side of the play mark. The player itself is 9:16. */

.video {
  margin-inline: auto;
}

.video-tall {
  max-width: 20rem;
}

.video-compact {
  max-width: 40rem;
}

.video-poster,
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 3px solid var(--ink);
  background: var(--indigo);
  box-shadow: 0 0 0 2px var(--grid);
  color: var(--chalk);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.video-tall .video-poster,
.video-tall .video-frame {
  aspect-ratio: 9 / 16;
}

.video-compact .video-poster,
.video-compact .video-frame {
  aspect-ratio: 16 / 10;
}

/* The player replaces the button with the button's classes; it is always the Short's 9:16, up to
   20rem wide and centred, whichever poster it replaced. Two classes plus the element out-rank the
   .video-compact/.video-tall poster rules. */
.video iframe.video-frame {
  width: min(100%, 20rem);
  max-width: none;
  max-height: none;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  cursor: auto;
}

.has-player .video-frame,
[data-js] .has-player .video-poster {
  display: none;
}

[data-js] .has-player .video-frame {
  display: block;
}

.video-thumb,
.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg {
  position: absolute;
  inset: 0;
}

.video-art {
  position: absolute;
  inset: 0 0 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.va-fighter {
  position: absolute;
  top: 2%;
  width: 54%;
}

.va-a {
  left: -6%;
}

.va-b {
  right: -6%;
}

.video-art-format {
  flex-direction: column;
  gap: var(--sp-3);
}

.video-format {
  font: 400 clamp(1.5rem, 6vw, 2.25rem) / 1 var(--font-display);
  text-shadow: 3px 3px 0 var(--ink);
}

.video-play {
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  color: var(--chalk);
}

.video-tall .video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.video-play::before {
  background: var(--magenta);
  border: 3px solid var(--ink);
}

.video-play svg {
  width: 2rem;
  height: 2rem;
}

.video-poster:hover .video-play,
.video-frame:hover .video-play {
  color: var(--ink);
}

.video-poster:hover .video-play::before,
.video-frame:hover .video-play::before {
  background: var(--gold);
}

.video-cap {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: var(--sp-2) var(--sp-3);
  background: var(--ink);
  font: 700 1.1rem/1.2 var(--font-cond);
  text-align: center;
}

/* Home: the latest result. Poster first on a phone; beside the result from 36rem. */
.latest {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}

.latest .video-tall {
  max-width: 13rem;
}

.latest-info > * {
  margin: 0 0 var(--sp-3);
}

.latest-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  padding-left: 0.4rem;
}

.latest-names .np {
  font-size: 0.95rem;
}

.latest-vs {
  color: var(--mute);
  font: 700 1rem/1 var(--font-cond);
}

.latest-heading {
  font: 400 1rem/1.25 var(--font-display);
}

.latest-facts {
  color: var(--chalk);
  font: 600 1.1rem/1.35 var(--font-cond);
}

.latest-more {
  padding-top: var(--sp-2);
}

.latest .video-compact {
  max-width: none;
}

/* A Short's own 9:16 thumbnail sits beside the result rather than above it. */
@media (min-width: 36rem) {
  .latest:has(.video-tall) {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .latest .video-tall {
    margin: 0;
  }
}

/* ---- Tables: HUD rows ---------------------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.4rem;
  font: 700 1.2rem/1.2 var(--font-cond);
  font-variant-numeric: tabular-nums;
}

.table th,
.table td {
  height: 3.25rem;
  padding: 0 0.35rem;
  text-align: center;
}

.table thead th {
  height: auto;
  padding-bottom: 0.1rem;
  color: var(--mute);
  font: 700 0.95rem/1 var(--font-cond);
  letter-spacing: 0.04em;
}

.table tbody td,
.table tbody th {
  border-block: 2px solid var(--indigo);
  background: var(--plate);
}

.table tbody tr > :first-child {
  border-left: 5px solid var(--p, var(--grid));
}

.table tbody tr > :last-child {
  border-right: 2px solid var(--indigo);
}

.table .t-who {
  width: 100%;
  padding-left: var(--sp-3);
  text-align: left;
  font-weight: 400;
}

.table .t-pos {
  width: 2.5rem;
  color: var(--mute);
  font: 400 1rem/1 var(--font-display);
}

.table thead .t-pos {
  font: 700 0.95rem/1 var(--font-cond);
}

.table .t-pts {
  padding-right: var(--sp-3);
  color: var(--gold);
}

.table tbody .t-pts {
  font: 400 1.1rem/1 var(--font-display);
}

.table .t-lead td,
.table .t-lead th {
  background: var(--indigo-hi);
}

.table .t-lead .t-pos {
  color: var(--chalk);
}

.table .t-form {
  white-space: nowrap;
}

.t-ko {
  color: var(--magenta);
}

.t-up {
  color: var(--gold);
}

.table-note {
  margin-top: var(--sp-2);
}

.form {
  display: inline-flex;
  gap: 0.3rem;
}

.form-mark {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--ink);
  font: 700 0.8rem/1 var(--font-cond);
}

.form-w::before {
  background: var(--gold);
}

.form-d::before {
  background: var(--mute);
}

.form-l {
  color: var(--mute);
}

.form-l::before {
  border: 1px solid var(--grid);
}

/* ---- Belt, facts, seed, links, pager ------------------------------------------------------- */

.belt {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
}

.belt-ring {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  overflow: hidden;
  border: 5px solid var(--gold);
  border-radius: 50%;
  background: var(--indigo-hi);
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 7px var(--magenta);
}

.belt-art {
  width: 160%;
  max-width: none;
  margin: -26% 0 0 -30%;
}

.belt-empty .belt-ring {
  display: grid;
  place-items: center;
  border-style: dashed;
  background: var(--plate);
}

.belt-empty .belt-ring::after {
  content: "?";
  color: var(--mute);
  font: 400 3rem/1 var(--font-display);
}

.belt-info {
  min-width: 0;
}

.belt-name {
  margin: 0 0 var(--sp-3);
}

.belt-name a {
  text-decoration: none;
}

.belt-name .np {
  font-size: clamp(1rem, 5vw, 1.5rem);
}

.belt-info .small {
  margin: 0;
  font-size: 1rem;
}

@media (min-width: 47.5rem) {
  .belt {
    grid-template-columns: 10.5rem minmax(0, 1fr);
  }

  .belt-ring {
    width: 10.5rem;
    height: 10.5rem;
  }
}

/* Match facts: slanted rows, the label in gold. */
.meta {
  display: grid;
  gap: 0.4rem;
  margin: var(--sp-6) 0 0;
  padding: 0 0.45rem;
}

.meta div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 3.1rem;
}

.meta div::before {
  background: var(--plate);
  border: 2px solid var(--indigo-hi);
}

.meta dt {
  padding-left: 1rem;
  color: var(--gold);
  font: italic 900 1.1rem/1 var(--font-cond);
}

.meta dd {
  margin: 0;
  padding: 0.45rem 1rem 0.45rem 0;
  font: 700 1.15rem/1.25 var(--font-cond);
}

.hash {
  padding: var(--sp-3) var(--sp-4);
  border-left: 5px solid var(--magenta);
  background: var(--ink);
  font: 600 1.05rem/1.4 var(--font-cond);
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.seed-ok {
  color: var(--gold);
  font: 700 1.15rem/1.3 var(--font-cond);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: 0;
  padding: 0 0.45rem;
  list-style: none;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: var(--sp-2) 1.6rem;
  color: var(--chalk);
  font: italic 900 1.3rem/1 var(--font-cond);
  text-decoration: none;
}

.links a::after {
  content: "\2192";
  font-style: normal;
}

.links a::before {
  background: var(--ink);
  border: 2px solid var(--magenta);
}

.links li:first-child a::before {
  background: var(--magenta);
  border: 3px solid var(--ink);
  box-shadow: 0 0.3rem 0 var(--gold);
}

.links a:hover {
  color: var(--ink);
}

.links a:hover::before {
  background: var(--gold);
}

.pager {
  display: grid;
  gap: var(--sp-3);
  margin-block: var(--sp-6) var(--sp-7);
  padding: 0 0.45rem;
}

.pager a {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-3) 1.4rem;
  color: var(--chalk);
  text-decoration: none;
}

.pager a::before {
  background: var(--plate);
  border: 2px solid var(--grid);
}

.pager a:hover::before {
  border-color: var(--magenta);
}

.pager-dir {
  color: var(--magenta);
  font: italic 900 1.05rem/1.1 var(--font-cond);
}

.pager-what {
  font: 400 0.95rem/1.25 var(--font-display);
}

.pager-next {
  text-align: right;
}

@media (min-width: 47.5rem) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }
}


/* ---- The stage on a wider screen: the fighters at the stage's full width, the HUD across. ---- */

@media (min-width: 47.5rem) {
  .stage {
    padding-block: var(--sp-4) var(--sp-7);
  }

  .stage-bg img {
    object-position: center 60%;
  }

  .sl-art {
    height: 27rem;
  }

  .sl-art .sl-side {
    width: 31rem;
  }

  .sl-art .sl-a {
    left: calc(50% - 30.5rem);
  }

  .sl-art .sl-b {
    right: calc(50% - 30.5rem);
  }

  .sl-art .sl-n2 {
    width: 29rem;
  }

  .sl-art .sl-n2.sl-a {
    left: calc(50% - 33rem);
  }

  .sl-art .sl-n2.sl-b {
    right: calc(50% - 33rem);
  }

  .sl-art .sl-n3,
  .sl-art .sl-n4,
  .sl-art .sl-n5 {
    width: 24rem;
  }

  .sl-art .sl-n3.sl-a,
  .sl-art .sl-n4.sl-a,
  .sl-art .sl-n5.sl-a {
    left: calc(50% - 27rem);
  }

  .sl-art .sl-n3.sl-b,
  .sl-art .sl-n4.sl-b,
  .sl-art .sl-n5.sl-b {
    right: calc(50% - 27rem);
  }

  .vs {
    width: 5.5rem;
    height: 5.5rem;
  }

  .vs::before {
    border-width: 5px;
  }

  .vs span {
    font-size: 1.75rem;
  }

  .sl-hud {
    max-width: 62rem;
    margin: -3rem auto 0;
  }

  .sl-names,
  .sl-plates,
  .sl-recs {
    column-gap: 12rem;
  }

  .sl-recs {
    margin-top: 0.6rem;
  }

  .sl-rec {
    min-height: 2.4rem;
  }

  /* The countdown sits between the plates, under the diamond. */
  .sl-hud .sl-clock {
    position: absolute;
    left: 50%;
    top: 0.4rem;
    margin: 0;
    transform: translateX(-50%);
  }

  .countdown {
    padding: 0.6rem 1.4rem;
    font-size: 1.6rem;
  }

  .sl-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 62rem;
  }

  .sl-empty .sl-art {
    height: 20rem;
  }

  .banner {
    margin-top: var(--sp-6);
  }

  .banner span {
    padding: 1.2rem 2rem 1.4rem;
  }

  .ticker {
    margin-top: var(--sp-7);
    padding: 0.75rem 2rem;
  }

  .tk-tag,
  .tk-text {
    font-size: 1.35rem;
  }

  .pick-q {
    font-size: 2rem;
  }

  .pick-btn {
    min-height: 4rem;
  }
}

/* ---- Quiet sections, page heads ------------------------------------------------------------ */

/* The note for platform reviewers on the home page: footer type, just above the footer. */
.colophon {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--grid);
  background: var(--ink);
  color: var(--mute);
  font-size: 0.9rem;
}

.colophon p {
  max-width: 52em;
  margin: 0;
}

.colophon a {
  color: var(--chalk);
}

.page-head {
  padding-block: var(--sp-6) var(--sp-2);
}

.page-title {
  margin: 0 0 var(--sp-4);
  color: var(--chalk);
  font: italic 900 clamp(2.5rem, 9vw, 4.5rem) / 0.95 var(--font-cond);
  text-transform: uppercase;
}

.lede {
  max-width: 38em;
  font-size: 1.1rem;
}

.cta-row {
  margin: 0;
}

/* ---- League pages: page head, days, fighters, standings ------------------------------------- */

/* A list page's title: the h1 on a magenta plate over a short band of the stadium. */
.stage-head {
  padding-block: var(--sp-6) var(--sp-5);
}

.stage-head .page-title {
  margin: 0;
}

.stage-head .page-title > span {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.35rem 1.1rem 0.25rem 0.9rem;
}

.stage-head .page-title > span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(var(--slant));
  background: var(--magenta);
  border: 3px solid var(--ink);
  box-shadow: 0 0.35rem 0 var(--gold);
}

.stage-head .lede {
  margin: var(--sp-5) 0 0;
  color: var(--chalk);
}

.list-page {
  padding-bottom: var(--sp-7);
}

.empty {
  margin: 0;
  color: var(--chalk);
  font: 600 1.15rem/1.35 var(--font-cond);
}

.section-note {
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-3);
}

.h3 {
  margin: var(--sp-5) 0 var(--sp-3);
  color: var(--chalk);
  font: italic 900 1.35rem/1.1 var(--font-cond);
}

/* A broadcast day: its date, the round on the right, a magenta rule under both. */
.day + .day {
  margin-top: var(--sp-5);
}

.day-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--sp-3);
  margin: 0 0 var(--sp-3);
  padding: 0 0.45rem 0.3rem;
  border-bottom: 2px solid var(--magenta);
  color: var(--chalk);
  font: italic 900 1.3rem/1.15 var(--font-cond);
}

.day-week {
  color: var(--mute);
  font: 700 1rem/1.15 var(--font-cond);
  font-style: normal;
}

/* The roster grid: each fighter's ringed portrait beside its name plate. */
.fcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
  padding: 0 0.45rem;
  list-style: none;
}

.fcard {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 6.5rem;
  padding: var(--sp-3) var(--sp-4);
  scroll-margin-top: var(--sp-5);
}

.fcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid var(--grid);
  border-left: 6px solid var(--p, var(--grid));
  background: var(--plate);
  transform: skewX(var(--slant));
}

.fcard:hover::before,
.fcard:focus-within::before,
.fcard:target::before {
  border-color: var(--magenta);
  border-left-color: var(--p, var(--magenta));
}

.fcard-id {
  min-width: 0;
}

.fcard-name {
  margin: 0;
  font: 400 1.15rem/1.15 var(--font-display);
}

.fcard-name a {
  color: var(--chalk);
  text-decoration: none;
}

/* The whole card is the link's target. */
.fcard-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.fcard-name a:hover {
  color: var(--gold);
}

.fcard-title {
  margin: var(--sp-1) 0 0;
  color: var(--mute);
  font: 600 1.05rem/1.2 var(--font-cond);
}

.fcard-rec {
  margin: var(--sp-1) 0 0;
  color: var(--chalk);
  font: 700 1rem/1.2 var(--font-cond);
}

/* The full table scrolls inside its own frame on a phone; the page never does. */
/* position: relative so the table's visually-hidden text is clipped here too, not left hanging off the page. */
.scroller {
  position: relative;
  overflow-x: auto;
  margin-inline: -0.2rem;
  padding-inline: 0.2rem;
}

.scroller:focus-visible {
  outline-offset: 4px;
}

/* On a phone the fighter column takes only what its names need, so the points stay in view and
   win %, form and streak scroll in; from 47.5rem the table fills the width as the others do. */
.table-full {
  min-width: max-content;
}

.table-full .t-who {
  width: auto;
  white-space: nowrap;
}

@media (min-width: 47.5rem) {
  .table-full {
    min-width: 40rem;
  }

  .table-full .t-who {
    width: 100%;
  }
}

.table .t-pct,
.table .t-streak {
  white-space: nowrap;
}

.lineage {
  display: grid;
  gap: var(--sp-1);
  margin: 0;
  padding: 0 0 0 1.6rem;
  color: var(--mute);
  font: 700 1rem/1 var(--font-cond);
}

.lineage li > * {
  vertical-align: middle;
}

.lineage-how {
  margin-left: var(--sp-3);
  color: var(--chalk);
  font: 600 1rem/1.2 var(--font-cond);
}

/* A fighter's page: the fighter big on the stadium, its plate and title beside it. */
.fh {
  display: grid;
  justify-items: center;
  text-align: center;
}

.fh-art {
  width: min(64vw, 17rem);
  margin-bottom: -1.5rem;
}

.fh-fighter {
  width: 100%;
}

.fh-id {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
}

.fh-name {
  margin: 0;
}

.fh-name .np {
  font-size: clamp(1.4rem, 7vw, 2.5rem);
}

.fh-title {
  margin: 0;
  color: var(--chalk);
  font: italic 900 clamp(1.3rem, 5.5vw, 1.8rem)/1.1 var(--font-cond);
}

.fh-rec,
.fh-tag {
  margin: 0;
}

.fh-tag {
  color: var(--chalk);
  font: 700 1.1rem/1.2 var(--font-cond);
}

.fh-lore {
  max-width: 38em;
  font-size: 1.05rem;
}

.fh-quote {
  margin: var(--sp-4) 0 0;
  padding-left: var(--sp-3);
  border-left: 3px solid var(--magenta);
  font: italic 700 1.3rem/1.2 var(--font-cond);
}

.fh-abilities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
  padding: 0 0 0 1.2rem;
  font: 700 1.15rem/1.3 var(--font-cond);
}

.fh-abilities li::marker {
  color: var(--magenta);
}

.fh-card {
  margin: var(--sp-5) 0 0;
}

.fh-card img {
  width: 100%;
  max-width: 36rem;
}

.meta-record {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-record div {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* Gold is for winners and the belt; a record's labels are muted. */
.meta-record dt {
  color: var(--mute);
}

.meta-record dd {
  font: 400 1.15rem/1 var(--font-display);
}

.fh-form {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-2);
}

.fh-form-label {
  color: var(--mute);
  font: 700 1rem/1 var(--font-cond);
}

.rivals {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rivals li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--sp-3);
  border-bottom: 1px solid var(--grid);
}

.rival-h2h {
  color: var(--chalk);
  font: 700 1.05rem/1.2 var(--font-cond);
}

@media (min-width: 47.5rem) {
  .stage-head {
    padding-block: var(--sp-7) var(--sp-6);
  }

  .fh {
    grid-template-columns: 26rem minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    column-gap: var(--sp-6);
    text-align: left;
  }

  .fh-art {
    width: 26rem;
    margin: 0;
  }

  .fh-id {
    justify-items: start;
  }
}

/* ---- Legal pages --------------------------------------------------------------------------- */

.doc-meta {
  margin: 0 0 var(--sp-5);
  color: var(--mute);
  font: 600 1.05rem/1.35 var(--font-cond);
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  padding-block: var(--sp-4) var(--sp-6);
}

.toc {
  padding: var(--sp-4);
  border: 1px solid var(--grid);
  background: var(--plate);
}

.toc-title {
  margin: 0 0 var(--sp-3);
  color: var(--mute);
  font: 600 1rem/1 var(--font-cond);
}

.toc ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc ol ol {
  gap: 0.3rem;
  margin: 0.45rem 0 0.35rem 0.75rem;
}

.toc a {
  color: var(--chalk);
  font-size: 0.93rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.toc ol ol a {
  color: var(--mute);
}

.toc > ol > li > a {
  font: 700 1.05rem/1.25 var(--font-cond);
}

@media (max-width: 67.99rem) {
  .toc ol ol {
    display: none;
  }
}

@media (min-width: 68rem) {
  .legal {
    grid-template-columns: 15rem minmax(0, 44rem);
    gap: 4rem;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: var(--sp-5);
    max-height: calc(100vh - 3rem);
    overflow: auto;
  }
}

.prose {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--chalk);
  scroll-margin-top: var(--sp-5);
}

.prose h2 {
  margin: 3rem 0 1rem;
  font: italic 900 clamp(1.75rem, 4.5vw, 2.25rem) / 1.05 var(--font-cond);
  text-transform: uppercase;
}

.prose h3 {
  margin: 2.25rem 0 0.75rem;
  font: 700 1.35rem/1.2 var(--font-cond);
}

.prose h4 {
  margin: 1.75rem 0 0.5rem;
  font: 700 1.15rem/1.25 var(--font-cond);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--gold);
}

.prose strong {
  font-weight: 650;
}

.prose code {
  padding: 0.05em 0.3em;
  background: var(--ink);
  font: 600 1.05em/1.4 var(--font-cond);
  overflow-wrap: anywhere;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose .doc-section:first-of-type h2 {
  margin-top: 0;
}

.prose .part-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 6vw, 3rem);
}

.doc-part + .doc-part {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 4px solid var(--grid);
}

.table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--grid);
}

.prose table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--grid);
  text-align: left;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--ink);
  color: var(--mute);
  font: 600 0.85rem/1.2 var(--font-cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem 1.35rem;
  border: 1px solid var(--grid);
  border-left: 4px solid var(--gold);
  background: var(--plate);
}

.prose .summary-title {
  margin: 0 0 0.75rem;
  font: 700 1.25rem/1.1 var(--font-cond);
}

.summary ul {
  margin: 0;
}

.summary li:last-child {
  margin-bottom: 0;
}

.callout {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--gold);
  background: var(--plate);
}

/* ---- Footer and 404 ------------------------------------------------------------------------ */

.site-footer {
  padding-block: var(--sp-6) 3rem;
  border-top: 4px solid var(--magenta);
  background: var(--ink);
  color: var(--mute);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 var(--sp-2);
}

.site-footer a {
  color: var(--chalk);
}

.footer-grid {
  display: grid;
  gap: var(--sp-5);
}

.footer-mark {
  color: var(--chalk);
  font: 400 1.05rem/1.2 var(--font-display);
}

.footer-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.fine {
  font-size: 0.85rem;
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.3fr;
  }
}

.notfound {
  padding-block: clamp(4rem, 12vw, 8rem);
}

.notfound-code {
  margin: 0 0 1.25rem;
  color: var(--gold);
  font: 400 clamp(5rem, 26vw, 11rem) / 0.8 var(--font-display);
}

/* ---- Motion and print ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .pick-btn::before,
  .show-result::before,
  .btn::before,
  .links a::before,
  .video-play::before,
  .fx::before,
  .pager a::before {
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
}

@media print {
  body,
  .prose h2,
  .prose h3,
  .prose h4,
  .page-title {
    background: none;
    color: var(--ink);
  }

  .masthead,
  .site-footer,
  .toc,
  .skip,
  .pick {
    display: none;
  }

  .legal {
    display: block;
  }
}

/* Share my picks: the control (shown by the script once there is a pick) and /pickem/shared. */
.share {
  margin: var(--sp-6) 0;
  text-align: center;
}

.stage-foot .share {
  margin: var(--sp-4) 0 0;
}

.share-note {
  max-width: 34em;
  margin: var(--sp-3) auto 0;
  color: var(--chalk);
  font-size: 0.9rem;
  line-height: 1.45;
}

.share-field {
  display: block;
  width: 100%;
  max-width: 34em;
  margin: var(--sp-3) auto 0;
  padding: var(--sp-2) var(--sp-3);
  border: 2px solid var(--grid);
  background: var(--ink);
  color: var(--chalk);
  font: inherit;
  font-size: 0.9rem;
}

/* The live region stays rendered even when empty, so its announcements are heard. */
.share-status {
  min-height: 1.2em;
  margin: var(--sp-2) 0 0;
  color: var(--gold);
  font: 700 1rem/1.2 var(--font-cond);
}

.their-state {
  margin: 0;
  color: var(--mute);
  font: 600 1rem/1.3 var(--font-cond);
}

.their-pick {
  margin: 0;
  color: var(--chalk);
  font: 700 1.05rem/1.3 var(--font-cond);
}

.their-pick span {
  color: var(--gold);
}

.their-verdict {
  margin: var(--sp-2) 0 0;
  color: var(--magenta);
  font: 700 1.05rem/1.2 var(--font-cond);
}

.their-verdict:empty {
  display: none;
}

/* Spoiler-flash guard: for a visitor with picks (data-picks, set by the synchronous pre script),
   results, tallies and match thumbnails stay invisible until the main script has gated them
   (data-ready; the pre script sets it after 3 s anyway). */
html[data-picks]:not([data-ready]) [data-result-for], html[data-picks]:not([data-ready]) [data-tally-for], html[data-picks]:not([data-ready]) [data-thumb-for] { visibility: hidden; }

/* Fighter palettes (generated from content/fighters) */
.f-brackett{--p:#b8b060;--s:#6f6a2e;--a:#ff7a2a;--bar:#b8b060;--on:#0b0820}
.f-bruno-buzz{--p:#ffb000;--s:#a86d00;--a:#d8dee6;--bar:#ffb000;--on:#0b0820}
.f-callback{--p:#d9a066;--s:#8a5a2e;--a:#3de0ff;--bar:#d9a066;--on:#0b0820}
.f-encore{--p:#e7a0ff;--s:#9a5fb5;--a:#ffd76e;--bar:#e7a0ff;--on:#0b0820}
.f-glass-gus{--p:#c6fff1;--s:#6cc4b0;--a:#ff3b5c;--bar:#c6fff1;--on:#0b0820}
.f-horseshoe{--p:#f25fd0;--s:#9c2f86;--a:#59c8ff;--bar:#f25fd0;--on:#0b0820}
.f-jitterbolt{--p:#fff04a;--s:#c9a800;--a:#4de8ff;--bar:#fff04a;--on:#0b0820}
.f-jumpcut{--p:#ff8a7a;--s:#b44c43;--a:#f6f6f6;--bar:#ff8a7a;--on:#0b0820}
.f-kablooey{--p:#e8403a;--s:#8c1f1c;--a:#fff2a8;--bar:#e8403a;--on:#0b0820}
.f-lustre{--p:#f7b6cf;--s:#c27993;--a:#f2fcff;--bar:#f7b6cf;--on:#0b0820}
.f-madame-malady{--p:#b07cff;--s:#6a40b8;--a:#7dffb5;--bar:#b07cff;--on:#0b0820}
.f-matchstick{--p:#ff7a1f;--s:#b23b0c;--a:#ffe14d;--bar:#ff7a1f;--on:#0b0820}
.f-mother-hen{--p:#f4ead4;--s:#c4a774;--a:#ff4d3a;--bar:#f4ead4;--on:#0b0820}
.f-pip{--p:#3f8cff;--s:#1d4fb0;--a:#ffe66d;--bar:#3f8cff;--on:#0b0820}
.f-prof-pendulum{--p:#2fc4b2;--s:#1a7a6e;--a:#ff9a4d;--bar:#2fc4b2;--on:#0b0820}
.f-seltzer{--p:#7ff5c8;--s:#3fa784;--a:#e6fffa;--bar:#7ff5c8;--on:#0b0820}
.f-sinkhole{--p:#6b7d99;--s:#38445a;--a:#b799ff;--bar:#6b7d99;--on:#0b0820}
.f-siphon{--p:#d6336c;--s:#7d1638;--a:#ffd6e2;--bar:#ffd6e2;--on:#0b0820}
.f-sir-clank{--p:#c3ccd8;--s:#66768c;--a:#f2c23a;--bar:#c3ccd8;--on:#0b0820}
.f-sleet{--p:#9fe6ff;--s:#5a9ccc;--a:#ffffff;--bar:#9fe6ff;--on:#0b0820}
.f-tetherly{--p:#2fd66a;--s:#16843d;--a:#ffcf3d;--bar:#2fd66a;--on:#0b0820}
.f-thistle{--p:#6fae5a;--s:#3c6b30;--a:#d08aff;--bar:#6fae5a;--on:#0b0820}
.f-tumble{--p:#8e7a68;--s:#4f4237;--a:#ffb35c;--bar:#8e7a68;--on:#0b0820}
.f-vexa{--p:#94e03a;--s:#4d8a1c;--a:#c76bff;--bar:#94e03a;--on:#0b0820}