:root {
  --bg: #07080b;
  --ink: #e8ecf3;
  --muted: #8a93a6;
  --accent: #ffcd3c;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, #14161c 0%, #07080b 70%);
}

#game {
  display: block;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 90px rgba(0, 0, 0, .8);
  cursor: crosshair;
  touch-action: none;
}

/* Стартовий екран і пауза */
#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background: rgba(6, 7, 10, .82);
  backdrop-filter: blur(3px);
  cursor: pointer;
  user-select: none;
}

#overlay[hidden] { display: none; }

#overlay h1 {
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .95;
  background: linear-gradient(180deg, #fff 20%, #b48a52 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#overlay p {
  color: var(--ink);
  font-size: 17px;
}

#overlay span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
}

/* Повідомлення для сенсорних пристроїв */
#touch-note {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  background: var(--bg);
  z-index: 10;
}

#touch-note strong {
  font-size: 20px;
  color: var(--accent);
}

#touch-note span {
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
}

@media (pointer: coarse) and (max-width: 900px) {
  #touch-note { display: flex; }
}
