:root {
  color-scheme: dark;
  --acid: #ccff00;
  --acid-soft: rgba(204, 255, 0, 0.14);
  --acid-glow: rgba(204, 255, 0, 0.3);
  --ink: #080a09;
  --panel: rgba(18, 21, 19, 0.9);
  --panel-strong: #151916;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5ef;
  --muted: #899188;
  --danger: #ff6262;
  --radius-lg: 22px;
  --radius-md: 14px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 60% -20%, rgba(204, 255, 0, 0.06), transparent 30%),
    linear-gradient(180deg, #0a0d0b 0%, #070908 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.ambient {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.08;
  z-index: -1;
}
.ambient-one { background: var(--acid); top: 10%; right: -20rem; }
.ambient-two { background: #326bff; bottom: 15%; left: -26rem; }

.topbar {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 10, 9, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand-logo-link { display: block; width: max-content; line-height: 0; }
.brand-logo { display: block; width: 160px; height: auto; }

.nav { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 12px; padding: 4px; }
.nav-link { border: 0; background: none; padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; cursor: pointer; transition: .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.07); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-button, .wallet-button { height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 11px; cursor: pointer; transition: .2s ease; }
.icon-button:hover, .wallet-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.icon-button { width: 42px; display: grid; place-items: center; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound-off { display: none; }
.icon-button.muted .sound-on { display: none; }
.icon-button.muted .sound-off { display: block; }
.wallet-button { display: flex; align-items: center; gap: 9px; padding: 0 15px; font-size: 13px; font-weight: 700; }
.wallet-button.connected { border-color: rgba(204,255,0,.25); }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.connected .wallet-dot { background: var(--acid); box-shadow: 0 0 10px var(--acid); }

main { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }
.hero-shell { padding: 30px 0 84px; }
.panel { background: linear-gradient(150deg, rgba(23,27,24,.96), rgba(13,16,14,.96)); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 28px 80px rgba(0,0,0,.22); }

.ticker { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(16,19,17,.72); }
.ticker-item { min-height: 74px; padding: 14px 20px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.ticker-item:last-child { border-right: 0; }
.ticker small, .eyebrow { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .15em; font-weight: 500; margin-bottom: 5px; }
.ticker strong { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.ticker em { font-style: normal; color: var(--muted); font-size: 11px; }
.status-pulse { width: 9px; height: 9px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 0 rgba(204,255,0,.5); animation: pulse 2s infinite; }
.jackpot-stat strong { color: var(--acid); }
.countdown-stat { background: linear-gradient(135deg, transparent, rgba(204,255,0,.05)); }
.countdown-stat strong { font-size: 20px; }

.balance-bar { min-height: 86px; padding: 14px 18px 14px 22px; display: grid; grid-template-columns: 1.1fr 2.5fr auto; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: rgba(14,17,15,.88); }
.balance-total strong { font-family: var(--mono); font-size: 19px; }
.balance-parts { display: grid; grid-template-columns: repeat(3, 1fr); }
.balance-parts > div { padding: 2px 22px; border-left: 1px solid var(--line); }
.balance-parts span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.balance-parts strong { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.balance-actions { display: flex; gap: 8px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(330px, .72fr); gap: 12px; }
.board-panel, .control-panel { min-height: 690px; }
.board-panel { padding: clamp(22px, 3vw, 36px); position: relative; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
h1, h2 { margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(28px, 3vw, 44px); line-height: 1; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.04; }
.selection-summary { text-align: right; display: flex; align-items: baseline; gap: 7px; }
.selection-summary strong { font-family: var(--mono); color: var(--acid); font-size: 23px; }
.selection-summary span { font-size: 11px; color: var(--muted); }
.round-entry-strip { min-height: 62px; margin: -6px 0 17px; padding: 11px 14px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 20px; border: 1px solid rgba(204,255,0,.2); border-radius: 12px; background: linear-gradient(100deg, rgba(204,255,0,.065), rgba(204,255,0,.015)); }
.round-entry-strip.hidden { display: none; }
.round-entry-strip > div { min-width: 110px; }
.round-entry-strip span { display: block; margin-bottom: 3px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .11em; }
.round-entry-strip strong { color: var(--acid); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.round-entry-strip strong span { display: inline; margin: 0; color: inherit; font-size: inherit; letter-spacing: 0; }
.round-entry-strip p { justify-self: end; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; text-align: right; }
.round-entry-strip i { width: 9px; height: 9px; flex: 0 0 auto; border: 1px solid rgba(204,255,0,.55); border-radius: 50%; background: rgba(204,255,0,.1); }

.round-stage { position: relative; min-height: 530px; display: grid; place-items: center; isolation: isolate; }
.orbit { position: absolute; border: 1px solid rgba(204,255,0,.08); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 88%; aspect-ratio: 1; max-height: 560px; }
.orbit-two { width: 64%; aspect-ratio: 1; border-color: rgba(255,255,255,.04); }
.grid { width: min(100%, 720px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; z-index: 2; }
.cell { aspect-ratio: 1.22; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); border-radius: 13px; cursor: pointer; position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.cell::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(135deg, rgba(204,255,0,.2), transparent 62%); transition: opacity .2s ease; }
.cell:hover { transform: translateY(-2px); border-color: rgba(204,255,0,.35); }
.cell:hover::after, .cell.selected::after { opacity: 1; }
.cell.selected { border-color: var(--acid); background: rgba(204,255,0,.085); box-shadow: 0 0 0 1px rgba(204,255,0,.18), 0 10px 28px rgba(0,0,0,.22); }
.cell.locked { cursor: not-allowed; }
.cell.committed:not(.selected) { border-color: rgba(204,255,0,.3); background: rgba(204,255,0,.035); }
.cell.committed .cell-check { border-color: rgba(204,255,0,.42); color: var(--acid); }
.cell.committed:not(.selected) .cell-check::before { content: "·"; font-size: 18px; line-height: 0; }
.cell.committed:not(.selected) .cell-check { font-size: 0; }
.cell.committed .cell-stake { color: #c6d0c3; }
.cell.anticipating { animation: anticipateCell .4s cubic-bezier(.2,.9,.35,1); border-color: rgba(204,255,0,.42); box-shadow: 0 10px 28px rgba(204,255,0,.08); }
.cell.anticipating::after { opacity: .7; }
.cell.scanning { animation: scanCell .5s ease; border-color: rgba(204,255,0,.78); box-shadow: 0 10px 30px rgba(204,255,0,.1); }
.cell.winner { background: var(--acid); color: var(--ink); border-color: var(--acid); animation: winnerPop 1s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 0 62px rgba(204,255,0,.5); }
.cell-number { position: absolute; top: 10px; left: 11px; z-index: 1; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.cell-check { position: absolute; top: 9px; right: 9px; z-index: 1; width: 17px; height: 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: 11px; }
.selected .cell-check { background: var(--acid); border-color: var(--acid); }
.cell-stake { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.selected .cell-stake { color: var(--text); }
.winner .cell-stake { color: rgba(8,10,9,.65); }

.result-center { position: absolute; z-index: 10; width: 156px; aspect-ratio: 1; border-radius: 50%; background: rgba(8,10,9,.94); border: 1px solid rgba(204,255,0,.35); display: grid; place-content: center; text-align: center; box-shadow: 0 0 80px rgba(204,255,0,.14); opacity: 0; transform: scale(.72); pointer-events: none; transition: .35s ease; }
.result-center.visible { opacity: 1; transform: scale(1); }
.result-center span { font-family: var(--mono); color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.result-center strong { color: var(--acid); font-family: var(--mono); font-size: 56px; line-height: 1.05; }

.board-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.privacy-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.privacy-note svg { width: 17px; fill: none; stroke: var(--acid); stroke-width: 1.5; }
.text-button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; white-space: nowrap; }
.text-button:hover { color: var(--text); }
.text-button:disabled { color: #4f564f; cursor: default; }

.control-panel { overflow: hidden; }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); padding: 12px 12px 0; }
.mode-tab { border: 0; border-bottom: 2px solid transparent; background: none; padding: 15px 6px 13px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.mode-tab.active { color: var(--acid); border-color: var(--acid); }
.mode-tab:disabled { cursor: not-allowed; opacity: .7; }
.control-content { padding: 24px; }
.field-block { margin-bottom: 24px; }
.field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field-label span:last-child { font-family: var(--mono); font-size: 8px; color: #626a62; }
.amount-input-wrap { height: 62px; border: 1px solid var(--line-strong); border-radius: 13px; display: flex; align-items: center; padding: 0 17px; background: rgba(0,0,0,.2); transition: .2s ease; }
.amount-input-wrap:focus-within { border-color: rgba(204,255,0,.6); box-shadow: 0 0 0 3px rgba(204,255,0,.06); }
.amount-input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; color: var(--text); font-family: var(--mono); font-size: 22px; }
.amount-input-wrap span { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.quick-amounts, .quick-select { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quick-amounts button, .quick-select button { min-height: 33px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); font-family: var(--mono); font-size: 9px; cursor: pointer; }
.quick-amounts button:hover, .quick-select button:hover { color: var(--text); border-color: rgba(204,255,0,.26); background: rgba(204,255,0,.04); }
.field-hint { color: #626a62; font-size: 10px; margin: 8px 0 0; }
.quick-select { grid-template-columns: repeat(2, 1fr); }
.quick-select button { min-height: 40px; font-family: var(--sans); font-weight: 600; font-size: 11px; }

.hidden { display: none !important; }
.auto-options { margin: -2px 0 22px; padding: 18px 18px 2px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.15); }
.stepper { display: grid; grid-template-columns: 42px 1fr 42px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.stepper button, .stepper input { height: 44px; border: 0; background: rgba(255,255,255,.025); text-align: center; color: var(--text); }
.stepper button { cursor: pointer; color: var(--acid); font-size: 19px; }
.stepper input { min-width: 0; outline: 0; font-family: var(--mono); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.reload-option { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 15px 0 17px; cursor: pointer; }
.reload-option > span:first-child { flex: 1; }
.reload-option strong, .reload-option small { display: block; }
.reload-option strong { font-size: 11px; margin-bottom: 3px; }
.reload-option small { font-size: 9px; color: var(--muted); }
.reload-option input { position: absolute; opacity: 0; }
.switch { width: 38px; height: 22px; padding: 3px; background: #303530; border-radius: 20px; transition: .2s ease; }
.switch::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #7a817a; transition: .2s ease; }
.reload-option input:checked + .switch { background: var(--acid); }
.reload-option input:checked + .switch::after { transform: translateX(16px); background: var(--ink); }

.auto-session-card { margin: -8px 0 22px; padding: 16px; border: 1px solid rgba(204,255,0,.22); border-radius: 14px; background: linear-gradient(145deg, rgba(204,255,0,.06), rgba(0,0,0,.18)); }
.auto-session-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.auto-session-head div > span { display: block; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .13em; margin-bottom: 4px; }
.auto-session-head strong { font-size: 13px; }
.auto-status { padding: 5px 8px; border-radius: 999px; background: rgba(204,255,0,.1); color: var(--acid); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.auto-status.ended { background: rgba(255,255,255,.06); color: var(--muted); }
.auto-session-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 0 9px; }
.auto-session-metrics div { min-width: 0; }
.auto-session-metrics span { display: block; color: var(--muted); font-size: 8px; margin-bottom: 4px; }
.auto-session-metrics strong { display: block; overflow: hidden; color: var(--text); font-family: var(--mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.auto-session-card p { margin: 2px 0 13px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.auto-stop { width: 100%; min-height: 38px; color: var(--muted); font-size: 9px; }

.order-summary { border-top: 1px solid var(--line); padding: 16px 0; }
.order-summary > div { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); font-size: 11px; }
.order-summary strong { color: var(--text); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.order-summary .summary-total { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line); color: var(--text); font-size: 12px; }
.order-summary .summary-total strong { color: var(--acid); font-size: 13px; }

.button { border: 1px solid transparent; border-radius: 11px; min-height: 46px; padding: 0 18px; font-weight: 800; font-size: 12px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--acid); color: var(--ink); box-shadow: 0 10px 28px rgba(204,255,0,.12); }
.button.primary:hover { box-shadow: 0 13px 38px rgba(204,255,0,.22); }
.button.primary:disabled { background: #2a302a; color: #697169; box-shadow: none; cursor: not-allowed; transform: none; }
.button.secondary { background: rgba(204,255,0,.08); border-color: rgba(204,255,0,.24); color: var(--acid); }
.button.ghost { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--text); }
.button.small { min-height: 38px; padding: 0 15px; font-size: 10px; }
.play-button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.play-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.play-button.running { background: #eef7d0; }
.demo-resolve { border: 0; width: 100%; background: none; color: #606960; padding: 14px 0 2px; font-size: 9px; cursor: pointer; }
.demo-resolve span { font-family: var(--mono); color: rgba(204,255,0,.55); margin-right: 5px; }
.demo-resolve:hover { color: var(--muted); }

.history-page-shell { min-height: calc(100vh - 188px); padding: 28px 0 82px; }
.history-workspace { display: grid; gap: 14px; }
.history-page-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 15px; background: rgba(16,19,17,.72); overflow: hidden; }
.history-page-tabs button { min-height: 58px; border: 0; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; background: transparent; padding: 0 18px; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.history-page-tabs button:last-child { border-right: 0; }
.history-page-tabs button:hover { color: var(--text); background: rgba(255,255,255,.025); }
.history-page-tabs button.active { color: var(--acid); border-bottom-color: var(--acid); background: linear-gradient(180deg, rgba(204,255,0,.045), rgba(204,255,0,.015)); box-shadow: inset 0 -8px 24px rgba(204,255,0,.025); }
.history-panel { display: none; gap: 12px; }
.history-panel.active { display: grid; }
.history-panel[hidden] { display: none; }
.solvency-strip { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 0; overflow: hidden; }
.solvency-strip > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); }
.solvency-strip > div:last-child { border-right: 0; }
.solvency-strip span, .solvency-strip strong { display: block; }
.solvency-strip span { margin-bottom: 6px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.solvency-strip strong { overflow: hidden; color: var(--acid); font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.proof-failed { color: #ff8585 !important; }
.history-table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 840px; }
th, td { padding: 17px 21px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #707870; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
td { font-family: var(--mono); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.history-empty { padding: 34px 22px; color: var(--muted); font-family: var(--sans); text-align: center; }
.round-id { display: block; color: var(--text); margin-bottom: 3px; }
td small { color: var(--muted); font-family: var(--sans); font-size: 11px; }
.winner-pill { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: rgba(204,255,0,.09); border: 1px solid rgba(204,255,0,.25); color: var(--acid); }
.winner-pill.jackpot { background: var(--acid); color: var(--ink); box-shadow: 0 0 22px rgba(204,255,0,.15); }
.history-status { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 7px; font-family: var(--sans); font-size: 11px; font-weight: 700; }
.muted-status { color: var(--muted); background: rgba(255,255,255,.04); }
.jackpot-status, .win-status { color: var(--acid); background: rgba(204,255,0,.09); }
.loss-status { color: #9aa29a; background: rgba(255,255,255,.05); }
.positive-value { color: var(--acid); }
.transaction-id { color: var(--muted); }
.proof-button, .receipt-button { min-height: 29px; border: 1px solid rgba(204,255,0,.22); border-radius: 8px; background: rgba(204,255,0,.06); color: var(--acid); font-family: var(--sans); font-size: 10px; font-weight: 750; cursor: pointer; }
.proof-button { padding: 0 10px; }
.proof-button.failed { border-color: rgba(255,98,98,.24); background: rgba(255,98,98,.06); color: #ff8585; }
.receipt-button { display: block; min-height: 24px; margin-top: 6px; padding: 0 8px; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.receipt-actions .receipt-button { margin-top: 0; }
.round-proof-panel { padding: 24px; }
.round-proof-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.round-proof-head h2 { font-size: 25px; }
.proof-content { color: var(--muted); font-size: 13px; }
.proof-result { margin-bottom: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; font-weight: 750; }
.proof-result.ok { border-color: rgba(204,255,0,.24); background: rgba(204,255,0,.055); color: var(--acid); }
.proof-result.failed { border-color: rgba(255,98,98,.24); background: rgba(255,98,98,.055); color: #ff8585; }
.proof-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.proof-data-grid > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.proof-data-grid span, .proof-data-grid strong { display: block; }
.proof-data-grid span { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.proof-data-grid strong { overflow: hidden; color: var(--text); font-family: var(--mono); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.proof-hash { font-family: var(--mono); }
.proof-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.proof-checks > div { padding: 10px 12px; border-radius: 9px; font-size: 11px; text-transform: capitalize; }
.proof-checks .passed { background: rgba(204,255,0,.055); color: #c9ee3c; }
.proof-checks .failed { background: rgba(255,98,98,.055); color: #ff8585; }

.docs-badge { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid rgba(204,255,0,.22); border-radius: 9px; color: var(--acid); background: rgba(204,255,0,.055); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; }
.docs-page-shell { padding: 54px 0 90px; }
.docs-hero { max-width: 860px; padding: 10px 0 30px; }
.docs-hero h1 { margin: 8px 0 14px; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.055em; }
.docs-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.docs-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.docs-meta-row span { min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #8f988e; background: rgba(255,255,255,.02); font-family: var(--mono); font-size: 10px; }
.docs-launch-alert { margin-bottom: 14px; padding: 18px 20px; display: flex; align-items: baseline; gap: 13px; border: 1px solid rgba(204,255,0,.22); border-radius: 14px; background: linear-gradient(100deg, rgba(204,255,0,.075), rgba(204,255,0,.025)); }
.docs-launch-alert strong { flex: 0 0 auto; color: var(--acid); font-size: 14px; }
.docs-launch-alert span { color: #aab2aa; font-size: 13px; line-height: 1.6; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.docs-index { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 14px; display: grid; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(204,255,0,.2) transparent; }
.docs-index-label { padding: 13px 12px 6px; color: var(--acid); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; }
.docs-index-label:first-child { padding-top: 6px; }
.docs-index a { padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.35; transition: color .18s ease, background .18s ease; }
.docs-index a:hover, .docs-index a.active { color: var(--text); background: rgba(255,255,255,.04); }
.docs-index a.active { color: var(--acid); }
.docs-content { overflow: hidden; }
.docs-content section { position: relative; padding: 40px 42px 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 98px; }
.docs-content section:last-child { border-bottom: 0; }
.docs-content h2 { margin: 1px 0 15px; font-size: 28px; letter-spacing: -.025em; }
.docs-content p, .docs-content li { color: #abb3aa; font-size: 15px; line-height: 1.75; }
.docs-content p { max-width: 900px; margin: 0; }
.docs-content p + p { margin-top: 14px; }
.docs-content ul { margin: 16px 0 0; padding-left: 20px; }
.docs-content li + li { margin-top: 7px; }
.docs-section-number { display: block; margin-bottom: 9px; color: var(--acid); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.docs-kicker { display: inline-flex; margin-bottom: 22px; padding: 7px 9px; border: 1px solid rgba(204,255,0,.22); border-radius: 7px; color: var(--acid); background: rgba(204,255,0,.045); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; }
.docs-callout { max-width: 900px; margin-top: 22px; padding: 18px 20px; border-left: 2px solid var(--acid); border-radius: 0 12px 12px 0; background: rgba(204,255,0,.04); }
.docs-callout strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 14px; }
.docs-callout p { color: #9fa89e; font-size: 14px; }
.docs-allocation-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 20px 0; }
.docs-allocation-grid div { min-height: 94px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.docs-allocation-grid strong, .docs-allocation-grid span { display: block; }
.docs-allocation-grid strong { margin-bottom: 9px; color: var(--acid); font-family: var(--mono); font-size: 21px; }
.docs-allocation-grid span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.docs-allocation-grid-four { grid-template-columns: repeat(4, 1fr); }
.territory-rule { max-width: 900px; margin: 20px 0; padding: 22px; border: 1px solid rgba(255,98,98,.25); border-radius: 14px; background: linear-gradient(120deg, rgba(255,98,98,.075), rgba(255,98,98,.02)); }
.territory-rule > span { display: block; color: #ffabab; font-family: var(--mono); font-size: 9px; letter-spacing: .13em; }
.territory-rule > strong { display: block; margin: 8px 0 10px; color: #ff8585; font-family: var(--mono); font-size: 28px; }
.territory-rule p { color: #c0aaa9; font-size: 14px; }
.territory-columns { columns: 2; column-gap: 38px; }
.territory-columns li { break-inside: avoid; margin-bottom: 10px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.data-grid > div { padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.data-grid strong, .data-grid span { display: block; }
.data-grid strong { margin-bottom: 7px; color: var(--text); font-size: 13px; }
.data-grid span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.legal-status { width: max-content; max-width: 100%; margin-top: 22px; padding: 11px 13px; border: 1px solid rgba(255,98,98,.22); border-radius: 9px; color: #ff9d9d; background: rgba(255,98,98,.055); font-family: var(--mono); font-size: 10px; line-height: 1.5; }

.site-footer { width: min(1440px, calc(100% - 40px)); margin: 30px auto 0; min-height: 124px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; }
.footer-logo { width: 125px; }
.footer-meta { display: grid; justify-items: end; gap: 12px; }
.footer-meta p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 7px; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 700; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.footer-links .footer-icon-link { width: 40px; padding: 0; }
.x-logo { width: 18px; height: 18px; fill: currentColor; }
.dexscreener-logo-crop { position: relative; display: block; width: 25px; height: 25px; overflow: hidden; border-radius: 6px; background: #000; }
.dexscreener-logo-crop img { position: absolute; width: 70px; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.footer-links a:hover, .footer-links a[aria-current="page"] { border-color: rgba(204,255,0,.28); color: var(--acid); background: rgba(204,255,0,.05); }
.footer-links a.is-disabled { color: #596059; opacity: .56; cursor: not-allowed; }
.footer-links a.footer-icon-link.is-disabled { color: var(--text); opacity: .82; }
.footer-links a.is-disabled:hover { border-color: var(--line); color: #596059; background: rgba(255,255,255,.025); }
.footer-links a.footer-icon-link.is-disabled:hover { color: var(--text); }

.toast-region { position: fixed; z-index: 150; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 14px 16px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(20,24,21,.97); box-shadow: 0 16px 42px rgba(0,0,0,.38); display: flex; gap: 10px; align-items: start; animation: toastIn .28s ease; }
.toast::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--acid); }
.toast.error::before { background: var(--danger); }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 11px; margin-bottom: 2px; }
.toast span { color: var(--muted); font-size: 9px; line-height: 1.5; }

@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(204,255,0,0); } 100% { box-shadow: 0 0 0 0 rgba(204,255,0,0); } }
@keyframes anticipateCell { 0%, 100% { transform: none; } 45% { transform: translateY(-5px) scale(1.025); } }
@keyframes scanCell { 0%,100% { transform: none; } 50% { transform: translateY(-4px); background: rgba(204,255,0,.16); } }
@keyframes winnerPop { 0% { transform: scale(.8); } 52% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1080px) {
  .topbar { grid-template-columns: 1fr auto auto; }
  .game-layout { grid-template-columns: 1fr; }
  .control-panel { min-height: auto; }
  .board-panel { min-height: auto; }
  .round-stage { min-height: 500px; }
  .ticker { grid-template-columns: repeat(3, 1fr); }
  .ticker-item:nth-child(3), .ticker-item:last-child { border-right: 0; }
  .ticker-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ticker-item:nth-child(4) { grid-column: 1 / span 2; }
  .balance-bar { grid-template-columns: 1fr auto; }
  .balance-parts { grid-row: 2; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
  .balance-parts > div:first-child { border-left: 0; padding-left: 0; }
  .docs-allocation-grid { grid-template-columns: repeat(3, 1fr); }
  .docs-allocation-grid-four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  main, footer { width: min(100% - 24px, 1440px); }
  .topbar { height: auto; min-height: 66px; grid-template-columns: 1fr auto; padding: 10px 12px; row-gap: 9px; }
  .brand-logo { width: 132px; }
  .icon-button { display: none; }
  .wallet-button { padding: 0 11px; }
  .nav { grid-column: 1 / -1; width: 100%; }
  .nav-link { flex: 1; text-align: center; padding: 8px 12px; }
  .hero-shell { padding-top: 14px; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .ticker-item { min-height: 66px; padding: 12px; }
  .ticker-item:nth-child(2), .ticker-item:nth-child(4) { border-right: 0; }
  .ticker-item:nth-child(3) { border-right: 1px solid var(--line); }
  .ticker-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ticker-item:nth-child(4) { grid-column: auto; }
  .ticker-item:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .balance-bar { padding: 14px; gap: 14px; }
  .balance-actions .ghost { display: none; }
  .balance-parts { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .balance-parts > div { padding: 0 9px; }
  .balance-parts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .balance-parts strong { font-size: 10px; }
  .solvency-strip { grid-template-columns: repeat(2, 1fr); }
  .solvency-strip > div:nth-child(2) { border-right: 0; }
  .solvency-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-data-grid, .proof-checks { grid-template-columns: 1fr; }
  .round-entry-strip { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .round-entry-strip p { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .board-panel { padding: 19px 13px; border-radius: 17px; }
  .panel-heading { padding: 0 5px; }
  h1 { font-size: 28px; }
  .grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .cell { border-radius: 9px; aspect-ratio: 1; }
  .cell-number { top: 7px; left: 8px; font-size: 12px; }
  .cell-check { top: 6px; right: 6px; width: 14px; height: 14px; font-size: 9px; }
  .cell-stake { left: 7px; bottom: 6px; font-size: 6px; }
  .round-stage { min-height: 430px; }
  .result-center { width: 120px; }
  .result-center strong { font-size: 42px; }
  .privacy-note span { max-width: 215px; }
  .control-content { padding: 19px; }
  .history-page-shell { padding: 16px 0 60px; }
  .history-page-tabs button { min-height: 52px; padding: 0 8px; font-size: 12px; }
  .docs-page-shell { padding: 32px 0 60px; }
  .docs-hero { padding-bottom: 26px; }
  .docs-hero h1 { font-size: 42px; }
  .docs-launch-alert { align-items: flex-start; flex-direction: column; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-index { position: static; max-height: none; grid-template-columns: repeat(2, 1fr); }
  .docs-index-label { grid-column: 1 / -1; padding-top: 16px; }
  .docs-content section { padding: 26px 20px 30px; }
  .docs-allocation-grid { grid-template-columns: repeat(2, 1fr); }
  .territory-columns { columns: 1; }
  .data-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 0; flex-direction: column; text-align: center; }
  .footer-logo { width: 125px; }
  .footer-meta { justify-items: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
