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

body {
  background: #000;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

#webcam {
  display: none;
}

#canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* ── Loading overlay ─────────────────────────────────────────────────────── */
#status {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #000;
  color: #0ff;
  font-size: 16px;
  letter-spacing: 0.08em;
  z-index: 10;
  transition: opacity 0.5s;
}

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

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #0ff3;
  border-top-color: #0ff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hint text ───────────────────────────────────────────────────────────── */
#hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  letter-spacing: 0.1em;
  pointer-events: none;
  transition: opacity 1.5s;
}

#hint.hidden { opacity: 0; }
