/* Ace Rivals community site. Dark, quiet, content first.
   No external fonts, no frameworks. Mobile-first; breakpoints 720px / 960px.
   Theme hooks set by the panel via /theme.css: --cyan --orange --bg --bg-2
   --line --line-strong --cyan-2 --orange-2. */
:root {
  --bg: #05080e;
  --bg-2: #0a1220;
  --surface: #0b1420;
  --surface-2: #101b2a;
  --line: rgba(80, 180, 255, .14);
  --line-strong: rgba(80, 200, 255, .38);
  --text: #e4ebf5;
  --text-2: #c1ccdb;
  --muted: #94a3b8;
  --cyan: #38d0ff;
  --cyan-2: #0b9fd8;
  --orange: #ff8a24;
  --orange-2: #ff5a1f;
  --green: #3ddc8f;
  --red: #ff5d6e;
  --yellow: #ffd04d;
  --bcu: #4aa9ff;
  --ani: #ff6a3d;
  --discord: #5865f2;
  --radius: 6px;
  --display: Bahnschrift, "DIN Alternate", "Segoe UI Semibold", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 16px/1.6 var(--font);
  background: var(--bg) linear-gradient(180deg, var(--bg-2) 0, var(--bg) 520px) no-repeat;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: rgba(140, 180, 230, .1); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
kbd {
  display: inline-block; min-width: 1.8em; padding: .05em .45em; text-align: center; line-height: 1.5;
  border: 1px solid #34465e; border-bottom-width: 2px; border-radius: 4px;
  background: #121d2c; color: #fff; font-weight: 600;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
::selection { background: rgba(56, 208, 255, .35); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(700px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(32px, 5vw, 56px) 0; }
.section.tight { padding-top: 8px; }
.section + .section { border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.left { text-align: left; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--orange); color: #1a0a00; padding: 6px 12px; }

/* ── top bar ────────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5, 8, 14, .94); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; position: relative; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; flex-shrink: 0; font: 700 1.15rem/1 var(--display); letter-spacing: .02em; }
.brand:hover { color: #fff; text-decoration: none; }
.brand b { color: var(--orange); font-weight: 700; }
.top-cta { margin-left: auto; }
.nav-toggle {
  width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav a { color: var(--text-2); }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: #fff; }
.nav.open {
  display: flex; flex-direction: column; position: absolute; top: 60px; left: -16px; right: -16px;
  max-height: calc(100vh - 60px); overflow-y: auto;
  background: #070c15; border-bottom: 1px solid var(--line-strong); padding: 6px 16px 18px;
}
.nav.open > a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.nav.open > a.active { color: var(--orange); }
.nav .nav-sep { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; align-self: flex-start; margin-top: 14px; }
.lang a { padding: 5px 10px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang a:hover { text-decoration: none; color: #fff; }
.lang a.on { background: var(--surface-2); color: #fff; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav, .nav.open {
    display: flex; flex-direction: row; align-items: center; gap: 4px; margin-left: 20px; flex: 1;
    position: static; background: none; border: 0; padding: 0; max-height: none; overflow: visible;
  }
  .nav > a { padding: 8px 10px; font-size: .95rem; border-bottom: 0; position: relative; white-space: nowrap; }
  .nav > a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -11px; height: 2px; background: var(--orange); }
  .nav .nav-sep { display: block; flex: 1; }
  .nav.open > a { border-bottom: 0; padding: 8px 10px; font-size: .95rem; }
  .nav.open > a.active { color: #fff; }
  .lang { margin: 0 0 0 8px; align-self: center; }
  .top-cta { margin-left: 4px; order: 3; }
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  font: 600 .98rem/1.2 var(--display); letter-spacing: .01em; color: #fff; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; color: #fff; }
.btn-primary { background: var(--orange); color: #1a0a00; }
.btn-primary:hover { background: var(--orange-2); color: #1a0a00; }
.btn-primary:focus-visible, .chip.on:focus-visible { outline-color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--cyan); }
.btn-discord { background: var(--discord); }
.btn-discord:hover { background: #4752c4; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn.block { display: flex; width: 100%; margin: 12px 0; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { flex-shrink: 0; }
.btn small { display: block; font: 400 .8rem/1.3 var(--font); opacity: .85; margin-top: 2px; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 3px; font: 600 .78rem/1.5 var(--display);
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line);
}
.tag.t-patch { color: var(--cyan); border-color: rgba(56, 208, 255, .35); }
.tag.t-news { color: var(--orange); border-color: rgba(255, 138, 36, .4); }
.tag.t-event { color: var(--green); border-color: rgba(61, 220, 143, .4); }
.tag.t-maintenance { color: var(--yellow); border-color: rgba(255, 208, 77, .4); }
.tag.beta { color: var(--orange); border-color: rgba(255, 138, 36, .45); background: rgba(255, 138, 36, .08); }

/* ── panels ─────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.25rem; }
.grid { display: grid; gap: 20px; }
.grid > .card { margin-bottom: 0; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: 20px; }

.page-head { padding: clamp(28px, 5vw, 52px) 0 12px; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--text-2); font-size: 1.08rem; max-width: 720px; }
.page-head .back { display: inline-block; margin-bottom: 14px; font-size: .95rem; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head-row h2 { margin: 0; }

/* ── home: hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; } }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-2); font-size: .95rem; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; max-width: 14ch; margin-bottom: 18px; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.15rem); color: var(--text-2); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* server board (real numbers, no decoration) */
.board { background: rgba(11, 20, 32, .92); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.board-head a { font-size: .9rem; }
.state { display: inline-flex; align-items: center; gap: 9px; font: 700 1.1rem/1.2 var(--display); }
.state i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.state.up { color: var(--green); }
.state.up i { background: var(--green); }
.state.partial { color: var(--yellow); }
.state.partial i { background: var(--yellow); }
.state.down { color: var(--red); }
.board-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.board-stats div { padding: 14px 18px; }
.board-stats div + div { border-left: 1px solid var(--line); }
.board-stats dt { color: var(--muted); font-size: .88rem; }
.board-stats dd { margin: 2px 0 0; font: 700 1.9rem/1.1 var(--display); color: #fff; }
.board-balance { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.board-balance p { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: .92rem; color: var(--text-2); }
.board-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-2); }
.board-foot a { display: block; color: #fff; font-weight: 600; margin-top: 2px; }
.bar { display: block; width: 100%; height: 8px; border-radius: 4px; }
.bcu { color: var(--bcu); }
.ani { color: var(--ani); }

/* join steps + beta notes */
.join { display: grid; gap: 28px; }
@media (min-width: 960px) { .join { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 22px 52px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1rem/1 var(--display); color: var(--orange); border: 1px solid rgba(255, 138, 36, .55);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: var(--line-strong); }
.steps h3 { margin: 5px 0 4px; }
.steps p { color: var(--text-2); margin: 0 0 4px; }
.notes { border-left: 2px solid var(--orange); padding-left: 18px; align-self: start; }
.notes h2 { font-size: 1.15rem; }
.notes ul { padding-left: 1.1em; color: var(--text-2); }
.notes li { margin: 0 0 .6em; }

/* news list */
.news-rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-rows li { border-bottom: 1px solid var(--line); }
.news-rows a { display: grid; gap: 4px 20px; padding: 16px 4px; color: var(--text); }
.news-rows a:hover { text-decoration: none; background: rgba(255, 255, 255, .02); }
.news-rows a:hover h3 { color: var(--cyan); }
@media (min-width: 720px) { .news-rows a { grid-template-columns: 170px 1fr; } }
.news-rows .meta { padding-top: 3px; }
.news-rows h3 { margin: 0 0 4px; font-size: 1.12rem; }
.news-rows p { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.meta time { font-variant-numeric: tabular-nums; }

/* overview: nations + gears */
.overview { display: grid; gap: 32px; }
@media (min-width: 960px) { .overview { grid-template-columns: 1fr 1fr; gap: 48px; } }
.overview h2 { font-size: 1.3rem; }
.nation-list, .gear-list { list-style: none; padding: 0; margin: 0 0 14px; }
.nation-list li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nation-list li:first-child, .gear-list li:first-child { border-top: 1px solid var(--line); }
.nation-list svg { width: 44px; height: 44px; grid-row: span 2; }
.nation-list h3 { margin: 0; font-size: 1.15rem; }
.nation-list h3 small { font: 400 .88rem var(--font); color: var(--muted); margin-left: 6px; }
.nation-list p, .gear-list p { margin: 0; color: var(--text-2); font-size: .97rem; }
.gear-list li { display: grid; grid-template-columns: 96px 1fr; gap: 2px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gear-list .gear-art { grid-row: span 2; display: block; }
.gear-list .gear-art svg { width: 96px; height: 58px; display: block; }
.gear-list h3 { margin: 0; font-size: 1.05rem; }
.gear-list h3 span { font: 400 .9rem var(--font); color: var(--muted); margin-left: 4px; }

/* screenshots */
.shots { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.shot figcaption { padding: 6px 2px 0; font-size: .9rem; color: var(--muted); }

/* discord line */
.discord-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 1px solid rgba(88, 101, 242, .45); border-radius: var(--radius); background: rgba(88, 101, 242, .08); }
.discord-line p { margin: 0; color: var(--text-2); max-width: 640px; }
.discord-line b { color: #fff; }
.discord-online { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px; font-weight: 600; color: #fff; white-space: nowrap; }
.discord-online i { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 3px rgba(59, 165, 93, .25); }

/* ── generic lists, prose ───────────────────────────────────────────────── */
.chip {
  display: inline-block; padding: 6px 12px; font: 600 .9rem/1.2 var(--display); border-radius: 999px;
  color: var(--text-2); border: 1px solid var(--line); background: var(--surface);
}
.chip:hover { color: #fff; border-color: var(--line-strong); text-decoration: none; }
.chip.on { color: #1a0a00; background: var(--orange); border-color: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item h2 { font-size: 1.35rem; margin: 8px 0 6px; }
.news-item h2 a { color: #fff; }
.news-item p { color: var(--text-2); margin-bottom: 8px; }

.prose { font-size: 1.03rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4em; }
.prose h4 { font-size: 1rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--orange); }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--orange); background: rgba(255, 138, 36, .06); color: var(--text-2); }
.prose img { border: 1px solid var(--line); border-radius: var(--radius); }
.prose > :first-child { margin-top: 0; }

.num-list { counter-reset: n; list-style: none; padding: 0; margin: 0 0 1em; }
.num-list > li { position: relative; padding: 0 0 10px 40px; counter-increment: n; }
.num-list > li::before {
  content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .9rem/1 var(--display); color: var(--orange); border: 1px solid rgba(255, 138, 36, .55);
}
.num-list li b { color: #fff; }

/* ── forms ──────────────────────────────────────────────────────────────── */
.form-card { max-width: 520px; margin-inline: auto; }
.form-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.field { display: block; margin-bottom: 18px; }
.field > span:first-child { display: block; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: #fff; background: #060b13;
  border: 1px solid #2b3d55; border-radius: var(--radius); transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:hover, .field textarea:hover { border-color: #3d5575; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field .hint { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.field .err { display: block; margin-top: 6px; color: var(--red); font-style: normal; font-size: .92rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 78px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; border-radius: 4px;
  color: var(--cyan); font: 600 .88rem var(--font); cursor: pointer; padding: 8px 10px;
}
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: block; padding: 12px 16px; border: 1px solid rgba(255, 93, 110, .5); border-left-width: 3px; border-radius: var(--radius); background: rgba(255, 93, 110, .08); color: #ffd6db; margin-bottom: 18px; }
.alert.notice { border-color: rgba(255, 208, 77, .5); background: rgba(255, 208, 77, .07); color: #fdeec0; }
.alert.info { border-color: var(--line-strong); background: rgba(56, 208, 255, .06); color: #d2eefb; }
.alert.ok { border-color: rgba(61, 220, 143, .5); background: rgba(61, 220, 143, .07); color: #cdf6e0; }
.alert b, .alert strong { color: #fff; }
a.alert:hover { text-decoration: none; filter: brightness(1.15); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.side-list li:first-child { padding-top: 0; }
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.account-chip { display: inline-block; font: 700 1.35rem var(--mono); padding: 8px 18px; background: #060b13; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: #fff; }
.layout-form { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .layout-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; } .layout-form .form-card { max-width: none; margin: 0; } }
.aside-notes h2 { font-size: 1.1rem; }
.ok-mark { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.9rem; color: var(--green); border: 2px solid var(--green); border-radius: 50%; }
.ok-mark.pending { color: var(--yellow); border-color: var(--yellow); }
.ok-mark.rejected { color: var(--red); border-color: var(--red); }
.track { font-family: var(--mono); word-break: break-all; margin: 8px 0 10px; }
.center-row { justify-content: center; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }

/* ── tables ─────────────────────────────────────────────────────────────── */
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--muted); font-weight: 600; width: 34%; }
.spec thead th { color: var(--text-2); }
.spec.left { margin: 6px 0 16px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── download ───────────────────────────────────────────────────────────── */
.dl-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1100px) { .dl-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; } }
.dl-steps { list-style: none; padding: 0; margin: 0; counter-reset: d; }
.dl-steps > li { position: relative; padding: 0 0 26px 52px; counter-increment: d; }
.dl-steps > li::before {
  content: counter(d); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1rem/1 var(--display); color: var(--orange); border: 1px solid rgba(255, 138, 36, .55);
}
.dl-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 8px; width: 1px; background: var(--line-strong); }
.dl-steps h2 { font-size: 1.25rem; margin: 4px 0 8px; }
.dl-steps p { color: var(--text-2); }
.dl-steps p:last-child { margin-bottom: 0; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 12px; }
.dl-buttons .btn { justify-content: flex-start; text-align: left; min-width: 220px; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 10px; color: var(--muted); font-size: .93rem; padding: 0; list-style: none; }
.dl-facts b { color: #fff; font-weight: 600; }
.warn-box { border-left: 3px solid var(--yellow); background: rgba(255, 208, 77, .06); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin: 10px 0; color: var(--text-2); font-size: .97rem; }
.warn-box b { color: #fff; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.files li { padding: 6px 10px; background: #060b13; border: 1px solid var(--line); border-radius: var(--radius); font: .9rem var(--mono); }
.sha { font-size: .88rem; color: var(--muted); }
.sha code { display: block; margin-top: 4px; word-break: break-all; }

/* ── faq ────────────────────────────────────────────────────────────────── */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 40px 14px 2px; font-weight: 600; list-style: none; position: relative; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--orange); font: 700 1.3rem var(--display); }
.faq[open] summary::after { content: "−"; }
.faq > div, .faq > p { padding: 0 2px 16px; margin: 0; color: var(--text-2); }

/* ── guide ──────────────────────────────────────────────────────────────── */
.guide { display: grid; gap: 28px; }
@media (min-width: 960px) { .guide { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; } }
.toc { display: none; }
@media (min-width: 960px) {
  .toc { display: block; position: sticky; top: 84px; align-self: start; }
  .toc a { display: block; padding: 6px 12px; color: var(--muted); border-left: 2px solid var(--line); font-size: .95rem; }
  .toc a:hover { color: #fff; border-left-color: var(--orange); text-decoration: none; }
}
.toc-mobile { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
@media (min-width: 960px) { .toc-mobile { display: none; } }
.toc-mobile a { flex-shrink: 0; }
.guide-sec { scroll-margin-top: 80px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.guide-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-sec > h2 { font-size: 1.45rem; }
.keys { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .keys { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.key-row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.key-row .k { min-width: 104px; display: flex; gap: 4px; flex-wrap: wrap; }
.key-row span:last-child { color: var(--text-2); font-size: .97rem; }
.callout { padding: 12px 16px; border-left: 3px solid var(--cyan); background: rgba(56, 208, 255, .06); border-radius: 0 var(--radius) var(--radius) 0; margin: 14px 0; color: var(--text-2); }
.callout p:last-child { margin: 0; }
.nation-pair { display: grid; gap: 14px; margin: 14px 0; }
@media (min-width: 720px) { .nation-pair { grid-template-columns: 1fr 1fr; } }
.nation-pair > div { padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--bcu); border-radius: var(--radius); background: var(--surface); }
.nation-pair > div.ani-box { border-top-color: var(--ani); }
.nation-pair h3 { margin: 0 0 2px; }
.nation-pair .full { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.nation-pair p { margin: 0; color: var(--text-2); }
.gear-grid { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 16px; }
.gear-grid > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.gear-grid .gear-art svg { width: 110px; height: 66px; display: block; }
.gear-grid h3 { margin: 0 0 4px; }
.gear-grid p { margin: 0; color: var(--text-2); }
@media (max-width: 480px) { .gear-grid > div { grid-template-columns: 1fr; gap: 6px; } }

/* ── status ─────────────────────────────────────────────────────────────── */
.status-hero { display: grid; gap: 20px; }
@media (min-width: 860px) { .status-hero { grid-template-columns: 1.4fr .6fr; } }
.status-big { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-big .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.status-card.up .dot { background: var(--green); }
.status-card.partial .dot { background: var(--yellow); }
.status-big strong { display: block; font: 700 clamp(1.5rem, 4vw, 2.1rem)/1.1 var(--display); }
.status-card.up .status-big strong { color: var(--green); }
.status-card.down .status-big strong { color: var(--red); }
.status-card.partial .status-big strong { color: var(--yellow); }
.players-big { display: grid; align-content: center; }
.players-big b { font: 700 clamp(2.6rem, 7vw, 3.8rem)/1 var(--display); color: #fff; }
.players-big span { color: var(--text-2); }
.svc-list { list-style: none; padding: 0; margin: 18px 0 14px; }
.svc-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.svc { font: 600 .88rem var(--display); padding: 3px 10px; border-radius: 3px; }
.svc.up { color: var(--green); background: rgba(61, 220, 143, .1); }
.svc.down { color: var(--red); background: rgba(255, 93, 110, .1); }

/* ── rankings ───────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
@media (min-width: 720px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
.stat b { display: block; font: 700 1.6rem/1.15 var(--display); color: #fff; }
.stat span { font-size: .9rem; color: var(--muted); }
.stat b.bcu { color: var(--bcu); }
.stat b.ani { color: var(--ani); }
.stat b.small-b { font-size: 1.15rem; padding: 5px 0 2px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.stat b.small-b span { white-space: nowrap; color: #fff; font-size: inherit; }
.rank-tools { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-bottom: 18px; }
.rank-tools .group { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.rank-table th { text-align: left; font-weight: 600; font-size: .88rem; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.rank-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.rank-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table .pos { width: 48px; font: 700 1rem var(--display); color: var(--muted); }
.rank-table tr.top1 .pos { color: #ffd04d; }
.rank-table tr.top2 .pos { color: #d7e2f0; }
.rank-table tr.top3 .pos { color: #e3995c; }
.rank-table .name { font-weight: 600; color: #fff; }
.nat { font: 700 .8rem var(--display); padding: 2px 7px; border-radius: 3px; }
.nat.BCU { color: var(--bcu); background: rgba(74, 169, 255, .12); }
.nat.ANI { color: var(--ani); background: rgba(255, 106, 61, .12); }
.gear-tag { font: 700 .85rem var(--mono); color: var(--orange); }
@media (max-width: 719px) {
  .rank-table .hide-sm { display: none; }
  .rank-table th, .rank-table td { padding: 9px 6px; }
  .rank-table .pos { width: 30px; }
}

/* ── report ─────────────────────────────────────────────────────────────── */
.link-card { display: block; color: var(--text); }
.link-card:hover { text-decoration: none; border-color: var(--line-strong); color: var(--text); }
.link-card h2 { color: #fff; }
.link-card p { color: var(--text-2); }
.link-card .go { color: var(--cyan); font-weight: 600; }
.template { white-space: pre-wrap; font: .9rem/1.6 var(--mono); background: #060b13; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; color: #d3e0ef; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: #04070c; }
.footer-in { display: grid; gap: 24px; padding: 36px 0 22px; }
@media (min-width: 860px) { .footer-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h2 { font-size: .95rem; color: var(--text-2); margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer li a { color: var(--text-2); font-size: .95rem; }
.footer li a:hover { color: #fff; }
.footer-note { color: var(--muted); font-size: .9rem; max-width: 420px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 0 22px; color: #6d7d94; font-size: .86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* 404 */
.big { font: 700 clamp(4rem, 14vw, 7rem)/1 var(--display); margin: 0 0 10px; color: var(--orange); }

/* announcement bar set in the panel */
.site-notice { padding: 10px 0; font-size: .97rem; text-align: center; background: rgba(56, 208, 255, .08); border-bottom: 1px solid var(--line-strong); color: #d8f3ff; }
.site-notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-notice.warn { background: rgba(255, 208, 77, .1); border-color: rgba(255, 208, 77, .45); color: #fdeec0; }
.site-notice.ok { background: rgba(61, 220, 143, .08); border-color: rgba(61, 220, 143, .45); color: #cdf6e0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
