/* Surf portal. Dark, cyan accent, gold for records. No external fonts or assets. */
:root {
  --bg: #0a0d14;
  --bg-2: #0d111b;
  --surface: #111725;
  --surface-2: #151c2c;
  --surface-3: #1a2336;
  --line: rgba(150, 175, 220, 0.10);
  --line-2: rgba(150, 175, 220, 0.17);
  --text: #e8eef8;
  --text-2: #b3bfd3;
  --muted: #7c89a2;
  --accent: rgb(0, 200, 255);
  --accent-2: #2f6bff;
  --accent-soft: rgba(0, 200, 255, 0.12);
  --accent-glow: rgba(0, 200, 255, 0.35);
  --gold: rgb(255, 200, 40);
  --gold-soft: rgba(255, 200, 40, 0.12);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.13);
  --warn: #ffa53d;
  --warn-soft: rgba(255, 165, 61, 0.13);
  --bad: #ff5b6e;
  --bad-soft: rgba(255, 91, 110, 0.13);
  --radius: 18px;
  --radius-sm: 11px;
  --gutter: 24px;
  --maxw: 1200px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 200, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(47, 107, 255, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1 0 auto; padding-bottom: 64px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #6fe0ff; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(0, 200, 255, 0.3); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono, .num, time { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.94em; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.strong { font-weight: 650; }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #001018; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-gold { color: var(--gold); }
.stack { display: grid; gap: 20px; }
.kbd {
  display: inline-block; font-family: var(--mono); font-size: 0.86em; line-height: 1.4;
  padding: 0 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2);
  color: var(--text); white-space: nowrap;
}

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo:hover { color: #fff; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 6px 18px -6px var(--accent-glow); }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a {
  color: var(--text-2); font-weight: 560; font-size: 14.5px; padding: 8px 14px; border-radius: 999px;
  transition: color .15s, background .15s;
}
.mainnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.mainnav a.on { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.25); }
.user { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.me { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); max-width: 220px; }
.me:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); color: #fff; }
.me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
}
.iconbtn:hover { color: var(--text); border-color: var(--line-2); }
form.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  --b: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 650 14.5px/1 var(--font); color: var(--text); background: var(--b); cursor: pointer;
  white-space: nowrap; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  text-decoration: none;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-lg .ic { width: 20px; height: 20px; }
.btn-primary {
  color: #00131c; background: linear-gradient(135deg, #3ee0ff 0%, rgb(0, 200, 255) 45%, #1f8bff 100%);
  box-shadow: 0 10px 28px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { color: #00131c; box-shadow: 0 14px 34px -10px rgba(0, 200, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); filter: brightness(1.05); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(150, 175, 220, 0.3); }
.btn-danger { background: var(--bad-soft); border-color: rgba(255, 91, 110, 0.35); color: #ff8c99; }
.btn-danger:hover { background: rgba(255, 91, 110, 0.22); color: #ffc0c7; }
.btn-gold { background: var(--gold-soft); border-color: rgba(255, 200, 40, 0.35); color: var(--gold); }
.btn-gold:hover { background: rgba(255, 200, 40, 0.2); color: #ffe08a; }
.btn-steam { background: linear-gradient(180deg, #1f2a3e, #171f2f); border-color: var(--line-2); color: var(--text); }
.btn-steam:hover { border-color: rgba(0, 200, 255, 0.4); box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.link-more .ic { width: 16px; height: 16px; transition: transform .15s; }
.link-more:hover .ic { transform: translateX(3px); }

/* ------------------------------------------------------------ flash */
.flash {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid; font-weight: 550; font-size: 14.5px; animation: flash-in .35s ease-out;
}
.flash .ic { width: 20px; height: 20px; }
.flash-ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.flash-err { background: var(--bad-soft); border-color: rgba(255, 91, 110, 0.4); color: #ffc0c7; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ cards */
.card {
  position: relative; background: linear-gradient(180deg, rgba(23, 31, 48, 0.85), rgba(16, 22, 35, 0.85));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h.pad { padding: 20px 22px 0; }
.card.flush .card-h.pad { margin-bottom: 14px; }
.card-h h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.card-h h2 .ic { color: var(--accent); width: 20px; height: 20px; }
.card > p + p { margin-top: 10px; }

/* ------------------------------------------------------------ pills, badges, chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; border: 1px solid;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-on { color: var(--ok); background: var(--ok-soft); border-color: rgba(52, 211, 153, 0.3); }
.pill-on .dot { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ping 2s infinite; }
.pill-off { color: var(--bad); background: var(--bad-soft); border-color: rgba(255, 91, 110, 0.3); }
.pill-busy { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 165, 61, 0.3); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255, 255, 255, 0.06); color: var(--text-2); border: 1px solid var(--line-2); vertical-align: 1px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .ic { width: 14px; height: 14px; }
.badge-vip { color: var(--gold); background: var(--gold-soft); border-color: rgba(255, 200, 40, 0.35); }
.badge-live { color: var(--ok); background: var(--ok-soft); border-color: rgba(52, 211, 153, 0.35); }
.badge-live .dot { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.badge-ok { color: #7dd3fc; background: rgba(0, 200, 255, 0.1); border-color: rgba(0, 200, 255, 0.28); }
.badge-warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 165, 61, 0.35); }
.badge-bad { color: var(--bad); background: var(--bad-soft); border-color: rgba(255, 91, 110, 0.35); }
.badge-link { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12.5px; color: var(--text-2); }
.badge-link:hover { color: var(--text); border-color: rgba(150, 175, 220, 0.35); }

.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); white-space: nowrap; }
.tag-bonus { background: rgba(200, 120, 255, 0.14); color: #dcb3ff; }
.tag-style { background: rgba(45, 212, 191, 0.13); color: #7eeadb; }
.ptags { display: inline-flex; flex-wrap: wrap; gap: 4px; }

.tier {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 7px;
  border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #06121a; white-space: nowrap;
}
.tier-0 { background: #3a4458; color: #c9d2e3; }
.tier-1 { background: #3ddc84; }
.tier-2 { background: #a3e635; }
.tier-3 { background: #facc15; }
.tier-4 { background: #fb923c; }
.tier-5 { background: #f43f5e; color: #fff; }
.tier-6 { background: #c026d3; color: #fff; }
.tier-7, .tier-8 { background: #7c3aed; color: #fff; }

/* player titles: colors match the game */
.ttl { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .02em; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.t0 { color: rgb(170, 170, 170); background: rgba(170, 170, 170, 0.1); border-color: rgba(170, 170, 170, 0.25); }
.t1 { color: rgb(140, 220, 140); background: rgba(140, 220, 140, 0.1); border-color: rgba(140, 220, 140, 0.28); }
.t2 { color: rgb(80, 200, 255); background: rgba(80, 200, 255, 0.1); border-color: rgba(80, 200, 255, 0.28); }
.t3 { color: rgb(140, 158, 255); background: rgba(120, 140, 255, 0.12); border-color: rgba(120, 140, 255, 0.32); }
.t4 { color: rgb(210, 140, 255); background: rgba(200, 120, 255, 0.12); border-color: rgba(200, 120, 255, 0.32); }
.t5 { color: rgb(255, 120, 60); background: rgba(255, 120, 60, 0.12); border-color: rgba(255, 120, 60, 0.32); }
.t6 { color: rgb(255, 200, 40); background: rgba(255, 200, 40, 0.12); border-color: rgba(255, 200, 40, 0.35); box-shadow: 0 0 14px -4px rgba(255, 200, 40, 0.5); }

/* ------------------------------------------------------------ avatars */
.av {
  position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: 40px; height: 40px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.av > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av > img.broken { display: none; }
.av-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 13.5px; }
.av-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.av-xl { width: 112px; height: 112px; border-radius: 28px; font-size: 46px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -18px rgba(0, 200, 255, 0.45); }
.av-c0 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.av-c1 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.av-c2 { background: linear-gradient(135deg, #10b981, #047857); }
.av-c3 { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.av-c4 { background: linear-gradient(135deg, #ec4899, #be185d); }
.av-c5 { background: linear-gradient(135deg, #06b6d4, #0f766e); }
.av-c6 { background: linear-gradient(135deg, #f43f5e, #9f1239); }
.av-c7 { background: linear-gradient(135deg, #6366f1, #3730a3); }

.pname { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
a.pname:hover { color: var(--accent); }

/* ------------------------------------------------------------ map thumbnails */
.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #10192a; isolation: isolate; container-type: inline-size; }
.thumb::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.06) 40% 41%, transparent 41% 60%, rgba(255, 255, 255, 0.04) 60% 61%, transparent 61%),
    linear-gradient(160deg, transparent 55%, rgba(0, 0, 0, 0.45));
}
.thumb-name {
  position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; padding: 0 8%; text-align: center;
  font-weight: 900; font-size: 22px; font-size: clamp(15px, 8.5cqi, 40px); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.08;
  color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); overflow-wrap: break-word; word-break: normal; hyphens: none;
}
.thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.thumb > img.broken { display: none; }
.g0 { background: linear-gradient(135deg, #0b3b5c 0%, #0e7490 55%, #22d3ee 130%); }
.g1 { background: linear-gradient(135deg, #2e1065 0%, #6d28d9 60%, #c084fc 130%); }
.g2 { background: linear-gradient(135deg, #052e2b 0%, #0f766e 60%, #5eead4 130%); }
.g3 { background: linear-gradient(135deg, #3b0a24 0%, #9d174d 60%, #fb7185 130%); }
.g4 { background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #38bdf8 130%); }
.g5 { background: linear-gradient(135deg, #3a1d05 0%, #b45309 60%, #fcd34d 130%); }
.g6 { background: linear-gradient(135deg, #0c1a3d 0%, #1d4ed8 60%, #93c5fd 130%); }
.g7 { background: linear-gradient(135deg, #14281d 0%, #15803d 60%, #bef264 130%); }

/* ------------------------------------------------------------ hero (home) */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow-a { width: 620px; height: 620px; left: -160px; top: -260px; background: radial-gradient(circle, rgba(0, 200, 255, 0.45), transparent 65%); animation: drift-a 18s ease-in-out infinite alternate; }
.glow-b { width: 560px; height: 560px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(47, 107, 255, 0.4), transparent 65%); animation: drift-b 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(120px, 60px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-100px, 80px) scale(0.95); } }
.waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 190px; }
.wave { animation: wave 26s linear infinite; }
.w1 { fill: rgba(0, 200, 255, 0.05); }
.w2 { fill: rgba(0, 200, 255, 0.07); animation-duration: 19s; animation-direction: reverse; }
.w3 { fill: rgba(10, 13, 20, 0.85); animation-duration: 33s; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow .ic { width: 15px; height: 15px; }
.hero-title {
  margin-top: 14px; font-size: clamp(44px, 7vw, 84px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98;
  background: linear-gradient(180deg, #ffffff 30%, #a9e9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow-wrap: anywhere;
}
.server-name {
  display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 10px; font-family: var(--mono); font-size: 13px;
  color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); max-width: 100%; overflow-wrap: anywhere;
}
.lead { margin-top: 16px; font-size: 17px; color: var(--text-2); max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 36px; padding: 0; margin: 36px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* status card */
.status-card { padding: 18px; border-color: rgba(0, 200, 255, 0.18); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 200, 255, 0.04), 0 30px 80px -40px rgba(0, 200, 255, 0.45); }
.status-card.is-off { border-color: var(--line); box-shadow: var(--shadow); }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sc-count { font-size: 14px; }
.sc-count b { font-size: 20px; font-weight: 800; margin-right: 2px; font-variant-numeric: tabular-nums; }
.sc-thumb .thumb { border-radius: 14px; }
.sc-thumb .thumb-name { place-items: start center; padding-top: 9%; font-size: clamp(15px, 7cqi, 30px); color: rgba(255, 255, 255, 0.5); }
.sc-thumb .thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 8, 14, 0) 35%, rgba(5, 8, 14, 0.88)); }
.is-off .sc-thumb .thumb { filter: grayscale(0.85) brightness(0.7); }
.sc-map { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px; }
.sc-badges { display: flex; gap: 8px; margin-bottom: 8px; min-height: 22px; }
.sc-mapname { display: block; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
a.sc-mapname:hover { color: var(--accent); }
.sc-mapper { color: var(--text-2); font-size: 13.5px; min-height: 1em; }
.sc-offline { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: #ffc0c7; font-size: 14px; }
.sc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.sc-stats > div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); min-width: 0; }
.sc-stats dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sc-stats dt .ic { width: 14px; height: 14px; }
.sc-stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 750; }
.sc-stats dd.sub { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ home grid */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-top: 32px; align-items: start; }
.home-grid > .col { display: grid; gap: 20px; min-width: 0; }
.community-card p { margin-bottom: 16px; font-size: 14px; }

.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
.prow:hover { background: rgba(255, 255, 255, 0.03); }
.prow-main { flex: 1; min-width: 0; }
.prow-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prow-name .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.prow-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 13px; }
.prow-state { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; font-size: 14px; }
.pb { font-size: 12.5px; color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; white-space: nowrap; }
.state .ic { width: 15px; height: 15px; }
.st-run { color: var(--accent); }
.st-run .mono { color: #fff; }
.st-fin { color: var(--ok); }
.st-start { color: var(--text-2); }
.st-spec, .st-idle { color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1s ease-in-out infinite; }
.prow-state .tag, .prow-state .ptags { align-self: flex-end; }
.prow-state .ptags { justify-content: flex-end; }

.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toplist li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.toplist li:hover { background: rgba(255, 255, 255, 0.03); }
.tl-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.tl-main .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; min-width: 0; }
.tl-pts { font-weight: 700; white-space: nowrap; }
.tl-pts small { font-family: var(--font); font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 12px; }
.pos {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px;
  font-size: 13px; font-weight: 800; color: var(--text-2); background: rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums;
}
.pos-1 { color: #2a1d00; background: linear-gradient(135deg, #ffe17a, rgb(255, 200, 40)); box-shadow: 0 4px 14px -4px rgba(255, 200, 40, 0.6); }
.pos-2 { color: #101520; background: linear-gradient(135deg, #eef2f8, #aeb9c9); }
.pos-3 { color: #250f02; background: linear-gradient(135deg, #f3b37a, #c46f2b); }

.reclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.reclist li { display: flex; gap: 14px; padding: 10px 12px; border-radius: 14px; }
.reclist li:hover { background: rgba(255, 255, 255, 0.03); }
.rec-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 200, 40, 0.25); }
.rec-ic .ic { width: 19px; height: 19px; }
.rec-main { min-width: 0; }
.rec-main p:first-child { overflow-wrap: anywhere; }
.rec-main .pname { font-weight: 700; }
.delta { color: var(--ok); font-family: var(--mono); font-size: 0.9em; }
.reclist.compact li { padding: 8px 4px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.steps li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.25);
}
.steps b { font-size: 15px; }
.steps span { color: var(--text-2); font-size: 14px; }

.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 30px 16px; color: var(--text-2); }
.empty-ic { width: 34px; height: 34px; color: var(--muted); opacity: .7; margin-bottom: 4px; }
.empty p { font-weight: 600; }
.empty .empty-sub { font-weight: 400; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ page header */
.page-head { position: relative; padding: 52px 0 32px; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 240px at 20% 0%, rgba(0, 200, 255, 0.1), transparent 70%);
}
.page-head h1 { margin-top: 10px; font-size: clamp(32px, 4.6vw, 48px); font-weight: 850; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.page-head .lead { margin-top: 10px; font-size: 16px; }
.error-head { padding: 90px 0 120px; }
.error-head .btn { margin-top: 28px; }

/* ------------------------------------------------------------ tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card:not(.flush) .table-scroll { margin: 0 -22px -22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); white-space: nowrap;
}
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.tbl .num { text-align: right; }
.tbl th:first-child, .tbl td:first-child { padding-left: 22px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 22px; }
.tbl tr.is-wr { background: linear-gradient(90deg, rgba(255, 200, 40, 0.07), transparent 60%); }
.tbl td.wrap-text { white-space: normal; min-width: 180px; max-width: 360px; overflow-wrap: anywhere; }
.tbl-compact th, .tbl-compact td { padding-left: 10px; padding-right: 10px; }  /* map leaderboards: 7 columns */
.c-pos { width: 56px; }
.recs { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; }
.pcell-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.show-sm { display: none; }
.c-act { text-align: right; width: 1%; }
.pcell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pcell .pname { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------ leaderboard */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: end; }
.podium-card {
  position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 16px 22px;
  border-radius: var(--radius); border: 1px solid var(--line); color: var(--text); min-width: 0;
  background: linear-gradient(180deg, rgba(23, 31, 48, 0.9), rgba(16, 22, 35, 0.9)); box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.podium-card:hover { transform: translateY(-3px); color: var(--text); border-color: var(--line-2); }
.podium-card.p1 { padding-top: 38px; padding-bottom: 30px; border-color: rgba(255, 200, 40, 0.35); background: linear-gradient(180deg, rgba(255, 200, 40, 0.12), rgba(16, 22, 35, 0.92) 70%); box-shadow: var(--shadow), 0 30px 70px -40px rgba(255, 200, 40, 0.55); }
.podium-card.p2 { border-color: rgba(200, 210, 225, 0.22); }
.podium-card.p3 { border-color: rgba(205, 127, 50, 0.3); }
.podium-pos { position: absolute; top: 12px; left: 12px; }
.podium-name { font-weight: 750; font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-pts { font-size: 22px; font-weight: 800; }
.podium-pts small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }
.p1 .av-lg { width: 80px; height: 80px; border-radius: 22px; font-size: 32px; box-shadow: 0 0 0 2px rgba(255, 200, 40, 0.6), 0 12px 30px -10px rgba(255, 200, 40, 0.5); }
.howto p { color: var(--text-2); max-width: 760px; }
.title-scale { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0 0; }
.title-scale li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ maps */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.search {
  position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: rgba(0, 200, 255, 0.5); box-shadow: 0 0 0 4px rgba(0, 200, 255, 0.1); }
.search .ic { position: absolute; left: 14px; color: var(--muted); }
.search input { width: 100%; height: 100%; padding: 0 14px 0 42px; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  color: var(--text-2); font: 650 13.5px var(--font); cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: rgba(150, 175, 220, 0.3); }
.chip.on { color: #00131c; background: var(--accent); border-color: var(--accent); }

.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.map-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); color: var(--text);
  background: linear-gradient(180deg, rgba(23, 31, 48, 0.9), rgba(16, 22, 35, 0.9)); box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.map-card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(0, 200, 255, 0.35); box-shadow: var(--shadow), 0 24px 50px -28px rgba(0, 200, 255, 0.5); }
.map-card.is-live { border-color: rgba(52, 211, 153, 0.4); }
.map-card .thumb img { transition: transform .5s; }
.map-card:hover .thumb img { transform: scale(1.04); }
.thumb-badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.thumb-badges .badge { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(5, 10, 18, 0.6); }
.tb-right { margin-left: auto; }
.mc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.mc-body h3 { font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.mc-mapper { font-size: 13px; color: var(--text-2); }
.mc-rec { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14.5px; min-width: 0; }
.mc-rec .gold { font-weight: 700; }
.mc-holder { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.mc-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.mc-foot .ic { width: 15px; height: 15px; }

.map-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.map-hero-bg { position: absolute; inset: 0; z-index: -1; }
.map-hero-bg .thumb { position: absolute; inset: -40px; aspect-ratio: auto; filter: blur(40px) saturate(1.2); opacity: .45; }
.map-hero-bg .thumb-name { display: none; }
.map-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 20, 0.35), var(--bg)); }
.map-hero-in { display: grid; grid-template-columns: 360px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.mh-thumb .thumb { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.back .ic { width: 16px; height: 16px; }
.mh-copy h1 { margin-top: 10px; font-size: clamp(28px, 4vw, 44px); font-weight: 850; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.mh-mapper { margin-top: 6px; color: var(--text-2); }
.mh-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.mh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mh-actions:empty { display: none; }
.mh-stats { display: grid; gap: 10px; margin: 0; min-width: 200px; }
.mh-stats > div, .stat-grid > div { padding: 12px 16px; border-radius: 14px; background: rgba(10, 14, 22, 0.55); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0; }
.mh-stats dt, .stat-grid dt { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.mh-stats dd, .stat-grid dd { margin: 2px 0 0; font-size: 21px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-stats dd.sub, .stat-grid dd.sub { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.map-grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
.tabs { display: flex; gap: 4px; padding: 0 22px 14px; overflow-x: auto; }
.tabs a { padding: 7px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tabs a.on { color: var(--text); background: var(--accent-soft); border-color: rgba(0, 200, 255, 0.3); }
.tabs + .tabs-style { margin-top: -6px; }
.tabs-style a { padding: 5px 12px; font-size: 13px; }
.tabs-style a.on { color: #7eeadb; background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.32); }

/* ------------------------------------------------------------ player */
.profile-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.profile-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 300px at 15% 0%, rgba(0, 200, 255, 0.12), transparent 70%), radial-gradient(600px 300px at 90% 20%, rgba(47, 107, 255, 0.1), transparent 70%); }
.profile-in { padding-top: 44px; padding-bottom: 36px; display: grid; gap: 28px; }
.profile-id { display: flex; align-items: center; gap: 26px; min-width: 0; }
.profile-copy { flex: 1; min-width: 0; }
.profile-copy h1 { margin-top: 6px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 850; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.progress { margin-top: 16px; max-width: 520px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 8px; }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.07); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; box-shadow: 0 0 12px var(--accent-glow); }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stat-grid dd { font-size: 20px; }
.stat-grid dd.dd-date { font-size: 17px; }
.progress-top b { font-size: 16px; }
.rec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; border: 1px solid rgba(255, 200, 40, 0.25); background: var(--gold-soft); color: var(--text); font-size: 14px; font-weight: 600; }
.rec-chip:hover { color: #fff; border-color: rgba(255, 200, 40, 0.5); }
.rec-chip .mono { font-weight: 700; }

/* ------------------------------------------------------------ admin */
.admin-head .eyebrow { color: var(--warn); }
.subnav { display: flex; gap: 4px; padding: 5px; margin-bottom: 24px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.subnav a .ic { width: 16px; height: 16px; opacity: .8; }
.subnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.subnav a.on { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.subnav a.on .ic { color: var(--accent); opacity: 1; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.span-2 { grid-column: span 2; }
.server-state { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.state-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.sd-ok { background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft), 0 0 18px rgba(52, 211, 153, 0.6); }
.sd-idle { background: var(--muted); box-shadow: 0 0 0 5px rgba(124, 137, 162, 0.15); }
.sd-err { background: var(--bad); box-shadow: 0 0 0 5px var(--bad-soft), 0 0 18px rgba(255, 91, 110, 0.6); }
.big { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--muted); }
.kv > b { font-weight: 600; text-align: right; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.alert .ic { width: 20px; height: 20px; margin-top: 1px; }
.alert p { margin-top: 4px; color: inherit; opacity: .85; overflow-wrap: anywhere; }
.alert-err { background: var(--bad-soft); border-color: rgba(255, 91, 110, 0.35); color: #ffc0c7; }
.alert-warn { background: var(--warn-soft); border-color: rgba(255, 165, 61, 0.35); color: #ffd6a8; }

.form-stack { display: grid; gap: 16px; }
.form-stack > form + form { padding-top: 16px; border-top: 1px solid var(--line); }
.row-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.field.grow { flex: 1 1 200px; }
.field.w-sm { flex: 0 0 120px; }
.field input, .field select {
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 8, 14, 0.5);
  color: var(--text); font: inherit; font-size: 14.5px; width: 100%; min-width: 0;
}
.field select { padding-right: 8px; }
.field input:focus, .field select:focus { outline: none; border-color: rgba(0, 200, 255, 0.55); box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12); }
.field p { margin: 0; }
.aplist { list-style: none; margin: 0 -10px; padding: 0; display: grid; gap: 2px; }
.aprow > summary, .ap-sum {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 120px auto; align-items: center; gap: 14px;
  padding: 10px; border-radius: 12px; cursor: pointer; list-style: none;
}
.ap-sum { cursor: default; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 120px; }
.aprow > summary::-webkit-details-marker { display: none; }
.aprow > summary:hover { background: rgba(255, 255, 255, 0.03); }
.aprow[open] > summary { background: rgba(0, 200, 255, 0.05); }
.aprow[open] .ap-btn { border-color: rgba(0, 200, 255, 0.45); color: var(--accent); }
.ap-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.ap-name .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ap-meta { text-align: right; white-space: nowrap; }
.ap-body {
  display: grid; gap: 14px; margin: 6px 10px 14px; padding: 16px 18px;
  border-radius: 14px; background: rgba(5, 8, 14, 0.45); border: 1px solid var(--line);
}
.ap-body > form + form { padding-top: 14px; border-top: 1px solid var(--line); }
.ap-body .row-form .btn { min-width: 104px; }
.cmdlist { list-style: none; margin: 0; padding: 0; display: grid; }
.cmdlist li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmdlist li:last-child { border-bottom: 0; }
.cmd-main { min-width: 0; }
.cmd-main p:first-child { font-weight: 600; overflow-wrap: anywhere; }
.cmd-main .small { overflow-wrap: anywhere; }
.res { flex: none; min-width: 64px; text-align: center; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.res-ok { background: var(--ok-soft); color: var(--ok); }
.res-err { background: var(--bad-soft); color: var(--bad); }
.res-wait { background: var(--warn-soft); color: var(--warn); }
.res-sent { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }
.searchbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.searchbar .search { max-width: 520px; }
.searchbar .btn { height: 44px; }
.crumbs { margin-bottom: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.crumbs .ic { width: 16px; height: 16px; }
.admin-player .pcell.big { margin-bottom: 14px; }
.admin-player h2 { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.admin-player p { margin-top: 4px; font-size: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mini-stats > div { padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(23, 31, 48, 0.85), rgba(16, 22, 35, 0.85)); border: 1px solid var(--line); }
.mini-stats b { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 13px; color: var(--muted); }
.need-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.need-list li { padding: 5px 10px; border-radius: 9px; background: var(--warn-soft); border: 1px solid rgba(255, 165, 61, 0.25); color: #ffd6a8; font-size: 13.5px; }
pre.log {
  margin: 0; max-height: 420px; overflow: auto; padding: 14px 16px; border-radius: 12px; background: #05070c; border: 1px solid var(--line);
  font: 12.5px/1.55 var(--mono); color: #c4cfe2; white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: rgba(5, 7, 12, 0.6); }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; padding-top: 32px; padding-bottom: 36px; }
.footer-brand .logo { font-size: 17px; }
.footer-brand .logo-mark { width: 26px; height: 26px; border-radius: 8px; }
.footer-brand p { margin-top: 8px; font-size: 13.5px; overflow-wrap: anywhere; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-note { grid-column: 1 / -1; font-size: 12.5px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-hero-in { grid-template-columns: 300px minmax(0, 1fr); }
  .mh-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 72px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .rec-card, .how-card { grid-column: auto; }
  .map-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .topbar-in { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 10px; }
  .mainnav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 8px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { padding: 7px 13px; font-size: 14px; }
  .hide-sm, .me-name { display: none; }
  .show-sm { display: inline; }
  .tbl .c-pos { width: 40px; }
  .me { padding: 3px; }
  .card { padding: 18px; border-radius: 16px; }
  .card-h.pad { padding: 18px 18px 0; }
  .card:not(.flush) .table-scroll { margin: 0 -18px -18px; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .tbl th { font-size: 11px; letter-spacing: .05em; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 14px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 14px; }
  .tbl .pos { width: 26px; height: 26px; font-size: 12px; border-radius: 8px; }
  .tbl .av-sm { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
  .tbl .pcell { gap: 8px; }
  .tbl .pcell .pname { max-width: 118px; }
  .tbl .mono { font-size: 13px; }
  .tbl td.wrap-sm { white-space: normal; overflow-wrap: anywhere; min-width: 110px; }
  .tbl td.wrap-text { min-width: 110px; }
  .pcell .mono.small { font-size: 11px; }
  .tabs { padding: 0 18px 12px; }
  .hero-title { font-size: 54px; }
  .lead { font-size: 15.5px; }
  .cta .btn { flex: 1 1 auto; }
  .hero-stats { gap: 12px 26px; }
  .hero-stats b { font-size: 22px; }
  .sc-mapname { font-size: 21px; }
  .podium { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .podium-card { padding: 30px 8px 16px; gap: 6px; }
  .podium-card.p1 { padding-top: 34px; }
  .podium-name { font-size: 14px; }
  .podium-pts { font-size: 16px; }
  .podium-card .ttl { font-size: 11px; padding: 1px 6px; }
  .podium-card .av-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
  .p1 .av-lg { width: 58px; height: 58px; border-radius: 16px; font-size: 24px; }
  .map-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .search { flex-basis: 100%; max-width: none; }
  .map-hero-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; padding-bottom: 28px; }
  .mh-thumb { order: 2; }
  .mh-stats { order: 3; }
  .mh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
  .mh-stats > div, .stat-grid > div { padding: 10px 12px; }
  .mh-stats dd { font-size: 17px; }
  .profile-in { padding-top: 28px; }
  .profile-id { gap: 16px; align-items: flex-start; }
  .av-xl { width: 76px; height: 76px; border-radius: 22px; font-size: 32px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subnav { flex-wrap: wrap; overflow: visible; }
  .subnav a { flex: 1 1 30%; justify-content: center; padding: 9px 8px; }
  .aprow > summary, .ap-sum { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .ap-state { grid-column: 1; grid-row: 2; padding-left: 44px; }
  .ap-meta { grid-column: 2; grid-row: 2; }
  .ap-body { margin: 4px 0 12px; padding: 14px; }
  .stat-grid dd { font-size: 17px; }
  .prow { padding: 10px 6px; gap: 12px; }
  .prow-state { font-size: 13px; }
  .pb { display: none; }
  .page-head { padding: 32px 0 22px; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.w-sm { flex: 1 1 100px; }
  .row-form .btn { flex: 1 1 auto; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .hero-title { font-size: 46px; }
  .sc-stats dd { font-size: 19px; }
  .prow-sub .muted { display: none; }
}


/* Shop. Item colors come from /shop.css as --c on .it-<cat>-<id>. */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wallet-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wallet-coins { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.wallet-how { color: var(--text-2); margin: 0; }
.coin-log, .earn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.coin-log li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.coin-log .ok { color: var(--ok); }
.earn-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.earn-list li:first-child, .coin-log li:first-child { border-top: 0; }
.vip-card p { color: var(--text-2); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.item { --c: var(--accent); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.item .badge { margin-left: auto; flex: none; }
.item-prev { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; }
.item-txt { display: grid; gap: 2px; min-width: 0; }
.item-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-price { font-size: 13px; color: var(--text-2); }
.ip-trail { display: block; width: 44px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--c)); box-shadow: 0 0 12px var(--c); }
.ip-tag { color: var(--c); font-weight: 800; white-space: nowrap; }
.ip-name { color: var(--c); font-weight: 800; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-name.rainbow { background: linear-gradient(90deg, #ff5a5a, #ffc828, #5aff8c, #28d2ff, #b45aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ip-sound { display: flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); }
@media (max-width: 760px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .wallet-coins { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
