@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('./assets/barlow-condensed.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/ibm-plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --surface: #14191f;
  --raised: #191f26;
  --line: #2b323a;
  --ink: #f5efe6;
  --muted: #a6adb5;
  --orange: #f38b38;
  --amber: #ffad61;
  --green: #8bdcb0;
  --red: #ffaba3;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
:where(h1, h2, h3, p, dl, dd) { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
::selection { background: var(--orange); color: #101010; }
.definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; top: -70px; left: 16px; z-index: 5; padding: 12px; background: var(--surface); }
.skip:focus { top: 12px; }
.shell { width: min(100% - 80px, 1232px); margin-inline: auto; }
section[id] { scroll-margin-top: 26px; }

.topbar { position: relative; z-index: 2; border-bottom: 1px solid #262b30; background: #0d1013; }
.topbar-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.topbar nav, .site-footer nav { display: flex; align-items: center; gap: 30px; }
.topbar nav a, .site-footer nav a { color: var(--muted); font-size: .875rem; }
.topbar nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.top-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #593e2c; border-radius: 5px; padding: 9px 12px; color: var(--amber); font-size: .875rem; font-weight: 600; }
.top-link:hover { background: #2c2119; }
:where(.top-link, .button, .section-top, .eyebrow, .tablist, .pool-link, .solo-odds a) svg { width: 18px; height: 18px; flex: none; }

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0e11 1%, transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 35px, #24262755 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, #24262755 35px 36px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 96%);
  z-index: -2;
}
.hero-inner { position: relative; min-height: 434px; display: grid; }
.monster {
  --eye-glow: .64;
  --spark-opacity: .78;
  --spark-halo: .25;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  z-index: -1;
  margin-right: -30px;
  width: min(74%, 875px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.hero-content { position: relative; grid-area: 1 / 1; align-self: center; justify-self: start; z-index: 1; padding: 26px 0 42px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--amber); font: .8125rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow > span { width: 16px; height: 1px; background: var(--orange); box-shadow: 0 0 9px #f38b3877; }
.hero h1 { margin: 10px 0 14px; font: 800 clamp(4rem, 7.8vw, 7.2rem)/.88 'Barlow Condensed', Impact, Haettenschweiler, 'Arial Narrow', sans-serif; letter-spacing: -.014em; }
.hero h1 em { display: block; color: var(--orange); font-style: normal; }
.hero-copy { color: #b9bec3; max-width: 380px; font-size: 1.04rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 11px; margin-top: 25px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 15px; min-height: 44px; border: 1px solid transparent; border-radius: 5px; font-size: .875rem; font-weight: 700; }
.primary { background: var(--orange); color: #15100d; }
.primary:hover, .primary:focus-visible { background: #ffab62; }
.secondary { border-color: #39414a; background: #11161b; color: var(--ink); }
.secondary:hover { background: #1b2229; border-color: #64676b; }
.eye-open { transform-box: fill-box; transform-origin: center; transition: transform 68ms ease; }
.monster.is-blinking .eye-open { transform: scaleY(.08); }
.eye-light, .wire-sparks, .wire-spark-halo { transition: opacity 140ms ease; }
.eye-light { opacity: var(--eye-glow); }
.monster.is-blinking .eye-light { opacity: .15; }
.wire-sparks { opacity: var(--spark-opacity); }
.wire-spark-halo { opacity: var(--spark-halo); }
body:has(.hero .primary:is(:hover, :focus-visible), .top-link:is(:hover, :focus-visible), .calculator-shell :is(input, select, button):focus) .monster {
  --eye-glow: 1;
  --spark-opacity: 1;
  --spark-halo: .56;
}

.content { position: relative; }
.network { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.section-top { min-height: 47px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.section-top h2 { display: flex; align-items: center; gap: 8px; font: .8125rem var(--mono); text-transform: uppercase; letter-spacing: .055em; }
.section-top h2 svg { color: var(--orange); }
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #f5bd87; font: .75rem/1.2 var(--mono); white-space: nowrap; background: #2a221b; border: 1px solid #4b3828; border-radius: 4px; padding: 5px 7px; }
.status[data-state="live"] { color: var(--green); background: #162720; border-color: #2d4a3b; }
.status[data-state="live"]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status[data-state="unavailable"] { color: var(--muted); background: #1d2228; border-color: #343b43; }
.telemetry { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.telemetry > div { min-width: 0; min-height: 94px; padding: 13px 15px; border-right: 1px solid var(--line); }
.telemetry > div:last-child { border-right: 0; }
.telemetry dt { color: #c3c9cf; font-size: .855rem; font-weight: 500; }
.telemetry dd { margin-top: 5px; font: 1.3rem/1.25 var(--mono); letter-spacing: -.06em; white-space: nowrap; }
.telemetry div > span { display: block; margin-top: 5px; color: var(--muted); font: .751rem/1.3 var(--mono); }
.telemetry .telemetry-emphasis { background: linear-gradient(120deg, #2d211b, #1e1b1b); box-shadow: inset 0 2px #b16a35; }
.telemetry-emphasis dd { color: var(--amber); }

.section { margin-top: 60px; }
.section-heading { margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { font-size: clamp(1.78rem, 4vw, 2.45rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.16; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.5; margin-top: 7px; }
.calculator-shell { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); overflow: hidden; }
.tablist { display: flex; gap: 2px; padding-inline: 13px; background: #101419; border-bottom: 1px solid var(--line); }
.tablist button { min-height: 54px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 650; }
.tablist button:hover, .tablist button[aria-selected="true"] { color: var(--amber); }
.tablist button[aria-selected="true"] { border-color: var(--orange); }
.tablist button:focus-visible { outline-offset: -4px; }
.tablist button span { color: var(--muted); font-weight: 400; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.25fr); }
.calc-inputs, .calc-results { min-width: 0; padding: 24px; }
.calc-inputs { border-right: 1px solid var(--line); }
.calculator h3 { font-size: 1.03rem; font-weight: 700; letter-spacing: -.02em; }
.calc-inputs h3 { margin-bottom: 20px; }
.field { min-width: 0; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 7px; font-size: .875rem; font-weight: 600; }
.field label span { color: var(--muted); font: .75rem var(--mono); }
.field-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.field-row .field { margin-bottom: 0; }
.field input[type="number"], .field select { width: 100%; min-width: 0; height: 43px; padding: 0 10px; border: 1px solid #3b444e; border-radius: 5px; background: #0e1216; color: var(--ink); font: .95rem var(--mono); }
.field input[type="number"] { appearance: textfield; }
.field input::-webkit-inner-spin-button, .field input::-webkit-outer-spin-button { appearance: none; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field input[type="range"] { width: 100%; accent-color: var(--orange); display: block; margin: 11px 0 4px; cursor: pointer; }
.range-labels, .scenario { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font: .75rem var(--mono); }
.scenario { margin-top: 8px; }
.scenario button { padding: 3px 0; border: 0; background: transparent; color: var(--amber); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.scenario button:disabled { color: var(--muted); opacity: .7; text-decoration: none; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button { min-width: 42px; background: #1a2026; border: 1px solid #36404a; border-radius: 4px; padding: 5px 7px; color: #c7cdd2; font: .8125rem var(--mono); }
.presets button:hover, .presets button[aria-pressed="true"] { color: var(--amber); border-color: #82532f; background: #2c221b; }
.input-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.input-unit input[type="number"] { border-radius: 5px 0 0 5px; }
.field select { width: auto; appearance: none; padding-right: 26px; border-left: 0; border-radius: 0 5px 5px 0; font-size: .8125rem; color: #d9bda8; background: #1b1d20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23d9bda8' stroke-width='1.4'/%3E%3C/svg%3E") right 8px center / 11px no-repeat; }
.field-note { color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.profit-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px 15px; padding: 15px; border: 1px solid #5b412e; border-radius: 6px; background: linear-gradient(115deg, #2e231c, #191a1c); }
.profit-banner h3 { color: #f5d4b8; margin-bottom: 5px; }
.profit-banner span { color: #bdb1a5; font: .75rem var(--mono); }
.profit-banner strong { font: clamp(1.45rem, 4vw, 2.12rem)/1.2 var(--mono); letter-spacing: -.065em; color: var(--ink); }
.profit-banner > div:last-child { text-align: right; }
.profit-banner > div:last-child strong { display: block; font-size: 1.05rem; letter-spacing: -.035em; margin-top: 4px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.result-list { margin: 7px 0 13px; }
.result-list > div { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.result-list dt { color: #d0d3d6; font-size: .875rem; }
.result-list dt small { color: var(--muted); margin-left: 4px; font-size: .75rem; white-space: nowrap; }
.result-list dd, .period-table td { text-align: right; font: .875rem var(--mono); }
.result-list dd strong { font-weight: 400; }
.result-list dd small, .period-table small { display: block; margin-top: 3px; color: var(--muted); font: .75rem var(--mono); }
.break-even dd strong { color: var(--amber); }
.period-table, .pool-stats, .matrix { width: 100%; border-collapse: collapse; }
.period-table caption { text-align: left; font-size: .875rem; font-weight: 650; margin-bottom: 5px; }
.period-table :is(th, td) { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.period-table thead th { color: var(--muted); font: .75rem var(--mono); text-align: right; }
.period-table tr > th:first-child { text-align: left; padding-left: 0; }
.period-table tbody th { color: #d0d3d6; font-size: .8125rem; font-weight: 500; }
.period-table strong { font-weight: 400; }
.basic-table { margin: 20px 0 12px; }
.basic-table td { vertical-align: middle; }
.sensitivity { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #12171b; }
.sensitivity-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.sensitivity-head p { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.legend { display: flex; gap: 13px; font: .75rem var(--mono); color: var(--muted); }
.legend span::before { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--green); content: ''; margin-right: 5px; }
.legend span:last-child::before { background: var(--red); }
.matrix-wrap { overflow-x: auto; }
.matrix { min-width: 465px; table-layout: fixed; font: .8125rem var(--mono); border-spacing: 4px; border-collapse: separate; }
.matrix :is(th, td) { padding: 7px 3px; border-radius: 3px; text-align: center; white-space: nowrap; }
.matrix th { color: #c5cbd1; font-weight: 400; }
.matrix td { border: 1px solid #232b32; background: #1c2228; }
.matrix td.positive { background: #172c24; border-color: #254238; }
.matrix td.negative { background: #32201f; border-color: #4b302b; }
.matrix td[data-current] { border-color: #da8e55; }
.solo-odds a { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-size: .875rem; }
.odds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.odds-grid > div { padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: #181e24; }
.odds-grid dt { color: var(--muted); font-size: .8125rem; }
.odds-grid dd { font: .95rem var(--mono); margin-top: 7px; }

.pool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.pool-card { display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.pool-card.featured { border-color: #66432d; background: linear-gradient(150deg, #281e18, #15191e 57%); }
.pool-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.pool-icon { display: grid; place-items: center; color: var(--amber); width: 40px; height: 40px; background: #2b221c; border-radius: 5px; border: 1px solid #62432e; font-size: 1.45rem; font-weight: 700; }
.pool-icon svg { width: 23px; height: 23px; }
.pool-card h3 { font-size: 1.11rem; letter-spacing: -.03em; }
.pool-description { min-height: 44px; color: var(--muted); line-height: 1.45; font-size: .875rem; margin-top: 5px; }
.pool-facts, .pool-stats { margin: 11px 0 16px; font-size: .8125rem; }
.pool-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.pool-facts dt, .pool-stats thead th { color: var(--muted); font-weight: 400; }
.pool-facts dd { text-align: right; }
.pool-stats :is(th, td) { text-align: right; padding: 8px 3px; border-top: 1px solid var(--line); }
.pool-stats tr :first-child { text-align: left; }
.pool-stats td { font-family: var(--mono); white-space: nowrap; }
.pool-stats th a:hover, .pool-link:hover, .solo-odds a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pool-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--amber); margin-top: auto; border-top: 1px solid var(--line); padding-top: 11px; font-size: .875rem; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); margin-top: 58px; }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner > span { display: flex; align-items: center; gap: 8px; font-size: .875rem; white-space: nowrap; }
.footer-inner small { color: var(--muted); font-size: .75rem; }

@media (max-width: 1050px) {
  .shell { width: min(100% - 48px, 1232px); }
  .monster { margin-right: -18px; width: 76%; }
  .telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .telemetry > div { min-height: 78px; }
  .telemetry > div:nth-child(3) { border-right: 0; }
  .telemetry > div:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .pool-card { padding: 14px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 64px; gap: 8px; }
  .topbar nav { gap: 13px; }
  .topbar nav a { font-size: .8125rem; }
  .top-link { display: none; }
  .hero-inner { min-height: 0; }
  .monster { margin-right: -10px; width: min(77%, 610px); }
  .hero-content { padding: 57px 0 42px; }
  .hero-content::before { content: ''; position: absolute; z-index: -1; inset: 0 -25px 0 -17px; background: linear-gradient(90deg, #0b0e11 8%, #0b0e1199 47%, transparent 96%); }
  .hero h1 { font-size: clamp(4rem, 13vw, 6.15rem); }
  .hero-copy { max-width: 315px; font-size: 1rem; }
  .section { margin-top: 44px; }
  .calculator-grid, .pool-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc-inputs, .calc-results, .sensitivity { padding: 17px; }
  .pool-card { padding: 16px; }
  .pool-description { min-height: 0; }
}
@media (max-width: 520px) {
  .monster { justify-self: center; margin-right: 0; width: min(100% + 22px, 475px); }
  .hero-content { grid-area: 2 / 1; width: 100%; padding: 12px 0 28px; }
  .hero-content::before { inset: 0 -16px; background: var(--bg); }
  .hero h1 { font-size: clamp(3.15rem, 11.5vw, 4.6rem); margin-top: 6px; }
  .hero h1 em { display: inline; }
  .hero-copy { max-width: 340px; }
  .hero-actions { margin-top: 16px; gap: 7px; }
  .button { padding-inline: 10px; }
  .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry > div { padding: 10px; }
  .telemetry > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .telemetry > div:nth-child(even) { border-right: 0; }
  .telemetry > div:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .telemetry dd { font-size: 1.12rem; }
  .section-top { padding-inline: 10px; }
  .tablist { padding-inline: 4px; }
  .tablist button { padding: 0 9px; min-height: 56px; flex: 1; justify-content: center; }
  .tablist button span { display: none; }
  .result-list dt small { display: block; margin: 2px 0 0; }
  .odds-grid > div { padding: 8px 5px; }
  .odds-grid dd { font-size: .8125rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 13px; }
  .site-footer nav { gap: 15px; }
}
@media (max-width: 355px) {
  .brand svg { width: 117px; height: auto; }
  .topbar nav { gap: 8px; }
  .topbar nav a { font-size: .75rem; }
  .hero h1 { font-size: 2.95rem; }
  .calc-inputs, .calc-results, .sensitivity { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eye-open, .eye-light, .wire-sparks, .wire-spark-halo { transition: none; }
}
