:root {
  color-scheme: dark;
  --ink: #f1f4ed;
  --muted: #a7aea5;
  --green: #7cff8c;
  --green-dark: #163d27;
  --amber: #ffd45c;
  --red: #ff5f5f;
  --blue: #6bd6ff;
  --panel: rgba(9, 14, 12, .88);
  --line: rgba(220, 238, 223, .28);
  --safe-top: max(12px, env(safe-area-inset-top));
  --safe-right: max(12px, env(safe-area-inset-right));
  --safe-bottom: max(12px, env(safe-area-inset-bottom));
  --safe-left: max(12px, env(safe-area-inset-left));
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.performance-overlay {
  position: fixed;
  z-index: 80;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  display: grid;
  gap: 3px;
  min-width: 190px;
  padding: 9px 11px;
  border: 1px solid rgba(143, 231, 255, .48);
  background: rgba(8, 14, 13, .9);
  color: #dff8f2;
  font: 12px/1.35 ui-monospace, Consolas, monospace;
  pointer-events: none;
}

.performance-overlay strong { color: #8fe7ff; font-size: 12px; }
.performance-overlay span { color: #bad0ca; }
.performance-overlay[data-complete="true"] { border-color: rgba(137, 241, 165, .75); }
.performance-overlay[data-complete="true"] strong { color: #89f1a5; }
.performance-overlay[data-complete="invalid"] { border-color: rgba(255, 212, 92, .78); }
.performance-overlay[data-complete="invalid"] strong { color: #ffd45c; }

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #080b09; }
button, input, select { font: inherit; }
button { letter-spacing: 0; }
[hidden] { display: none !important; }

.game-shell { position: relative; width: 100%; height: 100%; min-height: 360px; overflow: hidden; isolation: isolate; background: #0d1511; color: var(--ink); touch-action: none; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; outline: 0; image-rendering: pixelated; }
.pixel-grid { position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: .045; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.7) 3px 4px); }
.near-miss { --near-miss-angle: 0rad; position: absolute; z-index: 22; left: 50%; top: 50%; width: min(42vmin, 320px); height: 2px; pointer-events: none; opacity: 0; transform: translate(-50%,-50%) rotate(var(--near-miss-angle)); }
.near-miss i { position: absolute; right: 0; width: clamp(48px, 9vmin, 82px); height: 2px; background: linear-gradient(90deg, transparent, rgba(255,244,208,.96)); box-shadow: 0 0 8px rgba(255,220,128,.72); }
.near-miss.active { opacity: 1; }
.game-shell[data-state="playing"] { cursor: crosshair; }
.game-shell[data-state="playing"].touch-mode { cursor: default; }
.arcade-home-button { z-index: 160; }
.game-shell[data-state="playing"] > .arcade-home-button { opacity: .35; }
.game-shell[data-state="playing"] > .arcade-home-button:hover,
.game-shell[data-state="playing"] > .arcade-home-button:focus-visible { opacity: 1; }

.screen { position: absolute; z-index: 100; inset: 0; }
.loading-screen { display: grid; place-content: center; justify-items: center; gap: 18px; background: #080b09; color: var(--green); }
.loading-screen p { margin: 0; font: 800 12px/1 "Courier New", monospace; text-transform: uppercase; }
.loading-mark { display: flex; gap: 8px; height: 36px; align-items: end; }
.loading-mark i { width: 9px; height: 30px; background: var(--green); animation: load-bars .8s steps(4) infinite alternate; }
.loading-mark i:nth-child(2) { height: 20px; animation-delay: -.2s; }
.loading-mark i:nth-child(3) { height: 12px; animation-delay: -.4s; }
.loading-track { width: min(260px, 64vw); height: 3px; background: #203027; }
.loading-track i { display: block; width: 12%; height: 100%; background: var(--green); transition: width .2s ease; }
@keyframes load-bars { to { height: 8px; opacity: .45; } }

.title-screen { display: flex; align-items: center; justify-content: space-between; gap: 8vw; padding: clamp(78px, 11vh, 118px) clamp(28px, 8vw, 120px) clamp(36px, 8vh, 82px); background: linear-gradient(90deg, rgba(5, 9, 7, .93) 0%, rgba(5, 9, 7, .72) 48%, rgba(5, 9, 7, .18) 76%, transparent); }
.title-copy { width: min(640px, 58vw); }
.eyebrow { margin: 0 0 12px; color: var(--green); font: 800 11px/1.4 "Courier New", monospace; text-transform: uppercase; }
.title-copy h1 { display: flex; flex-wrap: wrap; gap: 0 .18em; margin: 0; font: 950 clamp(58px, 9vw, 126px)/.82 Impact, "Arial Black", sans-serif; text-transform: uppercase; text-shadow: 6px 7px 0 rgba(0, 0, 0, .48); }
.title-copy h1 span { color: var(--ink); }
.title-copy h1 strong { color: var(--green); font: inherit; }
.title-lead { max-width: 520px; margin: 28px 0 22px; color: #d8ddd7; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.75; }
.title-stats { min-height: 22px; margin-bottom: 25px; color: var(--muted); font: 700 12px/1.5 "Courier New", monospace; }
.title-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-command, .secondary-command, .text-command { min-height: 48px; border-radius: 4px; padding: 0 20px; border: 1px solid transparent; cursor: pointer; font-weight: 850; }
.primary-command { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--green); color: #07170d; box-shadow: 4px 4px 0 rgba(0,0,0,.55); }
.primary-command:hover, .primary-command:focus-visible { background: #b4ffbd; outline: 2px solid #07170d; outline-offset: 2px; transform: translate(-1px,-1px); }
.secondary-command { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-color: var(--line); background: rgba(12,18,15,.72); color: var(--ink); }
.secondary-command:hover, .secondary-command:focus-visible { border-color: var(--green); color: var(--green); outline: none; }
.text-command { background: transparent; color: var(--muted); }
.text-command:hover, .text-command:focus-visible { color: var(--red); outline: 1px solid var(--red); }
.mission-brief { align-self: end; width: min(285px, 26vw); border-left: 3px solid var(--green); padding: 16px 0 16px 20px; background: linear-gradient(90deg, rgba(7,14,10,.72), transparent); }
.mission-brief > span { color: var(--green); font: 800 10px "Courier New", monospace; }
.mission-brief > strong { display: block; margin: 4px 0 15px; font-size: 27px; }
.mission-brief dl { margin: 0; }
.mission-brief dl div { display: grid; grid-template-columns: 52px 1fr; gap: 10px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 11px; }
.mission-brief dt { color: var(--muted); }
.mission-brief dd { margin: 0; }

.hud { position: absolute; z-index: 20; inset: 0; pointer-events: none; font-family: "Courier New", monospace; text-shadow: 1px 2px 0 #000; }
.objective-panel { position: absolute; top: var(--safe-top); left: 50%; width: min(410px, 44vw); transform: translateX(-50%); padding: 8px 13px 10px; border-top: 2px solid rgba(124,255,140,.62); background: linear-gradient(180deg, rgba(5,9,7,.88), rgba(5,9,7,.25)); clip-path: polygon(4% 0,96% 0,100% 100%,0 100%); text-align: center; }
.objective-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.objective-panel strong { display: block; margin: 5px 0 7px; font-size: 14px; color: var(--ink); }
.objective-progress { height: 3px; background: rgba(255,255,255,.14); }
.objective-progress i { display: block; width: 100%; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left center; transition: transform .15s linear; }
.team-panel { position: absolute; left: var(--safe-left); top: calc(var(--safe-top) + 50px); width: 146px; padding: 8px 10px; border-left: 2px solid var(--blue); background: linear-gradient(90deg, rgba(5,12,12,.72), rgba(5,12,12,.1)); }
.team-panel > span { color: var(--blue); font-size: 9px; font-weight: 900; }
.team-panel div { display: grid; grid-template-columns: 7px 1fr auto; gap: 6px; align-items: center; margin-top: 6px; font-size: 10px; }
.team-panel i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 7px rgba(107,214,255,.7); }
.team-panel b { color: var(--ink); }
.team-panel output { color: #bdefff; font-size: 9px; }
.tutorial-panel { position: absolute; top: calc(var(--safe-top) + 74px); left: 50%; width: min(390px, 62vw); transform: translateX(-50%); padding: 9px 14px 10px; border-left: 3px solid var(--green); background: linear-gradient(90deg, rgba(5,11,7,.88), rgba(5,11,7,.55)); text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.tutorial-panel span { display: block; margin-bottom: 3px; color: var(--green); font-size: 9px; font-weight: 900; }
.tutorial-panel strong { display: block; color: #fff; font: 900 13px/1.25 "Segoe UI", sans-serif; }
.tutorial-panel p { margin: 3px 0 0; color: #c9d1ca; font: 700 10px/1.35 "Segoe UI", sans-serif; }
.vitals-panel { position: absolute; left: var(--safe-left); bottom: var(--safe-bottom); width: min(300px, 28vw); }
.vital-row { display: grid; grid-template-columns: 48px 1fr 34px; gap: 8px; align-items: center; margin-top: 5px; font-size: 10px; font-weight: 800; }
.vital-row > div { height: 9px; transform: skewX(-15deg); background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25); }
.vital-row i { display: block; height: 100%; width: 100%; transform-origin: left center; transition: transform .12s linear; }
.health i { background: linear-gradient(90deg, #2cb75f, var(--green)); }
.armor i { background: linear-gradient(90deg, #347fac, var(--blue)); }
.combat-score { position: absolute; right: var(--safe-right); top: var(--safe-top); display: grid; justify-items: end; }
.combat-score span { color: var(--muted); font-size: 9px; }
.combat-score output { color: var(--amber); font-size: 21px; font-weight: 900; }
.combat-score small { color: var(--green); font-size: 9px; min-height: 12px; }
.ammo-panel { position: absolute; right: var(--safe-right); bottom: var(--safe-bottom); display: grid; justify-items: end; min-width: 180px; }
.ammo-panel > span { color: var(--muted); font-size: 10px; }
.weapon-bar { display: flex; gap: 4px; margin: 4px 0 3px; }
.weapon-bar b { display: grid; place-items: center; width: 25px; height: 19px; border: 1px solid rgba(190,207,197,.35); color: #9da9a2; background: rgba(7,13,10,.62); font: 700 10px/1 "Courier New",monospace; }
.weapon-bar b.active { border-color: var(--green); color: #0a140e; background: var(--green); text-shadow: none; }
.ammo-panel > div { display: flex; align-items: baseline; gap: 6px; }
.ammo-panel output:first-child { font-size: clamp(34px, 4vw, 54px); font-weight: 900; line-height: .95; }
.ammo-panel i, .ammo-panel output:last-child { color: #aab1aa; font-style: normal; font-size: 16px; }
.ammo-panel small { color: var(--green); font-size: 9px; }
.crosshair, .hitmarker { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%,-50%); }
.crosshair { transition: opacity .12s ease; }
.crosshair i, .hitmarker i { position: absolute; display: block; background: rgba(240,244,237,.88); box-shadow: 1px 1px 0 #000; }
.crosshair i:nth-child(1) { width: 8px; height: 2px; left: 3px; top: 21px; }
.crosshair i:nth-child(2) { width: 8px; height: 2px; right: 3px; top: 21px; }
.crosshair i:nth-child(3) { width: 2px; height: 8px; left: 21px; top: 3px; }
.crosshair i:nth-child(4) { width: 2px; height: 8px; left: 21px; bottom: 3px; }
.crosshair b { position: absolute; width: 2px; height: 2px; left: 21px; top: 21px; background: var(--green); }
.hitmarker { opacity: 0; transform: translate(-50%,-50%) scale(1.45); transition: opacity .09s ease, transform .1s ease; }
.hitmarker.active { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.hitmarker i { width: 8px; height: 2px; background: #fff; }
.hitmarker i:nth-child(1) { left: 6px; top: 11px; transform: rotate(45deg); }
.hitmarker i:nth-child(2) { right: 6px; top: 11px; transform: rotate(-45deg); }
.hitmarker i:nth-child(3) { left: 6px; bottom: 11px; transform: rotate(-45deg); }
.hitmarker i:nth-child(4) { right: 6px; bottom: 11px; transform: rotate(45deg); }
.hitmarker.armor i { background: var(--blue); }
.hitmarker.head i { background: var(--amber); }
.hitmarker.kill i { background: var(--red); }
.damage-numbers { position: absolute; inset: 0; overflow: hidden; }
.objective-guide { position: absolute; z-index: 9; top: 0; left: 0; display: grid; grid-template-columns: 20px auto; column-gap: 6px; align-items: center; min-width: 86px; padding: 6px 8px; border-left: 2px solid var(--green); background: rgba(7,13,10,.76); color: #e8f2eb; pointer-events: none; will-change: transform; }
.objective-guide i { grid-row: 1 / 3; color: var(--green); font-style: normal; text-align: center; transform-origin: center; }
.objective-guide strong { font-size: 11px; line-height: 1.1; }
.objective-guide span { color: #9eb2a8; font: 10px/1.1 ui-monospace, Consolas, monospace; }
/* 标签跟随活体单位（boss）时改成半透明描边样式：不透明底色会直接盖住要打的目标。 */
.objective-guide.unit { background: rgba(7,13,10,.26); border-left-color: var(--red); }
.objective-guide.unit strong { color: #ffd9d4; text-shadow: 0 1px 2px rgba(0,0,0,.95); }
.objective-guide.unit span { text-shadow: 0 1px 2px rgba(0,0,0,.95); }
.objective-guide.offscreen { border-left-color: var(--amber); }
.objective-guide.offscreen i { color: var(--amber); }
.damage-number { position: absolute; top: 0; left: 0; color: #fff; font-size: 15px; font-weight: 900; will-change: transform, opacity; }
.damage-number.armor { color: var(--blue); }
.damage-number.head { color: var(--amber); font-size: 19px; }
@keyframes damage-float { 0% { opacity: 0; transform: translate(-50%,-30%) scale(.7); } 16% { opacity: 1; transform: translate(-50%,-55%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%,-155%) scale(.92); } }
.damage-direction { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, transparent 35%, rgba(255,35,35,.22)); transition: opacity .25s ease; }
.damage-direction.active { opacity: 1; transition: none; }
.interaction-prompt { position: absolute; left: 50%; bottom: 21%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 8px 12px; background: rgba(5,8,6,.74); color: var(--ink); font: 800 11px "Courier New", monospace; }
.interaction-prompt kbd { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--green); color: var(--green); }
.announcement { position: absolute; top: 27%; left: 50%; width: min(620px, 80vw); transform: translateX(-50%); text-align: center; color: var(--ink); font-size: clamp(18px, 3vw, 34px); font-weight: 900; opacity: 0; }
.announcement.active { animation: announce 2.1s ease both; }
@keyframes announce { 0% { opacity: 0; transform: translate(-50%,14px) scale(.9); } 14%,70% { opacity: 1; transform: translate(-50%,0) scale(1); } 100% { opacity: 0; transform: translate(-50%,-8px); } }
.boss-panel { position: absolute; left: 50%; bottom: 8%; width: min(460px, 58vw); transform: translateX(-50%); text-align: center; }
.boss-panel span { color: var(--red); font-size: 11px; font-weight: 900; }
.boss-panel div { height: 7px; margin-top: 5px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.7); }
.boss-panel i { display: block; width: 100%; height: 100%; background: var(--red); }
.icon-command { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: rgba(6,10,8,.65); color: var(--ink); cursor: pointer; pointer-events: auto; }
.pause-button { position: absolute; top: calc(var(--safe-top) + 50px); right: var(--safe-right); }
.icon-command:hover, .icon-command:focus-visible { border-color: var(--green); color: var(--green); outline: none; }

.modal-screen { display: grid; place-items: center; padding: 72px 20px 28px; background: rgba(3,6,4,.76); backdrop-filter: blur(5px); }
.modal-panel { width: min(420px, 92vw); border-left: 3px solid var(--green); padding: clamp(24px, 4vw, 38px); background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.modal-panel h2, .result-heading h2 { margin: 0 0 24px; font-size: clamp(30px, 5vw, 50px); line-height: 1; }
.menu-actions { display: grid; gap: 9px; }
.settings-panel { width: min(560px, 94vw); max-height: calc(100vh - 100px); overflow: auto; }
.settings-list { display: grid; gap: 16px; margin-bottom: 24px; }
.settings-list label { display: grid; gap: 7px; color: #dce2dc; font-size: 13px; }
.setting-note { grid-column: 1 / -1; margin: 0; color: #93aaa2; font-size: 11px; line-height: 1.45; }
.binding-setting { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; color: #dce2dc; font-size: 13px; }
.binding-setting button { min-width: 112px; min-height: 32px; border: 1px solid rgba(220,238,223,.24); border-radius: 3px; background: #17211c; color: #aeeec0; font: 11px/1 ui-monospace, Consolas, monospace; }
.settings-list label > span { display: flex; justify-content: space-between; gap: 12px; }
.settings-list output { color: var(--green); font-family: "Courier New", monospace; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.select-setting, .toggle-setting { grid-template-columns: 1fr auto; align-items: center; }
.select-setting select { min-width: 150px; border: 1px solid var(--line); border-radius: 3px; padding: 9px 10px; background: #111a15; color: var(--ink); }
.toggle-setting input { width: 22px; height: 22px; accent-color: var(--green); }
.settings-panel > .primary-command { width: 100%; }

.result-screen { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr); grid-template-rows: 1fr auto; gap: 28px 7vw; align-items: center; padding: clamp(78px, 11vh, 120px) clamp(30px, 9vw, 130px) clamp(34px, 7vh, 72px); background: linear-gradient(100deg, rgba(4,8,6,.96), rgba(7,12,9,.78)); }
.result-heading h2 { margin-bottom: 15px; font-size: clamp(42px, 7vw, 86px); }
.result-heading > p:last-child { color: var(--muted); line-height: 1.7; }
.result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.result-grid div { min-height: 92px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-grid dt { color: var(--muted); font-size: 11px; }
.result-grid dd { margin: 8px 0 0; font: 900 29px "Courier New", monospace; }
.result-grid .result-score { grid-column: span 2; }
.result-grid .result-score dd { color: var(--green); font-size: 38px; }
.result-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }

.touch-controls { position: absolute; z-index: 45; inset: 0; pointer-events: none; }
.move-zone, .look-zone { position: absolute; bottom: 0; width: 50%; height: 72%; pointer-events: auto; touch-action: none; }
.move-zone { left: 0; }
.look-zone { right: 0; }
.move-stick { position: absolute; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); width: 116px; height: 116px; border: 2px solid rgba(255,255,255,.27); border-radius: 50%; background: rgba(3,8,5,.24); }
.move-stick i { position: absolute; left: 33px; top: 33px; width: 46px; height: 46px; border-radius: 50%; background: rgba(124,255,140,.42); border: 2px solid rgba(210,255,215,.58); }
.touch-button { position: absolute; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(240,255,242,.42); border-radius: 50%; background: rgba(5,10,7,.48); color: #fff; pointer-events: auto; touch-action: none; font-size: 25px; font-weight: 900; text-shadow: 1px 2px 0 #000; }
.touch-button.active, .touch-button:active { border-color: var(--green); background: rgba(44,116,61,.7); }
.touch-button.fire { right: max(28px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom)); width: 76px; height: 76px; color: var(--green); }
.touch-button.aim { right: max(112px, calc(env(safe-area-inset-right) + 112px)); bottom: max(36px, env(safe-area-inset-bottom)); }
.touch-button.jump { right: max(34px, env(safe-area-inset-right)); bottom: max(118px, calc(env(safe-area-inset-bottom) + 118px)); }
.touch-button.slide { right: max(104px, calc(env(safe-area-inset-right) + 104px)); bottom: max(108px, calc(env(safe-area-inset-bottom) + 108px)); }
.touch-button.reload { right: max(176px, calc(env(safe-area-inset-right) + 176px)); bottom: max(40px, env(safe-area-inset-bottom)); width: 48px; height: 48px; font-size: 20px; }
.touch-button.interact { left: 50%; bottom: 20%; transform: translateX(-50%); color: var(--amber); }
.touch-mode .interaction-prompt kbd { display: none; }
.touch-mode .vitals-panel { bottom: calc(var(--safe-bottom) + 118px); width: 210px; }
.touch-mode .ammo-panel { bottom: calc(var(--safe-bottom) + 188px); }
.touch-mode .objective-panel { width: min(400px, 58vw); }
.touch-mode .pause-button { top: var(--safe-top); }
.touch-mode .combat-score { display: none; }
.touch-mode .team-panel { top: calc(var(--safe-top) + 45px); transform: scale(.9); transform-origin: top left; }
.touch-mode .tutorial-panel { top: calc(var(--safe-top) + 68px); width: min(360px, 48vw); padding-block: 7px; }

@media (pointer: coarse), (max-width: 820px) {
  .title-screen { padding: 70px 28px 28px; align-items: flex-end; }
  .title-copy { width: min(570px, 75vw); }
  .title-copy h1 { font-size: clamp(52px, 12vw, 92px); }
  .title-lead { margin-top: 18px; font-size: 14px; }
  .mission-brief { display: none; }
  .vitals-panel { bottom: calc(var(--safe-bottom) + 118px); width: 210px; }
  .ammo-panel { bottom: calc(var(--safe-bottom) + 188px); }
  .objective-panel { width: min(400px, 58vw); }
  .pause-button { top: var(--safe-top); }
  .combat-score { display: none; }
  .result-screen { grid-template-columns: 1fr 1.2fr; padding: 72px 32px 28px; }
}

@media (max-width: 680px), (max-height: 460px) and (orientation: portrait) {
  .title-screen { padding-inline: 20px; }
  .title-copy { width: 100%; }
  .title-copy h1 { font-size: clamp(48px, 18vw, 78px); }
  .title-lead { max-width: 90%; }
  .result-screen { display: block; overflow-y: auto; padding: 78px 20px 28px; }
  .result-grid { margin-top: 22px; }
  .result-actions { margin-top: 18px; }
  .objective-panel { width: 64vw; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .title-screen { padding-block: 52px 18px; }
  .title-copy h1 { font-size: clamp(44px, 14vh, 76px); }
  .title-lead { margin: 12px 0; line-height: 1.5; }
  .title-stats { margin-bottom: 12px; }
  .modal-screen { padding: 48px 18px 12px; }
  .modal-panel { padding: 20px 26px; }
  .modal-panel h2 { margin-bottom: 14px; }
  .settings-panel { max-height: calc(100vh - 62px); }
  .settings-panel { padding-block: 14px; }
  .settings-panel .eyebrow { margin-bottom: 4px; }
  .settings-panel h2 { margin-bottom: 8px; font-size: 36px; }
  .settings-list { grid-template-columns: 1fr 1fr; gap: 7px 20px; margin-bottom: 10px; }
  .settings-list label { gap: 3px; font-size: 12px; }
  .settings-panel > .primary-command { min-height: 42px; }
  .tutorial-panel strong { font-size: 12px; }
  .tutorial-panel p { font-size: 9px; }
  .result-screen { padding: 52px 34px 16px; }
  .result-grid div { min-height: 68px; padding: 10px; }
  .result-grid dd { font-size: 22px; }
  .result-grid .result-score { grid-column: auto; }
  .result-grid .result-score dd { font-size: 27px; }
  .result-heading h2 { font-size: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-mark i, .announcement.active, .damage-number { animation-duration: .01ms; }
  .primary-command, .objective-progress i, .vital-row i, .hitmarker { transition: none; }
  .pixel-grid { display: none; }
}
