:root {
  --bg: #0f172a; --panel: #0b1220; --ink: #e5e7eb; --muted: #94a3b8;
  --accent: #38bdf8; --good: #22c55e; --bad: #ef4444; --rad: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
}
.wrap { max-width: 820px; margin: 32px auto; padding: 0 16px; }
.bar { display: flex; justify-content: space-between; align-items: center; }
.controls select { margin-left: 6px; }
.board { margin-top: 16px; background: var(--panel); border: 1px solid #1f2937; border-radius: var(--rad); padding: 18px; }
.swatch { width: 100%; height: 140px; border-radius: 12px; border: 1px solid #1f2937; box-shadow: inset 0 0 0 2px rgba(255,255,255,.04); }
#prompt { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.btn { background: var(--accent); border: 0; color: #001018; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.btn.secondary { background: #334155; color: #fff; }
.option { padding: 12px; border-radius: 10px; background: #111827; border: 1px solid #263244; text-align: center; cursor: pointer; }
.option.correct { outline: 3px solid var(--good); }
.option.wrong { outline: 3px solid var(--bad); opacity: .7; }
.hard { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.hard.hide { display: none; }
label input { width: 70px; padding: 6px; border-radius: 8px; border: 1px solid #2a3445; background: #0f172a; color: #fff; }
.foot { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.muted { color: var(--muted); }
