/* Raids & Raiders design system — dark fantasy, ember accents, readable at a glance. */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0a12;
  --bg-2: #12101d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #e8e4f0;
  --text-dim: #9b93ad;
  --gold: #f2a13c;
  --ember: #e2543e;
  --arcane: #9b6dff;
  --frost: #5e8bff;
  --life: #57c785;
  --danger: #ff5577;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(155, 109, 255, 0.13), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(226, 84, 62, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: 0.04em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(6px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(120deg, #ffd9a0, var(--gold) 40%, var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

button, .btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.06s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
button:hover, .btn:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(242, 161, 60, 0.25); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

button.primary {
  background: linear-gradient(180deg, #ffb75e, #e2543e);
  border-color: rgba(255, 200, 130, 0.6);
  color: #1c0d06;
  text-shadow: none;
}
button.danger { border-color: rgba(255, 85, 119, 0.5); color: var(--danger); }

input, select {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
input:focus, select:focus { border-color: var(--gold); }

.bar {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  transition: width 0.3s ease;
}
.bar.hp > i { background: linear-gradient(90deg, #7be29b, var(--life)); }
.bar.xp > i { background: linear-gradient(90deg, #c9a7ff, var(--arcane)); }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
}

.rarity-common { color: #b8b8b8; }
.rarity-uncommon { color: #57c785; }
.rarity-rare { color: #5e8bff; }
.rarity-epic { color: #9b6dff; }
.rarity-legendary { color: #f2a13c; text-shadow: 0 0 10px rgba(242, 161, 60, 0.45); }

.muted { color: var(--text-dim); font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease both; }
