:root {
  --bg: #05070b;
  --fg: #f4f4f4;
  --accent: #4f8cff;
  --accent-soft: #3a6fcc;
  --danger: #ff4f4f;
  --success: #29c76f;
  --muted: #888;
  --panel: #11151f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #1b2735, #090a0f);
  color: var(--fg);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.game-container {
  margin-top: 30px;
  background: rgba(5, 7, 11, 0.95);
  border-radius: 16px;
  padding: 20px 20px 30px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.title {
  text-align: center;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

.ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.scoreboard {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #222a3a;
}

.scoreboard span {
  color: #cdd4e6;
}

.message {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  color: var(--muted);
}

canvas {
  display: block;
  margin: 0 auto;
  background: #05070b;
  border-radius: 12px;
  border: 2px solid #222a3a;
}

.instructions {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.instructions strong {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 700px) {
  .game-container {
    margin: 10px;
    padding: 15px;
  }

  canvas {
    width: 100%;
    height: auto;
  }

  .scoreboard {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}
html, body {
  touch-action: none;
  overscroll-behavior: none;
  overflow: hidden; /* Prevent Safari from scrolling the page */
}

canvas {
  touch-action: none;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}


