@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&display=swap');
:root {
  --bg: #0d0f14; --panel: #161a22; --panel2: #1d222c; --line: #2a303c;
  --text: #ece6da; --muted: #9a958b; --gold: #d9b36a; --blood: #c2362b; --green: #4f9d6b; --red: #c94c3f;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { min-height: 100dvh; }
h1, h2, h3, .cinzel { font-family: Cinzel, serif; letter-spacing: .04em; font-weight: 700; margin: 0; }
.serif { font-family: 'Cormorant Garamond', serif; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.blood { color: var(--blood); }
button { font: inherit; color: inherit; border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
button:active { transform: scale(.98); }
button.primary { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 600; }
button.danger { background: var(--blood); border-color: var(--blood); color: #fff; font-weight: 600; }
button.ghost { background: transparent; }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select { font: inherit; color: var(--text); background: #0f1218; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus { outline: 1px solid var(--gold); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); background: var(--panel2); }
.pill.red { background: #3a1714; border-color: #6a2a23; color: #f1a79c; }
.pill.green { background: #13291c; border-color: #2a5a3c; color: #9ad3ad; }
.pill.gold { background: #2b2412; border-color: #5a4a22; color: var(--gold); }
.pill.blood { background: #3a1110; border-color: var(--blood); color: #ff9a8f; }
.row { display: flex; gap: 10px; align-items: center; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; }
.potbar { height: 8px; background: #0f1218; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.potbar > div { height: 100%; background: linear-gradient(90deg, #b8913f, var(--gold)); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--blood); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; font-weight: 600; box-shadow: 0 8px 30px #0008; }
