/* Pruned: tokens, fonts, reset, status bar, navigation, toast.
   Look: pure black, white type, light split by a prism (spectral). Kept = cool sweep, outbid = ember.
   Navy (--pop-*) belongs to the HUD popover and nowhere else. */

/* self-hosted, OFL. Latin subsets plus a tiny symbol subset for ≈ and ↗ */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-sym.woff2) format("woff2"); unicode-range: U+2192, U+2197, U+2248, U+25B2, U+25BC; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-sym.woff2) format("woff2"); unicode-range: U+2192, U+2197, U+2248, U+25B2, U+25BC; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; src: url(../fonts/martian-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; src: url(../fonts/martian-mono-sym.woff2) format("woff2"); unicode-range: U+2192, U+2197, U+2248, U+25B2, U+25BC; }

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #07080a;
  --ink: #fff;
  --ink-2: #cfcfd6;
  --ink-3: #9a9aa4;
  --ink-4: #5c5c66;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --cyan: #19e3ff;
  --green: #43ff8c;
  --lime: #d2ff2a;
  --cool: linear-gradient(90deg, #19e3ff 0%, #43ff8c 52%, #d2ff2a 100%);
  --spec: linear-gradient(90deg, #ff4a36 0%, #ff9a1d 17%, #f6f41c 33%, #47ff86 51%, #18e2ff 70%, #3a6cff 90%);
  --hot: linear-gradient(90deg, #ff2c16 0%, #ff6e21 50%, #ffc56e 100%);
  --ember: #ff5b3a;
  --ember-ink: #ff7a5c;
  --keeper: #b8ff44;
  --keeper-glow: rgba(184, 255, 68, .55);
  --pop-bg: #0b0f24;
  --pop-ink: #b9bcd9;
  --pop-label: #8f93b9;
  --pop-pill: #9cf5c9;
  --pop-line: rgba(185, 188, 217, .17);
  --r: 6px;
  --bar-h: 56px;
  --nav-h: 58px;
  --gut: 16px;
  --f-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-digit: "Martian Mono", "Geist Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
/* the UA gives code, kbd, samp and pre the system monospace; ours is Geist Mono everywhere */
code, kbd, samp, pre { font-family: var(--f-mono); }
pre code { font: inherit; }
html.js.boot body { visibility: hidden; }

.skip {
  position: fixed; z-index: 100; left: 12px; top: -48px;
  padding: 8px 12px; border-radius: var(--r);
  background: #fff; color: #000; font: 600 13px/1 var(--f-text);
}
.skip:focus { top: 10px; }

/* ---------------------------------------------------------------- status bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(0, 0, 0, .86), rgba(0, 0, 0, .6));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.mark { width: 22px; height: 22px; display: block; flex: none; }
.wordmark {
  font-family: var(--f-digit); font-weight: 650; font-size: 13.5px; letter-spacing: .1em;
  font-stretch: 100%;
}
.tabs { display: none; }
.tray { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .045);
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.pill:hover { background: rgba(255, 255, 255, .08); }
.pill .ico { width: 12px; height: 12px; flex: none; color: var(--ink-2); }
.pill-block {
  position: relative; overflow: hidden;
  border-color: transparent;
  background:
    linear-gradient(#07080a, #07080a) padding-box,
    linear-gradient(100deg, #19e3ff, #43ff8c 55%, #d2ff2a) border-box;
  box-shadow: 0 0 18px rgba(67, 255, 140, .16);
}
.pill-block .ico { display: none; color: var(--green); }
.pill-block::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 70%);
  transform: translateX(-120%);
}
.pill-block.tick::after { animation: pill-sweep .7s ease-out; }
@keyframes pill-sweep { to { transform: translateX(120%); } }
.pill[aria-expanded="true"] { background: rgba(156, 245, 201, .14); }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #d2ff2a; box-shadow: 0 0 8px #d2ff2a;
  animation: live 2.4s ease-in-out infinite;
}
@keyframes live { 50% { opacity: .35; box-shadow: 0 0 2px #d2ff2a; } }
.pill-era .ico { display: none; }

.badge {
  display: none; align-items: center; gap: 7px; height: 30px; padding: 0 4px 0 6px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .16em; color: var(--ink-2); white-space: nowrap;
}
.badge i {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--ink-3);
}
.badge.is-live { color: #fff; }
.badge.is-live i {
  border: 0; background: #d2ff2a;
  box-shadow: 0 0 0 3px rgba(210, 255, 42, .14), 0 0 10px #d2ff2a;
  animation: live 2.4s ease-in-out infinite;
}

.connect {
  height: 30px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .03);
  font: 500 12.5px/1 var(--f-text); letter-spacing: .01em;
  white-space: nowrap; flex: none;
  transition: background .2s, border-color .2s;
}
.connect:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .6); }

.bar-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .08); }
.bar-progress i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--cool);
  box-shadow: 0 0 10px rgba(67, 255, 140, .7);
  transition: transform .6s ease;
}

/* ---------------------------------------------------------------- bottom tab bar (phones) */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .74));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font: 500 10.5px/1 var(--f-text); letter-spacing: .02em; color: var(--ink-3);
  transition: color .2s;
}
.tabbar svg { width: 21px; height: 21px; }
.tabbar a.on { color: #fff; }
.tabbar a.on::before {
  content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; border-radius: 2px;
  background: var(--cool); box-shadow: 0 0 12px rgba(67, 255, 140, .8);
}
.tabbar a.on svg { filter: drop-shadow(0 0 6px rgba(67, 255, 140, .55)); }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; z-index: 70; left: 50%; top: calc(var(--bar-h) + 12px);
  width: max-content; max-width: min(92vw, 520px);
  transform: translate(-50%, -8px);
  padding: 11px 14px; border-radius: 8px;
  background: rgba(10, 10, 14, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .5);
  font: 500 13px/1.45 var(--f-text); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px;
  background: var(--cool); box-shadow: 0 0 8px rgba(67, 255, 140, .8);
}
.toast[data-tone="ember"]::before { background: var(--hot); box-shadow: 0 0 8px rgba(255, 90, 30, .8); }
.toast[data-tone="keeper"]::before { background: var(--keeper); box-shadow: 0 0 8px var(--keeper-glow); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.noscript { position: fixed; inset: 40% 16px auto; text-align: center; color: var(--ink-2); }

/* ---------------------------------------------------------------- narrow phones */
@media (max-width: 400px) {
  .bar { gap: 6px; }
  .mark { display: none; }
  .pill { padding: 0 8px; gap: 5px; font-size: 11px; }
  .connect { padding: 0 10px; font-size: 12px; }
}
@media (max-width: 350px) {
  .wordmark { font-size: 12px; letter-spacing: .06em; }
  .pill-era { display: none; }
}

/* ---------------------------------------------------------------- desktop */
@media (min-width: 1024px) {
  :root { --bar-h: 64px; --nav-h: 0px; }
  .bar { padding: 0 clamp(24px, 3.4vw, 56px); gap: 12px; }
  .mark { width: 24px; height: 24px; }
  .wordmark { font-size: 15px; }
  .tabs { display: flex; gap: 26px; margin-left: 40px; font: 500 13.5px/1 var(--f-text); color: var(--ink-3); }
  .tabs a { position: relative; padding: 8px 0; transition: color .2s; }
  .tabs a:hover { color: #fff; }
  .tabs a.on { color: #fff; }
  .tabs a.on::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
    background: var(--cool); box-shadow: 0 0 10px rgba(67, 255, 140, .8);
  }
  .tray { gap: 8px; }
  .pill { height: 30px; padding: 0 12px; font-size: 12.5px; }
  .pill-block .ico, .pill-era .ico { display: block; }
  .pill-block .live-dot { display: none; }
  .badge { display: inline-flex; }
  .connect { height: 34px; padding: 0 16px; font-size: 13.5px; margin-left: 4px; }
  .tabbar { display: none; }
}

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