:root {
  --bg: #071226;
  --panel: #0f1724;
  --accent: #7dd3fc;
  --muted: #94a3b8;
}
body {
  margin: 0;
  background: var(--bg);
  color: #e6eef8;
  font-family: Inter, system-ui, Arial;
}
#root {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
  height: 100vh;
}
.topbar {
  grid-column: 1/3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.move-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.move-buttons > div {
  display: flex;
  gap: 6px;
}
.radius-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.status {
  display: flex;
  gap: 12px;
  align-items: center;
}
.canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #021226, #052033);
  border-radius: 8px;
  padding: 8px;
}
canvas {
  background: #021226;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  width: 800px;
  height: 800px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings,
.leaderboard {
  background: var(--panel);
  padding: 12px;
  border-radius: 8px;
}
button {
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.16);
  color: var(--accent);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
input[type="range"] {
  width: 140px;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
ol {
  padding-left: 18px;
  margin: 0;
}

/* modal */
.modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.6);
  z-index: 999;
}
.modal.hidden {
  display: none;
}
.modal-panel {
  width: 720px;
  max-width: 92vw;
  background: linear-gradient(180deg, #0b1220, #071223);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.8);
}
.instr-body {
  color: #dfeffb;
  font-size: 14px;
  line-height: 1.5;
}
.instr-body p {
  margin: 8px 0;
}
.instr-settings {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.instr-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.instr-row label {
  width: 180px;
  color: var(--muted);
}
.instr-row select,
.instr-row input {
  flex: 0 0 140px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent);
}
.instr-help {
  font-size: 12px;
  color: #9fb9d0;
  margin-left: 8px;
  flex: 1;
}
.instr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.instr-actions button {
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.12);
  padding: 8px 12px;
  border-radius: 8px;
}
