:root {
  --accent: #3e64ff;
  --accent-dark: #2f4fd6;
  --emerald: #10b981;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --bg: #070a12;
  --glass: rgba(11, 16, 28, 0.86);
  --border: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#lab-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: grab;
}

body.pointer-locked #lab-canvas {
  cursor: none;
}

.hidden {
  display: none !important;
}

/* =========================================================================
   TOP HUD BAR
   ========================================================================= */
.hud-topbar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 20;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.hud-pill {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hud-btn {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-btn:hover {
  background: rgba(62, 100, 255, 0.25);
  border-color: var(--accent);
}

.hud-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.hud-btn.primary:hover {
  background: var(--accent-dark);
}

.hud-btn.emerald {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #03221a;
}

.hud-btn.emerald:hover {
  background: #34d399;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.dot-live.offline {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

/* =========================================================================
   CENTER CROSSHAIR & TARGET PROMPT
   ========================================================================= */
#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
}

#crosshair::before,
#crosshair::after {
  content: '';
  position: absolute;
  background: rgba(248, 250, 252, 0.72);
  transition: all 0.15s ease;
}

#crosshair::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

#crosshair::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

#crosshair.active::before,
#crosshair.active::after {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

#target-pill {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.65);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--text);
  z-index: 20;
  pointer-events: none;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pill-key {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--emerald);
  color: #03221a;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
}

/* =========================================================================
   FPS SHOOTER HUD — BOTTOM-RIGHT AMMO / GEAR COUNTER + BOTTOM HOTBAR
   ========================================================================= */
.fps-ammo-hud {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 300px;
  background: linear-gradient(135deg, rgba(11, 17, 30, 0.9), rgba(15, 23, 42, 0.78));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-right: 4px solid var(--emerald);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  padding: 12px 16px;
  z-index: 20;
  pointer-events: auto;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.ammo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ammo-slot-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.ammo-chip-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.ammo-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ammo-count-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ammo-big {
  font-family: var(--mono);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.ammo-reserve {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.ammo-pips {
  display: flex;
  gap: 3px;
  align-items: center;
  margin: 7px 0;
}

.ammo-pip {
  height: 6px;
  flex: 1;
  max-width: 14px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.2);
}

.ammo-pip.filled {
  background: var(--emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.ammo-pip.low {
  background: var(--amber);
}

.ammo-name {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5f9;
}

.ammo-sub {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.ammo-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.ammo-actions button {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
}

.ammo-actions button:hover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.16);
}

/* Bottom-Center Weapon/Gear Loadout Hotbar */
.fps-hotbar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
  pointer-events: auto;
}

.hotbar-slot {
  min-width: 84px;
  background: rgba(11, 17, 30, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-bottom: 3px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.hotbar-slot:hover,
.hotbar-slot.active {
  border-color: rgba(16, 185, 129, 0.65);
  border-bottom-color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
  color: #ffffff;
  transform: translateY(-2px);
}

.hotbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.hotbar-slot.active .hotbar-top {
  color: var(--emerald);
}

.hotbar-label {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
}

/* Bottom-left Mini Controls Hint */
.controls-hint {
  position: fixed;
  bottom: 18px;
  left: 16px;
  background: rgba(11, 17, 30, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  z-index: 15;
  pointer-events: none;
  line-height: 1.55;
}

.controls-hint kbd {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
}

/* =========================================================================
   RIGHT-SIDE HELD INSPECTOR CARD (NON-BLOCKING)
   ========================================================================= */
#inspector-card {
  position: fixed;
  top: 68px;
  right: 16px;
  width: 310px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  z-index: 22;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.insp-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--emerald);
  background: rgba(16, 185, 129, 0.14);
  margin-bottom: 6px;
}

#insp-name {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.insp-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 8px;
}

#insp-img-wrap {
  margin: 6px 0 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

#insp-img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  display: block;
}

.insp-field {
  margin-bottom: 8px;
}

.insp-label {
  font-size: 0.66rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.insp-val {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #e2e8f0;
}

/* =========================================================================
   FULL FPS TACTICAL ARMORY OVERLAY (TAB / I)
   Inspired by Hardware_Lab_Inventory_audited_0_wjhv.html
   ========================================================================= */
#armory-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background:
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    rgba(7, 10, 18, 0.90);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px, 100% 100%;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
}

.armory-shell {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.armory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.armory-title-block h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.armory-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.armory-subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.armory-telemetry {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.telemetry-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 6px 14px;
}

.t-stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--muted);
}

.t-stat-val {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #34d399;
}

.t-stat-val.cyan { color: #22d3ee; }
.t-stat-val.purple { color: #c084fc; }

.armory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.armory-search {
  flex: 1;
  min-width: 240px;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 9px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
}

.armory-search:focus {
  outline: none;
  border-color: var(--emerald);
}

.seg-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
}

.seg-btn.active {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cat-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
}

.cat-pill.active {
  background: var(--emerald);
  color: #03221a;
  border-color: #34d399;
}

.cat-pill-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.28);
}

.armory-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.armory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 14px;
}

.armory-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.armory-card:hover {
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  height: 142px;
  background: #070d18;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcb-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.chip-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.ammo-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(7, 10, 18, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.card-cat {
  font-size: 0.68rem;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.card-specs {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.card-notes {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  padding: 5px 8px;
}

.card-footer {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 2px 4px;
}

.stepper button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.stepper button:hover {
  background: var(--emerald);
  color: #03221a;
}

.stepper span {
  min-width: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.mini-btn:hover {
  border-color: var(--emerald);
}

.mini-btn.primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #03221a;
}

.mini-btn.danger:hover {
  border-color: var(--rose);
  color: #fda4af;
}

/* BOM Table View */
.bom-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.bom-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.8);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.bom-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: middle;
}

.bom-table tr:hover td {
  background: rgba(30, 41, 59, 0.45);
}

/* =========================================================================
   MODALS & WELCOME OVERLAY
   ========================================================================= */
#welcome-overlay,
#add-part-modal,
#org-guide-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 45;
}

.org-modal-card {
  width: 780px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.org-zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.org-zone-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 3px solid var(--emerald);
  border-radius: 12px;
  padding: 12px 14px;
}

.org-zone-box h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #34d399;
}

.org-zone-box ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.welcome-card,
.modal-card {
  width: 530px;
  max-width: 100%;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.welcome-eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 6px;
}

.welcome-card h1,
.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
}

.welcome-card p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.welcome-keybox {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-grid label {
  display: block;
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  background: #070d18;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.83rem;
}

/* Toast */
#toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.94);
  color: #03221a;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .fps-hotbar { display: none; }
  .controls-hint { display: none; }
  .fps-ammo-hud { width: 250px; }
}
