@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; font-family: 'Rajdhani', sans-serif; }
canvas#scene { position: fixed; inset: 0; display: block; }

.hidden { display: none !important; }

#boot {
  position: fixed; inset: 0; background: #000; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
#boot-text {
  color: #7a1f1f; font-family: 'Orbitron', sans-serif; font-size: 14px;
  letter-spacing: 6px; opacity: 0.7;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.85; } }

#cinematic {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: transparent;
}
#cine-line1, #cine-line2, #cine-line3 {
  font-family: 'Orbitron', sans-serif; letter-spacing: 4px; opacity: 0;
  color: #e8c9a0; text-shadow: 0 0 20px rgba(255,110,40,0.5);
}
#cine-line1 { font-size: clamp(24px, 4vw, 46px); font-weight: 900; color: #ffb37a; }
#cine-line2 { font-size: 14px; color: #c94b30; letter-spacing: 8px; }
#cine-line3 { font-size: 12px; color: #7a1f1f; letter-spacing: 6px; }

#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; color: #d9b98a; }
#hud-corner-tl { position: absolute; top: 22px; left: 26px; font-family: 'Orbitron', sans-serif; }
#clock { font-size: 22px; letter-spacing: 2px; color: #ffb37a; text-shadow: 0 0 12px rgba(255,110,40,.5); }
#weather-label { font-size: 11px; letter-spacing: 4px; color: #8a6a4a; margin-top: 4px; }
#hud-corner-tr { position: absolute; top: 22px; right: 26px; text-align: right; }
#event-banner {
  font-family: 'Orbitron', sans-serif; font-size: 13px; letter-spacing: 3px;
  color: #ff4d4d; text-shadow: 0 0 16px rgba(255,40,40,.7); animation: flicker 1.6s infinite;
}
@keyframes flicker { 0%,100%{opacity:1;} 45%{opacity:.4;} 55%{opacity:1;} }

#prompt {
  position: absolute; top: 58%; left: 50%; transform: translate(-50%, 0);
  font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 3px;
  color: #ffd9a8; background: rgba(20,8,4,0.55); padding: 6px 14px; border: 1px solid rgba(255,150,60,.4);
}
#discovery {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%);
  text-align: center; font-family: 'Orbitron', sans-serif;
}
#discovery-title { font-size: 11px; letter-spacing: 4px; color: #7a1f1f; }
#discovery-species { font-size: 20px; letter-spacing: 3px; color: #ffb37a; margin-top: 4px; text-shadow: 0 0 14px rgba(255,120,40,.6); }

#sense-indicator {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, 0);
  font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 3px;
  color: #b98a6a; opacity: 0.75;
}
#sense-arrow { display: inline-block; transition: transform 0.15s linear; }

#crosshair {
  position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px;
  border-radius: 50%; background: rgba(255,180,120,0.5);
}
#hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 2px; color: rgba(217,185,138,0.45);
}
#photo-hud {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 25;
  font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 3px; color: #ffb37a;
}
#debug {
  position: fixed; top: 22px; right: 26px; z-index: 30; font-family: monospace; font-size: 11px;
  color: #7fffb0; background: rgba(0,0,0,0.5); padding: 8px 10px; line-height: 1.5; white-space: pre;
}

/* Touch controls — shown only on touch-capable viewports (main.js feature-detects). */
#touch-ui { position: fixed; inset: 0; z-index: 40; }
#touch-look {
  position: absolute; inset: 0; right: 0; left: 40%; top: 0; bottom: 0;
  pointer-events: auto; touch-action: none;
}
#touch-joystick {
  position: absolute; left: 26px; bottom: 26px; width: 96px; height: 96px;
  border-radius: 50%; background: rgba(20,8,4,0.45); border: 1px solid rgba(255,150,60,.35);
  pointer-events: auto; touch-action: none;
}
#touch-joystick-nub {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px;
  border-radius: 50%; background: rgba(255,150,60,.4); border: 1px solid rgba(255,180,120,.6);
  transition: transform 0.05s linear;
}
#touch-discover {
  position: absolute; right: 26px; bottom: 26px; width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(20,8,4,0.55); border: 1px solid rgba(255,150,60,.4);
  font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: 2px; color: #ffd9a8;
  pointer-events: auto; touch-action: none;
}
