/* ============================================================
   POTATO FORCE // JC IT LAB TACTICAL OPERATIONS
   ============================================================ */

:root {
  --ink: #0a0c07;
  --ink-2: #12150d;
  --panel: rgba(17, 20, 13, 0.9);
  --panel-2: rgba(12, 14, 9, 0.94);
  --paper: #efe5cf;
  --paper-soft: rgba(239, 229, 207, 0.72);
  --paper-dim: rgba(239, 229, 207, 0.46);
  --line: rgba(239, 229, 207, 0.16);
  --line-soft: rgba(239, 229, 207, 0.08);
  --amber: #f4a93c;
  --amber-hot: #ffc25e;
  --olive: #a9b37a;
  --olive-deep: #6e7a46;
  --red: #ff5b3c;
  --green: #8fd06a;
  --blue: #7fc4ff;
  --font-d: 'Bebas Neue', 'Barlow Condensed', Impact, sans-serif;
  --font-ui: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-m: 'JetBrains Mono', 'Courier New', monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%; width: 100%;
  overflow: hidden; background: var(--ink); color: var(--paper);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
body { user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { display: block; }
canvas { display: block; }

#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; outline: none; touch-action: none;
}

.screen-shade {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(6, 7, 4, 0.28) 72%, rgba(5, 6, 3, 0.62) 100%),
    linear-gradient(to bottom, rgba(8, 9, 5, 0.24), transparent 22%, transparent 76%, rgba(6, 7, 4, 0.37));
}
.grain {
  position: fixed; inset: -50%; z-index: 5; pointer-events: none;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-1.5%, 1%); }
  66% { transform: translate(1%, -1.5%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   SCREENS
   ============================================================ */
.screen {
  position: fixed; inset: 0; z-index: 20;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s;
}
.screen.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* ============================================================
   LOADING
   ============================================================ */
.loading {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: #070905; transition: opacity 0.6s ease, visibility 0.6s;
}
.loading.off { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading-emblem { width: 74px; height: 74px; filter: drop-shadow(0 0 22px rgba(244, 169, 60, 0.28)); animation: emblemPulse 2.4s ease-in-out infinite; }
.loading-name { font-family: var(--font-d); font-size: 42px; letter-spacing: 0.18em; color: var(--paper); }
.loading-bar { width: 220px; height: 2px; background: rgba(239, 229, 207, 0.13); overflow: hidden; }
.loading-bar i { display: block; width: 0%; height: 100%; background: var(--amber); transition: width 0.35s ease; }
.loading-label { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.28em; color: var(--paper-dim); }
@keyframes emblemPulse { 0%, 100% { opacity: 0.75; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.03); } }

/* ============================================================
   MENU
   ============================================================ */
.menu {
  display: flex; flex-direction: column;
  padding: calc(22px + var(--safe-t)) calc(28px + var(--safe-r)) calc(20px + var(--safe-b)) calc(28px + var(--safe-l));
  overflow-y: auto; overflow-x: hidden;
  background:
    linear-gradient(96deg, rgba(7, 9, 5, 0.95) 0%, rgba(7, 9, 5, 0.82) 38%, rgba(7, 9, 5, 0.32) 66%, rgba(7, 9, 5, 0.55) 100%),
    linear-gradient(to bottom, rgba(7, 9, 5, 0.55), transparent 30%, transparent 62%, rgba(7, 9, 5, 0.72));
}
.menu::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.16) 2px 3px);
  opacity: 0.35;
}
.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; width: 100%;
  max-width: 1480px; margin: 0 auto;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-soft);
}
.menu-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { font-family: var(--font-d); font-size: 19px; letter-spacing: 0.16em; color: var(--paper); white-space: nowrap; }
.brand-sep { width: 26px; height: 1px; background: var(--line); }
.brand-sub { font-family: var(--font-m); font-size: 8px; letter-spacing: 0.26em; color: var(--paper-dim); white-space: nowrap; }
.menu-top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.night-btn, .sound-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 13px;
  border: 1px solid var(--line);
  background: rgba(12, 15, 9, 0.62);
  font-family: var(--font-m); font-size: 8px; letter-spacing: 0.18em;
  color: var(--paper-soft); white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.night-btn:hover, .sound-btn:hover { border-color: rgba(244, 169, 60, 0.6); color: var(--amber); }
.night-btn[aria-pressed="true"] { border-color: rgba(127, 196, 255, 0.55); color: #a8d8ff; background: rgba(24, 38, 52, 0.55); }
.night-icon { width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor; position: relative; flex: none; }
.night-icon::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; opacity: 0.25; transition: opacity 0.2s, transform 0.2s; }
.night-btn[aria-pressed="true"] .night-icon { box-shadow: inset -4px -2px 0 0 currentColor; border-color: currentColor; }
.night-btn[aria-pressed="true"] .night-icon::after { opacity: 0; }
.sound-btn .sound-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(143, 208, 106, 0.8); flex: none; }
.sound-btn.muted .sound-dot { background: var(--red); box-shadow: none; }
.operator { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.12em; color: var(--paper-dim); white-space: nowrap; }

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 460px);
  align-items: center; gap: clamp(26px, 4vw, 64px);
  width: 100%; max-width: 1480px; margin: auto;
  padding: 26px 0 8px;
}
.menu-left { min-width: 0; max-width: 720px; }
.menu-kicker {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-m); font-size: 9px; letter-spacing: 0.24em;
  color: var(--olive); margin-bottom: 18px;
}
.blink-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.game-title {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(74px, 11.6vw, 168px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  display: flex; flex-direction: column;
  color: var(--paper);
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.55);
}
.game-title > span { display: block; }
.game-title .title-force {
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
  text-shadow: 0 0 42px rgba(244, 169, 60, 0.18);
  margin-left: 0.04em;
}
.title-rule { display: flex; align-items: center; gap: 14px; margin: 20px 0 18px; max-width: 560px; }
.title-rule i { display: block; width: 42px; height: 1px; background: var(--amber); flex: none; }
.title-rule span { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.32em; color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-blurb { margin: 0 0 26px; max-width: 520px; font-size: 16px; line-height: 1.62; color: var(--paper-soft); font-weight: 400; }

.menu-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-width: 560px; }
.btn {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(26, 30, 19, 0.8), rgba(13, 15, 9, 0.86));
  color: var(--paper);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  text-align: left;
}
.btn:hover { border-color: rgba(244, 169, 60, 0.55); background: linear-gradient(160deg, rgba(50, 45, 24, 0.85), rgba(20, 21, 12, 0.9)); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-tag { font-family: var(--font-m); font-size: 8px; color: var(--paper-dim); letter-spacing: 0.05em; align-self: flex-start; margin-top: 12px; flex: none; }
.btn-label { flex: 1; }
.btn-arrow { color: var(--ink); font-size: 10px; }
.btn-primary {
  grid-column: 1 / -1;
  min-height: 62px;
  background: linear-gradient(100deg, var(--amber) 0%, #e0922d 100%);
  border-color: var(--amber);
  color: #14130a;
  font-size: 22px; letter-spacing: 0.2em;
  box-shadow: 0 10px 40px rgba(244, 169, 60, 0.18);
}
.btn-primary .btn-tag { color: rgba(20, 19, 10, 0.55); margin-top: 18px; }
.btn-primary .btn-label { padding-left: 2px; }
.btn-primary:hover { background: linear-gradient(100deg, var(--amber-hot) 0%, var(--amber) 100%); transform: translateY(-2px); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-family: var(--font-m); font-size: 8px; letter-spacing: 0.12em; color: var(--paper-dim); }
.menu-foot b { color: var(--paper-soft); font-weight: 500; }

/* dossier */
.dossier {
  position: relative;
  padding: 20px 22px 16px;
  background: linear-gradient(155deg, rgba(24, 27, 17, 0.93), rgba(10, 12, 7, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  max-height: min(82vh, 760px);
  overflow: auto;
  scrollbar-width: thin;
}
.dossier::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 76px;
  background: linear-gradient(var(--amber), transparent);
}
.dossier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dossier-label { font-family: var(--font-m); font-size: 8px; letter-spacing: 0.2em; color: var(--olive); }
.dossier-code { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.14em; color: var(--paper-dim); border: 1px solid var(--line); padding: 3px 7px; }
.dossier-name { font-family: var(--font-d); font-size: 38px; letter-spacing: 0.06em; line-height: 1; margin: 12px 0 14px; color: var(--paper); }
.dossier-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.dossier-meta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dossier-meta span { font-family: var(--font-m); font-size: 7px; letter-spacing: 0.18em; color: var(--paper-dim); }
.dossier-meta b { font-family: var(--font-m); font-size: 9px; font-weight: 500; letter-spacing: 0.06em; color: var(--paper-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dossier-meta b.threat { color: var(--red); }
.objectives { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.objectives li { display: flex; gap: 11px; align-items: flex-start; }
.obj-num { font-family: var(--font-m); font-size: 9px; color: var(--amber); border: 1px solid rgba(244, 169, 60, 0.35); width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.obj-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.obj-text b { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--paper); }
.obj-text em { font-style: normal; font-size: 11px; color: var(--paper-dim); line-height: 1.35; }
.dossier-divider { display: flex; align-items: center; gap: 9px; margin: 16px 0 9px; font-family: var(--font-m); font-size: 7px; letter-spacing: 0.2em; color: var(--paper-dim); }
.dossier-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.leaderboard { display: flex; flex-direction: column; gap: 3px; }
.leaderboard li { display: flex; align-items: center; gap: 8px; font-family: var(--font-m); font-size: 9px; color: var(--paper-soft); padding: 4px 2px; border-bottom: 1px solid rgba(239, 229, 207, 0.04); }
.leaderboard li.mine { color: var(--amber); }
.leaderboard .lb-rank { color: var(--paper-dim); width: 16px; flex: none; }
.leaderboard .lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard .lb-name a { color: inherit; text-decoration: none; }
.leaderboard .lb-name a:hover { color: var(--amber); }
.leaderboard .lb-val { color: var(--paper); }
.leaderboard li.mine .lb-val { color: var(--amber); }
.board-empty { color: var(--paper-dim) !important; font-size: 9px; letter-spacing: 0.1em; }
.dossier-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-family: var(--font-m); font-size: 7px; letter-spacing: 0.14em; color: var(--paper-dim); }

/* ============================================================
   HUD
   ============================================================ */
.hud {
  position: fixed; inset: 0; z-index: 15;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.hud.on { opacity: 1; visibility: visible; }
.hud-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: grid; grid-template-columns: minmax(160px, 1fr) minmax(260px, 640px) minmax(160px, 1fr);
  align-items: start; gap: clamp(10px, 2vw, 28px);
  padding: calc(14px + var(--safe-t)) calc(20px + var(--safe-r)) 0 calc(20px + var(--safe-l));
}
.hud-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hud-emblem { width: 38px; height: 38px; flex: none; opacity: 0.95; }
.hud-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hud-game { font-family: var(--font-d); font-size: 23px; letter-spacing: 0.1em; line-height: 1; color: var(--paper); white-space: nowrap; }
.hud-op { font-family: var(--font-m); font-size: 7px; letter-spacing: 0.16em; color: var(--olive); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compass-wrap { position: relative; width: 100%; justify-self: center; align-self: start; padding-top: 2px; }
#compassCanvas { width: 100%; height: auto; }
.compass-readout { position: absolute; right: 2px; top: 20px; display: flex; align-items: baseline; gap: 4px; font-family: var(--font-m); color: var(--amber); }
.compass-readout span { font-size: 13px; letter-spacing: 0.06em; }
.compass-readout em { font-style: normal; font-size: 6px; color: var(--paper-dim); letter-spacing: 0.14em; }
.hud-right-top { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.radar-wrap { position: relative; width: clamp(88px, 10.5vw, 138px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid rgba(239, 229, 207, 0.22); box-shadow: 0 0 0 4px rgba(9, 11, 7, 0.5), inset 0 0 22px rgba(0, 0, 0, 0.7); }
#radarCanvas { width: 100%; height: 100%; }
.radar-label { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-family: var(--font-m); font-size: 5.5px; letter-spacing: 0.14em; color: rgba(239, 229, 207, 0.55); text-shadow: 0 1px 3px #000; }
.hud-clock { display: flex; align-items: center; gap: 7px; font-family: var(--font-m); }
.hud-pause { width: 26px; height: 22px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 7px; color: var(--paper-dim); background: rgba(10,12,7,0.4); pointer-events: auto; }
.hud-pause:hover { border-color: var(--amber); color: var(--amber); }
.hud-clock span#missionClock { font-size: 12px; letter-spacing: 0.06em; color: var(--paper); }
.hud-clock em { font-style: normal; font-size: 6px; letter-spacing: 0.16em; color: var(--paper-dim); }
.night-tag { font-size: 6px !important; letter-spacing: 0.14em !important; color: #8ec7f5 !important; border: 1px solid rgba(127, 196, 255, 0.4); padding: 2px 5px; display: none; }
body.night .night-tag { display: inline-block; }

.hud-left { z-index: 6; position: absolute; left: calc(20px + var(--safe-l)); top: calc(86px + var(--safe-t)); display: flex; flex-direction: column; gap: 10px; max-width: 330px; }
.objective-card {
  position: relative; padding: 11px 13px 10px;
  background: linear-gradient(105deg, rgba(15, 18, 10, 0.86), rgba(11, 13, 8, 0.58));
  border-left: 2px solid var(--amber);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.obj-eyebrow { display: flex; align-items: center; gap: 6px; font-family: var(--font-m); font-size: 6.5px; letter-spacing: 0.2em; color: var(--olive); }
.pulse-dot { width: 4px; height: 4px; background: var(--amber); border-radius: 50%; animation: blink 1.4s infinite; }
.obj-main { font-family: var(--font-d); font-size: 26px; letter-spacing: 0.05em; line-height: 1; margin-top: 5px; color: var(--paper); }
.obj-sub { font-size: 11px; color: var(--paper-soft); margin-top: 2px; line-height: 1.3; }
.obj-meter { height: 3px; margin-top: 8px; background: rgba(239, 229, 207, 0.13); overflow: hidden; }
.obj-meter i { display: block; width: 0%; height: 100%; background: var(--amber); transition: width 0.4s ease; }
.obj-count { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-family: var(--font-m); font-size: 7px; letter-spacing: 0.1em; color: var(--paper-dim); }
.obj-count span:first-child { color: var(--paper-soft); }
.killfeed { display: flex; flex-direction: column; gap: 3px; max-width: 300px; }
.kf-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: 8px; letter-spacing: 0.08em;
  color: var(--paper-soft); background: rgba(10, 12, 7, 0.62);
  border-left: 1px solid rgba(239, 229, 207, 0.3);
  padding: 4px 8px; animation: kfIn 0.22s ease both;
}
.kf-row.head { border-left-color: var(--amber); color: var(--amber); }
.kf-row b { color: var(--paper); font-weight: 500; }
.kf-row.head b { color: var(--amber); }
.kf-row.out { animation: kfOut 0.35s ease both; }
@keyframes kfIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes kfOut { to { opacity: 0; transform: translateX(-8px); } }

/* crosshair */
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; --spread: 8px; opacity: 0.92; }
.ch { position: absolute; background: rgba(245, 238, 222, 0.88); box-shadow: 0 0 3px rgba(0, 0, 0, 0.9); }
.ch-t, .ch-b { width: 1.5px; height: 8px; left: -0.75px; }
.ch-l, .ch-r { height: 1.5px; width: 8px; top: -0.75px; }
.ch-t { top: calc(-1 * var(--spread) - 8px); }
.ch-b { top: var(--spread); }
.ch-l { left: calc(-1 * var(--spread) - 8px); }
.ch-r { left: var(--spread); }
.ch-dot { position: absolute; width: 2.5px; height: 2.5px; left: -1.25px; top: -1.25px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 4px rgba(244, 169, 60, 0.8); }
.hitmarker { position: absolute; left: 0; top: 0; opacity: 0; }
.hitmarker.show { animation: hitFlash 0.18s ease-out; }
.hitmarker.head i { background: var(--red); }
.hitmarker i { position: absolute; width: 9px; height: 1.6px; background: #fdf7e8; box-shadow: 0 0 4px rgba(0,0,0,0.9); transform-origin: 0 50%; }
.hitmarker i:nth-child(1) { transform: rotate(45deg) translate(5px, 0); }
.hitmarker i:nth-child(2) { transform: rotate(135deg) translate(5px, 0); }
.hitmarker i:nth-child(3) { transform: rotate(225deg) translate(5px, 0); }
.hitmarker i:nth-child(4) { transform: rotate(315deg) translate(5px, 0); }
@keyframes hitFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* bottom */
.hud-bottom {
  z-index: 6; position: absolute; left: calc(20px + var(--safe-l)); right: calc(20px + var(--safe-r)); bottom: calc(16px + var(--safe-b));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
}
.vitals { width: clamp(180px, 17vw, 270px); }
.panel-label { font-family: var(--font-m); font-size: 6px; letter-spacing: 0.24em; color: var(--olive); margin-bottom: 5px; }
.health-row { display: flex; align-items: flex-end; gap: 10px; }
.health-track { position: relative; flex: 1; height: 11px; background: rgba(9, 11, 7, 0.7); border: 1px solid rgba(239, 229, 207, 0.18); overflow: hidden; }
.health-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #a6c46b, #d8c761); transition: width 0.2s ease, background 0.2s; }
.health-track i.low { background: linear-gradient(90deg, #ff6c3d, #ffb03a); animation: lowPulse 0.8s infinite; }
.health-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, 0.4) calc(10% - 1px) 10%); pointer-events: none; }
.health-num { font-family: var(--font-m); font-size: 20px; line-height: 0.9; color: var(--paper); width: 42px; text-align: right; }
.vitals-sub { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-family: var(--font-m); font-size: 6.5px; letter-spacing: 0.1em; color: var(--paper-dim); }
.vitals-sub b { color: var(--paper-soft); font-weight: 500; }
@keyframes lowPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.equipment { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 2px; }
.equip-item { display: flex; align-items: center; gap: 5px; font-family: var(--font-m); font-size: 8px; color: var(--paper-dim); }
.equip-item b { font-size: 12px; color: var(--paper); font-weight: 500; }
.equip-item em { font-style: normal; font-size: 6px; letter-spacing: 0.14em; }
.equip-icon { color: var(--amber); font-size: 9px; }
.equip-icon.alt { color: var(--olive); }
.weapon { text-align: right; min-width: 180px; }
.weapon-name { font-family: var(--font-ui); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--paper); }
.weapon-ammo { display: flex; align-items: baseline; justify-content: flex-end; gap: 2px; font-family: var(--font-d); line-height: 0.92; color: var(--paper); }
.weapon-ammo > span { font-size: 46px; letter-spacing: 0.02em; }
.weapon-ammo em { font-style: normal; font-family: var(--font-m); font-size: 12px; color: var(--paper-dim); display: flex; align-items: baseline; gap: 2px; }
.weapon-ammo em span { font-size: 14px; color: var(--paper-soft); }
.weapon-ammo.low > span { color: var(--red); }
.weapon-meta { display: flex; justify-content: flex-end; gap: 10px; font-family: var(--font-m); font-size: 7px; letter-spacing: 0.12em; color: var(--olive); }
#reloadState { color: var(--amber); }

/* toast / extraction / interact */
.toast {
  z-index: 7; position: absolute; left: 50%; top: calc(104px + var(--safe-t)); transform: translate(-50%, -8px);
  padding: 8px 18px; border: 1px solid rgba(244, 169, 60, 0.42);
  background: rgba(12, 14, 8, 0.9);
  font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper); opacity: 0; pointer-events: none; text-align: center; max-width: 80vw;
  transition: opacity 0.25s, transform 0.25s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.alert { border-color: rgba(255, 91, 60, 0.6); color: #ffb6a5; }
.extract-banner {
  z-index: 7; position: absolute; left: 50%; top: calc(94px + var(--safe-t)); transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 26px; background: rgba(9, 12, 7, 0.86); border: 1px solid rgba(143, 208, 106, 0.45);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  min-width: 210px;
}
.extract-banner.on { display: flex; }
.extract-label { font-family: var(--font-m); font-size: 7px; letter-spacing: 0.3em; color: var(--green); }
.extract-time { font-family: var(--font-d); font-size: 44px; line-height: 0.95; color: var(--paper); }
.extract-bar { width: 100%; height: 3px; background: rgba(239, 229, 207, 0.15); overflow: hidden; }
.extract-bar i { display: block; width: 0%; height: 100%; background: var(--green); }
.extract-note { font-family: var(--font-m); font-size: 6.5px; letter-spacing: 0.16em; color: var(--paper-dim); }
.interact {
  z-index: 7; position: absolute; left: 50%; bottom: 19%; transform: translateX(-50%);
  display: none; align-items: center; gap: 12px;
  padding: 9px 14px; background: rgba(10, 13, 8, 0.88); border: 1px solid rgba(244, 169, 60, 0.45);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  min-width: 260px;
}
.interact.on { display: flex; }
.interact-key { width: 30px; height: 30px; border: 1px solid var(--amber); display: grid; place-items: center; font-family: var(--font-m); font-size: 13px; color: var(--amber); flex: none; }
.interact-text { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.interact-text b { font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; color: var(--paper); }
.interact-text span { font-family: var(--font-m); font-size: 6.5px; letter-spacing: 0.14em; color: var(--paper-dim); }
.interact-progress { width: 100%; height: 2px; background: rgba(239, 229, 207, 0.14); position: absolute; left: 0; bottom: 0; }
.interact-progress i { display: block; width: 0%; height: 100%; background: var(--amber); }

/* markers */
.markers { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.mk {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-m); font-size: 7.5px; letter-spacing: 0.1em; color: var(--paper);
  text-shadow: 0 1px 4px #000; transition: opacity 0.15s; will-change: left, top;
}
.mk.hide { opacity: 0; }
.mk-diamond { width: 11px; height: 11px; transform: rotate(45deg); border: 1.5px solid var(--amber); background: rgba(244, 169, 60, 0.18); box-shadow: 0 0 12px rgba(244, 169, 60, 0.35); }
.mk.lz .mk-diamond { border-color: var(--green); background: rgba(143, 208, 106, 0.2); box-shadow: 0 0 12px rgba(143, 208, 106, 0.4); }
.mk.ally { color: #b9ddff; }
.mk.ally .mk-diamond { width: 8px; height: 8px; border-color: var(--blue); background: rgba(127, 196, 255, 0.2); box-shadow: none; }
.mk-intel { width: 26px; height: 26px; border: 1px solid rgba(244, 169, 60, 0.35); display: grid; place-items: center; position: relative; }
.mk-intel::before, .mk-intel::after { content: ''; position: absolute; background: rgba(244, 169, 60, 0.4); }
.mk-intel::before { width: 1px; height: 100%; left: 50%; }
.mk-intel::after { height: 1px; width: 100%; top: 50%; }
.mk-dist { font-size: 7px; color: var(--paper-soft); }

/* damage */
.damage-vignette {
  z-index: 8; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(180, 26, 14, 0.55) 100%);
  box-shadow: inset 0 0 130px rgba(160, 15, 8, 0.8);
  transition: opacity 0.25s;
}
.damage-arrow {
  z-index: 8; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; opacity: 0;
  border-left: 2px solid var(--red); border-top: 2px solid var(--red);
  transform-origin: center; filter: drop-shadow(0 0 4px rgba(255, 60, 30, 0.7));
  transition: opacity 0.4s;
}

/* ============================================================
   PAUSE / RESULT
   ============================================================ */
.pause, .result {
  display: flex; align-items: center; justify-content: center;
  padding: calc(18px + var(--safe-t)) calc(18px + var(--safe-r)) calc(18px + var(--safe-b)) calc(18px + var(--safe-l));
  background: radial-gradient(ellipse at center, rgba(10, 12, 7, 0.62), rgba(5, 7, 4, 0.9));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.pause-panel, .result-panel {
  position: relative; width: min(94vw, 760px); max-height: 92dvh; overflow: auto;
  padding: clamp(20px, 3.5vw, 38px);
  background: linear-gradient(155deg, rgba(26, 29, 18, 0.97), rgba(9, 11, 7, 0.98));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pause-kicker, .result-kicker { font-family: var(--font-m); font-size: 8px; letter-spacing: 0.24em; color: var(--olive); }
.pause-title { margin: 8px 0 16px; font-family: var(--font-d); font-size: clamp(54px, 9vw, 92px); line-height: 0.9; letter-spacing: 0.03em; color: var(--paper); }
.pause-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.pause-stats div { border: 1px solid var(--line-soft); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.pause-stats span { font-family: var(--font-m); font-size: 6.5px; letter-spacing: 0.16em; color: var(--paper-dim); }
.pause-stats b { font-family: var(--font-m); font-size: 14px; font-weight: 500; color: var(--paper); }
.pause-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; max-width: 560px; }
.pause-actions .btn-primary { grid-column: 1 / -1; min-height: 52px; font-size: 18px; }
.pause-actions .btn-primary .btn-tag { margin-top: 15px; }
.pause-controls { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--font-m); font-size: 7px; letter-spacing: 0.08em; color: var(--paper-dim); }
.pause-controls b { color: var(--paper-soft); font-weight: 500; }

.result-panel { width: min(94vw, 830px); }
.result-title { margin: 8px 0 2px; font-family: var(--font-d); font-size: clamp(48px, 8vw, 86px); line-height: 0.9; letter-spacing: 0.02em; color: var(--paper); }
.result-panel.fail .result-title { color: #ffb1a3; }
.result-sub { font-family: var(--font-m); font-size: 8px; letter-spacing: 0.2em; color: var(--olive); }
.result-grade-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; margin: 18px 0 14px; }
.result-grade { font-family: var(--font-d); font-size: 110px; line-height: 0.8; text-align: center; color: var(--amber); text-shadow: 0 0 38px rgba(244, 169, 60, 0.2); }
.result-panel.fail .result-grade { color: var(--red); text-shadow: 0 0 38px rgba(255, 91, 60, 0.18); }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-stats div { border: 1px solid var(--line-soft); padding: 7px 9px; display: flex; flex-direction: column; gap: 2px; }
.result-stats span { font-family: var(--font-m); font-size: 6px; letter-spacing: 0.16em; color: var(--paper-dim); }
.result-stats b { font-family: var(--font-m); font-size: 13px; font-weight: 500; color: var(--paper); white-space: nowrap; }
.result-board .leaderboard { max-height: 150px; overflow: auto; }
.result-note { font-family: var(--font-m); font-size: 8px; letter-spacing: 0.1em; color: var(--amber); margin-top: 12px; min-height: 12px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; max-width: 560px; }
.result-actions .btn-primary { grid-column: 1 / -1; min-height: 54px; font-size: 18px; }
.result-actions .btn-primary .btn-tag { margin-top: 16px; }
.result-leaderboard li { font-size: 9px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-back {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 6, 3, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.22s, visibility 0.22s;
}
.modal-back.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal {
  display: none; width: min(94vw, 840px); max-height: 88dvh; overflow: auto;
  background: linear-gradient(155deg, rgba(25, 28, 17, 0.99), rgba(9, 11, 7, 0.99));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.modal.open { display: block; animation: modalIn 0.24s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: rgba(15, 18, 10, 0.97); border-bottom: 1px solid var(--line-soft); font-family: var(--font-m); font-size: 9px; letter-spacing: 0.2em; color: var(--olive); }
.modal-close { width: 30px; height: 30px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--paper-soft); font-size: 12px; }
.modal-close:hover { border-color: var(--amber); color: var(--amber); }
.modal-body { padding: 22px; }
.modal-lede { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--paper-soft); max-width: 660px; }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.manual-block h3, .credit-body h3 { margin: 0 0 10px; font-family: var(--font-m); font-size: 8px; letter-spacing: 0.2em; color: var(--olive); font-weight: 500; }
.manual-block h3 + .manual-p, .manual-block h3 + .manual-list { margin-top: 0; }
.manual-block h3:not(:first-child) { margin-top: 20px; }
.key-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(239, 229, 207, 0.055); font-size: 12px; color: var(--paper-soft); }
.key-row b { font-family: var(--font-m); font-size: 9px; font-weight: 500; letter-spacing: 0.06em; color: var(--paper); }
.manual-p { font-size: 13px; line-height: 1.55; color: var(--paper-soft); margin: 0 0 10px; }
.manual-list { display: flex; flex-direction: column; gap: 7px; }
.manual-list li { position: relative; padding-left: 14px; font-size: 12px; line-height: 1.45; color: var(--paper-soft); }
.manual-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; background: var(--amber); }
.setting { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.setting-name { display: flex; justify-content: space-between; font-family: var(--font-m); font-size: 8px; letter-spacing: 0.16em; color: var(--paper-soft); }
.setting-name b { color: var(--amber); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: rgba(239, 229, 207, 0.18); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; background: var(--amber); border: 2px solid #14150c; cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; background: var(--amber); border: 2px solid #14150c; border-radius: 0; }
.setting.toggle { flex-direction: row; align-items: center; justify-content: space-between; cursor: pointer; }
.setting.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 42px; height: 20px; border: 1px solid var(--line); position: relative; flex: none; transition: background 0.2s, border-color 0.2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--paper-dim); transition: transform 0.2s, background 0.2s; }
.setting.toggle input:checked + .switch { background: rgba(244, 169, 60, 0.18); border-color: rgba(244, 169, 60, 0.6); }
.setting.toggle input:checked + .switch::after { transform: translateX(22px); background: var(--amber); }
.setting-note { margin-top: 16px; font-family: var(--font-m); font-size: 7px; letter-spacing: 0.1em; color: var(--paper-dim); }
.credit-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.credit-mark img { width: 48px; height: 48px; }
.credit-mark b { display: block; font-family: var(--font-d); font-size: 26px; letter-spacing: 0.06em; }
.credit-mark span { font-family: var(--font-m); font-size: 7px; letter-spacing: 0.16em; color: var(--paper-dim); }
.credit-list li::before { background: var(--olive); }
.credit-build { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--font-m); font-size: 7px; letter-spacing: 0.14em; color: var(--paper-dim); }
.credit-build span { color: var(--paper-soft); }

/* ============================================================
   TOUCH
   ============================================================ */
.touch-only { display: none !important; }
body.touch .touch-only { display: initial !important; }
.touch-ui { position: absolute; inset: 0; z-index: 9; display: none; pointer-events: none; }
body.paused .touch-ui, body.over .touch-ui { display: none !important; }
.mobile-weapon { display: none; }
body.touch .weapon { display: none; }
body.touch .mobile-weapon { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; position: absolute; right: calc(14px + var(--safe-r)); top: calc(132px + var(--safe-t)); z-index: 7; text-align: right; text-shadow: 0 1px 4px #000; }
.mobile-weapon span { font-family: var(--font-ui); font-weight: 600; font-size: 9px; letter-spacing: 0.1em; color: var(--paper-soft); }
.mobile-weapon b { font-family: var(--font-d); font-size: 26px; line-height: 0.95; color: var(--paper); }
.mobile-weapon b i { font-style: normal; font-family: var(--font-m); font-size: 10px; color: var(--paper-dim); padding: 0 2px; }
.mobile-weapon b span:last-child { font-family: var(--font-m); font-size: 11px; color: var(--paper-soft); }
body.touch .vitals { position: fixed; left: calc(12px + var(--safe-l)); top: calc(188px + var(--safe-t)); bottom: auto; width: 152px; z-index: 7; padding: 7px 8px 6px; background: linear-gradient(105deg, rgba(15,18,10,0.82), rgba(11,13,8,0.5)); border-left: 2px solid var(--amber); }
body.touch .vitals .vitals-sub { font-size: 5.5px; }
body.touch .tbtn-use { display: none !important; }
body.touch .tbtn-use.on { display: grid !important; }
body.touch .hud-pause { width: 34px; height: 28px; font-size: 9px; }
@media (max-height: 540px) {
  .pause-panel, .result-panel { padding: 14px 18px; }
  .pause-title { font-size: 42px; margin: 4px 0 8px; }
  .pause-kicker { font-size: 7px; }
  .pause-stats { margin-bottom: 10px; gap: 5px; }
  .pause-stats div { padding: 5px 8px; }
  .pause-actions { gap: 5px; }
  .pause-actions .btn { min-height: 38px; font-size: 13px; }
  .pause-actions .btn-primary { min-height: 42px; font-size: 16px; }
  .pause-actions .btn-primary .btn-tag { margin-top: 13px; }
  .result-title { font-size: 42px; }
  .result-grade-row { margin: 8px 0 8px; grid-template-columns: 90px 1fr; }
  .result-grade { font-size: 70px; }
  .result-board { display: none; }
  .result-actions { gap: 5px; margin-top: 8px; }
  .result-actions .btn { min-height: 38px; font-size: 13px; }
  .result-actions .btn-primary { min-height: 42px; font-size: 16px; }
  .result-note { margin-top: 6px; }
  .modal { max-height: 94dvh; }
  .modal-body { padding: 14px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .hud-left { top: calc(64px + var(--safe-t)); }
  .objective-card { padding: 8px 10px; }
  .obj-main { font-size: 18px; }
  .obj-sub { font-size: 9px; }
  .hud-bottom { bottom: calc(8px + var(--safe-b)); }
  body.touch .vitals { top: calc(178px + var(--safe-t)); width: 140px; }
}
body.touch .touch-ui { display: block; }
.stick { position: absolute; left: calc(16px + var(--safe-l)); bottom: calc(22px + var(--safe-b)); width: 126px; height: 126px; border-radius: 50%; pointer-events: auto; touch-action: none; background: radial-gradient(circle, rgba(239, 229, 207, 0.035), rgba(9, 11, 7, 0.22)); border: 1px solid rgba(239, 229, 207, 0.18); }
.stick-ring { position: absolute; inset: 18px; border-radius: 50%; border: 1px solid rgba(239, 229, 207, 0.12); }
.stick-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(239, 229, 207, 0.14); border: 1px solid rgba(239, 229, 207, 0.34); box-shadow: 0 0 18px rgba(0,0,0,0.35); transition: transform 0.06s; }
.stick-knob.active { background: rgba(244, 169, 60, 0.28); border-color: var(--amber); }
.tbtn { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-m); font-size: 9px; letter-spacing: 0.04em; color: var(--paper); background: rgba(10, 13, 8, 0.55); border: 1px solid rgba(239, 229, 207, 0.26); text-shadow: 0 1px 3px #000; }
.tbtn:active, .tbtn.held { background: rgba(244, 169, 60, 0.34); border-color: var(--amber); color: #fff6e2; }
.tbtn-fire { right: calc(16px + var(--safe-r)); bottom: calc(24px + var(--safe-b)); width: 84px; height: 84px; font-size: 13px; background: rgba(244, 169, 60, 0.18); border-color: rgba(244, 169, 60, 0.56); color: var(--amber-hot); }
.tbtn-aim { right: calc(20px + var(--safe-r)); bottom: calc(120px + var(--safe-b)); width: 54px; height: 54px; }
.tbtn-reload { right: calc(108px + var(--safe-r)); bottom: calc(28px + var(--safe-b)); width: 48px; height: 48px; }
.tbtn-jump { right: calc(108px + var(--safe-r)); bottom: calc(86px + var(--safe-b)); width: 46px; height: 46px; }
.tbtn-crouch { right: calc(108px + var(--safe-r)); bottom: calc(142px + var(--safe-b)); width: 44px; height: 44px; }
.tbtn-swap { right: calc(170px + var(--safe-r)); bottom: calc(22px + var(--safe-b)); width: 44px; height: 44px; }
.tbtn-nade { right: calc(172px + var(--safe-r)); bottom: calc(76px + var(--safe-b)); width: 44px; height: 44px; }
.tbtn-use { right: calc(168px + var(--safe-r)); bottom: calc(132px + var(--safe-b)); width: 50px; height: 50px; border-color: rgba(244, 169, 60, 0.5); color: var(--amber); }
.sound-mini { position: absolute; right: 0; bottom: 100%; margin-bottom: 6px; width: 34px; height: 20px; font-family: var(--font-m); font-size: 7px; border: 1px solid var(--line); color: var(--paper-dim); background: rgba(10,12,7,0.5); }
body.touch .equipment { padding-right: 70px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .menu-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); gap: 28px; }
  .game-title { font-size: clamp(72px, 12vw, 132px); }
  .menu-blurb { font-size: 15px; max-width: 460px; }
  .hud-top { grid-template-columns: 1fr minmax(220px, 460px) 1fr; }
}
@media (max-width: 860px) {
  .menu { padding: calc(16px + var(--safe-t)) calc(16px + var(--safe-r)) calc(16px + var(--safe-b)) calc(16px + var(--safe-l)); }
  .menu-grid { grid-template-columns: 1fr; align-items: start; gap: 22px; padding-top: 20px; }
  .menu-left { max-width: 100%; }
  .game-title { font-size: clamp(62px, 17vw, 110px); }
  .menu-blurb { font-size: 14px; max-width: 560px; margin-bottom: 20px; }
  .menu-actions { max-width: 560px; }
  .dossier { max-height: none; width: 100%; }
  .menu-top { gap: 10px; }
  .brand-sub { display: none; }
  .hud-top { grid-template-columns: auto 1fr auto; gap: 10px; }
  .hud-left { top: calc(76px + var(--safe-t)); }
  .obj-main { font-size: 22px; }
  .objective-card { max-width: 260px; }
  .hud-bottom { gap: 10px; }
  .equipment { display: none; }
  .weapon { min-width: 130px; }
  .weapon-ammo > span { font-size: 38px; }
  .vitals { width: 170px; }
  .health-num { font-size: 17px; width: 34px; }
  .manual-grid { grid-template-columns: 1fr; gap: 10px; }
  .pause-actions, .result-actions { grid-template-columns: 1fr; max-width: none; }
  .pause-controls { display: none; }
}
@media (max-width: 620px) {
  .menu-top-right { gap: 7px; }
  .operator { display: none; }
  .menu-foot { display: none; }
  .game-title { font-size: clamp(58px, 19vw, 96px); }
  .title-rule span { font-size: 7.5px; letter-spacing: 0.2em; }
  .menu-actions { grid-template-columns: 1fr 1fr; }
  .menu-actions .btn-primary { grid-column: 1 / -1; }
  .menu-actions .btn { font-size: 12px; padding: 0 10px; min-height: 44px; }
  .menu-actions .btn-tag { margin-top: 10px; }
  .menu-actions .btn:last-child { grid-column: 1 / -1; }
  .dossier { padding: 16px; }
  .dossier-name { font-size: 30px; }
  .dossier-meta { gap: 7px 10px; }
  .result-grade-row { grid-template-columns: 100px 1fr; gap: 10px; }
  .result-grade { font-size: 80px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-stats div { padding: 6px 7px; }
  .pause-stats { grid-template-columns: 1fr 1fr; }
  .hud-brand-text { display: none; }
  .hud-emblem { width: 30px; height: 30px; }
  .hud-top { padding: calc(10px + var(--safe-t)) calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); }
  .compass-readout { top: 17px; }
  .compass-readout span { font-size: 11px; }
  .radar-wrap { width: 78px; }
  .radar-label { font-size: 4.5px; bottom: 4px; }
  .hud-clock span#missionClock { font-size: 10px; }
  .hud-clock em { display: none; }
  .hud-left { left: calc(10px + var(--safe-l)); top: calc(72px + var(--safe-t)); max-width: 210px; }
  .obj-main { font-size: 18px; }
  .obj-sub { font-size: 9.5px; }
  .obj-count { font-size: 6px; }
  .hud-bottom { left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); }
  .vitals { width: 132px; }
  .weapon-name { font-size: 10px; letter-spacing: 0.06em; }
  .weapon-ammo > span { font-size: 30px; }
  .weapon-ammo em span { font-size: 10px; }
  .panel-label { font-size: 5px; }
  .vitals-sub { font-size: 5.5px; }
  .health-track { height: 8px; }
  .toast { top: calc(78px + var(--safe-t)); font-size: 10px; padding: 6px 10px; letter-spacing: 0.1em; }
  .extract-banner { top: calc(70px + var(--safe-t)); padding: 7px 16px; min-width: 150px; }
  .extract-time { font-size: 30px; }
  .interact { bottom: 30%; min-width: 190px; padding: 7px 10px; }
  .interact-text b { font-size: 11px; }
  .interact-key { width: 24px; height: 24px; font-size: 10px; }
  .mk { font-size: 6px; }
  .mk-diamond { width: 8px; height: 8px; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 12px 16px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .menu { padding-top: calc(8px + var(--safe-t)); padding-bottom: calc(8px + var(--safe-b)); }
  .menu-top { padding-bottom: 8px; }
  .menu-grid { padding-top: 10px; gap: 16px; grid-template-columns: minmax(0,1.2fr) minmax(290px, 360px); align-items: start; }
  .game-title { font-size: clamp(58px, 11vh, 96px); }
  .title-rule { margin: 10px 0 10px; }
  .menu-blurb { display: none; }
  .menu-kicker { margin-bottom: 8px; }
  .menu-actions { grid-template-columns: 1fr 1fr; }
  .menu-actions .btn-primary { grid-column: 1 / -1; min-height: 46px; font-size: 17px; }
  .menu-actions .btn { min-height: 38px; font-size: 12px; }
  .menu-actions .btn:last-child { grid-column: auto; }
  .menu-foot { display: none; }
  .dossier { max-height: calc(100dvh - 80px); }
  .hud-left { top: calc(64px + var(--safe-t)); }
  .radar-wrap { width: 82px; }
}
@media (orientation: portrait) and (max-width: 620px) {
  .menu { overflow-y: auto; }
  .game-title { font-size: clamp(52px, 17vw, 84px); }
  .menu-grid { padding-bottom: 20px; }
  .hud-top { grid-template-columns: auto 1fr auto; }
  .hud-left { max-width: 190px; }
}
@media (pointer: coarse) {
  .menu-foot { display: none; }
  .pause-controls { display: none; }
}

@media (max-width: 380px) {
  .stick { width: 104px; height: 104px; left: calc(10px + var(--safe-l)); bottom: calc(16px + var(--safe-b)); }
  .stick-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .tbtn-fire { width: 70px; height: 70px; right: calc(10px + var(--safe-r)); bottom: calc(16px + var(--safe-b)); font-size: 11px; }
  .tbtn-aim { width: 46px; height: 46px; right: calc(12px + var(--safe-r)); bottom: calc(94px + var(--safe-b)); }
  .tbtn-reload { width: 40px; height: 40px; right: calc(88px + var(--safe-r)); bottom: calc(18px + var(--safe-b)); }
  .tbtn-jump { width: 40px; height: 40px; right: calc(88px + var(--safe-r)); bottom: calc(64px + var(--safe-b)); }
  .tbtn-crouch { width: 38px; height: 38px; right: calc(88px + var(--safe-r)); bottom: calc(110px + var(--safe-b)); }
  .tbtn-swap { width: 38px; height: 38px; right: calc(134px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); }
  .tbtn-nade { width: 38px; height: 38px; right: calc(136px + var(--safe-r)); bottom: calc(54px + var(--safe-b)); }
  .tbtn-use { width: 42px; height: 42px; right: calc(134px + var(--safe-r)); bottom: calc(100px + var(--safe-b)); }
  body.touch .mobile-weapon { top: calc(112px + var(--safe-t)); right: calc(10px + var(--safe-r)); }
  body.touch .mobile-weapon b { font-size: 22px; }
  body.touch .vitals { top: calc(176px + var(--safe-t)); width: 132px; padding: 6px 7px; }
  .objective-card { max-width: 190px; }
}
@media (max-height: 360px) {
  .radar-wrap { width: 70px; }
  .hud-clock span#missionClock { font-size: 9px; }
  body.touch .mobile-weapon { top: calc(96px + var(--safe-t)); right: calc(10px + var(--safe-r)); }
  body.touch .mobile-weapon b { font-size: 21px; }
  .tbtn-fire { width: 66px; height: 66px; right: calc(10px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .tbtn-aim { width: 44px; height: 44px; right: calc(12px + var(--safe-r)); bottom: calc(84px + var(--safe-b)); }
  .tbtn-reload { width: 38px; height: 38px; right: calc(84px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); }
  .tbtn-jump { width: 38px; height: 38px; right: calc(84px + var(--safe-r)); bottom: calc(56px + var(--safe-b)); }
  .tbtn-crouch { width: 36px; height: 36px; right: calc(84px + var(--safe-r)); bottom: calc(100px + var(--safe-b)); }
  .tbtn-swap { width: 36px; height: 36px; right: calc(126px + var(--safe-r)); bottom: calc(8px + var(--safe-b)); }
  .tbtn-nade { width: 36px; height: 36px; right: calc(128px + var(--safe-r)); bottom: calc(48px + var(--safe-b)); }
  .tbtn-use { width: 38px; height: 38px; right: calc(126px + var(--safe-r)); bottom: calc(88px + var(--safe-b)); }
  .stick { width: 96px; height: 96px; left: calc(8px + var(--safe-l)); bottom: calc(12px + var(--safe-b)); }
  .stick-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  body.touch .vitals { top: calc(150px + var(--safe-t)); width: 120px; }
  .hud-left { top: calc(62px + var(--safe-t)); }
  .objective-card { padding: 6px 8px; }
  .obj-main { font-size: 16px; }
  .obj-sub { display: none; }
  .hud-bottom { bottom: calc(6px + var(--safe-b)); }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .blink-dot, .pulse-dot, .loading-emblem { animation: none; }
}
