:root {
  --bg: #0f1020;
  --field: #16182e;
  --accent: #7c5cff;
  --line: rgba(255, 255, 255, 0.15);
  --text: #f4f4fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% -10%, #1d1f3c, var(--bg));
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.scoreboard {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
}

.score-sep {
  opacity: 0.4;
}

#score-left {
  color: var(--accent);
}
#score-right {
  color: #ff6b9d;
}

.canvas-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

canvas {
  display: block;
  background: var(--field);
  max-width: 90vw;
  height: auto;
  cursor: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  background: rgba(15, 16, 32, 0.82);
  backdrop-filter: blur(2px);
  transition: opacity 0.2s;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.hint {
  margin: 0;
  font-size: 13px;
  opacity: 0.6;
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
}
