:root {
  --bg: #000;
  --fg: #e6f0ff;
  --accent: #39d0ff;
  --panel: rgba(255,255,255,0.04);
}
html,body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#03030b 0%, #080814 100%);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wrapper {
  width: min(960px, 96vw);
  text-align: center;
}
h1 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--fg);
}
p.instructions {
  margin: 6px 0 12px;
  color: #bfc7d1;
  font-size: 13px;
}
.stage {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  align-items: start;
}
@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; }
}
.panel {
  background: var(--panel);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  border-radius: 6px;
  cursor: none;
}
.controls {
  color: #cfe9ff;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
label { font-size: 13px; color: #a9bfd6; display:block; margin-bottom:6px;}
input[type="range"] { width: 100%; }
.row { display:flex; gap:8px; align-items:center; }
button {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.small { font-size: 12px; padding:6px 8px; }
.scoreboard {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
}
.score {
  font-weight:700;
  font-size:28px;
  color: var(--fg);
}
.muted { color: #8fa9d3; font-size:12px; }
.hint { color:#9fb4ff; font-size:13px; margin-top:8px; }
