/* ==========================================================================
   STATE 218 // LEGENDS OF 218 ARCHIVE
   Theme: Post-Apocalyptic Tactical / Survivor Shooter Command HUD
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #090c10;
  --bg-secondary: #0f141d;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 52, 0.9);
  --bg-modal: #0d121c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.35);
  --border-cyan: rgba(56, 189, 248, 0.3);

  /* Accents */
  --amber-primary: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --orange-accent: #f97316;
  --cyan-accent: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.2);
  --green-status: #10b981;
  --crimson-accent: #ef4444;
  --gold-glow: #eab308;

  /* Text Colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-amber: #fbbf24;
  --text-cyan: #7dd3fc;

  /* Typography & Layout */
  --font-sans: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-hud: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glow-amber-box: 0 0 20px rgba(245, 158, 11, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(9, 12, 16, 0.85), #090c10),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.3) 3px, rgba(0, 0, 0, 0.3) 6px);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--amber-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--amber-primary);
  color: var(--text-amber);
  transform: translateY(-2px);
}

.btn-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-accent);
  border: 1px solid var(--border-cyan);
}
.btn-cyan:hover {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   NAVIGATION / TOP COMMAND BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid var(--amber-primary);
  box-shadow: 0 0 12px var(--amber-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber-primary);
  color: var(--text-amber);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.brand-sub {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-status);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green-status);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-status);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.audio-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.audio-toggle-btn:hover {
  border-color: var(--amber-primary);
  color: var(--text-amber);
}

/* ==========================================================================
   HERO / STATE COMMAND CENTER
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-highlight);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-amber);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 30%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Metrics HUD Bar */
.metrics-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-primary), transparent);
  opacity: 0.4;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   SPOTLIGHT HERO / FEATURED VANGUARD
   ========================================================================== */
.spotlight-section {
  padding: 2.5rem 0;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(15, 20, 29, 0.9) 60%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.25rem 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hud), var(--glow-amber-box);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spotlight-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-amber);
  letter-spacing: 0.15em;
  font-weight: 700;
  border: 1px solid var(--border-highlight);
  background: rgba(245, 158, 11, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.spotlight-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--amber-primary);
  box-shadow: 0 0 8px var(--amber-primary);
  animation: pulseAmber 2s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.spotlight-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spotlight-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.spotlight-nav-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-primary);
  color: var(--text-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.spotlight-nav-btn:active {
  transform: scale(0.96);
}

.spotlight-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spotlight-body-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.spotlight-body-grid.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

.spotlight-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.spotlight-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  transition: width 0.1s linear;
}

.spotlight-avatar-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.spotlight-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--amber-primary);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.spotlight-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border: 1px solid var(--amber-primary);
  color: var(--text-amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.spotlight-info h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spotlight-role {
  font-size: 1rem;
  color: var(--text-amber);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spotlight-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  border-left: 3px solid var(--amber-primary);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
  background: rgba(245, 158, 11, 0.04);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.spotlight-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.spotlight-seasons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.season-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.season-chip.vanguard {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-primary);
  color: var(--text-amber);
  font-weight: bold;
}

/* ==========================================================================
   COMMAND CONTROLS: SEARCH & FILTERS
   ========================================================================== */
.controls-section {
  padding: 2rem 0 1rem;
}

.controls-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(9, 12, 16, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.select-filter {
  background: rgba(9, 12, 16, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  min-width: 160px;
}

.select-filter:focus {
  border-color: var(--amber-primary);
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-primary);
  color: var(--text-amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.filter-stats-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
}

/* ==========================================================================
   LEGENDS ROSTER GRID & CARDS
   ========================================================================== */
.roster-section {
  padding: 1.5rem 0 4rem;
}

.legends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.legend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.legend-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--amber-primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.legend-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hud);
}

.legend-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.card-avatar-box {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.card-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  transition: border-color 0.2s;
}

.legend-card:hover .card-avatar {
  border-color: var(--amber-primary);
}

/* Fallback SVG tactical avatar */
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-amber);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.card-alliance-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan-accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-amber);
  margin-top: 0.2rem;
}

.card-body {
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.card-spec-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.card-spec-pill strong {
  color: var(--text-primary);
}

.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-seasons-list {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-muted);
}

/* ==========================================================================
   TIMELINE / STATE 218 CHRONICLE
   ========================================================================== */
.timeline-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 20, 29, 0.4);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   JOURNEY LAYOUT & STICKY SCROLL HUD
   ========================================================================== */
.journey-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
}

.journey-hud-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  z-index: 25;
}

.journey-hud-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 20, 29, 0.96) 75%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-hud), var(--glow-amber-box);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.journey-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.journey-hud-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber-primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
}

.journey-hud-indicator {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulseCyan 1.8s infinite ease-in-out;
}

@keyframes pulseCyan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.journey-hud-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.journey-hud-tagline {
  font-size: 0.82rem;
  color: var(--text-amber);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.journey-hud-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 2px solid var(--amber-primary);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.journey-nav-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.journey-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.journey-pill .pill-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.journey-pill .pill-name {
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
}

.journey-pill:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--amber-primary);
  color: var(--text-primary);
}

.journey-pill.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.04));
  border-color: var(--amber-primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.journey-pill.active .pill-code {
  color: var(--amber-primary);
}

.journey-pill.active .pill-name {
  color: #fff;
}

.journey-hud-tracker {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
}

.tracker-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.tracker-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tracker-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--amber-primary), var(--cyan-accent));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  transition: width 0.35s ease;
}

/* ==========================================================================
   JOURNEY STORY STREAM & CARDS
   ========================================================================== */
.journey-story-stream {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.journey-season-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  scroll-margin-top: 110px;
}

.journey-season-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--border-subtle);
  transition: all 0.3s ease;
}

.journey-season-card.in-view {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-hud);
}

.journey-season-card.in-view::before {
  background: var(--amber-primary);
  box-shadow: 0 0 12px var(--amber-primary);
}

.journey-season-card.season-s5 {
  border-color: rgba(220, 38, 38, 0.4);
}

.journey-season-card.season-s5.in-view {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.journey-season-card.season-s5.in-view::before {
  background: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

.season-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.season-meta-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.season-icon-emblem {
  font-size: 1.75rem;
  line-height: 1;
}

.season-code-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-accent);
  text-transform: uppercase;
}

.season-card-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.season-card-subheading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-amber);
  margin-bottom: 1.25rem;
}

.season-card-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.season-card-body p:last-child {
  margin-bottom: 0;
}

.season-callout-box {
  margin-top: 1.5rem;
  background: rgba(245, 158, 11, 0.06);
  border-left: 3px solid var(--amber-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.season-callout-box.season-s5-callout {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
}

.season-creed-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-accent);
}

/* ==========================================================================
   MODALS: CLASSIFIED DOSSIER & NOMINATION
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--glow-amber-box);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--crimson-accent);
  color: #fff;
}

/* Dossier Modal Layout */
.dossier-hero {
  padding: 2.25rem 2.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 1.75rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent);
}

.dossier-avatar-wrap {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  position: relative;
}

.dossier-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--amber-primary);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.dossier-header-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.15;
}

.dossier-title {
  color: var(--text-amber);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.3rem 0 0.75rem;
}

.dossier-body {
  padding: 2rem 2.25rem;
}

.dossier-section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dossier-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.dossier-quote-block {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--amber-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.75rem;
}

.dossier-story-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  white-space: pre-line;
}

.dossier-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dossier-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.dossier-stat-box label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.dossier-stat-box span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dossier-testimonials {
  margin-bottom: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-amber);
  text-align: right;
}

.dossier-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 12, 16, 0.5);
}

/* ==========================================================================
   NOMINATION FORM STYLING
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(9, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-help {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.nomination-output-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.25rem;
}

.nomination-output-box pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-accent);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: #06080b;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  background: #111827;
  border: 1px solid var(--amber-primary);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .spotlight-body-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .spotlight-avatar-wrapper {
    margin: 0 auto;
  }
  .spotlight-role {
    justify-content: center;
  }
  .spotlight-quote {
    border-left: none;
    border-top: 2px solid var(--amber-primary);
    border-bottom: 2px solid var(--amber-primary);
    padding: 0.75rem;
  }
  .spotlight-footer {
    justify-content: center;
  }

  /* Journey Responsive for <= 900px */
  .journey-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .journey-hud-sticky {
    top: 72px;
    margin-bottom: 1.25rem;
  }

  .journey-hud-card {
    padding: 1.15rem 1.25rem;
  }

  .journey-nav-pills {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .journey-pill {
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
  }

  .journey-hud-quote {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-status {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .dossier-hero {
    flex-direction: column;
    text-align: center;
  }
  .dossier-title {
    margin-bottom: 0.5rem;
  }
  .legends-grid {
    grid-template-columns: 1fr;
  }
  .journey-season-card {
    padding: 1.5rem;
  }
  .season-card-heading {
    font-size: 1.35rem;
  }
}

.spin-icon {
  animation: spinSlow 0.9s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
