/* Rusty Rascals + Chill Zone Rust: one design system, two skins.
   Refined, not cartoon: dark ink surfaces from the posters, 1px rules, soft corners,
   condensed uppercase type. The brand colour is spent where it means something:
   primary buttons, the active tab, the sorted column, key numbers, thin accent rules.
   RR = sunset orange on poster ink; CZR = sky blue on deep navy. */

:root {
  --bg: #0c1117;
  --bg-2: #10161e;
  --surface: #141b24;
  --surface-2: #1a232e;
  --line: #222d3a;
  --line-2: #2e3b4b;
  --text: #edf0f3;
  --muted: #c2cbd4;
  --faint: #a7b1bc;          /* brighter for readability (owner, 2026-10-04): ~8:1 on surfaces */
  --good: #4fd18b;
  --bad: #ff6b5b;
  --sun: #f4602a;           /* primary: buttons, active, rules */
  --amber: #fb9434;         /* accent text on dark */
  --cream: #f5d590;
  --sand: #e7b971;
  --accent: var(--amber);
  --accent-2: var(--sun);
  --on-accent: #160a03;
  --tint: rgba(244, 96, 42, .1);
  --tint-2: rgba(244, 96, 42, .18);
  --glow: var(--tint);
  --gold: #e9bb4d; --silver: #c3cad3; --bronze: #c98a58;
  --ink-shadow: #05080b;
  --hard: none;
  --hard-sm: none;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  --radius: 6px;
  --radius-sm: 4px;
  --band: url("/assets/brands/rr/hero.webp");
  --band-pos: center 40%;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --display-weight: 700;
  --wrap: 1200px;
  color-scheme: dark;
}
html[data-brand="czr"] {
  --bg: #08111a;
  --bg-2: #0b1621;
  --surface: #0f1c28;
  --surface-2: #142432;
  --line: #1b3041;
  --line-2: #274256;
  --text: #eef6fa;
  --muted: #c1d4df;
  --faint: #a1b8c6;
  --sun: #26a5e0;
  --amber: #6cd3fd;
  --cream: #c2e0ee;
  --sand: #9fe1fa;
  --purple: #b471dc;
  --accent: var(--amber);
  --accent-2: var(--purple);
  --on-accent: #03111c;
  --tint: rgba(38, 165, 224, .1);
  --tint-2: rgba(38, 165, 224, .2);
  --ink-shadow: #02070c;
  --band: url("/assets/brands/czr/hero.webp");
  --band-pos: center 55%;
  --font-display: "Saira Condensed", "Barlow Condensed", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
/* A whisper of grain, so the dark isn't flat plastic. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .45em; }
h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: .015em; color: var(--text); }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font: 700 19px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
p.faint { line-height: 1.5; }
.mono { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.eyebrow { font: 600 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.15em; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: 600 15px/1.15 var(--font-ui); text-transform: uppercase; letter-spacing: .08em;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sun); border-color: var(--sun); color: var(--on-accent); }
.btn-primary:hover { background: var(--amber); border-color: var(--amber); }
.btn-cream { background: var(--text); border-color: var(--text); color: #0c1117; }
.btn-cream:hover { background: #fff; border-color: #fff; }
.btn-discord, .btn-steam { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-lg { padding: .78em 1.4em; font-size: 16px; }
.btn-sm { padding: .38em .75em; font-size: 13px; }
.btn.copied { border-color: var(--good); color: var(--good); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-danger { color: var(--bad); border-color: rgba(255,107,91,.4); background: transparent; }
.btn-danger:hover { border-color: var(--bad); background: rgba(255,107,91,.08); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 17, 23, .92); backdrop-filter: blur(10px) saturate(1.3); border-bottom: 1px solid var(--line); }
html[data-brand="czr"] .site-header { background: rgba(8, 17, 26, .92); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--sun) 20%, var(--sun) 80%, transparent); opacity: .5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; max-width: 1400px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 21px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; flex: none; }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-more > summary {
  position: relative; color: var(--muted); padding: 8px 10px; font: 600 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em;
  white-space: nowrap; cursor: pointer;
}
.nav > a:hover, .nav-more > summary:hover { color: var(--text); text-decoration: none; }
.nav > a[aria-current="page"], .nav-more.current > summary { color: var(--text); }
.nav > a[aria-current="page"]::after, .nav-more.current > summary::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 2px; background: var(--sun); }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary .icon { transform: rotate(90deg); width: .8em; height: .8em; }
.nav-more .menu, .user-menu .menu {
  position: absolute; z-index: 10; top: calc(100% + 12px); min-width: 210px; padding: 6px; display: grid;   /* above the phone nav strip */
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav-more .menu { left: 0; }
.user-menu .menu { right: 0; }
.nav-more .menu a, .user-menu .menu a, .user-menu .menu button {
  display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--radius-sm); width: 100%;
  color: var(--text); background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 15px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em;
}
.nav-more .menu a .icon, .user-menu .menu .icon { color: var(--faint); }
.nav-more .menu a:hover, .user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface-2); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn { padding: .5em .85em; }
.header-actions .btn-discord span { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line-2); border-radius: 99px; font: 600 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary .name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }
@media (min-width: 1081px) and (max-width: 1340px) { .logo span { display: none; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { height: 58px; gap: 12px; }
  .user-menu summary .name { display: none; }
  .user-menu summary { padding: 3px; }
  .mobile-nav[open] {
    display: block; position: fixed; top: var(--nav-top, 59px); left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); padding: 4px 16px 40px; border-top: 1px solid var(--line);
  }
  .mobile-nav .mn-group { padding: 16px 0 8px; border-bottom: 1px solid var(--line); }
  .mobile-nav .mn-label { font: 600 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
  .mobile-nav .mn-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .mobile-nav a { display: block; padding: 10px 0; color: var(--text); font: 600 21px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
  .mobile-nav a[aria-current="page"] { color: var(--accent); }
  .mobile-nav .mn-cta { display: grid; gap: 10px; margin-top: 20px; }
  .mobile-nav .mn-cta a.btn { width: 100%; padding: .85em 1em; font: 600 16px/1.15 var(--font-ui); letter-spacing: .08em; color: var(--text); }
  .mobile-nav .mn-cta a.btn-primary { color: var(--on-accent); }
  .mobile-nav .mn-cta a.btn-cream { color: #0c1117; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .header-actions .btn-primary span { display: none; }
}
@media (max-width: 380px) { .logo span { display: none; } }

/* ---------- home hero: poster as atmosphere, live counter beside ---------- */
.home-hero {
  position: relative; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12,17,23,0) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,17,23,.97) 0%, rgba(12,17,23,.88) 40%, rgba(12,17,23,.45) 72%, rgba(12,17,23,.3) 100%),
    var(--band) center 40% / cover no-repeat, var(--bg-2);
}
html[data-brand="czr"] .home-hero {
  background:
    linear-gradient(180deg, rgba(8,17,26,0) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,17,26,.96) 0%, rgba(8,17,26,.84) 40%, rgba(8,17,26,.35) 75%, rgba(8,17,26,.2) 100%),
    var(--band) center 55% / cover no-repeat, var(--bg-2);
}
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-title { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .95; letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-tagline { margin: 12px 0 26px; font: 600 clamp(16px, 1.8vw, 20px)/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.home-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.home-hero .search { max-width: 470px; }
.live-card { display: grid; gap: 2px; padding: 20px 20px 10px; background: rgba(16,22,30,.78); border: 1px solid var(--line-2); border-radius: var(--radius); backdrop-filter: blur(8px); }
html[data-brand="czr"] .live-card { background: rgba(11,22,33,.78); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .16em; color: var(--good); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(79,209,139,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(79,209,139,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }
.live-num { font: 700 60px/1 var(--font-display); color: var(--text); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.live-label { font: 600 14px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.live-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); font: 600 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.live-row:hover { text-decoration: none; }
.live-row:hover b { text-decoration: underline; }
.live-row > span:first-child { color: var(--faint); }
.live-row b { color: var(--accent); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  .home-hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; padding-bottom: 30px; }
  .home-hero { background-position: 0 0, 0 0, 75% 40%; }
  .live-card { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; padding: 16px 16px 6px; }
  .live-dot { grid-column: 1 / -1; }
  .live-num { font-size: 46px; }
  .live-row { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .home-hero .hero-actions .btn { flex: 1 1 auto; } }

/* ---------- page header band ---------- */
.page-head {
  position: relative; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(12,17,23,.97) 0%, rgba(12,17,23,.9) 45%, rgba(12,17,23,.6) 100%),
    var(--band) var(--band-pos) / cover no-repeat, var(--bg-2);
}
html[data-brand="czr"] .page-head {
  background:
    linear-gradient(90deg, rgba(8,17,26,.97) 0%, rgba(8,17,26,.88) 50%, rgba(8,17,26,.55) 100%),
    var(--band) center 55% / cover no-repeat, var(--bg-2);
}
.page-head .wrap { padding-top: clamp(28px, 4.5vw, 52px); padding-bottom: clamp(24px, 3.5vw, 40px); }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 12px 0 0; }
.page-head .crumb { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.page-head .crumb:hover { color: var(--text); text-decoration: none; }
.page-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; }
.page-head + .section { padding-top: 32px; }

/* ---------- search ---------- */
.search { display: flex; max-width: 560px; }
.search input {
  flex: 1; min-width: 0; padding: .72em 1em; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: 1px solid var(--line-2); border-right: 0; background: rgba(20,27,36,.85); color: var(--text); font: 16px var(--font);
}
html[data-brand="czr"] .search input { background: rgba(15,28,40,.85); }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--sun); }
.search .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- sections + cards ---------- */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head > a { font: 600 14px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 2px; }
/* A quiet tinted band: the brand colour as light, not paint. */
.band-sun { background: radial-gradient(120% 140% at 0% 0%, var(--tint), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
a.card { color: var(--text); display: block; transition: border-color .15s, background .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.card-head a, .card-head .faint { font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.tile-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--tint); color: var(--accent); margin-bottom: 14px; }
.tile-icon .icon { width: 22px; height: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px;
  font: 600 12px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
}
.badge-accent { color: var(--accent); background: var(--tint); border-color: var(--tint-2); }
.badge-live { color: var(--good); background: rgba(79,209,139,.08); border-color: rgba(79,209,139,.3); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.badge-down { color: var(--bad); background: rgba(255,107,91,.08); border-color: rgba(255,107,91,.3); }
.notice { display: block; position: relative; padding: 16px 18px 16px 50px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted); }
.notice > .icon:first-child { position: absolute; left: 18px; top: 18px; color: var(--accent); }
.meta { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font: 500 14px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- server cards ---------- */
.pop { flex: 1; min-width: 0; }
.pop-num { margin-bottom: 8px; display: flex; align-items: baseline; gap: 6px; font: 500 15px/1 var(--font-ui); }
.pop-num strong { font: 700 30px/.9 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.pop-num .faint { font-size: 15px; }
.pop-bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pop-bar span { display: block; height: 100%; border-radius: inherit; background: var(--sun); }
.spark-wrap { color: var(--accent); opacity: .8; flex: none; }
.spark { display: block; }
.connect { display: flex; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 5px 5px 5px 12px; min-width: 0; }
.connect code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 14px/1.4 ui-monospace, "JetBrains Mono", Menlo, monospace; color: var(--text); background: none; padding: 0; }
.server-head { margin: 14px 0 26px; }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; }
.facts dt { color: var(--muted); font: 600 14px/1.6 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; }
.map-card img { border-radius: var(--radius-sm); width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.icon.flip { transform: scaleX(-1); }
.countdown { font-variant-numeric: tabular-nums; }

/* ---------- home: shortcuts, champions, join band ---------- */
.quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.quick a { display: flex; gap: 14px; align-items: center; padding: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.quick a:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.quick a > .icon { width: 40px; height: 40px; padding: 9px; border-radius: var(--radius-sm); background: var(--tint); color: var(--accent); }
.quick strong { display: block; font: 700 17px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.quick small { display: block; font: 400 14px/1.35 var(--font); color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) {
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .quick small { display: none; }
}
.champs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.champ { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.champ:first-child { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.champ:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.champ img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line-2); }
.champ:first-child img { border-color: var(--gold); }
.champ-body { display: grid; min-width: 0; gap: 2px; }
.champ-server { font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.champ-name { font: 700 19px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ-val { font: 500 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.champ-val b { color: var(--accent); font-weight: 700; }
.join-band .wrap, .srv-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.join-band h2, .srv-cta h2 { margin: 0 0 4px; }
.join-band p, .srv-cta p { margin: 0; color: var(--muted); }
.join-band + .site-footer { margin-top: 0; }

/* ---------- player list ---------- */
.player-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
a.card.player-row, .player-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.player-row img { width: 42px; height: 42px; border-radius: 50%; }
.player-row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-results { margin-top: 26px; transition: opacity .15s; }
.pl-results:empty { display: none; }
.pl-results.is-busy, .lb-results.is-busy, .wp-results.is-busy { opacity: .55; }
.wp-results { transition: opacity .15s; }
.lb-results { transition: opacity .15s; }
.pl-count { margin-bottom: 14px; font: 600 13px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.pl-count strong { color: var(--text); font-size: 15px; margin-right: 2px; }
.pl-count q { color: var(--accent); quotes: '"' '"'; text-transform: none; letter-spacing: 0; }
/* "That's you": the shortcut to your own profile, under the search. */
.pl-me { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 18px 20px; overflow: hidden;
  color: var(--text); border: 1px solid color-mix(in srgb, var(--sun) 35%, var(--line)); border-radius: var(--radius);
  background: linear-gradient(100deg, color-mix(in srgb, var(--sun) 16%, var(--surface)) 0%, var(--surface) 55%); transition: border-color .15s, background-color .15s; }
.pl-me::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sun); }
a.pl-me:hover { text-decoration: none; border-color: var(--sun); }
.pl-me > img, .pl-me > .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 18%, transparent); }
.pl-me-icon { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); color: var(--accent); }
.pl-me-icon svg { width: 30px; height: 30px; }
.pl-me-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.pl-me-k { font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.pl-me-name { font: 700 24px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-me-sub { color: var(--muted); font-size: 14px; }
.pl-me-go { flex: none; }
@media (max-width: 640px) {
  .pl-me { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .pl-me > img, .pl-me > .avatar, .pl-me-icon { width: 52px; height: 52px; }
  .pl-me-name { font-size: 20px; }
  .pl-me-go { width: 100%; justify-content: center; }
}

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head .avatar-lg { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--line-2); object-fit: cover; background: var(--surface-2); }
.profile-head h1 { margin: 0 0 8px; word-break: break-word; }
.profile-head .ids { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font: 600 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--sun); }
.tabs .count { color: var(--faint); margin-left: 6px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { color: var(--faint); font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; }
.stat .v { font: 700 32px/1.05 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 6px; color: var(--text); }
.stat.hl { border-color: var(--tint-2); background: linear-gradient(180deg, var(--tint), var(--surface) 80%); }
.stat.hl .v { color: var(--accent); }
.titles { display: flex; flex-wrap: wrap; gap: 8px; }
.title-chip { padding: 5px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-2); font: 600 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.title-chip small { color: var(--faint); font-weight: 500; margin-left: 6px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; white-space: nowrap; }
th { color: var(--faint); font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
td { border-bottom: 1px solid var(--line); }
tbody tr:hover td { background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.pos { color: var(--good); } td.neg { color: var(--bad); }
.st-hl { font-weight: 600; color: var(--text); }
@media (max-width: 700px) {
  .table-wrap:has(.stack-table) { overflow: visible; border: 0; background: none; }
  .stack-table thead { display: none; }
  .stack-table, .stack-table tbody { display: grid; gap: 10px; }
  .stack-table tr { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .stack-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .stack-table td::before { content: attr(data-label); color: var(--faint); font: 600 12px/1.8 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; text-align: left; flex: none; }
  .stack-table td.st-title { display: block; text-align: left; padding-bottom: 6px; }
  .stack-table td.st-title::before { content: none; }
  .stack-table td.st-title a { font: 700 20px/1.1 var(--font-display); text-transform: uppercase; color: var(--text); }
  .stack-table tbody tr:hover td { background: none; }
}

.groups { display: grid; gap: 12px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.group summary { cursor: pointer; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; list-style: none; font: 600 16px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.group summary::-webkit-details-marker { display: none; }
.group summary .icon { transition: transform .15s; color: var(--faint); }
.group[open] summary { border-bottom: 1px solid var(--line); }
.group[open] summary .icon { transform: rotate(90deg); }
.group dl { margin: 0; padding: 10px 16px 12px; display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; font-size: 15px; }
.group dt { color: var(--muted); }
.group dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); margin-top: 56px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 34px; padding-bottom: 30px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) auto; color: var(--muted); font-size: 14px; }
.site-footer .f-brand { display: flex; gap: 12px; align-items: center; }
.site-footer .f-brand img { width: 42px; height: 42px; object-fit: contain; }
.site-footer .f-brand strong { display: block; color: var(--text); font: 700 20px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.site-footer nav a { padding: 8px; font: 600 14px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .f-copy { grid-column: 1 / -1; color: var(--faint); }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.beta-bar { background: #1b1408; border-bottom: 1px solid #3a2b10; color: #e9bb4d; font: 600 12px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; text-align: center; padding: 6px 16px; }
.beta-bar a { color: #f5d590; margin: 0 4px; }
.beta-bar a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .beta-long { display: none; } }

.error-page { padding: 90px 0; text-align: center; }
.error-page .code { font: 700 120px/1 var(--font-display); color: var(--sun); opacity: .9; }

/* ---------- forms ---------- */
.narrow { max-width: 760px; }
.form { display: grid; gap: 14px; }
.form label { display: block; font: 600 14px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.form label > input, .form label > textarea, .form label > select { display: block; margin-top: 6px; }
.form label > small { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0; }
.form label.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.form input:not([type="checkbox"]):not([type="color"]), .form textarea, .form select {
  width: 100%; padding: .65em .85em; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 16px var(--font);
}
.form input[type="color"] { width: 100%; height: 44px; padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--sun); }
.form small { font: 400 13px/1.4 var(--font); color: var(--faint); }
.form-row.two { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 500; border: 1px solid; }
.flash-ok { background: rgba(79,209,139,.08); border-color: rgba(79,209,139,.35); color: #b2efcd; }
.flash-err { background: rgba(255,107,91,.08); border-color: rgba(255,107,91,.4); color: #ffc9c2; }
.form > .btn { justify-self: start; }
select { accent-color: var(--sun); }

/* ---------- clans ---------- */
/* Every clan tag is pink, on the site and in game (RRClans' tag colour). */
:root { --clan: #ff69b4; }
.clan-tag { display: inline-block; font: 700 14px/1 var(--font-ui); color: var(--clan); background: color-mix(in srgb, var(--clan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--clan) 45%, transparent); padding: 4px 7px; border-radius: 3px; letter-spacing: .06em; }
.clan-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.clan-mine, .invite-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.invite-row { margin-top: 0; }
.row-actions { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clan-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.clan-head h1 { margin: 0 0 8px; word-break: break-word; }
.clan-badge { width: 88px; height: 88px; border-radius: var(--radius); display: grid; place-items: center; font: 700 26px/1 var(--font-display); color: var(--clan); background: color-mix(in srgb, var(--clan) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--clan) 50%, transparent); letter-spacing: .04em; flex: none; }
.clan-cta { margin-left: auto; }
.clan-about { color: var(--muted); max-width: 760px; white-space: normal; }
.popover { position: relative; }
.popover summary { list-style: none; }
.popover summary::-webkit-details-marker { display: none; }
.popover[open] .card { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, 90vw); z-index: 10; box-shadow: var(--shadow); }
.player-cell { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.player-cell span { overflow: hidden; text-overflow: ellipsis; }
.player-cell img { border-radius: 50%; flex: none; }
.role { font: 600 12px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); }
.role-leader { color: var(--accent); border-color: var(--tint-2); background: var(--tint); }
.role-officer { color: var(--text); }
.mini-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; flex-wrap: wrap; }
.mini-row:last-child { border-bottom: 0; }
.mini-row form { margin: 0 0 0 auto; }
.tag-preview { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 15px; color: var(--muted); }
.danger-zone { border-color: rgba(255,107,91,.3); }
.clan-link { color: var(--text); font-weight: 600; }

/* ---------- leaderboards ---------- */
.lb-pickers { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-pickers select, .vs-scope select {
  appearance: none; -webkit-appearance: none; padding: .62em 2.4em .62em .9em; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: rgba(20,27,36,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa6b3' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") right .85em center no-repeat;
  color: var(--text); font: 600 15px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; max-width: 100%; cursor: pointer;
}
html[data-brand="czr"] .lb-pickers select, html[data-brand="czr"] .vs-scope select { background-color: rgba(15,28,40,.9); }
.lb-pickers select:hover, .lb-pickers select:focus { border-color: var(--muted); outline: none; }
.lb-boards, .lb-groups { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.lb-boards::-webkit-scrollbar, .lb-groups::-webkit-scrollbar { display: none; }
.lb-boards { gap: 0; border-bottom: 1px solid var(--line); }
.lb-boards a { flex: none; padding: 13px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font: 600 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.lb-boards a:hover { color: var(--text); text-decoration: none; }
.lb-boards a[aria-current] { color: var(--text); border-bottom-color: var(--sun); }
.lb-groups { gap: 6px; padding-top: 14px; padding-bottom: 2px; }
.lb-groups a { flex: none; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font: 600 13px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.lb-groups a:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
.lb-groups a[aria-current] { color: var(--accent); background: var(--tint); border-color: var(--tint-2); }
@media (min-width: 700px) { .lb-boards, .lb-groups { margin: 0 -24px; padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1000px) { .lb-groups { flex-wrap: wrap; } .lb-boards, .lb-groups { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 16px; flex-wrap: wrap; }
.lb-bar .lb-count { font: 600 14px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.lb-bar .lb-count strong { color: var(--text); }
.lb-bar .search { max-width: 360px; flex: 1 1 260px; }
.lb-bar .search input { padding: .55em .85em; font-size: 15px; }

/* Podium: dark cards, medal colours, the leader lit by the brand colour. */
.podium { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; grid-template-columns: 1fr 1.08fr 1fr; align-items: end; }
.podium .pod { --medal: var(--bronze); position: relative; text-align: center; padding: 22px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.podium .pod-1 { --medal: var(--gold); order: 2; padding-top: 30px; border-color: color-mix(in srgb, var(--sun) 40%, var(--line)); background: linear-gradient(180deg, var(--tint-2), var(--surface) 65%); }
.podium .pod-2 { --medal: var(--silver); order: 1; }
.podium .pod-3 { order: 3; }
.pod::before { content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px; background: var(--medal); border-radius: 2px; }
.pod-rank { position: absolute; top: 12px; left: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--medal); color: var(--medal); font: 700 15px/1 var(--font-ui); }
.pod img, .pod .pod-anon { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--medal); object-fit: cover; background: var(--bg-2); }
.pod-1 img, .pod-1 .pod-anon { width: 92px; height: 92px; }
.pod .pod-anon { display: grid; place-items: center; color: var(--faint); }
.pod-name { display: block; font: 600 18px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.pod-name:hover { text-decoration: underline; }
.pod-val { display: block; font: 700 40px/1 var(--font-display); margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--text); }
.pod-1 .pod-val { font-size: 50px; color: var(--accent); }
.pod-label { display: block; font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-top: 4px; }
.pod-more { display: flex; justify-content: center; gap: 4px 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font: 500 13px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pod-more b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr; gap: 8px; }
  .podium .pod, .podium .pod-1 { order: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 0 12px; align-items: center; text-align: left; padding: 12px 14px; }
  .pod::before { top: 20%; bottom: 20%; left: -1px; right: auto; width: 2px; height: auto; }
  .pod-rank { position: static; grid-row: span 2; }
  .pod img, .pod .pod-anon, .pod-1 img, .pod-1 .pod-anon { width: 46px; height: 46px; margin: 0; grid-row: span 2; }
  .pod-name { font-size: 17px; }
  .pod-val, .pod-1 .pod-val { font-size: 30px; grid-row: span 2; grid-column: 4; margin: 0; text-align: right; }
  .pod-label { grid-column: 3; grid-row: 2; margin: 0; }
  .pod-more { display: none; }
}

.lb-table table { font-size: 15px; }
.lb-table th.stat-col a { color: var(--faint); display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.lb-table th.stat-col a:hover { color: var(--text); text-decoration: none; }
.lb-table th.stat-col img { width: 30px; height: 30px; object-fit: contain; opacity: .9; }
.lb-table th .col-label { font-size: 11px; max-width: 96px; white-space: normal; text-align: right; line-height: 1.15; }
.lb-table th.sorted { box-shadow: inset 0 -2px 0 var(--sun); }
.lb-table th.sorted a { color: var(--accent); }
.lb-table td.sorted { background: var(--tint) !important; color: var(--text); font-weight: 600; }
.lb-table td.total { font-weight: 600; }
.lb-table tr.me td { background: var(--tint-2) !important; }
.lb-table td.rank { font: 600 16px/1 var(--font-ui); color: var(--faint); width: 56px; }
.lb-table td.rank-1 { color: var(--gold); } .lb-table td.rank-2 { color: var(--silver); } .lb-table td.rank-3 { color: var(--bronze); }
.lb-table .player-cell span { font-weight: 500; max-width: 240px; display: inline-block; vertical-align: middle; }
@media (max-width: 860px) {
  .lb-table th:nth-child(1), .lb-table td:nth-child(1) { position: sticky; left: 0; z-index: 2; }
  .lb-table th:nth-child(2), .lb-table td:nth-child(2) { position: sticky; left: 44px; z-index: 2; box-shadow: 8px 0 10px -8px rgba(0,0,0,.7); }
  .lb-table td:nth-child(1), .lb-table td:nth-child(2) { background: var(--surface); }
  .lb-table th, .lb-table td { padding: 10px; }
  .lb-table td.rank { width: 44px; min-width: 44px; }
  .lb-table .player-cell span { max-width: 118px; }
  .lb-table .player-cell img { width: 24px; height: 24px; }
  .lb-table th.stat-col img { width: 24px; height: 24px; }
}
.lb-swipe { display: none; font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 8px; }
@media (max-width: 860px) { .lb-swipe { display: flex; align-items: center; gap: 4px; } }
.hidden-player { color: var(--faint); font-style: italic; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; font: 600 14px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }


/* ---------- map vote ---------- */
/* ---------- map vote ---------- */
.mv-sum { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 22px; }
.mv-sum-i { display: grid; gap: 2px; }
.mv-sum-i b { font: 700 34px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.mv-sum-i.is-clock b { color: var(--accent); }
.mv-sum-i span { font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.mv-quiet { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.mv-quiet .icon { width: 16px; height: 16px; flex: none; color: var(--accent); }
.mv-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mv-jump a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(12,17,23,.6);
  color: var(--muted); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.mv-jump a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.mv-jump a.is-open::before { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.mv-jump a:hover { color: var(--text); border-color: var(--muted); text-decoration: none; }
.mv-signin { margin: 0 0 6px; }

.mv-server { margin-top: 34px; scroll-margin-top: 90px; transition: opacity .2s; }
.mv-server.is-busy { opacity: .6; pointer-events: none; }
.mv-server + .mv-server { padding-top: 34px; border-top: 1px solid var(--line); }
.mv-head { display: flex; justify-content: space-between; align-items: end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.mv-title h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); }
.mv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; color: var(--muted); font: 600 13px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.mv-clock { display: grid; justify-items: end; gap: 2px; text-align: right; }
.mv-clock-k { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.mv-clock b { font: 700 30px/1.05 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.mv-server:not(.is-open) .mv-clock b { color: var(--muted); }
.mv-clock small { color: var(--muted); font-size: 13px; }
.mv-tally { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.mv-tally b { color: var(--text); font-size: 16px; }
.mv-mine { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--sun) 16%, transparent); color: var(--accent); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.mv-mine .icon { width: 13px; height: 13px; }
.mv-weight { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--rc, #e9bb4d);
  color: var(--ri, #1a1300); font: 700 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset; }
/* How the map vote works: two rules and the vote power ladder, as three panels. */
.mv-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; margin-top: 18px; max-width: 980px; }
.mv-how-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(12,17,23,.72); min-width: 0; }
.mv-how-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--sun) 16%, transparent); color: var(--accent); }
.mv-how-ic .icon { width: 20px; height: 20px; }
.mv-how-t { display: grid; gap: 3px; min-width: 0; }
.mv-how-t b { font: 700 17px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.mv-how-t small { color: var(--muted); font-size: 14px; }
.mv-power { flex-direction: column; align-items: stretch; gap: 8px; }
.mv-power-k { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.mv-power-k .icon { width: 20px; height: 20px; color: var(--gold); }
.mv-power-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mv-pw { display: grid; justify-items: center; gap: 6px; padding: 8px 6px 9px; border-radius: 10px; min-width: 0;
  background: color-mix(in srgb, var(--rc) 14%, rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--rc) 55%, var(--line-2)); border-top: 3px solid var(--rc);
  transition: transform .15s, background .15s; }
a.mv-pw:hover { text-decoration: none; transform: translateY(-2px); background: color-mix(in srgb, var(--rc) 22%, rgba(255,255,255,.03)); }
.mv-pw b { font: 700 26px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.mv-pw span { max-width: 100%; padding: 3px 8px; border-radius: 99px; background: var(--rc); color: var(--ri); box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset;
  font: 700 11px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-pw.is-plain { --rc: var(--line-2); background: rgba(255,255,255,.02); border-top-color: var(--line-2); }
.mv-pw.is-plain b { color: var(--muted); }
.mv-pw.is-plain span { background: transparent; color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; }
.mv-role { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--rc); color: var(--ri); font: 700 13px/1.3 var(--font-ui);
  text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset; justify-self: start; }
a.mv-role:hover { text-decoration: none; filter: brightness(1.12); }
.mv-role.is-plain { background: transparent; color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; }
@media (max-width: 900px) { .mv-how { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mv-power { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .mv-how { grid-template-columns: minmax(0, 1fr); }
}
.mv-weight .icon { width: 13px; height: 13px; }
.mv-none { margin: 4px 0 0; }

.mv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); align-items: start; }
.mv-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.mv-card:hover { border-color: var(--line-2); }
.mv-card.is-lead { border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); }
.mv-card.is-mine { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun) inset, 0 18px 40px -18px color-mix(in srgb, var(--sun) 60%, transparent); }
.mv-card.is-won { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset, 0 18px 40px -18px color-mix(in srgb, var(--good) 55%, transparent); }
.mv-img { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #0e2a35; cursor: zoom-in; overflow: hidden; }
.mv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mv-img:hover img, .mv-img:focus-visible img { transform: scale(1.06); }
.mv-num { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(8,12,17,.82); border: 1px solid rgba(255,255,255,.18); color: var(--text); font: 700 22px/1 var(--font-display); backdrop-filter: blur(4px); }
.mv-flag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: var(--radius-sm);
  background: var(--sun); color: var(--on-accent); font: 700 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.mv-flag .icon { width: 13px; height: 13px; }
.mv-flag.is-lead { background: rgba(8,12,17,.82); color: var(--accent); border: 1px solid color-mix(in srgb, var(--sun) 50%, transparent); }
.mv-flag.is-won { background: var(--good); color: #04130c; }
.mv-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(8,12,17,.75); color: var(--text); opacity: 0; transition: opacity .2s; }
.mv-zoom .icon { width: 16px; height: 16px; }
.mv-img:hover .mv-zoom, .mv-img:focus-visible .mv-zoom { opacity: 1; }
.mv-body { display: grid; gap: 10px; padding: 14px 14px 16px; }
.mv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mv-row strong { font: 700 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.mv-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mv-bar i { display: block; height: 100%; width: var(--p); border-radius: 3px; background: linear-gradient(90deg, var(--sun), var(--amber)); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.mv-card.is-won .mv-bar i { background: var(--good); }
.mv-actions { display: grid; gap: 8px; margin-top: 2px; }
.mv-actions form { margin: 0; }
.mv-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
.mv-rm { justify-self: center; display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.mv-rm .icon { width: 12px; height: 12px; }
.mv-rm:hover { color: var(--text); text-decoration: none; }

/* Map facts (RustMaps): biome split, numbers, monuments. */
.mf { display: grid; gap: 10px; }
.mf-biome { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.mf-biome i { display: block; width: var(--w); height: 100%; }
.b-snow { --bc: #e6edf5; } .b-desert { --bc: #d8b26a; } .b-forest { --bc: #5a8a3c; } .b-tundra { --bc: #9aa676; } .b-jungle { --bc: #23926a; }
.mf-biome i { background: var(--bc); }
.mf-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.mf-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mf-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--bc); }
.mf-legend b { color: var(--text); font-weight: 600; }
.mf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--line); }
.mf-facts > div { display: grid; gap: 3px; padding: 7px 9px; background: var(--bg-2); }
.mf-facts dt { font: 600 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.mf-facts dd { margin: 0; font: 700 17px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.mf-mons { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-core, .mf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: var(--radius-sm); font: 600 12px/1.1 var(--font-ui); letter-spacing: .02em; }
.mf-core { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.mf-core.is-miss { background: color-mix(in srgb, var(--bad, #e5484d) 14%, transparent); color: var(--bad, #e5484d); }
.mf-core .icon { width: 13px; height: 13px; }
.mf-chip { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.mf-chip b { color: var(--accent); }
.mf-all > summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; list-style: none; color: var(--accent); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.mf-all > summary::-webkit-details-marker { display: none; }
.mf-all > summary .icon { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .2s; }
.mf-all[open] > summary .icon { transform: rotate(-90deg); }
.mf-close, .mf-all[open] .mf-open { display: none; }
.mf-all[open] .mf-close { display: inline; }
.mf-list { display: grid; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.mf-list h4 { margin: 0 0 2px; font: 600 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.mf-list p { margin: 0; line-height: 1.5; }
.mf-wait { gap: 8px; }
.mf-wait span { display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--line) 0%, var(--line-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: mf-shimmer 1.2s linear infinite; }
.mf-wait span:nth-child(2) { width: 70%; } .mf-wait span:nth-child(3) { width: 45%; }
@keyframes mf-shimmer { to { background-position: -200% 0; } }

.mf-facts > div.is-top { background: color-mix(in srgb, var(--sun) 12%, var(--bg-2)); }
.mf-facts > div.is-top dd { color: var(--accent); }
.mf-same { color: var(--faint); font-size: 12px; padding: 4px 0; }
/* Closed ballots: a compact strip of results, the winner up front. */
.mv-past { margin-top: 48px; }
.mv-past + .mv-server { border-top: 0; padding-top: 0; margin-top: 16px; }
.mv-server:not(.is-open) { margin-top: 26px; }
.mv-server:not(.is-open) + .mv-server { padding-top: 26px; }
.mv-server:not(.is-open) .mv-title h2 { font-size: 24px; }
.mv-server:not(.is-open) .mv-clock b { font-size: 22px; }
.mv-server:not(.is-open) .mv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.mv-server:not(.is-open) .mf, .mv-server:not(.is-open) .mv-tally { display: none; }
.mv-server:not(.is-open) .mv-card:not(.is-won) { opacity: .62; }
.mv-server:not(.is-open) .mv-card:not(.is-won):hover { opacity: 1; }
.mv-server:not(.is-open) .mv-body { padding: 10px 12px 12px; gap: 8px; }
.mv-server:not(.is-open) .mv-row strong, .mv-server:not(.is-open) .mv-big { font-size: 18px; }
.mv-server:not(.is-open) .mv-num { width: 34px; height: 34px; font-size: 18px; }

.mv-toast { position: fixed; left: 50%; bottom: 22px; z-index: 210; translate: -50% 0; max-width: calc(100vw - 32px); margin: 0; box-shadow: 0 18px 40px -10px rgba(0,0,0,.7);
  animation: mv-toast-in .25s ease-out; transition: opacity .5s, translate .5s; }
.mv-toast.out { opacity: 0; translate: -50% 12px; }
@keyframes mv-toast-in { from { opacity: 0; translate: -50% 12px; } }

/* Server tabs: one ballot at a time. */
.mv-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 24px; }
.mv-tab { display: flex; align-items: center; gap: 11px; padding: 8px 12px 8px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(12,17,23,.7);
  color: var(--text); min-width: 0; transition: border-color .15s, background .15s; }
.mv-tab:hover { text-decoration: none; border-color: var(--muted); }
.mv-tab.is-on { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 12%, rgba(12,17,23,.85)); box-shadow: 0 0 0 1px var(--sun) inset; }
.mv-tab-pic { position: relative; width: 44px; height: 44px; flex: none; border-radius: 8px; background: #0e2a35; overflow: visible; }
.mv-tab-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
/* An open vote's tab: a crisp Vote now badge in the brand colour (text, not a picture). */
.mv-votenow { position: relative; display: grid; place-items: center; align-content: center; gap: 0; width: 100%; height: 100%; border-radius: 8px; overflow: hidden;
  background: linear-gradient(145deg, var(--amber), var(--sun)); color: var(--on-accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.mv-votenow svg { width: 13px; height: 13px; margin-bottom: 1px; }
.mv-votenow b { font: 800 13px/.9 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.mv-votenow i { font: 700 8.5px/1 var(--font-ui); font-style: normal; text-transform: uppercase; letter-spacing: .22em; margin-left: .22em; opacity: .85; }
.mv-votenow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-100%); animation: mv-shine 3.2s ease-in-out infinite; }
@keyframes mv-shine { 55%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .mv-votenow::after { animation: none; display: none; } }
.mv-tab-tick { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); color: var(--on-accent); border: 2px solid var(--bg); }
.mv-tab-tick .icon { width: 11px; height: 11px; }
.mv-tab-t { display: grid; gap: 3px; min-width: 0; }
.mv-tab-t b { font: 700 15px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-tab-t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); vertical-align: 1px; }
html.mv-tabbed .mv-past { display: none; }
html.mv-tabbed .mv-server { margin-top: 8px; padding-top: 0; border-top: 0; }
html.mv-tabbed .mv-server[hidden] { display: none; }

/* The race box: standings and momentum on the left, the race chart on the right. */
.mv-racebox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px 26px; align-items: stretch; margin: 0 0 18px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mv-racebox.is-final { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.mv-race-l { display: grid; gap: 18px; align-content: start; min-width: 0; }
.mv-race { display: grid; gap: 10px; }
.mv-race-k, .mv-chart figcaption { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.mv-stack { display: flex; gap: 3px; height: 34px; }
.mv-stack i { display: flex; align-items: center; justify-content: center; min-width: 28px; width: var(--w); border-radius: 6px; font-style: normal;
  background: color-mix(in srgb, var(--mc) 28%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--mc) 45%, transparent);
  color: var(--text); font: 700 14px/1 var(--font-display); transition: width .6s cubic-bezier(.2, .7, .2, 1), background .3s; }
.mv-stack i.is-top { background: var(--mc); border-color: transparent; color: #0a0e13; box-shadow: 0 6px 18px -6px var(--mc); }
.mv-race-t { margin: 0; color: var(--muted); font-size: 16px; }
.mv-race-t b { color: var(--text); }
.mv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.mv-legend li { display: inline-flex; align-items: center; gap: 6px; }
.mv-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--mc); }
.mv-legend b { color: var(--text); }
.mv-legend em, .mv-sub em { font-style: normal; color: var(--good); font-weight: 600; font-size: 12px; }
.mv-chart { display: grid; gap: 8px; margin: 0; min-width: 0; }
.mv-chart svg { width: 100%; height: 170px; overflow: visible; }
.mv-chart line.grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mv-chart polyline { fill: none; stroke: var(--mc); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; }
.mv-chart polyline.is-top { stroke-width: 4; opacity: 1; filter: drop-shadow(0 0 6px var(--mc)); }
.mv-chart-x { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }
.mv-window { display: block; width: 160px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.mv-window i { display: block; width: var(--p); height: 100%; background: var(--accent); }
.mv-card:not(.is-lead) .mv-flag.is-lead { display: none; }

/* Final standings: a column per map. */
.mv-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; align-items: end; height: 190px; padding-top: 4px; }
.mv-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; min-width: 0; }
.mv-col i { align-self: end; width: 100%; max-width: 64px; height: max(var(--h), 4px); border-radius: 8px 8px 3px 3px;
  background: color-mix(in srgb, var(--mc) 35%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--mc) 50%, transparent); transition: height .6s cubic-bezier(.2, .7, .2, 1); }
.mv-col.is-win i { background: linear-gradient(180deg, var(--mc), color-mix(in srgb, var(--mc) 70%, #000)); border-color: transparent; box-shadow: 0 10px 26px -8px var(--mc); }
.mv-col-v { align-self: end; display: grid; justify-items: center; gap: 4px; white-space: nowrap; }
.mv-col-v b { color: var(--text); font: 700 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.mv-col-v small { color: var(--muted); font: 600 13px/1 var(--font-ui); }
.mv-col.is-win .mv-col-v b { color: var(--mc); }
.mv-col-n { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mv-col.is-win .mv-col-n { color: var(--text); }
.mv-live { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; color: var(--good); }
.mv-live .icon { width: 14px; height: 14px; }
.mv-quiet b { color: var(--text); }

/* A closed ballot: the winning map up front, with its share. */
.mv-winner { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mv-winner-img { display: block; padding: 0; border: 2px solid var(--good); border-radius: 12px; overflow: hidden; background: #0e2a35; aspect-ratio: 1; cursor: zoom-in;
  box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--good) 70%, transparent); }
.mv-winner-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mv-winner-img:hover img { transform: scale(1.05); }
.mv-winner-t { display: grid; gap: 8px; min-width: 0; }
.mv-winner-k { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; }
.mv-winner-k .icon { width: 14px; height: 14px; }
.mv-winner-t > b { font: 700 clamp(32px, 4.5vw, 44px)/1 var(--font-display); text-transform: uppercase; }
.mv-winner-share { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 14px; }
.mv-winner-t p { margin: 0; color: var(--muted); font-size: 14px; }
.mv-winner .mv-bar i { background: var(--good); }
.mv-bar.is-big { height: 10px; border-radius: 5px; }
.mv-server:not(.is-open) .mv-grid .mv-card.is-won, .mv-server:not(.is-open) .mv-clock small { display: none; }
.mv-swipe { display: none; }

/* Cards: the map, its share, three key facts, the vote. Colour = the map's own. */
.mv-card { border-top: 3px solid var(--mc); }
.mv-num { background: var(--mc); color: #0a0e13; border-color: transparent; }
.mv-bar i { background: var(--mc); }
.mv-card.is-won .mv-bar i { background: var(--good); }
.mv-big { font: 700 30px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.mv-card.is-lead .mv-big { color: var(--mc); }
.mv-sub { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; margin-top: -2px; }
.mv-zoom { width: auto; height: auto; padding: 7px 11px; gap: 6px; display: inline-flex; border-radius: 99px; font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }

.mv-burst { position: absolute; z-index: 150; pointer-events: none; }
.mv-card.is-pop { animation: mv-pop .55s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes mv-pop { 30% { transform: scale(1.04); } }

/* Where you stand on this ballot, and what every map shares. */
.mv-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 10px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--sun) 45%, var(--line)); background: linear-gradient(100deg, color-mix(in srgb, var(--sun) 16%, var(--surface)) 0%, var(--surface) 70%); }
.mv-status.is-voted { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); background: linear-gradient(100deg, color-mix(in srgb, var(--good) 13%, var(--surface)) 0%, var(--surface) 70%); }
.mv-status-t { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 0; font-size: 16px; color: var(--muted); }
.mv-status-t > .icon { width: 22px; height: 22px; flex: none; color: var(--accent); }
.mv-status.is-voted .mv-status-t > .icon { color: var(--good); }
.mv-status-t b { color: var(--text); font-size: 17px; }
.mv-status-n { color: var(--muted); font-size: 14px; white-space: nowrap; }
.mv-status-n b { color: var(--text); font: 700 20px/1 var(--font-display); }
.mv-shared { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); }
.mv-shared-k { display: inline-flex; align-items: center; gap: 7px; padding-top: 5px; color: var(--good); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.mv-shared-k .icon { width: 16px; height: 16px; }
.mv-shared-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.mv-shared-c { padding: 5px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 600 13px/1.1 var(--font-ui); }
.mv-shared-c.is-feature { border-color: color-mix(in srgb, var(--sun) 50%, var(--line-2)); background: color-mix(in srgb, var(--sun) 10%, var(--surface-2)); }
.mv-shared-c.is-core { background: color-mix(in srgb, var(--good) 14%, transparent); border-color: color-mix(in srgb, var(--good) 40%, transparent); color: var(--good); }
@media (max-width: 640px) { .mv-shared-k { flex-basis: 100%; padding-top: 0; } .mv-status-t { flex-basis: 100%; } }
/* Not eligible yet: what's done and what's left. */
.mv-status.is-locked { border-color: var(--line-2); background: var(--surface); }
.mv-status.is-locked .mv-status-t > .icon { color: var(--muted); }
.mv-reqs { display: grid; gap: 8px; flex-basis: 100%; margin: 2px 0 0; padding: 0; list-style: none; }
.mv-reqs li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); font-size: 15px; }
.mv-reqs li > .icon { width: 17px; height: 17px; flex: none; color: var(--bad); }
.mv-reqs li.is-done { color: var(--muted); }
.mv-reqs li.is-done > .icon { color: var(--good); }
.mv-reqs li small { flex-basis: 100%; color: var(--faint); font-size: 12px; padding-left: 27px; }
.mv-reqs .btn { margin-left: auto; }
.mv-req-h { margin-left: auto; color: var(--muted); font-size: 14px; }
.mv-req-h b { color: var(--text); font: 700 18px/1 var(--font-display); }
.mv-req-bar { flex-basis: 100%; height: 6px; margin-left: 27px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mv-req-bar i { display: block; height: 100%; width: var(--p); background: var(--accent); }
.mv-reqs li.is-done .mv-req-bar i { background: var(--good); }

/* Open ballots: every card's vote button on the same line. */
.mv-server.is-open .mv-grid { align-items: stretch; }
.mv-server.is-open .mv-body { flex: 1; display: flex; flex-direction: column; }
.mv-server.is-open .mv-actions { margin-top: auto; padding-top: 4px; }

/* Compare the maps: every map side by side. */
.mv-compare { margin-top: 26px; }
.mv-compare-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.mv-compare-h h3 { margin: 0; font-size: 22px; }
.mv-compare-h .faint { font-size: 13px; }
.mv-compare-w { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.mv-compare table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mv-compare th, .mv-compare td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.mv-compare th:first-child { width: 160px; }
.mv-compare tbody th[scope="row"] { text-align: left; color: var(--muted); font: 500 14px/1.2 var(--font-body, inherit); position: sticky; left: 0; background: var(--surface); }
.mv-compare thead th { position: sticky; top: 0; background: var(--bg-2); }
.mv-compare thead th small { display: block; margin-top: 4px; color: var(--accent); font: 600 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.mv-cdot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mc); color: #0a0e13; font: 700 17px/1 var(--font-display); }
.mv-compare td { color: var(--text); font-weight: 600; }
.mv-compare td.is-best { color: var(--accent); background: color-mix(in srgb, var(--sun) 12%, transparent); }
.mv-csec th { text-align: left !important; padding-top: 14px !important; background: var(--bg-2) !important; color: var(--faint) !important;
  font: 600 11px/1 var(--font-ui) !important; text-transform: uppercase; letter-spacing: .14em; }
.mv-compare tbody:last-child tr:last-child > * { border-bottom: 0; }

/* Full-size map viewer: nothing but the map, a caption under it, arrows either side. */
html.mv-locked { overflow: hidden; }
.mv-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; justify-items: center; gap: 8px;
  padding: 20px 12px; background: radial-gradient(ellipse at center, rgba(14,20,27,.97) 0%, rgba(3,5,8,.99) 70%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: mv-lb-in .2s ease-out; }
.mv-lightbox[hidden] { display: none; }
@keyframes mv-lb-in { from { opacity: 0; } }
.mv-lb-fig { grid-column: 2; margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.mv-lb-fig img { display: block; width: min(calc(100vh - 150px), 100%); aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #0e2a35;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); transition: opacity .2s; }
.mv-lb-fig img.is-loading { opacity: .35; }
.mv-lb-cap { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px 16px; width: min(calc(100vh - 150px), 100%); }
.mv-lb-num { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--sun); color: var(--on-accent); font: 700 24px/1 var(--font-display); }
.mv-lb-who { display: grid; gap: 3px; margin-right: auto; min-width: 0; }
.mv-lb-who b { font: 700 20px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.mv-lb-who small { color: var(--muted); font-size: 13px; }
.mv-lb-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.mv-lb-seg button { padding: 8px 14px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.mv-lb-seg button[aria-pressed="true"] { background: var(--text); color: #0a0e13; }
.mv-lb-vote { min-height: 44px; }
.mv-lb-vote[hidden] { display: none; }
.mv-lb-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(20,27,36,.9); color: var(--text); cursor: pointer; z-index: 1; }
.mv-lb-x .icon { width: 18px; height: 18px; }
.mv-lb-nav { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,27,36,.9);
  color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.mv-lb-nav:hover, .mv-lb-x:hover { background: var(--surface-2); border-color: var(--muted); }
.mv-lb-nav .icon { width: 22px; height: 22px; }
.mv-lb-nav[hidden] { visibility: hidden; }
.mv-lb-nav.is-prev { grid-column: 1; } .mv-lb-nav.is-next { grid-column: 3; }
@media (max-width: 640px) {
  .mv-lightbox { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; padding: 64px 12px 16px; }
  .mv-lb-fig { grid-column: 1; grid-row: 1; }
  .mv-lb-fig img { width: 100%; }
  .mv-lb-cap { width: 100%; }
  .mv-lb-who { margin-right: 0; flex: 1; }
  .mv-lb-seg, .mv-lb-vote { flex: 1 1 100%; justify-content: center; }
  .mv-lb-seg button { flex: 1; }
  .mv-lb-nav { position: absolute; top: 16px; width: 44px; height: 44px; }
  .mv-lb-nav.is-prev { left: 16px; } .mv-lb-nav.is-next { left: 70px; }
}
@media (max-width: 640px) {
  /* Phones: tabs scroll sideways, and an open ballot's maps are a swipeable row. */
  .mv-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .mv-tabs::-webkit-scrollbar { display: none; }
  .mv-tab { flex: 0 0 auto; max-width: 240px; scroll-snap-align: start; }
  .mv-server.is-open .mv-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
  .mv-server.is-open .mv-grid::-webkit-scrollbar { display: none; }
  .mv-server.is-open .mv-card { scroll-snap-align: start; }
  .mv-swipe { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; color: var(--faint); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
  .mv-swipe .icon { width: 12px; height: 12px; }
  .mv-racebox, .mv-racebox.is-final { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .mv-winner { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .mv-big { font-size: 26px; }
  .mv-sum { gap: 10px 22px; }
  .mv-sum-i b { font-size: 26px; }
  .mv-clock { justify-items: start; text-align: left; }
  .mv-clock b { font-size: 24px; }
  .mv-zoom { opacity: 1; }
}

/* ---------- staff-written pages (old theme markup) ---------- */
.legacy { color: var(--muted); }
.legacy .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; overflow: hidden; }
.legacy .panel-header { font: 700 17px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--text); padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.legacy .panel-body { padding: 16px 18px; }
.legacy h1, .legacy h2, .legacy h3, .legacy h4 { color: var(--text); }
.legacy ul, .legacy ol { padding-left: 1.3em; }
.legacy li { margin: 4px 0; }
.legacy img { height: auto; border-radius: var(--radius-sm); }
.legacy table { width: 100%; }
.legacy span[style*="color:#ffffff"], .legacy span[style*="color: #ffffff"] { color: var(--muted) !important; }
.faq summary { font: 600 17px/1.35 var(--font); text-transform: none; letter-spacing: 0; }
.faq-a { padding: 12px 16px 14px; }
a.card.team-card, div.card.team-card { display: flex; gap: 12px; align-items: center; min-width: 0; }
.team-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card > div { min-width: 0; }
.team-card img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--role); }
.team-card h3 { font-size: 17px; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.team-role { color: var(--role); font: 600 13px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
/* Panel roster: one colour per role, highest first. */
.team-owner { --role: #f2c14e; } .team-staff-manager { --role: #ff7a45; } .team-senior-admin { --role: #e5484d; }
.team-admin { --role: #c86bfa; } .team-junior-admin { --role: #4ea8ff; } .team-mod { --role: #4fd18b; }
.team-grid { margin-top: 0; }
.team-head h2 { color: var(--text); }
div.team-card { cursor: default; }
.team-anon[hidden], .team-card img[hidden] { display: none; }
.team-anon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--role); background: var(--surface-2); color: var(--role); font: 700 22px/1 var(--font-display); }

/* ---------- bounties ---------- */
.bounty-card { display: grid; gap: 10px; }
.bounty-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bounty-who img, .bounty-anon { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.bounty-anon { display: grid; place-items: center; background: var(--surface-2); color: var(--faint); }
.bounty-name { font: 600 18px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bounty-pot { font: 700 30px/1 var(--font-display); color: var(--accent); }
.bounty-pot span { font-size: 32px; }
code { font: 14px ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 3px; }

/* ---------- wallpapers ---------- */
.wp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); margin-top: 12px; }
.wp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.wp-img { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--bg-2); cursor: copy; overflow: hidden; color: inherit; }
.wp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .2s; }
/* The command, on hover (always on touch): click copies it. */
.wp-cmd { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border-radius: 8px;
  background: rgba(8,12,17,.86); border: 1px solid rgba(255,255,255,.14); color: var(--text); backdrop-filter: blur(4px); opacity: 0; translate: 0 6px; transition: opacity .18s, translate .18s; }
.wp-cmd .icon { width: 14px; height: 14px; color: var(--accent); flex: none; }
.wp-cmd code { font: 600 13px/1 var(--font-mono, ui-monospace, monospace); background: none; padding: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-img:hover .wp-cmd, .wp-img:focus-visible .wp-cmd { opacity: 1; translate: none; }
.wp-img:hover img { transform: scale(1.05); }
@media (hover: none) { .wp-cmd { opacity: 1; translate: none; } }
.wp-img.is-copied .wp-cmd { opacity: 1; translate: none; background: var(--good); border-color: transparent; }
.wp-img.is-copied .wp-cmd code, .wp-img.is-copied .wp-cmd .icon { color: #04130c; }
.wp-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.wp-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); }
.wp-meta a:hover { color: var(--text); text-decoration: none; }
.wp-meta .icon { width: 11px; height: 11px; }
.wp-how { margin-top: 18px; }
.wp-pager { flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 22px; }
.wp-pager .pg { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  color: var(--text); font: 600 14px/1 var(--font-ui); font-variant-numeric: tabular-nums; background: var(--surface); }
.wp-pager a.pg:hover { border-color: var(--muted); text-decoration: none; }
.wp-pager .pg.is-on { background: var(--sun); border-color: transparent; color: var(--on-accent); }
.wp-pager .pg-gap { color: var(--faint); padding: 0 2px; }
.wp-pager .btn .icon { width: 14px; height: 14px; }
.pg-jump { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; }
.pg-jump label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.pg-jump select { height: 38px; padding: 0 28px 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 14px/1 var(--font-ui); }
@media (max-width: 640px) {
  .pg-jump { flex-basis: 100%; justify-content: center; margin: 6px 0 0; }
  .wp-pager { gap: 4px; }
  .wp-pager .pg { min-width: 34px; height: 34px; padding: 0 6px; }
  .wp-pager .pg.is-far { display: none; }               /* one row on a phone; the jump box has the rest */
}
.wp-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 1px rgba(255,255,255,.25); vertical-align: 0; }
.wp-badge { font-size: 11px; padding: 3px 8px; }
.wp-tiers .mv-pw small { color: var(--muted); font-size: 11px; line-height: 1.2; text-align: center; }
.wp-tiers .mv-pw b { font-size: 22px; }
.wp-fav { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.wp-fav > .icon { width: 17px; height: 17px; flex: none; margin-top: .25em; color: var(--accent); }
.wp-outside { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.wp-outside > .icon { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: .3em; }
.wp-outside .mv-role { margin-right: 4px; }
.wp-outside b { color: var(--text); }
.wp-how code { font-size: 13px; color: var(--text); }
/* "Copied /wp wall 12" toast. */
.wp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 210; translate: -50% 0; display: grid; gap: 4px; min-width: min(420px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  padding: 14px 18px; border-radius: var(--radius); background: rgba(8,12,17,.97); border: 1px solid color-mix(in srgb, var(--good) 50%, var(--line-2)); box-shadow: 0 18px 50px -12px rgba(0,0,0,.8);
  animation: mv-toast-in .2s ease-out; transition: opacity .5s, translate .5s; }
.wp-toast.out { opacity: 0; translate: -50% 12px; }
.wp-toast b { color: var(--good); font: 700 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; }
.wp-toast code { font: 700 22px/1.2 var(--font-mono, ui-monospace, monospace); color: var(--text); background: none; padding: 0; }
.wp-toast small { color: var(--muted); font-size: 13px; }
.wp-info { padding: 9px 10px 10px; display: grid; gap: 6px; }
.wp-name { font: 600 14px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-row { display: flex; justify-content: space-between; align-items: center; }
.wp-row form { margin: 0; }
.wp-star { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--faint); cursor: pointer; padding: 2px 4px; }
.wp-star.on, .wp-star:hover { color: var(--gold); }

/* ---------- staff area ---------- */
.staff-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.staff-locked { opacity: .55; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
.inline-form input { padding: .4em .6em; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 15px var(--font); min-width: 0; }
.popover-inline { padding: 12px 14px; }
.popover-inline summary { list-style: none; }
.popover-inline summary::-webkit-details-marker { display: none; }
.form-row.three { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.edit-row { padding: 14px; }
.team-edit { padding: 10px 14px; flex-wrap: wrap; }
.team-edit input[type="color"] { width: 44px; height: 32px; padding: 2px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor textarea { font: 13px/1.5 ui-monospace, Menlo, monospace !important; }
.editor-preview { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 14px; max-height: 640px; overflow: auto; margin-top: 6px; }
.label-like { font: 600 14px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.slug-input { display: flex; align-items: center; margin-top: 6px; }
.slug-input span { color: var(--faint); padding-right: 4px; font-family: ui-monospace, monospace; }
.slug-input input { margin-top: 0 !important; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } }

/* ---------- store + account ---------- */
.store-me { display: flex; gap: 12px 26px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.store-me strong { font: 700 22px/1 var(--font-display); color: var(--text); }
.product { display: flex; flex-direction: column; gap: 8px; }
.product h3 { margin: 0; }
.product-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-2); }
.product-price { font: 700 28px/1 var(--font-display); color: var(--accent); }
.product-price .faint { font: 500 14px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.product-sum { font-size: 15px; margin: 0; flex: 1; }
.product .btn { align-self: flex-start; }

/* ---------- news ---------- */
.news-row h2 { font-size: 24px; margin: 10px 0 6px; }
.event-when { display: flex; gap: 8px; align-items: center; margin: 6px 0 18px; flex-wrap: wrap; }
.prose { color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose strong { color: var(--text); }
.prose img { border-radius: var(--radius-sm); max-width: 100%; }
.prose code { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--sun); margin: 1em 0; padding: 2px 0 2px 14px; color: var(--muted); }

/* ---------- server page ---------- */
.srv-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.srv-intro { min-width: 0; }
.srv-badges { gap: 6px; margin: 2px 0 14px; }
.srv-head .lead { margin-top: 0; }
.srv-join { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.srv-join .connect { flex: 1 1 300px; max-width: 460px; background: rgba(16,22,30,.85); }
html[data-brand="czr"] .srv-join .connect { background: rgba(11,22,33,.85); }
.srv-map { position: relative; display: block; width: 240px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-2); transition: border-color .15s; }
.srv-map:hover { border-color: var(--muted); text-decoration: none; }
.srv-map img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.srv-map span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; background: linear-gradient(180deg, transparent, rgba(5,8,11,.88)); color: var(--text); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 760px) {
  .srv-head-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .srv-map { width: 132px; justify-self: start; order: -1; }
  .srv-map span { font-size: 10px; padding: 14px 8px 6px; }
  .srv-join .btn-lg { width: 100%; }
  .srv-join .connect { flex: 1 1 100%; min-width: 0; max-width: none; }
}
.srv-strip { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.srv-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.srv-stat { display: grid; gap: 2px; padding: 20px 18px; border-left: 1px solid var(--line); min-width: 0; }
.srv-stat:first-child { border-left: 0; padding-left: 0; }
.srv-stat .k { font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.srv-stat .v { font: 700 36px/1.05 var(--font-display); color: var(--text); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-stat .v small { font-size: .5em; color: var(--faint); margin-left: 2px; font-weight: 600; }
.srv-stat-live .v { color: var(--accent); }
.srv-stat .sub { font: 500 13px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 760px) {
  .srv-strip .wrap { grid-template-columns: 1fr 1fr; }
  .srv-stat { padding: 14px 12px; border-left: 0; border-top: 1px solid var(--line); }
  .srv-stat:nth-child(odd) { padding-left: 0; }
  .srv-stat:nth-child(even) { border-left: 1px solid var(--line); }
  .srv-stat:nth-child(-n+2) { border-top: 0; }
  .srv-stat .v { font-size: 30px; }
}
.srv-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 900px) { .srv-grid { grid-template-columns: 1fr; } }
.bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 170px; padding-top: 22px; border-bottom: 1px solid var(--line-2); }
.bar { position: relative; height: var(--h); min-height: 2px; background: var(--line-2); border-radius: 2px 2px 0 0; transition: background .15s; }
.bar:hover { background: var(--muted); }
.bar.is-now { background: var(--accent); }
.bar.is-peak { background: var(--sun); }
.bar i { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 600 11px/1 var(--font-ui); font-style: normal; color: var(--muted); opacity: 0; transition: opacity .1s; white-space: nowrap; }
.bar:hover i, .bar.is-peak i, .bar.is-now i { opacity: 1; }
.bar.is-peak i, .bar.is-now i { color: var(--text); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 600 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks b { color: var(--text); font-weight: 600; }
.spot-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.spot { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.spot-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spot-head .icon { width: 20px; height: 20px; color: var(--accent); }
.spot-head h3 { margin: 0; font-size: 16px; }
.spot-list { list-style: none; margin: 0; padding: 6px 0; flex: 1; }
.spot-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 16px; }
.spot-rank { font: 600 14px/1 var(--font-ui); color: var(--faint); text-align: center; }
.spot-list li:nth-child(1) .spot-rank { color: var(--gold); }
.spot-list li:nth-child(2) .spot-rank { color: var(--silver); }
.spot-list li:nth-child(3) .spot-rank { color: var(--bronze); }
.spot-who { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); font-weight: 500; }
.spot-who img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.spot-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-val { font: 600 15px/1 var(--font-ui); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.is-first .spot-val { color: var(--accent); }
.spot-more { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.spot > .muted { padding: 16px; }
.wipe-list { list-style: none; margin: 0; padding: 0; }
.wipe-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); font: 600 15px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.wipe-list li:first-child a { border-top: 0; color: var(--accent); }
.wipe-list a:hover { text-decoration: none; }
.wipe-list a:hover > span:first-child { text-decoration: underline; }
.wipe-list .icon { color: var(--faint); }
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; margin-top: 12px; }
.link-tiles a { display: flex; align-items: center; gap: 9px; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font: 600 14px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.link-tiles a:hover { border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.link-tiles .icon { color: var(--accent); }
.link-tiles .icon:last-child:not(:first-child) { color: var(--faint); width: .85em; margin-left: auto; }
.srv-cta { margin-top: 8px; }
.srv-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 1 1 420px; justify-content: flex-end; }
.srv-cta .connect { flex: 1 1 280px; max-width: 440px; }
.other-servers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
a.card.other { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.other img { width: 46px; height: 46px; border-radius: var(--radius-sm); flex: none; object-fit: cover; border: 1px solid var(--line-2); }
.other strong { display: block; font: 700 17px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.other .faint { font: 500 13px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }

/* Phones: the text spans the full width, so the poster sits under an even veil. */
@media (max-width: 760px) {
  .home-hero, .page-head { background: linear-gradient(180deg, rgba(12,17,23,.86), rgba(12,17,23,.94)), var(--band) 70% 40% / cover no-repeat, var(--bg-2); }
  html[data-brand="czr"] .home-hero, html[data-brand="czr"] .page-head { background: linear-gradient(180deg, rgba(8,17,26,.8), rgba(8,17,26,.94)), var(--band) 60% 55% / cover no-repeat, var(--bg-2); }
}

/* ---------- clans: how it works ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.how li { position: relative; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.how-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sun); color: var(--accent); font: 700 15px/1 var(--font-ui); margin-bottom: 12px; }
.how h3 { margin: 0 0 6px; }
.how p { margin: 0; color: var(--muted); }

/* Narrow reading pages (FAQ, rules, contact, a post) line up with every other page's
   left edge; only the text column is narrow. */
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 780px; }

/* ---------- profile ---------- */
.prof-sum { margin: 0 0 8px; color: var(--muted); font: 500 15px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.prof-sum b { color: var(--text); font-weight: 600; }
.group-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); font: 600 16px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.group-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 4px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--accent); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.group-more summary::-webkit-details-marker { display: none; }
.group-more summary .icon { transform: rotate(90deg); transition: transform .15s; width: .9em; }
.group-more[open] summary .icon { transform: rotate(-90deg); }
.group-more[open] summary { border-bottom: 1px solid var(--line); }
.group-more .gm-close, .group-more[open] .gm-open { display: none; }
.group-more[open] .gm-close { display: inline; }
.site-footer a.btn-primary, .site-footer a.btn-primary:hover { color: var(--on-accent); }

/* ---------- site-wide fx: drifting embers + a spark trail off the cursor (site.js) ---------- */
.fx-embers { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 45; pointer-events: none; mix-blend-mode: screen; }
main, .site-footer, .beta-bar { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .fx-embers { display: none; } }

/* ---------- reactive layer (site.js adds html.fx unless reduced motion) ---------- */
/* Scroll-in: opacity + the standalone `translate` property, so hover transforms still work. */
/* --pop: a spring that overshoots a touch before it settles. */
html.fx { --pop: cubic-bezier(.34, 2.1, .52, 1); --glide: cubic-bezier(.2, 1.25, .4, 1); --bounce-t: .85s; }
/* Where supported, a real damped spring: overshoot, dip, settle (zeta .35, w 16). */
@supports (transition-timing-function: linear(0, 1)) {
  html.fx { --pop: linear(0, 0.06, 0.215, 0.426, 0.656, 0.874, 1.057, 1.193, 1.276, 1.308, 1.298, 1.255, 1.193, 1.122, 1.053, 0.994, 0.948, 0.919, 0.906, 0.906, 0.918, 0.936, 0.957, 0.979, 0.998, 1.013, 1.023, 1.029, 1.029, 1.027, 1.021, 1.015, 1.008, 1.002, 0.997, 0.993, 0.991, 0.991, 0.992, 0.993, 0.995, 0.997, 0.999, 1.001, 1); --glide: var(--pop); --bounce-t: 1.05s; }
}
html.fx .reveal { opacity: 0; translate: 0 64px; scale: .85; filter: blur(6px);
  transition: opacity .4s ease, translate var(--bounce-t) var(--glide), scale var(--bounce-t) var(--pop), filter .45s ease;
  transition-delay: var(--d, 0ms); }
html.fx .reveal.in { opacity: 1; translate: none; scale: none; filter: none; }
/* Leaving: no stagger (it would lag behind the scroll), and blocks that left through the
   top wait above, so scrolling back up brings them down into place instead of up. */
html.fx .reveal.above { translate: 0 -64px; }
html.fx tr.reveal, html.fx li.reveal, html.fx .title-chip.reveal, html.fx .page-head .reveal, html.fx .home-hero .reveal { translate: 0 22px; scale: .97; }
/* Leaving through the top ALWAYS moves up, never back toward the screen, or the moved box
   re-enters, re-triggers and flickers at the edge forever. */
html.fx tr.reveal.above, html.fx li.reveal.above, html.fx .title-chip.reveal.above,
html.fx .page-head .reveal.above, html.fx .home-hero .reveal.above { translate: 0 -22px; }
html.fx .reveal.in { opacity: 1; translate: none; scale: none; filter: none; }
html.fx .reveal:not(.in), html.fx .reveal.sheen:not(.in) { transition-delay: 0s; }
/* Bars fill once their card is in view. */
html.fx .reveal .pop-bar span { transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .15s; }
html.fx .reveal.in .pop-bar span { transform: none; }
html.fx .reveal .bars .bar { transform-origin: bottom; transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1), background .15s; transition-delay: calc(var(--i, 0) * 22ms + 150ms); }
html.fx .reveal.in .bars .bar { transform: none; }
/* Hover: a soft light that follows the cursor across a card, plus a slight tilt (site.js). */
html.fx .sheen { transition: transform .2s ease-out, border-color .2s, background-color .2s, box-shadow .2s; }
/* A card is usually BOTH: one transition list, or the later rule silently drops the
   scroll-in properties and the card pops in with no motion. Scroll-in keeps its stagger;
   hover responds at once. */
html.fx .reveal.sheen {
  transition: opacity .4s ease, translate var(--bounce-t) var(--glide), scale var(--bounce-t) var(--pop), filter .45s ease,
              transform .2s ease-out, border-color .2s, background-color .2s, box-shadow .2s;
  transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s, 0s;
}
html.fx .sheen.is-hot {
  background-image: radial-gradient(320px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 255, 255, .1), transparent 60%);
  border-color: color-mix(in srgb, var(--sun) 55%, var(--line-2));
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px color-mix(in srgb, var(--sun) 25%, transparent), 0 0 32px -8px var(--tint-2);
}
/* Buttons: a light sweep on the primary ones. */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-130%); }
html.fx .btn-primary:hover::after { transform: translateX(130%); transition: transform .65s ease; }
/* Nav: an underline that grows from the middle on hover. */
.nav > a::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 2px; background: var(--line-2); transform: scaleX(0); transition: transform .2s ease; }
.nav > a:hover::before { transform: scaleX(1); }
/* Leaderboard rows: an accent edge under the pointer. */
.lb-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--sun); }
/* Header: a reading-progress line, and a slimmer bar once scrolled. */
.site-header::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; z-index: 1; background: var(--sun); transform-origin: left; transform: scaleX(var(--progress, 0)); }
html.fx .site-header .wrap { transition: height .25s ease; }
html.fx.scrolled .site-header .wrap { height: 54px; }
html.fx.scrolled .site-header { background: rgba(12, 17, 23, .97); }
html.fx.scrolled[data-brand="czr"] .site-header { background: rgba(8, 17, 26, .97); }
/* Home banner text drifts up and fades as you scroll past it. */
html.fx .home-hero > .wrap { transform: translateY(calc(var(--sy, 0) * -.18px)); opacity: calc(1 - var(--sy, 0) / 700); }
@media (max-width: 1080px) { html.fx.scrolled .site-header .wrap { height: 52px; } }

/* ---------- intro (home, once per visit; site.js builds it) ---------- */
:root { --spring: cubic-bezier(.34, 1.8, .5, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.067, 0.236, 0.459, 0.69, 0.895, 1.055, 1.164, 1.224, 1.24, 1.222, 1.18, 1.124, 1.066, 1.012, 0.968, 0.937, 0.92, 0.917, 0.924, 0.94, 0.959, 0.979, 0.996, 1.009, 1.017, 1.021, 1.021, 1.018, 1.013, 1.007, 1.002, 0.998, 0.995, 0.994, 0.994, 0.995, 0.997, 0.999, 1); }
}
html.intro-pending body > :not(.intro) { visibility: hidden; }
.intro .intro-logo:not(img) { width: 112px; height: 112px; }
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; background: #05080b;
  clip-path: inset(0 0 0 0); transition: clip-path .75s cubic-bezier(.75, 0, .2, 1); }
.intro.out { clip-path: inset(0 0 100% 0); }
/* Glow that builds as the embers converge, then the flash and shockwave of the flare (1.0s). */
.intro-glow, .intro-flash, .intro-ring { position: absolute; left: var(--ox, 50%); top: var(--oy, 42%); pointer-events: none; border-radius: 50%; translate: -50% -50%; }
.intro-glow { width: 520px; height: 520px; opacity: 0; scale: .3; animation: introGlow 1s ease-in .2s forwards;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 38%, transparent), transparent 65%); }
@keyframes introGlow { 70% { opacity: .8; scale: .7; } 100% { opacity: 1; scale: 1.15; } }
.intro-flash { width: 900px; height: 900px; opacity: 0; animation: introFlash .9s ease-out 1s forwards;
  background: radial-gradient(circle, rgba(255, 244, 220, .85), color-mix(in srgb, var(--sun) 30%, transparent) 30%, transparent 62%); }
@keyframes introFlash { 0% { opacity: 0; scale: .2; } 12% { opacity: 1; scale: .7; } 100% { opacity: 0; scale: 1.4; } }
.intro-ring { width: 120px; height: 120px; opacity: 0; border: 2px solid color-mix(in srgb, var(--amber) 80%, #fff); animation: introRing .9s cubic-bezier(.2, .7, .3, 1) 1s forwards; }
@keyframes introRing { 0% { opacity: .9; scale: .3; } 100% { opacity: 0; scale: 9; } }
.intro-burst { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.intro-core { position: relative; display: grid; justify-items: center; gap: 16px; padding: 0 16px; text-align: center; }
.intro-logo { width: 112px; height: 112px; object-fit: contain; opacity: 0; scale: .45; filter: drop-shadow(0 0 28px color-mix(in srgb, var(--sun) 45%, transparent));
  animation: introPop 1s var(--spring) 1s forwards; }
@keyframes introPop { to { opacity: 1; scale: 1; } }
.intro-title { display: flex; flex-wrap: wrap; justify-content: center; font: 700 clamp(42px, 8vw, 100px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.intro-title span { display: inline-block; opacity: 0; translate: 0 .55em; animation: introRise .8s var(--spring) forwards; animation-delay: calc(1.15s + var(--i) * 40ms); }
.intro-title .sp { width: .28em; }
@keyframes introRise { to { opacity: 1; translate: none; } }
.intro-tag { font: 600 clamp(13px, 1.6vw, 18px)/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .55em; color: var(--accent); opacity: 0; animation: introTag 1s ease 1.75s forwards; }
@keyframes introTag { to { opacity: 1; letter-spacing: .16em; } }
.intro-skip { position: absolute; right: 22px; bottom: 22px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer;
  font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; opacity: 0; animation: introTag .4s ease .6s forwards; }
.intro-skip:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 640px) { .intro-glow { width: 340px; height: 340px; } .intro-flash { width: 560px; height: 560px; } .intro-ring { width: 90px; height: 90px; } }

/* ---------- server tiles (home + /servers) ---------- */
.stiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.stile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stile-map { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-2); }
.stile-map::before { content: ""; position: absolute; inset: 0; background: var(--map, none) center / cover no-repeat; transition: scale .7s cubic-bezier(.2, .7, .2, 1); }
.stile-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,23,.35) 0%, rgba(12,17,23,0) 35%, rgba(12,17,23,.25) 60%, var(--surface) 100%); }
.stile:hover .stile-map::before { scale: 1.08; }
.stile-chips { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.stile-chips .badge { background-color: rgba(9, 13, 18, .82); backdrop-filter: blur(6px); }
.stile-count { position: absolute; right: 16px; bottom: 6px; z-index: 1; display: flex; align-items: baseline; gap: 3px; font: 700 44px/1 var(--font-display); color: var(--text); text-shadow: 0 2px 14px rgba(0,0,0,.65); font-variant-numeric: tabular-nums; }
.stile-count span { font-size: 17px; color: var(--muted); font-weight: 600; }
.stile-count em { font: 600 12px/1 var(--font-ui); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-left: 8px; align-self: center; }
.stile-body { display: grid; gap: 12px; padding: 12px 18px 16px; flex: 1; align-content: start; }
.stile h3 { margin: 0; font: 700 25px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .015em; }
.stile-link { color: var(--text); }
.stile-link:hover { text-decoration: none; color: var(--accent); }
.stile-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }          /* whole tile clicks through */
.stile-blurb { margin: 4px 0 0; color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 600 13px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stile-group { display: inline-flex; align-items: center; color: var(--text); }
.stile-group .icon { width: 15px; height: 15px; color: var(--accent); margin-right: -4px; }
.stile-group .icon:last-of-type { margin-right: 6px; }
.stile-mood { padding: 2px 7px; border-radius: 3px; border: 1px solid var(--line-2); }
.mood-packed { color: #ffa77e; border-color: rgba(244,96,42,.45); background: rgba(244,96,42,.12); }
.mood-busy { color: var(--good); border-color: rgba(79,209,139,.35); background: rgba(79,209,139,.08); }
.mood-active { color: var(--accent); border-color: var(--tint-2); background: var(--tint); }
.mood-quiet { color: var(--faint); }
.mood-offline { color: var(--bad); border-color: rgba(255,107,91,.35); }
.stile-pop { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 18px; align-items: start; }
.stile-meter .pop-bar { margin-top: 12px; }   /* centred on the 28px trend line beside it, so the labels share a row */
.stile-k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; font: 600 11px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.stile-k b { font: 600 13px/1 var(--font-ui); letter-spacing: .04em; color: var(--text); }
.stile-trend .spark { width: 100%; height: auto; }
.stile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.stile-wipe { display: grid; gap: 2px; min-width: 0; }
.stile-wipe span { font: 600 11px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.stile-wipe b { font: 700 21px/1.1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.stile-wipe small { font: 500 12px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stile-copy { position: relative; z-index: 2; flex: none; }
.stile.is-off { opacity: .65; }
.stile-count-label { font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 420px) { .stile-copy { padding: .6em .8em; } .stile-count { font-size: 38px; } }

/* ---------- page-to-page crossfade (cross-document View Transitions; ignored where unsupported) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }        /* stays put while the page underneath fades */
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .26s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- head to head ---------- */
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 6px; }
.vs-side { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; color: var(--text); min-width: 0; }
.vs-side:hover { text-decoration: none; }
.vs-side:hover strong { color: var(--accent); }
.vs-side img, .vs-anon { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--line-2); object-fit: cover; background: var(--surface-2); }
.vs-anon { display: grid; place-items: center; color: var(--faint); font: 700 28px var(--font-display); }
.vs-side strong { font: 700 clamp(22px, 3vw, 34px)/1.05 var(--font-display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-right { grid-template-columns: auto 1fr auto; direction: rtl; }
.vs-right > * { direction: ltr; }
.vs-score { font: 700 54px/1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.vs-score.is-lead { color: var(--accent); }
.vs-mark { font: 700 22px/1 var(--font-ui); letter-spacing: .14em; color: var(--faint); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 50%; }
.vs-empty strong { color: var(--faint); }
label.vs-empty { cursor: pointer; }
label.vs-empty:hover strong { color: var(--accent); }
/* Picker bar under the matchup: change opponent, swap, compare with me. */
/* One picker under each player, lined up with the matchup above (same 1fr | VS | 1fr). */
.vs-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.vs-pick-gap { width: 70px; }
.vs-find { display: grid; gap: 8px; min-width: 0; }
.vs-find-b .vs-find-k { text-align: right; }
.vs-find-k { font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.vs-search { position: relative; max-width: none; }
.vs-find.is-busy .vs-drop { opacity: .6; }
.vs-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; display: grid; gap: 2px; padding: 6px; max-height: 380px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .7); transition: opacity .15s; }
.vs-drop[hidden] { display: none; }
.vs-opt { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); min-width: 0; }
.vs-opt:hover, .vs-opt:focus-visible, .vs-opt:focus { background: var(--surface-2); text-decoration: none; outline: none; }
.vs-opt:first-child { box-shadow: inset 2px 0 0 var(--sun); }
.vs-opt img, .vs-opt-anon { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.vs-opt-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-opt small { margin-left: auto; padding-left: 10px; color: var(--faint); font: 500 12px/1 var(--font-mono, monospace); flex: none; }
.vs-none { padding: 12px; color: var(--muted); font-size: 14px; }
/* Compare card on /players: Player 1 | VS | Player 2. */
.vs-duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 18px; padding: 20px; }
.vs-duo .vs-mark { align-self: end; margin-bottom: 4px; }
.vs-slot { display: grid; gap: 8px; min-width: 0; }
.vs-chosen { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 3px 4px 3px 4px; border: 1px solid color-mix(in srgb, var(--sun) 40%, var(--line-2));
  border-radius: var(--radius-sm); background: color-mix(in srgb, var(--sun) 8%, var(--surface-2)); min-width: 0; }
.vs-chosen[hidden], [data-vs-box][hidden] { display: none; }
.vs-chosen img, .vs-chosen .vs-opt-anon { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.vs-chosen-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-chosen small { color: var(--accent); font: 600 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; flex: none; }
.vs-chosen-x { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.vs-chosen-x:hover { color: var(--text); background: var(--surface); }
.vs-chosen-x .icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .vs-duo { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .vs-duo .vs-mark { justify-self: center; margin: 0; padding: 6px 9px; font-size: 16px; }
}
/* Account: a subscription card opens PayNow's subscription page. */
a.sub-card { position: relative; display: block; margin-bottom: 10px; padding-right: 44px; color: var(--text); transition: border-color .15s, background-color .15s; }
a.sub-card:hover { text-decoration: none; border-color: var(--sun); background-color: var(--surface-2); }
.sub-go { position: absolute; right: 16px; bottom: 16px; color: var(--muted); }
.sub-go .icon { width: 16px; height: 16px; }
a.sub-card:hover .sub-go { color: var(--accent); }

/* Leaderboards: the hide-your-stats ad. */
.hide-ad { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 22px 0 0; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--sun) 40%, var(--line)); background: linear-gradient(100deg, color-mix(in srgb, var(--sun) 12%, var(--surface)) 0%, var(--surface) 70%);
  color: var(--text); transition: border-color .15s; }
.hide-ad:hover { text-decoration: none; border-color: var(--sun); }
.hide-ad-img { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); }
.hide-ad-t { display: grid; gap: 3px; flex: 1 1 260px; min-width: 0; }
.hide-ad-t b { font: 700 17px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.hide-ad-t small { color: var(--muted); font-size: 14px; }

/* Bounties: a live bounty opens to show its backers. */
.bounty-d > summary { list-style: none; cursor: pointer; display: grid; gap: 10px; }
.bounty-d > summary::-webkit-details-marker { display: none; }
.bounty-d:hover { border-color: var(--line-2); }
.bounty-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.bounty-more .icon { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .2s; }
.bounty-d[open] .bounty-more .icon { transform: rotate(-90deg); }
.bm-close, .bounty-d[open] .bm-open { display: none; }
.bounty-d[open] .bm-close { display: inline; }
.bounty-backers { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.bb-k { font: 600 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.bb-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bb-row img, .bb-anon { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.bb-anon .icon { width: 14px; height: 14px; }
.bb-name { display: grid; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.bb-name a, .bb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-name small { color: var(--faint); font-weight: 500; font-size: 12px; }
.bb-scrap { flex: none; font: 700 16px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.bb-target { justify-self: start; margin-top: 4px; }

/* Coin history (account): rows that always fit; purchases open to their items. */
.coin-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.coin-list > li + li { border-top: 1px solid var(--line); }
.coin-r { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 64px 18px; align-items: center; gap: 10px; padding: 11px 14px; }
.coin-d > summary { list-style: none; cursor: pointer; }
.coin-d > summary::-webkit-details-marker { display: none; }
.coin-d > summary:hover { background: var(--surface-2); }
.coin-when { color: var(--muted); font-size: 14px; white-space: nowrap; }
.coin-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-what small { margin-left: 8px; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font: 600 11px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.coin-amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.coin-amt.pos { color: var(--good); } .coin-amt.neg { color: var(--bad); }
.coin-bal { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.coin-x .icon { width: 14px; height: 14px; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
.coin-d[open] .coin-x .icon { transform: rotate(-90deg); }
.coin-items { display: grid; gap: 6px; margin: 0; padding: 4px 14px 14px 80px; list-style: none; }
.coin-items li { position: relative; padding-left: 14px; color: var(--text); font-size: 14px; }
.coin-items li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.coin-none { padding: 14px; }
.coin-key { margin: 6px 2px 0; font-size: 12px; text-align: right; }
@media (max-width: 640px) {
  .coin-r { grid-template-columns: 48px minmax(0, 1fr) auto 16px; gap: 8px; padding: 11px 12px; }
  .coin-bal { display: none; }
  .coin-items { padding-left: 68px; }
  .coin-key { display: none; }
}

/* Profile: the private Map vote playtime tab. */
.tabs .tab-private { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  /* Three profile tabs don't fit one phone line: the private one takes its own row. */
  .tabs:has(.tab-private) { flex-wrap: wrap; overflow: visible; }
  .tabs .tab-private { flex-basis: 100%; }
  .tabs:has(.tab-private) .count { display: none; }
}
.tabs .tab-private .icon { width: 14px; height: 14px; }
.vp { display: grid; gap: 26px; margin-top: 18px; }
.vp-intro { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--sun) 45%, var(--line-2)); color: var(--muted); }
.vp-intro .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.vp-intro b { color: var(--text); }
.vp-org-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.vp-org-h h2 { margin: 0; }
.vp-ver { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.vp-ver .icon { width: 15px; height: 15px; color: var(--bad); }
.vp-ver.is-ok { color: var(--good); } .vp-ver.is-ok .icon { color: var(--good); }
.vp-ver a .icon { width: 12px; height: 12px; color: inherit; }
.vp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.vp-s { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.vp-s.is-hours { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.vp-s.is-ok { box-shadow: 0 0 0 1px var(--good) inset; }
.vp-s-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vp-s-h b { font: 700 17px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.vp-next { color: var(--faint); font-size: 12px; white-space: nowrap; }
.vp-s-n { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vp-h { color: var(--muted); font-size: 14px; }
.vp-h b { color: var(--text); font: 700 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.vp-st { color: var(--muted); font-size: 13px; text-align: right; }
.vp-s.is-hours .vp-st { color: var(--good); }
.vp-bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.vp-bar i { display: block; height: 100%; width: var(--p); background: var(--accent); }
.vp-s.is-hours .vp-bar i { background: var(--good); }
.vp-note { margin: 0; font-size: 13px; }

/* Your playtime: private, own profile only. */
.my-play { margin-top: 26px; padding: 18px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--sun) 45%, var(--line-2)); background: var(--surface); }
.my-play-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.my-play-h h2 { margin: 0; font-size: 22px; }
.my-play-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; }
.my-play-lock .icon { width: 13px; height: 13px; }
.my-play-g { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 18px 28px; align-items: start; }
.my-play-all { display: grid; gap: 4px; }
.my-play-all b { font: 700 48px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.my-play-all b small { font-size: .5em; margin-left: 3px; color: var(--muted); }
.my-play-all span { color: var(--muted); font-size: 14px; }
.my-play-cyc { display: grid; gap: 10px; min-width: 0; }
.my-play-k { color: var(--faint); font: 600 12px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.my-play-k em { display: block; font-style: normal; text-transform: none; letter-spacing: 0; font: 500 13px/1.4 var(--font-ui); color: var(--muted); }
.my-play-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; }
.my-play-r span { color: var(--text); font-weight: 600; }
.my-play-r b { font: 700 16px/1 var(--font-display); color: var(--text); }
.my-play-r i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)); }
.my-play-r.is-ok i { background: linear-gradient(90deg, var(--good) var(--p), var(--line) var(--p)); }
@media (max-width: 640px) { .my-play-g { grid-template-columns: minmax(0, 1fr); } }

/* Profile titles heading: which server (and wipe) they are for. */
.ti-where { font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; margin-left: 10px; vertical-align: middle; }
/* Profile wipe history: the wipe being looked at. */
tr.is-picked td { background: color-mix(in srgb, var(--sun) 12%, transparent); }
tr.is-picked td:first-child { box-shadow: inset 3px 0 0 var(--sun); }
/* Server + wipe pickers above the head-to-head (and the profile's stats). */
.vs-scope { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; margin: 0 0 8px; }
.vs-scope-f { display: grid; gap: 6px; min-width: 0; }
.vs-scope-f span { font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.vs-scope-f select { min-width: 220px; max-width: 100%; }
.vs-scope-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vs-scope-reset:hover { color: var(--text); text-decoration: none; }
.vs-scope-reset .icon { width: 14px; height: 14px; }
.vs-scope-hint { margin: 0 0 18px; font-size: 13px; }
.vs-scope + .vs-summary, .vs-scope + .notice, .vs-scope + .stat-grid, .vs-scope-hint + .stat-grid { margin-top: 18px; }
@media (max-width: 640px) { .vs-scope-f { flex: 1 1 100%; } .vs-scope-f select { min-width: 0; width: 100%; } }
.vs-summary { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.vs-idle { display: flex; align-items: center; gap: 8px; margin: -8px 0 18px; font-size: 14px; color: var(--faint); }
.vs-idle .icon { width: 15px; height: 15px; flex: none; }
.vs-summary b { color: var(--text); }
/* Masonry: cards stack down two columns, so a short card never leaves a hole beside a tall one. */
.vs-grid { columns: 2 460px; column-gap: 16px; }
.vs-grid > .vs-card { break-inside: avoid; margin: 0 0 16px; }
.vs-card h3 { margin: 0 0 6px; }
.vs-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.vs-card h3 + .vs-row, .vs-card-head + .vs-row { border-top: 0; }
.vs-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.vs-card-head h3 { margin: 0; }
.vs-card-head .faint { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; }
/* "Show all": the rest of a section's stats, A to Z. */
.vs-more { border-top: 1px solid var(--line); }
.vs-more > summary { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 0 3px; cursor: pointer; list-style: none;
  font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.vs-more > summary::-webkit-details-marker { display: none; }
.vs-more > summary:hover { color: var(--text); }
.vs-more > summary .icon { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.vs-more[open] > summary .icon { transform: rotate(-90deg); }
.vs-more-close, .vs-more[open] .vs-more-open { display: none; }
.vs-more[open] .vs-more-close { display: inline; }
.vs-more[open] > summary { padding: 11px 0 9px; }
.vs-more > summary + .vs-row { border-top: 0; }
.vs-row.is-neutral .vs-val { color: var(--muted); }
.vs-val { font: 600 18px/1 var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; text-align: left; }
.vs-val-b { text-align: right; }
.vs-val.is-win { color: var(--text); font-weight: 700; }
.vs-val.is-win::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 0 3px 7px; }
.vs-val-b.is-win::after { display: none; }
.vs-val-b.is-win::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 7px 3px 0; }
.vs-mid { display: grid; gap: 6px; text-align: center; min-width: 0; }
.vs-label { font: 600 13px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vs-label small { color: var(--faint); font-weight: 500; letter-spacing: .04em; margin-left: 4px; }
.vs-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 6px; }
.vs-bars i { display: block; height: 100%; background: var(--line-2); border-radius: 3px; }
.vs-bar-a { justify-self: end; width: var(--w); }
.vs-bar-b { justify-self: start; width: var(--w); }
.vs-bars i.is-win { background: var(--sun); }
@media (max-width: 640px) {
  .vs-head { grid-template-columns: 1fr; gap: 8px; }
  .vs-mark { justify-self: center; padding: 6px 9px; font-size: 16px; }
  .vs-pick { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; padding-top: 16px; }
  .vs-pick-gap { display: none; }
  .vs-find-b .vs-find-k { text-align: left; }
  .vs-opt small { display: none; }
  .vs-right { direction: ltr; }
  .vs-side img, .vs-anon { width: 54px; height: 54px; }
  .vs-score { font-size: 40px; }
  .vs-row { grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 8px; }
  .vs-val { font-size: 15px; }
}

/* ---------- add-to-calendar menu ---------- */
.cal-menu { position: relative; }
.cal-menu > summary { list-style: none; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-menu .menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 6px; display: grid;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.cal-menu .menu a, .cal-menu .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); cursor: pointer; text-align: left; font: 600 15px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.cal-menu .menu a:hover, .cal-menu .menu button:hover { background: var(--surface-2); text-decoration: none; }
.cal-menu .menu .icon { color: var(--faint); }

/* Server page strip: five figures now (peak this wipe joins). */
.srv-head + .srv-strip .wrap { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.srv-stat-peak .v { color: var(--text); }
@media (max-width: 960px) and (min-width: 761px) { .srv-head + .srv-strip .srv-stat { padding: 18px 12px; } .srv-head + .srv-strip .srv-stat .v { font-size: 30px; } }
@media (max-width: 760px) {
  .srv-head + .srv-strip .wrap { grid-template-columns: 1fr 1fr; }
  .srv-head + .srv-strip .srv-stat:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

/* ---------- server settings ---------- */
.cfg { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.cfg dt, .cfg dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.cfg dt:first-of-type, .cfg dt:first-of-type + dd { border-top: 0; }
.cfg dt { font: 500 16px/1.4 var(--font); color: var(--text); padding-right: 18px; }
.cfg dd { color: var(--text); font: 600 16px/1.4 var(--font); text-align: right; }
.cfg dt, .cfg dd { padding: 11px 0; }
.extras { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.extras li { display: grid; gap: 1px; padding: 8px 0 8px 18px; position: relative; border-top: 1px solid var(--line); }
.extras li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.extras b { font: 600 15px/1.25 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.extras span { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Phone/tablet menu: backdrop-filter on the header makes it the containing block for the
   position:fixed menu inside it, which then collapses to the header's height (it showed
   as a 45px sliver). Solid header there, so the menu sizes against the viewport. */
@media (max-width: 1080px) {
  .site-header, html[data-brand="czr"] .site-header, html.fx.scrolled .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-2); }
}

/* ---------- phones/tablets: the section strip under the header ---------- */
.nav-strip-row { display: none; }
@media (max-width: 1080px) {
  .nav-strip-row { display: flex; align-items: stretch; position: relative; border-top: 1px solid var(--line); }
  .nav-strip {
    display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    flex: 1; min-width: 0; padding: 0 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent);   /* "there's more this way" */
  }
  .nav-strip::-webkit-scrollbar { display: none; }
  .nav-strip a { flex: none; position: relative; padding: 11px 10px 12px; color: var(--muted); font: 600 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
  .nav-strip a:hover { color: var(--text); text-decoration: none; }
  .nav-strip a[aria-current="page"] { color: var(--text); }
  .nav-strip a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--sun); }
  .nav-strip a:last-child { margin-right: 28px; }                                                       /* last link clears the fade */
  /* More: in the strip between Wallpapers and Store; its menu opens under it, outside the scroller. */
  .strip-more-btn { flex: none; position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 11px 10px 12px; border: 0; background: none; cursor: pointer;
    color: var(--muted); font: 600 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
  .strip-more-btn .icon { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .2s; }
  .strip-more-btn[aria-expanded="true"] { color: var(--text); }
  .strip-more-btn[aria-expanded="true"] .icon { transform: rotate(-90deg); }
  .strip-more-btn.is-current { color: var(--text); }
  .strip-more-btn.is-current::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--sun); }
  .strip-menu { position: absolute; z-index: 10; top: 100%; left: var(--mx, 8px); margin-top: 6px; min-width: 220px; padding: 6px; display: grid;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
  .strip-menu[hidden] { display: none; }
  .strip-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text);
    font: 600 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
  .strip-menu a .icon { color: var(--faint); }
  .strip-menu a:hover, .strip-menu a[aria-current="page"] { background: var(--surface-2); text-decoration: none; }
}

/* ---------- titles directory ---------- */
.ti-mine { margin-bottom: 8px; }
.ti-mine-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 26px 0 0; }
.ti-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: 1 1 420px; justify-content: flex-end; }
.ti-tools .search { flex: 1 1 260px; max-width: 360px; }
.ti-tools .search input { padding: .55em .85em; font-size: 15px; }
.ti-only { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.ti-only input { accent-color: var(--sun); width: 16px; height: 16px; }
.ti-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ti { display: grid; gap: 4px; padding: 13px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.ti.is-open { border-style: dashed; }
.ti.is-mine { border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); background: linear-gradient(180deg, var(--tint), var(--surface) 70%); }
.ti-name { font: 700 18px/1.15 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.ti-how { font-size: 13px; color: var(--faint); }
.ti-how b { color: var(--muted); font-weight: 600; }
.ti-who { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; color: var(--text); font-size: 14px; font-weight: 500; }
.ti-who img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.ti-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ti-who em { font-style: normal; font: 600 13px/1 var(--font-ui); color: var(--accent); font-variant-numeric: tabular-nums; }
.ti-free { color: var(--good); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.ti[hidden], .ti-group[hidden] { display: none !important; }

/* ---------- leaderboard: standing, podium extras, meters, clan tags, sticky header ---------- */
.lb-me { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px;
  background: linear-gradient(90deg, var(--tint-2), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--sun) 35%, var(--line)); border-radius: var(--radius); }
.lb-me-out { background: var(--surface); border-color: var(--line); }
.lb-me-rank { font: 700 34px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.lb-me-text { display: grid; gap: 2px; flex: 1; min-width: 200px; color: var(--muted); }
.lb-me-text b { color: var(--text); }
.lb-me-text small { font-size: 14px; color: var(--faint); }
.lb-me-out .lb-me-text { display: block; }
.pod-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pod-title { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.pod-title:hover { text-decoration: none; background: color-mix(in srgb, var(--gold) 20%, transparent); }
.pod-title .icon { width: 13px; height: 13px; }
.pod-lead { padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.lb-table td.sorted { position: relative; }
.lb-v { position: relative; z-index: 1; }
.lb-meter { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lb-meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--sun); border-radius: inherit; }
.lb-clan { font-style: normal; font: 700 12px/1 var(--font-ui); letter-spacing: .05em; color: var(--clan); margin-left: 6px; flex: none; }
.lb-table tr.me td { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--sun) 40%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--sun) 40%, transparent); }
.lb-table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--sun); }
#me { scroll-margin-top: 140px; }
@media (min-width: 861px) {
  .lb-table { overflow: visible; }
  .lb-table thead th { position: sticky; top: 64px; z-index: 3; }
}

@media (max-width: 720px) {
  .podium .pod .pod-badges { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; margin-top: 10px; }
}

/* ---------- wipe schedule ---------- */
.wipe-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; }
.wclock { padding: 20px 22px 18px; background: rgba(12,17,23,.78); border: 1px solid var(--line-2); border-top: 2px solid var(--sun); border-radius: var(--radius); backdrop-filter: blur(8px); min-width: 0; }
html[data-brand="czr"] .wclock { background: rgba(8,17,26,.78); }
.wclock-k { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
.wclock-digits { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 10px; }
.wclock-digits span { display: grid; justify-items: center; gap: 4px; min-width: 64px; }
.wclock-digits b { font: 700 54px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 76px; text-align: center; }
.wclock-digits small { font: 600 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.wclock-digits i { font: 700 40px/1.6 var(--font-display); color: var(--faint); font-style: normal; }
.wclock-when { font: 600 15px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wclock-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wclock-who a, .wcal-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.wclock-who a::before, .wcal-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.wclock-who a:hover { text-decoration: none; border-color: var(--c); }
@media (max-width: 900px) { .wipe-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .wclock-digits span { min-width: 0; flex: 1; }
  .wclock-digits b { font-size: 36px; min-width: 0; width: 100%; padding: 8px 4px; }
  .wclock-digits i { font-size: 26px; line-height: 1.7; }
}
.wcal-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.wcal { display: grid; gap: 4px; }
.wcal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wcal-head span { padding: 0 8px 4px; font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.wcal-day { position: relative; min-height: 96px; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; }
.wcal-day.is-past { opacity: .4; }
.wcal-day.is-today { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.wcal-day.is-force { background: linear-gradient(180deg, var(--tint-2), var(--surface) 70%); border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); }
.wcal-num { font: 700 17px/1 var(--font-display); color: var(--muted); display: flex; align-items: baseline; gap: 5px; }
.wcal-num small { font: 600 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.is-today .wcal-num { color: var(--accent); }
.has-wipes .wcal-num { color: var(--text); }
.wcal-force { font: 600 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.wcal-chip { display: block; padding: 3px 6px; border-radius: 3px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--text);
  font: 600 12px/1.25 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcal-chip:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 26%, transparent); }
@media (max-width: 760px) {
  .wcal-day { min-height: 58px; padding: 5px; gap: 3px; }
  .wcal-chip { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--c); border-radius: 3px; }
  .wcal-force { font-size: 0; height: 0; }
  .wcal-num { font-size: 14px; }
  .wcal-head span { padding: 0 2px 4px; font-size: 10px; letter-spacing: .06em; }
}
.wipe-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
@media (max-width: 900px) { .wipe-cols { grid-template-columns: 1fr; } }
.wsoon { margin-bottom: 18px; }
.wsoon-k { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .16em; color: var(--faint); margin-bottom: 8px; }
.wsoon-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; margin-bottom: 6px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--radius-sm); color: var(--text); }
.wsoon-row:hover { text-decoration: none; background: var(--surface-2); }
.wsoon-date { display: grid; justify-items: center; line-height: 1; }
.wsoon-date b { font: 700 26px/1 var(--font-display); }
.wsoon-date small { font: 600 11px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.wsoon-main { display: grid; gap: 3px; min-width: 0; }
.wsoon-main b { font: 700 17px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; }
.wsoon-main small { color: var(--muted); font-size: 13px; }
.wsoon-in { font: 700 17px/1 var(--font-ui); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wsrv-list { display: grid; gap: 10px; }
a.card.wsrv { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-left: 3px solid var(--c); }
.wsrv-map { width: 76px; height: 76px; border-radius: var(--radius-sm); background: var(--map, none) center / cover no-repeat, var(--bg-2); border: 1px solid var(--line-2); }
.wsrv-body { display: grid; gap: 4px; min-width: 0; }
.wsrv-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wsrv-top b { font: 700 18px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; }
.wsrv-top em { font: 700 16px/1 var(--font-ui); font-style: normal; color: var(--accent); white-space: nowrap; }
.wsrv-body small { color: var(--muted); font-size: 13px; }
.wsrv-prog { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.wsrv-prog i { display: block; height: 100%; width: var(--p); background: var(--c); border-radius: inherit; }
.wsrv-day { font: 600 12px/1.2 var(--font-ui) !important; text-transform: uppercase; letter-spacing: .07em; color: var(--faint) !important; }

.wsoon-names { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.wsoon-names a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font: 700 16px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; }
.wsoon-names a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.wsoon-names a:hover { color: var(--accent); text-decoration: none; }

.bp-tag { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 2px 7px; border-radius: 3px; border: 1px solid rgba(79,209,139,.35); background: rgba(79,209,139,.08);
  color: var(--good); font: 600 11px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.bp-tag.is-wipe { color: #ffb08a; border-color: rgba(244,96,42,.45); background: rgba(244,96,42,.12); }
.bp-line { color: var(--text); font-weight: 600; }

/* Wipe page intro: three short facts instead of one dense paragraph. */
.wfacts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.wfacts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; background: rgba(12,17,23,.6); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 15px; line-height: 1.4; }
html[data-brand="czr"] .wfacts li { background: rgba(8,17,26,.6); }
.wfacts .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.wfacts b { display: block; color: var(--text); font: 600 13px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1px; }
.wfacts li.is-keep .icon { color: var(--good); }
.wfacts li.is-wipe .icon { color: #ffb08a; }

/* Wipe page: both communities, RR orange / CZR blue. */
.wfact-brand { display: block; margin-top: 3px; }
.wfact-brand em { font-style: normal; font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--c); margin-right: 4px; }
.wcomm { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.wcomm span, .wcal-legend span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--text); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.wcomm span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.wsoon-row.is-mixed { border-left-image: linear-gradient(180deg, #f4602a 50%, #26a5e0 50%) 1; }
.bp-for { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.bp-for i { font-style: normal; font: 700 11px/1 var(--font-ui); letter-spacing: .06em; color: var(--c); }
.bp-for .bp-tag { margin-left: 0; }
.wsrv-brand { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--c); }
.wsrv-brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.wsrv-list + .wsrv-brand { margin-top: 22px; }
.wcal-chip b { font: 700 9px/1 var(--font-ui); letter-spacing: .06em; margin-left: 5px; padding: 1px 4px; border-radius: 2px; background: #f4602a; color: #160a03; vertical-align: 1px; }

/* ---------- the other community's servers on /servers, in its own colours ---------- */
.other-brand { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.other-brand.brand-czr { --sun: #26a5e0; --amber: #6cd3fd; --accent: #6cd3fd; --on-accent: #03111c; --tint: rgba(38,165,224,.1); --tint-2: rgba(38,165,224,.2); }
.other-brand.brand-rr { --sun: #f4602a; --amber: #fb9434; --accent: #fb9434; --on-accent: #160a03; --tint: rgba(244,96,42,.1); --tint-2: rgba(244,96,42,.18); }
.other-brand-head { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.other-brand-head img { width: 44px; height: 44px; object-fit: contain; }
.other-brand-head > div { flex: 1; min-width: 200px; }
.other-brand-head h2 { margin: 0; color: var(--accent); }
.other-brand-head p { margin: 2px 0 0; color: var(--muted); }

/* ---------- board: #1 in every column ---------- */
.lb-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--sun) 55%, var(--line-2)); background: linear-gradient(90deg, var(--tint-2), rgba(20,27,36,.9)); }
html[data-brand="czr"] .lb-pill { background: linear-gradient(90deg, var(--tint-2), rgba(15,28,40,.9)); }
.lb-pill > span { display: grid; line-height: 1.1; }
.lb-pill b { font: 700 15px/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--text); }
.lb-pill small { font: 600 11px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.lb-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; animation: live 2s infinite; }
@media (prefers-reduced-motion: reduce) { .lb-pill-dot { animation: none; } }
.lb-leaders { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-top: 18px; }
.lb-leader { display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); min-width: 0; transition: border-color .15s, background .15s; }
.lb-leader:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.lb-leader.is-active { border-color: color-mix(in srgb, var(--sun) 60%, var(--line)); background: linear-gradient(180deg, var(--tint-2), var(--surface) 75%); }
.lb-leader.is-empty { opacity: .55; }
.lb-leader-k { display: flex; align-items: center; gap: 7px; font: 600 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .09em; color: var(--faint); min-width: 0; }
.lb-leader-k img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.is-active .lb-leader-k { color: var(--accent); }
.lb-leader-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 15px; }
.lb-leader-who img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.lb-leader-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-leader-v { font: 700 26px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.is-active .lb-leader-v { color: var(--accent); }
.lb-leader-sum { font: 500 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
@media (max-width: 640px) {
  .lb-leaders { display: flex; overflow-x: auto; scrollbar-width: none; margin: 18px -16px 0; padding: 0 16px 4px; }
  .lb-leaders::-webkit-scrollbar { display: none; }
  .lb-leader { flex: 0 0 170px; }
}

/* ---------- leaderboards home ---------- */
.lb-all { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k btn" "t btn" "s btn"; gap: 4px 20px; align-items: center; padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--sun) 45%, var(--line)); border-radius: var(--radius); color: var(--text);
  background: linear-gradient(100deg, var(--tint-2), var(--surface) 55%), var(--surface); }
.lb-all:hover { text-decoration: none; border-color: var(--sun); }
.lb-all-k { grid-area: k; display: flex; align-items: center; gap: 7px; font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
.lb-all strong { grid-area: t; font: 700 clamp(22px, 3vw, 30px)/1.1 var(--font-display); text-transform: uppercase; }
.lb-all-sub { grid-area: s; color: var(--muted); }
.lb-all .btn { grid-area: btn; }
@media (max-width: 640px) { .lb-all { grid-template-columns: 1fr; grid-template-areas: "k" "t" "s" "btn"; } .lb-all .btn { margin-top: 10px; } }
.lb-rules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.lb-rule { display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); min-width: 0; }
.lb-rule:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.lb-rule-k { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.lb-rule-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-rule-who img, .lb-rule-anon { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex: none; }
.lb-rule-anon { display: grid; place-items: center; color: var(--faint); background: var(--bg-2); }
.lb-rule-who b { font: 700 18px/1.15 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-rule-v { font: 700 30px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.lb-srv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
a.card.lb-srv { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.lb-srv-map { position: relative; display: grid; align-content: end; gap: 4px; min-height: 120px; padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(12,17,23,.1), rgba(12,17,23,.92)), var(--map, none) center / cover no-repeat, var(--bg-2); }
.lb-srv-name { font: 700 24px/1.05 var(--font-display); text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.lb-srv-meta { font: 600 12px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.lb-srv-top { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.lb-srv-top li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 16px; }
.lb-srv-rank { font: 700 14px/1 var(--font-ui); text-align: center; color: var(--faint); }
.m1 .lb-srv-rank { color: var(--gold); } .m2 .lb-srv-rank { color: var(--silver); } .m3 .lb-srv-rank { color: var(--bronze); }
.lb-srv-who { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600; }
.lb-srv-who img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.lb-srv-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-srv-v { font: 700 16px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.lb-srv-v small { font-weight: 500; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.m1 .lb-srv-v { color: var(--accent); }
.lb-srv-empty { padding: 16px; margin: 0; flex: 1; }
.lb-srv-go { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--accent); font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 640px) {
  .lb-rules { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lb-rule { padding: 12px; gap: 8px; }
  .lb-rule-who img, .lb-rule-anon { width: 32px; height: 32px; }
  .lb-rule-who b { font-size: 15px; }
  .lb-rule-v { font-size: 22px; }
}

/* Podium footer: one line (title / lead / gap) instead of three squeezed stats. */
.pod-foot { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); min-height: 38px; }
.pod-gap { font: 600 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
@media (max-width: 720px) {
  .podium .pod .pod-foot { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; margin-top: 10px; padding-top: 10px; min-height: 0; }
  .podium .pod .pod-badges { display: none; }
}

/* Titles beside names in the board table. */
.lb-table td:nth-child(2) { white-space: nowrap; }
.lb-ttl { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 2px 7px; border-radius: 99px; vertical-align: middle; max-width: 220px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent);
  color: var(--gold); font: 600 11px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.lb-ttl .icon { width: 11px; height: 11px; flex: none; }
.lb-ttl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-ttl b { font-weight: 700; opacity: .8; }
@media (max-width: 860px) {
  /* Narrow pinned name column: the trophy + count only. */
  .lb-ttl { margin-left: 6px; padding: 2px 5px; }
  .lb-ttl span { display: none; }
  .lb-ttl b { opacity: 1; }
}

.lb-ttl-n { display: none; font-style: normal; font-weight: 700; }
@media (max-width: 860px) { .lb-ttl b { display: none; } .lb-ttl-n { display: inline; } }

/* Name + title chip on one centred line. */
.lb-who { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; max-width: 100%; }
.lb-who .lb-ttl { margin-left: 0; vertical-align: baseline; }
@media (max-width: 860px) { .lb-who { gap: 6px; } }

a.lb-ttl:hover { text-decoration: none; background: color-mix(in srgb, var(--gold) 20%, transparent); }
/* Titles page: the title you came for glows gold three times, slowly. */
.ti { scroll-margin-top: 140px; }
.ti.ti-flash { animation: tiFlash 1.4s ease-in-out 3; }
@keyframes tiFlash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--line); }
  50% { box-shadow: 0 0 0 2px var(--gold), 0 0 28px 4px color-mix(in srgb, var(--gold) 45%, transparent); border-color: var(--gold);
        background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
}
@media (prefers-reduced-motion: reduce) { .ti.ti-flash { animation: none; box-shadow: 0 0 0 2px var(--gold); } }
/* Summary strips: every box keeps its padding, so the hover outline never touches the text. */
.srv-stat:first-child { padding-left: 18px; }
@media (max-width: 760px) { .srv-stat:nth-child(odd), .srv-head + .srv-strip .srv-stat:last-child { padding-left: 14px; } }

.lb-leader-sum b { color: var(--muted); font-weight: 700; }
.lb-leader-sum + .lb-leader-sum { margin-top: -3px; }

/* Board totals strip, just above the search bar. */
.lb-totals { display: grid; gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lb-totals-row { display: flex; align-items: baseline; gap: 6px 22px; flex-wrap: wrap; padding: 11px 16px; background: var(--surface); }
.lb-totals-k { flex: 0 0 auto; min-width: 150px; font: 600 12px/1.6 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.lb-totals-row + .lb-totals-row .lb-totals-k { color: var(--faint); }
.lb-tot { font: 500 13px/1.6 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.lb-tot b { font: 700 18px/1 var(--font-display); color: var(--text); letter-spacing: 0; margin-right: 3px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lb-totals-k { min-width: 0; flex-basis: 100%; } .lb-totals-row { gap: 4px 16px; } }

/* Selected board / sub-board: filled, not just underlined; plus a "you are here" heading. */
.lb-boards { gap: 4px; border-bottom: 0; padding-bottom: 4px; }
.lb-boards a { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0; padding: 11px 15px; background: var(--surface); }
.lb-boards a:hover { border-color: var(--line-2); background: var(--surface-2); }
.lb-boards a[aria-current] { background: var(--sun); border-color: var(--sun); color: var(--on-accent); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--sun) 70%, transparent); }
.lb-groups a[aria-current] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.lb-now { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; margin-top: 22px; }
.lb-now-board, .lb-now-group { font: 700 clamp(24px, 3vw, 32px)/1.05 var(--font-display); text-transform: uppercase; }
.lb-now-board { color: var(--accent); }
.lb-now-sep { color: var(--faint); font: 700 24px/1 var(--font-display); }
.lb-now-where { flex-basis: 100%; font: 600 12px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }

/* Board table: icon centred above each label, numbers centred under it, equal stat columns. */
.lb-table th.stat-col, .lb-table td.num:not(.rank) { text-align: center; }
.lb-table th.stat-col a { align-items: center; width: 100%; }
.lb-table th .col-label { text-align: center; max-width: none; }
.lb-table td.sorted .lb-meter { left: 18%; right: 18%; }
@media (min-width: 861px) {
  .lb-table table { table-layout: fixed; }          /* fixed layout shares the leftover width equally */
  .lb-table th:nth-child(1) { width: 56px; }
  .lb-table th:nth-child(2) { width: 34%; }
}
@media (max-width: 860px) {
  .lb-table table { table-layout: fixed; width: max-content; min-width: 100%; }
  .lb-table th:nth-child(1) { width: 44px; }
  .lb-table th:nth-child(2) { width: 168px; }
  .lb-table th.stat-col { width: 96px; }
}
@media (min-width: 861px) { .lb-many th:nth-child(2) { width: 21%; } .lb-many th.stat-col img { width: 26px; height: 26px; } }

/* Tooltips (what a title is for): one floating box on <body>, placed by site.js, so rows,
   sticky headers and scroll containers can never clip or cover it. */
.tipbox { position: fixed; z-index: 400; max-width: 300px; padding: 8px 11px; border-radius: var(--radius-sm); background: #05080b; border: 1px solid var(--line-2);
  box-shadow: var(--shadow); color: var(--text); font: 500 13px/1.45 var(--font); white-space: pre-line; pointer-events: none; opacity: 0; transition: opacity .12s; }
.tipbox.on { opacity: 1; }

/* ---------- bounty: how it works ---------- */
.bh-req { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.bh-req p { margin: 0; color: var(--muted); }
.bh-req b { color: var(--text); }
.bh-cmd { display: flex; align-items: center; gap: 10px; }
.bh-cmd code { font-size: 16px; padding: 6px 10px; }
.bh-how { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.how h3 small { color: var(--faint); font: 500 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }
.bh-rules { margin-top: 14px; padding: 20px; }
.bh-rules h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.bh-rules h3 .icon { color: var(--accent); }
.bh-rules ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.bh-warn { margin: 12px 0 0; color: var(--danger, #e5534b); font-weight: 600; }

/* ---------- the other community's site, last in the nav ---------- */
.site-switch { display: inline-flex !important; align-items: center; gap: 7px; }
.nav .site-switch { margin-left: 6px; padding-left: 14px !important; border-left: 1px solid var(--line); }
.site-switch img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.nav-strip .site-switch img { width: 20px; height: 20px; }

/* ---------- Discord button: logo + member count ---------- */
.btn-discord.has-count { gap: 8px; }
.btn-discord b { font: 700 15px/1 var(--font-ui); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.btn-discord .dc-short { display: none; }
@media (max-width: 760px) {
  .btn-discord .dc-full { display: none; }
  .btn-discord .dc-short { display: inline; }
}
