@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geistmono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #040506;
  --bg2: #070a0e;
  --panel: #090d14;
  --panel-solid: #090d14;
  --panel2: #0c1220;
  --line: #142038;
  --line2: #1b2c4d;
  --text: #ffffff;
  --soft: #c3cff2;
  --faint: #7184bd;
  --green: #3dff9a;
  --green2: #00d47a;
  --green-ink: #021a0e;
  --glow: rgba(61, 255, 154, .14);
  --purple: #2b1456;
  --purple2: #6a3df0;
  --lav: #daedfa;
  --warn: #ffcc4d;
  --bad: #ff5c7a;
  --radius: 7px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }

/* ---------- the rain behind everything ---------- */
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5; }
.veil { display: none; }
.grid-bg { display: none; }
.shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-size: 13px; font-weight: 900; }
.brand-name { font-size: 15px; }
.brand-name small { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); letter-spacing: .18em; text-transform: uppercase; margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 7px; font-size: 14px; color: var(--soft); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a[aria-current="page"] { color: var(--green); background: rgba(61, 255, 154, .08); }
.top-cta { display: flex; gap: 8px; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 7px; border: 1px solid var(--line2); background: transparent; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
@media (max-width: 980px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; padding: 16px 20px 24px; background: rgba(4, 5, 6, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .burger { display: block; }
  .top-cta .btn-ghost { display: none; }
}
@media (max-width: 520px) { .top-cta { display: none; } }

/* ---------- buttons ---------- */
.btn { --b: var(--green); display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 7px; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; white-space: nowrap;
  background: var(--green); color: var(--green-ink); transition: background .2s; }
.btn:not(.btn-ghost):not(.btn-bad):hover { background: var(--green2); }

.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--faint); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-bad { background: var(--bad); color: #1a0007; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.04; }
.h-xl { font-family: var(--mono); font-weight: 800; font-size: clamp(64px, 13vw, 184px); letter-spacing: -.07em; line-height: .86; }
.h-lg { font-size: clamp(34px, 5vw, 58px); font-weight: 650; }
.h-md { font-size: clamp(24px, 3vw, 34px); font-weight: 650; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 60ch; }
.muted { color: var(--faint); }
.green { color: var(--green); }
.grad { color: var(--text); }

section { padding: 64px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head p { margin: 10px 0 0; }

/* ---------- surfaces ---------- */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.hover { transition: border-color .25s, transform .25s; }
.card.hover:hover { border-color: var(--line2); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g3, .g4, .g5 { grid-template-columns: 1fr 1fr; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.tagline { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 7px; background: rgba(61, 255, 154, .06); border: 1px solid rgba(61, 255, 154, .2); font-family: var(--mono); font-size: 12.5px; color: var(--soft); }
.tagline b { background: var(--green); color: var(--green-ink); padding: 2px 8px; border-radius: 7px; font-weight: 800; }
.hero h1 { margin: 26px 0 18px; }
.hero h1 .sub { display: block; font-family: var(--mono); font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; letter-spacing: .5em; color: var(--green); margin-top: 18px; text-transform: uppercase; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.payline { margin-top: 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.payline .num { color: var(--text); font-size: 15px; }

/* terminal */
.term { border-radius: 7px; overflow: hidden; border: 1px solid var(--line2); background: var(--panel-solid); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--faint); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.term-bar i:first-child { background: var(--green); }
.term-bar span { margin-left: 8px; }
.term-body { padding: 18px 20px 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; }
.term-row { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px dashed var(--line); }
.term-row:last-child { border-bottom: 0; }
.term-row .k { color: var(--faint); }
.term-row .k::before { content: "› "; color: var(--green); }
.term-row .v { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.term-foot { margin-top: 14px; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; flex: none; }
@keyframes ping { 50% { opacity: .35; } }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--green); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* big stats */
.kpi { padding: 22px 24px; }
.kpi .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.kpi .value { font-family: var(--mono); font-weight: 700; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.04em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .value .u { font-size: .5em; color: var(--faint); margin-left: 4px; letter-spacing: 0; }
.kpi .note { margin-top: 10px; font-size: 13px; color: var(--faint); }
.kpi.accent { background: #08180f; border-color: rgba(61, 255, 154, .25); }
.kpi.accent .value { color: var(--green); }
.cash::before { content: "$"; color: var(--green); margin-right: 1px; }
.kpi.accent .cash::before { color: inherit; }

/* how it works */
.steps { counter-reset: s; }
.step { padding: 28px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--green); letter-spacing: .2em; }
.step h3 { font-size: 22px; margin: 16px 0 10px; }
.step p { margin: 0; color: var(--soft); }
.step .big { font-family: var(--mono); font-size: 34px; font-weight: 700; margin-top: 18px; letter-spacing: -.04em; }
.meter { height: 10px; border-radius: 7px; background: var(--panel2); overflow: hidden; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel-solid); }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--text); }
th.sorted { color: var(--green); }
th.sorted::after { content: " ↓"; }
th.sorted.asc::after { content: " ↑"; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(61, 255, 154, .035); }
td.r, th.r { text-align: right; }
.rank { font-family: var(--mono); color: var(--faint); width: 44px; }
.rank.top1 { color: #ffe27a; } .rank.top2 { color: var(--lav); } .rank.top3 { color: #ffb27a; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av.car { position: relative; overflow: hidden; background: #0b1024 !important; border: 1px solid rgba(120, 140, 255, .14); }
.av.car img { position: absolute; inset: 3px 4px; width: calc(100% - 8px); height: calc(100% - 6px); object-fit: contain; }
.who .av.car { width: 64px; }
.who .av { width: 36px; height: 36px; flex: none; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--green-ink); background: var(--green); }
.who .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.who .nm a:hover { color: var(--green); }
.who small { display: block; color: var(--faint); font-size: 12.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.racing-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: 8px; vertical-align: 2px; animation: ping 2s infinite; }
.news-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-radius: 7px; border: 1px solid rgba(106, 61, 240, .45); background: rgba(43, 20, 86, .35); color: var(--text); margin-top: 8px; }
.news-strip:hover { border-color: rgba(61, 255, 154, .45); }
.news-strip b { flex: 1 1 220px; min-width: 0; }
.news { padding: 28px; }
.pad-card { max-width: 680px; padding: 30px; }
.pad-pw { font-family: var(--mono); font-size: 18px; padding: 10px 16px; border-radius: 7px; background: rgba(61, 255, 154, .08); border: 1px solid rgba(61, 255, 154, .35); color: var(--green); user-select: all; overflow-wrap: anywhere; }
.news-body { margin-top: 14px; color: var(--soft); line-height: 1.65; overflow-wrap: anywhere; }
.news-body p { margin: 0 0 12px; } .news-body p:last-child { margin-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); color: var(--soft); }
.chip.live { color: var(--green); border-color: rgba(61, 255, 154, .35); background: rgba(61, 255, 154, .08); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
.chip.warn { color: var(--warn); border-color: rgba(255, 204, 77, .35); background: rgba(255, 204, 77, .07); }
.chip.bad { color: var(--bad); border-color: rgba(255, 92, 122, .35); background: rgba(255, 92, 122, .07); }
.chip.purple { color: #c8b6ff; border-color: rgba(106, 61, 240, .45); background: rgba(106, 61, 240, .12); }
.tier { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-family: var(--mono); font-weight: 800; font-size: 12px; }
.tier.A { background: var(--green); color: var(--green-ink); }
.tier.B { background: #1a3a8a; color: #fff; }
.tier.C { background: var(--purple); color: #d9c9ff; }
.role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-left: 6px; }
.ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--panel2) 0); display: inline-grid; place-items: center; vertical-align: middle; }
.ring::after { content: attr(data-l); width: 28px; height: 28px; border-radius: 50%; background: var(--panel-solid); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--soft); }
.prog { display: flex; align-items: center; gap: 10px; }
.prog small { font-family: var(--mono); color: var(--faint); font-size: 12px; }

/* tabs / toolbars */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); }
.tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: var(--soft); cursor: pointer; font-size: 14px; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search { height: 42px; min-width: 240px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); outline: none; }
.search:focus { border-color: var(--green); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--faint); }
.field input, .field select, .field textarea, .input { height: 42px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); outline: none; min-width: 0; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--green); }

/* charts */
.chart { position: relative; height: 220px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .bar { fill: url(#gbar); transition: opacity .2s; }
.chart .bar:hover { opacity: .75; }
.chart .bar.empty { fill: var(--line); }
.chart .axis { font-family: var(--mono); font-size: 10.5px; fill: var(--faint); }
.chart .gl { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2;  }
.chart .area { fill: url(#garea); }
.tip { position: absolute; pointer-events: none; padding: 8px 12px; border-radius: 7px; background: #000; border: 1px solid var(--line2); font-family: var(--mono); font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .15s; z-index: 5; }
.tip b { color: var(--green); }

/* competition */
.comp { padding: 28px; overflow: hidden; }
.comp-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; flex-wrap: wrap; }
.comp h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 12px 0 8px; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 64px; padding: 10px 8px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line); text-align: center; }
.countdown b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.countdown small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 22px; align-items: end; }
.pod { border-radius: 7px; padding: 18px; background: var(--bg2); border: 1px solid var(--line); text-align: center; min-width: 0; }
.pod .place { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--faint); }
.pod .av.car { display: block; margin: 12px auto 0; border-radius: 7px; }
.pod.p1 .av.car { border-color: rgba(255, 226, 122, .35); }
.pod .pn { font-weight: 650; margin: 10px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pp { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.pod .prize { font-family: var(--mono); font-weight: 700; font-size: 22px; margin-top: 12px; color: var(--green); letter-spacing: -.03em; }
.pod.p1 { order: 2; padding-top: 30px; border-color: rgba(255, 226, 122, .4); background: #17140a; }
.pod.p2 { order: 1; } .pod.p3 { order: 3; }
.pod.p1 .place { color: #ffe27a; }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .pod { order: 0 !important; } }

/* racer page */
.profile { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile .av { width: 92px; height: 92px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 34px; background: var(--green); color: var(--green-ink); }
.bigring { --p: 0; width: 190px; height: 190px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--panel2) 0); display: grid; place-items: center; margin: 0 auto; transition: --p 1s; }
.bigring > div { width: 158px; height: 158px; border-radius: 50%; background: var(--panel-solid); display: grid; place-items: center; text-align: center; }
.bigring b { font-family: var(--mono); font-size: 40px; letter-spacing: -.05em; display: block; line-height: 1; }
.bigring small { color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* feed */
.feed { display: grid; gap: 2px; }
.feed-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-row .amt { font-family: var(--mono); font-weight: 700; color: var(--green); }

/* gold */
.gold-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-color: rgba(255, 226, 122, .3); background: #14120a; }
.gold-count { text-align: right; }
.gold-count b { display: block; font-size: clamp(40px, 5vw, 60px); font-weight: 700; color: #ffe27a; letter-spacing: -.05em; line-height: 1; }
.gold-count small { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.gold-meter { background: #ffe27a !important; }

/* requirements */
.reqs { display: flex; flex-wrap: wrap; gap: 10px; }
.req { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.req b { font-family: var(--mono); color: var(--green); }

/* join band */
.band { position: relative; overflow: hidden; padding: 56px; border-radius: 7px; border: 1px solid rgba(61, 255, 154, .25); background: var(--purple); }
.band h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 16ch; }
.band .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 640px) { .band { padding: 32px 24px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--faint); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* page head */
.phead { padding: 56px 0 8px; }
.phead h1 { margin: 16px 0 12px; }

/* loading + reveal */
.skel { background: #120e2c; animation: skp 1.6s infinite; border-radius: 7px; color: transparent !important; }
.loading-card { display: flex; align-items: center; gap: 10px; min-height: 140px; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--green); letter-spacing: .04em; }
.loading-card .caret { display: inline-block; width: 8px; height: 15px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes sk { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.empty { padding: 40px; text-align: center; color: var(--faint); }
.note-line { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 14px; }
.err { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .dot, .chip.live::before, .racing-dot, .caret { animation: none; } html { scroll-behavior: auto; } }

/* ---------- admin ---------- */
.adm-top .wrap { height: 64px; }
#adm.wrap, .adm-top .wrap { width: min(1560px, 100% - 32px); }
#adm td, #adm th { padding-left: 12px; padding-right: 12px; }
#adm .table-wrap { scrollbar-color: rgba(106, 61, 240, .7) transparent; }
#adm .table-wrap::-webkit-scrollbar { height: 10px; }
#adm .table-wrap::-webkit-scrollbar-thumb { background: rgba(106, 61, 240, .7); border-radius: 7px; }
#adm .uname { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
#adm td.pin, #adm th.pin { position: sticky; right: 0; background: var(--panel-solid); z-index: 1; }
.login { min-height: 80vh; display: grid; place-items: center; }
.login .card { width: min(420px, 100%); padding: 34px; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0 24px; }
.switch { position: relative; width: 58px; height: 32px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line2); cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); transition: transform .25s, background .2s; }
.switch[aria-checked="true"] { background: var(--green); border-color: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(26px); background: var(--green-ink); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.alert { padding: 16px 18px; border-radius: 7px; border: 1px solid rgba(255, 204, 77, .35); background: rgba(255, 204, 77, .06); color: var(--text); }
.alert.bad { border-color: rgba(255, 92, 122, .4); background: rgba(255, 92, 122, .07); }
.alert.ok { border-color: rgba(61, 255, 154, .35); background: rgba(61, 255, 154, .06); }
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 20px; }
.modal { width: min(520px, 100%); background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 7px; padding: 28px; max-height: 90vh; overflow: auto; }
.modal h3 { font-size: 22px; margin-bottom: 10px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; padding: 12px 18px; border-radius: 7px; background: #000; border: 1px solid var(--line2); font-size: 14px; }
.toast.bad { border-color: var(--bad); }
.log-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log-row time { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; min-width: 140px; }

@keyframes skp { 50% { opacity: .55; } }
