/* Busto landing page. Palette is lifted from the hero illustration. */
:root {
  --bg: #08080b;
  --panel: #100f17;
  --panel-2: #15141e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fg: #ffffff;
  --fg-2: #dcdae6;
  --muted: #9a98a8;
  --dim: #6d6b7b;
  --coral: #ee8570;
  --coral-l: #ff9e88;
  --violet: #4538d0;
  --violet-l: #6d5df2;
  --lav: #b9b0f0;
  --pink: #c77bd8;
  --emerald: #3ccf6c;
  --win: #5fe08c;
  --loss: #ff9480;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; overflow-x: clip;
}
/* faint film grain over the whole page (pre-baked tile, no filters) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url(hero/grain.png) 0 0 / 200px 200px; opacity: .045;
}
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral-l); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; background: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 7px; }
.btn-solid { background: #fff; color: #08080b; }
.btn-solid:hover { background: #e9e6f5; }
.btn-ghost { border-color: rgba(255, 255, 255, .78); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-solid:disabled:hover { background: #fff; }

/* ------------------------------------------------------------ nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease; }
.nav.scrolled { background: rgba(8, 8, 11, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; text-decoration: none; color: #fff; justify-self: start; }
.logo { width: 21px; height: 21px; color: #fff; flex: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13.5px; color: #a8a6b5; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 36px; height: 32px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn path { transform-origin: 10px 10px; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] .l1 { transform: rotate(45deg) translateY(3.5px); }
.menu-btn[aria-expanded="true"] .l2 { transform: rotate(-45deg) translateY(-3.5px); }
.mnav { border-top: 1px solid var(--line); background: rgba(8, 8, 11, .96); padding: 8px var(--gutter) 20px; }
.mnav nav { display: grid; }
.mnav nav a { padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; color: var(--fg-2); }
.mnav .btn { margin-top: 16px; width: 100%; }

/* ------------------------------------------------------------ hero */
.hero {
  /* 1vh, capped so very tall windows (and full-page captures) keep a normal hero */
  --vh1: min(1vh, 10px);
  --stage-w: min(92vw, calc((50 * var(--vh1) + 24px) * 2.6667));
  --stage-h: calc(var(--stage-w) * .375);
  --art-h: min(var(--stage-h), 50 * var(--vh1));
  position: relative; min-height: calc(100 * var(--vh1)); display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate; background: var(--bg);
}
.hero-copy {
  position: relative; z-index: 3; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 84px 16px 22px;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px;
  background: #121119; border: 1px solid rgba(255, 255, 255, .1); color: #d7d5e2; font-size: 13px; text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.badge:hover { border-color: rgba(255, 255, 255, .22); background: #17161f; }
.badge svg { width: 14px; height: 14px; color: var(--muted); margin-left: -2px; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: #fff; color: #08080b; font-size: 12px; font-weight: 600; }
.badge.pending { visibility: hidden; }
.badge.idle .pulse { background: var(--dim); }
.badge.idle .pulse::after { display: none; }
.badge .mono { font-size: 12.5px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); flex: none; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--coral); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  margin-top: 24px; font-weight: 700; font-size: clamp(42px, min(5.3vw, 7.8 * var(--vh1)), 76px); line-height: 1.02; letter-spacing: -.048em;
}
.hero h1 span { display: block; text-wrap: balance; }
.hero-sub { max-width: 500px; margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

/* the illustration */
.art {
  position: relative; z-index: 1; flex: none; height: var(--art-h); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
}
.art::after { content: ""; position: absolute; inset: 0; z-index: 6; background: url(hero/grain.png) 0 0 / 200px 200px; opacity: .55; }
.stage { position: absolute; bottom: 0; left: 50%; width: var(--stage-w); margin-left: calc(var(--stage-w) / -2); aspect-ratio: 1600 / 600; container-type: inline-size; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.static { will-change: transform; }
.items, .embers { position: absolute; inset: 0; }
.it { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; aspect-ratio: 1; overflow: visible; display: block; }
.dof { filter: blur(var(--b, 1px)); will-change: transform; }
.bob { animation: bob var(--d, 6s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes bob {
  from { transform: translateY(calc(var(--a, 6px) * -1)) rotate(calc(var(--r, 4deg) * -1)); }
  to { transform: translateY(var(--a, 6px)) rotate(var(--r, 4deg)); }
}
.ring-wrap { position: absolute; aspect-ratio: 1; }
.ring { display: block; width: 100%; height: 100%; transform: scaleY(.34); animation: ring 80s linear infinite; }
@keyframes ring { from { transform: scaleY(.34) rotate(0deg); } to { transform: scaleY(.34) rotate(360deg); } }
.tg { transform-box: fill-box; transform-origin: 50% 100%; animation: flick var(--d, 2s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes flick {
  0% { transform: scaleY(1) skewX(0deg); }
  50% { transform: scaleY(calc(1 + var(--sy, .06))) skewX(var(--sk, 2deg)); }
  100% { transform: scaleY(calc(1 - var(--sy, .06))) skewX(calc(var(--sk, 2deg) * -1)); }
}
.ember {
  position: absolute; width: var(--s); aspect-ratio: 1; border-radius: 50%; background: var(--coral-l); opacity: 0;
  box-shadow: 0 0 6px rgba(255, 158, 136, .6); animation: rise var(--d, 6s) linear var(--dl, 0s) infinite;
}
.ember.drop { border-radius: 50% 0 50% 50%; rotate: -45deg; background: #ffb29d; box-shadow: none; }
@keyframes rise {
  0% { translate: 0 0; opacity: 0; }
  14% { opacity: .95; }
  100% { translate: calc(var(--dx, 0) * 1cqw) -14cqw; opacity: 0; }
}
.hero.paused .bob, .hero.paused .tg, .hero.paused .ember, .hero.paused .ring, .hero.paused .pulse::after { animation-play-state: paused; }

/* ------------------------------------------------------------ sections */
.sec { position: relative; padding: 112px 0; }
.sec + .sec { border-top: 1px solid rgba(255, 255, 255, .05); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--coral-l); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.sec h2 { margin-top: 14px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 540px; text-wrap: pretty; }
.fine { margin-top: 16px; color: var(--dim); font-size: 13px; }
.fine a { color: var(--fg-2); text-underline-offset: 3px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.k { font-size: 12px; color: var(--muted); letter-spacing: .01em; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.tag-now { color: #08080b; border-color: var(--coral-l); background: var(--coral-l); }

/* ------------------------------------------------------------ live overlay */
.ov {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  padding: 16px; display: flex; flex-direction: column; gap: 16px; min-height: 580px; background: #0b0a12;
}
.ov-scene {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(42% 52% at 50% 108%, rgba(255, 158, 136, .6), rgba(199, 123, 216, .2) 50%, transparent 76%),
    radial-gradient(30% 62% at -2% 104%, rgba(98, 82, 238, .8), rgba(69, 56, 208, .35) 45%, transparent 75%),
    radial-gradient(30% 62% at 102% 104%, rgba(98, 82, 238, .8), rgba(69, 56, 208, .35) 45%, transparent 75%),
    radial-gradient(60% 40% at 50% -10%, rgba(109, 93, 242, .14), transparent 70%),
    #0b0a12;
}
.ov-scene::after { content: ""; position: absolute; inset: 0; background: url(hero/grain.png) 0 0 / 190px 190px; opacity: .55; }
.ov-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fg-2); min-height: 28px; }
.ov-live { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--coral); color: #1d0c09; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ov-live .pulse { background: #1d0c09; }
.ov-live .pulse::after { border-color: #1d0c09; }
.ov-live.idle { background: rgba(255, 255, 255, .1); color: var(--fg-2); }
.ov-live.idle .pulse { background: var(--dim); }
.ov-live.idle .pulse::after { display: none; }
.ov-session b { font-weight: 600; color: #fff; }
.ov-session .sep { color: var(--dim); margin: 0 8px; }
.ov-right { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.ov-clock { color: var(--muted); font-size: 12.5px; }
.ov-grid { flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px; gap: 16px; }
.ov-col { display: flex; flex-direction: column; gap: 16px; }
.hud { background: rgba(9, 8, 16, .74); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 14px 16px; }
.hud .k { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-family: var(--mono); color: var(--muted); }
.bank { font-size: 30px; font-weight: 500; letter-spacing: -.03em; margin-top: 6px; }
.spark { display: block; width: 100%; height: 58px; margin: 10px 0 8px; overflow: visible; cursor: crosshair; }
.spark.empty { visibility: hidden; }
.spark-base { stroke: rgba(255, 255, 255, .16); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.spark-line { fill: none; stroke: var(--coral-l); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-dot { fill: #fff; stroke: var(--coral-l); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-tip { position: absolute; pointer-events: none; transform: translate(-50%, -130%); background: #1b1a25; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 8px; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; color: #fff; z-index: 3; }
.hud-bank { position: relative; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding-top: 8px; }
.kv + .kv { border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 8px; }
.kv b { font-weight: 500; color: #fff; font-size: 13px; text-align: right; }
.kv > span { white-space: nowrap; }
.strat { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 4px; }
.up { color: var(--win) !important; }
.down { color: var(--loss) !important; }

.ov-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 12px; min-height: 260px; }
.ov-stage::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: .5;
  background:
    linear-gradient(#fff, #fff) left top / 18px 1.5px, linear-gradient(#fff, #fff) left top / 1.5px 18px,
    linear-gradient(#fff, #fff) right top / 18px 1.5px, linear-gradient(#fff, #fff) right top / 1.5px 18px,
    linear-gradient(#fff, #fff) left bottom / 18px 1.5px, linear-gradient(#fff, #fff) left bottom / 1.5px 18px,
    linear-gradient(#fff, #fff) right bottom / 18px 1.5px, linear-gradient(#fff, #fff) right bottom / 1.5px 18px;
  background-repeat: no-repeat;
}
.ov-icon { width: 96px; height: 96px; filter: drop-shadow(0 10px 24px rgba(8, 6, 20, .6)); }
.ov-detail { margin-top: 16px; color: var(--fg-2); font-size: 14px; }
.ov-result { margin-top: 6px; font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; min-height: 1.05em; }
.ov-sub { margin-top: 6px; color: var(--muted); font-size: 12.5px; min-height: 1.4em; }
.ov-note { margin-top: 10px; max-width: 34ch; color: var(--fg-2); font-size: 12.5px; line-height: 1.45; }
.spark-cap { margin-top: -2px; color: var(--dim); font-size: 11px; letter-spacing: .02em; }
.strat-card .strat-more { color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 8px; }
.ov-stage.hit .ov-icon { animation: hit .5s ease-out; }
@keyframes hit { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-10px) rotate(-8deg); } 100% { transform: translateY(0) rotate(0); } }

.hud-feed { display: flex; flex-direction: column; min-width: 0; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.feed { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; font-feature-settings: "tnum" 1; table-layout: fixed; }
.feed th { text-align: left; color: var(--dim); font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; padding: 0 0 8px; }
.feed th:nth-child(1) { width: 30%; }
.feed th:nth-child(2), .feed th:nth-child(3) { width: 22%; }
.feed th:last-child, .feed td:last-child { text-align: right; }
.feed td { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.feed td:first-child { color: #fff; font-family: var(--font); font-size: 13px; }
.feed tr.new td { animation: rowIn .45s ease-out; }
.feed td a { color: inherit; text-decoration: none; }
.feed td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feed td.empty, .tx td.empty { text-align: left; color: var(--dim); font-family: var(--font); font-size: 13px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); background: rgba(255, 158, 136, .12); } to { opacity: 1; transform: none; background: transparent; } }

/* ------------------------------------------------------------ how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; }
.step-art {
  height: 132px; border-radius: 12px; margin-bottom: 20px; display: grid; place-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 6% 104%, #6252ee 0, #4436d2 22px, #2d2398 38px, transparent 39px),
    radial-gradient(circle at 22% 118%, #7466f6 0, #4f40dc 18px, #2d2398 30px, transparent 31px),
    radial-gradient(circle at 96% 102%, #6252ee 0, #4436d2 24px, #2d2398 42px, transparent 43px),
    radial-gradient(circle at 80% 120%, #7466f6 0, #4f40dc 16px, #2d2398 28px, transparent 29px),
    radial-gradient(55% 80% at 50% 105%, rgba(255, 158, 136, .34), rgba(199, 123, 216, .1) 60%, transparent 80%),
    radial-gradient(90% 60% at 50% 0%, rgba(109, 93, 242, .1), transparent 70%),
    #110f1d;
}
.step-art::after { content: ""; position: absolute; inset: 0; background: url(hero/grain.png) 0 0 / 190px 190px; opacity: .5; }
.step-art svg { width: 84px; height: 84px; position: relative; z-index: 1; filter: drop-shadow(0 12px 18px rgba(6, 4, 18, .55)); }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.step h3 { margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.step p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; top: 84px; right: -13px; width: 10px; height: 10px;
  border-top: 1.5px solid var(--lav); border-right: 1.5px solid var(--lav); transform: rotate(45deg); opacity: .7;
}

/* ------------------------------------------------------------ strategies */
.strats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.strat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.strat-card.is-live { border-color: rgba(255, 158, 136, .45); background: linear-gradient(180deg, rgba(255, 158, 136, .06), transparent 40%), var(--panel); }
.strat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.strat-top .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.strat-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.strat-card > p { color: var(--muted); font-size: 14px; line-height: 1.5; min-height: 63px; }
.mini-wrap { position: relative; margin: 6px 0 4px; cursor: crosshair; }
.mini { display: block; width: 100%; height: 84px; }
.mini .cross { stroke: rgba(255, 255, 255, .5); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.mini-wrap.hover .cross { opacity: 1; }
.mini-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); background: #1b1a25; border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 8px; font-family: var(--mono); font-size: 11px; white-space: nowrap; pointer-events: none; z-index: 2; }
.outcome { display: grid; gap: 12px; align-content: center; height: 84px; margin: 6px 0 4px; }
.oc-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.oc-track { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.oc-fill { display: block; height: 100%; border-radius: 4px; }
.oc-v { text-align: right; color: var(--fg-2); font-size: 12px; }
.mini .base { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.mini .run { fill: none; stroke: var(--lav); stroke-opacity: .16; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini .med { fill: none; stroke: var(--coral-l); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.strat-stat { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.strat-stat b { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.strat-stat span { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.legend-line { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.legend-line i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* ------------------------------------------------------------ ledger */
.ledger-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.flow-tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.flow-tile .k { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.flow-tile .k i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.flow-tile .v { font-family: var(--mono); font-size: 27px; font-weight: 500; letter-spacing: -.035em; margin: 12px 0 4px; }
.flow-tile .note { color: var(--dim); font-size: 12.5px; }
.flow-tile:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; top: 50%; right: -12px; width: 8px; height: 8px; margin-top: -4px;
  border-top: 1.5px solid var(--lav); border-right: 1.5px solid var(--lav); transform: rotate(45deg); opacity: .6;
}
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.tx { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tx th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-family: var(--mono); padding: 0 0 10px; }
.tx td { padding: 11px 0; border-top: 1px solid var(--line); color: var(--fg-2); }
.tx .r { text-align: right; }
.tx td.mono { font-size: 13px; }
.tx a { color: var(--lav); text-decoration: none; font-family: var(--mono); font-size: 12.5px; }
.tx a:hover { text-decoration: underline; text-underline-offset: 3px; }
.type { display: inline-flex; align-items: center; gap: 8px; }
.type i { width: 7px; height: 7px; border-radius: 2px; }
.wallets { list-style: none; margin: 0; padding: 0; }
.wallets li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.wallets li:first-child { border-top: 0; padding-top: 2px; }
.wallets .wl { font-size: 13.5px; color: var(--fg-2); }
.wallets .wa { display: inline-flex; align-items: center; gap: 6px; }
.wallets code { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.wallets .later { font-size: 12.5px; color: var(--dim); }
.wallets li.empty { display: block; color: var(--dim); font-size: 13.5px; }
.icon-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.icon-btn:hover { color: #fff; border-color: var(--line-2); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.txt { width: auto; padding: 0 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }

/* ------------------------------------------------------------ vote */
.vote-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.poll { padding: 22px; }
.poll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 18px; }
.poll-k { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.poll-total { font-size: 22px; margin-top: 4px; letter-spacing: -.02em; }
.poll-total .muted { font-family: var(--font); font-size: 14px; letter-spacing: 0; }
.poll-snap { margin-top: 4px; font-size: 11px; color: var(--dim); }
.countdown { text-align: right; }
.cd { font-size: 22px; margin-top: 4px; letter-spacing: -.01em; }
.q { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.q-label { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.q-hint { color: var(--dim); font-size: 12.5px; text-align: right; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; text-align: left; transition: border-color .15s;
}
.opt:hover { border-color: var(--line-2); }
.opt:disabled { cursor: default; }
.opt:disabled:hover { border-color: var(--line); }
.opt[aria-pressed="true"] { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.opt .bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: rgba(109, 93, 242, .13); box-shadow: inset 0 -2px 0 rgba(141, 123, 255, .9); transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.opt.leading .bar { background: rgba(255, 158, 136, .11); box-shadow: inset 0 -2px 0 var(--coral-l); }
.opt > :not(.bar) { position: relative; }
.opt svg { width: 30px; height: 30px; flex: none; }
.opt .ot { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.opt .ol { font-size: 14px; font-weight: 500; line-height: 1.2; }
.opt .ob { font-size: 11.5px; color: var(--dim); line-height: 1.25; margin-top: 3px; }
.opt .or { margin-left: auto; text-align: right; line-height: 1.2; flex: none; white-space: nowrap; }
.opt .pc { display: block; font-family: var(--mono); font-size: 13.5px; font-weight: 500; }
.opt .wt { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
/* a game the casino has paused right now: still votable (the rules allow it), visibly off */
.opt.off { border-style: dashed; }
.opt.off svg, .opt.off .ol { opacity: .5; }
.opt.off .ob { color: var(--loss); }
.poll-foot { display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.poll-msg { color: var(--muted); font-size: 13px; flex: 1; min-width: 200px; }
.vote-side { display: grid; gap: 16px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { position: relative; padding-left: 22px; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.recount { margin-top: 16px; }
.recount a { color: var(--lav); text-decoration: none; }
.recount a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rules li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--lav); transform: rotate(45deg); }
.past { list-style: none; margin: 0; padding: 0; }
.past li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.past li:first-child { border-top: 0; padding-top: 2px; }
.past .s { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.past .c { font-size: 13.5px; color: var(--fg-2); line-height: 1.35; }
.past .c small { display: block; color: var(--dim); font-size: 12px; font-family: var(--mono); }
.past .c small.why { font-family: var(--font); color: var(--muted); margin-top: 2px; }
.past .res { font-family: var(--mono); font-size: 13px; }
.past .res.st { font-size: 12px; color: var(--muted); }
.past li.empty { display: block; color: var(--dim); font-size: 13.5px; }

/* ------------------------------------------------------------ faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 48px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--muted); border-radius: 1px; transition: transform .2s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details p { color: var(--muted); padding: 0 32px 20px 0; max-width: 64ch; font-size: 15px; line-height: 1.6; }
.faq .risk summary { color: #fff; }
.faq .risk summary .q-t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--coral-l); transform: rotate(45deg); margin-right: 12px; vertical-align: 2px; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; position: relative; overflow: hidden; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-sm { font-size: 14px; }
.brand-sm .logo { width: 18px; height: 18px; }
.foot-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); padding: 10px 14px; border-radius: 10px;
  background: #1b1a25; border: 1px solid var(--line-2); color: #fff; font-size: 13.5px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 32px);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .ov-grid { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "col stage" "feed feed"; }
  .ov-col { grid-area: col; }
  .ov-stage { grid-area: stage; }
  .hud-feed { grid-area: feed; }
  .strats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-tile:nth-child(2)::after { display: none; }
  .ledger-grid, .vote-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap { gap: 8px; }
}
/* portrait tablets: let the stage run wider than the screen so the art still fills the lower half */
@media (min-width: 701px) and (max-aspect-ratio: 5/6) {
  .hero { --art-h: calc(46 * var(--vh1)); --stage-w: max(92vw, calc(var(--art-h) / .375)); }
  .hero-copy { padding-bottom: 12px; }
  .clouds-b .cl-l { transform: translate(120px, 8px); }
  .clouds-b .cl-r { transform: translate(-120px, 8px); }
  .clouds-f .cl-l { transform: translate(80px, 20px); }
  .clouds-f .cl-r { transform: translate(-80px, 20px); }
  .clouds-f .cl-c { transform: translate(0, 14px); }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none; }
  .nav-in { height: 58px; }
  /* phones: stage wider than the screen (sides cropped); capped by height for short or wide screens */
  .hero { --art-h: min(calc(88.5vw + 64px), 52 * var(--vh1)); --stage-w: calc((var(--art-h) - 64px) / .375); min-height: 0; }
  .hero-copy { flex: none; padding: 104px 16px 8px; }
  .hero h1 { font-size: clamp(28px, 9vw, 48px); margin-top: 22px; letter-spacing: -.05em; }
  .hero-sub { font-size: 15px; max-width: 360px; }
  .hero-cta { margin-top: 24px; }
  .art { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px); mask-image: linear-gradient(to bottom, transparent 0, #000 40px); }
  .it { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--mw, var(--w)); }
  .it.m-hide { display: none; }
  .clouds-b .cl-l { transform: translate(236px, 16px); }
  .clouds-b .cl-r { transform: translate(-236px, 16px); }
  .clouds-f .cl-l { transform: translate(150px, 40px); }
  .clouds-f .cl-r { transform: translate(-150px, 40px); }
  .clouds-f .cl-c { transform: translate(0, 26px); }

  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 32px; }
  .ov { padding: 12px; gap: 12px; min-height: 0; border-radius: 16px; }
  .ov-top { flex-wrap: wrap; row-gap: 8px; }
  .ov-session { order: 3; width: 100%; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "col" "feed"; gap: 12px; }
  .ov-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ov-stage { min-height: 200px; padding: 22px 8px; }
  .spark.empty { display: none; }
  .ov-icon { width: 76px; height: 76px; }
  .feed th:nth-child(1) { width: 28%; }
  .feed tbody tr:nth-child(n+7) { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 16px; padding: 14px; align-items: center; }
  .step-art { height: 96px; margin: 0; grid-row: span 3; }
  .step-art svg { width: 64px; height: 64px; }
  .step h3 { margin-top: 2px; font-size: 16.5px; }
  .step p { font-size: 13.5px; }
  .step::after { display: none; }
  .strats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .strat-card > p { min-height: 0; }
  .flow { gap: 10px; }
  .flow-tile { padding: 14px; border-radius: 14px; }
  .flow-tile .v { font-size: 19px; margin: 10px 0 2px; }
  .flow-tile .note { font-size: 11.5px; }
  .flow-tile::after { display: none; }
  .panel { padding: 16px; border-radius: 14px; }
  .tx th:first-child, .tx td:first-child { display: none; }
  .tx td.empty:first-child { display: table-cell; }
  .poll { padding: 16px; }
  .poll-head { flex-direction: row; }
  .poll-total, .cd { font-size: 19px; }
  .opts, .opts.three { grid-template-columns: minmax(0, 1fr); }
  .opt { min-height: 50px; }
  .poll-foot .btn { width: 100%; }
  .faq summary { font-size: 15px; padding: 17px 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob, .tg, .ring, .pulse::after, .ov-stage.hit .ov-icon, .feed tr.new td { animation: none !important; }
  .ember { animation: none !important; opacity: .75; }
  .opt .bar, .menu-btn path { transition: none; }
}
