:root {
  --bg: #111417;
  --panel: #1b2026;
  --text: #e6e9ee;
  --muted: #8a94a3;
  --accent: #4fa3ff;
  --self: #ffd166;
  --other: #6ee7b7;
  --ghost: #6ee7b766;
  --obstacle: #3a4452;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, sans-serif; background: var(--bg); color: var(--text); }
header { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #2a313a; }
h1 { font-size: 16px; margin: 0; }
h2 { font-size: 14px; margin: 0 0 8px; color: var(--muted); }
main { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; }
.panel { background: var(--panel); border-radius: 8px; padding: 16px; min-width: 300px; }
.hidden { display: none; }
label { display: block; margin: 6px 0; }
input[type="text"], input[type="password"], input:not([type]) { width: 100%; padding: 6px 8px; border-radius: 4px; border: 1px solid #2a313a; background: #0f1215; color: var(--text); }
.row { display: flex; gap: 8px; margin-top: 8px; }
button { padding: 6px 12px; border-radius: 4px; border: 1px solid #2a313a; background: #262d36; color: var(--text); cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #06111f; }
button:disabled { opacity: 0.5; cursor: default; }
.status { font-size: 12px; color: var(--muted); }
.status.ok { color: var(--other); }
.status.error { color: #ff6b6b; }
canvas { display: block; background: #0b0e11; border: 1px solid #2a313a; border-radius: 4px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0; }
.controls label { display: flex; align-items: center; gap: 8px; }
.controls input[type="range"] { flex: 1; }
.stats { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-family: ui-monospace, monospace; font-size: 12px; margin: 8px 0; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; }
#character-list { list-style: none; padding: 0; margin: 0 0 8px; }
#character-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #2a313a; }
