/* Sniped: B2 "Replay on the block stage", electric blue (Nicholas, 2026-11-29). One accent with one meaning: blue is
   you and the main action. Off-white is what really happened; dark grey is what hasn't been played. */
@font-face { font-family: 'Sofia Sans'; src: url(/assets/fonts/sofia-sans.woff2) format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url(/assets/fonts/sofia-sans-xcond-italic.woff2) format('woff2'); font-weight: 500 900; font-style: italic; font-display: swap; }

:root {
  --ground: #0a0b0d; --surface: #121417; --surface-2: #191c20;
  --line: rgba(240, 244, 248, .08); --line-2: rgba(240, 244, 248, .14); --line-3: rgba(240, 244, 248, .26);
  --ink: #f2f5f8; --ink-2: #bfc6cf; --muted: #858d97; --acc: #2a9dff; --acc-2: #7cc4ff; --acc-ink: #03111f; --acc-dim: rgba(42, 157, 255, .12);
  --down: #ff6a5c;
  --cond: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif; --text: 'Sofia Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px); --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.2, 1.3, .3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.still { scroll-behavior: auto; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(58vmax 48vmax at 70% 48%, rgba(42, 157, 255, .07), transparent 70%), radial-gradient(40vmax 30vmax at 72% 62%, rgba(240, 244, 248, .035), transparent 70%); }
body::after { content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* header: the contract bar on every view, then the logo, the pill nav and a status chip */
.top { position: fixed; inset: 0 0 auto; z-index: 40; border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.top.scrolled, .top.solid { background: rgba(10, 11, 13, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.ca-bar { background: var(--acc); color: var(--acc-ink); }
.ca-in { display: flex; align-items: center; gap: 12px; min-height: 34px; font-size: 14px; }
.ca-tag { font: italic 900 18px/1 var(--cond); }
.ca-soon { color: #0b3156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { display: block; }
.word { font: italic 900 30px/1 var(--cond); letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(18, 20, 23, .6); }
.nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 7px 15px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current='true'], .nav a[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.chip { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--text); color: var(--ink-2); border: 1px solid var(--line-3); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.chip-soon { color: var(--muted); border-style: dashed; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; font: 700 16px/1 var(--text); color: var(--ink); text-decoration: none; cursor: pointer; background: transparent; border: 1px solid var(--line-3); border-radius: 999px; transition: background .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), opacity .2s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); background: rgba(240, 244, 248, .05); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .4; cursor: default; pointer-events: none; }
.btn-primary { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn-primary:hover { background: #55b2ff; border-color: #55b2ff; }
.link { background: none; border: 0; padding: 4px 0; font: 600 13px/1 var(--text); color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.link:hover { color: var(--ink); }
.label { font: 600 13px/1.2 var(--text); color: var(--muted); }
.cond { font-family: var(--cond); font-style: italic; }
.up { color: var(--acc); } .dn { color: var(--down); }

/* the stage and its still fallback */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; opacity: 0; transition: opacity .6s var(--ease); }
.gl-ready .stage { opacity: 1; }
.poster { position: fixed; z-index: -1; right: max(var(--gutter), calc(50vw - 600px)); top: 50%; width: min(34vw, 400px); transform: translateY(-46%); opacity: .9; transition: opacity .5s var(--ease); }
.poster svg { display: block; width: 100%; }
.gl-ready .poster { opacity: 0; }

/* glass cards */
.card { background: rgba(18, 20, 23, .8); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* the timing tower (live order, final order) */
.tower .r { display: grid; grid-template-columns: 34px 1fr 64px 78px; align-items: center; height: 36px; border-top: 1px solid var(--line); font-size: 15px; transition: background .3s var(--ease); }
.tower .p { font: italic 900 20px/1 var(--cond); color: var(--muted); }
.tower .w { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tower .g, .tower .s { text-align: right; font: italic 800 19px/1 var(--cond); }
.tower .s { color: var(--muted); }
.tower .r.you { background: var(--acc); color: var(--acc-ink); border-radius: 8px; margin: 0 -10px; padding: 0 10px; border-color: transparent; }
.tower .r.you .p, .tower .r.you .w, .tower .r.you .g, .tower .r.you .s { color: var(--acc-ink); }
.tower .gap { height: 20px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); line-height: 20px; font-size: 13px; }

.foot { border-top: 1px solid var(--line); background: var(--ground); padding: 34px 0 30px; position: relative; z-index: 1; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.nfa { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 899px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- shared chrome (chrome.js) ---------- */
.ca-addr { font: 600 13px/1 ui-monospace, 'SFMono-Regular', Consolas, monospace; color: var(--acc-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(3, 17, 31, .35); background: rgba(3, 17, 31, .08); color: var(--acc-ink); font: 700 12.5px/1 var(--text); cursor: pointer; flex: none; }
.ca-copy:hover { background: rgba(3, 17, 31, .16); }
.ca-link { color: var(--acc-ink); font: 600 13px/1 var(--text); text-underline-offset: 3px; flex: none; }
/* the cursor's light on cards */
.card, .rounds a { background-image: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgba(42, 157, 255, .09), transparent 62%); }
/* the scroll line */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
/* numbers that change flash their direction */
.up { animation: flash-up .7s var(--ease); } .down { animation: flash-down .7s var(--ease); }
@keyframes flash-up { 0% { color: var(--acc-2); text-shadow: 0 0 18px rgba(42, 157, 255, .55); } }
@keyframes flash-down { 0% { color: var(--down); } }
/* skeletons while something loads */
.skel { position: relative; overflow: hidden; border-radius: 8px; background: var(--surface-2); color: transparent !important; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(240, 244, 248, .06), transparent); animation: skel 1.3s infinite; }
@keyframes skel { to { transform: translateX(100%); } }
/* the phone tab bar */
.tabbar { display: none; }
@media (max-width: 899px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0; z-index: 44; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 11, 13, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; color: var(--muted); text-decoration: none; font: 600 11.5px/1 var(--text); }
  .tabbar a[aria-current='page'] { color: var(--acc); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .ca-link { display: none; }
}
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }
.records { margin: 0; font-size: 13.5px; color: var(--muted); } .records a { color: var(--ink-2); }
