@charset "UTF-8";
/* OneTap website · components for the PHP pages (accounts, players, leaderboard).
   Built only from onetap.css variables. No inline styles anywhere: the CSP forbids them. */

/* ---------- Small layout helpers ---------- */
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; } .gap-20 { gap: 20px; } .gap-28 { gap: 28px; }
.self-start { align-self: flex-start; }
.items-start { align-items: start; }
.mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; } .mt-24 { margin-top: 24px; }
.grid-1 { grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.center { text-align: center; align-items: center; }
.narrow { max-width: 640px; }
.more { margin-top: 32px; }
.section-tight { padding-top: 64px; }
.muted { color: var(--text-3); }
.gold-text { color: var(--gold); }
.ok-text { color: var(--ok); }
.gain { color: var(--ok); }
.loss { color: var(--danger); }
.h3 { font-size: var(--fs-h3); font-weight: 400; margin: 0; }
.h3 small, h2 small { font-size: 15px; color: var(--text-3); font-weight: 400; letter-spacing: 0.06em; }
/* Text with no place to break (an email address): wraps where it must, never sticks out. */
.wrap-anywhere { overflow-wrap: anywhere; }
.card .num-ok { color: var(--ok); }
.article-title { font-size: var(--fs-h1); font-weight: 300; margin: 14px 0 8px; }
.tag { color: var(--text-3); font-weight: 400; }
code.hash, code.key-text { font-family: var(--mono); font-size: 13px; color: var(--text-2); letter-spacing: 0.04em; text-transform: none; }
kbd { font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; padding: 2px 6px; border: 1px solid var(--line-strong); color: var(--text); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--bg-deep); border: 1px solid var(--accent); color: var(--text); }
.skip:focus { top: 12px; }

/* ---------- Header: account name ---------- */
.nav a.nav-user { color: var(--text); }

/* ---------- Banners under the header ---------- */
.banner { background: var(--bg-deep); border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent); font-size: 15px; }
.banner .container { padding-top: 12px; padding-bottom: 12px; display: block; }
.banner.warn { border-left-color: var(--warn); }
.banner.danger { border-left-color: var(--danger); }
.banner strong { color: var(--text); font-weight: 600; }
.notice .btn { margin-left: auto; flex: none; }
.notice form { margin-left: auto; }
/* A notice can name an email address: its text may shrink and break inside it. */
.notice > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .notice { flex-wrap: wrap; } .notice form { margin-left: 0; } }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--bg-deep); color: var(--text); }
.help.ok-text { color: var(--ok); }
.search-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search-inline .field { flex: 1 1 220px; }

/* ---------- Tabs (mode switch) ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 12px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Leaderboard and other tables ---------- */
.board-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.board-filters .field { min-width: 160px; }
.board-filters .grow { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.board th, .board td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.board thead th { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); background: color-mix(in srgb, var(--text) 10%, var(--bg-deep)); border-bottom: 1px solid var(--line-strong); padding-top: 12px; padding-bottom: 12px; }
.board tbody th a, .board tfoot th a { color: var(--text); text-decoration: none; font-weight: 500; }
.board tbody th a:hover, .board tfoot th a:hover { color: var(--accent); }
.board .num { text-align: right; }
.board td.pos { color: var(--text-3); width: 56px; }
.board tr.top3 td.pos { color: var(--gold); border-left: 2px solid var(--gold); }
.board tr.is-me { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.board tr.is-me td.pos { border-left: 2px solid var(--accent); }
.board .rank-col { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.board tfoot .spacer td { border-bottom: 0; padding-top: 28px; padding-bottom: 6px; }
.pager { display: flex; gap: 20px; align-items: center; justify-content: flex-end; margin-top: 24px; }

/* ---------- Ranks and name colours (Diamond lilac, Pro pink: the game's) ---------- */
.rank { color: var(--text); }
.rank-none { color: var(--text-3); }
.rank-diamond { color: var(--diamond); }
.rank-pro { color: var(--pro); }
.name-diamond, a.name-diamond { color: var(--diamond) !important; }
.name-pro, a.name-pro { color: var(--pro) !important; }

/* ---------- Player page ---------- */
.player-head { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.player-name { font-size: var(--fs-h1); font-weight: 300; margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.team-line { color: var(--text-2); margin: 0; }
.emblem { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border: 1px solid var(--line); background: var(--bg-deep); }
.emblem b { font-size: 18px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.rank-grid { gap: var(--gap); }
.rank-card { display: flex; flex-direction: column; gap: 10px; }
.rank-big { font-size: clamp(32px, 4vw, 44px); font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 0; line-height: 1.1; }
.rr { margin: 0; color: var(--text-3); }
.rr b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.facts.compact li { padding: 10px 0; grid-template-columns: 120px minmax(0, 1fr); }
.ladder { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.ladder-step { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border: 1px solid var(--line); background: var(--bg-deep); }
.ladder-step.is-me { border-color: var(--accent); }
.ladder-step .pct { font-variant-numeric: tabular-nums; color: var(--text); }
.ladder .bar { display: block; height: 3px; background: var(--line); }
.ladder .bar i { display: block; height: 100%; background: var(--text-3); }
.ladder-step.is-me .bar i { background: var(--accent); }
@media (max-width: 720px) { .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Achievements: the player card's summary, showcase and per-mode bars */
.ach-summary { display: grid; grid-template-columns: auto auto 1fr; gap: 12px 40px; align-items: end; margin-bottom: var(--gap); }
.ach-count, .ach-points { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ach-count b, .ach-points b { font-size: 44px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.ach-count > span:not(.label) { color: var(--text-3); font-size: 18px; }
.ach-bar { grid-column: 1 / -1; height: 4px; background: var(--line); }
.ach-bar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 560px) { .ach-summary { grid-template-columns: 1fr 1fr; } }
.ach-grid { gap: var(--gap); }
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.showcase .slot { display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 14px; border: 1px solid var(--line); background: var(--bg); }
.showcase .slot b { font-weight: 500; color: var(--text); }
.showcase .slot.empty { align-items: center; justify-content: center; color: var(--text-3); }
@media (max-width: 480px) { .showcase { grid-template-columns: 1fr; } }
.ach-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ach-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ach-list li b { font-weight: 500; color: var(--text); }
.ach-list li > span:not(.label) { color: var(--text-2); font-size: 15px; }
.mode-bars { list-style: none; margin: 0; padding: 0; }
.mode-bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 72px; gap: 14px; align-items: center; padding: 8px 0; }
.mode-bars .bar { display: block; height: 3px; background: var(--line); }
.mode-bars .bar i { display: block; height: 100%; background: var(--accent); }
.mode-bars .nums { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 15px; }
/* The unlocked achievements (newest first): an even grid of cards, each with the game's icon,
   then every one of them by game mode behind "Show all" (a <details>). */
.ach-unlocked { margin-top: var(--gap); display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--gold); }
.ach-unlocked-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ach-unlocked-head h3 { margin: 0; color: var(--gold); }
.ach-unlocked-head .help { margin: 0; }
.ach-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.ach-card { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--bg); }
.ach-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ach-card-text b { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.ach-card-text .ach-desc { color: var(--text-2); font-size: 15px; line-height: 1.4; }
.ach-card-text .label { text-transform: none; letter-spacing: 0.04em; }
.ach-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); color: var(--gold); }
.ach-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ach-all { border-top: 1px solid var(--line); padding-top: 16px; }
.ach-all summary { cursor: pointer; list-style: none; display: inline-flex; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; }
.ach-all summary::-webkit-details-marker { display: none; }
.ach-all summary::marker { content: ''; }
.ach-all summary:hover { color: var(--accent-hover); }
.ach-all summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ach-all summary .ach-all-closed::after { content: ' +'; }
.ach-all summary .ach-all-open::after { content: ' −'; }
.ach-all:not([open]) .ach-all-open, .ach-all[open] .ach-all-closed { display: none; }
.ach-all h4 { margin: 28px 0 8px; display: flex; gap: 8px; }
.ach-rows > li { flex-direction: row; align-items: flex-start; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.ach-rows .ach-icon { width: 34px; height: 34px; }
.ach-rows .ach-icon svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .ach-card { padding: 12px; } }
.compact-stats .stat b { font-size: 36px; }

/* ---------- Public profile: every part in a panel ----------
   A table (recent matches, ratings, seasons) or the commends sit flush in theirs: the
   table's raised header is the box's top. */
.panel.flush { padding: 0; }
.panel.flush > .table-wrap { border-top: 0; }
.panel.flush .board tbody tr:last-child > * { border-bottom: 0; }
.panel.flush > .stats { border: 0; }
.panel.flush > .stats .stat { background: var(--bg-deep); }
.panel.flush > .stats.compact-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .panel.flush > .stats.compact-stats .stat { padding: 20px 16px; } .compact-stats .stat b { font-size: 30px; } }
.panel-foot { margin: 0; padding: 16px var(--row-pad); border-top: 1px solid var(--line); }
.about-block.panel { margin-bottom: 32px; }
/* Playtime: the total as the panel's headline, then a row per mode: its name, a bar of its
   share, the share and the time (at the right). On a phone the bar goes under the name. */
.playtime { --pad: 28px; display: flex; flex-direction: column; gap: 20px; padding: var(--pad); }
.playtime-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.playtime-total b { font-size: var(--fs-h2); font-weight: 300; line-height: 1; color: var(--text); }
.playtime-total .help { margin: 0; }
.playtime-modes { list-style: none; margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: 0; border-top: 1px solid var(--line); }
.playtime-modes li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px 84px; align-items: center; gap: 16px; padding: 12px var(--pad); border-bottom: 1px solid var(--line); }
.playtime-modes li:last-child { border-bottom: 0; }
.playtime-modes li:nth-child(even) { background: var(--row-alt); }
.playtime-modes .bar { display: block; height: 8px; background: var(--line); }
.playtime-modes .bar i { display: block; height: 100%; background: var(--accent); }
.playtime-modes .pct, .playtime-modes .nums { text-align: right; font-variant-numeric: tabular-nums; }
.playtime-modes .pct { color: var(--text-3); font-size: var(--fs-small); }
.playtime-modes .nums { color: var(--text); }
@media (max-width: 560px) {
  .playtime { --pad: 20px; }
  .playtime-modes li { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; }
  .playtime-modes .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Account page ---------- */
.account-head { margin-bottom: 32px; }
.account-grid { gap: var(--gap); align-items: stretch; }
.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roster li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.roster a { color: var(--text); text-decoration: none; }
.roster a:hover { color: var(--accent); }
.settings .grid-3 { margin-bottom: 4px; }

/* ---------- Support: known issues ---------- */
.issues { border-top: 1px solid var(--line); }
.issue { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.issue h3 { margin: 0; font-size: 19px; font-weight: 500; }
.issue p { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .issue { grid-template-columns: 1fr; gap: 10px; } .issue .chip { justify-self: start; } }

/* ---------- Downloads: the second and later buttons sit level with the first ---------- */
.dl > .plain { padding: 8px; }

/* ---------- Bar widths without inline styles (CSP): data-w="0" … "100" ---------- */
[data-w="0"] { width: 0%; }
[data-w="1"] { width: 1%; }
[data-w="2"] { width: 2%; }
[data-w="3"] { width: 3%; }
[data-w="4"] { width: 4%; }
[data-w="5"] { width: 5%; }
[data-w="6"] { width: 6%; }
[data-w="7"] { width: 7%; }
[data-w="8"] { width: 8%; }
[data-w="9"] { width: 9%; }
[data-w="10"] { width: 10%; }
[data-w="11"] { width: 11%; }
[data-w="12"] { width: 12%; }
[data-w="13"] { width: 13%; }
[data-w="14"] { width: 14%; }
[data-w="15"] { width: 15%; }
[data-w="16"] { width: 16%; }
[data-w="17"] { width: 17%; }
[data-w="18"] { width: 18%; }
[data-w="19"] { width: 19%; }
[data-w="20"] { width: 20%; }
[data-w="21"] { width: 21%; }
[data-w="22"] { width: 22%; }
[data-w="23"] { width: 23%; }
[data-w="24"] { width: 24%; }
[data-w="25"] { width: 25%; }
[data-w="26"] { width: 26%; }
[data-w="27"] { width: 27%; }
[data-w="28"] { width: 28%; }
[data-w="29"] { width: 29%; }
[data-w="30"] { width: 30%; }
[data-w="31"] { width: 31%; }
[data-w="32"] { width: 32%; }
[data-w="33"] { width: 33%; }
[data-w="34"] { width: 34%; }
[data-w="35"] { width: 35%; }
[data-w="36"] { width: 36%; }
[data-w="37"] { width: 37%; }
[data-w="38"] { width: 38%; }
[data-w="39"] { width: 39%; }
[data-w="40"] { width: 40%; }
[data-w="41"] { width: 41%; }
[data-w="42"] { width: 42%; }
[data-w="43"] { width: 43%; }
[data-w="44"] { width: 44%; }
[data-w="45"] { width: 45%; }
[data-w="46"] { width: 46%; }
[data-w="47"] { width: 47%; }
[data-w="48"] { width: 48%; }
[data-w="49"] { width: 49%; }
[data-w="50"] { width: 50%; }
[data-w="51"] { width: 51%; }
[data-w="52"] { width: 52%; }
[data-w="53"] { width: 53%; }
[data-w="54"] { width: 54%; }
[data-w="55"] { width: 55%; }
[data-w="56"] { width: 56%; }
[data-w="57"] { width: 57%; }
[data-w="58"] { width: 58%; }
[data-w="59"] { width: 59%; }
[data-w="60"] { width: 60%; }
[data-w="61"] { width: 61%; }
[data-w="62"] { width: 62%; }
[data-w="63"] { width: 63%; }
[data-w="64"] { width: 64%; }
[data-w="65"] { width: 65%; }
[data-w="66"] { width: 66%; }
[data-w="67"] { width: 67%; }
[data-w="68"] { width: 68%; }
[data-w="69"] { width: 69%; }
[data-w="70"] { width: 70%; }
[data-w="71"] { width: 71%; }
[data-w="72"] { width: 72%; }
[data-w="73"] { width: 73%; }
[data-w="74"] { width: 74%; }
[data-w="75"] { width: 75%; }
[data-w="76"] { width: 76%; }
[data-w="77"] { width: 77%; }
[data-w="78"] { width: 78%; }
[data-w="79"] { width: 79%; }
[data-w="80"] { width: 80%; }
[data-w="81"] { width: 81%; }
[data-w="82"] { width: 82%; }
[data-w="83"] { width: 83%; }
[data-w="84"] { width: 84%; }
[data-w="85"] { width: 85%; }
[data-w="86"] { width: 86%; }
[data-w="87"] { width: 87%; }
[data-w="88"] { width: 88%; }
[data-w="89"] { width: 89%; }
[data-w="90"] { width: 90%; }
[data-w="91"] { width: 91%; }
[data-w="92"] { width: 92%; }
[data-w="93"] { width: 93%; }
[data-w="94"] { width: 94%; }
[data-w="95"] { width: 95%; }
[data-w="96"] { width: 96%; }
[data-w="97"] { width: 97%; }
[data-w="98"] { width: 98%; }
[data-w="99"] { width: 99%; }
[data-w="100"] { width: 100%; }
.nav a { position: relative; }
.rank-grid, .ach-grid { align-items: stretch; }

/* ---------- Home page: chapters (concept B) ---------- */
/* A short hero over the map plan, fading into the page. */
.home-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero .hero-art { opacity: .5; }
.home-hero .hero-art svg { width: 100%; height: 100%; display: block; }
.home-hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.home-hero .logo-hero { margin: 0; }
.home-hero .logo-hero img { width: auto; height: clamp(56px, 9vw, 104px); max-width: 100%; }
.home-hero p { margin: 0; max-width: 46ch; font-size: 19px; color: var(--text-2); }
.home-hero .online { display: inline-flex; align-items: center; gap: 8px; }
.dot.ok { color: var(--ok); }
.label.warn { color: var(--warn); }

/* The chapters: a side index that stays in view, and alternating bands. */
.chapters { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.chapter-index { position: sticky; top: 69px; align-self: start; padding: 56px 0; display: flex; flex-direction: column; }
.chapter-index a { display: flex; gap: 14px; align-items: baseline; padding: 10px 0 10px 14px; border-left: 2px solid var(--line); text-decoration: none; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: color 150ms, border-color 150ms; }
.chapter-index a b { font-weight: 300; font-size: 18px; letter-spacing: 0; color: inherit; font-variant-numeric: tabular-nums; }
.chapter-index a:hover { color: var(--text); }
.chapter-index a[aria-current="true"] { border-left-color: var(--accent); color: var(--text); }
.chapter-index a[aria-current="true"] b { color: var(--accent); }
.bands { min-width: 0; }
.band { padding: 72px 0 72px 56px; border-left: 1px solid var(--line); }
.band-deep { background: var(--bg-deep); }
.band + .band { border-top: 1px solid var(--line); }
.band-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; }
.band-head h2 { margin: 0; font-size: 38px; font-weight: 300; }
.chapter-no { font-weight: 300; color: var(--accent); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.band-lead { max-width: 52ch; color: var(--text-2); margin: 0; }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.fact-strip div { background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.fact-strip b { font-size: 26px; font-weight: 300; color: var(--text); }
.mode-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mode-list li { display: grid; grid-template-columns: 220px 160px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mode-list h3 { margin: 0; font-size: 22px; letter-spacing: .12em; font-weight: 400; text-transform: uppercase; }
.mode-list p { margin: 0; color: var(--text-2); }
.maps-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.join-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.join-row .card h3 { font-size: 18px; }
.band-news { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.band-news > .label { display: block; margin: 0 0 4px; }

/* Phones and small tablets: no side column; the index is a row of chips under the hero
   that scrolls sideways and stays under the header. */
@media (max-width: 899px) {
  .chapters { display: block; padding: 0; }
  .chapter-index { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter); z-index: 5; background: color-mix(in srgb, var(--bg-deep) 92%, transparent); border-bottom: 1px solid var(--line); }
  .chapter-index::-webkit-scrollbar { display: none; }
  .chapter-index a { flex: none; padding: 8px 12px; border: 1px solid var(--line); white-space: nowrap; }
  .chapter-index a[aria-current="true"] { border-color: var(--accent); }
  .band { padding: 48px var(--gutter); border-left: 0; }
  .band-head { flex-wrap: wrap; gap: 6px 14px; }
  .band-head h2 { font-size: 28px; }
  .chapter-no { font-size: 30px; }
  .fact-strip, .join-row, .maps-2 { grid-template-columns: 1fr; }
  .mode-list li { grid-template-columns: 1fr; gap: 6px; }
  .home-hero .container { padding-top: 64px; padding-bottom: 48px; }
}
@media (max-width: 899px) { .chapters .band[id] { scroll-margin-top: 124px; } }

/* Account page: friends & family keys to hand out. */
.friend-keys { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.friend-keys h3 { margin: 0; }
.key-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.key-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); background: var(--bg-deep); }
.key-row code.key-text { color: var(--text); font-size: 14px; }
.key-row .btn-text { margin-left: auto; }
.key-row.used code.key-text, .key-row.revoked code.key-text { color: var(--text-3); }
.key-row .label { margin-left: auto; text-transform: none; letter-spacing: 0.04em; }
/* A used or cancelled key: its last 5 characters and who used it, on one line */
.key-row.used, .key-row.revoked { flex-wrap: nowrap; }
.key-row.used code.key-text, .key-row.revoked code.key-text { flex: none; }
.key-row.used .label, .key-row.revoked .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Two-factor sign-in: the account page's panel (templates/two-factor.php) and the sign-in's
   code step (templates/login-code.php). The QR code is black on white on any theme. */
.tf-code { font-family: var(--mono); font-size: 20px; letter-spacing: 0.18em; }
.tf-resend { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: baseline; margin: 20px 0 12px; }
.tf-resend .btn-text:disabled { color: var(--text-3); text-decoration: none; cursor: default; }
.help .btn-text { font-size: 12px; text-underline-offset: 4px; vertical-align: baseline; }
.tf-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 18px; }
.tf-steps li { padding-left: 4px; }
.tf-steps li > * { display: block; }
.tf-steps li b { color: var(--text); font-weight: 500; }
.qr-box { margin: 14px 0; padding: 0; width: 216px; max-width: 100%; background: #fff; line-height: 0; }
.qr { width: 100%; height: auto; }
.tf-key { margin-top: 6px; font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; color: var(--text); overflow-wrap: anywhere; user-select: all; }
.tf-choice { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tf-choice legend { padding: 0; margin-bottom: 12px; }
.tf-choice b { color: var(--text); font-weight: 500; }
.backup-box { padding: 20px; border: 1px solid var(--warn); }
.backup-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.backup-codes code.key-text { color: var(--text); font-size: 16px; letter-spacing: 0.1em; user-select: all; }
.tf-low { color: var(--warn); }
.tf-devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tf-devices li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.tf-devices li > span { min-width: 0; overflow-wrap: anywhere; }
.tf-devices .chip { margin-left: 6px; }
.tf-mail { margin: 0; }
.tf-more { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.tf-more summary { cursor: pointer; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); list-style: none; }
.tf-more summary::-webkit-details-marker { display: none; }
.tf-more summary::after { content: ' +'; }
.tf-more[open] summary::after { content: ' −'; }
.tf-more summary:hover, .tf-more[open] summary { color: var(--text); }
.tf-more[open] summary { margin-bottom: 14px; }

/* Profile pictures (square WebP from the API's /avatars/). */
.avatar { display: block; flex: none; object-fit: cover; background: var(--bg-deep); border: 1px solid var(--line-strong); }
.avatar-head { width: 88px; height: 88px; margin-bottom: 16px; }
.avatar-lg { width: 112px; height: 112px; }
.avatar-xl { width: 128px; height: 128px; }
.avatar-empty { display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 300; color: var(--text-3); }
.avatar-row { display: flex; align-items: center; gap: 20px; }
.avatar-row p { margin: 0; }
.player-id { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .avatar-row { flex-direction: column; align-items: flex-start; }
}

/* Profile picture: the file button (the real input is hidden but still takes focus). */
.file-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.file-input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-pick label.btn { cursor: pointer; }
.file-name { color: var(--text-3); font-size: 14px; overflow-wrap: anywhere; }
.file-name.chosen { color: var(--text); }
.avatar-actions { align-items: center; flex-wrap: wrap; }

/* The crop window (a native dialog: Esc closes it, focus stays inside). */
.cropper { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--text); overflow: auto; }
.cropper::backdrop { background: rgba(5, 7, 8, 0.82); }
.cropper-head p { margin: 6px 0 0; }
.cropper-body { display: flex; gap: 28px; margin: 22px 0 18px; flex-wrap: wrap; }
.crop-stage { position: relative; width: 320px; height: 320px; max-width: 100%; aspect-ratio: 1; overflow: hidden; background: #000; cursor: grab; touch-action: none; user-select: none; flex: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
/* The square kept: a thin frame and thirds to help line it up. */
.crop-frame { position: absolute; inset: 0; border: 2px solid var(--accent); pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255,255,255,.22) calc(33.33% - 0.5px), rgba(255,255,255,.22) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.22) calc(66.66% - 0.5px), rgba(255,255,255,.22) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255,255,255,.22) calc(33.33% - 0.5px), rgba(255,255,255,.22) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.22) calc(66.66% - 0.5px), rgba(255,255,255,.22) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)); }
.crop-side { display: flex; flex-direction: column; gap: 12px; }
.crop-prev-lg { width: 112px; height: 112px; }
.crop-prev-sm { width: 48px; height: 48px; }
.crop-prev-row { align-items: center; }
.crop-zoom input[type=range] { width: 100%; accent-color: var(--accent); }
.cropper-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
@media (max-width: 600px) {
  .cropper { padding: 20px; }
  .crop-stage { width: 100%; height: auto; }
  .crop-side { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* Feedback board (/feedback) */
.fb-head { flex-direction: row; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.fb-head > .stack { max-width: 680px; }
.chip.dim { color: var(--text-3); opacity: 0.7; }
.fb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fb-row { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fb-row.pinned { border-left: 2px solid var(--gold); padding-left: 14px; }
.fb-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fb-title { color: var(--text); text-decoration: none; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.fb-title:hover { color: var(--accent); }
.fb-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0; }
.fb-by a { color: var(--text); text-decoration: none; font-weight: 500; }
.fb-by a:hover { color: var(--accent); }
.fb-by .label { margin-left: 6px; }
.vote-form { margin: 0; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-2, var(--text)); font: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.vote b { font-size: 17px; font-weight: 600; color: var(--text); }
.vote-arrow { font-size: 12px; line-height: 1; color: var(--text-3); }
button.vote:hover { border-color: var(--accent); }
button.vote:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vote.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.vote.on .vote-arrow, .vote.on b { color: var(--accent); }
.vote.is-own { cursor: default; border-style: dashed; }
.vote[aria-busy="true"] { opacity: 0.6; }
.kind-pick { border: 0; padding: 0; margin: 0; }
.kind-pick legend { margin-bottom: 8px; }
.kind-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kind-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line-strong); cursor: pointer; }
.kind-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-card .kind-name { font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.kind-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.kind-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.kind-pick[aria-invalid="true"] .kind-card { border-color: var(--danger); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.fb-post { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.fb-post-head { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.fb-h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.fb-body { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.fb-actions { align-items: flex-start; }
.fb-report summary { cursor: pointer; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); list-style: none; }
.fb-report summary::-webkit-details-marker { display: none; }
.fb-report summary:hover { color: var(--text); }
.fb-report[open] summary { color: var(--text); margin-bottom: 12px; }
.fb-report .form { max-width: 420px; }
.fb-status { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); background: var(--bg-deep); }
.fb-note { flex-basis: 100%; margin: 6px 0 0; overflow-wrap: anywhere; }
.fb-comments { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fb-comment { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 18px 18px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
.fb-comment.staff { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.fb-comment .fb-report { align-self: flex-start; }
.fb-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fb-mine li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.fb-mine li a { color: var(--text); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.fb-mine li a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .fb-row, .fb-post-head { grid-template-columns: 52px 1fr; gap: 14px; }
  .vote { width: 52px; height: 56px; }
  .kind-cards { grid-template-columns: 1fr; }
}
[data-bug-only][hidden] { display: none; }

/* Match pages (/match/<id>) and match history */
.match-head { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.match-score { font-size: clamp(64px, 12vw, 120px); font-weight: 300; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; display: flex; gap: 0.25em; align-items: baseline; }
.match-score .lose { color: var(--text-3); opacity: 0.55; }
.match-score .colon { color: var(--text-3); }
.match-sub { margin: 0; color: var(--text-2); }
.match-facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.match-facts li { display: flex; flex-direction: column; gap: 4px; }
.map-plan { width: 200px; max-width: 40vw; opacity: 0.8; }
.map-plan svg { width: 100%; height: auto; }
.demo-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 32px; }
.demo-row .help { margin: 0; }
/* Play of the match: a card of its own under the overview, gold like a first place */
.potm-card { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 12%, var(--bg-raised)), var(--bg-raised) 70%);
  border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 20px 24px; }
.potm-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.potm-label { color: var(--gold); }
.potm-name { font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
.potm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.potm-tags .potm-kind { color: var(--gold); }
.potm-watch { font-size: 15px; padding-left: 28px; padding-right: 28px; }
@media (max-width: 560px) { .potm-name { font-size: 22px; } .potm-watch { width: 100%; } }
/* The 2D overview (public/assets/match-overview.js): the canvas and its controls, the kill feed beside it (under it on a phone). */
.match-overview { padding-top: 0; margin-bottom: 24px; }
.match-overview .section-head { margin-bottom: 20px; }
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin-bottom: 20px; }
.ov-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ov-stage { position: relative; border: 1px solid var(--line); background: #0B1013; }
.ov-canvas { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; }
.in-potm .ov-stage { border-color: var(--gold); }
.ov-status { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--text-2); background: rgba(11, 16, 19, 0.85); }
.ov-status[hidden] { display: none; }
.ov-banner { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 12px; background: rgba(5, 7, 8, 0.88); border-left: 2px solid var(--gold); font-size: var(--fs-small); }
.ov-banner[hidden] { display: none; }
.ov-banner { max-width: none; }
.ov-banner .btn-text { margin-left: auto; font-size: 12px; text-underline-offset: 4px; background: none; cursor: pointer; }
.ov-banner-name { color: var(--text); }
.ov-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ov-controls[hidden], .ov-rounds[hidden] { display: none; }
.ov-play { min-width: 92px; }
.ov-seek { flex: 1 1 200px; min-width: 0; accent-color: var(--accent); height: 28px; }
.ov-time { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: var(--fs-small); min-width: 92px; }
.ov-speed { display: flex; gap: 8px; align-items: center; }
.ov-speed select { appearance: none; background: var(--bg-deep); color: var(--text); border: 1px solid var(--line-strong); font: inherit; font-size: var(--fs-small); padding: 6px 12px; min-height: 36px; }
.ov-speed select:focus-visible, .ov-round:focus-visible, .ov-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ov-rounds { display: flex; gap: 10px; align-items: flex-start; }
.ov-rounds > .label { padding-top: 7px; }
.ov-round-list { display: flex; flex-wrap: wrap; gap: 4px; }
.ov-round { min-width: 30px; height: 28px; padding: 0 6px; background: transparent; color: var(--text-2); border: 1px solid var(--line-strong); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; }
.ov-round:hover { border-color: var(--text); color: var(--text); }
.ov-round.won-ct { border-bottom: 2px solid var(--accent); }
.ov-round.won-t { border-bottom: 2px solid var(--warn); }
.ov-feed { border: 1px solid var(--line); background: var(--bg-deep); padding: 12px 14px; min-width: 0; align-self: start; }
.ov-feed h3 { margin: 0 0 10px; }
.ov-feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; font-size: var(--fs-small); }
.ov-feed-empty { color: var(--text-3); }
.ov-kill { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ov-kill.mine { border-left: 2px solid var(--gold); padding-left: 8px; }
.ov-k-time { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12px; min-width: 32px; }
.ov-k-weapon { color: var(--text-3); font-size: 12px; }
@media (max-width: 860px) {
  .ov { grid-template-columns: minmax(0, 1fr); }
  .ov-feed-list { max-height: 220px; }
}
@media (max-width: 560px) {
  /* The play of the match's line under the map, not over it. */
  .ov-banner { position: static; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .ov-time { min-width: 0; }
  .ov-speed .label { display: none; }
}
.team-board { margin-bottom: 40px; }
.team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.team-head h2 { margin: 0; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.team-score { font-size: 32px; font-weight: 300; color: var(--text-3); font-variant-numeric: tabular-nums; }
.team-score.win { color: var(--text); }
.team-score .label { margin-left: 6px; }
.side-ct { color: var(--accent); }
.side-t { color: var(--warn); }
table.match-board { min-width: 860px; }
.match-board .rank-col { font-size: 12px; }
.match-board tr.abandoned th a, .match-board tr.abandoned td { opacity: 0.55; }
.party { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--text-3); vertical-align: 2px; }
.rounds-box { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.rounds-labels { display: flex; flex-direction: column; gap: 4px; flex: none; }
.rounds-labels span { height: 28px; display: flex; align-items: center; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.rounds { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.rd { display: flex; flex-direction: column; gap: 4px; flex: none; }
.rd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd .cell { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 13px; line-height: 1; color: var(--bg); }
.rd .cell.win.side-ct { background: var(--accent); border-color: var(--accent); }
.rd .cell.win.side-t { background: var(--warn); border-color: var(--warn); }
.rd.unplayed .cell { border-style: dashed; opacity: 0.5; }
.rd-gap { flex: none; width: 22px; display: flex; align-items: center; justify-content: center; }
.rd-gap span { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-3); writing-mode: vertical-rl; }
.rounds-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.key-ct, .key-t { display: inline-block; width: 10px; height: 10px; vertical-align: 0; }
.key-ct { background: var(--accent); }
.key-t { background: var(--warn); }
.veto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.result { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid currentColor; font-weight: 600; }
.result.muted { color: var(--text-3); }
.match-list th a { color: var(--text); }

/* ---------- About text (player-written: escaped plain text with <br>) ---------- */
.about-block { margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; }
.about-block .label { margin: 0; }
.about-text { margin: 0; max-width: 70ch; color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; unicode-bidi: isolate; }
.about-input { min-height: 132px; }

/* ---------- Your team (/team) ---------- */
.team-roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.team-roster li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team-member { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.team-member a { color: var(--text); text-decoration: none; font-weight: 600; }
.team-member a:hover { color: var(--accent); }
.team-actions .btn { min-height: 36px; padding: 0 16px; font-size: 12px; }
.team-invite { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.team-invite p { margin: 0; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: var(--bg-deep); }

/* ---------- Search (/search, the home page when signed in) ---------- */
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form .input { flex: 1; min-width: 0; }
.hero-search { margin-top: 28px; }
.team-line a { color: inherit; text-decoration: none; }
.team-line a:hover { color: var(--accent); }
.nav a.nav-search { display: inline-flex; align-items: center; }
.nav a.nav-search svg { display: block; }
@media (max-width: 720px) {
  /* The phone menu is a list of words: the word shows next to the icon there. */
  .site-header.has-toggle .nav a.nav-search { gap: 10px; }
  .site-header.has-toggle .nav a.nav-search .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}
.btn-small { min-height: 36px; padding: 0 16px; font-size: 12px; }
#join { flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

/* ---------- Inbox (/inbox, /inbox/<name>) ---------- */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--bg-deep); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1; }
.nav a.nav-inbox { position: relative; }
.nav-badge { position: absolute; top: -8px; right: -14px; min-width: 18px; height: 18px; font-size: 11px; }
.dm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dm-list li a { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.dm-list li a:hover { background: var(--bg-deep); }
.dm-list li.unread .dm-name { color: var(--text); font-weight: 700; }
.dm-avatar { width: 44px; height: 44px; font-size: 20px; }
.dm-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dm-name { color: var(--text); }
.dm-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: var(--fs-small); }
.narrow-wide { max-width: 860px; }
.dm-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.dm-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dm-title h1 { margin: 0; }
.dm-title h1 a { color: inherit; text-decoration: none; }
.dm-thread { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); background: var(--bg-deep); max-height: 60vh; overflow-y: auto; }
.dm-thread > * { flex-shrink: 0; } /* a long thread scrolls; its rows (the Older messages link too) keep their height */
.dm-day { align-self: center; margin: 8px 0 2px; }
.dm-msg { align-self: flex-start; max-width: 78%; padding: 10px 14px; border: 1px solid var(--line-strong); }
.dm-msg.mine { align-self: flex-end; border-color: var(--accent); }
.dm-text { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.dm-time { display: block; margin-top: 4px; font-size: 12px; }
.dm-older { align-self: center; }
.dm-report summary { cursor: pointer; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.dm-report form { margin-top: 8px; }
.dm-report .input { min-width: 0; flex: 1; }
.dm-compose { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.dm-compose textarea { resize: vertical; }
.dm-head > .btn-text { align-self: flex-start; }
/* The header holds two icons when signed in: a little less space between items, and a long
   player name is cut with "…" (the account page shows it whole). */
@media (min-width: 721px) {
  .nav { gap: 24px; }
  .nav a.nav-search + a.nav-search { margin-left: -6px; }
  .nav a.nav-user { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 1439px) {
  /* Signed in, the header has two more links: the beta label makes room (signed-out visitors keep it). */
  .site-header.signed-in .chip.beta { display: none; }
}
.nav-badge { top: -2px; right: -12px; }
.nav-toggle { position: relative; }
.toggle-badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; font-size: 11px; }
/* Team chat on /team (the team voice server's text channels): the same bubbles, with who wrote each. */
.tc-thread { max-height: 480px; }
.tc-channels { margin-bottom: 0; gap: 22px; }
.tc-channels a { text-transform: none; letter-spacing: 0.04em; font-size: 14px; }
.tc-who { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.tc-who a { color: var(--text); text-decoration: none; }
.tc-who a:hover { color: var(--accent); }
.tc-msg.mine .tc-who { text-align: right; }
.tc-tools { margin-top: 4px; }
.tc-tool { font-size: 12px; letter-spacing: 0.08em; background: none; cursor: pointer; }

/* ---------- Tournaments (/tournaments, /tournaments/<id>) ---------- */
.tn-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tn-list li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.tn-list li a:hover { background: var(--bg-deep); }
.tn-list .tn-name b { color: var(--text); font-size: 18px; }
.tn-list .tn-state { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.tn-list li.tn-finished a, .tn-list li.tn-cancelled a { opacity: .75; }
.tn-picker { border-collapse: collapse; width: 100%; max-width: 520px; }
.tn-picker th, .tn-picker td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tn-picker th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.tn-bracket { display: flex; gap: 28px; overflow-x: auto; padding-bottom: 12px; }
.tn-round { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; min-width: 230px; }
.tn-round > .label { margin-bottom: 4px; }
.tn-series { border: 1px solid var(--line-strong); background: var(--bg-deep); }
.tn-series.tn-live { border-color: var(--accent); }
.tn-side { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tn-side.won { color: var(--text); font-weight: 700; }
.tn-side.won b { color: var(--ok); }
.tn-side.mine { background: var(--bg-raised); }
.tn-meta { display: block; padding: 4px 12px 6px; font-size: 12px; }
.tn-side > span { min-width: 0; overflow-wrap: anywhere; }
.tn-side b { font-variant-numeric: tabular-nums; }
/* The game that is on, under a series' two sides: LIVE, the round score, which game, map, round. */
.live-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.live-tag .dot { width: 7px; height: 7px; flex: none; animation: tn-pulse 1.6s ease-in-out infinite; }
@keyframes tn-pulse { 50% { opacity: .3; } }
.tn-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 12px 8px; font-size: 12px; }
.tn-score { color: var(--text); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Entries with their players (a team's roster) on a tournament's page. */
.tn-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tn-players { font-size: var(--fs-small); overflow-wrap: anywhere; }
.tn-entries li > .muted { flex: none; }
/* Phones: the rounds one under another, so the game that is on is never off the screen. */
@media (max-width: 560px) {
  .tn-bracket { flex-direction: column; gap: 20px; overflow-x: visible; padding-bottom: 0; }
  .tn-bracket .tn-round { min-width: 0; justify-content: flex-start; gap: 10px; }
}

/* ---------- Home page: the Tournaments chapter (templates/tournament-home.php) ---------- */
/* (The hero's tag sits in a holder that is filled again with the chapter: no box of its own, so an empty one leaves no gap in the row.) */
.hero-live-slot { display: contents; }
.hero-live { text-decoration: none; }
.hero-live:hover { color: var(--accent-hover); }
.tn-home { display: flex; flex-direction: column; gap: 32px; }
.tn-none, .tn-ended { margin: 0; max-width: none; }
.tn-ended b { color: var(--text); font-weight: 500; }
.tn-block { display: flex; flex-direction: column; gap: 16px; }
.tn-block-head { margin: 0; line-height: 1.4; }
.tn-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--line-strong); min-width: 0; }
.tn-card[data-tn-state="live"] { border-top-color: var(--accent); }
.tn-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.tn-card h4, .tn-up h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-h3); font-weight: 500; letter-spacing: 0.04em; }
.tn-card h4 a, .tn-up h4 a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.tn-card h4 a:hover, .tn-up h4 a:hover { color: var(--accent); }
.tn-card[data-tn-state="live"] .tn-card-state { color: var(--accent); }
.tn-card p, .tn-up p { margin: 0; max-width: none; }
.tn-count { white-space: nowrap; }
.tn-winner { color: var(--text); font-weight: 600; }
.tn-winner:empty { display: none; }
.tn-up { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tn-up li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 14px 32px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tn-up-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tn-up-info b { color: var(--text); font-weight: 500; }
.tn-up-act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 300px; text-align: right; font-size: 15px; }
.tn-up-act form { margin: 0; }
.tn-more { margin: 0; }
@media (max-width: 720px) {
  .tn-card { padding: 16px; }
  .tn-up li { grid-template-columns: minmax(0, 1fr); }
  .tn-up-act { align-items: flex-start; max-width: none; text-align: left; }
  .tn-round { min-width: 212px; }
}

/* ---------- Alternating rows (every list or table of the same kind of thing) ----------
   Every second row a little lighter, the full width of the list, with room at the sides so
   text never touches the shading. Rows that are links also light up under the pointer. The
   hairlines between rows stay. Shading is a see-through white, so it works on the page and
   inside panels alike. */
:root { --row-alt: color-mix(in srgb, var(--text) 3.5%, transparent); --row-hover: color-mix(in srgb, var(--text) 7%, transparent); --row-pad: 16px; }
@media (max-width: 560px) { :root { --row-pad: 12px; } }
.board tbody tr:nth-child(even), .tn-picker tbody tr:nth-child(even),
.news:nth-of-type(even), .facts > li:nth-child(even), .fb-row:nth-child(even), .fb-comment:nth-child(even),
.roster > li:nth-child(even), .team-roster > li:nth-child(even), .dm-list > li:nth-child(even) > a, .tn-list > li:nth-child(even) > a,
.ach-list > li:nth-child(even), .mode-list > li:nth-child(even), .issues > .issue:nth-of-type(even), .tn-up > li:nth-child(even), .tf-devices > li:nth-child(even) { background: var(--row-alt); }
.board tbody tr:has(a):hover, .news:hover, .fb-row:hover, .roster > li:has(a):hover, .team-roster > li:has(a):hover,
.dm-list li a:hover, .tn-list li a:hover { background: var(--row-hover); }
.board tbody tr.is-me, .board tbody tr.is-me:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.board th:first-child, .board td:first-child, .tn-picker th:first-child, .tn-picker td:first-child { padding-left: var(--row-pad); }
.board th:last-child, .board td:last-child, .tn-picker th:last-child, .tn-picker td:last-child { padding-right: var(--row-pad); }
.news, .facts > li, .fb-row, .roster > li, .team-roster > li, .ach-list > li, .mode-list > li, .issues > .issue, .tn-up > li { padding-left: var(--row-pad); padding-right: var(--row-pad); }
.dm-list li a, .tn-list li a { padding-left: var(--row-pad); padding-right: var(--row-pad); }
.fb-row.pinned { padding-left: calc(var(--row-pad) - 2px); }
.fb-comment { padding-right: var(--row-pad); padding-left: calc(var(--row-pad) - 2px); }
.news { transition: background .15s; }

/* ---------- Text boxes: one inner padding for every input and text area ---------- */
textarea.input { padding: 12px 16px; line-height: 1.5; }
textarea.input::placeholder, .input::placeholder { color: var(--text-3); opacity: 1; }

/* ---------- Feedback: the meta line under a title, on one straight line ---------- */
.fb-meta { align-items: center; gap: 8px 14px; line-height: 24px; }
.fb-meta > * { line-height: 24px; }
.fb-meta .label { line-height: 24px; }
.fb-by { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-by .label { margin-left: 0; }
.fb-by a, .fb-by .muted { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
/* A single post: the post in one card, the comments in a panel, the comment form in another. */
.fb-post.panel { margin-top: 24px; gap: 24px; }
.fb-post .fb-status { background: var(--bg-raised); }
.fb-comments-panel { padding: 0; }
.fb-comments-panel .fb-comments { border-top: 0; }
.fb-comments-panel .fb-comment:last-child { border-bottom: 0; }
.fb-comment-form.panel { margin-top: var(--gap); }
@media (max-width: 560px) { .fb-post.panel, .fb-comment-form.panel { padding: 20px 16px; } }

/* ---------- Match page: the result card and the rounds panel ---------- */
.match-head.panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px 40px; align-items: center; margin-bottom: 40px; border-top: 2px solid var(--accent); padding: 28px 32px; }
.match-head .match-score { font-size: clamp(56px, 9vw, 96px); }
.match-head .match-facts { margin: 0; flex-direction: column; gap: 0; min-width: 240px; border-left: 1px solid var(--line); padding-left: 32px; }
.match-head .match-facts li { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-direction: row; }
.match-head .match-facts li:last-child { border-bottom: 0; }
.match-head .match-facts li > span:last-child { color: var(--text); }
.match-head .map-plan { width: 180px; }
@media (max-width: 860px) {
  .match-head.panel { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .match-head .match-facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); min-width: 0; }
  .match-head .map-plan { display: none; }
}
.rounds-panel { padding: 24px 28px; }
.rounds-panel .rounds-key { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); max-width: none; }
@media (max-width: 560px) { .rounds-panel { padding: 18px 16px; } }
.fb-comment.staff, .fb-comment.staff:nth-child(even) { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* ---------- Account: Privacy and region ----------
   Region on its own row, its help beside the select; then the four privacy choices in two
   even columns (labels on one line, selects level, help under each); the ticks and Save under. */
.settings { gap: 24px; }
.settings-region { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; align-items: center; }
.settings-region .label { grid-column: 1 / -1; }
.settings-privacy { margin: 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
.settings-privacy legend { float: left; width: 100%; padding: 0; margin: 0 0 -4px; grid-column: 1 / -1; }
.settings-privacy .field > .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-checks { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .settings-region, .settings-privacy { grid-template-columns: minmax(0, 1fr); }
  .settings-privacy .field > .label { white-space: normal; }
}

/* ---------- Two-factor: trusted devices, each with an icon for what it is ---------- */
.tf-trusted { padding-top: 4px; }
.tf-devices { gap: 0; border-top: 1px solid var(--line); }
.tf-devices li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 12px var(--row-pad); border-bottom: 1px solid var(--line); }
.tf-devices li form { margin: 0; }
.tf-device-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--text-2); }
.tf-device-icon svg { display: block; }
.tf-device-icon .cut { fill: var(--bg-deep); stroke: currentColor; }
.tf-os .cut { stroke: none; }
.tf-os { position: absolute; right: -7px; bottom: -7px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--text); }
.tf-device-text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .tf-devices li { grid-template-columns: 44px minmax(0, 1fr); } .tf-devices li form { grid-column: 2; } }

/* A dot in a chip keeps a little room from its word. */
.chip .dot { margin-right: 6px; }

/* ---------- Account page: a side menu, one section at a time ----------
   The menu on the left (sticky), the chosen section on the right (app.js shows one; without
   scripts they all show, one under the other, and the menu is a list of anchors). Phones: the
   menu becomes a row of tabs that scrolls sideways, above the section. */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.acct-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.acct-me { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.acct-avatar { width: 88px; height: 88px; }
.acct-me .avatar-empty { font-size: 40px; color: var(--accent); }
.acct-me-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acct-me h1 { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.acct-menu { display: flex; flex-direction: column; }
.acct-menu a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-left: 2px solid var(--line); color: var(--text-3); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.acct-menu a:hover { color: var(--text); background: var(--row-hover); }
.acct-menu a[aria-current] { color: var(--text); border-left-color: var(--accent); background: var(--row-alt); }
.acct-menu .chip { height: 20px; font-size: 10px; padding: 0 6px; }
.acct-menu .chip.ok { color: var(--ok); }
.acct-links { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.acct-links form { margin: 0; }
.acct-main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.acct-section { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.acct-section[hidden] { display: none; }
/* Each panel's title (Profile picture, About you, ...): a heading, never smaller than the text under it */
.acct-section .label.accent[id^="h-"] { font-size: 20px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--text); line-height: 1.25; }
.acct-js .acct-section { scroll-margin-top: 100vh; }
.acct:not(.acct-js) .acct-section + .acct-section { margin-top: 48px; }
.acct-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.acct-title h2 { font-size: var(--fs-h1); }
.acct-title h2:focus { outline: none; }
.acct-title h2:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.acct-title p { margin: 0; }
.acct-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.acct-2.items-start { align-items: start; }
.acct-wide { grid-column: 1 / -1; }
.acct-pic { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.acct-pic p { margin: 0; }
.acct-narrow { max-width: 520px; }
.acct .input.key { font-size: 17px; letter-spacing: 0.1em; }
.settings-more { max-width: none; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .acct { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .acct-side { position: static; }
  .acct-menu { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: thin; padding-bottom: 4px; }
  .acct-menu a { border: 1px solid var(--line); white-space: nowrap; flex: none; }
  .acct-menu a[aria-current] { border-color: var(--accent); }
  .acct-links { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .acct-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .acct-pic { grid-template-columns: minmax(0, 1fr); }
  .acct-me .acct-avatar { width: 64px; height: 64px; }
}

/* ---------- A build's patch notes (/news/<build>, templates/article.php) ----------
   The build, date and title as a card; each kind of change (Added, Changed, Fixed, More) a
   panel of its own with its label in its colour and the changes as alternating rows; the
   builds before and after and All patch notes under them. */
.patch { max-width: 860px; display: flex; flex-direction: column; gap: var(--gap); }
.patch-head { gap: 14px; padding: 32px; }
.patch-head .article-title { margin: 0; overflow-wrap: anywhere; }
.patch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.patch-group { padding: 0; border-top: 2px solid var(--text-3); }
.patch-group > h2 { margin: 0; padding: 20px var(--row-pad) 12px; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.18em; line-height: 1.4; }
.patch-items { list-style: none; margin: 0; padding: 0; }
.patch-items > li { padding: 14px var(--row-pad); color: var(--text-2); line-height: 1.5; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.patch-items > li:nth-child(even) { background: var(--row-alt); }
.patch-added { border-top-color: var(--ok); } .patch-added > h2, .chip.patch-added { color: var(--ok); }
.patch-changed { border-top-color: var(--accent); } .patch-changed > h2, .chip.patch-changed { color: var(--accent); }
.patch-fixed { border-top-color: var(--gold); } .patch-fixed > h2, .chip.patch-fixed { color: var(--gold); }
.patch-more > h2 { color: var(--text-3); }
.chip.patch-added, .chip.patch-changed, .chip.patch-fixed { border-color: currentColor; }
.patch-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px 24px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.patch-near { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: var(--text); }
.patch-near.next { text-align: right; align-items: flex-end; }
.patch-near-title { color: var(--text-2); overflow-wrap: anywhere; }
.patch-near:hover .patch-near-title { color: var(--accent); }
.patch-all { justify-self: center; }
@media (max-width: 560px) {
  .patch-head { padding: 24px 20px; }
  .patch-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .patch-all { grid-column: 1 / -1; grid-row: 2; }
}
