@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #0a0a0a;
  overflow: hidden;
  font-family: monospace;
}
#coords {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}
#info {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
  text-align: center;
  min-width: 280px;
}
#info .axis {
  display: inline-block;
  margin: 0 6px;
  font-weight: bold;
}
#info .axis-x {
  color: #ff4444;
}
#info .axis-y {
  color: #44ff44;
}
#info .axis-z {
  color: #4488ff;
}
#controls-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
}
#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  z-index: 20;
  text-align: center;
}
#loading .bar {
  width: 200px;
  height: 4px;
  background: #222;
  border-radius: 2px;
  margin: 12px auto 0;
  overflow: hidden;
}
#loading .bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4488ff, #44ff44);
  border-radius: 2px;
  transition: width 0.3s;
}
#loading .msg {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
canvas {
  display: block;
}
