:root {
  --bg-dark: #0A0805;
  --bg-card: #12100A;
  --bg-card2: #1A1510;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #8B6914;
  --border: #3A2E18;
  --border-gold: #5A4520;
  --text: #D4C4A0;
  --text-dim: #8A7A5A;
  --red: #8B1A1A;
  --red-bright: #C0392B;
  --green-bright: #27AE60;
  --warning: #E67E22;
}

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

html, body {
  height: 100%;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/images/drakkar-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0.55;
  filter: saturate(0.95) brightness(0.85);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,8,5,0.15) 0%, rgba(10,8,5,0.55) 75%, rgba(10,8,5,0.75) 100%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, .cinzel, .title {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}

a { color: var(--gold-light); text-decoration: none; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-dark);
  font-size: 14px;
  margin: 14px 0;
}
.divider::before, .divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

button {
  font-family: 'Cinzel', serif;
  cursor: pointer;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, #1A1510, #0F0C07);
  color: var(--gold);
  padding: 10px 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 3px;
  transition: all 0.2s;
}
button:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(201,168,76,0.3);
  border-color: var(--gold);
  color: var(--gold-light);
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary {
  background: linear-gradient(180deg, var(--gold-dark), #5A4520);
  color: var(--bg-dark);
  border-color: var(--gold);
  font-weight: 700;
}
button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}
button.danger { color: #E8927B; border-color: var(--red); }
button.danger:hover:not(:disabled) { background: var(--red); color: white; box-shadow: 0 0 16px rgba(192,57,43,0.4); }

input, select, textarea {
  font-family: 'Crimson Text', serif;
  background: #0A0805;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }

label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.ok { background: rgba(39,174,96,0.15); color: var(--green-bright); border: 1px solid var(--green-bright); }
.badge.warn { background: rgba(230,126,34,0.15); color: var(--warning); border: 1px solid var(--warning); }
.badge.crit { background: rgba(192,57,43,0.2); color: #E8927B; border: 1px solid var(--red-bright); }
.badge.gold { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--gold-dark); }

.shake { animation: shake 0.4s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-8px); }
  40%,80% { transform: translateX(8px); }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
