/* ════════════════════════════════════════════════════════
   STEALTH VOID — UI chrome, in the Lumen Arcade look
   Same system as lumenlabsatl.com/play: near-black, electric
   cyan, Syne headings, Space Grotesk body, Space Mono labels,
   glass cards with hairline borders. Gameplay renders on
   canvas; this file styles the shell, the overlays and the HUD.
   ════════════════════════════════════════════════════════ */

:root {
  --sv-bg: #050508;
  --sv-cyan: #00e5ff;
  --sv-cyan-2: #00bfff;
  --sv-teal: #00e5ff;
  --sv-volt: #7fff00;
  --sv-violet: #7fff00; /* abilities take the arcade's volt green */
  --sv-red: #ff2d78;
  --sv-amber: #e8c84a;
  --sv-gold: #e8c84a;
  --sv-text: #f2f0ff;
  --sv-dim: #8a879c;
  --sv-faint: #4a4860;
  --sv-glass: rgba(5, 5, 8, 0.75);
  --sv-line: rgba(255, 255, 255, 0.07);
  --sv-line-2: rgba(255, 255, 255, 0.13);
  --sv-line-cyan: rgba(0, 229, 255, 0.25);
  --sv-cyan-dim: rgba(0, 229, 255, 0.15);
  /* The same stacks as lumenlabsatl.com/play, which renders them with the system fonts. */
  --sv-head: 'Syne', system-ui, sans-serif;
  --sv-body: 'Space Grotesk', system-ui, sans-serif;
  --sv-mono: 'Space Mono', monospace;
  --sv-display: var(--sv-head);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--sv-bg);
  overflow: hidden;
  font-family: var(--sv-body);
  color: var(--sv-text);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#game-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--sv-bg);
}
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font: inherit; }
button:focus-visible { outline: 2px solid var(--sv-cyan); outline-offset: 3px; }

/* The arcade has no scanlines; the alarm edge stays, in the site's plasma. */
#crt-overlay { display: none; }
#alarm-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 41; opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: inset 0 0 0 2px rgba(255, 45, 120, 0.85), inset 0 0 120px rgba(255, 45, 120, 0.4);
}
#alarm-vignette.on { opacity: 1; animation: sv-alarm 0.9s ease-in-out infinite; }
@keyframes sv-alarm { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ── HUD ─────────────────────────────────────────────── */
#hud {
  position: absolute; inset: 0; pointer-events: none; z-index: 50;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(14px + var(--safe-t)) 14px calc(14px + var(--safe-b));
  animation: sv-fade 0.5s ease;
}
.hud-row { display: flex; gap: 10px; align-items: stretch; justify-content: center; }
.hud-chip, .hud-ability {
  display: flex; align-items: center; gap: 10px;
  background: var(--sv-glass);
  border: 1px solid var(--sv-line);
  border-radius: 12px;
  padding: 8px 13px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.02);
}
.hud-stack { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hud-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.hud-label { font-family: var(--sv-mono); font-size: 9px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sv-dim); white-space: nowrap; }
.hud-label kbd {
  font-family: var(--sv-mono); font-size: 8px; padding: 1px 4px; margin-left: 4px;
  border: 1px solid var(--sv-line-2); border-radius: 4px; color: var(--sv-dim);
}
.hud-value {
  font-family: var(--sv-body); font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--sv-cyan); white-space: nowrap;
}
.hud-count { font-family: var(--sv-body); font-size: 20px; font-weight: 700; min-width: 1.4ch; text-align: right; }
.hud-bar { width: 170px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.hud-bar-sm { width: 70px; height: 4px; }
#hud-quota-fill, #hud-cloak-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--sv-cyan), var(--sv-cyan-2));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  transition: width 0.25s ease;
}
#hud-cloak-fill { background: linear-gradient(90deg, var(--sv-cyan), var(--sv-volt)); transition: none; }
.hud-quota.done { border-color: var(--sv-line-cyan); box-shadow: 0 0 30px rgba(0, 229, 255, 0.2); }

.hud-eye { width: 22px; height: 22px; fill: none; stroke: var(--sv-cyan); stroke-width: 1.8; flex: none; transition: stroke 0.2s; }
.hud-detect { width: 118px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
#hud-detect-fill { display: block; height: 100%; width: 0%; background: var(--sv-cyan); box-shadow: 0 0 10px currentColor; transition: background 0.2s; }
.hud-status-chip.sus { border-color: rgba(232, 200, 74, 0.45); }
.hud-status-chip.sus .hud-eye { stroke: var(--sv-amber); }
.hud-status-chip.sus #hud-detect-fill { background: var(--sv-amber); }
.hud-status-chip.alert { border-color: rgba(255, 45, 120, 0.7); animation: sv-chip-alert 0.6s ease-in-out infinite; }
.hud-status-chip.alert .hud-eye { stroke: var(--sv-red); }
.hud-status-chip.alert #hud-detect-fill { background: var(--sv-red); }
@keyframes sv-chip-alert { 50% { box-shadow: 0 0 28px rgba(255, 45, 120, 0.45); } }
.status-hidden { color: var(--sv-cyan) !important; }
.status-sus { color: var(--sv-amber) !important; }
.status-alert { color: var(--sv-red) !important; }

.hud-ability svg { width: 22px; height: 22px; fill: none; stroke: var(--sv-volt); stroke-width: 1.8; stroke-linejoin: round; flex: none; }
#ab-emp .hud-count { color: var(--sv-volt); }
#ab-emp.empty { opacity: 0.45; }
#ab-cloak svg { stroke: var(--sv-cyan); }
#ab-cloak.active { border-color: var(--sv-line-cyan); box-shadow: 0 0 22px rgba(0, 229, 255, 0.2); }
.pips { display: flex; gap: 3px; }
.pips i { width: 10px; height: 4px; border-radius: 999px; background: rgba(127, 255, 0, 0.15); }
.pips i.on { background: var(--sv-volt); box-shadow: 0 0 6px rgba(127, 255, 0, 0.6); }

.hud-btn {
  pointer-events: auto;
  display: grid; place-items: center;
  width: 46px;
  background: var(--sv-glass);
  border: 1px solid var(--sv-line-2);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(20px);
}
.hud-btn svg { width: 16px; height: 16px; fill: var(--sv-text); }
.hud-btn:hover { border-color: var(--sv-line-cyan); background: var(--sv-cyan-dim); }
.hud-btn:hover svg { fill: var(--sv-cyan); }

#hint-box {
  position: absolute; bottom: calc(96px + var(--safe-b)); left: 50%;
  transform: translateX(-50%);
  max-width: min(460px, 88vw);
  background: rgba(5, 5, 8, 0.9);
  border: 1px solid var(--sv-line-cyan);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px; line-height: 1.55; text-align: left; color: var(--sv-text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.08);
  backdrop-filter: blur(20px);
  animation: sv-hint-in 0.35s ease;
  z-index: 55;
}
#hint-box b { color: var(--sv-cyan); }
@keyframes sv-hint-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

#sv-toast {
  position: absolute; left: 50%; top: calc(80px + var(--safe-t)); z-index: 90;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: rgba(5, 5, 8, 0.92); border: 1px solid var(--sv-line-cyan); border-radius: 4px;
  padding: 7px 14px; font-family: var(--sv-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--sv-cyan);
  transition: opacity 0.3s, transform 0.3s;
}
#sv-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Touch controls ──────────────────────────────────── */
#joystick-zone { position: absolute; left: 0; bottom: 0; width: 58%; height: 62%; z-index: 60; }
#joystick-base {
  position: absolute; left: 70px; bottom: calc(70px + var(--safe-b));
  width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%;
  border: 1px solid var(--sv-line-cyan);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07), rgba(0, 229, 255, 0.01) 70%);
  opacity: 0.55; transition: opacity 0.15s;
}
#joystick-zone.active #joystick-base { opacity: 1; transition: none; }
#joystick-knob {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--sv-cyan), var(--sv-cyan-2));
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
}
#btn-emp-touch {
  position: absolute; right: 26px; bottom: calc(92px + var(--safe-b));
  width: 82px; height: 82px; border-radius: 50%; z-index: 60;
  display: grid; place-items: center; align-content: center; gap: 0;
  border: 1px solid rgba(127, 255, 0, 0.45);
  background: radial-gradient(circle at 40% 35%, rgba(127, 255, 0, 0.18), rgba(5, 5, 8, 0.85));
  box-shadow: 0 0 26px rgba(127, 255, 0, 0.2);
  color: var(--sv-volt);
}
#btn-emp-touch svg { width: 28px; height: 28px; fill: none; stroke: var(--sv-volt); stroke-width: 1.8; stroke-linejoin: round; }
#btn-emp-touch span { font-family: var(--sv-body); font-weight: 700; font-size: 13px; }
#btn-emp-touch:active { transform: scale(0.94); }
#btn-emp-touch.empty { opacity: 0.4; }

/* ── Overlays: glass over the live sector ────────────── */
.overlay {
  position: absolute; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(5, 5, 8, 0.45), rgba(5, 5, 8, 0.88));
  overflow-y: auto;
  padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b));
  touch-action: pan-y;
}
#overlay-title .overlay-inner { width: min(720px, 94vw); }
.overlay-inner { width: min(560px, 94vw); text-align: center; animation: sv-in 0.45s cubic-bezier(.2, .8, .2, 1); margin: auto; }
@keyframes sv-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sv-fade { from { opacity: 0; } to { opacity: 1; } }
.overlay-panel {
  position: relative;
  background: rgba(5, 5, 8, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
/* The site's glass card: a faint cyan wash from the top-left corner. */
.overlay-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.03) 0%, transparent 100%);
}
.overlay-panel > * { position: relative; }

/* Title: the /play header and hero, inside the game */
#overlay-title { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(5, 5, 8, 0.35), rgba(5, 5, 8, 0.9)); }
.arcade-mark { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 26px; }
.arcade-icon { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sv-cyan) 0%, var(--sv-volt) 100%); }
.arcade-icon svg { width: 14px; height: 14px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arcade-name { font-family: var(--sv-head); font-weight: 800; font-size: 15px; letter-spacing: 0.05em; color: #fff; }
.eyebrow { display: block; font-family: var(--sv-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sv-cyan); margin-bottom: 12px; }
.game-title {
  font-family: var(--sv-head); font-weight: 800;
  font-size: clamp(44px, 10vw, 84px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--sv-text);
}
.game-line { font-size: clamp(17px, 2.4vw, 20px); font-weight: 300; color: var(--sv-dim); margin: 10px 0 14px; }
.title-tag { font-size: 14px; line-height: 1.6; color: var(--sv-dim); margin: 0 auto 26px; max-width: 42ch; }
.title-progress { margin-top: 16px; font-family: var(--sv-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--sv-dim); min-height: 1em; }
.title-progress b { color: var(--sv-cyan); font-weight: 700; }
.title-footer { margin-top: 22px; font-family: var(--sv-mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--sv-faint); }

/* Buttons: the site's .btn-primary and .btn-ghost */
.menu-stack { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.menu-row { display: flex; gap: 12px; width: min(360px, 84vw); }
.menu-row .btn-neo { width: auto; flex: 1; }
.btn-neo {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: min(360px, 84vw);
  padding: 0.875rem 1.5rem;
  font-family: var(--sv-body); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--sv-dim);
  background: transparent;
  border: 1px solid var(--sv-line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.25s, transform 0.25s, border-color 0.2s, color 0.2s;
}
.btn-neo:hover { border-color: var(--sv-cyan-dim); color: var(--sv-cyan); background: var(--sv-cyan-dim); }
.btn-neo:active { transform: translateY(1px); }
.btn-primary {
  color: #000;
  background: linear-gradient(135deg, var(--sv-cyan) 0%, var(--sv-cyan-2) 100%);
  border: none;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
  flex-direction: column; gap: 2px;
  padding: 0.95rem 1.5rem 0.85rem;
  font-size: 16px; font-weight: 700;
}
.btn-primary small { font-family: var(--sv-mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.12em; opacity: 0.62; text-transform: uppercase; }
.btn-primary:hover { color: #000; background: linear-gradient(135deg, var(--sv-cyan) 0%, var(--sv-cyan-2) 100%); box-shadow: 0 0 50px rgba(0, 229, 255, 0.35), 0 0 80px rgba(0, 229, 255, 0.2); transform: translateY(-2px) scale(1.02); }
.btn-quiet { color: var(--sv-faint); border-color: transparent; }
.btn-quiet:hover { color: var(--sv-dim); background: rgba(255, 255, 255, 0.03); border-color: var(--sv-line); }

/* Toggles: the "ANOMALY TERMINAL" chip from the /play header */
.toggle-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.toggle {
  font-family: var(--sv-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--sv-cyan);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
  padding: 6px 11px;
  cursor: pointer;
}
.toggle:hover { border-color: rgba(0, 229, 255, 0.5); background: rgba(0, 229, 255, 0.06); }

/* Panels */
.panel-title {
  font-family: var(--sv-head);
  font-size: clamp(26px, 5.5vw, 36px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05;
  margin-bottom: 14px; color: var(--sv-text);
}
.brief-eyebrow { font-family: var(--sv-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sv-cyan); margin-bottom: 10px; }
.brief-flavor { font-size: 14px; line-height: 1.65; color: var(--sv-dim); margin: 0 auto 22px; max-width: 44ch; }
.brief-list { text-align: left; list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; font-size: 14px; line-height: 1.55; color: var(--sv-dim); }
.brief-list li { padding: 11px 14px; border: 1px solid var(--sv-line); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.brief-list b { color: var(--sv-text); font-weight: 700; }
.brief-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.brief-stats > div { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--sv-line); border-radius: 12px; padding: 13px 6px; }
.brief-stats span { display: block; font-family: var(--sv-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sv-dim); margin-bottom: 6px; }
.brief-stats b { font-family: var(--sv-body); font-size: 22px; font-weight: 700; color: var(--sv-text); }
#overlay-brief .btn-neo, #overlay-pause .btn-neo, #overlay-result .btn-neo, #overlay-shop .btn-neo, #overlay-levels .btn-neo, #overlay-howto .btn-neo { margin: 0 auto; }
#overlay-brief .btn-neo + .btn-neo, #overlay-shop .btn-neo + .btn-neo { margin-top: 10px; }

/* Sector grid: the /play feature cards */
#level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.level-cell {
  position: relative; text-align: left;
  border: 1px solid var(--sv-line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px 10px 13px;
  cursor: pointer; color: var(--sv-text);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.level-cell canvas { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: #04050a; margin-bottom: 9px; }
.level-cell:hover:not(.locked) { transform: translateY(-2px); background: rgba(0, 229, 255, 0.05); border-color: var(--sv-line-cyan); box-shadow: 0 0 26px rgba(0, 229, 255, 0.12); }
.level-cell .lvl-num { font-family: var(--sv-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--sv-cyan); }
.level-cell .lvl-name { display: block; font-family: var(--sv-head); font-size: 14px; font-weight: 700; margin-top: 3px; color: var(--sv-text); }
.level-cell .lvl-stars { font-size: 12px; margin-top: 5px; color: var(--sv-gold); letter-spacing: 2px; }
.level-cell.locked { cursor: not-allowed; }
.level-cell.locked canvas { filter: grayscale(1) brightness(0.4); }
.level-cell.locked::after { content: 'LOCKED'; position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-family: var(--sv-mono); font-size: 9.5px; letter-spacing: 0.2em; padding: 4px 10px; border-radius: 4px; background: rgba(5, 5, 8, 0.85); border: 1px solid var(--sv-line-2); color: var(--sv-dim); }
.level-cell.next { border-color: rgba(0, 229, 255, 0.45); box-shadow: 0 0 22px rgba(0, 229, 255, 0.14); }

/* Shop */
.shop-balance { font-family: var(--sv-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--sv-dim); margin-bottom: 18px; }
.shop-balance b { font-family: var(--sv-body); font-weight: 700; color: var(--sv-cyan); font-size: 20px; letter-spacing: 0; margin-left: 4px; }
#shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.shop-item {
  border: 1px solid var(--sv-line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  padding: 16px 15px; text-align: left; color: var(--sv-text); cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.shop-item:hover:not(:disabled) { transform: translateY(-2px); background: rgba(0, 229, 255, 0.05); border-color: var(--sv-line-cyan); box-shadow: 0 0 24px rgba(0, 229, 255, 0.12); }
.shop-item:disabled { opacity: 0.42; cursor: not-allowed; }
.shop-item .si-name { font-family: var(--sv-head); font-size: 15px; font-weight: 700; color: var(--sv-text); }
.shop-item .si-desc { display: block; font-size: 12.5px; line-height: 1.5; color: var(--sv-dim); margin: 6px 0 11px; }
.shop-item .si-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--sv-mono); font-size: 10.5px; }
.shop-item .si-cost { color: var(--sv-cyan); font-weight: 700; }
.shop-item .si-lvl { color: var(--sv-volt); letter-spacing: 1px; }

/* Result */
.result-stars { display: flex; justify-content: center; gap: 14px; margin: 4px 0 20px; }
.result-stars .star {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 40px; line-height: 1; color: rgba(255, 255, 255, 0.08);
  transform: scale(0.4); opacity: 0;
  animation: sv-star 0.5s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.result-stars .star.on { color: var(--sv-gold); text-shadow: 0 0 22px rgba(232, 200, 74, 0.6); }
@keyframes sv-star { to { transform: scale(1); opacity: 1; } }
.result-win .panel-title { color: var(--sv-cyan); }
.result-lose .panel-title { color: var(--sv-red); }
#overlay-result .menu-stack, #overlay-pause .menu-stack { margin-top: 4px; }

@media (max-width: 640px) {
  .overlay-panel { padding: 26px 18px; border-radius: 16px; }
  .arcade-mark { margin-bottom: 20px; }
  .hud-row { gap: 6px; }
  .hud-chip, .hud-ability { padding: 6px 9px; gap: 7px; border-radius: 10px; }
  .hud-bar { width: 84px; }
  .hud-detect { width: 70px; }
  .hud-value { font-size: 12px; }
  .hud-count { font-size: 16px; }
  .hud-mass { display: none; }
  .hud-eye { width: 18px; height: 18px; }
  .hud-top { justify-content: flex-start; padding-right: 58px; }
  .hud-bottom { justify-content: flex-start; }
  .hud-bottom .hud-ability { display: none; }
  .hud-btn { width: 40px; height: 40px; }
  .hud-bottom { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; }
  #hint-box { bottom: calc(190px + var(--safe-b)); font-size: 12.5px; }
  .brief-stats b { font-size: 18px; }
  .brief-list li { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #alarm-vignette.on, .overlay-inner { animation: none; }
}
