/* ---------- Tokens (Velocity purple, dark only) ---------- */
/* ---------- Themes ----------
   Dark:  midnight black + greys, with a light and a deep purple.
   Light: after Singer's DLS Turbo "Sorcerer" - Fantasia Blue fading to deep navy,
          Pearl Grey, and carbon-black type on warm white. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090c;
  --bg-glow: rgba(124, 92, 255, .10);
  --bg-glow-2: rgba(80, 50, 180, .06);
  --surface: #111116;
  --surface-solid: #111116;
  --surface-2: #18181f;
  --surface-3: #22222b;
  --border: #25252e;
  --text: #f3f1f8;
  --text-2: #b4b0c2;
  --muted: #7d7989;
  --accent: #9d7bff;          /* light purple */
  --accent-strong: #6a3fe0;   /* deep purple - button fill, white text reads well */
  --accent-2: #c8b5ff;        /* purple for text on dark */
  --accent-ink: #ffffff;
  --accent-soft: rgba(157, 123, 255, .14);
  --good: #3fb67a;
  --warn: #e0b33a;
  --serious: #e8843f;
  --bad: #e5484d;
  --grid: #22222b;
  --shadow-c: #000;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .28);
  --particles: 157, 123, 255;
  --particles-dot: 210, 200, 240;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
/* Light: warm and calm - cream paper, soft warm greys, a clay orange accent */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f5;              /* cream */
  --bg-glow: rgba(217, 119, 87, .07);
  --bg-glow-2: rgba(232, 160, 110, .05);
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f3f1ea;       /* warm pearl */
  --surface-3: #e9e6dc;
  --border: #e6e2d8;
  --text: #1f1e1d;            /* warm near-black */
  --text-2: #57534b;
  --muted: #8a857b;
  --accent: #d97757;          /* clay orange */
  --accent-strong: #c15f3c;   /* deeper orange - buttons, white text reads well */
  --accent-2: #b5532f;        /* orange for text on cream */
  --accent-ink: #ffffff;
  --accent-soft: rgba(217, 119, 87, .12);
  --good: #3f7d4e;
  --warn: #a8700f;
  --serious: #c0561b;
  --bad: #c0392b;
  --grid: #ece8de;
  --shadow-c: #3d3929;
  --shadow: 0 1px 2px rgba(61, 57, 41, .05), 0 8px 24px rgba(61, 57, 41, .06);
  --particles: 217, 119, 87;
  --particles-dot: 193, 95, 60;
  --heading: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Background glow on its own fixed layer (cheap to scroll, unlike background-attachment: fixed) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--bg-glow), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, var(--bg-glow-2), transparent 55%);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border), 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.brand-name { font-size: 17px; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--text-2); padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.search { margin-left: auto; display: flex; align-items: center; flex: 0 1 360px; min-width: 0;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 10px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 12px; outline: none; font-size: 14px; }
.search button { border: 0; background: none; padding: 8px 10px; color: var(--muted); cursor: pointer; }
.search button:hover { color: var(--text); }

@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .search { flex: 1 1 100%; order: 3; }
  .brand-name { display: none; }
}

/* ---------- Layout ---------- */
.page { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; outline: none; }
.footer {
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 20px 16px 32px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border);
}
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.section-head a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.section-head a:hover { color: var(--accent); }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 8px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); }
.hero h1 .accent-text { background: linear-gradient(90deg, var(--accent-2), var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-logo { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border), 0 0 60px color-mix(in srgb, var(--accent) 45%, transparent); }
.hero p { color: var(--text-2); margin: 10px auto 22px; max-width: 520px; }
.hero-search { max-width: 620px; margin: 0 auto; display: flex; gap: 8px; }
.hero-search input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-solid); font-size: 16px; outline: none;
}
.hero-search input:focus { border-color: var(--accent); }
.hero-examples { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); box-shadow: 0 0 20px color-mix(in srgb, var(--accent-strong) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.12); background: var(--accent-strong); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2);
  text-decoration: none; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip-danger:hover { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--border)); }
.chip-danger.armed { color: #fff; background: var(--bad); border-color: var(--bad); }
.chip:disabled { opacity: .6; cursor: default; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2);
}
.badge-bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.badge-good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }

/* ---------- Player ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; }
.avatar { width: 84px; height: 84px; border-radius: 14px; background: var(--surface-2); object-fit: cover; flex: none; }
.profile-head h1 { overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.profile-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .profile-head { flex-wrap: wrap; }
  .profile-actions { margin-left: 0; width: 100%; }
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 20px; font-weight: 700; margin-top: 2px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-value.dim { color: var(--muted); font-size: 16px; font-weight: 600; }

.risk-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ring { width: 64px; height: 64px; flex: none; }
.ring text { font-weight: 800; font-size: 20px; fill: var(--text); }
.risk-verdict { font-weight: 700; font-size: 16px; }
.risk-note { margin: -4px 0 12px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-2); background: color-mix(in srgb, var(--warn) 9%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); }
.aka { font-size: 13px; color: var(--text-2); margin: 2px 0 0; overflow-wrap: anywhere; }
.aka strong { color: var(--text); font-weight: 600; }
.factors { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.factor { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.pip {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: #fff;
}
.pip-na { background: var(--surface-3); color: var(--muted); }
.factor-label { font-size: 14px; color: var(--text-2); }
.factor-value { font-size: 14px; font-weight: 600; text-align: right; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.table .col-rank { width: 36px; }
.table .col-hours { width: 70px; }
.table .col-seen { width: 130px; }
.table td { overflow-wrap: anywhere; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { text-decoration: none; }
.table a:hover { color: var(--accent); }
.hbar { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.hbar > span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.table-scroll { overflow-x: auto; }

.candidates { display: grid; gap: 8px; }
.candidate { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; }
.candidate-name { font-weight: 600; }
.candidate-info { font-size: 13px; color: var(--text-2); }
.candidate .btn { margin-left: auto; }
.link-form { display: flex; gap: 8px; margin-top: 12px; }
.link-form input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-solid); outline: none; }
.link-form input:focus { border-color: var(--accent); }

.callout { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--text); font-size: 14px; }
.callout-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); }
.callout-warn { background: color-mix(in srgb, var(--warn) 11%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); line-height: 1.5; }
.callout-warn code { font-family: var(--mono); font-size: 12px; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.badge-online { display: inline-block; max-width: min(340px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subhead { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.friend-list { display: grid; gap: 6px; }
.friend { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 13.5px; }
.friend:hover { background: var(--surface-3); }
.friend img, .friend-ph { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-3); display: block; }
.friend-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-ban { color: var(--bad); font-size: 12px; white-space: nowrap; }

/* ---------- Server ---------- */
.banner { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.server-title { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.server-title h1 { flex: 1 1 320px; overflow-wrap: anywhere; }
.pop-big { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pop-big small { font-size: 16px; color: var(--muted); font-weight: 600; }
.meter { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.connect { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 6px 6px 6px 12px; margin-top: 14px; }
.connect code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; }
.desc { white-space: pre-line; color: var(--text-2); font-size: 14px; margin: 0; }
.server-list { display: grid; gap: 8px; }
.server-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 14px; align-items: center; padding: 12px 14px; text-decoration: none; }
.server-row:hover { border-color: var(--accent); }
.server-row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-row .sub { font-size: 13px; color: var(--muted); }
.server-row .pop { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
@media (max-width: 560px) { .server-row { grid-template-columns: minmax(0, 1fr) auto; } .server-row .meter-cell { display: none; } }

/* ---------- Chart ---------- */
.chart-wrap { position: relative; }
.chart { width: 100%; height: 240px; display: block; touch-action: none; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: 0.16; }
.chart .cross { stroke: var(--text-2); stroke-width: 1; }
.chart .dot { fill: var(--accent); stroke: var(--surface-solid); stroke-width: 2; }
.tooltip {
  position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap;
  transform: translate(-50%, -100%); opacity: 0; transition: opacity .1s;
}
.tooltip strong { font-size: 15px; display: block; font-variant-numeric: tabular-nums; }
.range { display: flex; gap: 6px; margin-bottom: 12px; }
.range button { border: 1px solid var(--border); background: none; border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.range button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); font-weight: 600; }
.empty-chart { height: 200px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 0 20px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; cursor: pointer; }
.news-card:hover { border-color: var(--accent); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.news-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.news-card h3 { text-transform: none; letter-spacing: -0.01em; font-size: 16px; color: var(--text); margin: 0; }
.news-card p { margin: 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { font-size: 12.5px; color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; overflow: hidden; }
.article img.cover { width: 100%; max-height: 380px; object-fit: cover; }
.article .content { padding: 24px; }
.article .md { color: var(--text); font-size: 15.5px; line-height: 1.65; }
.article .md a { color: var(--accent); }
.md p { margin: 0 0 12px; }
.md ul { margin: 0 0 12px; padding-left: 20px; }

/* ---------- States ---------- */
.loading { display: grid; place-items: center; padding: 80px 0; color: var(--muted); gap: 12px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { max-width: 560px; margin: 60px auto; text-align: center; }
.error h2 { margin: 0 0 8px; }
.error p { color: var(--text-2); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--surface-3); border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px;
  box-shadow: var(--shadow); font-size: 14px; transition: all .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 560px) {
  .table .col-seen { display: none; }
  .factor-value { max-width: 45vw; }
  .card-pad { padding: 16px; }
}

/* ---------- Particle network background ---------- */
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.topbar, .page, .footer, .site-footer, .announce, .toast { position: relative; z-index: 1; }
.topbar { position: sticky; z-index: 10; }
.toast { position: fixed; z-index: 20; }

/* ---------- Map card ---------- */
.map-frame { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 1 / 1; }
.map-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.map-frame:hover img { transform: scale(1.02); }
.map-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.map-caption a, .map-empty a { color: var(--accent); text-decoration: none; }
.map-caption a:hover, .map-empty a:hover { text-decoration: underline; }
.map-empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px 12px; color: var(--text-2); font-size: 14px; background: var(--surface-2); border-radius: var(--radius-sm); }

.map-section { margin-top: 18px; }
.map-section-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.biome-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.biome-bar span { display: block; height: 100%; min-width: 3px; }
.biome-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.biome-legend span { display: inline-flex; align-items: center; gap: 6px; }
.biome-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.biome-legend strong { color: var(--text); font-weight: 600; }
.map-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.map-facts div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; display: grid; }
.map-facts strong { font-size: 17px; }
.map-facts span { font-size: 12px; color: var(--muted); }
.mons { display: flex; flex-wrap: wrap; gap: 6px; }
.mon { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.mon b { color: var(--accent); font-weight: 700; }
.mons-more { margin-top: 10px; }
.mons-more summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mons-more summary:hover { color: var(--text); }
@media (max-width: 420px) { .map-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Homepage typing animation ---------- */
.typer-line { min-height: 1.25em; }
.typer { background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; vertical-align: -0.08em; background: var(--accent); border-radius: 2px; animation: caret-blink 1s step-end infinite; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero { padding-top: 64px; }
@media (max-width: 560px) { .typer-line { min-height: 2.5em; } }

/* ---------- Splash screen (first load) ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(700px 400px at 50% 40%, var(--bg-glow), transparent 70%), var(--bg);
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-logo { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.pl-logo img { width: 84px; height: 84px; border-radius: 50%; animation: pl-pulse 1.6s ease-in-out infinite; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 1.1s linear infinite; }
.pl-ring circle { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 90 250; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 80%, transparent)); }
.pl-name { font-weight: 800; font-size: 22px; letter-spacing: .02em; animation: pl-fade 1.6s ease-in-out infinite; }
.pl-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.pl-bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: pl-slide 1.2s ease-in-out infinite; }
@keyframes pl-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pl-fade { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes pl-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- Skeleton placeholders ---------- */
.sk {
  display: inline-block; border-radius: 6px; max-width: 100%;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 45%, var(--surface-2) 65%);
  background-size: 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.stat .sk { display: block; }
.news-card .body .sk { display: block; }
.skeleton .card { box-shadow: none; }
.sk-label { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 0; animation: pl-fade 1.6s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Page transitions ---------- */
.page-enter > * { animation: fade-up .45s cubic-bezier(.2, .7, .2, 1) both; }
.page-enter .stack > *, .page-enter .grid-2 > *, .page-enter .news-grid > *, .page-enter .server-list > * {
  animation: fade-up .45s cubic-bezier(.2, .7, .2, 1) both;
}
.page-enter .stack > *:nth-child(2), .page-enter .grid-2 > *:nth-child(2), .page-enter .news-grid > *:nth-child(2), .page-enter .server-list > *:nth-child(2) { animation-delay: .06s; }
.page-enter .stack > *:nth-child(3), .page-enter .news-grid > *:nth-child(3), .page-enter .server-list > *:nth-child(3) { animation-delay: .12s; }
.page-enter .stack > *:nth-child(4), .page-enter .news-grid > *:nth-child(4), .page-enter .server-list > *:nth-child(4) { animation-delay: .18s; }
.page-enter .stack > *:nth-child(n+5), .page-enter .news-grid > *:nth-child(n+5), .page-enter .server-list > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Account menu (top bar) ---------- */
.account-slot { display: flex; align-items: center; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.menu { position: relative; }
.menu-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid); cursor: pointer; }
.menu-btn:hover { border-color: var(--accent); }
.menu-btn img { width: 28px; height: 28px; border-radius: 50%; }
.menu-name { font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: var(--accent-strong); color: #fff; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; z-index: 30; }
.menu-pop[hidden] { display: none; }
.menu-pop a, .menu-pop button { text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; text-decoration: none; color: var(--text); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.nav-pro { color: var(--accent-2) !important; }
@media (max-width: 720px) { .menu-name { display: none; } .account-slot { order: 2; margin-left: auto; } }

/* ---------- Pro locks & upsells ---------- */
.lock-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.upsell { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent-strong) 4%, transparent)); }
.upsell-icon { font-size: 22px; line-height: 1; }
.upsell-body strong { display: block; font-size: 15px; }
.upsell-body p { margin: 4px 0 12px; color: var(--text-2); font-size: 14px; }
.upsell-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.error .upsell { text-align: left; }
.lock-note { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.lock-note a { color: var(--accent); }
.error.card { padding: 28px; }

/* ---------- Pricing ---------- */
.pricing-hero { text-align: center; padding: 28px 0 22px; }
.pricing-hero h1 { font-size: clamp(30px, 5vw, 44px); }
.pricing-hero .accent-text { background: linear-gradient(90deg, var(--accent-2), var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-hero p { color: var(--text-2); margin: 10px auto 0; max-width: 520px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto; align-items: start; }
@media (max-width: 720px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { padding: 24px; position: relative; }
.plan-pro { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 60px color-mix(in srgb, var(--accent-strong) 25%, transparent); }
.plan-badge { position: absolute; top: -11px; right: 20px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--accent-strong); color: #fff; letter-spacing: .03em; }
.plan-name { font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.plan-price { font-size: 32px; font-weight: 800; margin: 6px 0 16px; letter-spacing: -.02em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; color: var(--text-2); }
.plan .yes { color: var(--good); font-weight: 800; }
.plan .no { color: var(--muted); }
.plan .val { color: var(--text); font-weight: 700; font-size: 13px; }
.plan-cta .btn { width: 100%; }
.plan-fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.plan-fine a { color: var(--accent); }
.plan-current { font-size: 13px; color: var(--muted); text-align: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.admin-stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.admin-stats .stat { background: var(--surface); border: 1px solid var(--border); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-quick { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.keygen { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.keygen label { display: grid; gap: 5px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.keygen label.grow { flex: 1 1 220px; }
.keygen select, .keygen input, .plan-set select, .search-mini {
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); font-size: 14px; outline: none; min-width: 0;
}
.keygen input[type=number] { width: 90px; }
.keygen select:focus, .keygen input:focus, .search-mini:focus, .plan-set select:focus { border-color: var(--accent); }
.new-keys { margin-top: 16px; border: 1px solid color-mix(in srgb, var(--good) 40%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--good) 8%, transparent); padding: 12px 14px; }
.new-keys-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.new-keys pre { margin: 10px 0 0; font-family: var(--mono); font-size: 14px; white-space: pre-wrap; user-select: all; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.search-mini { flex: 0 1 260px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); font-weight: 600; }
.admin-table { table-layout: auto; min-width: 760px; }
.admin-table td { overflow-wrap: normal; }
.admin-table .actions { text-align: right; white-space: nowrap; }
.admin-table .actions .btn + .btn { margin-left: 6px; }
.btn.armed { background: var(--bad); border-color: var(--bad); color: #fff; }
.small { font-size: 12px; }
.user-cell { display: flex; gap: 10px; align-items: center; }
.user-cell img { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); flex: none; }
.user-cell a { text-decoration: none; }
.row-banned td { opacity: .6; }
.plan-set { display: flex; gap: 6px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.log li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 14px; }
.log li:last-child { border-bottom: 0; }
.log-when { color: var(--muted); font-size: 12.5px; min-width: 96px; }
.admin-table .chip.mono { white-space: nowrap; }

/* ---------- Homepage showcase ---------- */
.showcase { margin: 72px 0 24px; }
.showcase-head { text-align: center; margin-bottom: 40px; }
.showcase-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0; letter-spacing: -0.02em; }
.showcase-head .accent-text { background: linear-gradient(90deg, var(--accent-2), var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showcase-head p { color: var(--text-2); margin: 10px auto 0; max-width: 560px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; margin: 0 0 72px; }
.feature.flip .feature-copy { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 56px; } .feature.flip .feature-copy { order: 0; } }
.cmd-chip { display: inline-block; font-family: var(--mono); font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-2); }
.feature-copy h3 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 12px; text-transform: none; color: var(--text); }
.feature-copy p { color: var(--text-2); font-size: 16px; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.checks li::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* Mock Discord window */
.tilt { perspective: 1100px; }
.dc-window {
  position: relative; border-radius: 16px; overflow: hidden; background: #2b2d31; border: 1px solid #3a3c42;
  box-shadow: 0 30px 80px color-mix(in srgb, var(--shadow-c) 60%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; will-change: transform;
  font-size: 14px;
}
.dc-window.tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 40px 100px color-mix(in srgb, var(--shadow-c) 70%, transparent), 0 0 60px color-mix(in srgb, var(--accent-strong) 25%, transparent); }
.dc-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: screen; }
.dc-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #1e1f22; border-bottom: 1px solid #3a3c42; }
.dc-lights { display: flex; gap: 7px; }
.dc-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dc-lights i:nth-child(2) { background: #febc2e; }
.dc-lights i:nth-child(3) { background: #28c840; }
.dc-channel { color: var(--muted); font-size: 13.5px; }
.dc-msg { padding: 14px 18px 18px; }
.dc-reply { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-left: 48px; }
.dc-reply strong { color: var(--text); font-weight: 600; }
.dc-mini-av { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.dc-cmd { color: var(--accent-2); }
.dc-head { display: flex; gap: 10px; align-items: center; margin: 6px 0 8px; }
.dc-av { width: 38px; height: 38px; border-radius: 50%; }
.dc-bot { font-weight: 700; }
.dc-app { font-size: 10.5px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; margin: 0 6px; }
.dc-time { color: var(--muted); font-size: 12px; }
.dc-embed { margin-left: 48px; background: #232428; border-left: 4px solid var(--accent); border-radius: 6px; padding: 12px 14px 12px; }
.dc-embed-top { display: flex; justify-content: space-between; gap: 12px; }
.dc-thumb { width: 72px; height: 72px; border-radius: 8px; flex: none; }
.dc-title { font-weight: 700; font-size: 16px; margin: 2px 0 6px; }
.dc-sub { font-weight: 700; font-size: 13px; color: var(--text-2); }
.dc-link { color: #7db4ff; }
.dc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin: 12px 0; }
.dc-grid div { display: grid; gap: 3px; min-width: 0; }
.dc-grid b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-grid span { font-size: 13px; color: var(--text-2); }
.dc-embed em { font-style: normal; font-weight: 700; color: var(--text); }
.dc-pill { background: #3a3c42; border-radius: 4px; padding: 1px 5px; width: max-content; max-width: 100%; }
.dc-bar-mini { display: block; height: 5px; border-radius: 3px; background: #3a3c42; overflow: hidden; margin-top: 3px; }
.dc-bar-mini i { display: block; height: 100%; background: var(--accent); }
.dc-risk { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.dc-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dc-lines { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.dc-lines li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dc-text { color: var(--text-2); font-size: 13.5px; margin: 0 0 6px; }
.dc-code { font-family: var(--mono); font-size: 12.5px; background: #1e1f22; border: 1px solid #3a3c42; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
.dc-map svg { display: block; width: 100%; border-radius: 6px; }
.dc-banner { height: 110px; border-radius: 6px; margin-top: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #0e2a44, #3987e5 55%, #cde2fb); }
.dc-banner span { font-weight: 900; letter-spacing: .2em; color: #fff; text-shadow: 0 2px 12px color-mix(in srgb, var(--shadow-c) 50%, transparent); font-size: 18px; }
.dc-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.dc-foot img { width: 16px; height: 16px; border-radius: 50%; }
@media (max-width: 560px) {
  .dc-reply, .dc-embed { margin-left: 0; }
  .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-thumb { width: 52px; height: 52px; }
}

/* ---------- Ordered homepage sections ---------- */
.home-section { padding: 88px 0 24px; position: relative; }
.home-section + .home-section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(720px, 80%); height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.section-intro { text-align: center; margin-bottom: 40px; }
.section-intro h2 { font-size: clamp(26px, 4vw, 38px); margin: 0; letter-spacing: -0.02em; }
.section-intro p { color: var(--text-2); margin: 10px auto 0; max-width: 560px; }
.section-intro .accent-text, .cta-inner .accent-text { background: linear-gradient(90deg, var(--accent-2), var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-intro.left { text-align: left; margin-bottom: 20px; }
.section-intro.left .section-head { margin-bottom: 0; }
.section-intro.left h2 { font-size: clamp(22px, 3vw, 30px); }
.showcase { margin: 0; }
.showcase .feature:last-child { margin-bottom: 24px; }

/* Hero fills the first screen */
.hero-full { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; position: relative; padding: 40px 0 90px; }
.hero-inner { width: 100%; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px;
  background: none; border: 0; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.scroll-hint:hover { color: var(--text); }
.scroll-hint i { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Closing call-to-action band */
.cta-band { padding-bottom: 40px; }
.cta-inner {
  text-align: center; padding: 48px 24px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--surface);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--shadow-c) 45%, transparent);
}
.cta-inner h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0; letter-spacing: -0.02em; }
.cta-inner p { color: var(--text-2); margin: 10px auto 22px; max-width: 520px; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(32px); backface-visibility: hidden; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); }
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
[data-stagger].revealed > * { opacity: 1; transform: none; }
[data-stagger].revealed > *:nth-child(2) { transition-delay: .08s; }
[data-stagger].revealed > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].revealed > *:nth-child(4) { transition-delay: .24s; }
[data-stagger].revealed > *:nth-child(n+5) { transition-delay: .32s; }
/* page-enter keyframes would override the reveal, so homepage sections opt out */
.page-enter > .home-section, .page-enter > .hero-full, .page-enter [data-stagger] > * { animation: none !important; }
@media (max-width: 900px) { [data-reveal="left"], [data-reveal="right"] { transform: translateY(32px); } }

/* Section dots */
.section-dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 15; }
.section-dots button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 2px; cursor: pointer; color: var(--muted); }
.section-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); transition: all .25s; }
.section-dots .dot-label { font-size: 12px; font-weight: 600; opacity: 0; transform: translateX(6px); transition: all .2s; white-space: nowrap; }
.section-dots button:hover .dot-label, .section-dots button:focus-visible .dot-label { opacity: 1; transform: none; color: var(--text); }
.section-dots button.active i { background: var(--accent); border-color: var(--accent); transform: scale(1.35); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
@media (max-width: 1100px) { .section-dots { display: none; } }

/* Scroll progress line */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent-strong), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Pro marketing (sleek, not shouty) ---------- */
.pro-tag {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 1px 6px; border-radius: 999px;
  color: var(--accent-2); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); text-decoration: none; vertical-align: 2px;
}
.pro-tag:hover { color: #fff; border-color: var(--accent); }
.pro-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center;
  padding: 44px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(520px 260px at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(420px 260px at 100% 100%, color-mix(in srgb, var(--accent-strong) 14%, transparent), transparent 70%),
    var(--surface-solid);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 30px 90px color-mix(in srgb, var(--shadow-c) 50%, transparent);
}
.pro-panel::before { /* thin gradient border */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 55%, transparent), color-mix(in srgb, var(--accent-strong) 15%, transparent) 40%, color-mix(in srgb, var(--accent-2) 35%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.pro-copy h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0; letter-spacing: -0.02em; }
.pro-copy .accent-text { background: linear-gradient(90deg, var(--accent-2), var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro-copy > p { color: var(--text-2); margin: 12px 0 20px; max-width: 460px; }
.pro-price { display: grid; gap: 2px; margin-bottom: 20px; }
.pro-price strong { font-size: 24px; letter-spacing: -0.01em; }
.pro-price span { font-size: 13px; color: var(--muted); }
.cta-buttons.left { justify-content: flex-start; }
.btn-ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.pro-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pro-perks li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--text) 2%, transparent); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.pro-perks li:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.perk-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--accent-2); background: var(--accent-soft); }
.pro-perks strong { font-size: 14.5px; }
.pro-perks p { margin: 3px 0 0; font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) { .pro-panel { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 28px; } }
@media (max-width: 520px) { .pro-perks { grid-template-columns: minmax(0, 1fr); } }


/* =====================================================================
   Revamp 2026-09: shell (announcement, header, command palette, footer)
   ===================================================================== */
.announce { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 44px; font-size: 13.5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-strong) 22%, transparent), color-mix(in srgb, var(--accent) 10%, transparent) 50%, color-mix(in srgb, var(--accent-strong) 22%, transparent)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.announce[hidden] { display: none; }
.announce a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.announce a:hover .announce-text { text-decoration: underline; text-underline-offset: 3px; }
.announce-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-tag { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-strong); color: #fff; }
.announce-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.announce-x:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

.topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.topbar-inner { gap: 14px; }
.nav { margin-left: 8px; }
.nav a.nav-pro { color: var(--accent-2); }
.cmdk-trigger { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 1 290px; min-width: 0; padding: 7px 8px 7px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--muted); cursor: pointer; font-size: 14px; text-align: left; transition: border-color .15s, color .15s; }
.cmdk-trigger:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); color: var(--text-2); }
.cmdk-trigger-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd, .cmdk-kbd { font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.nav-invite { flex: none; }
.menu-toggle { display: none; flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); cursor: pointer; place-items: center; }
.menu-toggle:hover { border-color: var(--accent); }
.mobile-nav { display: grid; padding: 6px 16px 14px; gap: 2px; border-top: 1px solid var(--border); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 600; }
.mobile-nav a:hover { background: var(--surface-2); color: var(--text); }
.mobile-nav .mobile-invite { margin-top: 6px; background: #5865f2; color: #fff; text-align: center; }
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .nav-invite { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: nowrap; gap: 8px; }
  .cmdk-trigger { flex: 1 1 auto; }
  .cmdk-kbd { display: none; }
  .account-slot { order: 0; margin-left: 0; }
}
@media (max-width: 420px) { .cmdk-trigger-text { font-size: 13px; } .brand-logo { width: 30px; height: 30px; } }

/* Command palette */
.cmdk { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--shadow-c) 72%, transparent); animation: cmdk-fade .15s ease both; }
.cmdk-panel { position: relative; width: min(640px, 100%); max-height: min(560px, 76vh); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: var(--surface-solid); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: 0 30px 90px color-mix(in srgb, var(--shadow-c) 60%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 60px color-mix(in srgb, var(--accent-strong) 18%, transparent);
  animation: cmdk-pop .18s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cmdk-fade { from { opacity: 0; } }
@keyframes cmdk-pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.cmdk-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); }
.cmdk-list { overflow-y: auto; padding: 8px; }
.cmdk-group + .cmdk-group { margin-top: 6px; }
.cmdk-group-title { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14.5px; }
.cmdk-item.active { background: var(--surface-3); box-shadow: inset 2px 0 0 var(--accent); }
.cmdk-item img, .cmdk-ic { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.cmdk-ic { display: grid; place-items: center; background: var(--surface-2); color: var(--accent-2); font-weight: 700; }
.cmdk-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cmdk-hint { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.cmdk-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.cmdk-foot span { display: inline-flex; gap: 4px; align-items: center; }
body.cmdk-open { overflow: hidden; }
@media (max-width: 560px) { .cmdk { padding-top: 10px; } .cmdk-foot { display: none; } .cmdk-hint { display: none; } }

/* Player chips + tiny risk badge (recent/saved players) */
.mini-risk { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.pchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid); text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 600; max-width: 240px; transition: border-color .15s, transform .15s; }
.pchip:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); transform: translateY(-1px); }
.pchip img, .pchip-ph { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--surface-3); }
.pchip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer */
.site-footer { width: 100%; margin-top: 40px; border-top: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 40%, transparent), color-mix(in srgb, var(--bg) 90%, transparent)); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 16px 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; }
.footer-brand p { color: var(--text-2); font-size: 14px; margin: 12px 0 16px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-cols a { display: block; padding: 5px 0; color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-cols a:hover { color: var(--text); }
.footer-cols a[hidden] { display: none; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding: 16px 16px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid); font-size: 12.5px; color: var(--text-2); text-decoration: none; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill[data-state="ok"] i { background: var(--good); box-shadow: 0 0 0 0 rgba(63, 182, 122, .5); animation: live-pulse 2s infinite; }
.status-pill[data-state="degraded"] i { background: var(--warn); }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 182, 122, .55); } 70% { box-shadow: 0 0 0 7px rgba(63, 182, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 182, 122, 0); } }
@media (max-width: 760px) { .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   Revamp 2026-09: homepage
   ===================================================================== */
.btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.btn-discord[hidden], [data-invite][hidden] { display: none !important; }
.accent-text { background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero2 { position: relative; text-align: center; padding: 56px 0 8px; }
.hero2 h1 { font-size: clamp(34px, 6.2vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin: 18px 0 0; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 5px; border-radius: 999px; text-decoration: none; font-size: 13.5px; color: var(--text-2);
  background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); transition: border-color .2s, color .2s, transform .2s; }
.hero-pill:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.hero-pill > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-new { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-strong); color: #fff; }
.hero-sub { color: var(--text-2); font-size: clamp(16px, 2vw, 18px); max-width: 620px; margin: 18px auto 28px; line-height: 1.55; }
.hero-search-xl { max-width: 680px; align-items: center; gap: 0; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--border);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow-c) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 6%, transparent); transition: border-color .2s, box-shadow .2s; color: var(--muted); }
.hero-search-xl:focus-within { border-color: var(--accent); box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow-c) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.hero-search-xl input { border: 0; background: none; padding: 12px 12px; font-size: 16.5px; }
.hero-search-xl .btn { padding: 12px 22px; border-radius: 11px; font-size: 15px; }
.hero-examples { margin-top: 14px; align-items: center; }
.hero-examples kbd { margin-left: 4px; font-size: 10.5px; padding: 0 5px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.live-stats { display: inline-flex; align-items: center; gap: 0; margin: 34px auto 0; padding: 10px 8px; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-solid) 70%, transparent); flex-wrap: wrap; justify-content: center; }
.live-stats.ls-hidden { display: none; }
.ls { display: grid; gap: 1px; padding: 4px 22px; border-left: 1px solid var(--border); text-align: left; }
.ls strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ls span { font-size: 12.5px; color: var(--muted); }
.ls-live { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--good); }
.ls-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: live-pulse 2s infinite; }
.ls-live + .ls { border-left: 0; }
@media (max-width: 640px) {
  .live-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; width: 100%; padding: 12px 6px; }
  .ls-live { grid-column: 1 / -1; justify-content: center; }
  .ls { border-left: 0; text-align: center; padding: 2px 8px; }
}

/* Product preview under the hero (leans back, flattens as you scroll) */
.preview { margin: 56px auto 0; max-width: 1040px; perspective: 1600px; }
.preview-frame { --tilt: 16deg; position: relative; text-align: left; border-radius: 18px; overflow: hidden; background: var(--surface-solid);
  border: 1px solid #3a3c42; transform: rotateX(var(--tilt)) scale(calc(1 - var(--tilt) / 200deg)); transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 50px 120px color-mix(in srgb, var(--shadow-c) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent), 0 -20px 80px color-mix(in srgb, var(--accent-strong) 18%, transparent); }
.preview-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--bg) 55%, transparent)); }
.pv-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pv-url { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--surface-solid); border-radius: 7px; padding: 4px 10px; max-width: 360px; margin: 0 auto; }
.pv-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.pv-body { padding: 20px; display: grid; gap: 14px; }
.pv-head { display: flex; gap: 14px; align-items: center; }
.pv-avatar { width: 56px; height: 56px; border-radius: 12px; flex: none; background: linear-gradient(135deg, #5b3fa8, #1f8f86); }
.pv-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pv-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pv-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.pv-card { background: var(--surface-2); border-radius: 12px; padding: 14px; min-width: 0; }
.pv-title { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.pv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pv-stat { background: var(--surface-solid); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.pv-stat span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-stat strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.pv-stat small { font-size: 11px; color: var(--muted); margin-left: 2px; }
.pv-risk { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pv-ring { width: 56px; height: 56px; flex: none; }
.pv-track { fill: none; stroke: var(--surface-3); stroke-width: 7; }
.pv-arc { fill: none; stroke: var(--good); stroke-width: 7; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 0 164; transition: stroke-dasharray 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.played .pv-arc { stroke-dasharray: calc(163.4 * var(--p)) 164; }
.pv-ring text { fill: var(--text); font-weight: 800; font-size: 20px; }
.pv-verdict { font-weight: 800; color: var(--good); }
.pv-note { font-size: 12px; color: var(--muted); }
.pv-factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.pv-factors li { display: flex; align-items: center; gap: 8px; background: var(--surface-solid); border-radius: 7px; padding: 6px 8px; }
.pv-factors i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pv-factors span { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-factors b { margin-left: auto; white-space: nowrap; }
.pv-kd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.pv-kd strong { font-size: 34px; letter-spacing: -0.03em; }
.pv-kd span { color: var(--muted); font-size: 13px; }
.pv-bars { display: grid; gap: 10px; }
.pv-bars div { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; }
.pv-bars span { color: var(--text-2); }
.pv-bars i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-3); position: relative; overflow: hidden; }
.pv-bars i::after { content: ''; position: absolute; inset: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent-strong), var(--accent-2)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1) .3s; }
.played .pv-bars i::after { width: var(--w); }
@media (max-width: 860px) { .pv-grid { grid-template-columns: minmax(0, 1fr); } .pv-card:nth-child(3) { display: none; } }
@media (max-width: 560px) { .preview { margin-top: 40px; } .pv-body { padding: 14px; } .pv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-badges .badge:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .preview-frame { transform: none; } .pv-arc { stroke-dasharray: calc(163.4 * var(--p)) 164; } .pv-bars i::after { width: var(--w); } }

/* Cursor spotlight on cards */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before { content: ''; position: absolute; top: 46px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent); }
.step { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.step:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-3px); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--accent-2); }
.step-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-strong) 35%, transparent); }
.step h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps::before { display: none; } }

/* Bento grid of what a lookup shows */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bento-tile { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; overflow: hidden; transition: border-color .2s; }
.bento-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.bento-tile.span-2 { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.bento-kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.bento-tile h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; line-height: 1.25; }
.bento-tile p { margin: 0; color: var(--text-2); font-size: 14px; }
.bento-risk { display: flex; gap: 16px; align-items: center; }
.bento-ring { width: 104px; height: 104px; flex: none; }
.bento-ring .pv-track { stroke-width: 9; }
.bento-arc { fill: none; stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.bento-ring text { fill: var(--text); font-weight: 800; font-size: 30px; }
.bento-risk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); min-width: 0; flex: 1; }
.bento-risk li { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 8px; padding: 7px 10px; }
.bento-risk li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bento-risk li b { margin-left: auto; color: var(--text); white-space: nowrap; }
.bento-bars { display: grid; gap: 9px; margin-top: 14px; }
.bento-bars div { display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.bento-bars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-strong), var(--accent-2)); width: var(--w); }
.bento-bars b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.bento-kd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.bento-kd div { background: var(--surface-2); border-radius: 10px; padding: 10px; display: grid; }
.bento-kd strong { font-size: 22px; letter-spacing: -0.02em; }
.bento-kd span { font-size: 12px; color: var(--muted); }
.bento-avatars { display: flex; align-items: center; margin-top: 16px; }
.bento-avatars span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface-solid); margin-left: -10px; position: relative; }
.bento-avatars span:first-child { margin-left: 0; }
.bento-avatars span i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface-solid); }
.bento-avatars em { font-style: normal; margin-left: 14px; font-size: 13.5px; font-weight: 700; color: var(--bad); }
.bento-online { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--good) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--good) 25%, transparent); }
.bento-online > i { width: 12px; height: 12px; border-radius: 50%; background: var(--good); flex: none; animation: live-pulse 2s infinite; }
.bento-online strong { display: block; font-size: 14px; }
.bento-online span { font-size: 12.5px; color: var(--text-2); }
.bento-names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.bento-names span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.bento-names span:first-child { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.bento-chart { position: relative; height: 130px; border-radius: 12px; background: var(--surface-2); padding: 12px 0 0; overflow: hidden; }
.bento-chart svg { width: 100%; height: 100%; display: block; }
.bento-area { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.bento-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bento-wipe { position: absolute; top: 10px; right: 12px; text-align: right; background: color-mix(in srgb, var(--bg) 75%, transparent); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; }
.bento-wipe span { display: block; font-size: 11px; color: var(--muted); }
.bento-wipe strong { font-size: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-tile.span-2 { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .bento-risk { flex-direction: column; align-items: stretch; }
  .bento-ring { margin: 0 auto; }
}

/* Showcase CTA */
.showcase-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; text-align: center; font-size: 14px; }
.showcase-cta code { font-size: 12.5px; }

/* Live section */
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
.live-card .section-head h2 { font-size: 16px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); background: var(--surface-2); transition: background .15s, transform .15s; }
.mini-list a:hover { background: var(--surface-3); transform: translateX(2px); }
.mini-list img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-3); }
.mini-rank { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--accent-2); flex: none; }
.mini-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.mini-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-sub { font-size: 12.5px; color: var(--muted); }
.mini-meter { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.mini-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-strong), var(--accent-2)); }
.mini-pop { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.mini-pop small { color: var(--muted); font-weight: 500; }
.live-card .server-list.skeleton .server-row { box-shadow: none; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 800px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq-item { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--surface-2); position: relative; }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 1px; background: var(--accent-2); transition: transform .2s; }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic::after { transform: rotate(0); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* Final CTA */
.cta-logo { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; box-shadow: 0 0 0 1px var(--border), 0 0 50px color-mix(in srgb, var(--accent) 50%, transparent); }
.home-section { padding-top: 96px; }
.hero2 + .home-section { padding-top: 110px; }
.footer-brand .brand-name { display: inline; }

/* =====================================================================
   Revamp 2026-09: inner pages
   ===================================================================== */
.page-hero { text-align: center; padding: 40px 0 34px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.page-hero > p { color: var(--text-2); font-size: 16.5px; max-width: 600px; margin: 14px auto 0; }
.page-hero .hero-search { margin-top: 26px; }

/* "What's new" nav dot */
.nav a.has-dot { position: relative; }
.nav a.has-dot::after { content: ''; position: absolute; top: 5px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px color-mix(in srgb, var(--accent-2) 90%, transparent); }

/* Changelog timeline */
.timeline { list-style: none; margin: 8px auto 0; padding: 0; max-width: 900px; display: grid; gap: 22px; }
.tl-item { display: grid; grid-template-columns: 150px 22px minmax(0, 1fr); gap: 18px; align-items: start; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 179px; top: 26px; bottom: -30px; width: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 50%, transparent), transparent); }
.tl-item:last-child::before { display: none; }
.tl-date { text-align: right; padding-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.tl-dot { width: 14px; height: 14px; margin: 22px auto 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
.tl-card h2 { margin: 10px 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.tl-card ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--text-2); font-size: 14.5px; }
.tl-card li::marker { color: var(--accent); }
.tl-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.tl-tag.tl-improved { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.tl-tag.tl-launch { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 14px minmax(0, 1fr); gap: 12px; }
  .tl-item::before { left: 6px; }
  .tl-date { grid-column: 2; text-align: left; padding-top: 0; order: -1; }
  .tl-dot { grid-row: 1 / span 2; grid-column: 1; margin-top: 4px; }
  .tl-card { grid-column: 2; }
}

/* Player page: save/share + sticky mini bar */
.btn-save.saved { color: #f5c542; border-color: color-mix(in srgb, #f5c542 45%, var(--border)); background: color-mix(in srgb, #f5c542 10%, var(--surface-2)); }
.player-sticky { position: fixed; left: 0; right: 0; top: 0; z-index: 12; transform: translateY(-110%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.player-sticky.show { transform: none; pointer-events: auto; }
.player-sticky-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 96%, transparent); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 16px 40px color-mix(in srgb, var(--shadow-c) 45%, transparent); }
.player-sticky img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.player-sticky strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-sticky-sub { color: var(--muted); font-size: 13px; white-space: nowrap; }
.player-sticky .btn-save { margin-left: auto; }
@media (max-width: 520px) { .player-sticky-sub { display: none; } }

/* Lists: toolbar, summary chips, empty state */
.list-toolbar { margin-bottom: 14px; }
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.summary-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.summary-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.summary-chip strong { color: var(--text); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: live-pulse 2s infinite; }
.server-row.ranked { grid-template-columns: auto minmax(0, 1fr) 150px auto; }
.server-row .sub .badge { margin-left: 6px; font-size: 11px; padding: 1px 7px; }
.server-row { transition: border-color .15s, transform .15s; }
.server-row:hover { transform: translateY(-1px); }
@media (max-width: 560px) { .server-row.ranked { grid-template-columns: auto minmax(0, 1fr) auto; } }
.empty-state { text-align: center; }
.empty-state strong { font-size: 16px; }
.empty-state p { color: var(--text-2); margin: 6px 0 0; }

/* News: featured story */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; text-decoration: none; transition: border-color .2s; }
.news-feature:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.news-feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; background: var(--surface-2); }
.news-feature .body { padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.news-feature h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.news-feature p { margin: 0; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; color: var(--accent-2); font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .news-feature { grid-template-columns: minmax(0, 1fr); } .news-feature img { min-height: 0; aspect-ratio: 16 / 9; } }

/* Pricing trust row */
.trust-row { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--text-2); }

/* header fit */
.nav a { white-space: nowrap; }
.cmdk-trigger { flex-basis: 260px; }
@media (max-width: 1240px) { .menu-name { display: none; } }
.player-sticky { top: 64px; }
.player-sticky-inner { border-radius: 0 0 14px 14px; }

.dc-map img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 6px; background: #123f5c; }

/* Activity + region */
.activity-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.activity-head h3 { margin: 0; }
.region-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; }
.region-globe { font-size: 22px; line-height: 1; }
.region-row > div { flex: 1; min-width: 0; }
.region-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; margin: 8px 0 6px; background: var(--surface-3); }
.region-bar i { display: block; height: 100%; background: var(--accent); }
.region-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); }
.region-legend b { color: var(--text); }
.activity-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 14px; }
@media (max-width: 900px) { .activity-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .activity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-link { color: var(--text); text-decoration: none; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-link:hover { color: var(--accent); }
.activity-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
@media (max-width: 860px) { .activity-body { grid-template-columns: minmax(0, 1fr); } }
.heat { display: grid; gap: 3px; overflow-x: auto; }
.heat-row, .heat-hours { display: grid; grid-template-columns: 34px repeat(24, minmax(10px, 1fr)); gap: 3px; align-items: center; }
.heat-hours span { font-size: 10.5px; color: var(--muted); }
.heat-day { font-size: 11.5px; color: var(--text-2); }
.heat-row i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); position: relative; }
.heat-row i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); opacity: var(--v); }
.heat-foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.insights li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.insights li > span { font-size: 18px; line-height: 1.2; }
.insights strong { display: block; font-size: 14px; }
.insights small { color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .heat-row, .heat-hours { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; } .heat { gap: 2px; } }

/* =====================================================================
   Redesign 2026-09-24 b: two themes, minimal + round, lots of small motion
   ===================================================================== */
html { scroll-behavior: smooth; }
body { transition: background-color .35s var(--ease), color .35s var(--ease); letter-spacing: -0.005em; }
.theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), fill .4s var(--ease) !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
#particles { opacity: .75; transition: opacity .4s; }
:root[data-theme="light"] #particles { opacity: .45; }

/* Brand: a quiet wordmark, the logo only small in the top bar */
.brand-logo { width: 26px; height: 26px; box-shadow: none; }
.brand-name { font-weight: 800; letter-spacing: -0.03em; font-size: 18px; }
.brand-name::after { content: '.'; color: var(--accent); }
.wordmark .brand-name { font-size: 20px; }
#preloader { background: var(--bg); }
.pl-name { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; animation: none;
  background: linear-gradient(90deg, var(--text) 30%, var(--accent) 50%, var(--text) 70%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
.pl-name::after { content: '.'; }

/* Top bar */
.topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent); }
.nav a { position: relative; background: none !important; color: var(--text-2); transition: color .2s; }
.nav a::before { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::before, .nav a.active::before { transform: scaleX(1); }
.nav a.nav-pro { color: var(--accent-2); }
.cmdk-trigger { border-radius: 999px; background: var(--surface-2); border-color: transparent; }
.cmdk-trigger:hover { border-color: var(--border); }
.theme-toggle { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: transform .2s var(--ease), background .2s; }
.theme-toggle:hover { transform: rotate(12deg); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { position: absolute; transition: transform .5s var(--ease), opacity .3s; }
:root[data-theme="dark"] .ti-sun, :root:not([data-theme]) .ti-sun { transform: translateY(26px) rotate(90deg); opacity: 0; }
:root[data-theme="light"] .ti-moon { transform: translateY(-26px) rotate(-90deg); opacity: 0; }
.menu-btn { background: var(--surface-2); border-color: transparent; }
.menu-toggle { border-radius: 50%; background: var(--surface-2); }

/* Round, calm surfaces */
.card, .step, .bento-tile, .faq-item, .tl-card, .pro-perks li { border-radius: var(--radius); }
.card { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--border) 80%, transparent); }
.stat, .pv-card, .factor, .candidate, .friend, .mini-list a, .insights li, .region-row { border-radius: var(--radius-sm); }
.btn { border-radius: 999px; padding: 10px 18px; border-color: var(--border); background: var(--surface-2); transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); background: var(--surface-3); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sm { padding: 6px 13px; }
.btn-lg { padding: 13px 24px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border-color: transparent; color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-strong) 28%, transparent); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); filter: brightness(1.08); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent-strong) 34%, transparent); }
.btn-ghost { background: none; border-color: transparent; }
.btn-discord { box-shadow: none; }
.chip, .badge, .summary-chip, .pchip { border-radius: 999px; }
input, .search-mini, .link-form input, .keygen select, .keygen input { border-radius: 14px; }
.hero-search-xl { border-radius: 999px; padding-left: 20px; box-shadow: var(--shadow); }
.hero-search-xl .btn { border-radius: 999px; }
.hero-search-xl:focus-within { box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft); }
.seg { border-radius: 999px; }
.seg button { transition: background .2s, color .2s; }
.upsell { border-radius: var(--radius-sm); border-style: solid; border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--accent-soft); }
.caret { box-shadow: none; }
.step-num { box-shadow: none; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border-radius: 14px; }
.pro-panel, .cta-inner { border-radius: 28px; box-shadow: var(--shadow); }
.cta-inner { background: radial-gradient(600px 240px at 50% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.plan-pro { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); }
.dc-window { border-color: #3a3c42; }
.eyebrow, .bento-kicker, .tl-tag { color: var(--accent-2); }
.section-dots button.active i { background: var(--accent); border-color: var(--accent); box-shadow: none; }

/* Motion: things respond to you */
.server-row, .news-card, .bento-tile, .step, .tl-card, .faq-item, .pv-card { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.server-row:hover, .news-card:hover, .bento-tile:hover, .tl-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px color-mix(in srgb, var(--shadow-c) 18%, transparent); }
.news-card img { transition: transform .5s var(--ease); }
.news-card:hover img, .news-feature:hover img { transform: scale(1.04); }
.news-feature img { transition: transform .6s var(--ease); }
.faq-item p { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.stat { transition: background .2s, transform .2s var(--ease); }
.stat:hover { transform: translateY(-2px); background: var(--surface-3); }
.hbar > span, .meter > span, .mini-meter i { transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.ring circle:last-of-type { animation: ring-in 1.1s var(--ease) both; }
@keyframes ring-in { from { stroke-dasharray: 0 999; } }
.toast { border-radius: 999px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent-strong); color: #fff; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn-sm { min-height: 38px; } }
@media (prefers-reduced-motion: reduce) { .btn:hover, .server-row:hover, .bento-tile:hover, .stat:hover { transform: none; } }
.btn-discord, .btn-discord:hover { background: #5865f2; border-color: transparent; color: #fff; }
.btn-discord:hover { filter: brightness(1.08); }
.player-sticky { opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s; }
.player-sticky.show { opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s; }
.player-sticky-inner { background: color-mix(in srgb, var(--surface) 96%, transparent); }
.announce { background: var(--accent-soft); border-bottom-color: color-mix(in srgb, var(--accent) 22%, var(--border)); }
/* Discord windows always look like Discord (dark), whatever the site theme */
.dc-window { --text: #f2f3f5; --text-2: #b5bac1; --muted: #949ba4; --surface-2: #2e3035; --accent: #9d7bff; --accent-2: #c8b5ff; color: var(--text); }
@media (max-width: 520px) { .menu-btn .plan-pill { display: none; } .topbar-inner { gap: 6px; } .theme-toggle, .menu-toggle { width: 36px; height: 36px; } }

/* Light mode: warm serif headlines, flat solid buttons, no gradients */
:root[data-theme="light"] :is(h1, h2, .hero2 h1, .page-hero h1, .section-intro h2, .pro-copy h2, .cta-inner h2, .feature-copy h3, .news-feature h2) { font-family: var(--heading); font-weight: 600; letter-spacing: -0.02em; }
:root[data-theme="light"] .accent-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-2); }
:root[data-theme="light"] .btn-primary, :root[data-theme="light"] .btn-primary:hover { background: var(--accent-strong); box-shadow: none; }
:root[data-theme="light"] .btn-primary:hover { background: #ad5334; }
:root[data-theme="light"] .step-num { background: var(--accent-soft); color: var(--accent-2); }
:root[data-theme="light"] .pv-avatar, :root[data-theme="light"] .dc-thumb { background: linear-gradient(135deg, #e8a06e, #c15f3c) !important; }
:root[data-theme="light"] .pv-bars i::after, :root[data-theme="light"] .bento-bars i, :root[data-theme="light"] .mini-meter i { background: var(--accent); }
:root[data-theme="light"] .caret { background: var(--accent); }
:root[data-theme="light"] .brand-logo { filter: grayscale(1) contrast(1.1); opacity: .9; }
:root[data-theme="light"] .announce-tag, :root[data-theme="light"] .pill-new, :root[data-theme="light"] .plan-pill, :root[data-theme="light"] .plan-badge { background: var(--accent-strong); }
:root[data-theme="light"] .card, :root[data-theme="light"] .bento-tile, :root[data-theme="light"] .step { box-shadow: var(--shadow); }
:root[data-theme="light"] .btn-discord, :root[data-theme="light"] .btn-discord:hover, :root[data-theme="light"] .mobile-nav .mobile-invite { background: var(--text); color: var(--bg); }
:root[data-theme="light"] .btn-discord:hover { background: #3d3929; filter: none; }
/* "Add to Discord": a calm outlined pill that matches the theme instead of Discord blue */
.btn-discord, .btn-discord:hover,
:root[data-theme="light"] .btn-discord, :root[data-theme="light"] .btn-discord:hover {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); filter: none; box-shadow: none;
}
.btn-discord svg { color: var(--accent); transition: transform .3s var(--ease); }
.btn-discord:hover, :root[data-theme="light"] .btn-discord:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.btn-discord:hover svg { transform: rotate(-8deg) scale(1.1); }
.nav-invite { background: transparent !important; border-color: transparent !important; color: var(--text-2) !important; }
.nav-invite:hover { color: var(--text) !important; background: var(--surface-2) !important; }
.mobile-nav .mobile-invite, :root[data-theme="light"] .mobile-nav .mobile-invite { background: var(--surface-2); color: var(--text); }

/* Dark mode background: no particles - a flashlight that follows the cursor
   and reveals a faint dot grid where it shines */
#flashlight { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
:root[data-theme="dark"] #particles { display: none; }
:root[data-theme="dark"] #flashlight { display: block; }
#flashlight::before, #flashlight::after { content: ''; position: absolute; inset: 0; transition: opacity .6s var(--ease); }
/* the light itself */
#flashlight::before {
  background:
    radial-gradient(520px circle at var(--fx, 50%) var(--fy, 30%), rgba(157, 123, 255, .14), transparent 65%),
    radial-gradient(180px circle at var(--fx, 50%) var(--fy, 30%), rgba(200, 181, 255, .06), transparent 70%);
  opacity: .55;
}
/* dot grid, only visible inside the beam */
#flashlight::after {
  background-image: radial-gradient(rgba(200, 181, 255, .5) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(300px circle at var(--fx, 50%) var(--fy, 30%), #000, transparent 70%);
          mask-image: radial-gradient(300px circle at var(--fx, 50%) var(--fy, 30%), #000, transparent 70%);
  opacity: .22;
}
.fl-active #flashlight::before { opacity: 1; }
.fl-active #flashlight::after { opacity: .5; }
@media (hover: none) { #flashlight::after { opacity: .18; } }

/* Server players: online chips + weekly leaderboard */
.players-grid { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .players-grid { grid-template-columns: minmax(0, 1fr); } }
.online-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; }
.online-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.online-chip:hover { background: var(--surface-3); transform: translateY(-1px); }
.online-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); flex: none; }
.leader { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.leader li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 90px 50px; gap: 10px; align-items: center; font-size: 14px; }
.leader-name { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-name:hover { color: var(--accent-2); }
.leader-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.leader-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: grow .9s var(--ease) both; }
.leader b { text-align: right; font-variant-numeric: tabular-nums; }
.srv-tabs { margin-bottom: 14px; }
.flag { font-size: 1.05em; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 0 20px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; margin: 0; }
.legal > .muted { margin: 8px 0 20px; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-nav a { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.legal-nav a.active, .legal-nav a:hover { background: var(--accent-soft); color: var(--accent-2); }
.legal section { padding: 18px 0; border-top: 1px solid var(--border); }
.legal h2 { font-size: 18px; margin: 0 0 8px; }
.legal p { margin: 0; color: var(--text-2); line-height: 1.7; }
.footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Account: two even columns */
.grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .grid-2.even { grid-template-columns: minmax(0, 1fr); } }
.mini-list .btn { margin-left: auto; }

/* Team check */
.group-form textarea { width: 100%; resize: vertical; min-height: 110px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 14px/1.5 var(--mono); outline: none; }
.group-form textarea:focus { border-color: var(--accent); }
.group-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.group-summary { margin: 18px 0 10px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-table-wrap { overflow-x: auto; margin-top: 10px; }
.group-table { table-layout: auto; min-width: 560px; }
.group-table th[scope="row"] { color: var(--muted); font-weight: 600; white-space: nowrap; }
.group-table td { white-space: nowrap; }
.group-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; color: var(--text); font-weight: 700; }
.group-head img { width: 40px; height: 40px; border-radius: 10px; }
.group-head span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.group-table td { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Plans: 3 tiers + billing toggle ---------- */
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; }
@media (max-width: 980px) { .plans.plans-3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.plan-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-price { margin-bottom: 2px; }
.plan-sub { font-size: 13px; color: var(--text-2); min-height: 20px; margin-bottom: 16px; }
.plan-sub b { color: var(--good); }
.plan li.plan-star span:last-child { color: var(--text); font-weight: 600; }
.plan-plus { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.plan-pill-plus { background: color-mix(in srgb, var(--accent) 22%, var(--surface-3)); color: var(--text); }
.billing-toggle { display: flex; justify-content: center; gap: 4px; margin: 0 auto 26px; padding: 4px; width: max-content; max-width: 100%; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.billing-toggle button { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.billing-toggle button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.save-pill { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pro-tool { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
.pro-tool:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.pro-tool h3 { margin: 10px 0 6px; }
.pro-tool-icon { font-size: 26px; }

/* ---------- Raid window ---------- */
.raid-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.raid-head h3 { margin: 0; }
.raid-now { display: inline-block; margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
.raid-now-off { color: var(--good); }
.raid-now-on { color: var(--warn); }
.raid-windows { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.raid-windows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.raid-windows li.best { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); background: color-mix(in srgb, var(--good) 8%, var(--surface-2)); }
.raid-windows strong { font-size: 20px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.raid-windows small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.raid-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.raid-slots .chip b { margin-left: 4px; }
.raid-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 120px; align-items: end; }
.raid-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.raid-bar i { display: block; border-radius: 3px 3px 0 0; min-height: 3px; }
.raid-bar span { font-size: 10px; color: var(--muted); height: 14px; margin-top: 4px; text-align: left; }
.raid-note { margin: 14px 0 0; }
.raid-members td, .scan-table td { font-size: 13.5px; }
.raid-members th:first-child { width: 38%; }
.scan-table th:first-child { width: 28%; }
.scan-table th:nth-child(2) { width: 48%; }
.scan-table .badge { white-space: normal; display: inline-block; }
#raid-out { margin-top: 16px; }
.raid-locked { display: grid; gap: 18px; }
.raid-example { position: relative; filter: blur(1.5px); opacity: .75; pointer-events: none; }
.raid-example-tag { position: absolute; top: -6px; right: 0; z-index: 1; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); filter: none; }
.group-next { margin-top: 14px; text-align: center; }
.scan-all { margin-top: 14px; }
.scan-all summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); }
.scan-table .badge { margin: 1px 0; }
.scan-table td.num { white-space: nowrap; }
.scan-table td .badge-accent { white-space: nowrap; }
@media (max-width: 560px) {
  .scan-table th:nth-child(4), .scan-table td:nth-child(4) { display: none; }
  .scan-table th:first-child { width: 34%; }
  .scan-table th:nth-child(2) { width: auto; }
  .scan-table th:nth-child(3) { width: 64px; }
  .raid-windows strong { font-size: 17px; }
}
