:root {
  --bg: #0d0d10; --panel: #16161b; --panel2: #1d1d24; --line: #2a2a33; --text: #e9e7e2; --dim: #9b98a3;
  --accent: #ff7a1a; --accent2: #ffb36b; --good: #5fd38d; --bad: #ff5c6c; --spirit: #b79cff; --npc: #ffcf5c; --rules: #7f8a99;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 15px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #140a02; font-weight: 650; }
input, select, textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
h1 { font: 800 26px/1.15 system-ui, sans-serif; margin: 0 0 6px; }
h1 span { color: var(--accent); }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 22px 0 9px; }
.muted { color: var(--dim); font-size: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 8px; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(640px, 100%); }
