:root {
  --ice: #7cf3ff;
  --gold: #ffd27a;
  --ink: #eaf4ff;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070f;
  color: var(--ink);
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#game {
  position: fixed;
  inset: 0;
  display: block;
  cursor: crosshair;
}

.hidden { display: none !important; }

/* ------------------------------------------------ HUD */
#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  pointer-events: none;
  z-index: 10;
}

.hud-item { display: flex; flex-direction: column; gap: 2px; }
.hud-item:last-child { align-items: flex-end; }

.hud-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: rgba(234, 244, 255, 0.55);
  text-transform: uppercase;
}

.hud-value {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(124, 243, 255, 0.25);
}

.hud-value.pop { animation: pop 0.3s ease; }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--gold); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------ overlays */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: radial-gradient(ellipse at center, rgba(5, 10, 22, 0.30) 0%, rgba(3, 5, 12, 0.86) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.overlay.show { opacity: 1; pointer-events: auto; }

.panel {
  text-align: center;
  padding: 40px 28px;
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(42px, 9vw, 88px);
  letter-spacing: 0.05em;
  line-height: 1;
  color: #f2f7ff;
}

.title em {
  font-style: italic;
  color: var(--ice);
  text-shadow: 0 0 28px rgba(124, 243, 255, 0.55);
}

.tagline {
  margin: 20px auto 0;
  max-width: 460px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(234, 244, 255, 0.82);
}

.btn {
  margin-top: 32px;
  padding: 15px 48px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: #041018;
  background: var(--ice);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(124, 243, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(124, 243, 255, 0.65);
}

.hint {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(234, 244, 255, 0.46);
}

.final {
  margin-top: 28px;
  display: flex;
  gap: 52px;
  justify-content: center;
}

.final > div { display: flex; flex-direction: column; gap: 4px; }
.final .hud-value { font-size: 42px; }

@media (max-width: 600px) {
  #hud { padding: 14px 18px; }
  .final { gap: 28px; }
  .final .hud-value { font-size: 34px; }
}
