@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;600&family=Space+Mono:wght@400;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #000; overflow: hidden; font-family: 'Outfit', sans-serif; color: #fff; }
canvas { display: block; }

.title {
  position: fixed; top: 28px; left: 32px;
  pointer-events: none; z-index: 20;
}
.title h1 {
  font-weight: 200; font-size: 24px;
  letter-spacing: 6px; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.title p {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2); margin-top: 4px;
}

.controls {
  position: fixed; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px; z-index: 20;
}
.control-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(4,6,15,0.7);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.5);
  font-family: 'Space Mono', monospace; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.control-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  background: rgba(4,6,15,0.95);
}
.control-btn.active {
  border-color: rgba(253,184,19,0.4);
  color: rgba(253,184,19,0.9);
}

.planet-nav {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 20;
  background: rgba(4,6,15,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 10px 16px;
}
.nav-btn {
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease; white-space: nowrap;
}
.nav-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
}
.nav-btn.active {
  border-color: rgba(253,184,19,0.3);
  color: rgba(253,184,19,0.85);
  background: rgba(253,184,19,0.06);
}

.info-panel {
  position: fixed; top: 50%; right: 28px;
  transform: translateY(-50%);
  background: rgba(4,6,15,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; min-width: 200px;
  z-index: 20; opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.info-panel.visible { opacity: 1; pointer-events: auto; }
.info-planet-name {
  font-size: 22px; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 16px;
}
.info-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.info-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.info-value {
  font-family: 'Space Mono', monospace;
  font-size: 13px; color: rgba(255,255,255,0.85);
}

.tracking-badge {
  position: fixed; top: 80px; left: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 20; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
  display: flex; align-items: center; gap: 8px;
}
.tracking-badge.visible { opacity: 1; }
.tracking-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(253,184,19,0.8);
  animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:0.5; transform:scale(1); }
  50% { opacity:1; transform:scale(1.3); }
}
.tracking-text { color: rgba(253,184,19,0.6); }

.destroyed-msg {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Mono', monospace;
  font-size: 28px; letter-spacing: 10px; text-transform: uppercase;
  color: rgba(255, 90, 30, 0.95);
  text-shadow: 0 0 30px rgba(255, 60, 0, 0.8), 0 0 60px rgba(255, 100, 0, 0.4);
  z-index: 30; pointer-events: none;
  opacity: 0; transition: opacity 0.25s ease;
}
.destroyed-msg.visible { opacity: 1; }

.ship-hud {
  position: fixed; bottom: 88px; left: 50%;
  transform: translateX(-50%);
  text-align: center; z-index: 20; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
}
.ship-hud.visible { opacity: 1; }
.ship-hud-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(100,180,255,0.9); margin-bottom: 4px;
}
.ship-hud-speed {
  font-family: 'Space Mono', monospace;
  font-size: 18px; letter-spacing: 2px;
  color: rgba(120,200,255,0.8); margin-bottom: 6px;
}
.ship-hud-hints {
  font-family: 'Space Mono', monospace;
  font-size: 8px; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.2); text-transform: uppercase;
}
