/* ==========================================================================
   IMPECCABLE CRAFT — DEEP MATTE OBSIDIAN DESIGN SYSTEM
   Restrained, high-contrast, clean typography, zero AI-slop glows
   War of Dragons Labirent Zindan Rehberi
   ========================================================================== */

:root {
  --font-display: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Deep Matte Obsidian Palette */
  --bg-canvas: #090b0e;
  --bg-surface: #0f131a;
  --bg-surface-raised: #131822;
  --bg-surface-elevated: #161c28;
  --bg-surface-subtle: #0c0f15;

  /* Lines & Borders (subtle 1px micro-borders) */
  --border-hairline: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(56, 189, 248, 0.45);

  /* Typography Colors */
  --text-strong: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Accents */
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.1);
  --cyan-border: rgba(56, 189, 248, 0.25);

  --accent-easy: #10b981;
  --accent-easy-soft: rgba(16, 185, 129, 0.1);
  --accent-easy-border: rgba(16, 185, 129, 0.28);

  --accent-medium: #f59e0b;
  --accent-medium-soft: rgba(245, 158, 11, 0.1);
  --accent-medium-border: rgba(245, 158, 11, 0.28);

  --accent-hard: #f43f5e;
  --accent-hard-soft: rgba(244, 63, 94, 0.1);
  --accent-hard-border: rgba(244, 63, 94, 0.28);
}

/* Base Canvas & Global Surfaces */
html {
  background-color: var(--bg-canvas);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-body);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(1200px 520px at 50% -40px, rgba(30, 41, 59, 0.32) 0%, rgba(9, 11, 14, 0) 100%),
    radial-gradient(800px 400px at 50% 100%, rgba(15, 23, 42, 0.2) 0%, rgba(9, 11, 14, 0) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  min-height: 100vh;
}

body::before,
body::after {
  display: none !important;
}

/* Remove all traces of nebula background */
.nebula-background {
  display: none !important;
}

/* Browser Surfaces: Selection & Custom Scrollbars */
::selection {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.32);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: #1e2634;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e3a4e;
}

button, input, a {
  font: inherit;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Unified Application Shell */
.parchment-shell {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.parchment-shell::before,
.parchment-shell::after,
.ornament {
  display: none !important;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 14, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 64px;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.header-brand:hover {
  transform: translateY(-1px);
}
.header-brand .brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.header-brand .brand-symbol img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.header-brand .brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text-single h1 {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}
.brand-text-single .brand-rta {
  color: #ef0b22;
  -webkit-text-fill-color: #ef0b22;
}
.brand-text-single .brand-software {
  color: #f1f5f9;
  -webkit-text-fill-color: #f1f5f9;
}
.header-brand .brand-copy small {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 650;
  text-transform: uppercase;
}

/* Header Navigation */
.portal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-body);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nav-btn-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  color: #ffffff;
  transform: translateY(-1px);
}
.nav-btn-back .back-arrow {
  color: #ef0b22;
  font-size: 14px;
}

.nav-tabs-segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 3px;
}
.nav-tab-btn {
  padding: 6px 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  color: var(--text-muted);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.nav-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 650;
}
.nav-tab-btn.active.tab-cyan {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
}
.lang-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 650;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.lang-btn:hover {
  color: var(--text-body);
}
.lang-btn.active {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.12);
}

/* ==========================================================================
   EDITORIAL HERO SECTION
   ========================================================================== */
.hero-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-title {
  max-width: 800px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  -webkit-text-fill-color: var(--text-strong);
  background: none;
  text-shadow: none;
  margin: 0;
}
.hero-desc {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-stats span b {
  color: var(--text-strong);
  font-weight: 700;
}

/* ==========================================================================
   CONTROLS & SEARCH BAR (Sticky)
   ========================================================================== */
.controls-section {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(9, 11, 14, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 32px;
}
.controls-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.search-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 2;
}
.search-input {
  width: 100%;
  box-sizing: border-box;
  color: var(--text-strong);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 34px 8px 36px;
  font-size: 0.86rem;
  transition: all 0.15s ease;
}
.search-input::placeholder {
  color: var(--text-faint);
}
.search-input:focus {
  background: var(--bg-surface-raised);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
  outline: none;
}
.clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.clear-search-btn:hover {
  color: var(--text-strong);
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-btn:hover {
  color: var(--text-strong);
  background: var(--bg-surface-raised);
  border-color: var(--border-medium);
}
.filter-btn.active {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.filter-btn.diff-easy.active {
  color: #6ee7b7;
  background: var(--accent-easy-soft);
  border-color: var(--accent-easy-border);
}
.filter-btn.diff-medium.active {
  color: #fcd34d;
  background: var(--accent-medium-soft);
  border-color: var(--accent-medium-border);
}
.filter-btn.diff-hard.active {
  color: #fda4af;
  background: var(--accent-hard-soft);
  border-color: var(--accent-hard-border);
}

.run-progress {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px 3px 12px;
  color: var(--text-body);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.reset-run-btn {
  min-height: 28px;
  padding: 3px 8px;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.24);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}
.reset-run-btn:hover {
  color: #ffffff;
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(244, 63, 94, 0.45);
}

.view-modes {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
  display: inline-flex;
  gap: 3px;
}
.view-btn {
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-btn:hover {
  color: var(--text-strong);
}
.view-btn.active {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   MAIN CONTENT LAYOUT & QUICK JUMP ASIDE
   ========================================================================== */
.main-wrapper {
  max-width: 1440px;
  margin: 28px auto 60px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.quick-jump-aside {
  position: sticky;
  top: 140px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}
.quick-jump-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 8px;
}
.quick-jump-header h3 {
  color: var(--text-strong);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.quick-jump-count {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.quick-jump-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quick-jump-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.quick-jump-link:hover {
  background: var(--bg-surface-raised);
  color: var(--text-strong);
}
.quick-jump-num {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  font-variant-numeric: tabular-nums;
}
.quick-jump-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-jump-badge {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-easy { background: var(--accent-easy); }
.dot-medium { background: var(--accent-medium); }
.dot-hard { background: var(--accent-hard); }

/* ==========================================================================
   BOSS CARDS
   ========================================================================== */
.content-area {
  min-width: 0;
}
.boss-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.boss-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s ease;
}
.boss-card:hover {
  border-color: var(--border-medium);
}

.boss-card-header {
  background: var(--bg-surface-raised);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.boss-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.boss-id-badge {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.boss-name {
  color: var(--text-strong);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.boss-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.boss-mode-switch {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 2px;
  display: inline-flex;
  gap: 2px;
}
.boss-mode-btn {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.boss-mode-btn:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
}
.boss-mode-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.threat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 650;
}
.threat-easy {
  background: var(--accent-easy-soft);
  color: #6ee7b7;
  border: 1px solid var(--accent-easy-border);
}
.threat-medium {
  background: var(--accent-medium-soft);
  color: #fcd34d;
  border: 1px solid var(--accent-medium-border);
}
.threat-hard {
  background: var(--accent-hard-soft);
  color: #fda4af;
  border: 1px solid var(--accent-hard-border);
}

.bot-info-link {
  background: var(--cyan-soft);
  color: #7dd3fc;
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.bot-info-link:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.38);
  color: #bae6fd;
}

.boss-clear-btn {
  background: rgba(244, 63, 94, 0.08);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.boss-clear-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #ffffff;
}

/* Boss Card Body */
.boss-card-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
.boss-card-body.boss-mode-panel {
  display: none;
}
.boss-card-body.boss-mode-panel.active {
  display: grid;
}

.boss-portraits-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.boss-portrait-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.boss-portrait-img {
  width: 100%;
  height: auto;
  display: block;
}
.portrait-label {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(6px);
  color: var(--text-body);
  font-size: 0.72rem;
  text-align: center;
  padding: 4px 6px;
  font-weight: 600;
}
.minion-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.minion-frame {
  flex: 1 1 45%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  position: relative;
}
.minion-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tactical Content Column */
.boss-tactical-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.loadout-box {
  padding-bottom: 14px;
}
.loadout-title {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}
.loadout-summary-text {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 10px;
}
.loadout-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loadout-chip {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.76rem;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.loadout-chip-qty {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.7rem;
}
.chip-poison {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.08);
  color: #d8b4fe;
}
.chip-impro {
  border-color: rgba(20, 184, 166, 0.25);
  background: rgba(20, 184, 166, 0.08);
  color: #5eead4;
}
.chip-mana {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
}
.chip-heal {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}
.chip-buff {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}
.chip-summon {
  border-color: rgba(236, 72, 153, 0.25);
  background: rgba(236, 72, 153, 0.08);
  color: #f472b6;
}

/* Tactical Warning Banner (Craft-floor compliant 1px border) */
.tactical-warning-banner {
  margin: 10px 0 14px;
  padding: 10px 14px;
  background: rgba(244, 63, 94, 0.07);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 8px;
  color: #fecdd3;
  font-size: 0.84rem;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tactical-warning-banner .warning-icon svg {
  stroke: #f43f5e;
  fill: none;
  stroke-width: 2;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Tactics List */
.tactics-list {
  display: flex;
  flex-direction: column;
}
.tactic-row {
  border-top: 1px solid var(--border-hairline);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.tactic-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tactic-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.tactic-icon-placeholder {
  display: grid;
  place-items: center;
}
.tactic-icon-placeholder svg {
  width: 20px;
  height: 20px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.8;
}
.tactic-icon-warning svg { stroke: var(--accent-hard); }
.tactic-icon-tip svg { stroke: var(--accent-easy); }
.tactic-icon-action svg { stroke: var(--accent-medium); }

.tactic-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.tactic-title {
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 650;
  margin: 0;
}
.tactic-text {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
}

.timer-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}
.timer-start-btn {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.timer-start-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
}
.timer-display {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fcd34d;
}

/* Combos & Variants */
.combos-container,
.variants-container {
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}
.combos-title,
.variants-title {
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.combos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.combo-card {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}
.combo-name-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.combo-name {
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 650;
}
.combo-action-badge {
  background: var(--accent-medium-soft);
  color: #fcd34d;
  border: 1px solid var(--accent-medium-border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 650;
}
.combo-sequence-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.combo-glyph {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.combo-arrow {
  color: var(--text-faint);
  font-size: 0.75rem;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.variant-card {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}
.variant-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.variant-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.variant-name {
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 650;
}
.variant-desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

/* Detailed Mechanics Forum Panel */
.boss-forum-panel {
  display: none;
  padding: 22px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
}
.boss-forum-panel.boss-mode-panel.active {
  display: block;
}
.forum-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 16px;
}
.forum-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.forum-panel-title {
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.forum-source-link {
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.forum-source-link:hover {
  text-decoration: underline;
}

.forum-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 28px;
}
.forum-guide-section + .forum-guide-section {
  padding-left: 28px;
  border-left: 1px solid var(--border-hairline);
}
.forum-guide-section h4 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.forum-guide-section ul,
.forum-guide-section ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}
.forum-guide-section li {
  color: var(--text-body);
  font-size: 0.84rem;
  line-height: 1.62;
}
.forum-guide-section li::marker {
  color: #5eead4;
  font-family: var(--font-mono);
  font-weight: 600;
}
.forum-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.07);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 8px;
}

/* ==========================================================================
   COMPACT TABLE VIEW
   ========================================================================== */
.compact-table-wrap {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.compact-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.compact-table th {
  background: var(--bg-surface-raised);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  white-space: nowrap;
}
.compact-table td {
  color: var(--text-body);
  border-top: 1px solid var(--border-hairline);
  padding: 12px 14px;
  font-size: 0.84rem;
  vertical-align: top;
}
.compact-table tbody tr:hover td {
  background: var(--bg-surface-raised);
}
.compact-name-link {
  color: var(--text-strong);
  font-weight: 650;
  text-decoration: none;
}
.compact-name-link:hover {
  color: #5eead4;
}
.compact-clear-btn {
  margin-top: 6px;
  padding: 4px 8px;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 650;
  cursor: pointer;
}
.compact-clear-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #ffffff;
}

/* ==========================================================================
   TOAST NOTIFICATION & FOOTER
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #1e2634;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.toast-msg.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  padding: 48px 32px;
  color: var(--text-faint);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-title {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.footer-text {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin: 0;
}
.back-to-top-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.back-to-top-btn:hover {
  background: var(--bg-surface-raised);
  color: var(--text-strong);
  border-color: var(--border-medium);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 769px) {
  .controls-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-box-wrapper { flex: 1 1 340px; }
  .filter-group { order: 4; width: 100%; }
  .run-progress { margin-left: auto; }
}

@media (max-width: 960px) {
  .nav-tabs-segmented {
    display: none;
  }
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .quick-jump-aside {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 32px 20px 24px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .controls-section {
    top: 60px;
    padding: 10px 20px;
  }
  .controls-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-box-wrapper {
    width: 100%;
  }
  .filter-group {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }
  .filter-btn {
    white-space: nowrap;
  }
  .main-wrapper {
    padding: 0 20px;
    margin-top: 20px;
  }
  .boss-card-body {
    grid-template-columns: 1fr;
  }
  .boss-mode-switch {
    width: 100%;
  }
  .boss-mode-btn {
    flex: 1;
    text-align: center;
  }
  .forum-guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .forum-guide-section + .forum-guide-section {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--border-hairline);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 20px;
  }
  .header-brand .brand-copy small {
    display: none;
  }
  .nav-btn-back span:not(.back-arrow) {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-text-single h1 {
    font-size: 1.15rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
}