* {
  box-sizing: border-box;
  user-select: none;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

#game-container {
  position: relative;
  width: 100vw;
  flex: 1;
  overflow: hidden;
  cursor: crosshair;
}

#game-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  font-weight: bold;
  pointer-events: none;
  z-index: 15;
  display: none;
}

/* Enemy Tracker HUD */
#enemy-indicator {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff3333;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
  pointer-events: none;
  z-index: 15;
  display: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border: 1px solid #ff3333;
  border-radius: 4px;
}

#eyelids {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 10;
  transition: opacity 1.5s ease-in-out;
  pointer-events: auto;
  cursor: pointer;
}

#prompt-text {
  position: absolute;
  bottom: 20%;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  color: #aaa;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
  z-index: 11;
  transition: opacity 0.5s;
}

#dialogue-box {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #444;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 80%;
  text-align: center;
  display: none;
  z-index: 20;
}

#dialogue-text {
  font-size: 1.4rem;
  color: #ffeb3b;
  margin-bottom: 15px;
}

.btn {
  background: #222;
  color: #fff;
  border: 1px solid #666;
  padding: 8px 16px;
  font-family: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.btn:hover {
  background: #444;
}

#explosion-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  transition: opacity 0.1s ease-in, opacity 1s ease-out;
}

#ending-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 2s ease-in;
  z-index: 30;
  pointer-events: auto;
}

.credits-title {
  font-size: 3rem;
  letter-spacing: 6px;
  color: #ff4444;
  margin-bottom: 20px;
}

.credits-sub {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
}

.noxis-link-btn {
  background: #ff4444;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.2s;
}

.noxis-link-btn:hover {
  background: #cc0000;
}