/* Tundra Signal Online — Design-system aligned dark theme, borderless tonal hierarchy */
:where([data-motion-ui][data-theme="dark"]) {
  --motion-font-sans: "Albert Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --motion-font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --motion-radius-md: 6px;
  --motion-radius-lg: 10px;
  --motion-radius-xl: 12px;
  --motion-bg: #191a1b;
  --motion-inset: #111213;
  --motion-panel: #202123;
  --motion-hover: #36383a;
  --motion-text: #e6e8e4;
  --motion-muted: #c0c4bd;
  --motion-placeholder: #a0a69f;
  --motion-focus: #a0a69f;
  --motion-action: #f7f7f7;
  --motion-on-action: #121212;
  --motion-raised: #292b2c;
  --motion-border: #3a3d3f;
  --motion-game-hero-coin: #ffd45a;
  --motion-game-hero-night: #05070d;
  --motion-danger: #ff9898;
  --motion-success: #69d99b;
  --biome-accent: #ffd45a;
  --biome-accent-2: #9ee2f0;
  --biome-tint: rgba(255, 212, 90, 0.14);
}
.game[data-biome="arctic"]   { --biome-accent: #ffd45a; --biome-accent-2: #9ee2f0; --biome-tint: rgba(158, 226, 240, 0.14); }
.game[data-biome="aurora"]   { --biome-accent: #5cf2c8; --biome-accent-2: #8ce2ff; --biome-tint: rgba(92, 242, 200, 0.16); }
.game[data-biome="magma"]    { --biome-accent: #ff8e4d; --biome-accent-2: #ffd45a; --biome-tint: rgba(255, 142, 77, 0.17); }
.game[data-biome="obsidian"] { --biome-accent: #c994ff; --biome-accent-2: #ffd45a; --biome-tint: rgba(201, 148, 255, 0.17); }

html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 35%, var(--motion-raised), var(--motion-game-hero-night) 88%);
  color: var(--motion-text);
  font-family: var(--motion-font-sans);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { min-height: 100dvh; display: grid; place-items: center; padding: 10px; }

.game {
  width: min(100%, 492px, calc((100dvh - 122px) * .72));
  min-width: min(100%, 312px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top, .bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.top { min-height: 40px; }
.wordmark { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wordmark svg { width: 22px; height: 22px; color: var(--biome-accent); flex-shrink: 0; }
.brand-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.brand-title { font-weight: 800; font-size: 14px; white-space: nowrap; }
.rank-pill {
  padding: 2px 7px; border-radius: 99px; font: 700 10px var(--motion-font-mono);
  background: var(--motion-panel); color: var(--biome-accent); white-space: nowrap;
}

.tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.res-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 99px; background: var(--motion-panel);
  font: 700 11px var(--motion-font-mono); white-space: nowrap;
}
.res-pill.cores { color: var(--motion-game-hero-coin); }
.res-pill.parts { color: #9ee2f0; }

button {
  background: var(--motion-inset); border: 0; color: inherit;
  border-radius: var(--motion-radius-md); font: inherit; cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
button:hover:not(:disabled) { background: var(--motion-hover); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible { outline: 2px solid var(--motion-focus); outline-offset: 2px; }

.account-pill {
  height: 28px; padding: 0 8px; border-radius: 99px;
  background: var(--motion-panel); color: var(--motion-text);
  font-size: 11px; font-weight: 700; max-width: 92px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon { display: grid; place-items: center; width: 30px; height: 30px; background: transparent; }
.icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.deck {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--motion-radius-lg); aspect-ratio: .72;
  outline: 1px solid var(--motion-border);
  background: var(--motion-inset);
}
.game[data-rank="2"] .deck { outline-color: color-mix(in srgb, var(--biome-accent) 45%, var(--motion-border)); }
.game[data-rank="3"] .deck { outline-color: color-mix(in srgb, var(--biome-accent) 72%, transparent); box-shadow: 0 0 28px -6px var(--biome-tint); }
.game[data-rank="4"] .deck { outline: 2px solid var(--biome-accent); box-shadow: 0 0 38px -4px color-mix(in srgb, var(--biome-accent) 44%, transparent); }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }

/* In-battle HUD */
.hud {
  position: absolute; inset: 10px 10px auto;
  display: grid; grid-template-columns: .9fr 1.25fr .85fr .85fr;
  padding: 7px 9px 9px; gap: 7px; pointer-events: none;
  background: var(--motion-panel); border-radius: var(--motion-radius-md);
}
.metric { min-width: 0; }
.metric small { display: block; font-size: 10px; color: var(--motion-muted); margin-bottom: 2px; }
.metric strong { display: inline-block; font: 700 14px var(--motion-font-mono); white-space: nowrap; transition: transform .22s ease, color .22s ease; }
.metric:last-child { text-align: right; }
.metric:first-child strong { color: var(--biome-accent); }
.metric[data-metric="power"] strong { color: var(--motion-success); }
.metric[data-metric="power"] strong[data-bump] { transform: scale(1.16); color: var(--biome-accent); }
.wave-ticks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; max-width: 74px; margin-top: 5px; }
.wave-ticks i { height: 3px; background: var(--motion-border); border-radius: var(--motion-radius-md); }
.wave-ticks i[data-reached] { background: var(--biome-accent); }
.meter { height: 3px; margin-top: 5px; border-radius: var(--motion-radius-md); background: var(--motion-inset); overflow: hidden; }
.meter i { display: block; width: 100%; height: 100%; background: var(--biome-accent); transform-origin: left; }
#armor-bar { background: var(--motion-success); }
.defense[data-low] #armor-bar { background: var(--motion-danger); }

.combo-pill {
  position: absolute; top: 74px; right: 10px; padding: 4px 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--biome-accent) 22%, var(--motion-panel));
  color: var(--biome-accent); font: 800 11px var(--motion-font-mono); pointer-events: none;
}
.deck[data-boss="true"] .combo-pill { top: 116px; }
.boss-bar {
  position: absolute; inset: 72px 10px auto; padding: 6px 10px 7px;
  border-radius: var(--motion-radius-md);
  background: color-mix(in srgb, var(--motion-danger) 14%, var(--motion-panel));
  pointer-events: none;
}
.boss-bar[data-boss-style="frost"] { background: color-mix(in srgb, #6bd4ff 15%, var(--motion-panel)); }
.boss-bar[data-boss-style="frost"] .boss-head strong { color: #8ce2ff; }
.boss-bar[data-boss-style="frost"] #boss-hp-bar { background: linear-gradient(90deg, #4eb8ff, #c8f4ff); }
.boss-bar[data-boss-style="breaker"] { background: color-mix(in srgb, #ff5e5e 16%, var(--motion-panel)); }
.boss-bar[data-boss-style="breaker"] .boss-head strong { color: #ff8a7a; }
.boss-bar[data-boss-style="breaker"] #boss-hp-bar { background: linear-gradient(90deg, #ff4d4d, #ff9e5e); }
.boss-bar[data-boss-style="colossus"] { background: color-mix(in srgb, var(--motion-game-hero-coin) 16%, var(--motion-panel)); }
.boss-bar[data-boss-style="colossus"] .boss-head strong { color: var(--motion-game-hero-coin); }
.boss-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; }
.boss-head strong { font-weight: 750; }
.boss-head span { font: 700 11px var(--motion-font-mono); color: var(--motion-text); }
.boss-bar .meter { height: 6px; margin-top: 4px; }
#boss-hp-bar { background: linear-gradient(90deg, var(--motion-danger), var(--motion-game-hero-coin)); }

.callout {
  position: absolute; top: 76px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 94%; padding: 6px 11px;
  border-radius: var(--motion-radius-md); background: var(--motion-panel);
  color: var(--biome-accent); font-size: 12px; text-align: center; font-weight: 750; pointer-events: none;
}
.deck[data-boss="true"] .callout { top: 118px; }

.defense { position: absolute; inset: auto 0 0; padding: 8px 10px 10px; background: var(--motion-panel); }
.defense-top-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.loadout { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.loadout span { padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; background: var(--motion-inset); color: var(--biome-accent); }
.loadout span[data-cat="drone"] { color: #9ee2f0; }
.loadout span[data-cat="support"] { color: var(--motion-success); }
.loadout span[data-tier="4"] { background: color-mix(in srgb, #ff9d3b 24%, var(--motion-inset)); color: #ffd45a; }

.orbital-btn {
  position: relative; overflow: hidden; height: 26px; padding: 0 10px;
  border-radius: 99px; background: var(--motion-inset); color: var(--motion-muted);
  font: 700 10px var(--motion-font-mono); white-space: nowrap; flex-shrink: 0;
}
.orbital-btn[data-ready="true"] { background: var(--biome-accent); color: var(--motion-on-action); opacity: 1; }
.orbital-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: color-mix(in srgb, var(--biome-accent) 28%, transparent); pointer-events: none;
}
.orbital-text { position: relative; z-index: 1; }

.defense-status { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; margin-bottom: 4px; }
.defense-status span:last-child { color: var(--motion-muted); }
.lane-buttons, .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lane-buttons { margin-top: 7px; }
.lane-buttons button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; font-size: 12px; touch-action: manipulation; }
.lane-buttons button[aria-pressed="true"] { color: var(--motion-on-action); background: var(--biome-accent); font-weight: 750; }
.lane-buttons button[data-threat="true"]:not([aria-pressed="true"]) { color: var(--biome-accent); background: var(--motion-raised); }
.lane-buttons button[data-cooling="true"]:not([aria-pressed="true"]) { opacity: .5; }
.lane-buttons button svg { width: 12px; height: 12px; }

/* Overlay (Lobby / Upgrade / Pause / End) */
.overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: end; text-align: center; padding: 14px 12px 14px;
  background: linear-gradient(0deg, var(--motion-bg) 22%, color-mix(in srgb, var(--motion-bg) 92%, transparent) 54%, color-mix(in srgb, var(--motion-game-hero-night) 25%, transparent) 85%);
}
.overlay:not([data-mode="ready"]) {
  justify-content: center;
  background: color-mix(in srgb, var(--motion-game-hero-night) 82%, transparent);
}
h1 { margin: 0; font-size: clamp(26px, 6.5vw, 38px); line-height: 1.1; font-weight: 850; }
.kicker { font: 700 10px var(--motion-font-mono); color: var(--biome-accent); margin-bottom: 5px; }
.detail { margin: 6px 0 10px; font-size: 12px; line-height: 1.45; color: var(--motion-muted); }

.lobby-box { width: 100%; display: flex; flex-direction: column; gap: 7px; margin-bottom: 9px; }
.patrol-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--motion-panel); border-radius: var(--motion-radius-md);
  padding: 7px 10px; text-align: left;
}
.patrol-info { min-width: 0; }
.patrol-info strong { display: block; font-size: 12px; color: var(--motion-text); }
.patrol-info small { display: block; font: 600 10px var(--motion-font-mono); color: var(--motion-muted); margin-top: 2px; }
.patrol-claim {
  height: 30px; padding: 0 11px; font-size: 11px; font-weight: 750;
  background: var(--motion-success); color: var(--motion-on-action); white-space: nowrap; flex-shrink: 0;
}
.patrol-claim:disabled { background: var(--motion-inset); color: var(--motion-placeholder); opacity: 1; }

.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--motion-inset); padding: 3px; border-radius: var(--motion-radius-md); }
.mode-tabs button { min-height: 30px; font-size: 12px; font-weight: 650; color: var(--motion-muted); background: transparent; }
.mode-tabs button[aria-selected="true"] { background: var(--motion-panel); color: var(--biome-accent); font-weight: 750; }

.stage-card { background: var(--motion-panel); border-radius: var(--motion-radius-md); padding: 9px 10px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.stage-nav { display: flex; align-items: center; gap: 6px; }
.stage-nav button { width: 26px; height: 26px; display: grid; place-items: center; font-weight: 800; background: var(--motion-inset); }
.stage-title { font-size: 13px; font-weight: 800; }
.stage-biome { font: 700 10px var(--motion-font-mono); padding: 2px 6px; border-radius: 4px; background: var(--biome-tint); color: var(--biome-accent); }
.stage-meta { font-size: 11px; color: var(--motion-muted); line-height: 1.4; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.stage-tags span { font: 650 10px var(--motion-font-mono); padding: 2px 6px; border-radius: 4px; background: var(--motion-inset); color: var(--motion-text); }

.action-row { width: 100%; display: flex; gap: 8px; justify-content: center; }
.primary { flex: 1; min-height: 42px; padding: 0 18px; font-size: 14px; font-weight: 750; background: var(--biome-accent); color: var(--motion-on-action); }
.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--biome-accent), var(--motion-action) 18%); }
.secondary { min-height: 42px; padding: 0 16px; font-size: 13px; font-weight: 700; background: var(--motion-panel); color: var(--motion-text); }

.reward-box {
  width: 100%; background: var(--motion-panel); border-radius: var(--motion-radius-md);
  padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 5px;
  text-align: left; font-size: 12px;
}
.reward-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reward-row strong { color: var(--biome-accent); font-family: var(--motion-font-mono); }

/* Upgrade Choices */
.overlay[data-mode="upgrade"] { padding: 12px; }
.overlay[data-mode="upgrade"] h1 { font-size: 24px; }
.choices { width: 100%; }
.choices button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-height: 192px; padding: 8px 8px 9px; text-align: left;
  background: var(--motion-panel); touch-action: manipulation;
}
.choices button[data-tier="4"] {
  background: linear-gradient(180deg, color-mix(in srgb, #ff9d3b 22%, var(--motion-panel)), var(--motion-panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffd45a 55%, transparent);
}
.choices .card-meta { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 4px; font: 700 10px var(--motion-font-mono); }
.choices .tier-tag { padding: 2px 5px; border-radius: 4px; background: var(--motion-inset); color: var(--motion-muted); }
.choices button[data-tier="2"] .tier-tag { color: var(--motion-action); }
.choices button[data-tier="3"] .tier-tag { color: var(--motion-game-hero-coin); }
.choices button[data-tier="4"] .tier-tag { color: #ffd45a; }
.choices .rank-tag { color: var(--motion-muted); }
.choices strong { font-size: 13px; line-height: 1.2; }
.choices small { color: var(--motion-muted); font-size: 11px; line-height: 1.38; }
.choices .card-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 4px; padding-top: 4px; }
.choices .card-gain { font: 700 11px var(--motion-font-mono); color: var(--motion-success); }
.choices b { font: 700 11px var(--motion-font-mono); color: var(--motion-muted); }
.choices :is(canvas, img) { width: 100%; height: 50px; padding: 4px; object-fit: contain; border-radius: var(--motion-radius-md); background: var(--motion-inset); }
.choices button[data-cat="drone"] strong { color: #9ee2f0; }
.choices button[data-cat="support"] strong { color: var(--motion-success); }
.choices button[data-cat="cannon"] strong { color: var(--biome-accent); }

/* Meta Views (Gear, Blueprints, Daily, Leaderboard) */
.meta-view {
  position: absolute; inset: 0; z-index: 4; background: var(--motion-bg);
  padding: 12px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto;
}
.meta-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.meta-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.meta-sub { font-size: 11px; color: var(--motion-muted); }
.mini-btn {
  height: 30px; padding: 0 10px; font-size: 11px; font-weight: 750;
  background: var(--biome-accent); color: var(--motion-on-action); white-space: nowrap; flex-shrink: 0;
}
.mini-btn.subtle { background: var(--motion-panel); color: var(--motion-text); }

.gear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gear-slot-card {
  background: var(--motion-panel); border-radius: var(--motion-radius-md);
  padding: 8px; display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.gear-slot-top { display: flex; justify-content: space-between; align-items: center; font: 700 10px var(--motion-font-mono); color: var(--motion-muted); }
.gear-slot-name { font-size: 12px; font-weight: 750; line-height: 1.25; }
.gear-slot-stat { font: 650 10px var(--motion-font-mono); color: var(--motion-success); }
.gear-slot-btn {
  margin-top: auto; height: 26px; width: 100%; font: 700 10px var(--motion-font-mono);
  background: var(--motion-raised); color: var(--motion-text);
}

.list-stack { display: flex; flex-direction: column; gap: 6px; }
.list-row {
  background: var(--motion-panel); border-radius: var(--motion-radius-md);
  padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.list-info { min-width: 0; flex: 1; }
.list-info strong { display: block; font-size: 12.5px; line-height: 1.3; }
.list-info small { display: block; font-size: 11px; color: var(--motion-muted); margin-top: 2px; line-height: 1.35; }
.list-actions { display: flex; gap: 5px; flex-shrink: 0; }
.tag-chip {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: var(--motion-inset); font: 700 10px var(--motion-font-mono); color: var(--motion-muted);
}

.chest-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chest-card {
  background: var(--motion-panel); border-radius: var(--motion-radius-md);
  padding: 8px; text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.chest-card strong { font: 700 11px var(--motion-font-mono); color: var(--biome-accent); }
.chest-card small { font-size: 10px; color: var(--motion-muted); }
.chest-card button { height: 26px; font-size: 11px; font-weight: 750; background: var(--motion-raised); }
.chest-card button[data-ready="true"] { background: var(--motion-success); color: var(--motion-on-action); }

.sub-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--motion-inset); padding: 3px; border-radius: var(--motion-radius-md); }
.sub-tabs button { min-height: 28px; font-size: 11px; font-weight: 650; color: var(--motion-muted); background: transparent; }
.sub-tabs button[aria-selected="true"] { background: var(--motion-panel); color: var(--biome-accent); font-weight: 750; }

.rank-row { cursor: pointer; width: 100%; text-align: left; }
.rank-num { width: 26px; font: 800 13px var(--motion-font-mono); color: var(--motion-muted); text-align: center; flex-shrink: 0; }
.rank-row[data-top="1"] .rank-num { color: #ffd45a; }
.rank-row[data-top="2"] .rank-num { color: #cfd8e3; }
.rank-row[data-top="3"] .rank-num { color: #f0a46c; }
.rank-row[data-me="true"] { background: color-mix(in srgb, var(--biome-accent) 14%, var(--motion-panel)); }
.rank-val { text-align: right; font: 700 12px var(--motion-font-mono); color: var(--biome-accent); flex-shrink: 0; }
.rank-val small { display: block; font-size: 10px; color: var(--motion-muted); font-weight: 600; }

/* Bottom Navigation Bar */
.nav-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: var(--motion-panel); padding: 4px; border-radius: var(--motion-radius-md);
}
.nav-bar button {
  position: relative; height: 34px; font-size: 12px; font-weight: 700;
  background: transparent; color: var(--motion-muted);
}
.nav-bar button[aria-current="page"] { background: var(--motion-raised); color: var(--biome-accent); }
.nav-dot {
  position: absolute; top: 5px; right: 7px; width: 6px; height: 6px;
  border-radius: 99px; background: var(--motion-danger);
}

.bottom { color: var(--motion-muted); font-family: var(--motion-font-mono); font-size: 11px; min-height: 18px; }

/* Modal */
.modal-scrim {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(5, 7, 13, 0.78);
  display: grid; place-items: center; padding: 14px;
}
.modal-panel {
  width: 100%; max-width: 390px; max-height: 92%; overflow-y: auto;
  background: var(--motion-panel); border-radius: var(--motion-radius-xl);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.modal-panel h3 { margin: 0; font-size: 15px; font-weight: 800; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group input {
  height: 34px; padding: 0 10px; border: 0; border-radius: var(--motion-radius-md);
  background: var(--motion-inset); color: var(--motion-text); font: inherit; font-size: 13px;
}
.field-group input:focus { outline: 2px solid var(--biome-accent); }

/* Floating Toast */
.toast-viewport {
  position: absolute; inset: auto 10px 12px; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.toast {
  padding: 7px 12px; border-radius: var(--motion-radius-md);
  background: var(--motion-raised); color: var(--motion-text);
  font-size: 12px; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.toast[data-tone="error"] { background: color-mix(in srgb, var(--motion-danger) 24%, var(--motion-panel)); color: var(--motion-danger); }
.toast[data-tone="success"] { background: color-mix(in srgb, var(--motion-success) 20%, var(--motion-panel)); color: var(--motion-success); }

@media (max-width: 360px) {
  main { padding: 6px; }
  .brand-title { font-size: 13px; }
  .rank-pill { display: none; }
  .res-pill { padding: 2px 5px; font-size: 10px; }
  .account-pill { max-width: 66px; font-size: 10px; padding: 0 6px; }
  .icon { width: 26px; height: 26px; }
  .hud { grid-template-columns: .72fr 1.48fr .78fr .84fr; padding: 6px 7px 8px; gap: 5px; }
  .metric strong { font-size: 12px; }
  .choices button { padding: 7px; min-height: 180px; }
  .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom { font-size: 10px; }
}
