/* =========================================================
   Fly Hunt — Eye Tracking Game
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0f06;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#game-canvas {
  display: block;
  position: fixed;
  inset: 0;
  cursor: none;
}

#webcam {
  position: fixed;
  bottom: 12px;
  left: 12px;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  opacity: 0.28;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── HUD overlay ─────────────────────────────────────────── */

#game-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}

#status {
  position: fixed;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

#status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C4A45A;
  flex-shrink: 0;
}

.sd-tracking { background: #7ABFA0; box-shadow: 0 0 6px #7ABFA0; }
.sd-scanning { background: #C4A45A; }
.sd-fallback { background: #C47A65; }
.sd-init     { background: #4A7FA5; }

/* ── Nav ─────────────────────────────────────────────────── */

#game-nav {
  position: fixed;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 14px;
  z-index: 10;
}

.nav-link {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: rgba(255,255,255,0.7);
}

/* ── Loading screen ──────────────────────────────────────── */

#loading-screen {
  position: fixed;
  inset: 0;
  background: #1a0f06;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
  transition: opacity 0.6s;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-title {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
}

.loading-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
