:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #181818;
  --bg-hover: #202020;
  /* Chrome steel — Rohan UI panels, borders, interactive highlights */
  --chrome: #8a8a9a;
  --chrome-light: #b4b4c6;
  --chrome-dim: rgba(90, 90, 105, 0.6);
  /* Gold kept only for item/rarity content (legendary gear, prices, drops) */
  --accent-gold: #d4a017;
  --accent-gold-light: #f0c040;
  --accent-red: #c0392b;
  --text-primary: #e8e8e8;
  --text-muted: #8a8a95;
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --rarity-common: #9e9e9e;
  --rarity-uncommon: #4caf50;
  --rarity-rare: #2196f3;
  --rarity-epic: #9c27b0;
  --rarity-legendary: #ff9800;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg-primary);
  background-image: radial-gradient(rgba(110,110,110,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #070707; }
::-webkit-scrollbar-thumb { background: rgba(80,84,108,0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,104,130,0.7); }
a { color: var(--chrome-light); text-decoration: none; }
a:hover { color: #b0caff; text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.site-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-nav .container { display: flex; align-items: center; height: 68px; gap: 1.5rem; }
.nav-logo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  text-decoration: none !important; white-space: nowrap; flex-shrink: 0;
}
.nav-logo-name {
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px;
  color: var(--chrome-light);
}
.nav-links { display: flex; gap: 0.1rem; align-items: center; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links a {
  color: var(--text-muted); padding: 0.35rem 0.7rem; border-radius: 4px;
  font-size: 0.875rem; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text-primary); background: rgba(80,84,108,0.12); text-decoration: none;
}
.nav-links a.active {
  color: var(--chrome-light); background: rgba(80,84,108,0.15);
  box-shadow: inset 0 -2px 0 var(--chrome); text-decoration: none;
}
.nav-admin { margin-left: auto; }
.nav-admin a { font-size: 0.8rem; color: var(--text-muted); border: 1px solid var(--border); padding: 0.25rem 0.6rem; border-radius: 4px; }
.nav-admin a:hover { color: var(--text-primary); border-color: var(--border-light); text-decoration: none; }

main { padding: 2rem 0; }

/* Page header */
.page-header {
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(70,72,90,0.5);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.page-header h1 { margin: 0 0 0.25rem; }
.page-header p { color: var(--text-muted); }

/* Cards */
.card {
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  border: 1px solid rgba(70, 72, 90, 0.8);
  border-radius: 3px; padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), inset 0 1px 0 rgba(150,152,170,0.06), 0 4px 24px rgba(0,0,0,0.5);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card-link {
  display: block;
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  border: 1px solid rgba(70, 72, 90, 0.8);
  border-radius: 3px; padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.5);
  text-decoration: none; color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.card-link:hover {
  border-color: rgba(212,160,23,0.4);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 20px rgba(212,160,23,0.1), 0 4px 24px rgba(0,0,0,0.5);
  transform: translateY(-2px); color: var(--text-primary);
}
.card-link h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card-link p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* Tables */
.table-wrap {
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  border: 1px solid rgba(70, 72, 90, 0.8);
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.5);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  background: linear-gradient(180deg, #5e6070 0%, #424452 45%, #28282e 100%);
  color: #dde0ec; font-weight: 600;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 0.6rem 1rem; text-align: left;
  border-bottom: 1px solid rgba(35, 36, 46, 0.95);
  box-shadow: inset 0 1px 0 rgba(200,205,225,0.18), inset 0 -1px 0 rgba(0,0,0,0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid rgba(37, 37, 69, 0.6); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.03); }
.data-table a { color: var(--text-primary); font-weight: 500; }
.data-table a:hover { color: var(--chrome-light); text-decoration: none; }

/* Badges */
.badge {
  display: inline-block; padding: 0.175rem 0.55rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; text-transform: capitalize;
}
.badge-common    { background: rgba(158,158,158,0.15); color: var(--rarity-common); }
.badge-uncommon  { background: rgba(76,175,80,0.15);   color: var(--rarity-uncommon); }
.badge-rare      { background: rgba(33,150,243,0.15);  color: var(--rarity-rare); }
.badge-epic      { background: rgba(156,39,176,0.15);  color: var(--rarity-epic); }
.badge-legendary { background: rgba(255,152,0,0.15);   color: var(--rarity-legendary); }
.badge-weapon    { background: rgba(192,57,43,0.15);   color: #e74c3c; }
.badge-armor     { background: rgba(41,128,185,0.15);  color: #3498db; }
.badge-accessory { background: rgba(142,68,173,0.15);  color: #9b59b6; }
.badge-material  { background: rgba(39,174,96,0.15);   color: #2ecc71; }
.badge-consumable { background: rgba(243,156,18,0.15); color: #f39c12; }
.badge-quest     { background: rgba(149,165,166,0.15); color: #95a5a6; }
.badge-aggressive { background: rgba(192,57,43,0.15);  color: #e74c3c; }
.badge-passive    { background: rgba(39,174,96,0.15);  color: #2ecc71; }
.badge-active     { background: rgba(41,128,185,0.15); color: #3498db; }
.badge-buff       { background: rgba(39,174,96,0.15);  color: #2ecc71; }
.badge-debuff     { background: rgba(192,57,43,0.15);  color: #e74c3c; }
.badge-tank       { background: rgba(41,128,185,0.15); color: #3498db; }
.badge-dps        { background: rgba(192,57,43,0.15);  color: #e74c3c; }
.badge-healer     { background: rgba(39,174,96,0.15);  color: #2ecc71; }
.badge-support    { background: rgba(142,68,173,0.15); color: #9b59b6; }
.badge-hybrid     { background: rgba(243,156,18,0.15); color: #f39c12; }

/* Filter bar */
.filter-bar {
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  border: 1px solid rgba(70, 72, 90, 0.8);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.4);
  padding: 0.875rem 1.25rem; margin-bottom: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 0.2rem; }
.filter-group label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.filter-group input, .filter-group select {
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); padding: 0.375rem 0.7rem;
  border-radius: 4px; font-size: 0.875rem; min-width: 130px;
}
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--chrome); }
.filter-group select option { background: var(--bg-card); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 3px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: background 0.15s, box-shadow 0.15s, color 0.15s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, #7a7f9a 0%, #5a5f7a 50%, #464960 100%);
  border: 1px solid rgba(110,115,145,0.7);
  box-shadow: inset 0 1px 0 rgba(200,205,225,0.2), 0 2px 6px rgba(0,0,0,0.5);
  color: #eef0f8; text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #8f95b2 0%, #6a6f8e 50%, #565a75 100%);
  box-shadow: inset 0 1px 0 rgba(200,205,225,0.25), 0 2px 10px rgba(0,0,0,0.5);
  color: #fff; text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid rgba(70,72,90,0.7); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--chrome-dim); text-decoration: none; }

/* Detail page */
.detail-header { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
.detail-image {
  width: 100px; height: 100px; object-fit: contain;
  background: linear-gradient(170deg, #111111 0%, #070707 100%);
  border: 1px solid rgba(70,72,90,0.8);
  border-radius: 3px; padding: 0.5rem; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.5);
}
.detail-title h1 { margin: 0 0 0.4rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-box {
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  border: 1px solid rgba(70,72,90,0.8);
  border-radius: 3px; padding: 0.75rem 1rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(150,152,170,0.05);
}
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 0.2rem; }
.stat-value { font-size: 1.05rem; font-weight: 600; }

.section-title {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 1.5rem 0 0.75rem;
  text-align: center; position: relative;
}
.section-title::before,
.section-title::after {
  content: '';
  position: absolute; top: 50%;
  width: calc(50% - 70px); height: 1px;
}
.section-title::before { left: 0; background: linear-gradient(90deg, transparent, rgba(100,104,130,0.4)); }
.section-title::after  { right: 0; background: linear-gradient(270deg, transparent, rgba(100,104,130,0.4)); }

.notes-box {
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  border-left: 3px solid rgba(100,104,130,0.6);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.4);
  padding: 1rem 1.25rem; border-radius: 0 3px 3px 0; font-size: 0.9rem; line-height: 1.7;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(7,7,7,0.45) 0%, rgba(7,7,7,0.75) 100%),
    url("/images/rohancentral-hero-01.png") center center / cover no-repeat;
  border-bottom: 1px solid rgba(50,52,70,0.9);
  box-shadow: 0 1px 0 rgba(0,0,0,0.6);
  padding: 5rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.75rem; margin: 0 0 0.75rem;
  background: linear-gradient(135deg, var(--chrome-light), #c0d8ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-search { display: flex; gap: 0.5rem; max-width: 480px; margin: 0 auto; }
.hero-search input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); padding: 0.7rem 1rem; border-radius: 6px; font-size: 0.95rem;
}
.hero-search input:focus { outline: none; border-color: var(--chrome); }
.hero-search input::placeholder { color: var(--text-muted); }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 3rem 0 2rem; }
.quick-link-card {
  background: linear-gradient(170deg, #111111 0%, #070707 100%);
  border: 1px solid rgba(70, 72, 90, 0.8);
  border-radius: 3px; padding: 1.5rem 1rem; text-align: center; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.7), inset 0 1px 0 rgba(150,152,170,0.06), 0 4px 20px rgba(0,0,0,0.6);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; color: var(--text-primary);
}
.quick-link-card:hover {
  border-color: rgba(212,160,23,0.45);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.7), 0 0 24px rgba(212,160,23,0.12), 0 4px 20px rgba(0,0,0,0.6);
  transform: translateY(-2px); text-decoration: none; color: var(--text-primary);
}
.ql-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.quick-link-card h3 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.quick-link-card p  { color: var(--text-muted); font-size: 0.8rem; }

/* Pagination — Pagy 9 renders <nav class="pagy nav"> */
nav.pagy {
  display: flex; justify-content: center; align-items: center;
  gap: 0.4rem; margin-top: 2rem; flex-wrap: wrap;
}
nav.pagy a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 0.75rem;
  border-radius: 3px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border: 1px solid rgba(50,52,70,0.7);
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 1px 0 rgba(150,152,170,0.04);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
nav.pagy a:hover:not([aria-disabled="true"]) {
  color: var(--text-primary); border-color: var(--chrome);
  background: var(--bg-hover); text-decoration: none;
}
nav.pagy a[aria-current="page"],
nav.pagy a.current {
  background: linear-gradient(180deg, #5e6070 0%, #424452 45%, #28282e 100%);
  color: #dde0ec; border-color: rgba(70,72,90,0.8); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(200,205,225,0.15), 0 0 0 1px rgba(0,0,0,0.5);
  pointer-events: none;
}
nav.pagy a[aria-disabled="true"]:not([aria-current="page"]) {
  opacity: 0.35; cursor: default; pointer-events: none;
}
nav.pagy a.gap {
  border-color: transparent; background: transparent;
  color: var(--text-muted); cursor: default; letter-spacing: 1px;
}

/* Tags */
.tag {
  display: inline-block; padding: 0.15rem 0.5rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(70,72,90,0.6);
  border-radius: 2px; font-size: 0.75rem; color: var(--text-muted);
}

/* Misc */
.result-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.text-muted { color: var(--text-muted); }

/* Guide hero banner */
.guide-hero { background-size: cover; background-position: center; background-repeat: no-repeat; height: 420px; border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 2rem; }
.guide-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(13,13,26,0.55) 200%, rgba(13,13,26,0.1) 100%); display: flex; align-items: flex-end; }
.guide-hero-content { padding: 2rem 2.5rem; width: 100%; }
.guide-hero-badges { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.guide-hero-views { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.guide-hero-title { color: #fff; font-size: 2rem; font-weight: 700; margin: 0 0 0.65rem; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,0.7); max-width: 760px; }
.guide-hero-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
@media (max-width: 600px) { .guide-hero { height: 280px; } .guide-hero-title { font-size: 1.4rem; } .guide-hero-content { padding: 1.25rem 1.25rem; } }

/* Rich text */
.rich-text-body { line-height: 1.8; }
.rich-text-body h1, .rich-text-body h2, .rich-text-body h3 { margin: 1.5rem 0 0.5rem; color: var(--chrome-light); }
.rich-text-body p { margin: 0.75rem 0; }
.rich-text-body ul, .rich-text-body ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.rich-text-body li { margin: 0.25rem 0; }
.rich-text-body blockquote { border-left: 3px solid var(--chrome); margin: 1rem 0; padding: 0.5rem 1rem; color: var(--text-muted); background: var(--bg-card); border-radius: 0 4px 4px 0; }
.rich-text-body img { max-width: 100%; height: auto; display: block; border-radius: 4px; margin: 1rem 0; }

/* Stats JSONB display */
.stats-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.stats-list li { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.stats-list li:last-child { border-bottom: none; }
.stats-list .stat-key { color: var(--text-muted); text-transform: capitalize; }
.stats-list .stat-val { font-weight: 600; }

/* Flash messages */
.flash { padding: 0.75rem 0; font-size: 0.875rem; }
.flash-notice { background: linear-gradient(90deg, rgba(39,174,96,0.1) 0%, rgba(9,9,9,0.85) 100%); border-bottom: 1px solid rgba(39,174,96,0.22); border-top: 1px solid rgba(39,174,96,0.07); color: #2ecc71; }
.flash-alert  { background: linear-gradient(90deg, rgba(192,57,43,0.1) 0%, rgba(9,9,9,0.85) 100%); border-bottom: 1px solid rgba(192,57,43,0.22); border-top: 1px solid rgba(192,57,43,0.07);  color: #e74c3c; }

/* Auth nav */
.nav-user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; margin-left: auto; }
.nav-user a { color: var(--text-muted); }
.nav-user a:hover { color: var(--text-primary); text-decoration: none; }
.nav-user .nav-username { color: var(--chrome-light); font-weight: 500; }

/* Devise forms */
.auth-card { max-width: 420px; margin: 3rem auto; }
.auth-card h2 { margin-bottom: 1.5rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.field input { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.95rem; }
.field input:focus { outline: none; border-color: var(--chrome); }
.field .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.field-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.auth-actions { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.auth-links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.error-list { background: rgba(192,57,43,0.1); border: 1px solid rgba(192,57,43,0.3); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.error-list h4 { color: #e74c3c; margin-bottom: 0.4rem; font-size: 0.875rem; }
.error-list ul { margin: 0; padding-left: 1.25rem; font-size: 0.85rem; color: #e74c3c; }

/* ============================================================
   GAME UI COMPONENTS — window chrome, skill tree, tabs
   ============================================================ */

/* Nav — panel-header steel chrome */
.site-nav {
  background: linear-gradient(180deg, #5e6070 0%, #424452 45%, #28282e 100%);
  border-bottom: 1px solid rgba(35, 36, 46, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(200, 205, 225, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 4px 28px rgba(0, 0, 0, 0.8);
  position: relative;
}
/* Thin gold accent line at the very bottom of the nav */
.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,160,23,0.18) 20%,
    rgba(240,192,64,0.35) 50%,
    rgba(212,160,23,0.18) 80%,
    transparent 100%
  );
  pointer-events: none;
}
.nav-logo .nav-logo-name {
  background: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #b8860b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
  transition: filter 0.2s;
}
.nav-logo:hover .nav-logo-name {
  filter: drop-shadow(0 1px 8px rgba(212,160,23,0.5));
}
/* Separator between DB and community nav groups */
.nav-sep {
  width: 1px; align-self: stretch;
  background: linear-gradient(180deg,
    transparent 15%,
    rgba(180,185,210,0.22) 40%,
    rgba(180,185,210,0.22) 60%,
    transparent 85%
  );
  margin: 0 0.25rem;
  flex-shrink: 0;
}
/* Link colors tuned for steel background */
.site-nav .nav-links a {
  color: rgba(195, 198, 215, 0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  border-radius: 2px;
  transition: color 0.15s, background 0.15s, text-shadow 0.15s;
}
.site-nav .nav-links a:hover {
  color: #dde0ec;
  background: rgba(0,0,0,0.2);
  text-decoration: none;
  text-shadow: 0 0 6px rgba(220,225,245,0.25), 0 1px 3px rgba(0,0,0,0.9);
}
.site-nav .nav-links a.active {
  color: #ffffff;
  background: rgba(0,0,0,0.22);
  box-shadow: inset 0 -2px 0 rgba(240,192,64,0.5);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.site-nav .nav-user a {
  color: rgba(195, 198, 215, 0.65);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.site-nav .nav-user a:hover { color: #dde0ec; text-decoration: none; }
.site-nav .nav-username { color: #dde0ec !important; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.site-nav .nav-admin a {
  color: rgba(195, 198, 215, 0.6);
  border-color: rgba(150,155,175,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.site-nav .nav-admin a:hover { color: #dde0ec; border-color: rgba(200,205,225,0.45); text-decoration: none; }
/* Breadcrumb */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 0.3rem 0.75rem; margin-bottom: 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(50,52,70,0.6);
  border-radius: 2px;
}
.breadcrumb a { color: var(--chrome); }
.breadcrumb a:hover { color: var(--chrome-light); text-decoration: none; }
.breadcrumb-sep { color: rgba(100,104,130,0.4); font-size: 0.7rem; }

/* Game panel — mimics Rohan in-game window chrome */
.game-panel {
  background: linear-gradient(170deg, #111111 0%, #070707 100%);
  border: 1px solid rgba(70, 72, 90, 0.85);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(150, 152, 170, 0.08),
    0 6px 40px rgba(0,0,0,0.7);
  border-radius: 3px;
  position: relative;
}

/* Panel title bar — matches Rohan "Rune Information List" steel-gray header */
.panel-header {
  background: linear-gradient(180deg,
    #5e6070 0%,
    #424452 45%,
    #28282e 100%
  );
  border-bottom: 1px solid rgba(35, 36, 46, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(200, 205, 225, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  padding: 0.45rem 1rem;
  text-align: center;
  position: relative;
}
.panel-header::before,
.panel-header::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 20px; height: 1px;
}
.panel-header::before {
  left: 0.75rem;
  background: linear-gradient(90deg, transparent, rgba(180, 185, 205, 0.4));
}
.panel-header::after {
  right: 0.75rem;
  background: linear-gradient(270deg, transparent, rgba(180, 185, 205, 0.4));
}
.panel-title {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #dde0ec;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Game tabs — class selector at top of skill window */
.game-tabs {
  display: flex;
  border-bottom: 1px solid rgba(55, 57, 72, 0.8);
  background: rgba(0,0,0,0.35);
}
.game-tab {
  flex: 1; padding: 0.5rem 0.75rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-align: center;
  cursor: pointer; text-decoration: none;
  border-right: 1px solid rgba(55, 57, 72, 0.5);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.3px;
}
.game-tab:last-child { border-right: none; }
.game-tab:hover { color: var(--text-primary); background: rgba(90, 92, 112, 0.12); text-decoration: none; }
.game-tab.active { color: var(--chrome-light); background: rgba(80, 84, 108, 0.2); box-shadow: inset 0 -2px 0 var(--chrome); }

/* Skill tree grid — positions skills at their tree_row / tree_col */
.skill-tree {
  display: grid;
  gap: 10px;
  padding: 1rem;
  justify-content: start;
  min-height: 200px;
}

/* Individual skill icon node */
.skill-node {
  width: 60px; height: 60px;
  background: linear-gradient(160deg, #111111 0%, #080808 100%);
  border: 2px solid #252545;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  transition: border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
  grid-row: var(--row); grid-column: var(--col);
}
.skill-node:hover {
  border-color: var(--chrome);
  box-shadow: 0 0 10px rgba(120, 125, 155, 0.4);
  z-index: 2;
}
.skill-node.allocated {
  border-color: rgba(110, 115, 145, 0.8);
  box-shadow: 0 0 6px rgba(110, 115, 150, 0.25);
}
.skill-node.selected {
  border-color: var(--chrome-light);
  box-shadow: 0 0 0 2px rgba(120, 125, 160, 0.5);
}
.skill-icon-bg {
  width: 100%; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.skill-type-active  .skill-icon-bg { background: rgba(41,128,185,0.18); }
.skill-type-passive .skill-icon-bg { background: rgba(39,174,96,0.18); }
.skill-type-buff    .skill-icon-bg { background: rgba(212,160,23,0.18); }
.skill-type-debuff  .skill-icon-bg { background: rgba(192,57,43,0.18); }
.skill-node-level {
  position: absolute; bottom: 0; left: 0; right: 0; height: 18px;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3px;
}
.skill-node-lv {
  font-size: 0.68rem; font-weight: 700; color: #d0d0e0; line-height: 1;
}
.skill-node-lv.maxed { color: var(--chrome-light); }
.skill-node-plus {
  width: 13px; height: 13px;
  background: rgba(90, 92, 115, 0.2);
  border: 1px solid rgba(100, 104, 130, 0.5);
  border-radius: 2px; color: var(--chrome-light);
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.12s;
}
.skill-node-plus:hover { background: rgba(100, 104, 130, 0.4); }

/* Skill detail panel — shows on skill click (right panel) */
.skill-detail-panel {
  background: linear-gradient(180deg, rgba(80, 84, 108, 0.08) 0%, transparent 40%);
  border-top: 1px solid rgba(55, 57, 72, 0.6);
  padding: 1rem;
}
.skill-detail-name {
  font-size: 1rem; font-weight: 700;
  color: var(--chrome-light); margin-bottom: 0.2rem;
}
.skill-detail-meta { font-size: 0.73rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.skill-detail-desc {
  font-size: 0.84rem; color: var(--text-primary); line-height: 1.65;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.35); border-radius: 3px;
  border-left: 2px solid rgba(100, 104, 130, 0.6);
}
.skill-detail-empty { font-size: 0.84rem; color: var(--text-muted); text-align: center; padding: 1.5rem 0; }

/* Ornate divider */
.game-divider {
  text-align: center; position: relative;
  margin: 0.85rem 0; color: var(--text-muted);
  font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase;
}
.game-divider::before,
.game-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: calc(50% - 55px); height: 1px;
}
.game-divider::before { left: 0; background: linear-gradient(90deg, transparent, rgba(100, 104, 130, 0.4)); }
.game-divider::after  { right: 0; background: linear-gradient(270deg, transparent, rgba(100, 104, 130, 0.4)); }

/* Stat allocator — inside game panel */
.stat-alloc-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.stat-alloc-abbr { width: 34px; font-size: 0.78rem; font-weight: 700; color: var(--chrome-light); flex-shrink: 0; }
.stat-alloc-name { flex: 1; font-size: 0.78rem; color: var(--text-muted); }
.stat-alloc-btn {
  width: 22px; height: 22px; background: rgba(85, 88, 112, 0.15);
  border: 1px solid rgba(95, 98, 125, 0.4); border-radius: 3px;
  color: var(--chrome-light); font-size: 0.8rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s; flex-shrink: 0;
}
.stat-alloc-btn:hover { background: rgba(212,160,23,0.3); }
.stat-alloc-val { width: 32px; text-align: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }

/* ============================================================
   Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-figure {
  margin: 0;
  background: linear-gradient(170deg, #111111 0%, #080808 100%);
  border: 1px solid rgba(70,72,90,0.8);
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.4);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.gallery-figure:hover {
  border-color: rgba(176,184,208,0.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 0 16px rgba(176,184,208,0.07), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.gallery-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.gallery-caption-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-source {
  font-size: 0.72rem;
}

/* Guide image gallery (inline, below body) */
.guide-gallery { margin-top: 2rem; }
.guide-gallery h2 { margin-bottom: 0.75rem; }
.guide-gallery .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.guide-gallery .gallery-figure img { height: 150px; }

/* ============================================================
   Footer */
/* Nav logo tagline */
.nav-logo-sub {
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.03em;
  color: rgba(160,164,192,0.45);
}

/* Hero tagline variants */
.hero-tagline { color: var(--text-primary) !important; font-size: 1.1rem !important; margin-bottom: 0.25rem !important; }
.hero-sub { font-size: 0.85rem !important; letter-spacing: 0.05em; margin-bottom: 1.75rem !important; }

/* Community callout (guides index) */
.community-callout {
  background: rgba(80,84,108,0.1); border: 1px solid rgba(80,84,108,0.25);
  border-left: 3px solid var(--chrome); border-radius: 6px;
  padding: 0.75rem 1rem; color: var(--text-muted); font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Footer */
/* ============================================================
   Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0d0d17 0%, #08080f 100%);
  border-top: 1px solid rgba(50,52,80,0.5);
  margin-top: 5rem;
  font-size: 0.875rem;
}
/* Faint gold glow line along the top edge */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,23,0.35) 40%, rgba(240,192,64,0.5) 50%, rgba(212,160,23,0.35) 60%, transparent);
  pointer-events: none;
}
.footer-glow-bar { display: none; }

/* Main row: brand left, columns right */
.footer-main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  gap: 3rem;
  padding: 3rem 0 2.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 260px;
  text-align: left;
}
.footer-logo {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d4a017, #f0c040 50%, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}
.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}
.footer-fan-badge {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(140,144,170,0.5);
  line-height: 1.5;
}
.footer-version {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(120,124,150,0.3);
  line-height: 1.5;
}

/* Link columns */
.footer-cols {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  text-align: left;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col-heading-inner {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome-light);
  opacity: 0.7;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212,160,23,0.2);
}
.footer-col h4.footer-col-heading { margin: 0; }
.footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.footer-col ul li { list-style: none !important; }
.footer-col ul a {
  color: rgba(160,164,192,0.55);
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text-primary); text-decoration: none; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(50,52,80,0.4);
  padding: 0.9rem 0;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: left;
}
.footer-bottom-copy  { color: rgba(150,154,180,0.5); font-weight: 500; }
.footer-bottom-sep   { color: rgba(212,160,23,0.25); font-size: 0.55rem; }
.footer-bottom-legal { color: rgba(110,114,140,0.4); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .detail-header { flex-direction: column; }
  .hero h1 { font-size: 1.75rem; }
  .hero-search { flex-direction: column; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { flex-direction: column; gap: 2rem; padding: 2rem 0 1.5rem; }
  .footer-brand { max-width: 100%; }
  .footer-cols { gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.2rem; }
  .footer-bottom-sep { display: none; }
}
