/* ============================================================================
   th1 — Redesign stylesheet
   Loads AFTER bootstrap and the legacy styles.css. Treat this as the source
   of truth for visual design; everything below overrides BS4 + legacy.
   ============================================================================ */

:root {
  --bg-deep:        oklch(0.16 0.018 155);
  --bg-deeper:      oklch(0.11 0.015 155);
  --bg-darkest:     oklch(0.08 0.015 155);
  --bg-panel:       oklch(0.20 0.020 155);
  --bg-panel-2:     oklch(0.24 0.022 150);
  --line:           oklch(0.32 0.020 150 / 0.55);
  --line-strong:    oklch(0.42 0.025 145 / 0.75);
  --ink:            oklch(0.96 0.012 90);
  --ink-soft:       oklch(0.82 0.015 90);
  --ink-mute:       oklch(0.62 0.015 95);
  --gold:           oklch(0.80 0.130 82);
  --gold-deep:      oklch(0.68 0.135 70);
  --emerald:        oklch(0.70 0.130 158);
  --crimson:        oklch(0.62 0.165 28);
}

/* ---------- BASE RESET on top of BS4 ---------- */
* { box-sizing: border-box; }
html, body {
  background: var(--bg-deeper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { margin: 0; padding: 0; min-height: 100vh; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: oklch(0.88 0.13 82); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  letter-spacing: 0.02em;
  color: var(--ink);
}

img { max-width: 100%; height: auto; }
hr { border-color: var(--line); }

/* Lift z so dropdowns/modals layer correctly above our backgrounds. */
.dropdown-menu, .modal { z-index: 1080; }

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: var(--bg-panel); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-panel-2); }

/* ============================================================================
   BACKGROUND TREATMENT
   ============================================================================ */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, oklch(0.30 0.10 80 / 0.18) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 90%, oklch(0.30 0.10 158 / 0.15) 0%, transparent 45%),
    var(--bg-deeper);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.04; mix-blend-mode: overlay;
}

/* ============================================================================
   NAVBAR (top)
   ============================================================================ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, var(--bg-darkest) 0%, oklch(0.08 0.015 155 / 0.92) 100%) !important;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 !important;
  backdrop-filter: blur(14px) saturate(140%);
  transition: padding .25s ease;
}
.navbar.scrolled { padding: 8px 0 !important; }

.navbar .navbar-brand { padding: 0; margin-right: 32px; }
.navbar .navbar-brand img {
  filter: drop-shadow(0 0 14px oklch(0.55 0.13 80 / 0.35));
  width: auto; height: 56px;
  transition: transform .25s;
}
.navbar .navbar-brand:hover img { transform: scale(1.04); }

.navbar-nav .nav-item .nav-link {
  color: var(--ink-soft) !important;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px !important;
  position: relative;
  transition: color .2s;
}
.navbar-nav .nav-item .nav-link:hover { color: var(--gold) !important; }

.navbar-nav .nav-item.dropdown .nav-link.dropdown-toggle::after {
  border: none; vertical-align: middle; margin-left: 4px;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.7;
}

.navbar .dropdown-menu {
  background: oklch(0.10 0.015 155 / 0.98) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  margin-top: 8px !important;
  padding: 6px 0 !important;
  box-shadow: 0 16px 48px oklch(0.05 0.01 155 / 0.55);
  backdrop-filter: blur(14px) saturate(140%);
}
.navbar .dropdown-item {
  color: var(--ink-soft) !important;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px !important;
  background: transparent !important;
  transition: background .12s, color .12s, padding-left .12s;
}
.navbar .dropdown-item:hover {
  color: var(--gold) !important;
  background: oklch(0.18 0.020 150 / 0.55) !important;
  padding-left: 22px !important;
}

/* Mobile burger */
.navbar-toggler {
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  padding: 6px 10px !important;
}
.navbar-toggler:focus { box-shadow: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4a85c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 22px; height: 22px;
}

/* Status pill at right end of navbar */
#navbar-status {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px;
  background: oklch(0.10 0.015 155 / 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#navbar-status .status-cell { display: flex; flex-direction: column; line-height: 1.2; }
#navbar-status .status-label { font-size: 9px; color: var(--ink-mute); letter-spacing: 0.24em; }
#navbar-status .status-value { color: var(--gold) !important; font-weight: 700; font-size: 16px; font-family: 'Cinzel', serif; }
#navbar-status .status-divider { width: 1px; height: 22px; background: var(--line); }
#navbar-status .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.pulse-dot.down { background: var(--crimson); box-shadow: 0 0 8px var(--crimson); }
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================================
   FIXED LEFT ICON-RAIL (sidenav)
   Only shown on >=1400px viewports — below that, Bootstrap's centered
   .container leaves <80px of empty margin on the left, and the rail would
   overlap the page content. Above 1400px there's room for both.
   ============================================================================ */
.side-nav { display: none; }
@media (min-width: 1400px) {
  .side-nav {
    display: flex;
    position: fixed;
    top: 50%; left: 0;
    transform: translateY(-50%);
    z-index: 40;
    flex-direction: column;
    gap: 4px;
    padding: 12px 8px;
    background: linear-gradient(180deg, oklch(0.10 0.015 155 / 0.95), oklch(0.08 0.015 155 / 0.95));
    border: 1px solid var(--line-strong);
    border-left: none;
    border-radius: 0 4px 4px 0;
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 4px 0 24px oklch(0.05 0.01 155 / 0.5);
  }
}
.side-nav::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.4;
}
.side-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 12px 10px;
  width: 64px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
  position: relative;
}
.side-nav-item i {
  font-size: 18px;
  color: var(--ink-mute);
  transition: color .2s, transform .2s;
}
.side-nav-item .side-nav-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1;
}
.side-nav-item:hover {
  color: var(--gold);
  background: oklch(0.16 0.020 150 / 0.5);
  border-color: var(--line);
  transform: translateX(2px);
}
.side-nav-item:hover i {
  color: var(--gold);
  transform: scale(1.1);
}
.side-nav-item.active {
  color: var(--gold);
  background: linear-gradient(90deg, oklch(0.30 0.10 80 / 0.3), transparent);
  border-color: var(--line-strong);
}
.side-nav-item.active i { color: var(--gold); }
.side-nav-item.active::before {
  content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ============================================================================
   PAGE CONTAINER + HERO STRIP
   ============================================================================ */
.pagecontainer { padding-top: 24px !important; padding-bottom: 60px; }

.notice, .message, .alert {
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  background: oklch(0.18 0.020 150 / 0.6) !important;
  color: var(--ink) !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
}
.alert-info {
  background: linear-gradient(135deg, oklch(0.20 0.020 155 / 0.85), oklch(0.18 0.020 200 / 0.7)) !important;
  border-color: oklch(0.45 0.10 220 / 0.55) !important;
}
.alert-warning {
  background: oklch(0.32 0.10 80 / 0.4) !important;
  border-color: var(--gold-deep) !important;
}
.alert-danger {
  background: oklch(0.30 0.12 28 / 0.5) !important;
  border-color: var(--crimson) !important;
}
.alert-success {
  background: oklch(0.28 0.10 158 / 0.45) !important;
  border-color: var(--emerald) !important;
}

/* ============================================================================
   CARDS — all `.card` elements get the dark panel treatment
   ============================================================================ */
.card {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-deep) 100%) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  margin-bottom: 16px !important;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line-strong) !important; }

/* Decorative gold corner brackets on hovered cards */
.card::before, .card::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  opacity: 0; transition: opacity .25s ease, width .25s ease, height .25s ease;
}
.card::before { top: 0; left: 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.card::after  { bottom: 0; right: 0; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.card:hover::before, .card:hover::after { opacity: 0.85; width: 24px; height: 24px; }

.card-header {
  background: oklch(0.13 0.018 155) !important;
  border-bottom: 1px solid var(--line) !important;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold) !important;
  padding: 12px 18px !important;
}
.card-header strong { color: var(--ink); font-weight: 600; }

.card-body { color: var(--ink-soft); padding: 18px !important; }
.card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5 {
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-weight: 600;
}
.card-body p { color: var(--ink-soft); line-height: 1.55; }

.card-footer {
  background: oklch(0.13 0.018 155 / 0.7) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--ink-mute) !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px !important;
  padding: 10px 18px !important;
  letter-spacing: 0.06em;
}
.text-muted { color: var(--ink-mute) !important; }

/* ============================================================================
   HERO BANNER (homepage main intro card)
   ============================================================================ */
.elv-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, oklch(0.10 0.015 155 / 0.55) 0%, oklch(0.10 0.015 155 / 0.95) 100%),
    url('../img/news/1.webp') center/cover no-repeat;
  padding: 56px 40px;
  margin-bottom: 16px;
}
.elv-hero::before {
  content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 32px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold);
}
.elv-hero::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 32px; height: 32px;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold);
}
.elv-hero .kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.elv-hero .kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.elv-hero h1 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  margin: 0 0 20px;
  text-shadow: 0 4px 24px oklch(0.05 0.01 155 / 0.8);
}
.elv-hero h1 em { color: var(--gold); font-style: italic; font-weight: 600; }
.elv-hero .lede {
  font-size: 16px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 28px;
}
.elv-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-elv {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: none; border-radius: 2px;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
  cursor: pointer;
}
.btn-elv-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: oklch(0.18 0.020 60);
  box-shadow:
    inset 0 1px 0 oklch(0.95 0.05 85 / 0.6),
    0 0 0 1px oklch(0.55 0.13 70 / 0.6),
    0 12px 28px oklch(0.40 0.10 70 / 0.35);
}
.btn-elv-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 oklch(0.95 0.05 85 / 0.6),
    0 0 0 1px var(--gold),
    0 16px 36px oklch(0.55 0.13 70 / 0.55);
  color: oklch(0.18 0.020 60);
}
.btn-elv-ghost {
  background: oklch(0.10 0.015 155 / 0.6);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-elv-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Stat pills under the hero */
.elv-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.elv-stat {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 16px 18px;
  position: relative;
}
.elv-stat .label {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.elv-stat .value {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 24px; color: var(--gold);
}
.elv-stat .sub {
  font-size: 11px; color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* Server feature checklist (replaces the old wall-of-text bullets) */
.elv-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 0;
}
.elv-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: oklch(0.13 0.018 155 / 0.7);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  transition: border-color .2s, color .2s;
}
.elv-feature:hover { border-color: var(--gold); color: var(--ink); }
.elv-feature .check {
  width: 18px; height: 18px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: oklch(0.18 0.020 60);
  font-size: 11px; font-weight: 700;
}

/* ============================================================================
   QUICK INFO STRIP (rates · client · level cap, etc.)
   ============================================================================ */
.elv-info-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: oklch(0.13 0.018 155);
  margin-bottom: 16px;
}
.elv-info-cell {
  padding: 14px 18px;
  border-left: 1px solid var(--line);
}
.elv-info-cell:first-child { border-left: none; }
.elv-info-cell .label {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 4px;
}
.elv-info-cell .value {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 16px; color: var(--gold);
}

/* ============================================================================
   NEWS GRID
   ============================================================================ */
.elv-news-card {
  height: 100%;
  display: flex; flex-direction: column;
}
.elv-news-card .card-img-top {
  width: 100%; height: 180px; object-fit: cover;
  display: block;
  border-radius: 0;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .35s ease, filter .25s;
}
.elv-news-card:hover .card-img-top { transform: scale(1.04); filter: saturate(1.15) contrast(1.1); }
.elv-news-card .card-body { flex: 1; }

/* ============================================================================
   MEDIA ROW (YouTube + Screenshots carousel)
   ============================================================================ */
.elv-media .card-body { padding: 0 !important; }
.elv-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.elv-media .carousel { background: var(--bg-darkest); }
.elv-media .carousel img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in; }

/* ============================================================================
   RIGHT SIDEBAR (rightbar.php)
   ============================================================================ */
/* Slider in sidebar */
#carouselSidebarSlider .carousel-item img {
  width: 100%; height: auto; display: block;
}

/* Login form */
.form-control {
  background: var(--bg-darkest) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  padding: 10px 12px !important;
}
.form-control:focus {
  background: var(--bg-darkest) !important;
  border-color: var(--gold) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 2px oklch(0.55 0.13 80 / 0.2) !important;
}
.form-group label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 6px;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%) !important;
  border: none !important;
  color: oklch(0.18 0.020 60) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  padding: 10px 20px !important;
  width: 100%;
  box-shadow: inset 0 1px 0 oklch(0.95 0.05 85 / 0.6), 0 0 0 1px oklch(0.55 0.13 70 / 0.6) !important;
  transition: transform .15s, box-shadow .2s !important;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 oklch(0.95 0.05 85 / 0.6), 0 0 0 1px var(--gold), 0 12px 28px oklch(0.55 0.13 70 / 0.45) !important;
}

/* Sidebar tables (CashPoints, Castles, MVPs) */
.table {
  color: var(--ink-soft) !important;
  margin-bottom: 0 !important;
}
.table-sm td, .table-sm th { padding: 8px 14px !important; }
.table tbody tr {
  background: transparent !important;
  border-bottom: 1px solid oklch(0.32 0.020 150 / 0.18);
}
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: oklch(0.18 0.020 150 / 0.4) !important; }
.table td { vertical-align: middle !important; border-top: none !important; color: var(--ink-soft) !important; font-size: 13px; }

/* CashPoints rank numbers */
.table td:first-child {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--ink-mute);
  text-align: center;
}
.table tbody tr:nth-child(1) td:first-child { color: var(--gold); }
.table tbody tr:nth-child(2) td:first-child { color: oklch(0.85 0.03 90); }
.table tbody tr:nth-child(3) td:first-child { color: oklch(0.65 0.10 35); }
.table td.text-end { color: var(--gold); font-family: 'JetBrains Mono', monospace; font-weight: 600; }

/* Castle vertical-table */
.vertical-table {
  width: 100%;
  font-size: 13px;
  color: var(--ink-soft);
}
.vertical-table th {
  font-family: 'Cinzel', serif; font-weight: 600;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.vertical-table td {
  padding: 10px 14px;
  border-bottom: 1px solid oklch(0.32 0.020 150 / 0.18);
  vertical-align: middle;
}
.vertical-table tr:last-child td { border-bottom: none; }
.vertical-table img {
  width: 24px; height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  border: 1px solid var(--line);
  background: oklch(0.10 0.015 155);
}

/* Most Recently Killed MvPs */
.killlist {
  display: flex; gap: 12px;
  list-style: none; padding: 0; margin: 0;
  justify-content: center;
}
.killlist li.killlist {
  flex: 1;
  background: oklch(0.13 0.018 155 / 0.7);
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  transition: border-color .2s, transform .2s;
}
.killlist li.killlist:hover { border-color: var(--gold); transform: translateY(-2px); }
.killlistimg {
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px oklch(0.55 0.13 80 / 0.35));
}

/* ============================================================================
   FOOTER
   ============================================================================ */
#footer {
  background: var(--bg-darkest) !important;
  border-top: 1px solid var(--line);
  color: var(--ink-soft) !important;
  padding: 50px 0 24px !important;
  margin-top: 40px !important;
}
#footer h5 {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
#footer .container > center > h5 {
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: none;
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { margin-bottom: 8px; }
#footer ul li a {
  color: var(--ink-soft);
  font-size: 13px;
  transition: color .15s, padding-left .15s;
}
#footer ul li a:hover { color: var(--gold); padding-left: 4px; }
#footer .footer-link { padding-bottom: 24px; border-bottom: 1px solid var(--line); }

.footer-social {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 16px;
  margin: 4px;
  transition: border-color .2s, color .2s, transform .15s;
}
.footer-social:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

#footer select.form-control {
  background: var(--bg-panel) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

/* ============================================================================
   FA ICON COLOR INHERIT (so icons get gold on hover etc.)
   ============================================================================ */
.fab, .fas, .far { color: inherit; }

/* ============================================================================
   MODAL OVERRIDES
   ============================================================================ */
.modal-content {
  background: var(--bg-deep) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
}
.modal-body { padding: 0 !important; }
.modal-body img { display: block; width: 100%; }

/* ============================================================================
   SCROLL REVEAL
   ============================================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition:
      opacity .8s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms),
      transform .8s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
  }
  [data-reveal].revealed { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 992px) {
  #navbar-status { display: none !important; }
  .navbar { padding: 8px 0 !important; }
  .navbar .navbar-collapse {
    background: oklch(0.10 0.015 155 / 0.96);
    border: 1px solid var(--line-strong);
    margin-top: 8px;
    padding: 12px;
  }
  .elv-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .elv-info-strip { grid-template-columns: repeat(2, 1fr); }
  .elv-info-cell { border-left: none !important; border-bottom: 1px solid var(--line); }
  .elv-info-cell:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .elv-hero { padding: 36px 24px; }
  .elv-hero h1 { font-size: 32px; }
  .elv-stat-grid { grid-template-columns: 1fr 1fr; }
  .elv-info-strip { grid-template-columns: 1fr; }
  .elv-info-cell { border-right: none !important; }
  .killlist { flex-direction: column; }
}

/* Hide unused legacy stuff that we replaced */
.preloader, #preloader, #msgIndicator { display: none !important; }
