@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f1efe8;
  --ink: #0d0d0d;
  --white: #ffffff;
  --muted: #68665f;
  --soft: #d8d5cb;
  --accent: #d42a20;
  --row: 47px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(14px, 3vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.reader-open { overflow: hidden; }

body {
  margin: 0;
  font: 400 16px/1.45 var(--font);
  background: var(--paper);
  color: var(--ink);
}

button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 12px; background: var(--ink); color: var(--white); }
.skip:focus { top: 8px; }

/* ---------- masthead ---------- */

.masthead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  padding: 14px var(--gutter) 10px;
  border-bottom: 4px solid var(--ink);
}
.wordmark {
  margin: 0; font-weight: 900; font-stretch: 62%; font-size: clamp(38px, 6vw, 62px); line-height: 0.82;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 75%; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }

/* ---------- hero: the champion and its results ---------- */

.hero { background: var(--ink); color: var(--white); border-bottom: 6px solid var(--accent); }
.hero:empty { display: none; }
.hero__in {
  max-width: 1560px; margin: 0 auto; padding: clamp(20px, 2.6vw, 38px) var(--gutter) clamp(24px, 2.8vw, 42px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: end;
}
.hero__cover {
  display: block; width: clamp(150px, 19vw, 300px); aspect-ratio: 4 / 5; padding: 0; margin: 0 8px 8px 0; border: 3px solid var(--white);
  background: var(--white); cursor: pointer; overflow: hidden; box-shadow: 8px 8px 0 var(--accent);
}
.hero__cover:disabled { cursor: default; }
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.hero__cover:not(:disabled):hover .hero__img { transform: scale(1.04); }
.hero__text { min-width: 0; padding-bottom: 8px; }
.hero__label {
  display: inline-block; padding: 5px 10px 4px; background: var(--accent); color: var(--white);
  font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero__head {
  margin: 12px 0 0; font-weight: 900; font-stretch: 62%; font-size: clamp(44px, 8.4vw, 132px); line-height: 0.84;
  letter-spacing: -0.012em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere;
}
.hero__path { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(14px, 1.6vw, 22px) 0 clamp(14px, 1.6vw, 20px); padding: 0; list-style: none; }
.hero__path li {
  display: flex; align-items: baseline; gap: 7px; padding: 6px 10px 5px; border: 1px solid #77756e;
  font-weight: 900; font-stretch: 80%; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero__path b { font-weight: 800; font-stretch: 100%; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #b9b6ad; }
.hero__opp { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-stretch: 72%; font-size: 13px; text-transform: uppercase; color: #b9b6ad; }
.hero__opp::before { content: "v "; text-transform: none; }
.hero__read {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border: 0; background: var(--white); color: var(--ink);
  font-weight: 900; font-stretch: 72%; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.hero__read:not(:disabled):hover { background: var(--accent); color: var(--white); }
.hero :focus-visible { outline-color: var(--white); }

main { padding: 0 var(--gutter) 64px; max-width: 1560px; margin: 0 auto; }

.status {
  margin: 14px 0 0; padding: 8px 12px; border: 2px dashed var(--ink); font-weight: 700; font-size: 14px;
}

.section { padding-top: 26px; scroll-margin-top: 8px; }
.section > h2 {
  display: inline-block; margin: 0 0 16px; padding: 5px 12px 4px; background: var(--ink); color: var(--white);
  font-weight: 900; font-stretch: 66%; font-size: 22px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
}
.empty { margin: 0; color: var(--muted); font-weight: 600; }

/* ---------- bracket ---------- */

.tree {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.12fr);
  grid-template-rows: auto repeat(16, var(--row));
  column-gap: clamp(26px, 3vw, 48px);
}
.round { display: contents; }
.round__h {
  grid-row: 1; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink);
  font-weight: 800; font-stretch: 75%; font-size: 13px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
}
.match, .bye { position: relative; z-index: 1; align-self: center; display: flex; flex-direction: column; min-width: 0; }
.match__id { display: none; }
.match__tie { position: absolute; right: 0; bottom: -15px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.slot {
  display: grid; grid-template-columns: 30px 20px minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
  width: 100%; height: 42px; padding: 0 10px 0 0; margin: 0;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); text-align: left; cursor: pointer;
}
.slot + .slot, .slot + .bye__empty { margin-top: -2px; }
.slot:disabled { cursor: default; }
.slot:not(:disabled):hover { background: var(--soft); }
.slot__thumb { width: 30px; height: 38px; object-fit: cover; display: block; border-right: 2px solid var(--ink); background: var(--soft); }
.slot__thumb.is-pending { background: repeating-linear-gradient(135deg, var(--soft) 0 4px, var(--white) 4px 8px); }
.slot__seed { font-weight: 800; font-size: 12px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot__title {
  font-weight: 800; font-stretch: 70%; font-size: 15px; line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.slot__votes { font-weight: 900; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 14px; text-align: right; }
.slot__note { font-weight: 800; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slot.is-winner { background: var(--ink); color: var(--white); }
.slot.is-winner .slot__seed { color: #b9b6ad; }
.slot.is-winner:not(:disabled):hover { background: #2a2a2a; }
.slot.is-out .slot__votes { color: var(--muted); }
.slot--tbd { grid-template-columns: 20px minmax(0, 1fr); padding-left: 10px; cursor: default; border-style: dashed; background: transparent; }
.slot--tbd .slot__title { color: var(--muted); font-size: 13px; }

.bye__empty {
  height: 42px; display: flex; align-items: center; padding-left: 12px; border: 2px dashed var(--muted); color: var(--muted);
  font-weight: 700; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}

.champion {
  grid-column: 5; grid-row: 6 / span 8; position: relative; z-index: 1; align-self: stretch;
  display: flex; flex-direction: column; padding: 0; margin: 0; border: 3px solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; text-align: left; overflow: hidden; min-height: 0;
}
.champion__img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: cover; object-position: center 30%; display: block; background: var(--soft); }
.champion__band { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 9px 12px 11px; border-top: 3px solid var(--accent); }
.champion__seed { font-weight: 800; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #b9b6ad; }
.champion__title { font-weight: 900; font-stretch: 64%; font-size: clamp(22px, 2.3vw, 34px); line-height: 0.95; text-transform: uppercase; }
.champion:hover .champion__img { filter: contrast(1.08); }
.champion--tbd { justify-content: center; align-items: center; background: transparent; color: var(--muted); border-style: dashed; cursor: default; }

.wires { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.wire { fill: none; stroke: var(--ink); stroke-width: 2; }
.tree__key { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.seeds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.seeds li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; column-gap: 6px; padding: 4px 0 3px; border-top: 1px solid var(--soft); font-size: 13px; }
.seeds li.is-bye { border-top-color: var(--ink); }
.seeds__n { font-weight: 900; font-variant-numeric: tabular-nums; }
.seeds__title { font-weight: 800; font-stretch: 70%; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seeds__score { font-variant-numeric: tabular-nums; color: #3b3a36; }

/* ---------- match by match ---------- */

.matchlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mcard { display: flex; flex-direction: column; min-width: 0; border: 2px solid var(--ink); background: var(--white); }
.mcard--semifinal { grid-column: span 2; }
.mcard--final { grid-column: 1 / -1; border-width: 3px; }
.mcard__h {
  display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px 5px; border-bottom: 2px solid var(--ink);
  font-weight: 800; font-stretch: 75%; font-size: 12px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
}
.mcard__h span:last-child { color: var(--muted); }
.mcard--final .mcard__h { background: var(--accent); color: var(--white); border-bottom-color: var(--ink); }
.mcard--final .mcard__h span:last-child { color: var(--white); }
.mside { padding: 0 0 8px; }
.mside + .mside { border-top: 1px solid var(--soft); }
.mside.is-winner { background: var(--ink); color: var(--white); }
.mrow {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
  width: 100%; padding: 8px 10px 4px; margin: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
}
.mrow:disabled { cursor: default; }
.mrow:not(:disabled):hover .mrow__title { text-decoration: underline; text-decoration-thickness: 2px; }
.mrow__seed { font-weight: 800; font-size: 12px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.mside.is-winner .mrow__seed { color: #b9b6ad; }
.mrow__title { font-weight: 800; font-stretch: 70%; font-size: 16px; line-height: 1.04; text-transform: uppercase; }
.mrow__votes { font-weight: 900; font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.mside:not(.is-winner) .mrow__votes { color: var(--muted); }
.mvoters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 10px 0 38px; min-height: 19px; }
.mvoters span { padding: 1px 5px 0; border: 1px solid var(--soft); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #3b3a36; }
.mvoters i { font-size: 11px; color: var(--muted); }
.mside.is-winner .mvoters span { border-color: #6b6962; color: #e9e6dd; }
.mcard__tie { margin: 0; padding: 6px 10px; border-top: 2px solid var(--ink); font-size: 12px; font-weight: 700; }
.mcard--final .mrow__title { font-size: clamp(20px, 2.2vw, 30px); }
.mcard--final .mrow__votes { font-size: clamp(30px, 3vw, 44px); }
.mcard--final .mrow { padding-top: 12px; }
.mcard--final .mside { padding-bottom: 12px; }

/* ---------- covers ---------- */

.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; align-items: start; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__result { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 9px 0 0; padding-top: 7px; border-top: 2px solid var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.card__result b { font-weight: 800; }
.card__result span::before { content: "·"; margin: 0 7px; color: var(--muted); }
.card.is-champion .card__result b { color: var(--accent); }
.cover { display: flex; flex-direction: column; gap: 9px; padding: 0; margin: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; }
.cover:disabled { cursor: default; }
.cover__frame { position: relative; display: block; aspect-ratio: 4 / 5; border: 2px solid var(--ink); background: var(--white); overflow: hidden; }
.cover__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.cover__img.is-pending { display: block; background: repeating-linear-gradient(135deg, var(--soft) 0 8px, var(--white) 8px 16px); }
.cover:not(:disabled):hover .cover__img { transform: scale(1.03); }
.cover:not(:disabled):hover .cover__frame { box-shadow: 5px 5px 0 var(--ink); }
.cover__seed {
  position: absolute; left: 0; top: 0; min-width: 30px; padding: 4px 7px 3px; background: var(--ink); color: var(--white);
  font-weight: 900; font-stretch: 70%; font-size: 19px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums;
}
.cover__mark {
  position: absolute; right: 0; bottom: 0; padding: 4px 8px 3px; background: var(--accent); color: var(--white);
  font-weight: 800; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.cover__title { font-weight: 900; font-stretch: 66%; font-size: clamp(20px, 1.9vw, 27px); line-height: 0.98; text-transform: uppercase; text-wrap: balance; }
.cover__pending { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- leaderboard ---------- */

.tablewrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table caption { caption-side: bottom; text-align: left; padding: 8px 12px; font-size: 13px; color: var(--muted); border-top: 2px solid var(--ink); }
.table th, .table td { padding: 6px 12px; border-bottom: 1px solid var(--soft); text-align: left; white-space: nowrap; }
.table thead th { border-bottom: 2px solid var(--ink); font-weight: 800; font-stretch: 75%; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table abbr { text-decoration: none; }
.pos { font-weight: 900; font-stretch: 70%; font-size: 22px; }
.rowlink { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 800; font-stretch: 70%; font-size: 17px; text-transform: uppercase; text-align: left; white-space: normal; }
.rowlink:hover span { text-decoration: underline; text-decoration-thickness: 2px; }
.rowlink__thumb { width: 30px; height: 38px; object-fit: cover; border: 2px solid var(--ink); flex: none; background: var(--soft); }
.score { min-width: 150px; }
.score__n { font-weight: 900; font-size: 18px; }
.score__bar { display: block; height: 5px; margin-top: 3px; background: var(--soft); }
.score__bar i { display: block; height: 100%; background: var(--ink); }
.crit, .rank, .seedc { color: #3b3a36; font-size: 14px; }
.finish { font-weight: 700; font-size: 14px; }
tr.is-champion .finish { color: var(--accent); font-weight: 800; }

/* ---------- ballots ---------- */

.spoiler > summary {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 14px; border: 2px solid var(--ink); background: var(--white);
  font-weight: 800; cursor: pointer; list-style: none;
}
.spoiler > summary::-webkit-details-marker { display: none; }
.spoiler > summary::before { content: "+"; font-weight: 900; font-size: 18px; line-height: 1; }
.spoiler[open] > summary::before { content: "−"; }
.spoiler__warn { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ballotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 14px; align-items: start; }
.ballot { border: 2px solid var(--ink); background: var(--white); }
.ballot > summary { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 9px 12px; cursor: pointer; list-style: none; }
.ballot > summary::-webkit-details-marker { display: none; }
.ballot__judge { font-weight: 900; font-stretch: 70%; font-size: 18px; text-transform: uppercase; }
.ballot__panel { justify-self: end; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); align-self: center; }
.ballot__top { grid-column: 1 / -1; font-weight: 700; font-size: 14px; }
.ballot__top::before { content: "1st: "; color: var(--muted); }
.ballot__overall { margin: 0; padding: 10px 12px; border-top: 2px solid var(--ink); font-size: 14px; }
.ballot__rank { margin: 0; padding: 0; list-style: none; counter-reset: place; border-top: 1px solid var(--soft); }
.ballot__rank li { counter-increment: place; display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 8px; padding: 8px 12px; border-bottom: 1px solid var(--soft); font-size: 14px; }
.ballot__rank li:last-child { border-bottom: 0; }
.ballot__rank li::before { content: counter(place); font-weight: 900; color: var(--muted); grid-row: 1 / span 3; }
.ballot__title { font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.ballot__total { font-weight: 800; font-variant-numeric: tabular-nums; }
.ballot__crit { grid-column: 2 / -1; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.ballot__note { grid-column: 2 / -1; font-size: 13px; line-height: 1.4; }

/* ---------- rules ---------- */

.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; margin: 0; }
.rule { padding-top: 9px; border-top: 2px solid var(--ink); }
.rules dt { margin-bottom: 5px; font-weight: 800; font-stretch: 75%; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.rules dd { margin: 0; font-size: 15px; line-height: 1.45; }

/* ---------- reader ---------- */

.reader {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #121212; color: #f3f3f3; grid-template-rows: auto minmax(0, 1fr);
}
.reader[open] { display: grid; }
.reader::backdrop { background: #000; }
.reader__bar { display: flex; align-items: center; gap: 10px; padding: 8px clamp(8px, 2vw, 18px); border-bottom: 1px solid #3a3a3a; background: #121212; }
.reader__title { flex: 1 1 auto; min-width: 0; margin: 0; font-weight: 900; font-stretch: 66%; font-size: clamp(17px, 2.4vw, 24px); line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__zoom { display: flex; gap: 6px; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 10px;
  border: 1px solid #8a8a8a; background: transparent; color: #f3f3f3; font-weight: 800; font-size: 16px; cursor: pointer;
}
.btn:hover:not(:disabled) { background: #f3f3f3; color: #121212; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn--back { flex: none; padding: 0 12px 0 8px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.btn--level { min-width: 62px; font-size: 13px; font-variant-numeric: tabular-nums; }
.reader :focus-visible { outline-color: #fff; }
.btn--edition {
  position: absolute; right: clamp(10px, 2vw, 22px); bottom: clamp(10px, 2vw, 22px); z-index: 2; min-height: 40px; padding: 0 14px;
  background: #121212; border: 2px solid #f3f3f3; font-stretch: 78%; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55);
}
.btn--edition[hidden] { display: none; }
.ed__short { display: none; }
.btn--edition[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--edition[aria-pressed="true"]:hover:not(:disabled) { background: #fff; color: #121212; border-color: #fff; }
.reader.is-first .reader__page { outline: 4px solid var(--accent); outline-offset: 0; }

.reader__scroll { overflow: auto; overscroll-behavior: contain; padding: 16px 0 56px; outline: none; -webkit-overflow-scrolling: touch; }
.reader__scroll:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.reader__pages { display: flex; flex-direction: column; gap: 14px; margin: 0 auto; }
.reader__page { margin: 0; background: #fff; aspect-ratio: 2 / 3; }
.reader__page img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

.reader__end { max-width: 900px; margin: 30px auto 0; padding: 0 14px; }
.end__nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.btn--end { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; min-height: 56px; text-align: left; font-stretch: 72%; font-size: 17px; text-transform: uppercase; line-height: 1.05; }
.btn--end small { font-size: 10px; letter-spacing: 0.14em; color: #a9a9a9; font-stretch: 100%; }
.btn--end:hover small { color: #444; }
.btn--end:last-child { align-items: flex-end; text-align: right; }
.btn--home { align-items: center; text-align: center; }
.spoiler--dark { margin-top: 18px; }
.spoiler--dark > summary { background: transparent; border-color: #8a8a8a; color: #f3f3f3; }
.notes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.notes li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #3a3a3a; font-size: 14px; line-height: 1.45; }
.notes b { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #a9a9a9; }

/* ---------- narrow layouts ---------- */

@media (max-width: 1180px) {
  .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matchlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcard--semifinal { grid-column: auto; }
}

@media (max-width: 960px) {
  .tree { display: flex; flex-direction: column; gap: 22px; }
  .round { display: flex; flex-direction: column; gap: 12px; }
  .round[data-round="champion"] { order: -1; }
  /* the banner above already shows the champion when the page is this narrow */
  .hero:not(:empty) ~ main .round[data-round="champion"] { display: none; }
  .round__h { margin: 0; }
  .wires { display: none; }
  .match, .bye { align-self: stretch; }
  .match__id { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); }
  .bye { order: calc(10 + var(--seed, 0)); }
  .bye__empty { display: none; }
  .slot { height: 46px; grid-template-columns: 34px 20px minmax(0, 1fr) auto; }
  .slot__thumb { width: 34px; height: 42px; }
  .champion { min-height: 0; flex-direction: row; align-items: stretch; }
  .champion__img { flex: 0 0 34%; min-width: 0; width: 34%; aspect-ratio: 4 / 5; height: auto; }
  .champion__band { flex: 1; justify-content: center; border-top: 0; border-left: 3px solid var(--accent); }
  .champion__title { font-size: clamp(24px, 7vw, 40px); }
  .champion--tbd { min-height: 90px; align-items: center; }
  .rules { grid-template-columns: 1fr; gap: 16px; }
  .crit, .rank, .seedc { display: none; }
  .table th, .table td { padding: 6px 8px; }
  .score { min-width: 96px; }
}

@media (max-width: 700px) {
  .nav { gap: 2px 14px; }
  .nav a { font-size: 13px; letter-spacing: 0.06em; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .cover__title { font-size: 19px; }
  .matchlist { grid-template-columns: 1fr; }
  .seeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn--edition { right: 8px; bottom: 10px; min-height: 34px; min-width: 0; padding: 0 10px; font-size: 11px; opacity: 0.92; }
  .ed__long { display: none; }
  .ed__short { display: inline; }
  .card__result { flex-direction: column; }
  .card__result span::before { content: none; }
  .table th, .table td { padding: 6px 6px; }
  .pos { font-size: 18px; }
  .rowlink { font-size: 15px; gap: 7px; }
  .score { min-width: 74px; }
  .score__n { font-size: 16px; }
  .finish { white-space: normal; font-size: 12px; line-height: 1.15; }
  .hero__in { grid-template-columns: 32% minmax(0, 1fr); align-items: start; }
  .hero__cover { width: auto; margin: 0 5px 5px 0; box-shadow: 5px 5px 0 var(--accent); }
  .hero__head { margin-top: 8px; }
  .hero__path li { font-size: 15px; padding: 5px 8px 4px; }
  .hero__opp { display: none; }
  .btn--back span { display: none; }
  .btn--back { padding: 0 8px; }
  .end__nav { grid-template-columns: 1fr 1fr; }
  .btn--home { grid-column: 1 / -1; order: 3; }
  .reader__scroll { padding-top: 0; }
  .reader__pages { gap: 8px; }
  .ballotgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover__img, .hero__img { transition: none; }
}
