/* =====================================================================================================================
   Flat (site 1.16, DCSM 0.80): the website in the Server Manager panel's look. Solid, quiet surfaces on a plain page,
   the menu down the full left side (the site's logo at the top, signing in or you at the bottom), a top bar with where
   you are and the search, flat boxes with thin edges, pill buttons, and underlined tabs. It loads after app.css and
   glass.css and only restyles; the same rules as the panel's flat.css, under the site's own class names.
   ===================================================================================================================== */
:root:not(#flat) {
  --radius: 12px; --radius-sm: 8px;
  --box-tint: 100%; --box-blur: 0px; --frost: none;
  --glass-sheen: none; --glass-hi: 0 0 #0000; --shadow: 0 0 #0000; --dg-drop: 0 0 #0000;
  --glass-edge: var(--line); --glass-edge-top: var(--line); --glass-edge-left: var(--line); --glass-line: var(--line); --glass-hover: var(--surface-2);
  --ctl-bg: var(--surface); --ctl-bg-hover: var(--surface-2); --ctl-edge: var(--line-strong); --ctl-edge-hover: var(--faint);
  --dg-pri-bg: var(--accent); --dg-pri-text: var(--on-accent);
  --dg-steam-bg: var(--accent); --dg-discord-bg: #5865f2;
  --dg-float: 0 18px 44px -14px rgba(0, 0, 0, .5);
  --side-w: 256px; --top-h: 56px;
}

/* No backdrop: a plain page. */
html, body { background: var(--bg); }
body::before, body::after, .bg-video { display: none; }

/* Nothing frosts, glows or casts a shadow behind its words. */
.card, .modal-card, .toast, .account-menu, .search-fold, .settings-nav, .nav, .topbar::before, .sidebar::before,
.btn, .chip, .seg, .account-btn, .badge, .tag, .icon-btn, .modal, .plan-card, .banner {
  -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: none;
}
.tinted, .btn.tint, .chip.active, .seg button.active, .seg a.active, .nav a.active, .badge.rust, .badge.online, .badge.good, .badge.bad, .badge.warn, .badge.info,
.plan-badge, .banner { box-shadow: none; }
.badge .dot, .live-dot, .live-dot.off { box-shadow: none; }
.live-dot.on { box-shadow: 0 0 0 3px var(--good-soft); animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }

/* Type, as in the panel */
h1, .page-head h1 { font: 700 30px/1.1 var(--display); letter-spacing: .005em; }
.eyebrow { font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.page-head { margin-bottom: 20px; }
.page-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.sec-h { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; min-width: 0; }
.sec-h h2 { margin: 0; font: 700 21px/1.1 var(--display); letter-spacing: .01em; }
.sec-h .muted { font-size: 14px; }
.section-title { font: 700 21px/1.1 var(--display); letter-spacing: .01em; text-transform: none; color: var(--text); margin: 26px 0 12px; }

/* Boxes: solid, a thin edge, a 12px corner. */
.card, .settings-nav, .modal-card, .plan-card { background: var(--surface); border: 1px solid var(--line); box-shadow: none; border-radius: var(--radius); }
.card .card { background: var(--surface-2); border-radius: var(--radius-sm); }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { font: 700 18px/1.15 var(--display); letter-spacing: .01em; }
.card-head > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.card-head .count { color: var(--faint); font-weight: 500; }
.card-head .head-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.card-head .head-link:hover { color: var(--text); }
.card-head .head-link svg { width: 14px; height: 14px; }
.card-body { padding: 16px 18px; }
.card-foot { border-top: 1px solid var(--line); }
.list-item { border-color: var(--line); }
.stat { padding: 16px 18px; }
.stat .value { font: 700 34px/1.05 var(--display); }
.modal { background: rgba(5, 4, 2, .55); }
.modal-card { border-color: var(--line-strong); box-shadow: var(--dg-float); }
.account-menu, .search-fold, .toast { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--dg-float); }
.toast { border-radius: 12px; }

/* Buttons stay round; they're solid. */
.btn { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: none; color: var(--text); }
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn.ghost, .btn.ghost:hover { border-color: transparent; box-shadow: none; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.primary, .btn.steam-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; text-shadow: none; box-shadow: 0 0 18px -8px var(--accent); }
.btn.primary:hover, .btn.steam-btn:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.08); }
.btn.discord-btn { background: #5865f2; border-color: #5865f2; color: #fff; box-shadow: none; text-shadow: none; }
.btn.discord-btn:hover { background: #4752c4; border-color: #4752c4; }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 48%, transparent); }
.btn.danger-solid { box-shadow: none; }
.chip { border-radius: 8px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); box-shadow: none; }
.chip:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.chip.active, .chip.active:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.chip em { font-style: normal; margin-left: 6px; color: var(--faint); font-weight: 500; }
.chip.active em { color: inherit; opacity: .8; }

/* Badges and tags: tinted, flat. */
.badge { background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: none; }
.badge.rust, .badge.online, .badge.good, .badge.bad, .badge.warn, .badge.info, .plan-badge { border-color: transparent; background: color-mix(in srgb, var(--t) 16%, var(--surface)); color: var(--t-text); }
.badge.good { --t: var(--good); --t-text: var(--good); }
.plan-badge { letter-spacing: 0; text-transform: none; font: 650 12px/1 var(--sans); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: transparent; border: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; font-weight: 600; box-shadow: none; }
.banner { background: color-mix(in srgb, var(--t) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t) 40%, transparent); color: var(--text); border-radius: var(--radius-sm); font-weight: 500; }

/* Toggles: a quiet capsule; the picked one is raised. */
.seg { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 3px; box-shadow: none; }
.seg button, .seg a { border-radius: 6px; }
.seg button.active, .seg a.active { background: var(--surface-2); border-color: transparent; color: var(--text); }
.seg button:hover:not(.active), .seg a:hover:not(.active) { background: none; color: var(--text); }

/* Tabs: words on a line, the open one underlined in orange (Admin, a server's page). */
.tabs, .seg.admin-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; padding: 0; gap: 2px; margin-bottom: 18px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.tabs a, .seg.admin-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 10px 9px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; background: none; color: var(--muted); font: 600 14.5px/1.2 var(--sans); text-decoration: none; white-space: nowrap; }
.tabs a svg { width: 16px; height: 16px; }
.tabs a:hover:not(.active), .seg.admin-tabs a:hover:not(.active) { background: none; color: var(--text); }
.tabs a.active, .tabs a.active:hover, .seg.admin-tabs a.active, .seg.admin-tabs a.active:hover { background: none; border: 0; border-bottom: 2px solid var(--accent); color: var(--text); }
.tabs a.active svg { color: var(--accent); }

/* Fields: plain, with a thin edge. */
.input, .field input, .field textarea, .field select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: none; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; box-shadow: none; }
.search:not(.topbar .search) input, .toolbar input[type="search"] { border-radius: 9px; }
.icon-search { position: relative; display: flex; align-items: center; }
.icon-search > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.icon-search input { padding-left: 36px; }
.switch input:checked + span { box-shadow: none; }

/* The search box: plain, with a thin edge. */
.topbar .search::before, .topbar .search::after { display: none; }
.topbar .search input, .topbar .search.open input { height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; padding: 0 40px 0 38px; }
.topbar .search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.topbar .search > svg { left: 12px; }
.search-key { position: absolute; right: 10px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 5px;
  font: 500 11px/1 var(--mono); color: var(--faint); pointer-events: none; }
.search:focus-within .search-key { display: none; }
.topbar .search-fold { position: absolute; top: calc(100% + 8px); left: auto; right: 0; transform: none; width: min(560px, calc(100vw - 32px)); padding: 6px 0; border-radius: 12px;
  border: 1px solid var(--line-strong); z-index: 40; max-height: min(70vh, 560px); overflow-y: auto; }
.topbar .search-fold[hidden] { display: none; }
.topbar .search-fold.unfold { animation: none; }
.sf-label { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 10px 14px 6px; }
.sf-row { display: flex; align-items: center; gap: 10px; margin: 0 6px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.sf-row svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sf-row .sf-sub { margin-left: auto; color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.sf-row:hover, .sf-row.active { background: var(--surface-2); }
.sf-row.active { box-shadow: inset 2px 0 0 var(--accent); }
.sf-none { padding: 14px; color: var(--muted); font-size: 14px; }

/* The menu */
.nav { background: none; border: 0; box-shadow: none; }
.nav a { border: 0; color: var(--muted); }
.nav a:hover:not(.active) { background: var(--surface-2); color: var(--text); }
.nav a.active, .nav a.active:hover { background: var(--surface-2); border: 0; color: var(--text); }
.nav a.active svg { color: var(--accent); }
.nav-count { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); }
.nav-count.hot { background: var(--bad-strong); color: #fff; border-color: var(--bad-strong); }
.nav-label[hidden], .nav a[hidden] { display: none; }

/* where you are */
.top-crumbs { display: none; }
.top-crumbs .sep { color: var(--line-strong); }
.crumb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; margin-right: 7px; }
.crumb-dot.good { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }

/* ---------------------------------------------------------------- big screens: menu down the full left side */
@media (min-width: 761px) {
  .shell { background: linear-gradient(90deg, var(--bg-2) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px), var(--line) var(--side-w), transparent var(--side-w));
    display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--top-h) 1fr auto; grid-template-areas: "brand top" "side main" "side foot"; }
  .topbar { display: contents; }
  .topbar::before { content: none; }

  /* top left: the logo, exactly the menu's width */
  .topbar > .brand { grid-area: brand; position: sticky; top: 0; z-index: 22; display: flex; align-items: center; height: var(--top-h); width: var(--side-w); min-width: 0; overflow: hidden;
    padding: 0 12px 0 16px; gap: 9px; background: var(--bg-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 700 18px/1 var(--display); letter-spacing: .01em; }
  .topbar > .brand .brand-logo { width: 28px; height: 28px; margin: 0; border-radius: 6px; }
  .topbar > .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* top bar: where you are, and the search on the right */
  .top-crumbs { grid-area: top; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-width: 0; height: var(--top-h); padding: 0 440px 0 28px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; }
  .top-crumbs a { color: var(--muted); text-decoration: none; }
  .top-crumbs a:hover { color: var(--text); }
  .top-crumbs .cur { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; }
  .topbar .search { grid-area: top; position: sticky; top: 10px; z-index: 23; align-self: center; justify-self: end; width: 380px; max-width: 40vw; margin: 0 24px 0 0; flex: none; }

  /* the menu: the left column, from under the logo to above you */
  .sidebar { grid-area: side; position: sticky; top: var(--top-h); align-self: start; height: calc(100dvh - var(--top-h)); overflow-y: auto; scrollbar-width: thin; z-index: 5;
    display: block; padding: 10px 10px 150px; background: var(--bg-2); border: 0; border-right: 1px solid var(--line); pointer-events: auto; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { display: grid; justify-content: stretch; width: auto; max-width: none; margin: 0; padding: 0; gap: 1px; border-radius: 0; overflow: visible; pointer-events: auto; }
  .nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px; font: 600 15px/1.2 var(--sans); }
  .nav a svg { width: 18px; height: 18px; }
  .nav a.active { box-shadow: inset 2px 0 0 var(--accent); }
  .nav a .nav-count { margin-left: auto; }
  .nav-label { padding: 16px 10px 6px; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
  .nav .nav-long { display: inline; } .nav .nav-short { display: none; }

  /* bottom left: Sign in with Steam, or you (the account menu opens upwards); then who's playing */
  .topbar .account-wrap { position: fixed; left: 0; bottom: 52px; z-index: 22; width: var(--side-w); padding: 12px 12px 6px; margin: 0;
    background: var(--bg-2); border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .signin-btn { width: 100%; height: 42px; font-size: 15px; }
  .account-btn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center; width: 100%; height: auto; padding: 5px 6px;
    border: 0; border-radius: 8px; background: transparent; box-shadow: none; text-align: left; }
  .account-btn:hover, .account-btn[aria-expanded="true"], .account-btn.active { background: var(--surface-2); border: 0; box-shadow: none; }
  .account-btn .account-av { grid-row: 1 / 3; width: 34px; height: 34px; }
  .account-btn .account-name { grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; font-weight: 600; }
  .account-btn .account-role { display: block; grid-column: 2; grid-row: 2; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.3; }
  .account-btn .chev { grid-column: 3; grid-row: 1 / 3; transform: rotate(180deg); }
  .account-btn[aria-expanded="true"] .chev { transform: none; }
  .account-menu { top: auto; bottom: calc(100% + 6px); left: 10px; right: auto; width: calc(var(--side-w) - 20px); }
  .app-foot { grid-area: foot; position: fixed; left: 0; bottom: 0; z-index: 22; width: var(--side-w); border: 0; border-right: 1px solid var(--line); background: var(--bg-2); }
  .app-foot .foot-inner { display: flex; align-items: flex-start; gap: 8px; max-width: none; height: 52px; margin: 0; padding: 6px 16px 8px; justify-content: flex-start; text-align: left; font-size: 12.5px; color: var(--faint); line-height: 1.45; }
  .app-foot .foot-copy, .app-foot .foot-links { display: none; }
  .app-foot .foot-live { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
  .app-foot .foot-live .live-dot { margin-top: 5px; flex: none; }
  .app-foot .version-tag { margin-left: auto; flex: none; }

  /* (1.55.0) while an editor is open (Plan a base, Circuits, Art) the menu folds to its icons, so the editor gets the room */
  .shell:has(> .main.cx-wide) { --side-w: 60px; }
  .shell:has(> .main.cx-wide) .topbar > .brand { padding: 0; justify-content: center; }
  .shell:has(> .main.cx-wide) .topbar > .brand span,
  .shell:has(> .main.cx-wide) .nav a > span:not(.nav-count),
  .shell:has(> .main.cx-wide) .account-btn .account-name, .shell:has(> .main.cx-wide) .account-btn .account-role, .shell:has(> .main.cx-wide) .account-btn .chev,
  .shell:has(> .main.cx-wide) .app-foot #foot-playing, .shell:has(> .main.cx-wide) .app-foot .version-tag { display: none; }
  .shell:has(> .main.cx-wide) .sidebar { padding: 10px 8px 150px; scrollbar-width: none; }
  .shell:has(> .main.cx-wide) .nav a { position: relative; justify-content: center; padding: 11px 0; }
  .shell:has(> .main.cx-wide) .nav a svg { width: 20px; height: 20px; }
  .shell:has(> .main.cx-wide) .nav a .nav-count { position: absolute; top: 2px; right: 2px; margin: 0; }
  .shell:has(> .main.cx-wide) .nav-label { height: 1px; margin: 8px 8px; padding: 0; overflow: hidden; background: var(--line); color: transparent; }
  .shell:has(> .main.cx-wide) .nav-label[hidden] { display: none; }
  .shell:has(> .main.cx-wide) .topbar .account-wrap { padding: 10px 8px 6px; }
  .shell:has(> .main.cx-wide) .account-btn { display: flex; justify-content: center; padding: 4px 0; }
  .shell:has(> .main.cx-wide) .signin-btn { padding: 0; font-size: 0; gap: 0; }
  .shell:has(> .main.cx-wide) .signin-btn svg { width: 20px; height: 20px; margin: 0; }
  .shell:has(> .main.cx-wide) .account-menu { left: 8px; width: 236px; }
  .shell:has(> .main.cx-wide) .app-foot .foot-inner { justify-content: center; padding: 6px 0 8px; }
  .shell:has(> .main.cx-wide) .app-foot .foot-live .live-dot { margin-top: 14px; }

  /* (1.55.0) Staff: Set up's six pages show under it while one of them is open */
  .nav a.nav-tab, .nav-sheet { display: none; }
  .nav a.nav-fold .chev { width: 14px; height: 14px; margin-left: auto; color: var(--faint); transform: rotate(-90deg); }
  .nav.setup-open a.nav-fold .chev { transform: none; }
  .nav a.nav-sub { display: none; padding-left: 22px; font-weight: 500; font-size: 14.5px; }
  .nav.setup-open a.nav-sub { display: flex; }
  .shell:has(> .main.cx-wide) .nav a.nav-sub { padding-left: 0; }
  .shell:has(> .main.cx-wide) .nav a.nav-fold .chev { display: none; }

  /* the page sits in the middle of the space right of the menu */
  .main { grid-area: main; max-width: 1320px; width: 100%; margin: 0 auto; padding: 26px 28px 48px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .top-crumbs { padding-right: 300px; }
  .topbar .search { width: 260px; }
}

/* ---------------------------------------------------------------- phones: the logo and you on top, the menu as a bar at the bottom */
@media (max-width: 760px) {
  .shell { grid-template-areas: "top" "main" "foot"; grid-template-rows: auto 1fr auto; }
  .topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; height: auto; padding: 8px 14px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .topbar::before { content: none; }
  .topbar > .brand { padding: 0; font: 700 18px/1 var(--display); flex: 1; min-width: 0; gap: 8px; }
  .topbar > .brand .brand-logo { width: 26px; height: 26px; margin: 0; }
  .topbar > .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .account-wrap { order: 2; margin: 0; }
  .topbar .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .topbar .search-fold { position: fixed; top: 104px; left: 8px; right: 8px; width: auto; }
  .signin-btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .account-btn { height: 36px; padding: 0 8px 0 4px; background: transparent; border-color: transparent; }
  .account-btn .account-role { display: none; }
  .account-btn .account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30; padding: 0 0 env(safe-area-inset-bottom); background: var(--bg-2); border: 0; border-top: 1px solid var(--line); pointer-events: auto; }
  .sidebar::before { display: none; }
  .nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; max-width: none; margin: 0; padding: 4px; gap: 2px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow-x: auto; }
  .nav-label { display: none; }
  .nav a { flex-direction: column; justify-content: center; gap: 3px; padding: 7px 2px 6px; border: 0; border-radius: 8px; font: 600 10.5px/1.1 var(--sans); }
  .nav a.active { box-shadow: inset 0 2px 0 var(--accent); }
  .nav a .nav-count { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; }
  /* (1.55.0) five tabs: Home, Servers, Create, VIP, More. Everything else is in the list Create or More opens. */
  .sidebar .nav { grid-auto-columns: 1fr; overflow: visible; }
  .sidebar .nav > a { display: none; position: relative; }
  .sidebar .nav > a[data-nav="home"], .sidebar .nav > a[data-nav="servers"], .sidebar .nav > a[data-nav="store"], .sidebar .nav > a.nav-tab { display: flex; cursor: pointer; }
  .sidebar .nav > a[data-nav="home"] { order: 1; } .sidebar .nav > a[data-nav="servers"] { order: 2; } #nav-create { order: 3; } .sidebar .nav > a[data-nav="store"] { order: 4; } #nav-more { order: 5; }
  .nav a.nav-tab[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
  .nav-sheet { position: fixed; left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 31; display: grid; gap: 2px; max-height: min(70dvh, 520px); overflow-y: auto; padding: 8px;
    border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
  .nav-sheet[hidden] { display: none; }
  .nav-sheet a { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font: 600 15.5px/1.2 var(--sans); }
  .nav-sheet a svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
  .nav-sheet a.active { background: var(--accent-soft); color: var(--accent-text); }
  .nav-sheet a.active svg { color: currentColor; }
  .nav-sheet a .nav-short, .nav-sheet a .chev { display: none; }
  .nav-sheet a .nav-long { display: inline !important; }
  .nav-sheet a .nav-count { position: static; margin-left: auto; }
  .nav-sheet-label { padding: 10px 12px 4px; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
  .main { padding: 18px 14px 28px; }
  .app-foot { padding-bottom: calc(64px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .app-foot .foot-inner { flex-wrap: wrap; justify-content: center; text-align: center; gap: 4px 14px; padding: 14px 16px; font-size: 12.5px; color: var(--faint); }
  .app-foot .foot-live { display: inline-flex; align-items: center; gap: 7px; }
  .toasts { bottom: calc(70px + env(safe-area-inset-bottom)); }
  h1, .page-head h1 { font-size: 26px; }
}

/* ===================================================================== the site's pages, as in the concepts */

/* little graphs */
svg.spark { display: block; width: 100%; height: 30px; overflow: visible; }
.spark-empty { height: 30px; display: flex; align-items: flex-end; font-size: 11.5px; color: var(--faint); }

/* Home: the welcome, and three numbers beside it */
.site-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-bottom: 8px; }
.hero-card { padding: 28px 30px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 62%); display: grid; align-content: center; }
.hero-card h1 { font: 700 46px/1.02 var(--display); margin: 12px 0 10px; text-wrap: balance; white-space: pre-line; }
.hero-card p { color: var(--muted); max-width: 560px; margin: 0 0 20px; font-size: 15.5px; line-height: 1.55; }
.hero-card .row { gap: 8px; }
.hero-card .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.stat3 { display: grid; padding: 0; }
.stat3 .metric { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.stat3 .metric:last-child { border-bottom: 0; }
.m-label { font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.m-val { font: 700 32px/1.1 var(--display); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-val small { font: 500 13.5px/1 var(--sans); color: var(--muted); margin-left: 4px; }
.m-sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; min-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat3 svg.spark { height: 34px; margin-top: 8px; }
@media (max-width: 1100px) { .site-hero { grid-template-columns: minmax(0, 1fr); } .stat3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat3 .metric { border-bottom: 0; border-right: 1px solid var(--line); } .stat3 .metric:last-child { border-right: 0; } }
@media (max-width: 640px) { .hero-card { padding: 22px 20px; } .hero-card h1 { font-size: 36px; } .stat3 { grid-template-columns: minmax(0, 1fr); } .stat3 .metric { border-right: 0; border-bottom: 1px solid var(--line); } }
/* the welcome is the first of the home slides (1.46.0): every slide sits in the same grid cell, so the card is as tall as
   the tallest one and nothing jumps when they change */
.hero-card.hero-show { padding: 0; display: block; position: relative; overflow: hidden; align-content: stretch; }
.hs-track { display: grid; height: 100%; }
.hs-slide { grid-area: 1 / 1; display: grid; min-width: 0; opacity: 0; visibility: hidden; transform: translateX(18px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.hero-show.rev .hs-slide:not(.on) { transform: translateX(-18px); }
.hs-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.hs-text { padding: 28px 30px 64px; align-self: center; min-width: 0; }
.hero-show.solo .hs-text { padding-bottom: 28px; }
.hs-slide.has-pic { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.hs-h { font: 700 46px/1.02 var(--display); margin: 12px 0 10px; text-wrap: balance; }
.hs-kick { display: inline-flex; align-items: center; gap: 7px; }
.hs-kick svg { width: 15px; height: 15px; }
/* the picture: a real screenshot in a window frame that runs off the card's right and bottom edges */
.hs-pic { position: relative; min-height: 220px; }
.hs-frame { position: absolute; top: 30px; left: 6px; right: -36px; bottom: -36px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #141414; box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .12); }
.hs-frame::before { content: ''; position: absolute; inset: 0 0 auto; height: 22px; z-index: 1; background: #1d1d1d; border-bottom: 1px solid rgba(255, 255, 255, .06);
  background-image: radial-gradient(circle at 12px 11px, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 26px 11px, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 40px 11px, #28c840 3.5px, transparent 4px); }
.hs-frame img { position: absolute; top: 22px; left: 0; width: 100%; height: calc(100% - 22px); object-fit: cover; object-position: left top; display: block; user-select: none; }
/* the controls: back, a dot per slide (the shown one fills up until the next), next, pause */
.hs-ctrl { position: absolute; left: 24px; bottom: 16px; display: flex; align-items: center; gap: 4px; z-index: 2; }
.hs-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.hs-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.hs-btn svg { width: 16px; height: 16px; }
.hs-next svg { transform: scaleX(-1); }
.hs-pause { margin-left: 2px; }
.hs-pause svg { width: 14px; height: 14px; }
.hs-dots { display: flex; align-items: center; }
.hs-dot { border: 0; background: transparent; padding: 10px 3px; cursor: pointer; display: grid; }
.hs-dot i { display: block; width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 22%, transparent); transition: width .3s ease, background .3s ease; overflow: hidden; position: relative; }
.hs-dot:hover i { background: color-mix(in srgb, var(--text) 40%, transparent); }
.hs-dot.active i { width: 28px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.hs-dot.active i::after { content: ''; position: absolute; inset: 0; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(var(--hs-p, 0)); }
.hero-show.still .hs-dot.active i::after { transform: scaleX(1); }
.hs-btn:focus-visible, .hs-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { .hs-slide, .hs-slide.on, .hs-dot i { transition: none; transform: none; } .hero-show.rev .hs-slide:not(.on) { transform: none; } }
@media (max-width: 1100px) { .hs-frame { right: -30px; } }
@media (max-width: 760px) {
  .hs-slide.has-pic { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .hs-slide.has-pic .hs-pic { order: -1; min-height: 0; height: 150px; }
  .hs-slide.has-pic .hs-frame { top: 18px; left: 20px; right: -20px; bottom: 0; border-radius: 10px 10px 0 0; border-bottom: 0;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .hs-slide.has-pic .hs-text { padding-top: 8px; align-self: start; }
}
.hs-peek { display: none; }
@media (max-width: 760px) {
  .hs-slide[data-key="welcome"] { grid-template-rows: auto 1fr; }
  .hs-peek { display: block; order: -1; position: relative; height: 150px; min-height: 0;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .hs-peek .hs-frame { top: 26px; bottom: auto; left: auto; right: auto; width: 52%; height: 150px; border-radius: 10px; }
  .hs-peek .hs-frame:nth-child(1) { left: 20px; transform: rotate(-4deg); z-index: 1; }
  .hs-peek .hs-frame:nth-child(2) { left: 30%; top: 14px; z-index: 3; }
  .hs-peek .hs-frame:nth-child(3) { right: -14px; transform: rotate(4deg); z-index: 2; }
  .hs-slide[data-key="welcome"] .hs-text { padding-top: 8px; align-self: start; }
}
@media (max-width: 640px) { .hs-text { padding: 22px 20px 60px; } .hs-slide.has-pic .hs-text { padding-top: 6px; } .hs-h { font-size: 32px; } .hs-ctrl { left: 14px; bottom: 12px; } }

/* the servers, as a table */
.srv-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 14px 18px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.tbl td.r, table.tbl th.r { text-align: right; white-space: nowrap; }
.srv-table tbody tr[data-href] { cursor: pointer; }
.srv-table .srv-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.srv-table .srv-name { font-weight: 600; color: var(--text); text-decoration: none; font-size: 15px; }
.srv-table .srv-name:hover { color: var(--accent-text); }
.srv-table .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.srv-table td.spark-cell { width: 180px; min-width: 140px; }
.srv-table .wipes { font-size: 13.5px; white-space: nowrap; }
.srv-table .wipes .faint { color: var(--faint); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot-live.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot-live.off { background: var(--bad); }
.pop-cell { white-space: nowrap; }
.pop-cell b { font: 700 17px/1 var(--sans); font-variant-numeric: tabular-nums; }
.pop-cell .of { color: var(--faint); }
.pop-cell .badge { margin-left: 6px; height: 20px; padding: 0 7px; font-size: 11.5px; }
.qbar { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 7px; width: 130px; overflow: hidden; }
.qbar i { display: block; height: 100%; border-radius: 3px; background: var(--good); }
.qbar i.warn { background: var(--warn); } .qbar i.bad { background: var(--bad); }
.view-toggle { margin-left: auto; }
.srv-note { margin: 12px 2px 0; color: var(--faint); font-size: 13.5px; }
@media (max-width: 900px) {
  .srv-table thead { display: none; }
  .srv-table, .srv-table tbody, .srv-table tr, .srv-table td { display: block; }
  .srv-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .srv-table tr:last-child { border-bottom: 0; }
  .srv-table td { padding: 0; border: 0; }
  .srv-table td.region, .srv-table td.spark-cell { display: none; }
  .srv-table td.srv-td { grid-column: 1 / -1; }
  .srv-table td.r { grid-column: 1 / -1; text-align: left; }
  .srv-table .srv-cell { min-width: 0; }
}

/* Servers page: search, filters, Cards / Table */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .icon-search { width: 340px; max-width: 100%; }
.toolbar .icon-search input { width: 100%; height: 38px; }
.toolbar .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar .chip { height: 34px; padding: 0 12px; font-size: 14px; color: var(--text); }
.toolbar .live-note { color: var(--faint); font-size: 13px; }

/* One server's page */
.srv-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.server-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface); border: 1px solid var(--line-strong); color: var(--accent); }
.server-icon svg { width: 26px; height: 26px; }
.srv-title { flex: 1; min-width: 0; }
.srv-title .row { gap: 8px; flex-wrap: wrap; }
.srv-title h1 { margin: 0; font-size: 32px; overflow-wrap: anywhere; }
.srv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.srv-meta b { color: var(--text); font-weight: 600; margin-right: 5px; }
.srv-meta .mono { font-family: var(--mono); font-size: 13px; color: var(--text); }
.srv-meta .copy-inline { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.srv-meta .copy-inline svg { width: 14px; height: 14px; color: var(--muted); }
.srv-head .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.srv-head .actions .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.ov2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ov2 > .stack { gap: 18px; }
@media (max-width: 1100px) { .ov2 { grid-template-columns: minmax(0, 1fr); } }
.perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perf .m { padding: 14px 18px 14px; border-right: 1px solid var(--line); min-width: 0; }
.perf .m:last-child { border-right: 0; }
.perf svg.spark { height: 36px; margin-top: 8px; }
.perf .spark-empty { height: 36px; margin-top: 8px; }
@media (max-width: 700px) { .perf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .perf .m { border-bottom: 1px solid var(--line); } .perf .m:nth-child(2n) { border-right: 0; } }
.map-seed { display: flex; gap: 22px; flex-wrap: wrap; }
.map-seed .map-pic { width: 180px; height: 180px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-strong); flex: none; padding: 0; cursor: pointer;
  background: color-mix(in srgb, var(--info) 22%, var(--surface-2)); display: grid; place-items: center; color: var(--faint); font-size: 12px; position: relative; }
.map-seed .map-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-seed .map-pic:hover { border-color: var(--faint); }
.map-seed .kv { flex: 1; min-width: 220px; align-content: start; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 22px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.join-box { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface-2);
  font: 13px/1.4 var(--mono); color: var(--text); cursor: pointer; text-align: left; word-break: break-all; }
.join-box svg { margin-left: auto; width: 15px; height: 15px; color: var(--muted); flex: none; }
.join-box:hover { border-color: var(--faint); }
.join-steam { display: inline-flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-weight: 600; color: var(--text); text-decoration: none; }
.join-steam svg { width: 15px; height: 15px; color: var(--muted); }
.join-steam:hover { color: var(--accent-text); }
.wipe-count { font: 700 34px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.lb { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: center; }
.lb:first-child { padding-top: 0; }
.lb:last-child { border-bottom: 0; padding-bottom: 0; }
.lb .n { color: var(--faint); font-weight: 700; }
.lb .who { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .who.hidden { color: var(--faint); font-weight: 500; font-style: italic; }
.lb .v { color: var(--muted); font-variant-numeric: tabular-nums; }
.about-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; line-height: 1.6; color: var(--text); }
.rules-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.map-stage-wrap { padding: 0; overflow: hidden; }

/* VIP: the packages */
.plan-grid, .pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pkgs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pkgs.three { grid-template-columns: minmax(0, 1fr); } }
.pkg { position: relative; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.pkg.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pkg.current { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.pkg h3 { font: 700 23px/1.1 var(--display); margin: 0; padding-right: 110px; }
.pkg .price { font: 700 36px/1.1 var(--display); margin: 12px 0 2px; }
.pkg .price small { font: 500 14px var(--sans); color: var(--muted); margin-left: 4px; }
.pkg .desc { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.pkg ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 9px; font-size: 14.5px; }
.pkg li { display: flex; gap: 10px; align-items: baseline; }
.pkg li svg { width: 16px; height: 16px; color: var(--good); flex: none; transform: translateY(3px); }
.pkg .where { font-size: 12.5px; color: var(--faint); margin: -6px 0 16px; display: flex; gap: 6px; align-items: center; }
.pkg .where svg { width: 13px; height: 13px; }
.pkg .btn { width: 100%; margin-top: auto; height: 42px; font-size: 15px; }
.pkg .ribbons { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.store-grid > .stack { gap: 18px; }
@media (max-width: 1100px) { .store-grid { grid-template-columns: minmax(0, 1fr); } }
.qa { display: grid; gap: 14px; }
.qa b { display: block; font-weight: 600; }
.qa p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

/* Stats, Discord, Support, My account, Admin: the same boxes, flat */
.st-tile { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; }
.tk-card { box-shadow: none; }
.tk-card:hover { border-color: var(--line-strong); transform: none; }
.tk-ic { background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: none; color: var(--accent); }
.discord-hero { background: linear-gradient(120deg, color-mix(in srgb, #5865f2 14%, var(--surface)), var(--surface) 60%); }
.dh-icon { background: color-mix(in srgb, #5865f2 18%, var(--surface)); border: 1px solid color-mix(in srgb, #5865f2 40%, transparent); box-shadow: none; }
.settings-nav { padding: 6px; }
.settings-nav a { border-radius: 7px; }
.settings-nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); border-color: transparent; }
.settings-nav a.active svg { color: var(--accent); }
.faq-group details { border-color: var(--line); }
.lb-rank.top { box-shadow: none; }
.sk { background: var(--surface-2); }

@media (max-width: 760px) {
  .srv-head .actions { margin-left: 0; width: 100%; }
  .srv-head .actions .btn { flex: 1; }
  .srv-title h1 { font-size: 26px; }
}

/* small fixes over app.css */
.kv dd { text-align: left; }
.srv-meta .copy-inline.mono { font-family: var(--mono); font-size: 13px; }
.toolbar .icon-search input.input[type="search"] { padding-left: 36px; border-radius: 9px; }
@media (max-width: 760px) { .search-key { display: none; } }

/* ------------------------------------------------------------------ Stats (1.13): grouped boards, podium, bars, wipe by wipe */
.st-head { align-items: flex-end; }
.st-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-filters select.input { width: auto; max-width: 240px; }
.st-boards { display: flex; gap: 14px 18px; flex-wrap: wrap; margin: 0 0 16px; }
.st-group { display: grid; gap: 6px; min-width: 0; }
.st-group-name { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-left: 2px; }
.st-group-row { display: flex; gap: 6px; }
.st-board { display: grid; grid-template-columns: 16px auto; grid-template-rows: auto auto; gap: 1px 7px; align-items: center; min-width: 96px; padding: 9px 14px 9px 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font: inherit; transition: border-color .15s, background .15s, color .15s; }
.st-board svg { width: 15px; height: 15px; grid-row: 1; }
.st-board span { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-board b { grid-column: 1 / -1; font: 700 22px/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.st-board:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.st-board.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.st-board:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 18px; align-items: start; }
.st-side { display: grid; gap: 18px; }
.st-note { margin-left: 4px; }
/* The podium: second, first, third, the winner raised */
.st-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 18px 18px 16px; border-bottom: 1px solid var(--line); }
.st-podium[data-n="1"] { grid-template-columns: minmax(0, 1fr); max-width: 300px; margin: 0 auto; }
.st-podium[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pod { --medal: #d39a63; position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 12px 16px; min-width: 0;
  border: 1px solid var(--line); border-top: 3px solid var(--medal); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 12%, var(--surface)), var(--surface) 70%); }
.pod1 { --medal: #f2c94c; padding-top: 38px; padding-bottom: 26px; }
.pod2 { --medal: #c9ced6; }
.pod-medal { position: absolute; top: -15px; display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 26px; padding: 0 8px; border-radius: 13px; background: var(--medal); color: #1d0e05; font: 700 15px/1 var(--display); justify-content: center; }
.pod-medal svg { width: 14px; height: 14px; }
.pod .pod-av { width: 56px; height: 56px; border-radius: 12px; }
.pod1 .pod-av { width: 72px; height: 72px; border-radius: 14px; }
.pod .avatar.initials.pod-av svg { width: 22px; height: 22px; }
.pod-name { font-weight: 700; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.pod-name a { color: inherit; text-decoration: none; } .pod-name a:hover { text-decoration: underline; }
.pod-val { font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.pod1 .pod-val { font-size: 38px; color: var(--accent-text); }
.pod-sub { font-size: 12px; color: var(--muted); max-width: 100%; }
/* You, on this board */
.st-you { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent-soft) 55%, transparent); font-size: 14px; }
.st-you-t { flex: 1; min-width: 0; }
.st-you .st-val { font: 700 20px/1 var(--display); font-variant-numeric: tabular-nums; }
/* The list: each row has a bar against first place */
.st-list .st-row { padding-top: 10px; padding-bottom: 10px; }
.st-list .lb-rank { width: 26px; }
.st-bar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-2); overflow: hidden; max-width: 420px; }
.st-bar i { display: block; height: 100%; border-radius: 2px; background: color-mix(in srgb, var(--accent) 70%, var(--surface)); }
.st-row.me .st-bar i { background: var(--accent); }
.st-row .st-val { font-size: 21px; }
/* Your stats: tiles are buttons now (they open their board) */
.st-tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.st-tile:hover { border-color: var(--line-strong); }
.st-tile.active { border-color: var(--accent); background: var(--accent-soft); }
/* Wipe by wipe: one column each, the one being shown in full colour */
.st-trend { display: flex; align-items: stretch; gap: 4px; height: 170px; }
.st-col { position: relative; flex: 1; min-width: 0; display: grid; grid-template-rows: 18px 1fr 18px; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.st-col:disabled { cursor: default; color: var(--muted); }
.st-col-val { font: 700 13px/18px var(--display); color: var(--text); text-align: center; white-space: nowrap; overflow: visible; }
.st-col-bar { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-strong); }
.st-col-bar i { display: block; width: 100%; max-width: 30px; margin: 0 auto; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 38%, var(--surface-2)); transition: background .15s; }
.st-col.on .st-col-bar i { background: var(--accent); }
.st-col:hover .st-col-bar i, .st-col:focus-visible .st-col-bar i { background: color-mix(in srgb, var(--accent) 70%, var(--surface-2)); }
.st-col.on:hover .st-col-bar i { background: var(--accent); }
.st-col-day { font-size: 11px; line-height: 18px; text-align: center; white-space: nowrap; overflow: hidden; }
.st-col.on .st-col-day { color: var(--text); font-weight: 600; }
.st-col:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.st-tip { position: absolute; bottom: calc(100% - 10px); left: 50%; transform: translateX(-50%); z-index: 5; display: none; padding: 7px 10px; border-radius: var(--radius-sm); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.45; color: var(--muted); text-align: left; pointer-events: none; }
.st-tip b { display: block; font: 700 17px/1.1 var(--display); color: var(--text); }
.st-col:hover .st-tip, .st-col:focus-visible .st-tip { display: block; }
.st-col:first-child .st-tip { left: 0; transform: none; } .st-col:last-child .st-tip { left: auto; right: 0; transform: none; }
@media (max-width: 1100px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); }
  .st-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .st-head .spacer { display: none; }
  .st-filters { width: 100%; } .st-filters select.input { flex: 1; max-width: none; }
  /* The boards slide sideways in one row */
  .st-boards { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .st-boards::-webkit-scrollbar { display: none; }
  .st-boards::after { content: ""; flex: 0 0 1px; }
  .st-group { flex: none; } .st-board { scroll-snap-align: start; min-width: 84px; padding: 8px 11px; } .st-board b { font-size: 19px; }
  .st-sub { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .st-podium { gap: 8px; padding: 22px 10px 12px; }
  .pod { padding: 22px 6px 12px; } .pod1 { padding-top: 30px; padding-bottom: 18px; }
  .pod .pod-av { width: 42px; height: 42px; } .pod1 .pod-av { width: 54px; height: 54px; }
  .pod-name { font-size: 13px; } .pod-val { font-size: 22px; } .pod1 .pod-val { font-size: 28px; } .pod-sub { display: none; }
  .st-side { grid-template-columns: minmax(0, 1fr); }
  .st-card-note, .st-note { display: none; }
}

/* (1.60.0) Rules: numbered sections, a server picker, "On this page" beside them; Admin → Site → Rules */
.rl-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rl-head > div:first-child { min-width: 0; flex: 1 1 360px; }
.rl-head p { max-width: 70ch; }
.rl-pick { margin: 0 0 16px; }
.rl-pick .chip { text-decoration: none; }
.rl-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; }
.rl-strip > svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.rl-strip .body { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.rl-strip .btn svg { width: 14px; height: 14px; }
.rl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 18px; align-items: start; }
.rl-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.rl-sec { scroll-margin-top: 84px; }
.rl-own { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rl-own .card-head .badge { margin-left: auto; }
.rl-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); font: 700 14px/1 var(--display); flex: none; }
.rl-num.sm { min-width: 22px; height: 22px; font-size: 12.5px; }
.rl-list { list-style: none; margin: 0; padding: 4px 0; }
.rl-list li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 10px; align-items: start; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line); line-height: 1.55; }
.rl-list li:first-child { border-top: 0; }
.rl-n { font: 700 13px/1.55rem var(--display); color: var(--faint); font-variant-numeric: tabular-nums; }
.rl-t { overflow-wrap: anywhere; }
.rl-link { width: 28px; height: 28px; opacity: 0; transition: opacity .12s; }
.rl-link svg { width: 14px; height: 14px; }
.rl-list li:hover .rl-link, .rl-link:focus-visible { opacity: 1; }
@media (hover: none) { .rl-link { opacity: .55; } }
.rl-list li.hit { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rl-list li.hit .rl-n { color: var(--accent-text); }
.rl-toc .list-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; gap: 10px; }
.rl-toc .list-item:hover { background: var(--surface-2); }
.rl-side .list-item:last-child { border-bottom: 0; }
.rl-side .list-item .body { display: grid; gap: 2px; min-width: 0; }
.rl-side a.list-item { color: var(--text); text-decoration: none; }
.rl-side a.list-item:hover { background: var(--surface-2); }
.rl-when { margin: 0 4px; }
.rl-tabhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rl-tabhead p { margin: 0; }
/* admin */
.rg-row { display: grid; gap: 8px; padding: 12px; background: var(--surface-2); box-shadow: none; }
.rg-top { display: flex; align-items: center; gap: 6px; }
.rg-top .input { flex: 1; min-width: 0; font-weight: 600; }
.rg-row textarea, .sr-row textarea { width: 100%; resize: vertical; line-height: 1.5; }
.sr-row { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sr-row:first-child { padding-top: 0; border-top: 0; }
.sr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1000px) {
  .rl-layout { grid-template-columns: minmax(0, 1fr); }
  .rl-side { position: static; order: -1; }
  .rl-side > .card:not(.rl-toc), .rl-when { display: none; }
  .rl-toc .list { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; }
  .rl-toc .list::-webkit-scrollbar { display: none; }
  .rl-toc .card-head { display: none; }
  .rl-toc .list-item { flex: none; width: auto; padding: 7px 11px 7px 8px; border: 1px solid var(--line-strong); border-radius: 8px; white-space: nowrap; }
  .rl-side .rl-toc .list-item:last-child { border-bottom: 1px solid var(--line-strong); }
}
@media (max-width: 760px) {
  .rl-head .btn { width: 100%; justify-content: center; }
  .rl-pick { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px 2px; scrollbar-width: none; }
  .rl-pick::-webkit-scrollbar { display: none; }
  .rl-pick .chip { flex: none; }
  .rl-list li { grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 8px; padding: 10px 8px 10px 12px; }
}

/* Map vote (1.62.0) */
.mv-vote { margin-bottom: 28px; }
.mv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.mv-head h2 { margin: 0; font-size: 20px; }
.mv-head svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mv-cand.mine { border-color: var(--accent); }
.mv-cand.won { border-color: var(--good); }
.mv-pic { display: block; background: var(--surface-2); }
.mv-pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.mv-cand .card-body { display: grid; gap: 10px; }
.mv-tally { display: flex; align-items: center; gap: 10px; }
.mv-count { white-space: nowrap; }
.mv-meter { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.mv-meter i { display: block; height: 100%; background: var(--accent); }
.mv-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.mv-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.mv-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.mv-arid { background: #d9b26a; } .mv-temperate { background: #6fa85a; } .mv-tundra { background: #8a9a6a; } .mv-arctic { background: #c9dbe6; } .mv-jungle { background: #2f7d4c; }
.mv-mons { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-mons .chip { cursor: default; }
.mv-cmp summary { cursor: pointer; font-weight: 600; }
.mv-cmp p { margin: 6px 0; font-size: 13px; }
.mv-go { justify-self: start; }
