:root {
  color-scheme: dark;
  --bg-1: #09111f;
  --bg-2: #101b32;
  --ice: #d7f3ff;
  --line: #77d8ff;
  --accent: #ff5c8a;
  --accent-2: #7bffb3;
  --text: #eff8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #18335c, var(--bg-1) 45%, #040813 100%);
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.brand {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scoreboard {
  display: flex;
  gap: 12px;
}

.score {
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.score span:last-child {
  font-size: 1.8rem;
  font-weight: 800;
}

.reset-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8b57);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.table-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #bfefff;
  touch-action: none;
}

.help {
  text-align: center;
  opacity: 0.85;
  margin-top: 12px;
}
