:root {
  --bg: #0b0a10; --panel: #15131d; --panel2: #1d1a28; --line: #332d45; --text: #d9d3c4; --muted: #8a8398;
  --gold: #e8c060; --hp: #c0302f; --mp: #3a62c8; --xp: #8a4fc8; --good: #5fd36a; --bad: #ff5f5f; --cyan: #5fe0f0;
  --font: "Lucida Console", "Courier New", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); }
body { background-image: radial-gradient(circle at 50% 0, #1d1530 0, transparent 60%); }
canvas, img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.hidden { display: none !important; }
.screen { min-height: 100vh; }
.panel { background: var(--panel); border: 2px solid var(--line); box-shadow: inset 0 0 0 1px #000, 0 4px 0 #000; padding: 10px; }
h1, h2, h3 { margin: 6px 0; letter-spacing: 1px; }
h2 { font-size: 15px; color: var(--gold); border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
h3 { font-size: 13px; color: var(--cyan); }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input { background: #0d0c13; color: var(--text); border: 2px solid var(--line); padding: 7px 9px; font: inherit; width: 100%; margin: 4px 0; }
input:focus { outline: none; border-color: var(--gold); }
.btn { background: linear-gradient(#2c2740, #1c1929); color: var(--text); border: 2px solid #4a4160; padding: 6px 11px; font: inherit;
  cursor: pointer; box-shadow: 0 2px 0 #000; position: relative; overflow: hidden; }
.btn:hover { border-color: var(--gold); color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.primary { border-color: #8a6a2a; background: linear-gradient(#5a4520, #3a2c14); color: #ffe7a8; }
.btn.danger { border-color: #8a2a2a; background: linear-gradient(#5a2020, #3a1414); }
.btn.small { padding: 3px 7px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn .cd { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--cyan); }
.btn .cdtxt { color: var(--cyan); font-size: 11px; margin-left: 4px; }
