:root {
  --bg-color: #f5f5ed;
  --primary-color: #2b2b2b;
  --secondary-color: #a1b9ed;
}

body, html {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background-color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  color: var(--bg-color);
}

#game-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

#ui-layer {
  position: absolute;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}

.hidden { display: none !important; }

#crosshair {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  background: var(--bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#interact-ui {
  position: absolute;
  bottom: 25%; left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

.btn {
  background: var(--bg-color);
  color: var(--primary-color);
  border: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--secondary-color); }
.btn:active { background: var(--primary-color); color: var(--bg-color); }

.joystick-base {
  position: absolute;
  bottom: 2rem;
  width: 120px; height: 120px;
  border: 4px solid var(--bg-color);
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
}

#joystick-move { left: 2rem; }
#joystick-look { right: 2rem; }

.joystick-stick {
  position: absolute;
  top: 50%; left: 50%;
  width: 50px; height: 50px;
  margin-top: -25px; margin-left: -25px;
  border-radius: 50%;
  background: var(--bg-color);
  pointer-events: none; 
}

#message-ui {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: auto;
}

.message-text {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  animation: flicker 0.5s infinite;
}
