/* TopPrivateServer: cozy violet theme with lavender and plum, warm wood browns, cream text. No framework. */

:root {
  color-scheme: dark;
  --bg: #151119;
  --bg-2: #1a151f;
  --surface: #1f1925;
  --surface-2: #271f2e;
  --surface-3: #302738;
  --line: #3a3044;
  --line-soft: #2d2535;
  --text: #f2e9e1;
  --text-2: #d4c7c3;
  --muted: #a3949c;
  --accent: #a88be0;
  --accent-2: #c6b1f2;
  --accent-hi: #b9a0ec;
  --accent-mid: #7a5fb5;
  --accent-deep: #45346e;
  --accent-line: #9a7fd6;
  --on-accent: #1a1029;
  --brown: #b8805a;
  --brown-2: #e0b08a;
  --brown-deep: #5c3c2c;
  --gold: #e8bb4f;
  --gold-soft: #f3d58b;
  --gold-text: #fff3d6;
  --mint: #86d3a7;
  --danger: #e0805f;
  --discord: #6f78d9;
  --glow-1: rgb(122 95 181 / 0.24);
  --glow-2: rgb(184 128 90 / 0.16);
  --grid: #342b3d;
  /* Tiles: main hue = from + h × k (violet → orchid), second hue = brown; h is a stable 25 to 165 value per game. */
  --hue-from: 245;
  --hue-k: 0.5;
  --hue2-from: 12;
  --hue2-k: 0.15;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.55);
  --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 45%, transparent);
  /* Banner frame: classic 468×60 top-list banners. Change here if your banners use another format. */
  --banner-ratio: 468 / 60;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", var(--font);
}

/* Light theme: the visitor's choice (button at the top right, data-theme on <html>), else the system's. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3f8;
  --bg-2: #f1ebf3;
  --surface: #ffffff;
  --surface-2: #f6f0f8;
  --surface-3: #ece4f0;
  --line: #ddd2e2;
  --line-soft: #e9e1ed;
  --text: #241b2b;
  --text-2: #4a3f52;
  --muted: #776a7e;
  --accent: #6d4fb8;
  --accent-2: #5a3fa0;
  --accent-hi: #7e60c9;
  --accent-mid: #8f74d0;
  --accent-deep: #ded3f5;
  --accent-line: #7b5fc7;
  --on-accent: #ffffff;
  --brown: #9a6440;
  --brown-2: #8a5530;
  --brown-deep: #5c3c2c;
  --gold: #b8860b;
  --gold-soft: #94690f;
  --gold-text: #5e410a;
  --mint: #23875a;
  --danger: #c24a2a;
  --discord: #5865f2;
  --glow-1: rgb(122 95 181 / 0.12);
  --glow-2: rgb(184 128 90 / 0.08);
  --grid: #e4dbe8;
  --shadow: 0 10px 30px -14px rgb(60 40 80 / 0.28);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f3f8;
    --bg-2: #f1ebf3;
    --surface: #ffffff;
    --surface-2: #f6f0f8;
    --surface-3: #ece4f0;
    --line: #ddd2e2;
    --line-soft: #e9e1ed;
    --text: #241b2b;
    --text-2: #4a3f52;
    --muted: #776a7e;
    --accent: #6d4fb8;
    --accent-2: #5a3fa0;
    --accent-hi: #7e60c9;
    --accent-mid: #8f74d0;
    --accent-deep: #ded3f5;
    --accent-line: #7b5fc7;
    --on-accent: #ffffff;
    --brown: #9a6440;
    --brown-2: #8a5530;
    --brown-deep: #5c3c2c;
    --gold: #b8860b;
    --gold-soft: #94690f;
    --gold-text: #5e410a;
    --mint: #23875a;
    --danger: #c24a2a;
    --discord: #5865f2;
    --glow-1: rgb(122 95 181 / 0.12);
    --glow-2: rgb(184 128 90 / 0.08);
    --grid: #e4dbe8;
    --shadow: 0 10px 30px -14px rgb(60 40 80 / 0.28);
}
}

.mono, .ph, .avatar, .gbar-row, .bn-art, .bn-wide-art, .bn-mini-logo {
  --hh: calc(var(--hue-from) + var(--h, 90) * var(--hue-k));
  --hh2: calc(var(--hue2-from) + var(--h, 90) * var(--hue2-k));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.55 var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 8% -8%, var(--glow-1), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, var(--glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
small { font-size: .82em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .86rem; }
.err { color: var(--danger); }
.ok { color: var(--mint); }
.grad { background: linear-gradient(100deg, var(--accent-2), var(--brown-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--brown-2); margin-bottom: .6em; }
.lead { color: var(--text-2); font-size: 1.05rem; max-width: 62ch; }

/* ---------- buttons & chips ---------- */
.btn {
  --b: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--b); color: var(--text); font: 600 .92rem/1 var(--font); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent-mid)); border-color: var(--accent-line); color: var(--on-accent); box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-primary:hover { color: var(--on-accent); border-color: var(--accent-2); box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--accent) 85%, transparent); }
.btn-ghost { background: transparent; }
.btn-discord { background: color-mix(in oklab, var(--discord) 22%, var(--surface-2)); border-color: color-mix(in oklab, var(--discord) 55%, var(--line)); }
.btn-danger { background: transparent; border-color: color-mix(in oklab, var(--danger) 60%, var(--line)); color: var(--danger); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: .84rem; border-radius: 8px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 1rem; }

.chip { display: inline-flex; align-items: center; gap: .3em; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-3); border: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
a.chip:hover { color: var(--text); border-color: var(--muted); }
.chip-gold { background: linear-gradient(100deg, #6b5115, #9a7522); border-color: #b48b2c; color: #fff4d4; }
.chip-new { background: color-mix(in oklab, var(--mint) 18%, var(--surface-2)); border-color: color-mix(in oklab, var(--mint) 55%, var(--line)); color: var(--mint); }

.mono {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  font: 800 .78rem/1 var(--font-display); letter-spacing: -.02em; color: #fdf7ea;
  background: linear-gradient(135deg, hsl(var(--hh) 34% 36%), hsl(var(--hh2) 30% 24%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
}
.mono-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }

.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); animation: pulse 2s infinite; flex: none; }
.pulse-lg { width: 12px; height: 12px; margin-right: 10px; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px) saturate(140%); background: color-mix(in oklab, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line-soft); }
.topbar-inner { max-width: 1480px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgb(60 50 160 / .3)); }
.brand-name { font: 800 1.12rem/1 var(--font-display); letter-spacing: -.02em; margin: 0; }
.brand-name b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; min-width: 0; }
.nav > a, .games-menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.nav > a:hover, .games-menu > summary:hover, .games-menu[open] > summary { background: var(--surface-2); color: var(--text); }
.nav [aria-current="page"] { color: var(--text); background: var(--surface-2); }
.games-menu { position: relative; }
.games-menu > summary { list-style: none; }
.games-menu > summary::-webkit-details-marker { display: none; }
.games-menu > summary::after { content: "▾"; font-size: .7em; opacity: .7; }
.games-menu .menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(560px, 92vw); max-height: 70vh; overflow: auto; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.games-menu .menu-search { grid-column: 1 / -1; width: 100%; margin: 0 0 6px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.games-menu .menu-search:focus { outline: none; border-color: var(--accent); }
.games-menu .menu a[hidden] { display: none; }
.games-menu .menu a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; color: var(--text); }
.games-menu .menu a:hover { background: var(--surface-2); }
.games-menu .menu a span:nth-child(2) { flex: 1; }
.games-menu .menu small { color: var(--muted); }
.menu-empty { color: var(--muted); padding: 8px; margin: 0; }
.live-link { color: var(--text) !important; }
.btn-add { margin-left: auto; }

/* ---------- Admin mode bar (logged-in admin only) ---------- */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 16px; font-size: .85rem; background: var(--brown-deep); color: #fbf4e4; border-bottom: 1px solid var(--line); }
.admin-bar a { color: var(--accent-2); font-weight: 700; }
.admin-bar form { margin-left: auto; }
.admin-bar-out { background: none; border: 1px solid rgb(251 244 228 / .4); color: inherit; border-radius: 6px; padding: 2px 10px; font: inherit; cursor: pointer; }

/* ---------- 3-column shell with ad rails ---------- */
.shell { max-width: 1480px; margin: 0 auto; padding: 22px 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.main { min-width: 0; }
/* Phones: the first vertical banner of each side floats in a bottom corner, over the page, with a
   close button (closed for the rest of the visit). */
.rail-close { display: none; }
@media (max-width: 859px) {
  /* The first banner of a side in its bottom corner, the second in its top corner: the 4 in view.
     (No filter on the rail: it would pin the second banner to the rail instead of the window.) */
  .rail { position: fixed; bottom: 12px; z-index: 30; display: block; }
  .rail-left { left: 10px; }
  .rail-right { right: 10px; }
  .rail > :is(.bn-item, .bn-empty) { filter: drop-shadow(0 10px 24px rgb(0 0 0 / .45)); }
  .rail > :is(.bn-item, .bn-empty) ~ :is(.bn-item, .bn-empty) { position: fixed; top: 12px; }
  .rail-left > :is(.bn-item, .bn-empty) ~ :is(.bn-item, .bn-empty) { left: 10px; }
  .rail-right > :is(.bn-item, .bn-empty) ~ :is(.bn-item, .bn-empty) { right: 10px; }
  .rail .bn-card, .rail .bn-empty { width: 96px; }
  .rail .bn-empty { background: var(--surface); }
  .rail .bn-game { background: var(--surface); padding: 1px 4px; border-radius: 4px; }
  .rail .bn-empty small, .rail .bn-meta { display: none; }
  .rail-close {
    display: grid; place-items: center; position: absolute; top: -10px; right: -10px; z-index: 3; width: 26px; height: 26px;
    border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 16px; line-height: 1; cursor: pointer;
  }
  .rail.is-closed { display: none; }
}
/* Small desktops and tablets: narrower side columns, every banner visible. */
@media (min-width: 860px) and (max-width: 1039px) {
  .shell { grid-template-columns: 120px minmax(0, 1fr) 120px; gap: 16px; }
  .rail { flex-direction: column; flex-wrap: nowrap; gap: 12px; align-self: start; }
  .rail .bn-card, .rail .bn-empty { width: 120px; }
  .rail .bn-empty small { display: none; }
  .bn-strip { display: none !important; }
}
@media (min-width: 1040px) {
  .shell { grid-template-columns: 160px minmax(0, 1fr) 160px; }
  .rail { flex-direction: column; flex-wrap: nowrap; gap: 16px; align-self: start; }
  .bn-strip { display: none !important; }
}
/* Wide screens: the two banners of a side next to each other, so all 4 are in view at once; the
   page widens by the second column, the content keeps its width. */
@media (min-width: 1600px) {
  .shell, .topbar-inner, .footer-inner, .footer-copy { max-width: 1860px; }
  .shell { grid-template-columns: 332px minmax(0, 1fr) 332px; }
  .rail { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 12px; }
  /* Side by side, slot 1 of each column is next to the content, slot 2 at the screen's edge. */
  .rail-left { flex-direction: row-reverse; }
}

/* Vertical banners of the side columns: 160 x 600, the "wide skyscraper" of other top lists. */
.bn-card, .bn-empty { display: flex; flex-direction: column; width: 160px; aspect-ratio: 160 / 600; border-radius: var(--radius); border: 1px solid var(--line); color: var(--text); position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.bn-card { background: var(--surface); }
.bn-card:hover { transform: translateY(-2px); border-color: var(--brown); box-shadow: var(--shadow); color: var(--text); }
.bn-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-art {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 12px; text-align: center; color: #fbf4e4;
  background:
    radial-gradient(120% 70% at 50% 0%, hsl(var(--hh) 42% 36% / .95), transparent 70%),
    linear-gradient(180deg, hsl(var(--hh) 30% 20%), hsl(var(--hh2) 32% 18%));
}
.bn-icon { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 18px rgb(0 0 0 / .35); margin-bottom: 6px; }
.bn-mono { font: 800 2.6rem/1 var(--font-display); opacity: .92; margin-bottom: 8px; }
.bn-name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.bn-meta { font-size: .78rem; color: rgb(251 244 228 / .72); }
.bn-meta b { color: #fbf4e4; }
.bn-cta { margin-top: 10px; font-size: .82rem; font-weight: 700; color: #f3d58b; }
.bn-empty { align-items: center; text-align: center; justify-content: center; gap: 4px; padding: 12px; border-style: dashed; background: transparent; color: var(--muted); }
.bn-empty:hover { border-color: var(--accent); color: var(--text); }
.bn-empty-plus { font-size: 1.6rem; color: var(--accent); }
.bn-empty strong { color: var(--text-2); }
/* The side columns follow the scroll. A column taller than the window (two 600 px banners) first
   scrolls until its bottom is in view, then stays there: app.js sets --rail-top to a negative offset. */
@media (min-width: 860px) { .rail { position: sticky; top: var(--rail-top, 78px); } }

/* Horizontal banners under the home page header: 728 x 90. */
.bn-wide-list { display: grid; gap: 10px; margin: 0 0 30px; }
.bn-wide, .bn-wide-empty { display: flex; width: 100%; max-width: 728px; margin: 0 auto; aspect-ratio: 728 / 90; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line); color: var(--text); }
.bn-wide { background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease; }
.bn-wide:hover { border-color: var(--brown); box-shadow: var(--shadow); color: var(--text); }
.bn-wide-art {
  flex: 1; display: flex; align-items: center; gap: 14px; padding: 0 92px 0 14px; min-width: 0; color: #fbf4e4;
  background:
    radial-gradient(60% 160% at 0% 50%, hsl(var(--hh) 42% 36% / .95), transparent 70%),
    linear-gradient(90deg, hsl(var(--hh) 30% 20%), hsl(var(--hh2) 32% 18%));
}
.bn-wide-art .bn-icon { width: 54px; height: 54px; border-radius: 12px; margin: 0; flex: none; }
.bn-wide-art .bn-mono { font-size: 1.7rem; margin: 0; flex: none; }
.bn-wide-text { display: flex; flex-direction: column; min-width: 0; }
.bn-wide-text strong { font: 800 1.05rem/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-wide-text small { color: rgb(251 244 228 / .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-wide-art .bn-cta { margin: 0 0 0 auto; white-space: nowrap; }
.bn-wide-empty { align-items: center; justify-content: center; gap: 10px; padding: 0 12px; border-style: dashed; color: var(--muted); font-size: .88rem; }
.bn-wide-empty:hover { border-color: var(--accent); color: var(--text); }
.bn-wide-empty strong { color: var(--text-2); }
.bn-wide-empty .bn-empty-plus { font-size: 1.2rem; }
.bn-wide-empty .bn-empty-cta { margin: 0; }
@media (max-width: 600px) {
  .bn-wide, .bn-wide-empty { aspect-ratio: auto; min-height: 64px; }
  .bn-wide .bn-img { height: auto; aspect-ratio: 728 / 90; }
  .bn-wide-art { padding: 10px 70px 10px 12px; }
  .bn-wide-art .bn-cta { display: none; }
  .bn-wide-empty small { display: none; }
}

.bn-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; scrollbar-width: thin; }
.bn-mini { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); position: relative; }
.bn-mini-logo { width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font: 800 .9rem/1 var(--font-display); color: #fbf4e4; background: linear-gradient(135deg, hsl(var(--hh) 34% 30%), hsl(var(--hh2) 32% 24%)); }
.bn-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.bn-mini-text { display: flex; flex-direction: column; min-width: 0; }
.bn-mini-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-mini-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- banners & placeholders ---------- */
.banner { display: block; aspect-ratio: var(--banner-ratio); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%;
  padding: 0 12px; color: #fbf4e4; overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, hsl(var(--hh) 40% 34% / .95), transparent 60%),
    linear-gradient(115deg, hsl(var(--hh) 30% 20%), hsl(var(--hh2) 32% 26%));
}
.ph b { font: 800 1.1rem/1 var(--font-display); opacity: .9; }
.ph .ph-icon { width: auto; height: 62%; aspect-ratio: 1; border-radius: 18%; object-fit: cover; flex: none; }
.ph span { font: 700 .9rem/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }

/* ---------- hero & sections ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 30px; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); align-items: stretch; } }
@media (min-width: 960px) { .hero.hero-solo { grid-template-columns: minmax(0, 1fr); } }
.hero-solo .hero-text { max-width: 760px; }
.hero-text { padding: 12px 0; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .35em; }
.search { display: flex; gap: 8px; margin: 22px 0 20px; max-width: 560px; }
.search input { flex: 1; min-width: 0; }
.search-inline { margin: 0 0 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; }
.hero-stats div { min-width: 110px; }
.hero-stats dt { color: var(--muted); font-size: .8rem; }
.hero-stats dd { margin: 0; font: 800 1.6rem/1.2 var(--font-display); }

.section { margin: 36px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.page-head { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 22px; }
.page-head form { align-self: flex-start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); }

.card { background: color-mix(in oklab, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }

/* ---------- live activity ---------- */
.live-panel { margin: 0; display: flex; flex-direction: column; }
.live-head { display: flex; align-items: center; justify-content: space-between; }
.live-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; }
.live-sub { color: var(--muted); font-size: .88rem; margin: 4px 0 10px; }
.live-sub b { color: var(--text); }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.act { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; animation: fade-in .4s ease both; }
.act:hover { background: var(--surface-2); }
.act.is-you { background: color-mix(in oklab, var(--accent) 9%, transparent); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 800 .85rem/1 var(--font-display); color: #fbf4e4; background: linear-gradient(135deg, hsl(var(--hh) 32% 38%), hsl(var(--hh2) 28% 26%)); }
.act-text { display: flex; flex-direction: column; min-width: 0; }
.act-who { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-what { color: var(--text-2); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.you { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: var(--accent-deep); color: var(--accent-2); vertical-align: middle; }
.activity-lg .act { padding: 10px 10px; }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } }

/* ---------- featured ---------- */
.featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--brown); box-shadow: var(--shadow); }
.feature-banner { border-radius: 0; aspect-ratio: 16 / 7; }
.feature-banner .ph b { font-size: 2.2rem; }
.feature-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.feature-game { display: flex; gap: 6px; align-items: center; font-size: .8rem; margin-bottom: 4px; }
.feature-game a { color: var(--brown-2); font-weight: 700; }
.feature h3 { margin-bottom: 6px; }
.feature h3 a { color: var(--text); }
.feature-excerpt { color: var(--text-2); font-size: .88rem; flex: 1; }
.feature-stats { display: flex; gap: 14px; margin: 0; font-size: .86rem; color: var(--text-2); }
.feature-stats b { color: var(--text); }

/* ---------- game tiles ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.game-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .15s ease, border-color .15s ease; }
.game-tile:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); color: var(--text); }
.game-tile .mono { width: 42px; height: 42px; border-radius: 12px; }
.game-tile-text { display: flex; flex-direction: column; min-width: 0; }
.game-tile-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tile-text small { color: var(--muted); }
.game-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-hero h1 { margin-bottom: .2em; }
.game-hero .lead { margin: 0; }

/* ---------- top list rows ---------- */
.toplist { display: flex; flex-direction: column; gap: 8px; }
.group-label { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 2px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.group-label:first-child { margin-top: 0; }
.group-gold { color: var(--gold); }
.group-gold a { color: var(--gold-soft); text-transform: none; letter-spacing: 0; font-weight: 600; }
.group-new { color: var(--mint); }

.row {
  display: grid; align-items: center; gap: 6px 12px;
  grid-template-columns: 26px auto minmax(0, 1fr) auto;
  grid-template-areas: "rank logo body stats" "actions actions actions actions";
  padding: 8px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.row:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); background: var(--surface-2); box-shadow: var(--shadow); }
@media (min-width: 760px) {
  .row { grid-template-columns: 34px auto minmax(0, 1fr) minmax(88px, max-content) auto; grid-template-areas: "rank logo body stats actions"; }
}
.row-rank { grid-area: rank; text-align: center; }
.rank-num { font: 800 1rem/1 var(--font-display); color: var(--text-2); }
.toplist > .row:nth-of-type(-n+3) .rank-num { color: var(--brown-2); }
.rank-new { display: inline-block; font: 800 .62rem/1 var(--font); letter-spacing: .06em; padding: 5px 5px; border-radius: 6px; color: #0f2416; background: var(--mint); }
/* As high as the name and game lines next to it: bigger without making the row taller. */
.row-logo { grid-area: logo; width: 40px; height: 40px; border-radius: 11px; font-size: .8rem; overflow: hidden; }
.row-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Rows with a description line are taller: the icon takes their full height. */
.row:has(.row-excerpt) .row-logo { width: 52px; height: 52px; border-radius: 13px; }
.rank-rng { display: inline-block; font: 800 .62rem/1 var(--font); letter-spacing: .06em; padding: 5px 5px; border-radius: 6px; color: #1b1030; background: var(--accent); cursor: help; }
.chip-rng { background: color-mix(in oklab, var(--accent) 18%, var(--surface-2)); border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); color: var(--accent-2); cursor: help; }
.row.is-rng { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 9%, var(--surface)), var(--surface) 55%); }
@media (min-width: 760px) { .row-logo { width: 44px; height: 44px; border-radius: 12px; } }
@media (min-width: 760px) { .row:has(.row-excerpt) .row-logo { width: 56px; height: 56px; border-radius: 14px; } }
.row-body { grid-area: body; min-width: 0; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 1px; font-size: .95rem; }
.row-title a { color: var(--text); }
.row-title a:hover { color: var(--accent-2); }
.row-meta { margin: 0; font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-meta a { color: var(--brown-2); font-weight: 600; }
/* Home page: the game stands out, just under the server name in size. */
.row-meta .row-game { font-size: .88rem; font-weight: 800; color: var(--brown-2); letter-spacing: .01em; }
.rating { color: var(--gold-soft); }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--text-2); background: var(--surface-3); border: 1px solid var(--line-soft); white-space: nowrap; }
a.tag:hover { color: var(--text); border-color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.row-excerpt { margin: 2px 0 0; font-size: .8rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-stats { grid-area: stats; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.members b { font: 800 1.05rem/1 var(--font-display); }
.members small { display: block; color: var(--muted); }
.online { font-size: .74rem; color: var(--text-2); white-space: nowrap; }
.row-actions { grid-area: actions; display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 759px) { .row-actions .btn { flex: 1; } }
.row.is-new { border-color: color-mix(in oklab, var(--mint) 40%, var(--line)); }

/* ---------- Gold cards: the only rows that show a banner ---------- */
@property --gold-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.gold-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.gold-card {
  position: relative; display: grid; gap: 10px 16px; align-items: center;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "banner" "body" "side";
  padding: 12px 14px; border-radius: calc(var(--radius) + 4px);
  border: 2px solid transparent;
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(232 187 79 / .16), transparent 55%) padding-box,
    linear-gradient(160deg, color-mix(in oklab, var(--gold) 9%, var(--surface-2)), var(--surface) 70%) padding-box,
    conic-gradient(from var(--gold-angle), #f6dc8f, #b9822a, #e8bb4f, #7a5418, #f3d58b, #b9822a, #f6dc8f) border-box;
  box-shadow: 0 14px 40px -18px rgb(232 187 79 / .55), inset 0 1px 0 rgb(255 240 200 / .08);
  animation: gold-spin 8s linear infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gold-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -18px rgb(232 187 79 / .75), inset 0 1px 0 rgb(255 240 200 / .1); }
@keyframes gold-spin { to { --gold-angle: 360deg; } }
@media (min-width: 900px) {
  .gold-card { grid-template-columns: min(468px, 48%) minmax(0, 1fr) auto; grid-template-areas: "banner body side"; padding: 10px 16px; }
}
.gold-ribbon {
  position: absolute; top: -11px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 999px; font: 800 .72rem/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: #2a1f05; background: linear-gradient(100deg, #f6dc8f, #e8bb4f 55%, #c8902f); box-shadow: 0 4px 14px -4px rgb(232 187 79 / .8);
}
.gold-media { grid-area: banner; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Name and tags above the banner, wrapped to the banner's width (they never widen the column). */
.gold-media .gold-title { contain: inline-size; }
/* The banner column has a fixed width (468 px, the Gold banner size), whatever the banner and
   whether it has loaded yet: the card's layout never depends on the image. The banner is never
   stretched, only shrunk when the card is narrower. */
.gold-card .gold-banner { aspect-ratio: auto; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gold-card .gold-banner img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
.gold-card .gold-banner .ph { width: 100%; aspect-ratio: 468 / 60; }
.banner-game, .bn-game { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn-wide-list .bn-item { width: 100%; max-width: 728px; margin: 0 auto; }
.gold-banner { border-radius: 12px; box-shadow: 0 0 0 1px rgb(243 213 139 / .35), 0 10px 26px -12px rgb(0 0 0 / .7); }
.gold-body { grid-area: body; min-width: 0; }
.gold-title { margin: 0 0 2px; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.gold-title .tag { font-family: var(--font); font-size: .7rem; }
/* Server icon alone on the right, as high as the card's content (name and banner on the left,
   description and buttons in the middle). */
.gold-icon { display: block; width: 108px; aspect-ratio: 1; align-self: center; border-radius: 16px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgb(243 213 139 / .45), var(--shadow); }
.gold-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gold-title a { color: var(--gold-text); }
.gold-title a:hover { color: var(--gold-soft); }
/* The whole description, 3 lines visible, the rest scrolls (the buttons sit under it). */
.gold-excerpt { margin: 2px 0 0; color: var(--text-2); font-size: .84rem; line-height: 1.35; max-height: calc(3 * 1.35em); overflow-y: auto; white-space: pre-line; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.gold-side { grid-area: side; display: flex; align-items: center; justify-content: center; }
.gold-side .members b { font-size: 1.15rem; color: var(--gold-text); }
/* Members and online on one line. */
.gold-stats { margin: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.gold-stats .members small { display: inline; }
.gold-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.gold-actions .gold-stats { margin-left: 4px; }
@media (max-width: 899px) { .gold-side { display: none; } }
.btn-gold { background: linear-gradient(180deg, #f6dc8f, #c8902f); border-color: #e8bb4f; color: #2a1f05; box-shadow: 0 6px 16px -8px rgb(232 187 79 / .9); }
.btn-gold:hover { color: #2a1f05; border-color: #fff1c2; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); }
.empty-state { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- server page ---------- */
.server-hero { border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.server-hero.is-gold { border-color: color-mix(in oklab, var(--gold) 55%, var(--line)); box-shadow: 0 0 40px -18px rgb(232 187 79 / .6); }
.server-banner { background: var(--surface-2); display: grid; place-items: center; max-height: 260px; overflow: hidden; }
.server-banner img, .server-banner video { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.server-banner .ph { aspect-ratio: 16 / 4; }
.server-banner .ph b { font-size: 2.6rem; }
.server-banner .ph span { font-size: 1.4rem; }
.server-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.server-title h1 { margin-bottom: .25em; display: flex; align-items: center; gap: 14px; }
.server-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.server-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat-label { color: var(--muted); font-size: .8rem; }
.stat-value { font: 800 1.45rem/1.2 var(--font-display); }
.description { white-space: pre-line; color: var(--text-2); overflow-wrap: anywhere; }

.trend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.trend li { display: flex; gap: 8px; align-items: baseline; padding: 5px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; }
.trend li span { color: var(--muted); }
.trend li.up b { color: var(--mint); }
.trend li.down b { color: var(--danger); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 10px; }
.chart-box { margin: 0; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 12px 6px; }
.chart-box figcaption { font-weight: 700; margin-bottom: 6px; }
.chart-box figcaption small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 12px var(--font); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .dot, .chart .hover-dot { fill: var(--accent); stroke: var(--bg-2); stroke-width: 2; }
.chart .end-label { fill: var(--text); font: 700 12px var(--font); }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart-tip { position: absolute; top: 0; pointer-events: none; transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: .78rem; white-space: nowrap; box-shadow: var(--shadow); }
.chart-tip b { display: block; font-size: .95rem; }
.chart-tip span { color: var(--muted); }
.chart-empty { color: var(--muted); padding: 30px 0; text-align: center; margin: 0; }
.table-view { margin-top: 14px; }
.table-view summary { cursor: pointer; color: var(--text-2); font-size: .88rem; }
.table-scroll { max-height: 320px; overflow: auto; margin-top: 8px; border: 1px solid var(--line-soft); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 600; }
td { font-variant-numeric: tabular-nums; }

.reviews { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-head time { color: var(--muted); font-size: .8rem; margin-left: auto; }
.stars { color: var(--gold); letter-spacing: 1px; }
.review-body { margin: 0; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.review-form { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.review-form h3 { margin: 0; }
.review-form > .btn, .form > .btn { align-self: flex-start; }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.stars-input label { font-size: 1.7rem; line-height: 1; color: var(--surface-3); cursor: pointer; transition: color .1s ease, transform .1s ease; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--gold); }
.stars-input label:hover { transform: scale(1.12); }
.stars-input input:focus-visible + label { box-shadow: var(--ring); border-radius: 4px; }

/* ---------- forms ---------- */
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 42px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type="radio"], input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--accent); }
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
fieldset.card > legend { float: left; width: 100%; margin-bottom: 12px; }
fieldset.card > legend + * { clear: both; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-narrow { max-width: 420px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--text-2); min-width: 0; flex: 1; }
.field small { font-weight: 400; color: var(--muted); }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row > .field { min-width: min(260px, 100%); }
.counter { align-self: flex-end; font-size: .78rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); }

.notice { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; background: color-mix(in oklab, var(--brown) 16%, var(--surface)); border: 1px solid color-mix(in oklab, var(--brown) 45%, var(--line)); color: var(--text); }
.notice ul { margin: 0; padding-left: 18px; }
.notice-ok { background: color-mix(in oklab, var(--mint) 12%, var(--surface)); border-color: color-mix(in oklab, var(--mint) 45%, var(--line)); }
.notice-err { background: color-mix(in oklab, var(--danger) 14%, var(--surface)); border-color: color-mix(in oklab, var(--danger) 50%, var(--line)); }

/* ---------- pricing & promote ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
a.price-card { display: block; color: var(--text); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a.price-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.price-gold { border-color: color-mix(in oklab, var(--gold) 55%, var(--line)); background: linear-gradient(160deg, color-mix(in oklab, var(--gold) 12%, var(--surface)), var(--surface) 60%); }
.price-free { background: transparent; border-style: dashed; }
.price-kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brown-2); margin: 0 0 6px; }
.price-gold .price-kicker { color: var(--gold); }
.price { margin: 0 0 10px; }
.price b { font: 800 2rem/1 var(--font-display); }
.price small { color: var(--muted); margin-left: 4px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: .9rem; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.slots { list-style: none; margin: 0 0 10px; padding: 0; }
.slots li { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.slot-name { font-weight: 700; }
.slot-when { color: var(--muted); }
.pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pick-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.pick-list .mono { width: 46px; height: 46px; border-radius: 12px; margin-block: -6px; font-size: .9rem; } /* bigger icon, same row height */
.pick-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick-text small { color: var(--muted); }

.promote-form { display: flex; flex-direction: column; gap: 16px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; }
.option-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line); transition: border-color .15s ease, transform .15s ease; }
.option:hover .option-body { transform: translateY(-2px); }
.option input:checked + .option-body { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 12%, transparent); }
.option-gold input:checked + .option-body { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(232 187 79 / .14); }
.option input:disabled + .option-body { opacity: .6; cursor: not-allowed; }
.ticks-inline { color: var(--text-2); font-size: .88rem; }
.promote-form:has(input[name="kind"][value="gold"]:checked) .ad-options { display: none; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.slot-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.slot-option:has(input:checked) { border-color: var(--accent); }
.slot-option span { display: flex; flex-direction: column; }
.slot-option small { color: var(--muted); }
.slot-option small.ok { color: var(--mint); }
.legend-2 { font-weight: 700; margin: 4px 0 8px; }
.banner-compare { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 12px; }
@media (max-width: 600px) { .banner-compare { grid-template-columns: 1fr; } }

.result { text-align: center; max-width: 620px; margin: 30px auto; padding: 34px 24px; }
.result .lead { margin-left: auto; margin-right: auto; }
.result-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 800 1.6rem/1 var(--font-display); background: var(--surface-3); margin: 0 auto 14px; }
.result-icon.ok { background: var(--accent-deep); color: var(--accent-2); }
.result-icon.err { background: color-mix(in oklab, var(--danger) 25%, var(--surface)); color: var(--danger); }

/* ---------- admin ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.tabs a[aria-current="page"] { border-color: var(--accent); color: var(--text); }
.admin-table td.actions form { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-table td.wrap { max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; }
.admin-table tr.dim { opacity: .5; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-filter input, .admin-filter select { width: auto; flex: 1; min-width: 160px; }
.job-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.banner-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.banner-form .banner { max-width: 468px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgb(0 0 0 / .18); }
.footer-inner { max-width: 1480px; margin: 0 auto; padding: 26px 16px 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-inner > div { max-width: 460px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer nav a { color: var(--text-2); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -6px; overflow-x: auto; scrollbar-width: none; }
  .games-menu { position: static; }
  .games-menu .menu { left: 16px; right: 16px; width: auto; }
  .btn-add { min-height: 36px; padding: 0 12px; }
}
@media (max-width: 520px) {
  body { font-size: 14.5px; }
  .card { padding: 16px; }
  .search { flex-direction: column; }
  .hero-stats { gap: 18px; }
  .hero-stats dd { font-size: 1.3rem; }
  .server-actions { width: 100%; }
  .server-actions .btn { flex: 1; }
  .slots li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .gold-card { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .chart .line { stroke: CanvasText; }
  .btn { border: 1px solid ButtonText; }
}

/* ---------- top games ---------- */
.rankings { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.ranking { margin: 0; }
.gbars { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gbar-row { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; transition: background-color .15s ease; }
.gbar-row:hover { background: var(--surface-2); }
.gbar-rank { font: 800 .95rem/1 var(--font-display); color: var(--muted); text-align: center; }
.gbar-row:nth-child(-n+3) .gbar-rank { color: var(--brown-2); }
.gbar-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gbar-top a { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar-top a:hover { color: var(--accent-2); }
.gbar-top b { font: 800 1rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.gbar-track { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--surface-3); overflow: hidden; }
.gbar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); transform-origin: left; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.gbar-row:nth-child(2) .gbar-fill { animation-delay: .04s; }
.gbar-row:nth-child(3) .gbar-fill { animation-delay: .08s; }
.gbar-row:nth-child(n+4) .gbar-fill { animation-delay: .12s; }
@keyframes grow { from { transform: scaleX(0); } }
th.num, td.num { text-align: right; }
.table-tall { max-height: none; }
.table-tall td { vertical-align: middle; }
.table-game { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.table-game .mono { width: 28px; height: 28px; border-radius: 8px; font-size: .68rem; }
.menu-rankings { border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; grid-column: 1 / -1; }
.menu-rankings .mono { background: var(--accent-deep); color: var(--accent-2); }

/* ---------- header extras: language, owner login ---------- */
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); color: var(--text-2); font: 700 .8rem/1 var(--font); cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary svg { width: 16px; height: 16px; }
.lang-menu > summary:hover, .lang-menu[open] > summary { color: var(--text); border-color: var(--muted); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-list a b { width: 26px; font-size: .72rem; color: var(--muted); }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current="true"] { background: color-mix(in oklab, var(--accent) 16%, transparent); }
.login-link { color: var(--text-2); font-weight: 600; font-size: .88rem; white-space: nowrap; padding: 6px 4px; }
.login-link:hover { color: var(--text); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .86rem; max-width: 180px; }
.user-chip:hover { border-color: var(--accent); color: var(--text); }
.user-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-sm { width: 28px; height: 28px; font-size: .75rem; }
.btn-add { margin-left: 0; }
@media (max-width: 860px) { .top-actions { margin-left: auto; } .login-link { display: none; } .btn-owner span { display: none; } .btn-owner { padding: 0 10px; } .user-name { display: none; } .user-chip { padding: 2px; } }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.filters-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
.filter small { color: var(--muted); font-weight: 700; }
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.is-version { border-style: dashed; }
.filter.is-active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.filter.is-active small { color: var(--on-accent); opacity: .7; }
.filter-clear { font-size: .82rem; margin-left: 4px; }

/* ---------- SEO text ---------- */
.seo-text { max-width: 860px; color: var(--text-2); }
.seo-text h2 { color: var(--text); }
.seo-text h3 { color: var(--text); margin-top: 1.2em; }

/* ---------- advertise: slots & prices ---------- */
.placement-form { margin-bottom: 12px; max-width: 420px; }
.slot-cards { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.slot-card { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); height: 100%; }
.slot-card:hover { border-color: var(--accent); color: var(--text); }
.slot-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.slot-card .slot-name { font-weight: 800; }
.slot-card .slot-who { font-size: .9rem; color: var(--text-2); }
.slot-card .slot-when { font-size: .8rem; color: var(--muted); }
.notice.picked { margin-top: 14px; }
.price-table td, .price-table th { vertical-align: middle; }
.bn-empty small { display: block; }
.bn-empty-cta { margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--accent-2); }
.months-field { max-width: 460px; }
.slot-group { margin-top: 6px; }

/* ---------- forms: tag picker ---------- */
.tag-picker legend { font-weight: 600; font-size: .9rem; color: var(--text-2); }
.tag-options { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-option { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .84rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.tag-option:has(input:checked) { border-color: var(--accent); color: var(--text); background: color-mix(in oklab, var(--accent) 16%, var(--surface-2)); }
.tag-option.is-version { border-style: dashed; }
.tag-option input { width: 14px; height: 14px; }
.tag-option:has(input:disabled) { opacity: .45; cursor: not-allowed; }

/* ---------- owner area ---------- */
.login-card { max-width: 620px; }
.login-card .btn { margin: 10px 0; }
.owned { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.owned-server { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.owned-head { display: flex; align-items: center; gap: 12px; }
.owned-head h2 { margin: 0; font-size: 1.1rem; }
.owned-head h2 a { color: var(--text); }
.owned-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.owned-stats dt { font-size: .72rem; color: var(--muted); }
.owned-stats dd { margin: 0; font: 800 1.05rem/1.2 var(--font-display); }
.review-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: color-mix(in oklab, var(--accent) 8%, transparent); }
.review-reply b { font-size: .8rem; color: var(--accent-2); }
.review-reply p { margin: 4px 0 0; color: var(--text-2); white-space: pre-line; }
.reply-box { margin-top: 8px; }
.reply-box summary { cursor: pointer; font-size: .84rem; color: var(--accent-2); }
.reply-box form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; align-items: flex-start; }
.owner-hint { margin: 12px 0 0; }

/* ---------- legal & contact ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.05rem; margin-top: 1.3em; }
.legal p, .legal li { color: var(--text-2); }
.contact-card { max-width: 680px; }
.contact-mail { margin: 4px 0 18px; }

/* ---------- footer columns ---------- */
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-about { max-width: 460px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: var(--text-2); font-size: .9rem; }
.footer-col a:hover { color: var(--text); }
.footer-title { margin: 0 0 4px; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-copy { max-width: 1480px; margin: 0 auto; padding: 0 16px 26px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; }
.req { color: var(--accent); font-weight: 600; font-size: .85em; }
/* Letter-spacing is for Latin/Cyrillic capitals; it pulls CJK and Thai glyphs apart. */
:is(:lang(zh), :lang(ja), :lang(ko), :lang(th)) * { letter-spacing: normal !important; }
:is(:lang(zh), :lang(ja), :lang(ko), :lang(th)) .eyebrow { text-transform: none; }

/* ---------- icon & banner upload fields ---------- */
.image-fields { display: grid; gap: 14px; margin: 6px 0 16px; }
.image-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.icon-preview { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px dashed var(--line); display: grid; place-items: center; }
.icon-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-preview { width: 234px; max-width: 40vw; display: grid; place-items: center; }
.icon-empty { color: var(--muted); font-size: 1.3rem; }
@media (max-width: 600px) { .image-field { grid-template-columns: 1fr; } .banner-preview { max-width: 100%; } }
.admin-thumb { max-width: 90px; max-height: 50px; border-radius: 6px; display: block; }
img.mono { object-fit: cover; padding: 0; }

/* ---------- promote: total shown once a duration is picked ---------- */
.price-total { margin: 4px 0 0; font-weight: 700; color: var(--text); }
.image-hints p { margin: 0 0 6px; }

/* ---------- theme button (sun in dark mode, moon in light mode) ---------- */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
}

/* Continent Tags */
.tag-eu, .tag-na, .tag-latam, .tag-asia {
    background-color: var(--color-cyan, cyan) !important;
    color: #000 !important;
}

/* Members and organic score on one line under the online count. */
.row-sub { display: inline-flex; align-items: center; gap: 6px; }
/* Organic score: a sprout that breathes, the score, and what it means on hover or focus. */
.organic { position: relative; display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; color: var(--text-2); cursor: help; white-space: nowrap; border-radius: 6px; }
.organic b { font: 800 .86rem/1 var(--font-display); }
.organic-hi b { color: #2f9e5b; }
.organic-mid b { color: #c58a12; }
.organic-lo b { color: #c2463a; }
.organic-icon { width: 16px; height: 16px; flex: none; overflow: visible; }
.organic-stem { fill: none; stroke: #3a7d44; stroke-width: 2; stroke-linecap: round; }
.organic-leaf { fill: #43b562; transform-box: view-box; transform-origin: 12px 14px; animation: organic-sway 3.2s ease-in-out infinite; }
.organic-leaf-r { fill: #5fd17c; animation-delay: -1.6s; }
.organic-lo .organic-leaf { fill: #c9a24a; }
.organic-lo .organic-leaf-r { fill: #d8b866; }
@keyframes organic-sway { 0%, 100% { transform: rotate(-7deg) scale(.94); } 50% { transform: rotate(6deg) scale(1.06); } }
.organic[data-tip]:hover::after, .organic[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 40; width: min(280px, 80vw);
  padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  box-shadow: var(--shadow); font: 400 .78rem/1.45 var(--font); white-space: normal; text-align: left;
}
.stat-organic .organic { font-size: 1rem; }
.stat-organic .organic b { font-size: 1.45rem; }
.stat-organic .organic-icon { width: 24px; height: 24px; }
.stat-organic .organic[data-tip]:hover::after, .stat-organic .organic[data-tip]:focus-visible::after { left: 0; right: auto; }
@media (prefers-reduced-motion: reduce) { .organic-leaf { animation: none; } }

/* Admin: why a server is not shown, and servers seen on other top lists. */
.chip-admin { background: #fde8e6; border-color: #e7a59e; color: #9b2c22; }
.admin-seen { margin-top: 16px; }

/* Hosting region (continent of the game server): cyan, everywhere. */
.tag.tag-region { color: #0b7f95; background: rgb(6 182 212 / .14); border-color: rgb(6 182 212 / .5); }
a.tag.tag-region:hover { color: #075e6e; border-color: #06b6d4; }
.filter.is-region { border-color: rgb(6 182 212 / .5); color: #0b7f95; }
.filter.is-region.is-active { background: rgb(6 182 212 / .18); border-color: #06b6d4; color: #075e6e; }
.filters-region { margin-bottom: 8px; }
.tag-option.is-region { border-color: rgb(6 182 212 / .5); }
.tag-option.is-region:has(input:checked) { border-color: #06b6d4; background: rgb(6 182 212 / .16); }
:root[data-theme="dark"] .tag.tag-region, :root[data-theme="dark"] .filter.is-region { color: #67e8f9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.tag-region, :root:not([data-theme="light"]) .filter.is-region { color: #67e8f9; } }

/* Community country ("FR", "US"): a plain, bold code. */
.tag.tag-country { font-weight: 800; letter-spacing: .04em; }
.filter.is-country { font-weight: 800; letter-spacing: .04em; }
.filters-country { margin-bottom: 8px; }
.tag-option.is-country { padding: 4px 9px; letter-spacing: .04em; }

/* Banners can be MP4 videos: they fill their box like images. */
.banner video, .gold-banner video, .bn-img video, .banner-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gold-card .gold-banner video { width: 100%; height: auto; object-fit: contain; }
span.bn-img { display: block; }
.banner-preview.banner-vertical { width: 64px; aspect-ratio: 160 / 600; height: auto; }

.admin-new { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.admin-new p { margin: 0; }

/* Gold card while its banner loads: its room is kept, so the name and tags don't squeeze. */
.gold-card .gold-banner { min-height: 60px; background: color-mix(in oklab, var(--gold) 10%, var(--surface-2)); }
.gold-icon { background: color-mix(in oklab, var(--gold) 8%, var(--surface-2)); }

/* Admin buttons on a server's page. */
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: 8px; border: 1px dashed var(--brown); border-radius: 12px; background: color-mix(in oklab, var(--brown) 7%, transparent); }
.inline-form { display: inline; margin-left: 10px; }

/* Promotion picker: Gold members first, same size as the others, with a gold border. */
.pick-list li.pick-gold { border: 1px solid var(--gold); background: color-mix(in oklab, var(--gold) 9%, var(--surface-2)); }
.pick-gold-tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #2a1f05; background: linear-gradient(100deg, #f6dc8f, #e8bb4f); }

/* A list being swapped by a filter: dimmed for a moment, no jump. */
#top.is-loading { opacity: .55; transition: opacity .12s ease; pointer-events: none; }
/* Sortable table columns. */
th.is-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.is-sortable::after { content: " \2195"; opacity: .35; font-size: .8em; }
th.is-sortable[data-dir="asc"]::after { content: " \2191"; opacity: .9; }
th.is-sortable[data-dir="desc"]::after { content: " \2193"; opacity: .9; }



/* Light theme: more color and life (lavender, peach and teal lights, tinted cards and bar). */
:root[data-theme="light"] {
  --glow-1: rgb(124 92 214 / .22);
  --glow-2: rgb(247 146 104 / .20);
  --glow-3: rgb(45 196 199 / .16);
  --bg: #f6f1fb;
  --line: #ddcff0;
  --card-bg: linear-gradient(180deg, #ffffff 0%, #fdfaff 100%);
  --card-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 14px 34px -22px rgb(96 64 170 / .45);
  --topbar-bg: linear-gradient(90deg, rgb(241 233 255 / .88), rgb(255 238 228 / .88) 55%, rgb(228 248 247 / .88));
  --row-bg: linear-gradient(90deg, #ffffff, #fcf9ff);
  --heading-grad: linear-gradient(90deg, #5a3fa0, #c0517a 55%, #d9822b);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --glow-1: rgb(124 92 214 / .22);
  --glow-2: rgb(247 146 104 / .20);
  --glow-3: rgb(45 196 199 / .16);
  --bg: #f6f1fb;
  --line: #ddcff0;
  --card-bg: linear-gradient(180deg, #ffffff 0%, #fdfaff 100%);
  --card-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 14px 34px -22px rgb(96 64 170 / .45);
  --topbar-bg: linear-gradient(90deg, rgb(241 233 255 / .88), rgb(255 238 228 / .88) 55%, rgb(228 248 247 / .88));
  --row-bg: linear-gradient(90deg, #ffffff, #fcf9ff);
  --heading-grad: linear-gradient(90deg, #5a3fa0, #c0517a 55%, #d9822b);
  }
}
:root[data-theme="light"] body {background:
    radial-gradient(1100px 560px at 6% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 520px at 100% -4%, var(--glow-2), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, var(--glow-3), transparent 62%),
    var(--bg);
  background-attachment: fixed;}
:root[data-theme="light"] .topbar {background: var(--topbar-bg); border-bottom-color: #e6d9f5;}
:root[data-theme="light"] .card {background: var(--card-bg); box-shadow: var(--card-shadow); border-color: #e4d8f3;}
:root[data-theme="light"] .row {background: var(--row-bg); border-color: #e7dcf4;}
:root[data-theme="light"] .row:hover {background: linear-gradient(90deg, #faf5ff, #fff6f1); border-color: #c9b3ef;}
:root[data-theme="light"] .section-head h2, :root[data-theme="light"] .card > h2, :root[data-theme="light"] .page-head h1 {background: var(--heading-grad); -webkit-background-clip: text; background-clip: text; color: transparent;}
:root[data-theme="light"] .filter {background: #ffffff; border-color: #e0d3f2;}
:root[data-theme="light"] .filter:hover {background: #f6efff;}
:root[data-theme="light"] .filter.is-active {background: linear-gradient(90deg, #ece2ff, #ffe9de); border-color: #9b7fdb; color: var(--text);}
:root[data-theme="light"] .stat {background: linear-gradient(160deg, #ffffff, #f8f2ff); border-color: #e4d8f3;}
:root[data-theme="light"] .group-label span {letter-spacing: .1em;}
:root[data-theme="light"] .footer, :root[data-theme="light"] footer {background: linear-gradient(180deg, transparent, rgb(124 92 214 / .06));}
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) body {background:
    radial-gradient(1100px 560px at 6% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 520px at 100% -4%, var(--glow-2), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, var(--glow-3), transparent 62%),
    var(--bg);
  background-attachment: fixed;}
:root:not([data-theme="dark"]) .topbar {background: var(--topbar-bg); border-bottom-color: #e6d9f5;}
:root:not([data-theme="dark"]) .card {background: var(--card-bg); box-shadow: var(--card-shadow); border-color: #e4d8f3;}
:root:not([data-theme="dark"]) .row {background: var(--row-bg); border-color: #e7dcf4;}
:root:not([data-theme="dark"]) .row:hover {background: linear-gradient(90deg, #faf5ff, #fff6f1); border-color: #c9b3ef;}
:root:not([data-theme="dark"]) .section-head h2, :root:not([data-theme="dark"]) .card > h2, :root:not([data-theme="dark"]) .page-head h1 {background: var(--heading-grad); -webkit-background-clip: text; background-clip: text; color: transparent;}
:root:not([data-theme="dark"]) .filter {background: #ffffff; border-color: #e0d3f2;}
:root:not([data-theme="dark"]) .filter:hover {background: #f6efff;}
:root:not([data-theme="dark"]) .filter.is-active {background: linear-gradient(90deg, #ece2ff, #ffe9de); border-color: #9b7fdb; color: var(--text);}
:root:not([data-theme="dark"]) .stat {background: linear-gradient(160deg, #ffffff, #f8f2ff); border-color: #e4d8f3;}
:root:not([data-theme="dark"]) .group-label span {letter-spacing: .1em;}
:root:not([data-theme="dark"]) .footer, :root:not([data-theme="dark"]) footer {background: linear-gradient(180deg, transparent, rgb(124 92 214 / .06));}
}

/* Pending server: what works and what must change before it is listed. */
.pending-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.pending-checks li.ok span { color: var(--ok, #3ddc84); font-weight: 800; }
.pending-checks li.bad span { color: var(--danger, #ff6f6f); font-weight: 800; }

/* Slot picker: a small map of the page (side columns and content), the slot lit up. Slot 1 is at the
   top of its column, or at the screen's edge on very wide screens. */
.slot-map { display: inline-grid; grid-template-columns: 7px 22px 7px; grid-template-rows: 1fr 1fr; gap: 2px; width: 40px; height: 30px; padding: 2px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); vertical-align: middle; margin-right: 8px; flex: none; }
.slot-map i { border-radius: 2px; background: color-mix(in oklab, var(--text) 18%, transparent); }
.slot-map b { grid-column: 2; grid-row: 1 / 3; border-radius: 2px; background: color-mix(in oklab, var(--text) 8%, transparent); }
.slot-map .l1 { grid-column: 1; grid-row: 1; } .slot-map .l2 { grid-column: 1; grid-row: 2; }
.slot-map .r1 { grid-column: 3; grid-row: 1; } .slot-map .r2 { grid-column: 3; grid-row: 2; }
.slot-map[data-slot="left-1"] .l1, .slot-map[data-slot="left-2"] .l2,
.slot-map[data-slot="right-1"] .r1, .slot-map[data-slot="right-2"] .r2 { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.slot-card .slot-map { margin: 0 0 6px; }

/* Review votes (review, owner reply, admin reply): one per IP, score in the middle. */
.votes { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .85rem; }
.votes button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; width: 28px; height: 26px; cursor: pointer; line-height: 1; font-size: .75rem; }
.votes button:hover { color: var(--text); border-color: var(--accent); }
.votes .vote-up.is-on { color: #fff; background: #3ba55d; border-color: #3ba55d; }
.votes .vote-down.is-on { color: #fff; background: #d9534f; border-color: #d9534f; }
.vote-score { min-width: 22px; text-align: center; }
.vote-msg { color: var(--muted); margin-left: 6px; }
.review-reply .votes { margin-top: 4px; }
.review-reply-admin { border-left-color: var(--gold); background: color-mix(in oklab, var(--gold) 8%, transparent); }
.review-reply-admin b { color: var(--gold-soft); }

/* Admin delete buttons of a review and its replies. */
.admin-del { display: inline; margin-left: 8px; }
.review-reply .admin-del { display: block; margin: 6px 0 0; }

/* Admin Gifts tab: the drawn GIFs. */
.gift-gif { display: block; max-width: 234px; max-height: 60px; border-radius: 6px; }
.gift-gif-v { max-width: 40px; max-height: 150px; }

/* Horizontal banners: the game's name, small, on one line just above the banner's left corner (like
   the vertical banners). */
.bn-game-side { font-size: .6rem; line-height: 1.2; text-align: left; padding-left: 2px; }

/* Server page, admin: banner gifts (1 month) next to the other admin buttons. */
.admin-gifts { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-gift { display: contents; }

/* Game page header: members, online and average organic score of the game, at the right. */
.game-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 0 auto; }
.game-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.game-stats dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.game-stats dd { margin: 0; font: 800 1.2rem/1.2 var(--font-display); display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .game-hero { flex-wrap: wrap; } .game-stats { margin-left: 0; } .game-stats div { align-items: flex-start; } }

/* Header: owner login (through Discord), a Discord-blurple button with its logo; icon only on phones. */
.btn-owner { min-height: 38px; padding: 0 13px; font-size: .88rem; white-space: nowrap; color: var(--text);
  background: color-mix(in oklab, var(--discord) 16%, var(--surface-2)); border-color: color-mix(in oklab, var(--discord) 55%, var(--line)); }
.btn-owner svg { width: 18px; height: 18px; color: var(--discord); flex: none; }
.btn-owner:hover { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn-owner:hover svg { color: #fff; }
