/* ==========================================================================
   dueloriginal.com — design system
   Dark-only by intent. Two accents: VOLT (the player / zero edge) and
   EMBER (the house / the margin). Everything on the site is one of the two.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --ink:        #07080b;
  --ink-2:      #0b0d12;
  --surface:    #10131a;
  --surface-2:  #161a23;
  --surface-3:  #1d222d;

  --line:       rgb(255 255 255 / 0.09);
  --line-2:     rgb(255 255 255 / 0.16);

  --text:       #edf0f5;
  --text-2:     #aab3c2;
  --text-3:     #6f7889;

  --volt:       #ccff2e;
  --volt-ink:   #0a0f00;
  --volt-dim:   #8fb31f;
  --ember:      #ff4a2b;
  --ember-dim:  #b83318;

  --radius:     14px;
  --radius-lg:  22px;

  --shell:      min(1220px, 100% - 2 * var(--gutter));
  --gutter:     clamp(18px, 5vw, 48px);

  --ff-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ff-body:    'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0:  clamp(0.98rem, 0.94rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.16rem, 1.08rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 2.05rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 3rem);
  --step-4:  clamp(2.4rem, 1.75rem + 3.1vw, 4.6rem);
  --step-5:  clamp(3rem, 1.9rem + 5.2vw, 6.6rem);

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

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--ff-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--volt); color: var(--volt-ink); }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; background: var(--volt); color: var(--volt-ink);
  border-radius: 8px; font-weight: 700; transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* film grain — kills the flat-gradient look of every AI-built dark page */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: 0.032; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.033em;
  text-wrap: balance;
}
h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { text-wrap: pretty; }

.mono { font-family: var(--ff-mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow--volt { color: var(--volt); }

.volt  { color: var(--volt); }
.ember { color: var(--ember); }
.dim   { color: var(--text-2); }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--text-2); }

/* --- layout --------------------------------------------------------------- */

.shell { width: var(--shell); margin-inline: auto; }

section { position: relative; z-index: 2; }

.sect { padding-block: clamp(64px, 9vw, 130px); }
.sect--tight { padding-block: clamp(44px, 6vw, 80px); }
.sect--line { border-top: 1px solid var(--line); }
.sect--surface { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }

.shead { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 56px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead__title { font-size: var(--step-3); margin-top: 14px; }
.shead__sub { margin-top: 16px; font-size: var(--step-1); color: var(--text-2); line-height: 1.55; }

.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* --- buttons -------------------------------------------------------------- */

.btn {
  --bg: transparent; --fg: var(--text); --bd: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.88em 1.35em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: 100px;
  font-family: var(--ff-display);
  font-weight: 700; font-size: var(--step--1);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn > span { position: relative; z-index: 1; }
.btn__arw { width: 15px; height: 15px; flex: none; position: relative; z-index: 1; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__arw { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { --bg: var(--volt); --fg: var(--volt-ink); --bd: var(--volt); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.55) 50%, transparent 80%);
  transform: translateX(-120%);
}
.btn--primary:hover::after { animation: sheen 0.75s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }

.btn--ghost:hover { --bd: var(--volt); --fg: var(--volt); }
.btn--outline { --bd: var(--line-2); background: rgb(255 255 255 / 0.03); }
.btn--outline:hover { --bd: var(--volt); }
.btn--sm { padding: 0.7em 1.1em; font-size: 0.82rem; }
.btn--lg { padding: 1.05em 1.8em; font-size: var(--step-0); }
.btn--block { display: flex; justify-content: center; width: 100%; }

/* --- header --------------------------------------------------------------- */

.hdr {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 22px;
  width: 100%; padding: 14px var(--gutter);
  background: color-mix(in oklab, var(--ink) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.hdr.is-stuck { border-bottom-color: var(--line); background: color-mix(in oklab, var(--ink) 92%, transparent); }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 27px; height: 27px; color: var(--volt); }
.logo__txt {
  font-family: var(--ff-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; color: var(--text-2);
}
.logo__txt b { font-weight: 900; color: var(--text); letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 9px 14px; border-radius: 9px;
  font-size: 0.88rem; font-weight: 600; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover, .nav__link.is-on { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav__link.is-on { color: var(--volt); }

.menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(470px, 80vw); padding: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 24px 60px -18px rgb(0 0 0 / 0.85);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s, transform 0.28s var(--ease), visibility 0.2s;
}
.nav__item--has-menu:hover .menu,
.nav__item--has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu__link {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 12px; border-radius: 9px;
  transition: background-color 0.18s;
}
.menu__link:hover { background: var(--surface-2); }
.menu__link b { font-size: 0.9rem; font-weight: 700; }
.menu__link em {
  font-family: var(--ff-mono); font-style: normal;
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
}
.menu__all {
  display: block; margin-top: 6px; padding: 11px 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--volt);
}

.hdr__right { display: flex; align-items: center; gap: 10px; flex: none; }

.burger { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.burger span { display: block; width: 16px; height: 1.6px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span + span { margin-top: 4.5px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.1px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.1px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 61px 0 0; z-index: 99;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px var(--gutter) 40px;
  background: var(--ink); overflow-y: auto;
  animation: drawerIn 0.32s var(--ease);
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-10px); } }
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer a {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-family: var(--ff-display); font-weight: 700; font-size: 1.08rem;
}
.drawer__sub { padding-left: 16px !important; font-weight: 500 !important; font-size: 0.94rem !important; color: var(--text-2); }

/* --- hero ----------------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(44px, 6vw, 84px) clamp(50px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; z-index: 0;
  inset: -40% -10% auto -10%; height: 90vh;
  background: radial-gradient(52% 50% at 28% 40%, rgb(204 255 46 / 0.13), transparent 70%),
              radial-gradient(45% 45% at 82% 18%, rgb(255 74 43 / 0.1), transparent 70%);
  filter: blur(18px); pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 4.5vw, 66px); align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 7px; margin-bottom: 22px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 0.73rem; font-weight: 600; color: var(--text-2);
}
.hero__badge b {
  padding: 3px 8px; background: var(--volt); color: var(--volt-ink);
  border-radius: 100px; font-family: var(--ff-mono); font-size: 0.66rem; font-weight: 700;
}

.hero h1 { font-size: var(--step-5); font-weight: 900; letter-spacing: -0.045em; }
.hero h1 .ln { display: block; }
.hero h1 em {
  font-style: normal; position: relative; color: var(--volt);
  white-space: nowrap;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.1em; height: 0.075em;
  background: var(--volt); transform-origin: left; transform: scaleX(0);
  animation: underline 0.9s 0.55s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__sub { margin-top: 24px; max-width: 46ch; font-size: var(--step-1); color: var(--text-2); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__fine { margin-top: 16px; font-size: 0.78rem; color: var(--text-3); }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 40px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { padding: 16px 18px; background: var(--ink); }
.stat__value {
  font-family: var(--ff-mono); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--volt);
}
.stat__label { margin-top: 3px; font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.stat__note { margin-top: 2px; font-size: 0.7rem; color: var(--text-3); }

/* hero canvas */
.hero__viz {
  position: relative;
  aspect-ratio: 5 / 4;
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9);
}
.hero__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz__head {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
}
.viz__title { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.viz__bets { font-family: var(--ff-mono); font-size: 0.66rem; color: var(--text-3); }
.viz__legend { position: absolute; z-index: 2; left: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.viz__key { display: flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 0.68rem; color: var(--text-2); }
.viz__dot { width: 18px; height: 2px; border-radius: 2px; }
.viz__dot--volt { background: var(--volt); }
.viz__dot--ember { background: var(--ember); }
.viz__val { margin-left: auto; font-weight: 700; }

/* --- ticker --------------------------------------------------------------- */

.ticker {
  position: relative; z-index: 2;
  padding-block: 15px; border-block: 1px solid var(--line);
  background: var(--ink-2); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__row { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker__item {
  display: flex; align-items: center; gap: 11px; padding-inline: 22px;
  font-family: var(--ff-mono); font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.ticker__item b { color: var(--text); font-weight: 500; }
.ticker__item i { width: 4px; height: 4px; border-radius: 50%; background: var(--volt); }

/* --- generic card --------------------------------------------------------- */

.card {
  position: relative; padding: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(170deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card__ico {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px;
  background: rgb(204 255 46 / 0.1); border: 1px solid rgb(204 255 46 / 0.22);
  border-radius: 11px; color: var(--volt);
}
.card__ico .ico { width: 17px; height: 17px; }
.card h3 { font-size: var(--step-1); }
.card p { margin-top: 10px; color: var(--text-2); font-size: var(--step--1); line-height: 1.62; }
.card--num { counter-increment: step; }
.card--num::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--volt);
}

/* --- game cards ----------------------------------------------------------- */

.gcard {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}
.gcard:hover {
  transform: translateY(-5px);
  border-color: rgb(204 255 46 / 0.35);
  box-shadow: 0 26px 50px -28px rgb(0 0 0 / 0.95);
}
.gcard__art {
  position: relative; aspect-ratio: 16 / 11;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / 0.05), transparent 70%);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  overflow: hidden;
}
.gcard:hover .gcard__art { color: var(--text); }
.art { width: 78%; height: auto; }
.art__grid { transition: opacity 0.4s; }
.gcard:hover .art__grid { opacity: 0.3; }
.art__accent { color: var(--volt); transition: color 0.35s; }
.art__accent-stroke { color: var(--volt); }
.art__tile-on { color: var(--volt); }
.art__label { letter-spacing: 0.1em; opacity: 0.6; }
.art__main { transition: transform 0.5s var(--ease); }
.gcard:hover .art__main { transform: scale(1.045); }

.art__trace { stroke-dasharray: 260; stroke-dashoffset: 0; }
.gcard:hover .art__trace { animation: trace 1.1s var(--ease); }
@keyframes trace { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.art__spin { transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.gcard:hover .art__spin { transform: rotate(120deg); }

.gcard__body { display: flex; flex-direction: column; padding: 18px 20px 20px; flex: 1; }
.gcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gcard__name { font-size: var(--step-1); }
.gcard__edge {
  padding: 3px 8px; background: rgb(204 255 46 / 0.12); border: 1px solid rgb(204 255 46 / 0.25);
  border-radius: 100px; font-family: var(--ff-mono); font-size: 0.66rem; font-weight: 700; color: var(--volt);
}
.gcard__tag { margin-top: 9px; margin-bottom: 16px; font-size: 0.86rem; line-height: 1.55; color: var(--text-2); }
.gcard__meta { display: flex; gap: 22px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.gcard__meta dt { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.gcard__meta dd { margin: 2px 0 0; font-size: 0.82rem; font-weight: 600; }
.gcard__go {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 30px; height: 30px;
  background: rgb(0 0 0 / 0.4); border: 1px solid var(--line); border-radius: 50%;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.4s var(--ease), background-color 0.3s;
}
.gcard__go .btn__arw { width: 13px; height: 13px; }
.gcard:hover .gcard__go { opacity: 1; transform: none; background: var(--volt); color: var(--volt-ink); }

/* --- edge bars ------------------------------------------------------------ */

.bars { display: flex; flex-direction: column; gap: 2px; }
.bar {
  display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto;
  gap: 16px; align-items: center;
  padding: 13px 16px; border-radius: 10px;
  transition: background-color 0.25s;
}
.bar:hover { background: rgb(255 255 255 / 0.03); }
.bar__label { font-size: 0.88rem; font-weight: 600; }
.bar__track { position: relative; height: 9px; background: rgb(255 255 255 / 0.05); border-radius: 100px; overflow: hidden; }
.bar__fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w, 0%);
  border-radius: 100px;
  background: var(--ember);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.1s var(--ease) var(--d, 0s);
}
.bar.is-in .bar__fill { transform: scaleX(1); }
.bar--volt .bar__fill { background: var(--volt); box-shadow: 0 0 18px rgb(204 255 46 / 0.55); }
.bar--volt .bar__label { color: var(--volt); font-weight: 700; }
.bar__val { font-family: var(--ff-mono); font-size: 0.86rem; font-weight: 700; color: var(--text-2); min-width: 6ch; text-align: right; }
.bar--volt .bar__val { color: var(--volt); }
.bars__note { margin-top: 14px; padding-left: 16px; font-size: 0.76rem; color: var(--text-3); }
.bar__zero { position: absolute; left: 0; top: 50%; width: 22px; height: 3px; border-radius: 3px; background: var(--volt); transform: translateY(-50%); box-shadow: 0 0 16px rgb(204 255 46 / 0.7); }

/* --- calculator ----------------------------------------------------------- */

.calc {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.calc__controls { padding: clamp(22px, 3vw, 36px); border-right: 1px solid var(--line); }
.calc__out { padding: clamp(22px, 3vw, 36px); background: rgb(0 0 0 / 0.28); display: flex; flex-direction: column; }

.field { margin-bottom: 26px; }
.field:last-child { margin-bottom: 0; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.field__val { font-family: var(--ff-mono); font-size: 1rem; font-weight: 700; color: var(--volt); }

input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--volt) var(--p, 50%), rgb(255 255 255 / 0.12) var(--p, 50%));
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--volt); border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--volt), 0 0 16px rgb(204 255 46 / 0.5);
  transition: transform 0.2s;
}
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type='range']::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; background: var(--volt);
  border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--volt);
}

.segs { display: flex; gap: 4px; padding: 4px; background: rgb(0 0 0 / 0.35); border: 1px solid var(--line); border-radius: 11px; }
.segs button {
  flex: 1; padding: 9px 6px; border-radius: 8px;
  font-family: var(--ff-mono); font-size: 0.76rem; font-weight: 500; color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.segs button:hover { color: var(--text); }
.segs button[aria-pressed='true'] { background: var(--volt); color: var(--volt-ink); font-weight: 700; }

.calc__result { margin-top: auto; }
.calc__big {
  font-family: var(--ff-mono); font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.05em; color: var(--volt); line-height: 1;
}
.calc__cap { margin-top: 10px; font-size: 0.88rem; color: var(--text-2); max-width: 36ch; }
.calc__rows { display: flex; flex-direction: column; gap: 1px; margin-bottom: 26px; background: var(--line); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.calc__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; background: var(--ink-2); }
.calc__row span { font-size: 0.83rem; color: var(--text-2); }
.calc__row b { font-family: var(--ff-mono); font-size: 0.95rem; font-weight: 700; }
.calc__row--loss b { color: var(--ember); }
.calc__row--keep b { color: var(--volt); }

/* --- provably fair verifier ---------------------------------------------- */

.pf { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }

.pfsteps { counter-reset: step; }
.pfstep {
  position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 18px;
  padding-bottom: 30px;
}
.pfstep::before {
  content: ''; position: absolute; left: 16.5px; top: 34px; bottom: 0; width: 1px;
  background: linear-gradient(var(--line), transparent);
}
.pfstep:last-child { padding-bottom: 0; }
.pfstep:last-child::before { display: none; }
.pfstep__n {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 50%;
  font-family: var(--ff-mono); font-size: 0.76rem; font-weight: 700; color: var(--volt);
}
.pfstep h3 { font-size: var(--step-0); }
.pfstep p { margin-top: 7px; font-size: var(--step--1); color: var(--text-2); line-height: 1.62; }

.verifier {
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.verifier__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgb(0 0 0 / 0.3);
}
.verifier__head .ico { width: 15px; height: 15px; color: var(--volt); }
.verifier__head h3 { font-size: 0.9rem; letter-spacing: 0; }
.verifier__dots { display: flex; gap: 5px; margin-left: auto; }
.verifier__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.verifier__body { padding: clamp(18px, 2.4vw, 26px); }

.in { width: 100%; padding: 11px 13px; background: rgb(0 0 0 / 0.4); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: var(--ff-mono); font-size: 0.82rem; transition: border-color 0.2s; }
.in:focus { border-color: var(--volt); outline: none; }
.in::placeholder { color: var(--text-3); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lbl { display: block; margin-bottom: 7px; font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }
.stack { display: flex; flex-direction: column; gap: 15px; }

.vout { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.vout__hash { padding: 12px 14px; background: rgb(0 0 0 / 0.45); border: 1px solid var(--line); border-radius: 10px; font-family: var(--ff-mono); font-size: 0.72rem; line-height: 1.7; color: var(--text-2); word-break: break-all; }
.vout__hash b { color: var(--volt); font-weight: 500; }
.vout__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.vout__cell { padding: 13px 15px; background: var(--ink-2); }
.vout__cell dt { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }
.vout__cell dd { margin: 5px 0 0; font-family: var(--ff-mono); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; color: var(--volt); }

/* --- payout table --------------------------------------------------------- */

.ptable {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.ptable__formula { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--line); }
.ptable__expr {
  margin-top: 14px; padding: 15px 17px;
  background: rgb(0 0 0 / 0.4); border: 1px solid rgb(204 255 46 / 0.22); border-radius: 11px;
  font-size: clamp(0.85rem, 1.6vw, 1.02rem); font-weight: 500; color: var(--volt);
}
.ptable__note { margin-top: 15px; font-size: var(--step--1); color: var(--text-2); line-height: 1.62; }
.ptable__wrap { overflow-x: auto; }
.ptable__table { font-size: 0.85rem; }
.ptable__table th {
  padding: 14px 18px; text-align: left; white-space: nowrap;
  background: rgb(0 0 0 / 0.3); border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3);
}
.ptable__table td { padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable__table tbody tr:last-child td { border-bottom: 0; }
.ptable__table tbody tr { transition: background-color 0.2s; }
.ptable__table tbody tr:hover { background: rgb(255 255 255 / 0.028); }




/* --- comparison table ----------------------------------------------------- */

.ctable { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ctable table { font-size: 0.88rem; min-width: 640px; }
.ctable th, .ctable td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.ctable thead th {
  background: var(--surface); font-family: var(--ff-mono); font-size: 0.64rem;
  font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3);
}
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable tbody tr:first-child { background: rgb(204 255 46 / 0.045); }
.ctable tbody tr:first-child td:first-child { color: var(--volt); font-weight: 700; box-shadow: inset 2px 0 0 var(--volt); }
.ctable td:first-child { font-weight: 600; }
.yes { color: var(--volt); font-weight: 700; }
.no { color: var(--text-3); }

/* --- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--ff-display); font-weight: 700; font-size: var(--step-0);
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--volt); }
.faq__mark { position: relative; flex: none; width: 13px; height: 13px; }
.faq__mark::before, .faq__mark::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; border-radius: 2px;
  transform: translateY(-50%); transition: transform 0.35s var(--ease);
}
.faq__mark::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: translateY(-50%) rotate(0); }
.faq__item[open] summary { color: var(--volt); }
.faq__a { padding: 0 4px 24px; max-width: 74ch; }
.faq__a p { color: var(--text-2); font-size: var(--step--1); line-height: 1.68; }

/* --- prose ---------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); line-height: 1.72; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.55em; }
.prose li::marker { color: var(--volt); }
.prose blockquote {
  padding: 18px 22px; background: var(--surface); border-left: 2px solid var(--volt);
  border-radius: 0 11px 11px 0;
}
.prose blockquote p { color: var(--text); font-size: var(--step-0); }

.callout {
  display: flex; gap: 14px; padding: 18px 20px;
  background: rgb(255 74 43 / 0.06); border: 1px solid rgb(255 74 43 / 0.24);
  border-radius: var(--radius);
}
.callout--volt { background: rgb(204 255 46 / 0.055); border-color: rgb(204 255 46 / 0.24); }
.callout .ico { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--ember); }
.callout--volt .ico { color: var(--volt); }
.callout p { font-size: var(--step--1); color: var(--text-2); line-height: 1.62; }
.callout b { color: var(--text); }

/* --- page head ------------------------------------------------------------ */

.phead { position: relative; padding-block: clamp(46px, 6vw, 84px) clamp(30px, 4vw, 52px); overflow: hidden; }
.phead::before {
  content: ''; position: absolute; inset: -60% 30% auto -10%; height: 70vh; z-index: 0;
  background: radial-gradient(50% 50% at 30% 50%, rgb(204 255 46 / 0.1), transparent 70%);
  filter: blur(14px);
}
.phead > * { position: relative; z-index: 2; }
.phead h1 { font-size: var(--step-4); max-width: 18ch; }
.phead__sub { margin-top: 20px; max-width: 58ch; font-size: var(--step-1); color: var(--text-2); line-height: 1.55; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--ff-mono); font-size: 0.7rem; color: var(--text-3); }
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--volt); }
.crumbs span { opacity: 0.45; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--ff-mono); font-size: 0.72rem; color: var(--text-2);
}
.chip b { color: var(--text); font-weight: 500; }
.chip--volt { background: rgb(204 255 46 / 0.1); border-color: rgb(204 255 46 / 0.25); color: var(--volt); }

/* --- CTA band ------------------------------------------------------------- */

.ctaband {
  position: relative; overflow: hidden;
  padding: clamp(36px, 5vw, 66px) clamp(24px, 4vw, 60px);
  background: linear-gradient(140deg, var(--surface-2), var(--ink-2) 60%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-align: center;
}
.ctaband::before {
  content: ''; position: absolute; inset: auto -20% -80% -20%; height: 130%;
  background: radial-gradient(50% 50% at 50% 100%, rgb(204 255 46 / 0.16), transparent 70%);
  pointer-events: none;
}
.ctaband > * { position: relative; }
.ctaband h2 { font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.ctaband p { margin: 18px auto 0; max-width: 52ch; color: var(--text-2); }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.ctaband__fine { margin-top: 20px; font-size: 0.75rem; color: var(--text-3); }

/* --- footer --------------------------------------------------------------- */

.ftr { position: relative; z-index: 2; margin-top: clamp(50px, 7vw, 100px); border-top: 1px solid var(--line); background: var(--ink-2); }
.ftr__top {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: clamp(30px, 4vw, 60px);
  width: var(--shell); margin-inline: auto; padding-block: clamp(40px, 5vw, 66px);
}
.ftr__blurb { margin-top: 18px; max-width: 46ch; font-size: 0.86rem; color: var(--text-2); line-height: 1.62; }
.ftr__disc { margin-top: 16px; max-width: 48ch; font-size: 0.76rem; color: var(--text-3); line-height: 1.6; }
.ftr__disc b { color: var(--text-2); }
.ftr__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 30px; }
.ftr__col { display: flex; flex-direction: column; gap: 11px; }
.ftr__col h3 { font-family: var(--ff-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.ftr__col a { font-size: 0.87rem; color: var(--text-2); transition: color 0.2s; }
.ftr__col a:hover { color: var(--volt); }

.ftr__warn {
  display: flex; align-items: flex-start; gap: 16px;
  width: var(--shell); margin-inline: auto; padding-block: 24px;
  border-top: 1px solid var(--line);
}
.ftr__warn p { font-size: 0.78rem; color: var(--text-3); line-height: 1.65; max-width: 90ch; }
.ftr__warn a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.pill {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1.5px solid var(--ember); border-radius: 50%;
  font-family: var(--ff-mono); font-size: 0.72rem; font-weight: 700; color: var(--ember);
}
.ftr__base {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  width: var(--shell); margin-inline: auto; padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.73rem; color: var(--text-3);
}

/* --- sticky mobile bar ---------------------------------------------------- */

.stickybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; gap: 14px;
  padding: 11px 11px 11px 17px;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 100px;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.9);
  transform: translateY(150%);
  transition: transform 0.45s var(--ease);
}
.stickybar.is-in { transform: none; }
.stickybar__txt { font-size: 0.8rem; color: var(--text-2); line-height: 1.3; }
.stickybar__txt b { color: var(--volt); font-family: var(--ff-mono); }

/* --- reveal --------------------------------------------------------------- */

/* Only hide reveal targets when JS is actually running — otherwise a script
   failure would leave the page blank. `.js` is set by an inline head script. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 65ms),
              transform 0.8s var(--ease) calc(var(--i, 0) * 65ms);
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__viz { aspect-ratio: 16 / 10; }
  .calc, .ptable { grid-template-columns: 1fr; }
  .calc__controls, .ptable__formula { border-right: 0; border-bottom: 1px solid var(--line); }
  .ftr__top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .stickybar { display: flex; }
  .hdr { padding-block: 11px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
}

@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__track { grid-column: 1 / -1; }
  .inline-fields { grid-template-columns: 1fr; }
  .stickybar__txt { font-size: 0.74rem; }
  .ftr__base { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .bar__fill { transform: scaleX(1); }
  .hero h1 em::after { transform: scaleX(1); }
}

@media print {
  .hdr, .stickybar, .grain, .ftr__cols { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Status tones — a game is either a verified zero, a documented edge, or a
   "read the note first". Colour carries that meaning consistently sitewide.
   ========================================================================== */

:root {
  --amber: #ffb340;
  --sky:   #6fa8ff;
}

.chip--ok   { background: rgb(204 255 46 / 0.1);  border-color: rgb(204 255 46 / 0.28);  color: var(--volt); }
.chip--warn { background: rgb(255 179 64 / 0.1);  border-color: rgb(255 179 64 / 0.3);   color: var(--amber); }
.chip--note { background: rgb(111 168 255 / 0.1); border-color: rgb(111 168 255 / 0.28); color: var(--sky); }
.chip--ok b, .chip--warn b, .chip--note b { color: inherit; font-weight: 700; }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 100px;
  font-family: var(--ff-mono); font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.tag--ok   { background: rgb(204 255 46 / 0.12);  color: var(--volt); }
.tag--warn { background: rgb(255 179 64 / 0.13);  color: var(--amber); }
.tag--note { background: rgb(111 168 255 / 0.12); color: var(--sky); }

.gcard__edge--ok   { background: rgb(204 255 46 / 0.12);  border-color: rgb(204 255 46 / 0.25);  color: var(--volt); }
.gcard__edge--warn { background: rgb(255 179 64 / 0.12);  border-color: rgb(255 179 64 / 0.28);  color: var(--amber); }
.gcard__edge--note { background: rgb(111 168 255 / 0.12); border-color: rgb(111 168 255 / 0.26); color: var(--sky); }

/* --- findings ------------------------------------------------------------- */

.finding {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(170deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.finding::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--tone, var(--volt));
}
.finding--ok   { --tone: var(--volt); }
.finding--warn { --tone: var(--amber); }
.finding--note { --tone: var(--sky); }
.finding:hover { transform: translateY(-3px); border-color: var(--line-2); }

.finding__tag {
  font-family: var(--ff-mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--tone);
}
.finding__expr {
  margin: 14px 0 16px; padding: 12px 14px;
  font-family: var(--ff-display); letter-spacing: -0.02em;
  background: rgb(0 0 0 / 0.4); border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-weight: 500; color: var(--tone); text-align: center;
}
.finding h3 { font-size: var(--step-1); }
.finding > p { margin-top: 10px; font-size: var(--step--1); line-height: 1.62; color: var(--text-2); }
.finding__more {
  margin-top: auto; padding-top: 16px;
  font-size: 0.82rem; font-weight: 700; color: var(--tone);
  transition: opacity 0.2s;
}
.finding__more:hover { opacity: 0.75; }

/* --- algorithm block ------------------------------------------------------ */

.algo {
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.algo__spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); }
.algo__row { display: flex; flex-direction: column; gap: 5px; padding: 16px 20px; background: var(--ink-2); }
.algo__k { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.algo__v { font-size: 0.92rem; font-weight: 600; color: var(--volt); word-break: break-word; }

.algo__steps {
  margin: 0; padding: clamp(20px, 2.6vw, 30px) clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  counter-reset: astep; list-style: none;
}
.algo__steps li {
  position: relative; padding-left: 40px;
  font-size: var(--step--1); line-height: 1.62; color: var(--text-2);
  counter-increment: astep;
}
.algo__steps li::before {
  content: counter(astep, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 26px; height: 26px;
  background: rgb(204 255 46 / 0.1); border: 1px solid rgb(204 255 46 / 0.22);
  border-radius: 8px;
  font-family: var(--ff-mono); font-size: 0.66rem; font-weight: 700; color: var(--volt);
}

.algo__why {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 clamp(24px, 3vw, 36px) clamp(20px, 2.6vw, 28px);
  padding: 14px 16px;
  background: rgb(0 0 0 / 0.3); border: 1px solid var(--line); border-radius: 11px;
  font-size: 0.83rem; line-height: 1.6; color: var(--text-2);
}
.algo__why .ico { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--volt); }

.algo__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line); background: rgb(0 0 0 / 0.26);
}
.algo__foot p { max-width: 62ch; font-size: 0.8rem; line-height: 1.6; color: var(--text-3); }

/* --- verifier extras ------------------------------------------------------ */

.segs--tabs button { font-size: 0.72rem; }
.vout__note { margin-top: 12px; font-size: 0.78rem; line-height: 1.6; color: var(--text-3); }
.vout__hash i { color: var(--amber); font-style: normal; }

@media (max-width: 620px) {
  .algo__foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Quick answer — the plain-English summary at the top of every game page.
   Deliberately the first thing after the header, and written so it stands
   alone if it's the only thing someone reads (or the only thing a search
   engine lifts).
   ========================================================================== */

.quick {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-left: 2px solid var(--volt);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 82ch;
}
.quick__title {
  font-size: var(--step-1);
  margin-bottom: clamp(16px, 2vw, 22px);
  letter-spacing: -0.025em;
}
.quick__list { display: flex; flex-direction: column; gap: 0; }
.quick__row {
  display: grid;
  grid-template-columns: minmax(130px, 168px) 1fr;
  gap: clamp(14px, 2vw, 26px);
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.quick__row:first-child { border-top: 0; padding-top: 0; }
.quick__row:last-child { padding-bottom: 0; }
.quick__row dt {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 3px;
}
.quick__row dd {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 620px) {
  .quick__row { grid-template-columns: 1fr; gap: 6px; }
  .quick__row dd { font-size: var(--step--1); }
}

/* --- glossary ------------------------------------------------------------- */

.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(14px, 1.8vw, 22px); max-width: 100%; }
.term {
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(170deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  scroll-margin-top: 90px;
  transition: border-color 0.3s;
}
.term:hover { border-color: var(--line-2); }
.term__name { font-size: var(--step-1); letter-spacing: -0.025em; }
.term__short { margin-top: 10px; font-size: var(--step-0); font-weight: 600; color: var(--volt); line-height: 1.5; }
.term__long { margin-top: 12px; font-size: var(--step--1); line-height: 1.68; color: var(--text-2); }
.term__more { display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--volt); }
.term__more:hover { opacity: 0.75; }

/* --- the technical bit, folded away ---------------------------------------
   Opens only on request. Most readers want to know what a game pays, not how
   the random number was derived. */

.nerd {
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.nerd__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 30px);
  cursor: pointer; list-style: none;
  transition: background-color 0.2s;
}
.nerd__summary::-webkit-details-marker { display: none; }
.nerd__summary:hover { background: rgb(255 255 255 / 0.025); }
.nerd__summary b {
  display: block;
  font-family: var(--ff-display); font-weight: 700; font-size: var(--step-0);
  letter-spacing: -0.02em; color: var(--text);
}
.nerd__summary em {
  display: block; margin-top: 5px;
  font-style: normal; font-size: 0.82rem; color: var(--text-3);
}
.nerd__mark { position: relative; flex: none; width: 13px; height: 13px; color: var(--text-2); }
.nerd__mark::before, .nerd__mark::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transform: translateY(-50%); transition: transform 0.35s var(--ease);
}
.nerd__mark::after { transform: translateY(-50%) rotate(90deg); }
.nerd[open] .nerd__mark::after { transform: translateY(-50%) rotate(0); }
.nerd[open] .nerd__summary { border-bottom: 1px solid var(--line); }
.nerd .algo { background: none; border: 0; border-radius: 0; }

/* payouts read as money, not notation */
.ptable__plain { font-size: var(--step-1); line-height: 1.55; color: var(--text); }
.ptable__out { color: var(--volt); font-weight: 600; }

/* --- hero cost panel ------------------------------------------------------
   Replaced a return-vs-turnover scatter plot. Same point, told in money:
   people understand "-$40" instantly and a ±5% axis not at all. */

.costs {
  padding: clamp(22px, 2.6vw, 30px);
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9);
}
.costs__head { margin-bottom: clamp(18px, 2.2vw, 26px); }
.costs__title {
  font-family: var(--ff-display); font-weight: 700; font-size: var(--step-0);
  letter-spacing: -0.02em; color: var(--text);
}
.costs__rows { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 20px); }

.costs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: baseline;
}
.costs__label {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
}
.costs__label em {
  display: block; margin-top: 3px;
  font-style: normal; font-size: 0.76rem; font-weight: 400; color: var(--text-3);
}
.costs__val {
  font-family: var(--ff-mono); font-size: 0.95rem; font-weight: 700;
  color: var(--ember); white-space: nowrap;
}
.costs__bar {
  grid-column: 1 / -1;
  position: relative; height: 7px; border-radius: 100px;
  background: rgb(255 255 255 / 0.05); overflow: hidden;
}
.costs__bar i {
  position: absolute; inset: 0 auto 0 0; width: var(--w);
  border-radius: 100px; background: var(--ember);
  transform-origin: left; transform: scaleX(0);
  animation: costGrow 0.9s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.12s);
}
@keyframes costGrow { to { transform: scaleX(1); } }

.costs__row.is-free .costs__val { color: var(--volt); }
.costs__row.is-free .costs__bar i {
  width: 22px; background: var(--volt);
  box-shadow: 0 0 16px rgb(204 255 46 / 0.6);
}

.costs__foot {
  margin-top: clamp(18px, 2.2vw, 24px); padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--text-3); line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .costs__bar i { animation: none; transform: scaleX(1); }
}

/* --- homepage pointer to the verifier (the tool itself lives on its own page) */
.pfcard {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.pfcard__eyebrow {
  font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--volt);
}
.pfcard__title { margin-top: 14px; font-size: var(--step-2); }
.pfcard__body { margin-top: 14px; font-size: var(--step-0); line-height: 1.6; color: var(--text-2); }
.pfcard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 26px; }
