/* Valorix RF — "Cinematic minimal".
   The key art carries colour; the interface is quiet type on --ink. One accent (--brass): focus ring, active
   nav/tab underline, progress fill, link hover, the "now" dot. No gradients on controls, no glows, no card chrome.

   COMPONENTS (name -> purpose)
   Layout
     .wrap              centred column, max 1120px, 20px gutters
     .wrap-narrow       same, max 720px (reading column)
     main > section     vertical rhythm 72-112px; first section of a non-home page must be .page-head
     .page-head         page title block that clears the fixed header (every non-home page).
                        children: .mark (mono eyebrow, optional), h1, .lede, then .page-head-strip
     .page-head-strip   letterboxed art strip below the title (cropped key art, ink bars top/bottom)
     .sec-head          section title block: h2 + .lede, max 62ch
     .bleed-img         full-bleed image band: <figure class="bleed-img"><img alt=""></figure>
   Type
     h1 / h2            Big Shoulders Display 300, leading .95. h3: Plex Sans 600 20px. h4: 14px caps label
     .lede              supporting line, ash, max 62ch
     .mono              Plex Mono, tabular figures        .ash  secondary text        .small  14px
     .label             mono 12px caps ash (form labels, table-ish captions)
     .sr-only           screen-reader-only text
   Controls
     .btn               PRIMARY: bone fill, ink text, square, brass on hover. One per view.
     .btn-line          secondary: 1px --rule outline, bone text
     .btn-quiet         text button with underline that grows on hover
     .btn[disabled], .btn[aria-disabled=true]   dimmed
     .actions           flex row of buttons, 16px gap
     .chip              small mono tag (category, version, status)
     .tabs              row of toggle buttons (aria-pressed="true" = active, brass underline); use for filters
   Forms
     input, select, textarea, .field   --deep fill, 1px bottom rule, brass bottom rule on focus
     .field             label + control + .hint wrapper (stacked)       .hint  help text (ash 14px)
     .form-error        error text (--warn)                              .form-note  neutral note
   Data
     .table-wrap        horizontal scroll container for a table
     .table             hairline table; th = mono caps ash; td.num = right-aligned mono; .rank-table is the same
     .list              hairline rows: <ul class="list"><li>…</li></ul>; .list a rows get hover underline
     .list-meta         mono date/label cell inside a list row
     .dl                definition rows: dt ash, dd bone, hairline between (facts, specs)
     .steps             numbered steps with mono numerals (ol)
     .note              boxed-free aside: 2px --rule left bar + ash text      .note-warn  left bar --warn
     .dot               6px status dot; parent[data-state=up|down|unknown] sets its colour
     .sw.bel/.cor/.acc  race swatch dot;  .race-tag  swatch + race name (inline)
     .rm.rm-bel/-cor/-acc  race mark: one class per race, the shipped client emblem from img/game/
                           (swap these rules to change the mark; the markup <i class="rm rm-bel"> never changes)
     .ci                    class/job icon from img/game/class/<code>.webp (base classes ship none)
     .am.am-bellato/-cora/-accretia  Archon committee insignia from img/game/archon-*.webp
     .live              mono live line ("NEXT CHIP WAR 15:00 · 02:14:09 ● ONLINE 312"), driven by app.js/account.js
   Widgets (dense pages: home, rankings)
     .strip / .strip-cell   stat strip: big mono number + small label, separated by hairlines
     .podium / .podium li   #1-#3 rows, larger type; each row carries its race mark
     .hub-nav                rankings hub tabs (reuses .tabs); panels are .hub-panel #board-<name>
     .board                 a board panel: title block + tools + table
     .archons / .archon-col  three race columns; .archon-col-art is the darkened race art backdrop
     .archon-seat0          seat 0 (Archon) block: office label, big name, facts
     .council               seats 1-8 rows
     .honor-races / .honor-race  honour guilds per race
     .chipwar / .result-list Chip War record: stat strip + recent results
     .race-bg               race art backdrop behind a race-specific block (.bg-art darkens it)
     .facts-pair            server rates + art side by side; .pair-art sizes the crop (.dl-art, .pair-art-tall)
     .race-art-row          3-up cropped race art with captions
     .acct-layout           account dashboard: .acct-side (sticky who + .acct-nav section links) beside .acct-sec sections
   Home sections: .hero, .home-live, .races/.race, .tl (24 h timeline), .news-home, .rank-home, .cta — home only.
   Header/footer: .bar, .brand, nav#nav, .lang, .menu, .foot — shared markup, do not restyle per page.
   Motion: .reveal on an image/figure fades it in on scroll (app.js); disabled by prefers-reduced-motion. */

/* ---------- fonts (self-hosted, OFL; licences in fonts/) ---------- */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(fonts/BigShouldersDisplay-var-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(fonts/BigShouldersDisplay-var-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/IBMPlexSans-var-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/IBMPlexSans-var-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/IBMPlexMono-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/IBMPlexMono-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/IBMPlexMono-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/IBMPlexMono-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B0C0E;
  --deep: #131519;
  --bone: #ECE6DA;
  --ash: #8C9097;
  --rule: rgba(236, 230, 218, .14);
  --brass: #C2A267;
  --bellato: #8EA2D4;
  --cora: #B997C6;
  --accretia: #CF7A66;
  --warn: #D9826F;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 28px;
  --fs-2xl: 44px;
  --fs-3xl: 72px;
  --fs-hero: clamp(64px, 9vw, 132px);

  --nav-h: 72px;
  --section: clamp(38px, 4.4vw, 56px);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 var(--fs-md)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--brass); text-decoration-color: currentColor; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 {
  font-family: var(--display);
  font-weight: 300;
  line-height: .95;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: clamp(56px, 8vw, var(--fs-3xl)); }
h2 { font-size: clamp(var(--fs-2xl), 6vw, var(--fs-3xl)); }
h3 { font: 600 var(--fs-lg)/1.3 var(--body); }
h4 { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
strong { font-weight: 600; }
code, kbd { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass); color: var(--ink); }
[hidden] { display: none !important; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(720px, calc(100% - 40px)); margin-inline: auto; }
main > section { padding-block: var(--section); }

.lede { max-width: 62ch; color: var(--ash); margin-top: 20px; font-size: var(--fs-lg); line-height: 1.5; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ash { color: var(--ash); }
.small { font-size: var(--fs-sm); }
.label { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--ink); }

.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }

.page-head { padding: calc(var(--nav-h) + clamp(40px, 5vw, 76px)) 0 0; }
.page-head .mark { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); margin-bottom: 16px; }
.page-head .lede { margin-top: 16px; }
/* letterboxed art strip: cropped key art framed by solid --ink bars, no gradient */
.page-head-strip {
  position: relative; overflow: hidden; margin-top: clamp(24px, 3vw, 40px);
  aspect-ratio: 21 / 8; min-height: 130px; background: var(--deep);
  border-top: 14px solid var(--ink); border-bottom: 14px solid var(--ink);
}
.page-head-strip img { width: 100%; height: 100%; object-fit: cover; }
.page-head-strip::after { content: ""; position: absolute; inset: 0; background: rgba(11, 12, 14, .3); }
@media (max-width: 700px) { .page-head-strip { aspect-ratio: 16 / 9; min-height: 0; } }

.bleed-img { position: relative; overflow: hidden; aspect-ratio: 21 / 9; background: var(--deep); }
.bleed-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons ---------- */
.btn, .btn-line, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font: 600 var(--fs-md)/1 var(--body);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn { background: var(--bone); color: var(--ink); }
.btn:hover { background: var(--brass); color: var(--ink); }
.btn-line { border-color: var(--rule); background: transparent; color: var(--bone); }
.btn-line:hover { border-color: var(--bone); color: var(--bone); }
.btn-quiet {
  padding: 0; min-height: 44px; background: none; color: var(--bone);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 calc(100% - 10px); background-size: 100% 1px;
  transition: background-size .3s, color .2s;
}
.btn-quiet:hover { color: var(--brass); background-size: 100% 2px; }
.btn[disabled], .btn[aria-disabled="true"], .btn-line[disabled] { opacity: .45; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

.chip {
  display: inline-block; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ash); border: 1px solid var(--rule); padding: 5px 8px;
}

.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tabs button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--ash); font: 500 var(--fs-sm)/1 var(--body); padding: 12px 0; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.tabs button:hover { color: var(--bone); }
.tabs button[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--brass); }

/* ---------- forms ---------- */
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--deep); color: var(--bone);
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  font: 400 var(--fs-md)/1.4 var(--body);
  transition: border-color .2s;
}
input::placeholder, textarea::placeholder { color: var(--ash); opacity: 1; }
input:hover, select:hover, textarea:hover { border-bottom-color: var(--ash); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--brass); }
input[type="number"] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
input:disabled, select:disabled, textarea:disabled { opacity: .5; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.hint, .form-note { font-size: var(--fs-sm); color: var(--ash); }
.form-error { font-size: var(--fs-sm); color: var(--warn); }

/* ---------- data: tables, lists, steps ---------- */
.table-wrap { overflow-x: auto; }
.table, .rank-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table caption, .rank-table caption { text-align: left; padding-bottom: 12px; }
.table th, .table td, .rank-table th, .rank-table td {
  padding: 14px 20px 14px 0; text-align: left; vertical-align: baseline;
  border-bottom: 1px solid var(--rule);
}
.table thead th, .rank-table thead th {
  font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash);
  white-space: nowrap;
}
.table tbody th, .rank-table tbody th { font-weight: 500; }
.table td:last-child, .table th:last-child, .rank-table td:last-child, .rank-table th:last-child { padding-right: 0; }
.table .num, .rank-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.table thead .num, .rank-table thead .num { text-align: right; }
.table .rank-pos, .rank-table .rank-pos { font-family: var(--mono); color: var(--ash); width: 1%; white-space: nowrap; }

.list > li { border-top: 1px solid var(--rule); }
.list > li:last-child { border-bottom: 1px solid var(--rule); }
.list a, .list .row {
  display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 20px; align-items: baseline;
  padding: 18px 0; text-decoration: none;
}
.list a:hover h3, .list a:hover .list-title { color: var(--brass); }
.list-meta { font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); font-variant-numeric: tabular-nums; }
.list-title { font-weight: 500; }

.dl > div { display: grid; grid-template-columns: minmax(8em, 14em) 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.dl > div:last-child { border-bottom: 1px solid var(--rule); }
.dl dt { color: var(--ash); font-size: var(--fs-sm); }
.dl dd { color: var(--bone); }

.steps { counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3em 1fr; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step, decimal-leading-zero); font: 400 var(--fs-sm)/1.7 var(--mono); color: var(--ash); }

.note { padding: 4px 0 4px 16px; border-left: 2px solid var(--rule); color: var(--ash); font-size: var(--fs-sm); max-width: 62ch; }
.note-warn { border-left-color: var(--warn); }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ash); flex: none; }
[data-state="up"] .dot { background: var(--bone); }
[data-state="down"] .dot { background: var(--warn); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--ash); }
.sw.bel { background: var(--bellato); }
.sw.cor { background: var(--cora); }
.sw.acc { background: var(--accretia); }
.race-tag { display: inline-flex; align-items: center; }
/* Race mark: one class per race (the markup stays <i class="rm rm-bel">). The mark is the shipped
   client race emblem from html/img/game/ (see local://game-art.md §A); swapping back to a plain bar
   only needs these rules changed. */
.rm { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; background: center / contain no-repeat; }
.rm-bel { background-image: url(img/game/race-bellato.webp); }
.rm-cor { background-image: url(img/game/race-cora.webp); }
.rm-acc { background-image: url(img/game/race-accretia.webp); }
.race-tag .rm { margin-right: 8px; }
.podium .p-name .rm, .honor-race-head .rm, .archon-col-head .rm { margin-right: 0; }
.archon-col-head .rm, .honor-race-head .rm { width: 24px; height: 24px; }

/* class icon: the shipped 45x45 client job icon (html/img/game/class/<code>.webp); base classes ship no icon */
.ci { display: inline-block; width: 22px; height: 22px; flex: none; object-fit: contain; vertical-align: middle; }
.cell-class { display: inline-flex; align-items: center; gap: 10px; }
.archon-facts .ci { margin-right: 2px; }

/* Archon insignia: the shipped 40x40 committee mark from main.spr (html/img/game/archon-*.webp) */
.am { display: inline-block; width: 40px; height: 40px; flex: none; background: center / contain no-repeat; }
.am-bellato { background-image: url(img/game/archon-bellato.webp); }
.am-cora { background-image: url(img/game/archon-cora.webp); }
.am-accretia { background-image: url(img/game/archon-accretia.webp); }

.live {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px;
  font: 400 var(--fs-sm)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--ash);
}
.live b { font-weight: 500; color: var(--bone); }
.live-item { display: inline-flex; align-items: center; gap: 8px; }
.live[data-state="unknown"] .live-online { display: none; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.bar.is-solid { background: var(--ink); border-bottom-color: var(--rule); }
.bar-row { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { position: relative; z-index: 2; display: block; flex: none; }
.brand img { width: 120px; height: auto; max-width: none; aspect-ratio: 1983 / 793; }
.brand:hover { color: inherit; }

#nav { display: flex; align-items: center; gap: 4px 28px; margin-left: auto; order: 2; }
#nav > a:not(.btn) {
  position: relative; padding: 8px 0; color: var(--ash); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  transition: color .2s;
}
#nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
#nav > a:not(.btn):hover { color: var(--bone); }
#nav > a[aria-current]:not(.btn) { color: var(--bone); }
#nav > a[aria-current]:not(.btn)::after { transform: scaleX(1); }
#nav .btn { min-height: 40px; padding: 0 20px; font-size: var(--fs-sm); margin-left: 4px; }
.nav-head, .nav-status, .nav-war { display: none; }

.lang { position: relative; z-index: 2; display: flex; gap: 4px; order: 3; }
.lang button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--ash); font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: .08em;
  padding: 10px 6px; min-width: 32px; cursor: pointer; transition: color .2s;
}
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--brass); }

.menu {
  position: relative; z-index: 2; order: 4; display: none; align-items: center; gap: 10px;
  appearance: none; background: none; border: 0; color: var(--bone); cursor: pointer;
  font: 500 var(--fs-sm)/1 var(--body); padding: 12px 0 12px 8px; min-height: 44px;
}
.menu-icon { position: relative; width: 22px; height: 12px; }
.menu-icon i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .25s, top .25s; }
.menu-icon i:nth-child(1) { top: 0; }
.menu-icon i:nth-child(2) { top: 5px; }
.menu-icon i:nth-child(3) { top: 11px; }
.menu[aria-expanded="true"] .menu-icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] .menu-icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu { display: inline-flex; }
  .lang { margin-left: auto; order: 3; }
  #nav {
    position: fixed; inset: 0; z-index: 1; order: 5; margin: 0;
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    padding: calc(var(--nav-h) + 24px) 24px 32px; overflow-y: auto;
    background: var(--ink);
  }
  #nav.open { display: flex; }
  .nav-head { display: block; margin-bottom: 8px; font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
  #nav > a:not(.btn) {
    font: 300 clamp(40px, 11vw, 56px)/1.1 var(--display); color: var(--bone); padding: 6px 0; letter-spacing: .005em;
  }
  #nav > a:not(.btn)::after { bottom: 4px; }
  #nav .btn { margin: 28px 0 0; min-height: 52px; padding: 0 32px; font-size: var(--fs-md); }
  .nav-status, .nav-war {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 360px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule);
    font: 400 var(--fs-sm)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ash);
  }
  .nav-status { margin-top: 32px; }
  .nav-status b, .nav-war b { color: var(--bone); font-weight: 500; font-variant-numeric: tabular-nums; }
  .nav-status .label, .nav-war .label { display: inline-flex; align-items: center; gap: 8px; font: inherit; letter-spacing: inherit; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 56px 0 40px; }
.foot-live { margin-bottom: 48px; }
.foot-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.foot-logo { width: 56px; height: 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--ash); text-decoration: none; font-size: var(--fs-sm); padding: 6px 0; }
.foot-links a:hover { color: var(--bone); }
.foot-social { display: flex; gap: 8px; }
.foot-social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ash); }
.foot-social a:hover { color: var(--brass); }
.foot-social svg { width: 22px; height: 22px; }
.foot-legal { margin-top: 40px; max-width: 78ch; font-size: var(--fs-xs); line-height: 1.7; color: var(--ash); letter-spacing: .02em; }

/* ---------- home: hero (letterboxed 2.39:1 frame) ---------- */
.hero {
  padding: 0; min-height: 100svh;
  display: grid; grid-template-rows: var(--nav-h) auto minmax(96px, 1fr);
  background: var(--ink);
}
main > .hero { padding-block: 0; }
.hero-art {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 2.39 / 1; max-height: calc(100svh - var(--nav-h) - 96px);
}
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  animation: drift 30s ease-in-out infinite alternate;
}
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 12, 14, .82), rgba(11, 12, 14, 0) 58%); }
.hero-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(20px, 3vw, 44px); }
.hero-title h1 { font-size: var(--fs-hero); line-height: .92; max-width: 11ch; }
.hero-title p { margin-top: 16px; max-width: 46ch; font-size: var(--fs-lg); line-height: 1.45; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; align-self: center; padding-block: 16px; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

@media (max-width: 700px) {
  .hero-art { aspect-ratio: 3 / 4; max-height: calc(100svh - var(--nav-h) - 148px); }
  .hero-sub { align-self: start; padding-top: 20px; }
}

/* ---------- home: races ---------- */
.races { display: flex; height: min(78vh, 760px); min-height: 440px; background: var(--ink); gap: 2px; }
.race {
  --race: var(--ash);
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  transition: flex-grow .7s cubic-bezier(.2, .7, .2, 1);
}
.race[data-race="bellato"] { --race: var(--bellato); }
.race[data-race="cora"] { --race: var(--cora); }
.race[data-race="accretia"] { --race: var(--accretia); }
/* the race art is portrait (heads near the top): anchor the crop and the hover zoom to the top edge, so a
   wide panel (hover-expanded, browser zoom, wide screens) trims the feet instead of the faces */
.race img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.race::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 12, 14, .88), rgba(11, 12, 14, 0) 55%); }
.race-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 40px); }
.race-mark {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone);
}
.race-mark::before { content: ""; width: 24px; height: 2px; background: var(--race); }
.race h3 { font: 300 clamp(var(--fs-2xl), 5vw, var(--fs-3xl))/.95 var(--display); letter-spacing: .005em; }
.race-body p:not(.race-mark) { margin-top: 12px; max-width: 34ch; }
@media (hover: hover) {
  .race:hover { flex-grow: 1.45; }
  .race:hover img { transform: scale(1.04); }
}
@media (max-width: 800px) {
  .races {
    height: clamp(460px, 74svh, 640px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: var(--ash) transparent;
  }
  .race { flex: 0 0 82%; scroll-snap-align: center; }
  .races:focus-visible { outline-offset: -2px; }
}

/* ---------- home: chip war timeline ---------- */
.tl { position: relative; height: 128px; margin: 8px 0 0; }
.tl-rail { position: absolute; left: 0; right: 0; top: 64px; height: 1px; background: var(--rule); }
.tl-hour {
  position: absolute; top: 80px; left: calc(var(--x) * 1%); transform: translateX(-50%);
  font: 400 var(--fs-xs)/1 var(--mono); color: var(--ash); font-variant-numeric: tabular-nums;
}
.tl-hour.start { transform: none; }
.tl-hour.end { transform: translateX(-100%); }
.tl-war { position: absolute; top: 0; left: calc(var(--x) * 1%); transform: translateX(-50%); text-align: center; height: 65px; }
.tl-war b { display: block; font: 500 var(--fs-lg)/1.2 var(--mono); color: var(--bone); font-variant-numeric: tabular-nums; }
.tl-war span { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--ash); letter-spacing: .08em; text-transform: uppercase; }
.tl-war::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 22px; margin-left: -1px; background: var(--bone); }
@media (max-width: 480px) {
  .tl-war span { letter-spacing: .02em; }
}
.tl-now { position: absolute; top: 60px; left: calc(var(--x) * 1%); width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--brass); }
.tl-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 32px; margin-top: 28px; }
.tl-clock { font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); }
.tl-clock b { color: var(--bone); font-weight: 500; }
.tl-next { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tl-next-label { font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--ash); letter-spacing: .08em; text-transform: uppercase; }
.tl-next-label b { color: var(--bone); font-weight: 500; }
.tl-next-eta { font: 500 var(--fs-3xl)/1 var(--display); color: var(--bone); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 480px) {
  .tl-next { align-items: flex-start; text-align: left; }
  .tl-next-eta { font-size: var(--fs-2xl); }
}

/* ---------- home: news ---------- */
.news-home { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.news-lead { display: block; text-decoration: none; }
.news-lead:hover { color: inherit; }
.news-lead-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.news-lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.news-lead:hover img { transform: scale(1.03); }
.news-lead .list-meta { margin-top: 20px; }
.news-lead h3 { margin-top: 8px; font: 300 clamp(var(--fs-xl), 3.4vw, var(--fs-2xl))/1.02 var(--display); letter-spacing: .005em; }
.news-lead:hover h3 { color: var(--brass); }
.news-lead p { margin-top: 12px; color: var(--ash); max-width: 52ch; }
.news-side .list a { grid-template-columns: 1fr; }
.news-all { margin-top: 28px; }

/* ---------- news list (news.html) and article (article.html) ---------- */
.news-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.news-tools .tabs b { margin-left: 6px; font: 400 var(--fs-xs)/1 var(--mono); color: var(--ash); }
.news-search { display: grid; gap: 6px; width: min(100%, 280px); }
.news-page .note { margin: 32px 0 24px; }
.news-list > li { border-top: 1px solid var(--rule); }
.news-list > li:last-child { border-bottom: 1px solid var(--rule); }
.news-list a {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 6px 20px; align-items: baseline;
  padding: 28px 0; text-decoration: none;
}
.news-list a:hover { color: inherit; }
.news-list a:hover h3 { color: var(--brass); }
.news-text { display: grid; max-width: 62ch; }
.news-text h3 { margin-top: 6px; }
.news-excerpt { margin-top: 8px; color: var(--ash); }
.news-list .has-img { border-top: 0; }
.news-list .has-img a { padding-top: 0; }
.news-img { grid-column: 1 / -1; aspect-ratio: 21 / 9; overflow: hidden; background: var(--deep); margin-bottom: 20px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.news-list a:hover .news-img img { transform: scale(1.03); }
.news-list .has-img h3 { font: 300 clamp(var(--fs-xl), 3.4vw, var(--fs-2xl))/1.02 var(--display); letter-spacing: .005em; }
.news-empty { padding: 40px 0; max-width: 62ch; }
.news-empty .actions { margin-top: 20px; }

.article-head .back-link { margin-bottom: 28px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 20px; font-size: var(--fs-sm); color: var(--ash); }
.article-meta a { text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.article-head h1 { max-width: 22ch; }
.article-wrap { padding-top: clamp(48px, 6vw, 88px); }
.article-body { max-width: 62ch; line-height: 1.7; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { margin-top: 2em; font-size: var(--fs-2xl); line-height: 1; }
.article-body h2 + * { margin-top: .6em; }
.article-body ul { display: grid; gap: .4em; }
.article-body li { padding-left: 1.4em; position: relative; }
.article-body li::before { content: "–"; position: absolute; left: 0; color: var(--ash); }
.article-body a { text-decoration-color: var(--ash); }
.article-wrap .actions { margin-top: 56px; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.pager a { display: grid; gap: 4px; max-width: 30ch; text-decoration: none; }
.pager a:hover { color: var(--brass); }
.pager-next { margin-left: auto; text-align: right; }
.article-wrap .more-head { margin: clamp(80px, 10vw, 140px) 0 24px; font-size: var(--fs-2xl); }

@media (max-width: 640px) {
  .news-list a { grid-template-columns: 1fr; }
  .news-search { width: 100%; }
}

/* ---------- home: rankings teaser ---------- */
.rank-home .table-wrap, .rank-home .podium { max-width: 760px; }

/* ---------- home: download ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta-art { position: absolute; inset: 0; z-index: -1; }
.cta-art img { width: 100%; height: 100%; object-fit: cover; }
.cta-art::after { content: ""; position: absolute; inset: 0; background: rgba(11, 12, 14, .72); }
.cta .steps { margin-top: 48px; max-width: 560px; }
.cta .steps > li { border-color: rgba(236, 230, 218, .24); }
.cta .fact { margin-top: 28px; font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--bone); }

/* ---------- pages: guides, server, download ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.split > .sec-head { margin-bottom: 0; }
.split + .wrap { margin-top: clamp(48px, 6vw, 80px); }
.wide-rows .row { grid-template-columns: minmax(8.5em, 17em) 1fr; }
.wide-rows h3 { font-size: var(--fs-md); font-weight: 600; }
.list .row p { max-width: 62ch; }
.list .row > div > h3 { margin-bottom: 4px; }
.spec-pair, .server-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.spec-pair h4, .server-facts h3 { margin-bottom: 16px; }
.server-facts h3 { font-size: var(--fs-md); }
.req-title { margin-bottom: 24px; }
.spec-pair + .note, .dl-note, .guide .note, .guide .steps + h3 { margin-top: 24px; }
.dl-note { max-width: 62ch; }
.hash { color: var(--ash); }
.patch-table td:last-child { text-align: right; white-space: nowrap; }
.patch-table .btn-quiet { min-height: 32px; background-position: 0 calc(100% - 4px); }
.patch-table .btn-quiet + .btn-quiet { margin-left: 16px; }
#patch-packages { margin-bottom: 24px; }

/* guides: contents column + long-form reading column */
.guide-layout { display: grid; grid-template-columns: 14em minmax(0, 62ch); gap: 48px clamp(40px, 8vw, 120px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc .label { margin-bottom: 12px; }
.toc ol { display: grid; }
.toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--rule); color: var(--ash); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--bone); }
.toc a[aria-current] { color: var(--bone); border-left-color: var(--brass); }
.guides { display: grid; gap: clamp(88px, 11vw, 140px); }
.guide h2 { font-size: clamp(var(--fs-xl), 5vw, var(--fs-2xl)); }
.guide .lede { margin-bottom: 28px; }
.guide h3 { margin: 36px 0 12px; font-size: var(--fs-md); }
.guide h3:first-of-type { margin-top: 0; }
.guide .dl dt { color: var(--bone); font-weight: 500; }
.guide .dl dd { color: var(--ash); }
.guides .faq details { border-top: 1px solid var(--rule); }
.guides .faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style-position: outside; }
.faq summary:hover { color: var(--brass); }
.faq details p { padding: 0 0 18px; color: var(--ash); max-width: 62ch; }
.guides-help { padding-top: 0; }

/* Guide directory: topics link to independent, directly shareable pages. */
.guide-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.guide-category h2 { font-size: var(--fs-2xl); margin-bottom: 24px; }
.guide-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.guide-entry:last-child { border-bottom: 1px solid var(--rule); }
.guide-entry h3 { font-size: var(--fs-lg); font-weight: 500; line-height: 1.3; }
.guide-entry p { grid-column: 1; color: var(--ash); max-width: 52ch; font-size: var(--fs-sm); }
.guide-entry .guide-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--brass); }
.guide-entry:hover h3 { color: var(--brass); }
.guide-back { display: inline-block; color: var(--brass); margin-bottom: 24px; }
.guide-reading { min-width: 0; }
.guide-reading .guide + .guide { margin-top: 44px; }
.guide-reading .guide h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin-bottom: 20px; }
.guide-reading .guide p + p, .guide-reading .guide ul { margin-top: 16px; }
.guide-reading .guide p, .guide-reading .guide li { color: var(--bone); line-height: 1.8; }
.guide-reading .guide ul { padding-left: 22px; list-style: disc; }
.guide-reading .guide li + li { margin-top: 12px; }
.guide-related { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 24px; }
.guide-related h2 { font-size: var(--fs-xl); margin-bottom: 16px; }
.guide-related ul { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; }
@media (max-width: 800px) {
  .guide-directory { grid-template-columns: minmax(0, 1fr); }
  /* The All guides link replaces the sidebar on small screens. */
  .guides-page .toc { display: none; }
}

@media (max-width: 800px) {
  .split, .spec-pair, .server-facts { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); column-gap: 20px; }
  .wide-rows .row { grid-template-columns: 1fr; }
}

/* ---------- motion ---------- */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-pending.is-visible { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 800px) {
  .news-home { grid-template-columns: 1fr; }
  .list a, .list .row { grid-template-columns: 1fr; }
  .dl > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- account, rankings, top-up ---------- */
.acct-page, .rank-page, .topup-page { padding-top: var(--section); }
.acct-lead { max-width: 62ch; font-size: var(--fs-lg); line-height: 1.5; }

/* account dashboard: sticky sidebar (who, section nav, links) + sections; one column under 900px */
.acct-layout:not([hidden]) { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.acct-side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 28px; }
.acct-who { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.acct-who strong { font-size: var(--fs-lg); font-weight: 600; overflow-wrap: anywhere; }
.acct-who .ash { overflow-wrap: anywhere; }
.acct-who .chip { margin-top: 6px; }
.acct-nav { display: grid; border-top: 1px solid var(--rule); }
.acct-nav a {
  padding: 12px 0 12px 14px; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent;
  color: var(--ash); text-decoration: none; transition: color .2s, border-color .2s;
}
.acct-nav a:hover { color: var(--bone); }
.acct-nav a[aria-current="true"] { color: var(--bone); border-left-color: var(--brass); }
.acct-side-links { display: grid; gap: 4px; justify-items: start; font-size: var(--fs-sm); }
.acct-side-links a { color: var(--ash); text-decoration: none; padding: 4px 0; }
.acct-side-links a:hover { color: var(--brass); }
.acct-side-links .btn-quiet { margin-top: 8px; font-size: var(--fs-sm); }

.acct-sec { scroll-margin-top: calc(var(--nav-h) + 24px); }
.acct-sec + .acct-sec { margin-top: 80px; }
.acct-h { margin: 0 0 24px; font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl)); }
.acct-facts { margin-top: 28px; }
.acct-sec .note { margin-top: 24px; }
.acct-sec .lede { margin-bottom: 20px; }
#acct-degraded { margin-bottom: 32px; }
.acct-status { font-size: var(--fs-lg); }
.acct-status .chip { margin-right: 10px; vertical-align: middle; }
.chip-on { color: var(--brass); border-color: var(--brass); }
.acct-balance { font-size: clamp(var(--fs-2xl), 9vw, var(--fs-3xl)); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.acct-balance + .label { margin-top: 10px; }
.acct-chars td, .acct-chars th { white-space: nowrap; }
.acct-chars .is-empty td { white-space: normal; }

@media (max-width: 900px) {
  .acct-layout:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .acct-side { position: static; gap: 20px; }
  .acct-nav { display: flex; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--rule); }
  .acct-nav a { flex: none; padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; }
  .acct-nav a[aria-current="true"] { border-bottom-color: var(--brass); }
  .acct-side-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
  .acct-side-links .btn-quiet { margin-top: 0; }
}
.acct-sec .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .acct-sec .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-sec .strip .strip-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .acct-sec .strip .strip-cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

.rank-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 40px; }
.rank-tools .tabs button { display: inline-flex; align-items: center; }
#rank-note { min-height: 1.5em; margin: 20px 0 8px; }
#rank-error { margin-top: 32px; }

.tp-form { display: grid; gap: 40px; max-width: 520px; }
.tp-form .actions { margin-top: 0; }
.tp-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tp-presets button {
  appearance: none; background: none; border: 1px solid var(--rule); border-radius: 0; cursor: pointer;
  color: var(--ash); font: 400 var(--fs-sm)/1 var(--mono); font-variant-numeric: tabular-nums; padding: 10px 14px;
  transition: color .2s, border-color .2s;
}
.tp-presets button:hover { color: var(--bone); border-color: var(--ash); }
.tp-presets button[aria-pressed="true"] { color: var(--bone); border-color: var(--brass); }
.tp-methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.tp-methods legend { padding: 0; margin-bottom: 12px; }
.tp-method { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); cursor: pointer; }
.tp-method:last-child { border-bottom: 1px solid var(--rule); }
.tp-method input { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; background: none; accent-color: var(--brass); }
.tp-method small { margin-left: auto; font-size: var(--fs-sm); }
.tp-method.is-off { opacity: .5; cursor: default; }
.tp-summary { min-height: 1.5em; }
#tp-status-view h2 { font-size: clamp(var(--fs-xl), 5vw, var(--fs-2xl)); }
#tp-status-view .lede { margin-top: 12px; }
.tp-facts { max-width: 640px; margin: 40px 0 0; }
.pay-box { max-width: 640px; margin-top: 48px; }
.pay-box h3 { margin-bottom: 16px; }
.pay-box .note { margin-top: 20px; }

/* top-up: form left, server treasury right; one column under 900px */
.tp-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.tp-main { min-width: 0; }
.tp-treasury { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--rule); }
.tp-treasury h2 { font-size: clamp(var(--fs-xl), 3.4vw, var(--fs-2xl)); }
.tp-treasury .lede { margin-top: 12px; font-size: var(--fs-md); }
.tp-balance { margin-top: 28px; }
.tp-total { margin-top: 6px; display: flex; align-items: baseline; gap: 10px; }
.tp-total b { font: 500 clamp(var(--fs-xl), 3.6vw, var(--fs-2xl))/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--bone); }
.tp-total span { color: var(--ash); font-size: var(--fs-sm); }
.tp-split { margin: 18px 0 0; }
.tp-split > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.tp-split dt { color: var(--ash); font-size: var(--fs-sm); }
.tp-split dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--bone); }
.tp-split dd small { color: var(--ash); font-size: var(--fs-xs); }
.tp-split-note { margin-top: 10px; color: var(--ash); font-size: var(--fs-xs); line-height: 1.6; }
.tp-rules { list-style: none; padding: 0; margin: 28px 0 0; }
.tp-rules li { padding: 16px 0; border-top: 1px solid var(--rule); }
.tp-rules li:last-child { border-bottom: 1px solid var(--rule); }
.tp-rules h3 { font-size: var(--fs-md); font-weight: 600; }
.tp-rules p { margin-top: 4px; color: var(--ash); font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 900px) {
  .tp-layout { grid-template-columns: minmax(0, 1fr); }
  .tp-treasury { padding-left: 0; border-left: 0; }
}

/* live status rows (server.html map list, filled by account.js) and the shared "More news" heading */
.who { color: var(--ash); font-size: var(--fs-sm); }
.more-head { margin-bottom: 16px; }

/* ---------- widgets: stat strips, podium, race backdrops ---------- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.strip-cell { min-width: 0; padding: 18px 0 18px 24px; border-left: 1px solid var(--rule); }
.strip-cell:first-child { padding-left: 0; border-left: 0; }
.strip-cell b { display: block; font: 500 clamp(20px, 2.4vw, var(--fs-xl))/1.15 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.strip-cell span { display: block; margin-top: 8px; }
.strip-cell .rm { margin-bottom: 10px; }

/* home "Live now": online count + one block per race (emblem, Archon, Chip War wins) */
.now { display: grid; grid-template-columns: minmax(160px, .7fr) repeat(3, minmax(0, 1fr)); gap: 2px; }
.now-online, .now-race { display: grid; align-content: start; gap: 10px; padding: 24px clamp(18px, 2vw, 28px); background: var(--deep); min-width: 0; }
.now-online { align-content: space-between; border-top: 3px solid var(--rule); }
.now-online b { font: 500 clamp(44px, 5vw, 64px)/1 var(--mono); font-variant-numeric: tabular-nums; }
.now-race { color: var(--bone); text-decoration: none; border-top: 3px solid var(--race, var(--rule)); transition: background .2s; }
.now-race:hover { background: #181a1f; }
.now-race.bel { --race: var(--bellato); }
.now-race.cor { --race: var(--cora); }
.now-race.acc { --race: var(--accretia); }
.now-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); font: 300 var(--fs-xl)/1 var(--display); }
.now-head .rm { width: 30px; height: 30px; }
.now-archon { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now-archon .am { width: 32px; height: 32px; }
.now-archon b { font: 300 clamp(var(--fs-lg), 2.2vw, var(--fs-xl))/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-wins { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.now-wins b { font: 500 var(--fs-xl)/1 var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .now { grid-template-columns: 1fr; }
  .now-online { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 560px) {
  .strip-cell { padding: 16px 0 16px 16px; }
  .podium a, .podium .p-row { grid-template-columns: 1.6em minmax(0, 1fr); }
  .podium .p-meta { grid-column: 2; text-align: left; white-space: normal; }
}

.podium { border-top: 1px solid var(--rule); }
.podium > li { border-bottom: 1px solid var(--rule); }
.podium a, .podium .p-row {
  display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: center;
  gap: 4px 16px; padding: 16px 0; text-decoration: none;
}
.podium .p-pos { font: 500 var(--fs-lg)/1 var(--mono); color: var(--ash); font-variant-numeric: tabular-nums; }
.podium .p-name { display: flex; align-items: center; gap: 14px; min-width: 0; font: 300 clamp(var(--fs-lg), 2.6vw, var(--fs-xl))/1.05 var(--display); }
.podium .p-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .p-meta { font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); text-align: right; white-space: nowrap; }
.podium .p-meta .ci { margin-right: 6px; }
.podium a:hover .p-name { color: var(--brass); }
.podium > li:first-child .p-name { font-size: clamp(var(--fs-xl), 3.4vw, var(--fs-2xl)); }
.podium > li:first-child .p-pos { color: var(--bone); }

.race-bg { position: relative; overflow: hidden; background: var(--ink); }
.race-bg > .bg-art { position: absolute; inset: 0; }
.race-bg > .bg-art img { width: 100%; height: 100%; object-fit: cover; }
.race-bg > .bg-art::after { content: ""; position: absolute; inset: 0; background: rgba(11, 12, 14, .74); }
.race-bg > *:not(.bg-art) { position: relative; }

/* art paired with a text block (server rates, download steps, guides races) */
.facts-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pair-art { overflow: hidden; background: var(--deep); aspect-ratio: 4 / 3; }
.pair-art img { width: 100%; height: 100%; object-fit: cover; }
.pair-art-tall { aspect-ratio: 3 / 4; }
.dl-art { margin-top: 28px; aspect-ratio: 21 / 9; }
.race-art-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 32px; }
.race-art-row figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--deep); }
.race-art-row img { width: 100%; height: 100%; object-fit: cover; }
.race-art-row figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(11, 12, 14, .72);
}
@media (max-width: 800px) { .facts-pair { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .race-art-row { grid-template-columns: 1fr; } }

/* ---------- rankings hub ---------- */
.hub-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--rule); margin-bottom: clamp(28px, 4vw, 44px); }

.archons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.archon-col { position: relative; overflow: hidden; background: var(--ink); padding: clamp(20px, 2.6vw, 32px); }
.archon-col-art { position: absolute; inset: 0; margin: 0; }
.archon-col-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(.7); }
.archon-col-art::after { content: ""; position: absolute; inset: 0; background: rgba(11, 12, 14, .86); }
.archon-col > *:not(.archon-col-art) { position: relative; }
.archon-col-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.archon-col-head h3 { font: 300 var(--fs-xl)/1 var(--display); }
.archon-seat0 .office { display: flex; align-items: center; gap: 10px; font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.archon-seat0 .name { margin-top: 10px; font: 300 clamp(var(--fs-xl), 3vw, var(--fs-2xl))/1.02 var(--display); overflow-wrap: anywhere; }
.archon-seat0 .name.is-empty { font: 400 var(--fs-lg)/1.3 var(--body); color: var(--ash); }
.archon-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); }
.council-group { margin-top: 28px; font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.council { margin-top: 8px; }
.council > li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); }
.council .office { font: 500 var(--fs-sm)/1.4 var(--body); color: var(--ash); }
.council .who { display: grid; gap: 2px; }
.council .who.is-empty { font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); opacity: .7; }
.council .who-name { display: flex; align-items: center; gap: 8px; }
.council .who-name b { color: var(--bone); font: 500 var(--fs-md)/1.4 var(--body); overflow-wrap: anywhere; }
.council .who-meta { font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); }

.honor-races { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.honor-race-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.honor-race-head h3 { font-size: var(--fs-md); font-weight: 600; }
.honor-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.honor-list .h-guild { font-weight: 500; }
.honor-list .h-master { grid-column: 1; font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); }
.honor-list .h-tax { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); text-align: right; }
.honor-list .h-tax b { display: block; color: var(--bone); font-weight: 500; }
.honor-list .h-guild .chip { margin-left: 8px; }

.chipwar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.chipwar .strip { margin-bottom: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chipwar .strip .strip-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
.result-list > li { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.result-list > li:last-child { border-bottom: 1px solid var(--rule); }
.result-list time { font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); white-space: nowrap; }
.result-list .r-winner { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.result-list .r-keeper { font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--ash); }

@media (max-width: 900px) {
  .archons { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .honor-races, .chipwar { grid-template-columns: 1fr; }
  .result-list > li { grid-template-columns: max-content minmax(0, 1fr); }
  .result-list .r-keeper { grid-column: 2; }
}
