/* Yautja Diegetic Sci-Fi Jungle Styling */
:root {
  --yautja-green: #8dffbb;
  --yautja-bronze: #8c6a3f;
  --yautja-red: #ff3e3e;
  --yautja-gold: #ffdf91;
  --canopy-fog: #2a3a2e;
}

body {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Glass & HUD Panels */
.hud-panel {
  background: rgba(12, 23, 16, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(66, 117, 85, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hud-btn:active {
  transform: scale(0.96);
}

/* Alert Pips */
.alert-pip {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #254230;
  border: 1px solid #3c6e4e;
  transition: all 0.2s ease;
}

.alert-pip.active {
  background: #8dffbb;
  box-shadow: 0 0 8px #8dffbb;
}

.alert-pip.warning {
  background: #ffaa33;
  box-shadow: 0 0 8px #ffaa33;
}

.alert-pip.danger {
  background: #ff3333;
  box-shadow: 0 0 10px #ff3333;
}

/* Tri-Laser Reticle */
.tri-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 6px #ff2a2a, 0 0 12px #ff0000;
  transition: transform 0.15s ease-out;
}

.tri-dot.top {
  top: -6px;
  left: 4px;
}

.tri-dot.left {
  bottom: -6px;
  left: -4px;
}

.tri-dot.right {
  bottom: -6px;
  right: -4px;
}

/* Weapon Slots */
.weapon-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(18, 33, 23, 0.7);
  border: 1px solid rgba(53, 94, 68, 0.5);
  color: #a4cca8;
  font-family: 'Orbitron', monospace;
  transition: all 0.15s ease;
}

.weapon-slot:hover {
  background: rgba(30, 54, 38, 0.85);
  border-color: #559c6e;
}

.weapon-slot.active {
  background: rgba(28, 68, 41, 0.95);
  border: 1.5px solid #8dffbb;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(141, 255, 187, 0.35);
  transform: translateY(-2px);
}

.slot-num {
  font-size: 9px;
  opacity: 0.6;
}

.slot-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slot-ammo {
  font-size: 9px;
  color: #ffcf7a;
}

/* Navigation Tabs */
.menu-tab {
  padding: 8px 16px;
  color: #8daea0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.menu-tab:hover {
  color: #ffffff;
}

.menu-tab.active {
  color: #8dffbb;
  border-bottom-color: #8dffbb;
}

/* Mode Cards */
.mode-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.mode-card.active-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(32, 94, 53, 0.4);
}

/* Vision Overlays */
#thermal-overlay {
  background: radial-gradient(circle at center, rgba(255, 80, 0, 0.08) 0%, rgba(20, 10, 60, 0.5) 100%);
  mix-blend-mode: color;
}

.thermal-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 140, 40, 0.03),
    rgba(255, 140, 40, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
}

.thermal-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 50, 0.85);
}

.thermal-hud-grid {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 160, 50, 0.15);
  pointer-events: none;
}

#alien-overlay {
  background: radial-gradient(circle at center, rgba(160, 50, 255, 0.1) 0%, rgba(30, 0, 40, 0.6) 100%);
  mix-blend-mode: hard-light;
}

.alien-matrix {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 0, 128, 0.04),
    rgba(255, 0, 128, 0.04) 4px,
    transparent 5px,
    transparent 12px
  );
}

.alien-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 130px rgba(50, 0, 80, 0.9);
}

/* Hunter selection cards */
.hunter-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(18, 32, 23, 0.85);
  border: 1px solid rgba(60, 105, 76, 0.55);
  color: #cfe7d6;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hunter-card:hover {
  transform: translateY(-2px);
  border-color: #62b57f;
}

.hunter-card:active {
  transform: translateY(0) scale(0.99);
}

.hunter-card.active {
  border-color: var(--yautja-green);
  background: linear-gradient(180deg, rgba(32, 62, 44, 0.95), rgba(15, 29, 20, 0.95));
  box-shadow: 0 0 0 1px rgba(141, 255, 187, 0.22), 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Trophy Plinth */
.trophy-plinth {
  background: rgba(18, 29, 21, 0.9);
  border: 1px solid rgba(66, 107, 79, 0.6);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.trophy-plinth:hover {
  transform: translateY(-2px);
  border-color: #ffdf91;
}

/* Cinematic lens over the 3D viewport (kept under the HUD) */
#atmosphere-overlay {
  background: radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0) 38%, rgba(3, 9, 6, 0.58) 100%);
}

#atmosphere-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(180, 255, 210, 0.022) 0 1px, transparent 1px 3px);
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .tri-dot,
  .weapon-slot,
  .hunter-card,
  .mode-card {
    transition: none !important;
  }
}