/* LOOP COURIER — synthwave arcade chrome */
:root {
  --bg0: #070418;
  --bg1: #0d0726;
  --bg2: #160b33;
  --ink: #eaf6ff;
  --dim: #8b93b8;
  --cyan: #22e5ff;
  --cyan-soft: #9ff3ff;
  --magenta: #ff2e88;
  --amber: #ffb32e;
  --green: #3dff9e;
  --red: #ff5e62;
  --purple: #7a3dff;
  --panel: rgba(13, 10, 30, 0.92);
  --panel-line: rgba(34, 229, 255, 0.35);
  --mono: "Courier New", "Lucida Console", Monaco, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#app { position: fixed; inset: 0; }
#game-canvas { position: absolute; inset: 0; display: block; cursor: crosshair; }
.hidden { display: none !important; }

/* CRT scanlines + vignette */
.crt {
  position: absolute; inset: 0; pointer-events: none; z-index: 40;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.13) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: 0.6;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 41;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(4,2,14,0.55) 100%);
}

/* ============ HUD ============ */
#hud-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
#hud {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(10px + env(safe-area-inset-top)) 14px 0;
  text-shadow: 0 0 6px rgba(34,229,255,0.5);
}
.hud-left, .hud-right { display: flex; gap: 16px; align-items: flex-start; }
.hud-block { display: flex; flex-direction: column; }
.hud-k { font-size: 10px; letter-spacing: 0.22em; color: var(--dim); }
.hud-v { font-size: 20px; font-weight: 700; color: var(--cyan-soft); }
.hud-btns { display: flex; gap: 6px; pointer-events: auto; }
.hud-btn {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  background: rgba(13,10,30,0.75); color: var(--cyan-soft);
  border: 1px solid var(--panel-line); border-radius: 4px;
  min-width: 38px; min-height: 34px; padding: 4px 8px; cursor: pointer;
}
.hud-btn:hover { background: rgba(34,229,255,0.15); }
.hud-center { text-align: center; }
.hud-zone { font-size: 12px; letter-spacing: 0.3em; color: var(--magenta); font-weight: 700; }
.hud-leg { font-size: 11px; letter-spacing: 0.2em; color: var(--dim); margin-top: 2px; }
.hud-objective { font-size: 14px; font-weight: 700; margin-top: 4px; letter-spacing: 0.12em; }
.hud-objective.pickup { color: var(--amber); }
.hud-objective.deliver { color: var(--cyan); }
.hud-objective.docking, .hud-objective.between { color: var(--green); }
#hud-sections { display: flex; gap: 5px; justify-content: center; margin-top: 5px; }
#hud-sections .sec-dot {
  font-size: 9px; font-weight: 700; letter-spacing: 0;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  border: 1px solid rgba(139,147,184,0.45); border-radius: 3px;
  color: var(--dim); background: rgba(7,4,24,0.6);
}
#hud-sections .sec-dot.un {
  color: var(--bg0); background: var(--green);
  border-color: var(--green); box-shadow: 0 0 8px rgba(61,255,158,0.6);
}
#timer-wrap { margin-top: 6px; width: min(320px, 42vw); margin-left: auto; margin-right: auto; }
#timer-bar {
  height: 8px; border: 1px solid var(--panel-line); border-radius: 4px;
  background: rgba(7,4,24,0.7); overflow: hidden;
}
#timer-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.12s linear;
}
#timer-fill.low { background: linear-gradient(90deg, var(--red), var(--amber)); }
#timer-label { font-size: 11px; color: var(--dim); margin-top: 2px; }

#hud-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 14px calc(12px + env(safe-area-inset-bottom));
}
.hud-bl { min-width: 120px; }
#hud-hull { font-size: 18px; color: var(--red); letter-spacing: 4px; text-shadow: 0 0 8px rgba(255,94,98,0.6); }
#hud-combo { font-size: 13px; font-weight: 700; color: var(--dim); margin-top: 4px; min-height: 16px; }
#hud-combo.hot { color: var(--amber); text-shadow: 0 0 8px rgba(255,179,46,0.7); }
#hud-hint {
  font-size: 11px; letter-spacing: 0.14em; color: var(--dim);
  text-align: center; padding-bottom: 4px;
}
#hud-hint::after { content: attr(data-strikes); display: block; color: var(--red); letter-spacing: 6px; font-size: 10px; }
.hud-br { min-width: 120px; display: flex; justify-content: flex-end; }
#radar {
  width: 118px; height: 118px;
  border: 1px solid var(--panel-line); border-radius: 50%;
  background: rgba(7,4,24,0.6);
}

#dock-prompt {
  position: absolute; left: 50%; bottom: 22%;
  transform: translateX(-50%);
  z-index: 55; pointer-events: none;
  font-size: 17px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--cyan); text-shadow: 0 0 12px var(--cyan);
  animation: pulse 0.7s ease-in-out infinite alternate;
}
#gust-warn {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  z-index: 55; pointer-events: none;
  font-size: 15px; font-weight: 700; letter-spacing: 0.24em;
  color: var(--amber); text-shadow: 0 0 12px var(--amber);
  animation: pulse 0.3s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.55; } to { opacity: 1; } }

/* ============ banner ============ */
#banner {
  position: absolute; top: 24%; left: 0; right: 0;
  text-align: center; pointer-events: none; z-index: 60;
  opacity: 0;
}
#banner.show { animation: bannerIn 2.1s ease-out forwards; }
.banner-main {
  font-size: clamp(26px, 5vw, 46px); font-weight: 700; letter-spacing: 0.18em;
  color: var(--ink); text-shadow: 0 0 18px var(--cyan), 0 0 40px rgba(34,229,255,0.4);
}
.banner-main.zone { color: var(--magenta); text-shadow: 0 0 18px var(--magenta); }
.banner-main.good { color: var(--green); text-shadow: 0 0 18px var(--green); }
.banner-main.bad { color: var(--red); text-shadow: 0 0 18px var(--red); }
.banner-main.pickup { color: var(--amber); text-shadow: 0 0 18px var(--amber); }
.banner-main.dock { color: var(--cyan); }
.banner-sub { font-size: 14px; letter-spacing: 0.2em; color: var(--dim); margin-top: 6px; }
@keyframes bannerIn {
  0% { opacity: 0; transform: scale(1.3); }
  12% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.97); }
}

/* ============ toasts ============ */
#toast-stack {
  position: absolute; right: 14px; top: 90px; z-index: 70;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--panel); border: 1px solid var(--panel-line);
  border-left: 3px solid var(--cyan); border-radius: 4px;
  padding: 10px 14px; font-size: 12px; max-width: 280px;
  animation: toastIn 0.3s ease-out;
  box-shadow: 0 0 18px rgba(0,0,0,0.5);
}
.toast small { display: block; color: var(--dim); margin-top: 3px; font-size: 10px; }
.toast.badge { border-left-color: var(--amber); }
.toast.badge b { color: var(--amber); }
.toast.warn { border-left-color: var(--red); }
.toast.good { border-left-color: var(--green); }
.toast.out { opacity: 0; transform: translateX(30px); transition: all 0.5s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; } }

/* ============ touch controls ============ */
#touch-ui { position: absolute; inset: 0; pointer-events: none; z-index: 56; }
#stick-zone {
  position: absolute; left: 18px; bottom: calc(70px + env(safe-area-inset-bottom));
  width: 128px; height: 128px; border-radius: 50%;
  border: 2px solid rgba(34,229,255,0.4);
  background: rgba(13,10,30,0.5);
  pointer-events: auto; touch-action: none;
}
#stick-nub {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(159,243,255,0.9), rgba(34,229,255,0.5));
  box-shadow: 0 0 14px rgba(34,229,255,0.6);
}
.stick-label {
  position: absolute; font-size: 9px; letter-spacing: 0.1em; color: var(--dim);
  pointer-events: none;
}
.stick-label.up { top: -16px; left: 50%; transform: translateX(-50%); }
.stick-label.down { bottom: -16px; left: 50%; transform: translateX(-50%); }
.stick-label.left { left: -14px; top: 50%; transform: translateY(-50%); }
.stick-label.right { right: -14px; top: 50%; transform: translateY(-50%); }
#btn-dock-touch {
  position: absolute; right: 24px; bottom: calc(86px + env(safe-area-inset-bottom));
  width: 88px; height: 88px; border-radius: 50%;
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--bg0); background: var(--cyan);
  border: none; box-shadow: 0 0 22px rgba(34,229,255,0.7);
  pointer-events: auto; touch-action: none;
}
#btn-dock-touch:active { transform: scale(0.92); }

/* ============ overlays ============ */
.overlay {
  position: absolute; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 2, 14, 0.55);
  backdrop-filter: blur(2px);
  overflow-y: auto;
}

/* ---- title ---- */
#title-screen { background: transparent; pointer-events: none; }
.title-inner {
  text-align: center; pointer-events: auto;
  padding: 20px;
  animation: titleFloat 6s ease-in-out infinite;
}
@keyframes titleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.title-tag { font-size: 12px; letter-spacing: 0.5em; color: var(--dim); margin-bottom: 10px; }
.logo {
  font-size: clamp(44px, 10vw, 96px); font-weight: 700; letter-spacing: 0.08em;
  line-height: 0.95;
}
.logo span {
  color: var(--cyan-soft);
  text-shadow: 0 0 8px var(--cyan), 0 0 30px var(--cyan), 4px 4px 0 rgba(255,46,136,0.55);
}
.logo em {
  font-style: normal; display: block; font-size: 0.55em;
  color: var(--magenta);
  text-shadow: 0 0 8px var(--magenta), 0 0 30px rgba(255,46,136,0.6);
  letter-spacing: 0.34em;
}
.title-sub { font-size: 13px; letter-spacing: 0.32em; color: var(--amber); margin: 12px 0 22px; }
#title-menu { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.btn {
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.16em;
  background: rgba(13,10,30,0.85); color: var(--cyan-soft);
  border: 1px solid var(--panel-line); border-radius: 4px;
  padding: 12px 30px; min-width: 240px; min-height: 44px;
  cursor: pointer; transition: all 0.12s;
}
.btn:hover { background: rgba(34,229,255,0.16); box-shadow: 0 0 16px rgba(34,229,255,0.35); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  border-color: var(--cyan); color: var(--bg0); background: var(--cyan);
  text-shadow: none; box-shadow: 0 0 18px rgba(34,229,255,0.5);
}
.btn.primary:hover { background: var(--cyan-soft); }
.btn.danger { border-color: rgba(255,94,98,0.6); color: var(--red); }
.btn.danger:hover { background: rgba(255,94,98,0.14); box-shadow: 0 0 14px rgba(255,94,98,0.3); }
.btn.small { min-width: 0; padding: 7px 16px; font-size: 11px; min-height: 34px; }
.btn-col { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; align-items: center; }
.title-hi { margin-top: 20px; font-size: 13px; color: var(--dim); letter-spacing: 0.2em; }
.attract-hint {
  margin-top: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.28em;
  color: var(--green); animation: pulse 0.9s ease-in-out infinite alternate;
}
.title-controls { margin-top: 14px; font-size: 10px; letter-spacing: 0.12em; color: var(--dim); max-width: 520px; }
.title-foot { margin-top: 18px; font-size: 9px; letter-spacing: 0.24em; color: #4a4472; }

/* ---- tutorial ---- */
#tutorial-panel {
  position: absolute; left: 50%; bottom: calc(120px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 75; pointer-events: auto;
}
.tut-card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 8px;
  padding: 16px 22px; text-align: center; max-width: min(560px, 92vw);
  box-shadow: 0 0 30px rgba(34,229,255,0.2);
}
.tut-kicker { font-size: 10px; letter-spacing: 0.3em; color: var(--magenta); }
#tut-text { font-size: 15px; font-weight: 700; margin: 8px 0 6px; line-height: 1.5; }
#tut-hint { font-size: 11px; color: var(--dim); }
#tut-dots { margin: 10px 0 8px; display: flex; gap: 6px; justify-content: center; }
#tut-dots span { width: 9px; height: 9px; border-radius: 50%; background: #2a2350; display: inline-block; }
#tut-dots span.done { background: var(--green); }
#tut-dots span.now { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
#btn-tut-skip { margin-top: 4px; }

/* ---- unlock flash ---- */
#unlock-flash {
  position: absolute; inset: 0; z-index: 90; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(34,229,255,0.22), rgba(4,2,14,0.8) 70%);
}
#unlock-flash.go { animation: flashIn 1.9s ease-out forwards; }
#unlock-flash-text { text-align: center; }
.uf-kicker {
  display: block; font-size: 15px; letter-spacing: 0.5em; color: var(--amber);
  animation: ufK 1.9s ease-out;
}
.uf-name {
  display: block; font-size: clamp(40px, 9vw, 84px); font-weight: 700; letter-spacing: 0.16em;
  color: var(--cyan-soft);
  text-shadow: 0 0 12px var(--cyan), 0 0 50px var(--cyan);
  animation: ufN 1.9s ease-out;
}
@keyframes flashIn { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ufK { 0% { transform: translateY(20px); opacity: 0; } 25% { transform: none; opacity: 1; } }
@keyframes ufN { 0% { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } }

/* ---- debrief ---- */
.debrief-inner {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px;
  width: min(760px, 94vw); max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 0 50px rgba(34,229,255,0.25), inset 0 0 60px rgba(34,229,255,0.04);
  animation: debriefIn 0.35s ease-out;
}
@keyframes debriefIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; } }
.debrief-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 18px 24px 12px; border-bottom: 1px dashed rgba(139,147,184,0.3);
}
.db-file { font-size: 11px; letter-spacing: 0.3em; color: var(--amber); }
#debrief-name {
  font-size: 30px; letter-spacing: 0.22em; color: var(--cyan-soft);
  text-shadow: 0 0 12px rgba(34,229,255,0.5); flex: 1;
}
.db-stamp {
  font-size: 10px; letter-spacing: 0.18em; color: var(--green);
  border: 2px solid var(--green); border-radius: 4px; padding: 4px 8px;
  transform: rotate(-6deg); opacity: 0.85;
}
.debrief-body { padding: 16px 24px; overflow-y: auto; }
.db-intro { font-size: 13px; line-height: 1.7; color: var(--ink); margin-bottom: 16px; }
.db-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.db-card {
  border: 1px solid rgba(139,147,184,0.25); border-radius: 6px;
  padding: 12px 14px; background: rgba(7,4,24,0.5);
}
.db-card h3 { font-size: 14px; letter-spacing: 0.14em; color: var(--amber); margin-bottom: 6px; }
.db-card p { font-size: 12px; line-height: 1.6; color: var(--dim); }
.db-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 9px; letter-spacing: 0.1em; color: var(--cyan-soft);
  border: 1px solid rgba(34,229,255,0.4); border-radius: 3px; padding: 2px 6px;
}
.db-outro { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--green); }
.debrief-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 24px 18px; border-top: 1px dashed rgba(139,147,184,0.3);
}
.db-esc { font-size: 10px; color: var(--dim); letter-spacing: 0.14em; }

/* ---- generic panel card ---- */
.panel-card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px;
  width: min(520px, 94vw); padding: 26px 30px; text-align: center;
  box-shadow: 0 0 40px rgba(34,229,255,0.2);
  max-height: 90vh; overflow-y: auto;
}
.panel-card.wide { width: min(780px, 95vw); text-align: left; }
.panel-card.gold { border-color: rgba(255,211,107,0.6); box-shadow: 0 0 50px rgba(255,179,46,0.3); }
.panel-card.red { border-color: rgba(255,94,98,0.6); box-shadow: 0 0 50px rgba(255,94,98,0.3); }
.panel-title { font-size: 28px; letter-spacing: 0.18em; margin: 6px 0 10px; }
.panel-sub { font-size: 12px; color: var(--dim); line-height: 1.6; margin-bottom: 10px; }
.pause-controls { font-size: 11px; color: var(--dim); letter-spacing: 0.08em; margin-bottom: 6px; }
.stat-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }
.stat { border: 1px solid rgba(139,147,184,0.3); border-radius: 6px; padding: 8px 14px; min-width: 110px; }
.stat-k { font-size: 9px; letter-spacing: 0.2em; color: var(--dim); }
.stat-v { font-size: 18px; font-weight: 700; color: var(--cyan-soft); margin-top: 3px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
#panel-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ptab {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  background: transparent; color: var(--dim); border: 1px solid rgba(139,147,184,0.3);
  border-radius: 4px; padding: 7px 12px; cursor: pointer; min-height: 34px;
}
.ptab.on { color: var(--cyan-soft); border-color: var(--cyan); background: rgba(34,229,255,0.1); }

/* ---- progress map ---- */
.map-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.map-svg { width: 300px; max-width: 100%; flex-shrink: 0; }
.map-node { cursor: pointer; }
.map-node.locked { opacity: 0.55; }
.map-node-t { font-size: 15px; fill: var(--ink); }
.map-node-n { font-size: 9px; letter-spacing: 0.14em; fill: var(--dim); font-family: var(--mono); }
.map-node.un .map-node-n { fill: var(--cyan-soft); }
.map-node:hover circle { stroke: var(--amber); }
.map-hub { font-size: 11px; fill: rgba(234,246,255,0.7); font-family: var(--mono); letter-spacing: 0.1em; }
.map-side { flex: 1; min-width: 240px; }
.map-side h3 { font-size: 12px; letter-spacing: 0.26em; color: var(--amber); margin-bottom: 10px; }
.leg-list { list-style: none; font-size: 11px; }
.leg-list li { padding: 6px 8px; border-left: 2px solid #2a2350; color: var(--dim); margin-bottom: 3px; }
.leg-list li.done { color: var(--green); border-left-color: var(--green); }
.leg-list li.now { color: var(--ink); border-left-color: var(--cyan); background: rgba(34,229,255,0.07); }
.leg-list em { color: var(--magenta); font-style: normal; font-size: 9px; margin-left: 6px; }
.leg-list b { color: var(--amber); font-size: 9px; }
.leg-check { display: inline-block; width: 16px; }

/* ---- badges ---- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge-card {
  border: 1px solid rgba(139,147,184,0.3); border-radius: 6px; padding: 12px;
  text-align: center;
}
.badge-card.got { border-color: rgba(255,179,46,0.6); background: rgba(255,179,46,0.06); }
.badge-card.locked { opacity: 0.45; }
.badge-icon { font-size: 24px; color: var(--amber); }
.badge-name { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; margin: 6px 0 4px; }
.badge-desc { font-size: 10px; color: var(--dim); line-height: 1.5; }

/* ---- hangar ---- */
.hangar-head { font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.hangar-head b { color: var(--amber); }
.trail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.trail-card {
  border: 1px solid rgba(139,147,184,0.3); border-radius: 6px; padding: 12px;
  cursor: pointer; text-align: center; transition: all 0.12s;
}
.trail-card:hover { border-color: var(--cyan); }
.trail-card.sel { border-color: var(--green); background: rgba(61,255,158,0.07); }
.trail-card.locked { opacity: 0.6; }
.trail-prev { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; }
.trail-swatch { width: 22px; height: 8px; border-radius: 4px; display: inline-block; }
.trail-name { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.trail-desc { font-size: 10px; color: var(--dim); margin: 6px 0; line-height: 1.5; min-height: 30px; }
.trail-act { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--cyan); }
.trail-card.sel .trail-act { color: var(--green); }

/* ---- records ---- */
.records { display: flex; flex-wrap: wrap; gap: 10px; }
.records .stat { flex: 1 1 40%; }
.records .btn { margin-top: 8px; }

/* ============ responsive ============ */
@media (max-width: 720px) {
  .hud-v { font-size: 15px; }
  .hud-left, .hud-right { gap: 8px; }
  .hud-zone { font-size: 10px; }
  .hud-objective { font-size: 12px; }
  #timer-wrap { width: 34vw; }
  #radar { width: 84px; height: 84px; }
  .hud-bl, .hud-br { min-width: 86px; }
  #hud-hint { font-size: 9px; max-width: 40vw; }
  .db-grid { grid-template-columns: 1fr; }
  .panel-card { padding: 18px; }
  .btn { min-width: 200px; }
  #toast-stack { top: 120px; right: 8px; }
  .toast { max-width: 220px; font-size: 11px; }
  .map-wrap { justify-content: center; }
  .logo { letter-spacing: 0.04em; }
}
@media (max-height: 500px) {
  #hud-bottom { padding-bottom: 4px; }
  #radar { width: 64px; height: 64px; }
  #tutorial-panel { bottom: 60px; }
}
