/* ============================================================
   Magpie 2000 – Minimal full-screen canvas styles
   ============================================================ */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a2e;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#canvas-container canvas {
  display: block;
}

/* ── Title overlay ──────────────────────────────────────────── */
#title-overlay {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
  color: #e8e0d4;
}

#title-overlay h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#title-overlay p {
  font-size: 0.8rem;
  opacity: 0.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Score overlay ─────────────────────────────────────────── */
#score-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  text-align: center;
}

#score {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2ce5a7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.05em;
}

#score-popup {
  font-size: 1.6rem;
  font-weight: 900;
  color: #39ff14;
  text-shadow: 0 0 12px rgba(57,255,20,0.8), 0 2px 6px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(0);
  transition: none;
}

#score-popup.show {
  animation: scorePopIn 1.5s ease-out forwards;
}

@keyframes scorePopIn {
  0%   { opacity: 1; transform: translateY(0) scale(1.3); }
  30%  { opacity: 1; transform: translateY(-10px) scale(1.0); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.8); }
}

/* ── dat.GUI overrides for dark theme ───────────────────────── */
.dg.ac {
  z-index: 20 !important;
}
