/* ============================================================
   SunSea ($SS) — Storm-watch command deck
   Design system: ocean-ink dark, luminous instruments
   ============================================================ */

:root {
  /* --- Ocean-ink base --- */
  --water-deep: #04101A;
  --ink-900: #06141B;
  --ink-800: #0A1E29;
  --ink-700: #0d2634;
  --ink-650: #103040;

  /* --- Glass --- */
  --glass: rgba(13, 38, 52, 0.55);
  --glass-2: rgba(13, 38, 52, 0.72);
  --glass-hi: rgba(18, 48, 64, 0.66);
  --edge: rgba(120, 220, 240, 0.25);
  --edge-soft: rgba(120, 220, 240, 0.12);
  --grid: rgba(120, 180, 200, 0.12);
  --grid-soft: rgba(120, 180, 200, 0.06);

  /* --- Text --- */
  --text: #DCEAF0;
  --text-soft: #8FB3C4;
  --text-dim: #5B7C8C;

  /* --- Signal colors --- */
  --cyan: #27D3E6;
  --cyan-deep: #13A4C2;
  --amber: #F2A33C;
  --yes: #2BD98C;
  --yes-deep: #1c9d63;
  --no: #F25C6E;
  --no-deep: #c23d4e;

  /* --- Glow tokens (ration these) --- */
  --glow-cyan: 0 0 18px rgba(39, 211, 230, 0.45);
  --glow-yes: 0 0 16px rgba(43, 217, 140, 0.40);
  --glow-no: 0 0 16px rgba(242, 92, 110, 0.40);
  --glow-amber: 0 0 16px rgba(242, 163, 60, 0.42);

  /* --- Type --- */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* --- Layout --- */
  --maxw: 1280px;
  --nav-h: 64px;
  --ticker-h: 34px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--water-deep);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; color: inherit; }
::selection { background: rgba(39,211,230,0.30); color: #fff; }

/* ============================================================
   ATMOSPHERE — fixed background layers (water → night → glow)
   ============================================================ */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(39,211,230,0.13) 0%, rgba(19,164,194,0.05) 28%, transparent 55%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 45%, var(--water-deep) 100%);
}
.atmosphere::after {
  /* faint contour grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(130% 100% at 50% 40%, #000 30%, transparent 90%);
  opacity: 0.7;
}
.atmosphere__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--text-soft); line-height: 1.55; font-weight: 400; }
.muted { color: var(--text-soft); }
.dim { color: var(--text-dim); }

/* mono telemetry */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.micro {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.micro--cyan { color: var(--cyan); }
.micro--amber { color: var(--amber); }
.glow-num { text-shadow: 0 0 12px rgba(39,211,230,0.35); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.stack > * + * { margin-top: 1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--edge-soft) 18%, var(--edge-soft) 82%, transparent); border: 0; }

/* ============================================================
   GLASS PANELS
   ============================================================ */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(120,220,240,0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(160,230,250,0.10),
    inset 0 0 32px rgba(10,30,42,0.5),
    0 24px 60px -30px rgba(0,0,0,0.9);
}
/* fine luminous top edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--edge) 0%, transparent 38%, transparent 70%, rgba(39,211,230,0.10) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   BADGES / DOTS / PILLS
   ============================================================ */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  flex: none;
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid currentColor; line-height: 1;
}
.status--live { color: var(--cyan); }
.status--soon { color: var(--amber); }
.status--settled { color: var(--text-dim); border-color: var(--text-dim); }
.status--won { color: var(--yes); }
.status--lost { color: var(--no); }
.status .live-dot { width: 6px; height: 6px; }
.status--soon .live-dot { background: var(--amber); box-shadow: var(--glow-amber); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid rgba(120,220,240,0.18);
  color: var(--text);
  background: var(--glass-2);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--edge); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(180deg, rgba(39,211,230,0.22), rgba(19,164,194,0.14));
  border-color: rgba(39,211,230,0.5);
  color: #eafcff;
}
.btn--primary:hover { box-shadow: var(--glow-cyan); border-color: var(--cyan); }
.btn--ghost { background: transparent; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--sm { padding: 9px 15px; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* gentle pulse for the decisive CTA */
.btn--pulse { animation: cta-pulse 3.4s var(--ease) infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(39,211,230,0); }
  50% { box-shadow: 0 0 24px rgba(39,211,230,0.34); }
}

/* ============================================================
   PROBABILITY BAR (glowing seam)
   ============================================================ */
.probar {
  position: relative;
  height: 9px; border-radius: 100px;
  background: var(--no-deep);
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}
.probar__yes {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--yes-deep), var(--yes));
  border-radius: 100px 0 0 100px;
  transition: width .6s var(--ease);
}
.probar__no-fill {
  position: absolute; inset: 0 0 0 auto;
  background: linear-gradient(90deg, var(--no), var(--no-deep));
}
/* bright moving seam */
.probar__seam {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: #eafcff;
  box-shadow: 0 0 10px 2px rgba(234,252,255,0.8);
  transform: translateX(-1px);
  transition: left .6s var(--ease);
}
.probar__seam::after {
  content: ""; position: absolute; inset: 0; width: 2px;
  animation: seam-flicker 2.6s ease-in-out infinite;
}
@keyframes seam-flicker { 0%,100%{opacity:1} 50%{opacity:.55} }

.prob-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }
.prob-labels .y { color: var(--yes); }
.prob-labels .n { color: var(--no); }

/* ============================================================
   YES / NO CAPSULES
   ============================================================ */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capsule {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 13px 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(120,180,200,0.18);
  background: rgba(8,24,32,0.5);
  transition: all .25s var(--ease);
  font-family: var(--font-mono);
}
.capsule__label { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.capsule__odds { font-size: 0.82rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.capsule:hover { border-color: rgba(120,220,240,0.4); transform: translateY(-1px); }
.capsule[data-side="yes"][aria-pressed="true"] {
  border-color: var(--yes); background: rgba(43,217,140,0.12);
  box-shadow: var(--glow-yes); color: var(--yes);
}
.capsule[data-side="yes"][aria-pressed="true"] .capsule__odds { color: var(--yes); }
.capsule[data-side="no"][aria-pressed="true"] {
  border-color: var(--no); background: rgba(242,92,110,0.12);
  box-shadow: var(--glow-no); color: var(--no);
}
.capsule[data-side="no"][aria-pressed="true"] .capsule__odds { color: var(--no); }

/* ============================================================
   MARKET CARD
   ============================================================ */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border: 1px solid rgba(120,220,240,0.13);
  background: var(--glass);
  cursor: pointer;
}
.card canvas.wx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.card__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,20,27,0.30) 0%, rgba(6,20,27,0.55) 48%, rgba(4,16,26,0.92) 100%);
}
.card__body { position: relative; z-index: 2; padding: 18px; margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.card__top { position: relative; z-index: 2; padding: 16px 18px 0; display: flex; align-items: center; justify-content: space-between; }
.card__q { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.18; text-wrap: pretty; }
.card__meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft); }
.card:hover { transform: translateY(-6px); border-color: var(--edge); box-shadow: 0 30px 60px -28px rgba(0,0,0,0.9), 0 0 0 1px rgba(39,211,230,0.18); }
.card--soon { border-color: rgba(242,163,60,0.22); }
.card--settled { opacity: 0.82; }
.card--settled:hover { transform: translateY(-3px); }

.countdown { color: var(--amber); }
.countdown--cool { color: var(--text-soft); }

/* ============================================================
   POOL COLUMNS / SPLIT
   ============================================================ */
.pools { display: flex; gap: 8px; align-items: flex-end; height: 92px; }
.pool-col { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 8px 8px 0 0; overflow: hidden; background: rgba(8,24,32,0.5); }
.pool-col__fill { width: 100%; transition: height .5s var(--ease); border-radius: 8px 8px 0 0; }
.pool-col--yes .pool-col__fill { background: linear-gradient(180deg, var(--yes), var(--yes-deep)); box-shadow: 0 0 18px rgba(43,217,140,0.25); }
.pool-col--no .pool-col__fill { background: linear-gradient(180deg, var(--no), var(--no-deep)); box-shadow: 0 0 18px rgba(242,92,110,0.22); }

/* ============================================================
   INPUTS
   ============================================================ */
.field { position: relative; }
.field input {
  width: 100%;
  background: rgba(6,18,26,0.7);
  border: 1px solid rgba(120,180,200,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 40px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: inset 0 0 20px rgba(39,211,230,0.14), var(--glow-cyan); }
.field__pre { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); color: var(--text-dim); pointer-events: none; }
.field input::placeholder { color: var(--text-dim); }

/* chips for quick amounts */
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 0.78rem;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(120,180,200,0.18);
  background: rgba(8,24,32,0.4); color: var(--text-soft);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--edge); color: var(--text); }

/* ============================================================
   SHIMMER / LOADING
   ============================================================ */
.shimmer { position: relative; overflow: hidden; background: rgba(13,38,52,0.5); border-radius: var(--radius); }
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(120,220,240,0.08) 45%, rgba(120,220,240,0.12) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.8s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ============================================================
   TICKER (in nav)
   ============================================================ */
.ticker {
  height: var(--ticker-h);
  overflow: hidden;
  border-bottom: 1px solid rgba(120,180,200,0.08);
  background: rgba(4,14,22,0.6);
  backdrop-filter: blur(10px);
  display: flex; align-items: center;
}
.ticker__track { display: flex; gap: 0; white-space: nowrap; animation: ticker-scroll 60s linear infinite; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 22px; font-family: var(--font-mono); font-size: 0.74rem;
  color: var(--text-soft); border-right: 1px solid rgba(120,180,200,0.1);
}
.ticker__item .q { color: var(--text); }
.ticker__item .up { color: var(--yes); }
.ticker__item .dn { color: var(--no); }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   NAV
   ============================================================ */
.nav-shell { position: sticky; top: 0; z-index: 100; }
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,18,26,0.72);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(120,180,200,0.1);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__ss { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); border: 1px solid rgba(39,211,230,0.4); border-radius: 6px; padding: 2px 6px; letter-spacing: 0.05em; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 0.9rem; font-weight: 500; padding: 9px 14px; border-radius: 8px;
  color: var(--text-soft); transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(120,180,200,0.07); }
.nav__link--active { color: var(--text); }
.nav__link--active::after { content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: var(--cyan); box-shadow: var(--glow-cyan); }
.nav__right { display: flex; align-items: center; gap: 10px; }

/* wallet bar */
.wallet {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid rgba(120,180,200,0.2);
  background: rgba(8,24,32,0.5); color: var(--text-soft);
  transition: all .25s var(--ease);
}
.wallet:hover { border-color: var(--edge); }
.wallet--live { color: var(--cyan); border-color: rgba(39,211,230,0.4); }
.wallet--live .live-dot { width: 7px; height: 7px; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 9px; border: 1px solid rgba(120,180,200,0.2); align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,12,20,0.92); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; padding: 24px;
  transform: translateY(-100%); transition: transform .4s var(--ease);
  opacity: 0; pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu__close { align-self: flex-end; font-size: 1.6rem; padding: 8px 14px; color: var(--text-soft); }
.mobile-menu a { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; padding: 14px 0; border-bottom: 1px solid rgba(120,180,200,0.1); }
.mobile-menu a:hover { color: var(--cyan); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid rgba(120,180,200,0.1); margin-top: 40px; padding: 56px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 500; }
.footer__col a { display: block; color: var(--text-soft); font-size: 0.92rem; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(120,180,200,0.08); font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm); min-width: 280px;
  background: rgba(8,24,32,0.92); border: 1px solid var(--edge);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  transform: translateX(120%); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast__icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.toast--cyan { border-color: rgba(39,211,230,0.45); box-shadow: var(--glow-cyan), 0 20px 50px -20px rgba(0,0,0,0.9); }
.toast--cyan .toast__icon { background: rgba(39,211,230,0.16); color: var(--cyan); }
.toast--win { border-color: rgba(43,217,140,0.45); }
.toast--win .toast__icon { background: rgba(43,217,140,0.16); color: var(--yes); }
.toast__title { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.toast__sub { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-soft); }

/* confirmation flash overlay */
.flash { position: fixed; inset: 0; z-index: 250; pointer-events: none; background: radial-gradient(circle at center, rgba(39,211,230,0.18), transparent 60%); opacity: 0; }
.flash.go { animation: flash-go .7s var(--ease); }
@keyframes flash-go { 0%{opacity:0} 30%{opacity:1} 100%{opacity:0} }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty { text-align: center; padding: 70px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty__mark { width: 64px; height: 64px; opacity: 0.5; }

/* ============================================================
   RADAR GAUGE wrapper
   ============================================================ */
.gauge { position: relative; display: inline-block; }
.gauge__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.gauge__val { font-family: var(--font-mono); font-weight: 700; font-size: 2.2rem; letter-spacing: -0.02em; text-shadow: 0 0 16px rgba(39,211,230,0.4); }
.gauge__lbl { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }

/* ============================================================
   TRADE CONSOLE
   ============================================================ */
.console { padding: 22px; }
.console__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.console__q { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.2; text-wrap: pretty; }
.console__loc { font-size: 0.74rem; margin-top: 6px; }
.console__gauge { position: relative; display: flex; justify-content: center; margin: 14px 0 18px; }
.console__gauge .gauge__svg { display: block; }
.console__pools { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--edge-soft); }
.console__quote { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: rgba(6,18,26,0.5); border: 1px solid var(--edge-soft); }
.console__quote .between b { color: var(--text); }

/* docked positioning on markets */
.dock { position: sticky; top: calc(var(--nav-h) + var(--ticker-h) + 20px); }

/* ============================================================
   PAGE BITS — sections, stat tiles, FAQ, whitepaper rail
   ============================================================ */
.tile { padding: 24px; border-radius: var(--radius); }
.stat-num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.8rem,3vw,2.6rem); letter-spacing: -0.02em; }
.kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }

.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step__no { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--cyan); text-shadow: var(--glow-cyan); }

.faq__item { border-bottom: 1px solid var(--edge-soft); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.faq__q .pm { font-family: var(--font-mono); color: var(--cyan); font-size: 1.3rem; transition: transform .3s var(--ease); flex: none; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .4s var(--ease); }
.faq__a p { color: var(--text-soft); padding-bottom: 0; line-height: 1.6; }
.faq__item.open .faq__a { padding-bottom: 22px; }
.faq__item.open .pm { transform: rotate(45deg); }

/* whitepaper */
.paper { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.paper__rail { position: sticky; top: calc(var(--nav-h) + var(--ticker-h) + 28px); }
.paper__rail a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; color: var(--text-dim); font-size: 0.9rem; transition: color .2s; }
.paper__rail a .n { font-family: var(--font-mono); font-size: 0.72rem; }
.paper__rail a:hover, .paper__rail a.active { color: var(--text); }
.paper__rail a.active .n { color: var(--cyan); text-shadow: var(--glow-cyan); }
.paper__body section { margin-bottom: 56px; scroll-margin-top: 140px; }
.paper__body h2 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.paper__body h2 .secno { font-family: var(--font-mono); font-size: 1rem; color: var(--cyan); text-shadow: var(--glow-cyan); font-weight: 700; }
.paper__body p { color: var(--text-soft); margin-bottom: 14px; line-height: 1.7; }
.paper__body h3 { margin: 24px 0 10px; font-size: 1.15rem; }
.paper__body code { font-family: var(--font-mono); background: rgba(6,18,26,0.7); padding: 2px 7px; border-radius: 5px; font-size: 0.85em; color: var(--cyan); border: 1px solid var(--edge-soft); }
.paper__body pre { background: rgba(4,14,22,0.7); border: 1px solid var(--edge-soft); border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; margin: 16px 0; }
.paper__body pre code { background: none; border: none; padding: 0; color: var(--text-soft); line-height: 1.7; }
.paper__body ul { color: var(--text-soft); padding-left: 22px; line-height: 1.7; margin-bottom: 14px; }
.paper__body li { margin-bottom: 6px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--edge-soft); }
.spec-table th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.spec-table td.mono { color: var(--cyan); }

/* diagram */
.flow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flow__node { flex: 1; min-width: 130px; padding: 18px; border-radius: var(--radius-sm); text-align: center; border: 1px solid var(--edge-soft); background: rgba(8,24,32,0.4); }
.flow__node .big { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; }
.flow__arrow { color: var(--cyan); font-family: var(--font-mono); font-size: 1.3rem; }

@media (max-width: 880px) {
  .paper { grid-template-columns: 1fr; gap: 24px; }
  .paper__rail { position: static; display: none; }
  .dock { position: static; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.gap-s { gap: 8px; } .gap-m { gap: 16px; } .gap-l { gap: 28px; }
.tac { text-align: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .wallet__addr { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   REDUCED MOTION — freeze sweeps, calm still
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
}
