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

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100vh;
  background: #1e1e1e;
  color: #ccc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  user-select: none;
}

#hud {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#game-title {
  font-size: 13px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.3px;
}

#score {
  font-size: 12px;
  font-weight: 600;
  color: #888;
}

#board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cell {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #3a3a3a;
}

.cell.active {
  background:
    radial-gradient(circle, #4caf50 0 62%, transparent 63%),
    conic-gradient(#8fe39a calc(var(--progress, 1) * 360deg), #2a2a2a 0deg);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  font-size: 13px;
}

.overlay[hidden] {
  display: none;
}

.overlay .hint {
  color: #888;
  margin-top: 8px;
}
