/* ==========================================================================
   Album XX: Golden Mirrors & Empty Thrones (The End of Virtue)
   The Shady River Bard - Interactive Experience & Jukebox Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #080a0f;
  --bg-secondary: #0e121a;
  --bg-tertiary: #141a24;
  --bg-card: rgba(14, 18, 26, 0.85);
  --bg-card-hover: rgba(22, 28, 40, 0.95);
  --bg-glass: rgba(10, 12, 16, 0.75);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #fbbf24;

  --gold-primary: #d4af37;
  --gold-glow: #f59e0b;
  --gold-light: #fef08a;
  --gold-dark: #854d0e;

  --crimson-primary: #991b1b;
  --crimson-glow: #ef4444;
  --crimson-dark: #450a0a;

  --slate-dark: #1e293b;
  --slate-border: #334155;
  --slate-light: #475569;

  --font-display: 'Cinzel', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
  --shadow-crimson: 0 0 25px rgba(153, 27, 27, 0.35);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility Modes */
body.high-contrast {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #121212;
  --bg-card: #000000;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --gold-primary: #ffd700;
  --crimson-primary: #ff3333;
  --slate-border: #ffffff;
}

body.large-font {
  font-size: 118%;
}

body.underline-links a {
  text-decoration: underline !important;
}

body.reduced-motion * {
  animation: none !important;
  transition: none !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(153, 27, 27, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #fff;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff 0%, #fef08a 25%, #d4af37 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crimson-gradient-text {
  background: linear-gradient(135deg, #fca5a5 0%, #ef4444 40%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

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

/* Accessibility Toolbar */
.a11y-toolbar {
  background: #05070a;
  border-bottom: 1px solid var(--slate-border);
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.a11y-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.a11y-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.a11y-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.a11y-btn:hover, .a11y-btn.active {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition-normal);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.brand-titles h1 {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin: 0;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-glow);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.btn-vault-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--slate-border);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 18, 26, 0.6);
}

.btn-vault-back:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  position: relative;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.hero-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-art-box {
  position: relative;
}

.art-frame {
  position: relative;
  border-radius: var(--radius-md);
  padding: 8px;
  background: linear-gradient(145deg, #d4af37, #334155 40%, #991b1b 90%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--shadow-gold);
}

.art-frame img {
  width: 100%;
  aspect-ratio: 1/1;
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.art-frame:hover img {
  transform: scale(1.015);
}

.art-badge-strip {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hero-content .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-glow);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--crimson-glow);
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-thesis {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  border-left: 3px solid var(--gold-primary);
  padding-left: 1.2rem;
  font-style: italic;
}

.constraint-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(153, 27, 27, 0.15);
  border: 1px solid var(--crimson-primary);
  color: #fca5a5;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--slate-border);
  padding: 1rem;
  border-radius: var(--radius-md);
}

@media (max-width: 600px) {
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #080a0f;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fef08a 0%, #d4af37 100%);
  color: #000;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(14, 18, 26, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--slate-border);
  font-family: var(--font-display);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Sections */
.section-padding {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-glow);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Thematic Exhibits Tabs */
.exhibit-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.exhibit-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--slate-border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.exhibit-tab:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.exhibit-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(153, 27, 27, 0.15));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.exhibit-pane {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease;
}

.exhibit-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.exhibit-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .exhibit-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.exhibit-article h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.exhibit-article p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.exhibit-quote {
  background: rgba(10, 12, 16, 0.8);
  border-left: 4px solid var(--crimson-primary);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #cbd5e1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.exhibit-sidebar {
  background: var(--bg-tertiary);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.exhibit-sidebar h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-glow);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--slate-border);
  padding-bottom: 0.5rem;
}

.exhibit-song-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(51, 65, 85, 0.5);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exhibit-song-info h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.exhibit-song-info p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Jukebox & Track Hub */
.jukebox-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .jukebox-layout {
    grid-template-columns: 1fr;
  }
}

/* Audio Player Sticky Bar */
.master-player {
  background: linear-gradient(180deg, rgba(20, 26, 36, 0.98), rgba(10, 12, 16, 0.98));
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-gold), 0 15px 40px rgba(0, 0, 0, 0.9);
  position: sticky;
  top: 80px;
  z-index: 50;
  margin-bottom: 2rem;
}

.player-track-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.current-title {
  font-size: 1.25rem;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-act {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crimson-glow);
  text-transform: uppercase;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  color: var(--gold-primary);
}

.ctrl-play {
  background: linear-gradient(135deg, var(--gold-primary), #b45309);
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.ctrl-play:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: scale(1.08);
}

.scrubber-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 42px;
}

.progress-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--slate-dark);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-primary), var(--gold-primary));
  border-radius: var(--radius-full);
  width: 0%;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vol-slider {
  accent-color: var(--gold-primary);
  height: 4px;
  width: 90px;
}

/* Filter Strip & Tracklist */
.track-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--slate-border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
}

.search-box:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.act-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.act-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--slate-border);
  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;
}

.act-pill.active {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  font-weight: bold;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.track-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(51, 65, 85, 0.6);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.track-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--gold-primary);
}

.track-item.active {
  border-color: var(--gold-primary);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(14, 18, 26, 0.8));
  box-shadow: inset 3px 0 0 var(--gold-primary);
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.track-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 24px;
}

.track-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.track-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.track-chips {
  display: flex;
  gap: 0.4rem;
}

.chip-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: var(--bg-tertiary);
  border-radius: 2px;
  color: var(--text-secondary);
}

/* Track Detail & Lyrics Viewer */
.track-detail-pane {
  background: var(--bg-secondary);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.track-header-banner {
  border-bottom: 1px solid var(--slate-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.track-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.track-display-title {
  font-size: 1.8rem;
  color: var(--gold-light);
}

.track-display-act {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--crimson-glow);
  text-transform: uppercase;
}

.track-tagline {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.track-specs-bar {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.spec-badge {
  color: var(--gold-primary);
}

/* Lyrics & Studio Tabs */
.lyrics-view-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-border);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lyrics-tabs {
  display: flex;
  gap: 0.5rem;
}

.lyric-tab-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--slate-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lyric-tab-btn.active {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  font-weight: bold;
}

.btn-copy-lyrics {
  background: var(--bg-tertiary);
  border: 1px solid var(--slate-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-copy-lyrics:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.lyrics-body {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.9;
  color: #e2e8f0;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 1rem;
}

.lyrics-body.studio-mode {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #a5f3fc;
  background: rgba(10, 12, 16, 0.7);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

.narrative-summary-box {
  display: none;
  line-height: 1.8;
  color: var(--text-secondary);
}

.prompt-inspector-box {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-primary);
  border: 1px solid var(--slate-border);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  color: #fef08a;
  white-space: pre-wrap;
}

/* The Virtues Matrix Table */
.matrix-wrap {
  overflow-x: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
}

.virtues-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.virtues-table th, .virtues-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.virtues-table th {
  background: #06080c;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.virtues-table tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

.virtues-table .col-virtue {
  font-family: var(--font-display);
  font-weight: 700;
  color: #6ee7b7;
}

.virtues-table .col-rot {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fca5a5;
}

.virtues-table .col-track {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-glow);
}

/* Vote Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-gold), 0 20px 50px rgba(0, 0, 0, 0.9);
  position: relative;
  animation: modalScale 0.3s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.vote-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.vote-opt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.vote-opt:hover {
  border-color: var(--gold-primary);
}

.vote-opt input {
  accent-color: var(--gold-primary);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #10b981;
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 2000;
}

/* Footer */
.site-footer {
  background: #040608;
  border-top: 1px solid var(--slate-border);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
