:root {
  color-scheme: dark;
  --ink: #0b1720;
  --ink-raised: #101f29;
  --panel: #13242e;
  --panel-light: #1a303c;
  --snow: #eaf4f0;
  --muted: #93a8aa;
  --faint: #637a7e;
  --ice: #76d6d2;
  --lime: #c5f36a;
  --orange: #ff8d55;
  --line: rgba(191, 221, 216, .14);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--snow);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--ink); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 49% 0%, rgba(46, 101, 112, .20), transparent 47rem),
    linear-gradient(180deg, #0d1b24, #0a151d 70%);
}
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.site-frame { width: min(1480px, 100%); margin: 0 auto; padding: 0 52px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--snow); font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .18em; text-decoration: none; }
.brand-mark { position: relative; display: block; width: 24px; height: 24px; border: 1px solid var(--ice); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 10px; top: 3px; width: 1px; height: 16px; background: var(--ice); transform: rotate(45deg); }
.brand-mark::after { transform: rotate(-45deg); }
.brand-mark i, .brand-mark b, .brand-mark em { position: absolute; z-index: 1; left: 5px; top: 11px; width: 14px; height: 1px; background: var(--ice); }
.brand-mark b { transform: rotate(60deg); }.brand-mark em { transform: rotate(-60deg); }
.topbar-right { display: flex; align-items: center; gap: 30px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .11em; }
.build-label { display: inline-flex; align-items: center; gap: 8px; }
.status-dot, .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(197, 243, 106, .48); }
.source-link { color: var(--snow); text-decoration: none; transition: color .18s; }.source-link:hover { color: var(--lime); }
.source-link span { padding-left: 5px; color: var(--ice); }
.intro-row { display: flex; justify-content: space-between; align-items: end; padding: 40px 0 26px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--ice); font: 500 10px/1.4 "DM Mono", monospace; letter-spacing: .13em; }
.eyebrow-line { width: 34px; height: 1px; background: rgba(118, 214, 210, .5); }
h1 { margin: 0; font: 800 clamp(46px, 6vw, 76px)/.86 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.025em; }
h1 span { color: var(--lime); }
.intro-copy { margin: 14px 0 0; color: #b1c4c2; font-size: 13px; line-height: 1.65; }
.season-stamp { width: 85px; height: 86px; margin: 0 4px 2px 0; border: 1px solid rgba(197, 243, 106, .38); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(2deg); }
.stamp-top, .stamp-bottom { color: var(--muted); font: 500 8px/1.2 "DM Mono", monospace; letter-spacing: .1em; }
.season-stamp strong { color: var(--lime); font: 700 40px/.92 "Barlow Condensed", sans-serif; }
.stamp-bottom { font-size: 7px; margin-top: 3px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 267px; gap: 20px; align-items: stretch; }
.stage-column { min-width: 0; }
.stage-toolbar { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; background: #13242e; border: 1px solid var(--line); border-bottom: 0; }
.run-label, .toolbar-actions { display: flex; align-items: center; gap: 10px; }
.run-label { color: var(--muted); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .1em; }
.run-index { color: var(--lime); }.run-separator { color: var(--faint); }
.toolbar-actions { gap: 18px; }
.keyboard-hint { color: #94a9a9; font: 500 8px/1 "DM Mono", monospace; letter-spacing: .08em; }
kbd { display: inline-grid; place-items: center; min-width: 15px; height: 16px; margin-right: 2px; border: 1px solid rgba(210, 233, 227, .2); border-radius: 2px; color: var(--snow); font: 500 8px "DM Mono", monospace; }
.keyboard-hint kbd:first-child { min-width: 31px; padding: 0 3px; }
.keyboard-hint kbd:nth-of-type(2) { min-width: 36px; padding: 0 3px; }
.icon-button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ice); font-size: 11px; cursor: pointer; }
.icon-button:disabled { opacity: .4; cursor: default; }
.arena { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9.15; min-height: 365px; background: #bfd5d6; isolation: isolate; }
#game-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.arena::after { pointer-events: none; content: ""; position: absolute; z-index: 1; inset: 0; border: 1px solid rgba(224, 245, 236, .25); box-shadow: inset 0 0 60px rgba(10, 22, 27, .13); }
.hud { position: absolute; z-index: 2; top: 13px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.hud-group { display: flex; gap: 5px; }
.hud-chip { min-width: 60px; display: flex; flex-direction: column; gap: 5px; padding: 7px 9px; background: rgba(10, 26, 31, .80); border: 1px solid rgba(233, 249, 240, .16); backdrop-filter: blur(5px); }
.hud-label, .health-caption { color: #a9c0bd; font: 500 8px/1 "DM Mono", monospace; letter-spacing: .12em; }
.hud-chip strong { color: #f0fbf1; font: 700 17px/.9 "Barlow Condensed", sans-serif; letter-spacing: .03em; }
.health-block { width: min(190px, 24%); padding: 8px 10px 9px; background: rgba(10, 26, 31, .80); border: 1px solid rgba(233, 249, 240, .16); backdrop-filter: blur(5px); }
.health-caption { display: flex; justify-content: space-between; margin-bottom: 7px; }.health-caption strong { color: #f0fbf1; font: 500 9px "DM Mono", monospace; }
.health-track, .xp-track { height: 4px; overflow: hidden; background: rgba(216, 240, 233, .22); }.health-track span, .xp-track span { display: block; width: 100%; height: 100%; background: var(--lime); transition: width .2s; }
.xp-track { height: 2px; margin-top: 5px; background: rgba(118, 214, 210, .16); }.xp-track span { background: var(--ice); }
.arena-coordinates { position: absolute; z-index: 2; bottom: 11px; left: 14px; right: 14px; display: flex; justify-content: space-between; color: rgba(26, 52, 57, .72); font: 500 8px "DM Mono", monospace; letter-spacing: .08em; pointer-events: none; }
.screen-overlay { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8, 20, 25, .48); backdrop-filter: blur(2px); transition: opacity .2s; }
.screen-overlay[hidden] { display: none; }
.overlay-card { width: min(440px, 96%); padding: 28px 30px 26px; border: 1px solid rgba(219, 244, 232, .24); background: rgba(12, 30, 36, .94); box-shadow: 0 20px 70px rgba(5, 18, 24, .34); }
.overlay-kicker { margin: 0 0 12px; color: var(--ice); font: 500 9px "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.overlay-card h2 { margin: 0; font: 700 clamp(30px, 5vw, 43px)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.overlay-card .overlay-copy { margin: 13px 0 21px; color: #b4c8c2; font-size: 12px; line-height: 1.7; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 43px; padding: 0 18px; border: 0; background: var(--lime); color: #142326; font: 700 11px "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: transform .16s, background .16s; }
.primary-button:hover { transform: translateY(-2px); background: #d8ff88; }.primary-button span { font-size: 15px; }
.overlay-foot { display: flex; gap: 14px; margin-top: 21px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font: 500 8px "DM Mono", monospace; letter-spacing: .08em; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.choice-button { min-height: 133px; padding: 14px 12px; border: 1px solid rgba(118, 214, 210, .3); background: rgba(33, 62, 67, .55); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.choice-button:hover { transform: translateY(-2px); border-color: var(--lime); background: rgba(47, 83, 82, .64); }
.choice-index { display: block; margin-bottom: 17px; color: var(--ice); font: 500 9px "DM Mono", monospace; }.choice-button strong { display: block; color: var(--snow); font: 700 18px/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }.choice-button small { display: block; margin-top: 8px; color: #a9bfba; font-size: 9px; line-height: 1.45; }
.boss-callout { position: absolute; z-index: 3; top: 68px; left: 50%; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 9px 14px; border: 1px solid rgba(255, 141, 85, .62); background: rgba(40, 27, 26, .9); color: #ffd1b4; font: 500 9px/1.5 "DM Mono", monospace; letter-spacing: .08em; text-align: center; animation: callout 3.6s both; pointer-events: none; }
.boss-callout[hidden] { display: none; }
@keyframes callout { 0% { opacity: 0; transform: translate(-50%, -8px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -5px); } }
.stage-footer { height: 27px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid var(--line); border-top: 0; color: #758b8d; font: 500 8px "DM Mono", monospace; letter-spacing: .08em; }
.stage-footer > span:first-child { display: flex; align-items: center; gap: 6px; }.live-dot { width: 5px; height: 5px; }
.run-panel { display: flex; flex-direction: column; padding: 17px 17px 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 39, 49, .94), rgba(15, 30, 39, .86)); }
.panel-head { display: flex; align-items: center; justify-content: space-between; }.panel-kicker, .panel-code { color: var(--ice); font: 500 8px "DM Mono", monospace; letter-spacing: .12em; }.panel-code { color: var(--faint); }
.run-panel h2 { margin: 25px 0 8px; font: 700 34px/.92 "Barlow Condensed", sans-serif; text-transform: uppercase; }.panel-copy { margin: 0; color: #a5b9b7; font-size: 11px; line-height: 1.65; }
.panel-rule { height: 1px; margin: 18px 0 15px; background: var(--line); }
.statline { display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin: 0 0 14px; }.statline > span { padding-top: 1px; color: var(--lime); font: 500 9px "DM Mono", monospace; }.statline strong { display: block; color: #e6f3ec; font: 600 9px "DM Mono", monospace; letter-spacing: .08em; }.statline p { margin: 4px 0 0; color: #91a8a7; font-size: 9px; line-height: 1.55; }
.threat-row { display: flex; align-items: center; justify-content: space-between; color: #9db4b1; font: 500 8px "DM Mono", monospace; letter-spacing: .08em; }.threat-bars { display: flex; gap: 3px; }.threat-bars i { width: 9px; height: 3px; background: var(--orange); }.threat-bars i:nth-child(4), .threat-bars i:nth-child(5) { background: rgba(255, 141, 85, .25); }.threat-note { margin: 10px 0 16px; color: #788f91; font-size: 9px; line-height: 1.5; }
.panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: #7f9595; font: 500 7px "DM Mono", monospace; letter-spacing: .07em; }.panel-bottom strong { color: var(--lime); font: 700 19px "Barlow Condensed", sans-serif; letter-spacing: .03em; }
.page-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; color: #708587; font: 500 8px "DM Mono", monospace; letter-spacing: .1em; }.page-footer b { color: var(--lime); padding-left: 4px; font-size: 12px; }

@media (min-width: 1500px) { .site-frame { padding-left: 58px; padding-right: 58px; } }
@media (max-width: 1050px) { .site-frame { padding: 0 28px; }.game-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 14px; }.run-panel { padding: 15px 14px; }.run-panel h2 { font-size: 30px; }.arena { min-height: 330px; } }
@media (max-width: 820px) { .site-frame { padding: 0 20px; }.game-layout { grid-template-columns: minmax(0, 1fr); }.run-panel { display: none; }.arena { min-height: 350px; }.intro-row { padding-top: 34px; }.season-stamp { width: 70px; height: 72px; }.season-stamp strong { font-size: 34px; } }
@media (max-width: 540px) { .site-frame { padding: 0 13px; }.topbar { min-height: 59px; }.topbar-right { gap: 12px; font-size: 8px; }.build-label { display: none; }.intro-row { padding: 27px 0 20px; }.eyebrow { font-size: 8px; gap: 8px; }.eyebrow-line { width: 21px; } h1 { font-size: 55px; }.intro-copy { font-size: 11px; }.desktop-break { display: none; }.season-stamp { width: 57px; height: 62px; margin-bottom: 4px; }.stamp-top, .stamp-bottom { font-size: 6px; }.season-stamp strong { font-size: 29px; }.stage-toolbar { height: 35px; padding: 0 8px; }.run-label { gap: 6px; font-size: 8px; }.toolbar-actions { gap: 8px; }.keyboard-hint { font-size: 7px; }.keyboard-hint kbd { min-width: 13px; height: 14px; }.icon-button { width: 20px; height: 20px; }.arena { aspect-ratio: 3 / 4; min-height: 490px; max-height: 66vh; }.hud { top: 9px; left: 8px; right: 8px; }.hud-chip { min-width: 48px; padding: 6px 6px; }.hud-chip strong { font-size: 15px; }.health-block { width: 27%; padding: 7px 7px; }.health-caption { font-size: 7px; }.arena-coordinates { left: 8px; right: 8px; bottom: 8px; font-size: 7px; }.stage-footer { padding: 0 7px; font-size: 7px; letter-spacing: .04em; }.page-footer { gap: 10px; min-height: 48px; font-size: 6px; letter-spacing: .04em; }.page-footer span:nth-child(2) { display: none; }.overlay-card { padding: 22px 19px 19px; }.choice-grid { gap: 5px; }.choice-button { min-height: 122px; padding: 11px 9px; }.choice-button strong { font-size: 16px; }.choice-button small { font-size: 8px; }.choice-index { margin-bottom: 13px; } }
