/* ==========================================================================
   ASHBORN2 — THE SHADOW MONARCH | AAA METIN2 x SOLO LEVELING DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-void: #04060d;
  --bg-deep: #070b16;
  --bg-panel: rgba(11, 16, 30, 0.84);
  --bg-panel-solid: #0b101e;
  --bg-card: rgba(15, 22, 40, 0.76);
  --bg-card-hover: rgba(20, 30, 54, 0.92);
  --bg-slot: rgba(6, 10, 20, 0.92);

  --cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.32);
  --gold: #e8b954;
  --gold-bright: #fcd34d;
  --gold-glow: rgba(232, 185, 84, 0.30);
  --crimson: #ef4444;
  --emerald: #10b981;

  --text-main: #eef3ff;
  --text-soft: #9fb0cc;
  --text-muted: #64748b;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-cyan: rgba(56, 189, 248, 0.34);
  --border-gold: rgba(232, 185, 84, 0.36);

  --sidebar-w: 276px;
  --topbar-h: 66px;
  --radius: 12px;
  --font-display: 'Cinzel', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #050812; }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.5); }

/* Background Shadow Embers Canvas */
#embers-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

/* Ambient Atmospheric Glows */
.bg-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 45% at 15% 0%, rgba(56, 189, 248, 0.10), transparent 65%),
    radial-gradient(ellipse 55% 40% at 90% 12%, rgba(139, 92, 246, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 35% at 50% 100%, rgba(232, 185, 84, 0.05), transparent 70%);
}

/* Solo Leveling x Dark Metin2 Corner-Bracketed System Panel */
.sys-panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sys-panel::before, .sys-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  transition: border-color 0.25s ease;
}
.sys-panel::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  border-top-left-radius: 6px;
}
.sys-panel::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-bottom-right-radius: 6px;
}
.sys-panel.gold-frame::before { border-color: var(--gold); }
.sys-panel.crimson-frame::before { border-color: var(--crimson); }
.sys-panel.violet-frame::before { border-color: var(--violet); }

/* Buttons */
.btn-monarch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 116, 184, 0.9), rgba(79, 70, 229, 0.85));
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-monarch:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.08);
}
.btn-gold {
  border-color: rgba(232, 185, 84, 0.65);
  background: linear-gradient(135deg, rgba(180, 126, 32, 0.92), rgba(120, 74, 16, 0.92));
  box-shadow: 0 0 22px rgba(232, 185, 84, 0.26), inset 0 1px 0 rgba(255, 240, 190, 0.32);
}
.btn-gold:hover { box-shadow: 0 0 34px rgba(232, 185, 84, 0.48); }
.btn-ghost {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-main);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

/* ==========================================================================
   WIKI APP SHELL (TOPBAR + SIDEBAR + MAIN STAGE)
   ========================================================================== */
.wiki-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: rgba(5, 8, 17, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 15%, #9fd8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
}

.topbar-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  height: 40px;
  padding: 0 74px 0 40px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(10, 16, 30, 0.92);
  color: #fff;
  font-size: 13px;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.topbar-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}
.topbar-search .search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 14px;
  pointer-events: none;
}
.topbar-search .kbd-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-soft);
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  max-height: 460px;
  overflow-y: auto;
  background: #080d1a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.82);
  display: none;
  z-index: 90;
}
.search-dropdown.open { display: block; }
.search-group-hdr {
  padding: 7px 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}
.search-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.14s;
}
.search-row:hover { background: rgba(56, 189, 248, 0.12); }
.search-row img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.search-row .sr-name { font-weight: 600; font-size: 13px; color: #fff; }
.search-row .sr-sub { font-size: 11px; color: var(--text-soft); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(232, 185, 84, 0.10);
  border: 1px solid rgba(232, 185, 84, 0.35);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-bright);
  font-family: var(--font-mono);
}
.live-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.mobile-menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 9px;
  border: 1px solid var(--border-cyan);
  background: rgba(15, 23, 42, 0.85);
  color: var(--cyan-bright);
  font-size: 19px;
  cursor: pointer;
}

/* Sidebar Navigation */
.wiki-sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 50;
  overflow-y: auto;
  padding: 16px 12px 28px;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(56, 189, 248, 0.14);
}
.nav-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}
.nav-item:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.16);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.10));
  color: #fff;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: inset 3px 0 0 var(--cyan), 0 4px 18px rgba(56, 189, 248, 0.12);
}
.nav-item .ni-left { display: flex; align-items: center; gap: 10px; }
.nav-item .ni-ico { width: 20px; text-align: center; font-size: 15px; }
.nav-item .ni-cnt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.10);
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-item.active .ni-cnt {
  background: rgba(56, 189, 248, 0.22);
  color: var(--cyan-bright);
}

/* Main Content Stage */
.wiki-main {
  position: relative;
  z-index: 10;
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + 22px) 28px 64px;
  min-height: 100vh;
}
.wiki-container {
  max-width: 1360px;
  margin: 0 auto;
}

/* Section Animation */
.view-fade {
  animation: viewIn 0.28s ease-out;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO BANNER (OVERVIEW & SECTION HEADERS)
   ========================================================================== */
.hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.30);
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  margin-bottom: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.02);
  filter: brightness(0.76) saturate(1.12);
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 13, 0.22) 0%, rgba(4, 6, 13, 0.62) 55%, rgba(4, 6, 13, 0.96) 100%),
    linear-gradient(90deg, rgba(4, 6, 13, 0.85) 0%, rgba(4, 6, 13, 0.25) 55%, rgba(4, 6, 13, 0.65) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: var(--cyan-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-logo {
  max-width: 410px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 26px rgba(56, 189, 248, 0.4));
  margin-bottom: 10px;
}
.hero-subtitle {
  max-width: 640px;
  color: #cbd5e1;
  font-size: 14.5px;
  margin: 0 0 18px;
}

/* Countdown Grid */
.cd-box-wrap {
  display: flex;
  gap: 10px;
}
.cd-unit {
  min-width: 72px;
  padding: 12px 10px;
  border-radius: 11px;
  text-align: center;
  background: rgba(6, 10, 22, 0.84);
  border: 1px solid rgba(56, 189, 248, 0.34);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.14);
}
.cd-unit .cd-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff 20%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cd-unit .cd-lbl {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
  font-weight: 700;
}

/* Stats Strip */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-tile {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, transform 0.2s;
}
.stat-tile:hover {
  border-color: var(--border-cyan);
  transform: translateY(-2px);
}
.stat-tile .st-val {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.stat-tile .st-val.gold { color: var(--gold-bright); }
.stat-tile .st-val.cyan { color: var(--cyan-bright); }
.stat-tile .st-lbl {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Section Title Header */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}
.sec-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.6px;
  background: linear-gradient(180deg, #ffffff 20%, #b8dcff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sec-desc {
  color: var(--text-soft);
  font-size: 13.5px;
  margin: 4px 0 0;
  max-width: 780px;
}

/* Filter Pill Bars */
.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(12, 18, 34, 0.85);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pill-btn:hover {
  border-color: rgba(56, 189, 248, 0.42);
  color: #fff;
}
.pill-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(139, 92, 246, 0.20));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
}
.pill-btn.gold.active {
  background: linear-gradient(135deg, rgba(232, 185, 84, 0.28), rgba(161, 98, 7, 0.22));
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(232, 185, 84, 0.24);
}

/* ==========================================================================
   3 KINGDOMS INTERACTIVE SHOWCASE (OVERVIEW)
   ========================================================================== */
.empire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.empire-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #070b15;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.empire-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.84);
  transition: transform 0.35s ease, filter 0.3s ease;
}
.empire-card:hover img, .empire-card.active img {
  transform: scale(1.04);
  filter: brightness(1.02);
}
.empire-card.shinsoo:hover, .empire-card.shinsoo.active {
  border-color: #ef4444;
  box-shadow: 0 12px 42px rgba(239, 68, 68, 0.28);
  transform: translateY(-4px);
}
.empire-card.chunjo:hover, .empire-card.chunjo.active {
  border-color: #eab308;
  box-shadow: 0 12px 42px rgba(234, 179, 8, 0.28);
  transform: translateY(-4px);
}
.empire-card.jinno:hover, .empire-card.jinno.active {
  border-color: #38bdf8;
  box-shadow: 0 12px 42px rgba(56, 189, 248, 0.30);
  transform: translateY(-4px);
}
.empire-body {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(7, 11, 22, 0.92), #060913);
}
.empire-body h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 18px;
}
.empire-body .emp-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ==========================================================================
   6 CLASSES x 12 DOCTRINES INTERACTIVE SHOWCASE
   ========================================================================== */
.class-showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.class-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cls-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text-soft);
  transition: all 0.18s ease;
}
.cls-tab:hover { border-color: rgba(56, 189, 248, 0.35); color: #fff; }
.cls-tab.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(15, 22, 40, 0.92));
  border-color: var(--cls-color, var(--cyan));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cls-color, var(--cyan)), 0 6px 24px rgba(0, 0, 0, 0.35);
}
.cls-tab .ct-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.cls-tab .ct-doc { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

.class-stage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

/* ==========================================================================
   THE 3D SOLO LEVELING RUNIC PEDESTAL (ARMOR & WEAPON LIVE VIEWER!)
   ========================================================================== */
.pedestal-box {
  position: relative;
  min-height: 390px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px 22px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(56, 189, 248, 0.18), transparent 72%),
    radial-gradient(ellipse 65% 32% at 50% 90%, rgba(139, 92, 246, 0.25), transparent 70%),
    linear-gradient(180deg, #070d1d 0%, #050813 100%);
  border: 1px solid rgba(56, 189, 248, 0.30);
  box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.08);
}
.pedestal-rune {
  position: absolute;
  bottom: 24px;
  width: 210px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.38), inset 0 0 22px rgba(139, 92, 246, 0.42);
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.26), transparent 72%);
  pointer-events: none;
  animation: runePulse 3.2s ease-in-out infinite;
}
.pedestal-rune::before {
  content: "";
  position: absolute;
  inset: 7px 14px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 185, 84, 0.55);
}
@keyframes runePulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.pedestal-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.pedestal-aura {
  position: absolute;
  width: 210px;
  height: 270px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.42;
  animation: auraPulse 2.8s ease-in-out infinite;
}
@keyframes auraPulse {
  0%, 100% { opacity: 0.34; transform: scale(0.96); }
  50% { opacity: 0.56; transform: scale(1.05); }
}
.pedestal-img {
  position: relative;
  z-index: 2;
  max-width: 240px;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.22));
  animation: float3d 4.2s ease-in-out infinite;
}
.pedestal-img.icon-fallback {
  width: 96px;
  height: 140px;
  image-rendering: auto;
}
@keyframes float3d {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.pedestal-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(5, 9, 20, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan-bright);
}
.pedestal-lv {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(232, 185, 84, 0.16);
  border: 1px solid rgba(232, 185, 84, 0.45);
  color: var(--gold-bright);
}

/* ==========================================================================
   EQUIPMENT EVOLUTION VIEWER (EQUIP_CHAINS — SHOWSTOPPER!)
   ========================================================================== */
.equip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
.equip-layout > * { min-width: 0; }
.chain-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.chain-pill-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
  color: var(--text-soft);
}
.chain-pill-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
}
.chain-pill-card.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.14));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.18);
}
.chain-pill-card img {
  width: 32px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.25));
}
.chain-pill-card .cpc-title { font-weight: 700; font-size: 12.5px; line-height: 1.3; }
.chain-pill-card .cpc-meta { font-size: 10.5px; color: var(--gold); margin-top: 2px; font-family: var(--font-mono); }

/* Horizontal Evolution Pipeline */
.evo-pipeline {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 12px 16px;
  background: rgba(5, 9, 19, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 13px;
  margin-bottom: 18px;
}
.evo-node {
  min-width: 118px;
  flex-shrink: 0;
  padding: 12px 9px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(12, 18, 34, 0.9);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.18s ease;
}
.evo-node:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.evo-node.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.20), rgba(15, 22, 42, 0.95));
  border-color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(232, 185, 84, 0.28);
}
.evo-node .en-lv {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-bright);
  background: rgba(232, 185, 84, 0.14);
  padding: 2px 7px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.evo-node img {
  width: 36px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 7px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}
.evo-node .en-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.evo-arrow {
  display: flex;
  align-items: center;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  opacity: 0.7;
  flex-shrink: 0;
}

.sticky-pedestal {
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
}

/* ==========================================================================
   ITEM CHIPS, RARITY TIERS & TABLES
   ========================================================================== */
.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--bg-slot);
  border: 1px solid rgba(148, 163, 184, 0.20);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.item-chip:hover {
  border-color: var(--cyan);
  background: rgba(20, 32, 58, 0.96);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.18);
}
.item-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.item-chip .ic-cnt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
}
.item-chip.tier-0 { border-color: rgba(232, 185, 84, 0.55); box-shadow: inset 0 0 12px rgba(232, 185, 84, 0.10); }
.item-chip.tier-1 { border-color: rgba(16, 185, 129, 0.42); }
.item-chip.tier-2 { border-color: rgba(56, 189, 248, 0.42); }
.item-chip.tier-3 { border-color: rgba(139, 92, 246, 0.55); box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.14); }
.item-chip.tier-4 { border-color: rgba(244, 63, 94, 0.65); box-shadow: inset 0 0 14px rgba(244, 63, 94, 0.18); }

.tier-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 5px;
}
.tier-tag.t0 { background: rgba(232, 185, 84, 0.20); color: var(--gold-bright); }
.tier-tag.t1 { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.tier-tag.t2 { background: rgba(56, 189, 248, 0.18); color: var(--cyan-bright); }
.tier-tag.t3 { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; }
.tier-tag.t4 { background: rgba(244, 63, 94, 0.22); color: #fda4af; }

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Data Tables */
.data-table-wrap {
  overflow-x: auto;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: rgba(7, 11, 22, 0.85);
}
table.ash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.ash-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}
table.ash-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
table.ash-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

/* Cards Grids */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }

/* Dungeon & Map Visual Banner Cards */
.dungeon-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dungeon-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.dc-banner {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: #050812;
}
.dc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) saturate(1.1);
  transition: transform 0.35s ease;
}
.dungeon-card:hover .dc-banner img { transform: scale(1.05); }
.dc-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,6,13,0.12) 0%, rgba(7,11,22,0.96) 100%);
}
.dc-banner-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
}
.dc-banner-title h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 17px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.dc-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
}
.mini-badge.gold {
  background: rgba(232, 185, 84, 0.14);
  border-color: rgba(232, 185, 84, 0.35);
  color: var(--gold-bright);
}
.mini-badge.violet {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.38);
  color: #c4b5fd;
}
.mini-badge.crimson {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.42);
  color: #fca5a5;
}
.mini-badge.emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
}

/* Stat Progress Bars */
.stat-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.stat-bar-lbl { width: 42px; font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: var(--text-soft); }
.stat-bar-track { flex: 1; height: 8px; border-radius: 99px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }

/* System Detail Card */
.sys-detail-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sys-detail-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0;
  color: #fff;
}
.sys-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12.8px;
}
.sys-bullets li {
  padding-left: 14px;
  position: relative;
}
.sys-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ==========================================================================
   FLOATING IN-GAME HOVER TOOLTIP & ITEM DETECTIVE SIDE DRAWER
   ========================================================================== */
#ash-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  max-width: 310px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(5, 9, 20, 0.96);
  border: 1px solid rgba(232, 185, 84, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 22px rgba(56, 189, 248, 0.16);
  display: none;
}
#ash-tooltip .tt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
#ash-tooltip .tt-head img { width: 32px; height: 42px; object-fit: contain; }
#ash-tooltip .tt-title { font-weight: 800; color: var(--gold-bright); font-size: 13px; }
#ash-tooltip .tt-lv { font-family: var(--font-mono); font-size: 10.5px; color: var(--cyan-bright); }
#ash-tooltip .tt-bonus { font-size: 11.5px; color: #6ee7b7; margin-top: 4px; }
#ash-tooltip .tt-desc { font-size: 11.5px; color: var(--text-soft); margin-top: 5px; }
#ash-tooltip .tt-hint {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  color: var(--cyan);
  font-weight: 700;
}

/* Slide-Out Item Detective Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 5, 12, 0.72);
  backdrop-filter: blur(4px);
  display: none;
}
.drawer-backdrop.open { display: block; }
.detective-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(470px, 95vw);
  z-index: 130;
  background: linear-gradient(180deg, #080e1f 0%, #050812 100%);
  border-left: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.detective-drawer.open { transform: translateX(0); }
.dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(10, 16, 32, 0.9);
}
.dd-close {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.dd-close:hover { border-color: var(--crimson); color: #fca5a5; }
.dd-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dd-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.16), rgba(9, 14, 28, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.dd-hero img {
  width: 64px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
}
.dd-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dd-list-row {
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(12, 18, 34, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 6px;
  font-size: 12.5px;
}

/* Search Input Inline */
.inline-search {
  width: 100%;
  max-width: 380px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(8, 13, 26, 0.92);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
}
.inline-search:focus { border-color: var(--cyan); }

/* Manifesto Red-Line Grid */
.redline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 1200px) {
  .redline-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
.redline-card {
  padding: 15px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), rgba(9, 13, 25, 0.92));
  border: 1px solid rgba(239, 68, 68, 0.30);
}
.redline-card.positive {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.10), rgba(9, 13, 25, 0.92));
  border-color: rgba(16, 185, 129, 0.36);
}
.redline-card h4 { margin: 0 0 5px; font-size: 13.5px; color: #fff; }
.redline-card p { margin: 0; font-size: 12px; color: var(--text-soft); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1180px) {
  .stats-ribbon { grid-template-columns: repeat(3, 1fr); }
  .equip-layout { grid-template-columns: 1fr; }
  .sticky-pedestal { position: static; order: -1; }
  .class-showcase { grid-template-columns: 1fr; }
  .class-stage { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .wiki-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85);
  }
  .wiki-sidebar.open { transform: translateX(0); }
  .wiki-main { margin-left: 0; padding: calc(var(--topbar-h) + 16px) 14px 54px; }
  .empire-grid, .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .live-pill { display: none; }
  .hero-banner { padding: 22px; min-height: 320px; }
}
@media (max-width: 560px) {
  .stats-ribbon { grid-template-columns: repeat(2, 1fr); }
  .cd-unit { min-width: 60px; }
  .cd-unit .cd-val { font-size: 21px; }
}

/* ==========================================================================
   BESPOKE SHADOW MONARCH SVG ICON SYSTEM & GENDER TOGGLE
   ========================================================================== */
.ash-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
.ash-ico svg, .ni-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-item .ni-ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.28));
  transition: color 0.16s, transform 0.16s;
}
.nav-item:hover .ni-ico {
  color: var(--gold-bright);
  transform: scale(1.08);
}
.nav-item.active .ni-ico {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 10px rgba(232, 185, 84, 0.55));
}
.nav-item.sim-highlight {
  border-color: rgba(232, 185, 84, 0.30);
  background: linear-gradient(90deg, rgba(232, 185, 84, 0.08), transparent);
}
.nav-item.sim-highlight .ni-cnt {
  background: rgba(232, 185, 84, 0.20);
  color: var(--gold-bright);
  font-weight: 800;
}

.pedestal-gender-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 99px;
  background: rgba(5, 9, 20, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.36);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}
.pg-btn {
  padding: 4px 11px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.pg-btn:hover { color: #fff; }
.pg-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(139, 92, 246, 0.34));
  color: #fff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   LIVE + BASMA & DÖNÜŞÜM SİMÜLATÖRÜ (ASHBORN2 ARINDIRMA KONSOLU)
   ========================================================================== */
.rules-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 1024px) {
  .rules-trio { grid-template-columns: 1fr; }
}
.rule-pillar {
  padding: 16px 18px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(14, 21, 39, 0.92), rgba(7, 11, 22, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.24);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rule-pillar.gold { border-color: rgba(232, 185, 84, 0.42); }
.rule-pillar.violet { border-color: rgba(139, 92, 246, 0.42); }
.rule-pillar h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.sim-grid > * { min-width: 0; }
@media (max-width: 1260px) {
  .sim-grid { grid-template-columns: 1fr; }
}

.sim-console {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sim-plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(232, 185, 84, 0.28), rgba(139, 92, 246, 0.26));
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(232, 185, 84, 0.28);
}

.sim-channel-box {
  padding: 13px 15px;
  border-radius: 11px;
  background: rgba(6, 10, 22, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.sim-opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sim-opt-btn {
  flex: 1;
  min-width: 135px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(13, 20, 38, 0.9);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.sim-opt-btn img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.sim-opt-btn:hover:not(:disabled) { border-color: var(--cyan); color: #fff; }
.sim-opt-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.22));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.24);
}
.sim-opt-btn.gold.active {
  background: linear-gradient(135deg, rgba(232, 185, 84, 0.26), rgba(161, 98, 7, 0.22));
  border-color: var(--gold);
  color: var(--gold-bright);
}
.sim-opt-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.pity-box {
  padding: 12px 15px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.10), rgba(7, 11, 22, 0.94));
  border: 1px solid rgba(139, 92, 246, 0.36);
}
.pity-box.ready {
  background: linear-gradient(180deg, rgba(232, 185, 84, 0.18), rgba(18, 14, 8, 0.95));
  border-color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(232, 185, 84, 0.26);
}
.pity-track {
  height: 12px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
  margin-top: 7px;
}
.pity-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8b5cf6, #38bdf8, #fcd34d);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.65);
  transition: width 0.28s ease;
}

.sim-flash {
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.3px;
  animation: flashPop 0.25s ease-out;
}
.sim-flash.ok {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.50);
  color: #6ee7b7;
}
.sim-flash.pity {
  background: rgba(232, 185, 84, 0.20);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
}
.sim-flash.fail {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}
@keyframes flashPop {
  0% { transform: scale(0.96); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.sim-log-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 4px;
}
.sim-log-item {
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(8, 13, 26, 0.88);
  border-left: 3px solid var(--cyan);
  color: #cbd5e1;
}
.sim-log-item.ok { border-left-color: var(--emerald); }
.sim-log-item.fail { border-left-color: var(--crimson); }
.sim-log-item.pity { border-left-color: var(--gold-bright); }

/* ==========================================================================
   GRAND FINALE ADDITIONS: BGM, 72 SKILLS, 3D PET LAB, SYSTEM STAGE, 3D BOSSES & WINGS
   ========================================================================== */
.bgm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.bgm-btn:hover { border-color: var(--cyan); color: #fff; }
.bgm-btn.playing {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(56, 189, 248, 0.24));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.40);
}

/* 72 Skills Strip in Overview Class Showcase */
.skill-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 720px) {
  .skill-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
.skill-card-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(6, 10, 22, 0.90);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: border-color 0.16s, transform 0.16s;
}
.skill-card-mini:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.skill-card-mini img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(232, 185, 84, 0.30));
}
.skill-card-mini .sk-nm { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.2; }
.skill-card-mini .sk-ds { font-size: 10.5px; color: var(--text-soft); line-height: 1.25; margin-top: 2px; }

/* Master-Detail Single-System Spotlight Stage */
.sys-spotlight-layout {
  display: grid;
  grid-template-columns: 325px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 34px;
}
.sys-spotlight-layout > * { min-width: 0; }
@media (max-width: 1060px) {
  .sys-spotlight-layout { grid-template-columns: 1fr; }
}
.sys-master-rail {
  max-height: 680px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}
.sys-rail-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 12.2px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.sys-rail-btn:hover { border-color: rgba(56, 189, 248, 0.40); color: #fff; }
.sys-rail-btn.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.16));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold-bright), 0 6px 20px rgba(0, 0, 0, 0.4);
}
.sys-rail-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(232, 185, 84, 0.15);
  color: var(--gold-bright);
  flex-shrink: 0;
}

.sys-step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.sys-step-box {
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(6, 10, 22, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.20);
}
.sys-step-box .ss-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Pet Skill Distributor Row */
.pet-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(7, 12, 24, 0.90);
  border: 1px solid rgba(148, 163, 184, 0.15);
  margin-bottom: 6px;
}
.pet-skill-row.locked { opacity: 0.46; }
.ps-ctrl-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(15, 25, 48, 0.92);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.ps-ctrl-btn:hover:not(:disabled) { border-color: var(--gold-bright); color: var(--gold-bright); }
.ps-ctrl-btn:disabled { opacity: 0.32; cursor: not-allowed; }

/* 3D Boss Portrait Frame inside Boss Cards */
.boss-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.boss-3d-thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 55%, rgba(239, 68, 68, 0.20), rgba(6, 10, 20, 0.96) 72%);
  border: 1px solid rgba(239, 68, 68, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.boss-3d-thumb img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85));
}

/* 3D Wing & Costume Showcase Strip */
.wing-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
}
.wing-thumb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(8, 13, 26, 0.90);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.wing-thumb-btn:hover { border-color: var(--cyan); color: #fff; }
.wing-thumb-btn.active {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(232, 185, 84, 0.18), rgba(11, 17, 34, 0.95));
  color: #fff;
  box-shadow: 0 0 16px rgba(232, 185, 84, 0.25);
}
.wing-thumb-btn img {
  width: 66px;
  height: 60px;
  object-fit: contain;
}
