:root {
  --bg: #1d1520;
  --bg-2: #2a1f2e;
  --panel: #33263a;
  --line: #5a4660;
  --text: #ece4ef;
  --muted: #b3a5b8;
  --accent: #f0b429;
  --accent-ink: #2a1a00;
  --stone: #4a4650;
  --stone-dark: #3a363f;
  --wall: #5d86a8;
  --wall-edge: #3d607f;
  --focus: #7cc4ff;
  --radius: 8px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.btn {
  font: inherit;
  padding: .55em 1.1em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn:hover { filter: brightness(1.1); }

select {
  font: inherit;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .35em .5em;
}

.check { display: inline-flex; align-items: center; gap: .45em; cursor: pointer; }
.check input { width: 1.1em; height: 1.1em; accent-color: var(--accent); }

.error { background: #5a1f27; border: 1px solid #b8323a; padding: .6em .9em; border-radius: var(--radius); }

.btn.small { padding: .3em .7em; font-size: .85rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }

.btn.danger { border-color: #b8323a; color: #ff9ca1; }
.btn.danger:hover { background: #4a1a20; }
