@font-face {
  font-family: 'Closeout Display';
  src: url('assets/closeout-display.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Chakra Petch';
  src: url('assets/chakra-petch-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/ibm-plex-mono-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --coal: #101312;
  --ink: #f5f7ec;
  --muted: #b9c2bc;
  --signal: #e7be7b;
  --blue: #89c9ff;
  --red: #ffa693;
  --paper: #eee8dd;
  --paper-ink: #1b211c;
  --paper-muted: #566057;
  --paper-line: #bfc4b5;
  --line: #ffffff35;
  --type: 'Microsoft YaHei', 'PingFang SC', 'Microsoft YaHei UI', Arial, sans-serif;
  --display: 'Closeout Display', var(--type);
  --latin: 'Chakra Petch', Arial, sans-serif;
  --numbers: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 70px; }
body { margin: 0; background: var(--coal); color: var(--ink); font: 16px/1.6 var(--type); }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; z-index: 6; top: 12px; left: 12px; transform: translateY(-200%); padding: 10px; background: var(--coal); }
.skip:focus { transform: none; }
.container { width: min(1460px, calc(100% - 48px)); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 3; background: #111513; border-bottom: 1px solid #303a31; }
.nav-wrap { min-height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav-wrap .brand { justify-self: start; }
.brand { display: inline-flex; align-items: center; font: 700 25px/1 var(--latin); letter-spacing: .01em; white-space: nowrap; }
.brand-end { color: var(--signal); }
.brand-symbol { position: relative; display: inline-block; width: 25px; height: 21px; margin-right: 9px; }
.brand-symbol::before, .brand-symbol::after {
  content: ''; position: absolute; bottom: 0; width: 7px; height: 21px; transform: skewX(-29deg); background: currentColor;
}
.brand-symbol::before { left: 4px; }
.brand-symbol::after { left: 14px; height: 13px; color: var(--signal); }
.nav-wrap nav { display: flex; align-items: center; gap: clamp(19px, 4vw, 54px); font-size: 14px; font-weight: 700; }
.nav-wrap nav a { padding: 13px 4px; color: var(--muted); border-bottom: 2px solid transparent; }
.nav-wrap nav a:hover { color: var(--signal); }
.nav-wrap nav a[aria-current] { border-bottom-color: #eeb06b; color: var(--ink); box-shadow: 0 9px 18px -13px #f9a64e; }
.fullscreen-button { justify-self: end; min-height: 38px; padding: 4px 10px; border: 1px solid #5d5c56; background: transparent; color: var(--ink); font-size: 13px; }
.fullscreen-button:hover { border-color: var(--signal); }

.arena-stage {
  padding-block: clamp(19px, 1.6vw, 24px) 16px;
  background: radial-gradient(ellipse at 76% 25%, #382725 0%, #171a20 35%, #101319 75%);
}
.stage-heading { display: flex; align-items: center; gap: 12px clamp(32px, 4vw, 63px); margin-bottom: 17px; }
.stage-heading h1 { margin: 0; white-space: nowrap; font: 400 clamp(57px, 5.15vw, 80px)/1 var(--display); font-synthesis: none; }
.stage-heading h1::before {
  content: ''; display: inline-block; width: .12em; height: .76em; margin-inline: .06em .18em;
  background: #f27436; transform: skewX(-24deg); vertical-align: -.01em;
}
.stage-heading p { margin: 0; padding-left: 20px; border-left: 1px solid #736b64; color: #e3d9ce; font-size: clamp(14px, 1.32vw, 19px); line-height: 1.7; }
.stage-layout {
  --bevel: 25px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(236px, .23fr);
  gap: 3px; align-items: stretch; padding: 2px;
  clip-path: polygon(0 var(--bevel), var(--bevel) 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% calc(100% - var(--bevel)), calc(100% - var(--bevel)) 100%, var(--bevel) 100%, 0 calc(100% - var(--bevel)));
  background: linear-gradient(125deg, #a7957d, #363c45 31%, #686570 56%, #c0a585 84%, #67584d);
}
.stage-console {
  display: grid; min-width: 0; padding: clamp(20px, 1.7vw, 27px) clamp(14px, 1.4vw, 23px);
  clip-path: polygon(0 0, calc(100% - var(--bevel)) 0, 100% var(--bevel), 100% calc(100% - var(--bevel)), calc(100% - var(--bevel)) 100%, 0 100%);
  background: radial-gradient(ellipse at 50% 92%, #211b15, transparent 50%), linear-gradient(152deg, #202024 0%, #101317 56%, #171513 100%);
}
.game-setup { display: flex; flex-direction: column; }
.console-title { margin: 0 0 16px; font: 400 clamp(22px, 2.2vw, 32px)/1.12 var(--display); font-synthesis: none; }
.console-guide { border-top: 1px solid #645b52; padding-top: 13px; }
.console-guide h3 { margin: 0 0 8px; font-size: 16px; }
.console-guide ol { margin: 0 0 15px; padding-inline-start: 1.3em; color: #e0d5c8; font-size: 12px; }
.console-guide li + li { margin-top: 6px; }
.match-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0 0 13px; }
.match-facts div { border-bottom: 1px solid #4e535c; padding: 0 1px 9px; }
.match-facts dt { font-size: 11px; color: var(--muted); }
.match-facts dd { margin: 3px 0 0; font: 700 clamp(17px, 2vw, 24px)/1 var(--numbers); }
.match-facts dd span { color: var(--muted); font: 700 11px var(--type); }
.mode-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode-bar button {
  min-height: 45px; padding: 5px 4px; border: 1px solid #6d655d;
  background: #252326; color: #ded6cc; font-size: 13px; text-align: center;
}
.mode-bar b { margin-right: 6px; font: 700 17px var(--latin); }
.mode-bar button[aria-pressed='true'] { color: #fff2db; border-color: #e8bc87; box-shadow: inset 0 0 10px #f2ac5d66, 0 0 12px #d592443d; background: #3a3028; }
.mode-bar button:hover { color: var(--ink); }
.mode-description { margin: 11px 0 15px; font-size: 13px; color: #d7cdbf; }
.practice-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.start-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 25px;
  min-height: 47px; padding: 8px 17px; border: 1px solid var(--signal); border-radius: 2px;
  background: linear-gradient(115deg, #b87031, #ffdc9d 52%, #d99141); color: #20160c; font-size: 15px; font-weight: 800;
  transition: background-color .16s;
}
.game-setup .start-button {
  width: 100%; min-height: clamp(50px, 4.5vw, 69px); margin-top: auto;
  clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
  font-size: clamp(17px, 1.55vw, 23px);
  box-shadow: inset 0 0 0 2px #ffeac580, inset 0 0 20px #efbf6e;
}
.game-setup .start-button:focus-visible { box-shadow: inset 0 0 0 3px #291810; }
.start-button span { font-size: 20px; }
.start-button:hover { background: #f6dcae; }
.start-button:focus-visible { outline-color: var(--ink); }
.console-link { display: inline-block; width: fit-content; margin-top: 19px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.console-link:hover { color: var(--signal); }
.text-link { font-size: 13px; font-weight: 750; }

.battle-board {
  min-width: 0; position: relative; background: #151b22;
  clip-path: polygon(0 var(--bevel), var(--bevel) 0, 100% 0, 100% 100%, var(--bevel) 100%, 0 calc(100% - var(--bevel)));
}
.game-top {
  position: absolute; z-index: 3; inset: 0 10% auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(67px, auto) minmax(0, 1fr);
  gap: clamp(10px, 2.7vw, 38px); align-items: center; padding: 5px clamp(16px, 4vw, 64px) 5px;
  border-bottom: 2px solid #b8a186; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
  background: linear-gradient(112deg, #172c47 0%, #111d2d 36%, #101219 36.25%, #101219 63.75%, #301b22 64%, #40242b 100%);
}
.arena-stage[data-wave-winner='blue'] .game-top { border-bottom-color: var(--blue); }
.arena-stage[data-wave-winner='red'] .game-top { border-bottom-color: var(--red); }
.team-health { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(6px, 1.4vw, 18px); font-size: clamp(12px, 1.3vw, 18px); font-weight: 800; }
.team-health.red { grid-template-columns: minmax(0, 1fr) auto; }
.team-health.red .tower-art { grid-column: 2; grid-row: 1; }
.team-health.red .tower-status { grid-column: 1; grid-row: 1; }
.tower-status { display: flex; align-items: center; justify-content: space-evenly; gap: 9px; }
.team-health.red .tower-status { flex-direction: row-reverse; }
.team-health b { display: flex; gap: 7px; }
.team-health i { width: clamp(8px, 1.1vw, 15px); aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; transition: background-color .22s ease; }
.team-health i.down { background: #6f776e40; box-shadow: none; opacity: .6; }
.tower-art { position: relative; display: block; width: clamp(23px, 2.7vw, 40px); aspect-ratio: 4 / 5; flex: none; }
.tower-art::before, .tower-art::after, .tower-art > span { position: absolute; background: currentColor; }
.tower-art::before {
  content: ''; inset: 0 9% 12%; opacity: .86;
  clip-path: polygon(13% 0, 32% 0, 32% 17%, 68% 17%, 68% 0, 87% 0, 100% 26%, 80% 48%, 77% 80%, 100% 100%, 0 100%, 23% 80%, 20% 48%, 0 26%);
}
.tower-art::after { content: ''; inset: auto 0 0; height: 7%; opacity: .6; }
.tower-art > span { inset: 34% 44% 32%; background: #18202a; }
.team-health:has(b[data-health='1']) .tower-art::before {
  opacity: .62;
  clip-path: polygon(0 26%, 13% 0, 32% 0, 33% 24%, 57% 31%, 54% 46%, 86% 38%, 80% 54%, 77% 80%, 100% 100%, 0 100%, 23% 80%, 20% 48%);
}
.team-health:has(b[data-health='0']) .tower-art::before { opacity: .4; clip-path: polygon(0 100%, 22% 80%, 38% 90%, 62% 72%, 91% 88%, 100% 100%); }
.team-health:has(b[data-health='0']) .tower-art > span { display: none; }
.battle-map {
  position: relative; height: clamp(420px, 41.6vw, 630px); overflow: hidden;
  background: #11181e; border-bottom: 1px solid #3b4447;
}
.map-plate { position: absolute; inset: 0; }
.map-plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-pin {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px;
  min-height: 43px; padding: 5px 14px; white-space: nowrap; border: 1px solid #cdb084;
  background: linear-gradient(120deg, #473421ed, #151515f2); color: #ffebcc; font: 700 clamp(15px, 1.45vw, 24px) var(--latin);
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.map-pin:focus-visible { box-shadow: inset 0 0 0 3px #ffe2a4; }
.map-pin span { font: 700 11px var(--type); }
.map-pin-btc { left: 55%; top: 34%; }
.map-pin-eth { left: 55%; top: 54%; }
.map-pin-bnb { left: 57%; top: 73%; }
.map-pin[data-player], .map-pin:hover:not(:disabled) { color: var(--signal); border-color: var(--signal); }
.map-pin:disabled { cursor: default; }
.map-caption {
  pointer-events: none; position: absolute; z-index: 1; inset: auto 0 0; display: flex; justify-content: space-between;
  padding: 17px clamp(11px, 2vw, 27px) 8px; background: linear-gradient(transparent, #0c131de0);
  color: var(--ink); font-size: 11px; font-weight: 800;
}
.map-caption span:first-child { color: var(--blue); }
.map-caption span:last-child { color: var(--red); }
.map-strike {
  position: absolute; z-index: 2; pointer-events: none; opacity: 0; top: 53%; inset-inline: 10%;
  height: 4px; background: #f4f6ea; transform: rotate(-15deg); box-shadow: 0 0 16px 3px var(--blue);
}
.map-strike[data-side='red'] { box-shadow: 0 0 16px 3px var(--red); }
.wave-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.arena-stage[data-state='ready'] :is(.wave-track, .field-routes) { display: none; }
.wave-track li {
  display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap;
  padding: 8px clamp(8px, 1.7vw, 20px); border-top: 2px solid #434c57; border-bottom: 1px solid #3a4450;
}
.wave-track li + li { border-left: 1px solid #3a4450; }
.wave-track span { color: var(--muted); font: 700 11px var(--type); }
.wave-track b { font-size: 11px; white-space: nowrap; }
.wave-track li[data-outcome='active'] { border-top-color: var(--signal); color: var(--signal); }
.wave-track li[data-outcome='blue'] { border-top-color: var(--blue); color: var(--blue); }
.wave-track li[data-outcome='red'] { border-top-color: var(--red); color: var(--red); }
.field-routes { padding-inline: clamp(13px, 2.2vw, 30px); }
.field-routes p { padding-bottom: 13px; }
.game-status { padding: 0 clamp(13px, 2.2vw, 30px) 13px; }
.blue { color: var(--blue); }
.red { color: var(--red); text-align: right; }
.match-time { display: grid; text-align: center; gap: 1px; }
.match-time b { font: 700 clamp(24px, 2.65vw, 39px)/1 var(--numbers); font-variant-numeric: tabular-nums; transform: skewX(-9deg); }
.match-time b[data-ending] { color: var(--signal); }
.match-time span { color: #e2e8e1; font-size: 11px; font-weight: 800; }

.field-routes p, .game-status { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.route-row {
  position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: clamp(14px, 2vw, 30px);
  min-height: clamp(54px, 5.2vw, 72px); border-bottom: 1px solid #3b4447;
}
.route-list button {
  display: grid; min-height: 44px; justify-items: start; align-content: center; gap: 1px;
  padding: 3px 12px; border: 0; border-left: 2px solid transparent;
  color: var(--ink); background: transparent; text-align: left;
}
.route-list button:not(:disabled)::after { content: ''; position: absolute; z-index: 1; inset: 0; }
.route-row:has(button:not(:disabled)):hover { background: #252c2d; }
.route-row:has(button:focus-visible) { outline: 2px solid var(--signal); outline-offset: -2px; }
.route-list button:focus-visible { outline: 0; }
.route-list button:disabled { cursor: default; }
.route-row[data-player] { background: #202627; }
.route-row[data-player] button { border-left-color: var(--signal); color: var(--signal); }
.route-list b { font: 700 clamp(17px, 2.1vw, 25px)/1.05 var(--latin); }
.route-list button span { color: var(--muted); font-size: 12px; }
.route-visual {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(45px, 2.2fr) minmax(0, 1fr); align-items: center;
  gap: clamp(7px, 1.55vw, 21px);
}
.arena-stage[data-state='ready'] .route-visual { grid-template-columns: minmax(0, 1fr); }
.route-return { white-space: nowrap; font: 700 clamp(11px, 1.2vw, 15px) var(--numbers); font-variant-numeric: tabular-nums; }
.route-track {
  --lead-position: 50%;
  --lead-color: #bbc4c4;
  position: relative; display: block; min-width: 0; height: 22px;
  background: linear-gradient(#586369, #586369) center / 100% 1px no-repeat;
  border-inline: 2px solid;
  border-inline-color: #6086a1 #a67369;
}
.route-track::before { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; border-left: 1px solid #546166; }
.route-track i {
  position: absolute; top: 50%; left: var(--lead-position); transform: translate(-50%, -50%) rotate(45deg);
  width: 9px; height: 9px; background: var(--lead-color); transition: left .28s, background-color .18s;
}
.route-row[data-player] .route-track { --lead-color: var(--signal); }
.route-row[data-lead='blue'] .route-track { --lead-position: 67%; --lead-color: var(--blue); }
.route-row[data-lead='red'] .route-track { --lead-position: 33%; --lead-color: var(--red); }

.game { min-width: 0; }
.arena-stage[data-state='playing'] .game { animation: game-enter .24s ease-out both; }
@keyframes game-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.market-view { background: #141b24; border-block: 1px solid #ffffff48; }
.chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 13px 16px 0; }
.chart-heading > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; }
.chart-heading span { color: #d6e1d5; font-size: 12px; }
.chart-heading strong { font: 700 22px var(--numbers); font-variant-numeric: tabular-nums; }
#position { white-space: nowrap; color: var(--signal); }
#chart { display: block; width: 100%; height: clamp(135px, 12vw, 182px); }
.game-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 7px; }
.game-controls button {
  min-height: 44px; padding: 8px 5px; border: 1px solid #657069; color: var(--ink); font-weight: 800; background: #202a24;
}
.game-controls .trade-long { background: #1b3c30; color: #bdffdd; border-color: #568675; }
.game-controls .trade-short { background: #472c29; color: #ffdbd2; border-color: #99706a; }
.game-controls button:hover:not(:disabled) { filter: brightness(1.25); }
.game-controls button[aria-pressed='true'] { box-shadow: inset 0 -3px currentColor; }
.game-controls button:disabled { opacity: .67; cursor: default; }
.game-result {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 13px; margin-top: 10px; border-top: 2px solid var(--signal); background: #222d3a;
}
.game-result[data-winner='blue'] { border-top-color: var(--blue); }
.game-result[data-winner='red'] { border-top-color: var(--red); }
.game-result strong { font-size: 21px; }
.game-result p { margin: 0; color: var(--muted); font-size: 13px; }
.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-actions .console-link { margin-top: 0; }
.quiet-button { border: 0; min-height: 40px; color: #e0e8df; padding: 4px 0; background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.quiet-button:hover { color: var(--signal); }

.rules-and-ledger { color-scheme: light; color: var(--paper-ink); background: var(--paper); }
.playbook {
  display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1fr); gap: clamp(30px, 8vw, 136px);
  padding-block: clamp(38px, 6vw, 78px);
}
.playbook h2, .vault-head h2 { margin: 0; font: 400 clamp(36px, 4.5vw, 66px)/1.08 var(--display); font-synthesis: none; }
.playbook-lead > p { max-width: 25em; margin: 14px 0 0; color: var(--paper-muted); }
.playbook-link { display: inline-block; margin-top: 12px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.rule-steps { display: grid; align-content: end; margin: 0; padding: 0; counter-reset: step; list-style: none; }
.rule-steps li {
  display: grid; grid-template-columns: 29px minmax(69px, .28fr) minmax(0, 1fr); align-items: baseline;
  gap: 11px; padding-block: 20px; border-top: 1px solid var(--paper-line); counter-increment: step;
}
.rule-steps li::before { content: counter(step, decimal-leading-zero); color: #4c604d; font: 700 13px var(--numbers); }
.rule-steps li:last-child { border-bottom: 1px solid var(--paper-line); }
.rule-steps h3 { margin: 0; font-size: 18px; }
.rule-steps p { margin: 0; color: var(--paper-muted); font-size: 14px; }

.report-band { background: radial-gradient(ellipse at 20% 25%, #faf0de, #e9dac1 84%); padding-block: clamp(20px, 1.6vw, 26px) clamp(27px, 3.2vw, 49px); }
.report-band > .container { display: grid; grid-template-columns: minmax(235px, .38fr) minmax(0, 1fr); align-items: start; gap: clamp(19px, 2.5vw, 37px); }
.report-heading { padding-top: clamp(13px, 1.6vw, 24px); }
.report-heading h2 { margin: 0; font: 400 clamp(36px, 4.5vw, 66px)/1.08 var(--display); font-synthesis: none; }
.report-heading h2::before { content: ''; display: inline-block; width: .12em; height: .78em; margin-inline: .07em .18em; transform: skewX(-24deg); background: #ec6d38; }
.report-heading p { margin: 10px 0 0; max-width: 27em; color: #4d4d44; }
.report-deck {
  color-scheme: dark; color: var(--ink); background: linear-gradient(145deg, #202027, #13161c 73%);
  border: 1px solid #695b50;
  clip-path: polygon(0 13px, 13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px));
}
.report-toolbar { display: grid; grid-template-columns: auto auto minmax(40px, 1fr); align-items: center; gap: 7px clamp(8px, 1.4vw, 20px); padding: 4px clamp(12px, 2vw, 25px); border-bottom: 1px solid #625448; }
.report-toolbar button { display: grid; place-items: center; min-width: 48px; min-height: 40px; padding: 4px 8px; border: 1px solid #8b7762; background: #2a2625; color: #f9d5a1; }
.report-play::before { content: ''; border-block: 7px solid transparent; border-left: 11px solid currentColor; }
.report-play[data-playing]::before { width: 11px; height: 14px; border: 0; border-inline: 3px solid currentColor; }
.report-toolbar button:hover:not(:disabled) { background: #44352a; }
#report-position { white-space: nowrap; color: #e5d5c0; font: 700 12px var(--numbers); }
#report-scrub { width: 100%; min-width: 0; height: 38px; accent-color: #f2c084; cursor: pointer; }
.report-tabs { display: flex; gap: 6px; padding: 0 clamp(12px, 2vw, 25px); border-bottom: 1px solid #4f4c4b; }
.report-tabs button { font-size: 14px; white-space: nowrap; }
.report-tabs button, #report-rounds button {
  min-height: 44px; padding: 6px 10px; background: transparent; color: #d5dce0; border: 0; text-align: left;
}
.report-tabs button[aria-pressed='true'] { color: var(--signal); box-shadow: inset 0 -2px var(--signal); }
.report-tabs button:hover:not(:disabled), #report-rounds button:hover { background: #273442; }
.report-tabs button:disabled, .report-toolbar button:disabled { color: #a1a9b0; cursor: default; opacity: .65; }
.report-index { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 7px clamp(13px, 2.2vw, 28px); border-top: 1px solid #4f4c4b; }
.report-index p { margin: 0; color: #bdc7d0; font-size: 12px; }
#report-rounds { display: flex; gap: 5px; }
#report-rounds button { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }
#report-rounds button[aria-pressed='true'] { background: #293545; box-shadow: inset 2px 0 var(--signal); }
#report-rounds button span { font-size: 12px; }
#report-rounds [data-winner='blue'] span, .report-panel[data-winner='blue'] h3 { color: var(--blue); }
#report-rounds [data-winner='red'] span, .report-panel[data-winner='red'] h3 { color: var(--red); }
.report-panel { min-width: 0; padding: 7px clamp(12px, 1.7vw, 23px) 12px; }
.report-panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 2px; }
.report-panel-head h3 { margin: 0; font-size: clamp(15px, 1.3vw, 19px); }
.report-score { color: #e0e6e9; font: 700 clamp(11px, 1vw, 14px) var(--numbers); }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.25; text-align: left; }
.report-table th, .report-table td { padding: 4px clamp(4px, .8vw, 12px); border-bottom: 1px solid #3a4651; }
.report-table thead { color: #bec8d1; font-size: 12px; }
.report-table thead th { padding-block: 2px; }
.report-table tbody th, .report-table tbody td:not(:last-child) { font-family: var(--numbers); font-variant-numeric: tabular-nums; }
.report-table tbody th > span { display: block; min-width: 3em; padding: 1px .5em; border: 1px solid #927149; background: #31291f; color: #ffe1a3; text-align: center; white-space: nowrap; transform: skewX(-9deg); }
.report-table tbody [data-lane='ETH'] th > span { border-color: #547d9c; background: #233446; color: #c1e7ff; }
.report-table tbody td:nth-child(2), .report-table tbody td:nth-child(4) { font-size: clamp(13px, 1.45vw, 20px); white-space: nowrap; }
.report-table tbody td { text-align: left; }
.report-gap { width: 48%; }
.report-gap-track {
  display: block; height: 11px;
  background: linear-gradient(90deg, #234883, #669fff calc(var(--split, 50%) - 1px),
    #fff5e8 calc(var(--split, 50%) - 1px), #fff5e8 calc(var(--split, 50%) + 1px),
    #e77867 calc(var(--split, 50%) + 1px), #864035);
}
.round-explanation { margin: 8px 0 0; color: #e0e6e9; font-size: 14px; }

.treasury-section { padding-block: clamp(39px, 6vw, 80px); border-top: 1px solid #5d675c; }
.vault-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, .7fr); align-items: end; gap: 21px; }
.vault-head > p { margin: 0; max-width: 24em; color: var(--paper-muted); }
.allocation { margin-top: clamp(26px, 4.8vw, 58px); }
.allocation-bar, .split-overview { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.allocation-bar { gap: 2px; height: 12px; }
.allocation-bar i:nth-child(1) { background: #202f24; }
.allocation-bar i:nth-child(2) { background: #6b875f; }
.split-overview { margin: 0; }
.split-overview > div { padding: 12px 8px 0 0; }
.split-overview dt { color: var(--paper-muted); font-size: 14px; font-weight: 800; }
.split-overview dd { margin: 0; display: grid; gap: 2px; }
.split-overview b { color: var(--paper-ink); font: 700 clamp(35px, 5.6vw, 76px)/1.04 var(--latin); }
.split-overview span { color: var(--paper-muted); font-size: 12px; }
.vault-live {
  display: grid; grid-template-columns: minmax(178px, .33fr) minmax(0, 1fr); gap: 16px 28px;
  margin-top: clamp(32px, 5vw, 62px); padding-block: 18px; border-block: 1px solid var(--paper-line);
}
.vault-live h3 { margin: 0; font-size: clamp(20px, 2vw, 25px); }
.vault-live-intro p { margin: 4px 0 0; color: var(--paper-muted); font-size: 14px; }
.vault-live-body { min-width: 0; }
.vault-live-body:not(:has(.vault-live-ledger:not([hidden]), .vault-live-links > :not([hidden]))) { display: none; }
.vault-live-ledger { margin: 0; }
.vault-live-ledger > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding: 7px 0; border-bottom: 1px solid var(--paper-line); }
.vault-live-ledger dt { font-size: 14px; }
.vault-live-ledger dd { margin: 0; overflow-wrap: anywhere; font: 700 14px var(--numbers); }
.vault-live-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; color: var(--paper-muted); font-size: 12px; }
.vault-live-links a { padding-block: 4px; color: var(--paper-ink); text-decoration: underline; text-underline-offset: 4px; }
#vault-token-link { flex-basis: 100%; overflow-wrap: anywhere; font-family: var(--numbers); }
.vault-live-ledger:not([hidden]) + .vault-live-links { margin-top: 9px; }
.vault-rules { margin-top: clamp(36px, 5.5vw, 74px); }
.vault-rules h3 { margin: 0; font-size: clamp(21px, 2.1vw, 27px); }
.vault-rules > p { margin: 6px 0 20px; color: var(--paper-muted); font-size: 14px; }
.vault-rule-list { margin: 0; border-top: 1px solid var(--paper-line); }
.vault-rule-list > div {
  display: grid; grid-template-columns: minmax(120px, .25fr) minmax(0, 1fr); gap: 18px;
  padding-block: 15px; border-bottom: 1px solid var(--paper-line);
}
.vault-rule-list dt { font-weight: 750; }
.vault-rule-list dd { max-width: 52em; margin: 0; color: var(--paper-muted); font-size: 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 22px 29px; border-top: 1px solid var(--paper-line); color: var(--paper-muted); font-size: 12px; }
.footer .brand { color: var(--paper-ink); font-size: 20px; }
.footer .brand-symbol::after, .footer .brand-end { color: #4c604d; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 38px); }
}

@media (min-width: 1100px) {
  .stage-heading h1, .report-heading h2 { transform: scaleX(1.16); transform-origin: left; -webkit-text-stroke: .5px currentColor; }
  .stage-heading h1 { margin-right: 3vw; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 63px; }
  .container { width: calc(100% - 40px); }
  .nav-wrap { min-height: 54px; gap: 12px; display: flex; justify-content: space-between; }
  .nav-wrap nav { gap: clamp(11px, 3vw, 22px); font-size: 13px; }
  .nav-wrap nav a { padding-inline: 0; }
  .fullscreen-button { display: none; }
  .brand { font-size: 21px; }
  .stage-heading { display: grid; gap: 7px; margin-bottom: 17px; }
  .stage-heading h1 { font-size: clamp(43px, 9.6vw, 65px); }
  .stage-heading p { padding-left: 0; border: 0; font-size: 13px; }
  .stage-layout { --bevel: 14px; grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stage-console, .battle-board { clip-path: none; }
  .game-top { inset-inline: 0; clip-path: none; padding: 5px 11px; }
  .battle-map { height: auto; aspect-ratio: 1.52; }
  .console-title { margin-bottom: 8px; }
  .console-guide { padding-top: 8px; }
  .console-guide h3 { margin-bottom: 3px; }
  .console-guide ol { margin-bottom: 9px; }
  .console-guide li + li { margin-top: 1px; }
  .match-facts { margin-bottom: 7px; }
  .match-facts div { padding-block: 0 5px; }
  .console-link { margin-top: 10px; }
  .map-pin { min-height: 38px; padding: 4px 7px; font-size: 14px; }
  .map-pin span { font-size: 10px; }
  .route-row { grid-template-columns: 57px minmax(0, 1fr); min-height: 49px; gap: 11px; }
  .route-list button { padding-inline: 8px 3px; }
  .route-visual { grid-template-columns: max-content minmax(22px, 1fr) max-content; }
  .mode-description { margin-bottom: 14px; }
  .playbook { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .report-band > .container { grid-template-columns: minmax(0, 1fr); }
  .report-heading { padding-top: 0; }
  .report-heading p { font-size: 14px; }
  #report-rounds { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  #report-rounds button { flex-direction: column; align-items: start; justify-content: center; padding-inline: 6px; }
  .vault-head { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .vault-live { grid-template-columns: minmax(0, 1fr); }
  .vault-rule-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .allocation-bar { height: 10px; }
}

@media (max-width: 460px) {
  .report-gap { width: 25%; }
}

@media (max-width: 370px) {
  .report-gap { display: none; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .nav-wrap .brand { font-size: 18px; }
  .nav-wrap nav { font-size: 12px; gap: 9px; }
  .nav-wrap .brand-symbol { margin-right: 5px; width: 22px; }
  .team-health { font-size: 11px; }
  .map-pin { min-height: 35px; }
  .map-pin-btc { left: 50%; top: 34%; }
  .map-pin-eth { left: 55%; top: 55%; }
  .map-pin-bnb { left: 60%; top: 76%; }
  .wave-track li { padding-inline: 6px; }
  .report-table th, .report-table td { padding-inline: 2px; }
  .rule-steps li { grid-template-columns: 22px minmax(57px, auto) minmax(0, 1fr); gap: 8px; }
  .rule-steps h3 { font-size: 16px; }
  .footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
