/* ==========================================================================
   VALDGIR - INVESTOR BRIEF & GAME PITCH - DESIGN SYSTEM & STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #07080d;
  --bg-secondary: #0f111a;
  --bg-card: rgba(17, 20, 31, 0.75);
  --bg-card-hover: rgba(24, 28, 44, 0.88);
  --bg-input: rgba(10, 12, 20, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);
  --accent-crimson: #ef4444;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-pink: #ec4899;

  --font-title: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.18);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(245, 158, 11, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(6, 182, 212, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(239, 68, 68, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #05060a 0%, #0c0e17 100%);
  background-attachment: fixed;
}

/* Ambient Background Grid */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-size: 45px 45px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: var(--transition-smooth);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ==========================================================================
   OST AUDIO PLAYER WIDGET (NAVBAR - PREMIUM DARK FANTASY CAPSULE)
   ========================================================================== */
.ost-player-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(20, 25, 42, 0.95) 0%, rgba(10, 12, 20, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 5px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 158, 11, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ost-player-widget:hover, .ost-player-widget.is-active {
  border-color: var(--accent-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ost-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ost-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ost-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
  border-color: var(--accent-gold);
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.ost-btn-play {
  background: linear-gradient(135deg, #ffd080 0%, #f59e0b 50%, #d97706 100%);
  color: #000;
  border-color: rgba(255, 255, 255, 0.4);
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.ost-btn-play:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffd080 40%, #f59e0b 100%);
  color: #000;
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
}

.ost-player-widget.is-active .ost-btn-play {
  animation: ost-pulse 2s infinite ease-in-out;
}

@keyframes ost-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.85); }
}

.ost-btn-mute {
  font-size: 0.85rem;
  border-color: transparent;
  background: transparent;
}

.ost-btn-mute:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ost-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 190px;
  overflow: hidden;
  padding-right: 4px;
}

.ost-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  overflow: hidden;
}

.ost-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.ost-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  letter-spacing: 0.2px;
}

/* Equalizer Bars Animation */
.ost-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  width: 16px;
  flex-shrink: 0;
}

.ost-equalizer span {
  display: block;
  width: 2.5px;
  background: linear-gradient(180deg, #ffd080 0%, #f59e0b 100%);
  border-radius: 1px;
  height: 3px;
  transition: height 0.2s ease;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.6);
}

.ost-equalizer.playing span:nth-child(1) {
  animation: eq-bounce 0.8s infinite ease-in-out alternate;
}
.ost-equalizer.playing span:nth-child(2) {
  animation: eq-bounce 0.5s infinite ease-in-out alternate 0.15s;
}
.ost-equalizer.playing span:nth-child(3) {
  animation: eq-bounce 0.9s infinite ease-in-out alternate 0.3s;
}
.ost-equalizer.playing span:nth-child(4) {
  animation: eq-bounce 0.6s infinite ease-in-out alternate 0.1s;
}

@keyframes eq-bounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

@media (max-width: 1200px) {
  .ost-track-info {
    display: none;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-symbol {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px var(--accent-gold));
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.btn-nav-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000 !important;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: var(--transition-smooth);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   HERO / PITCH HEADER
   ========================================================================== */
.pitch-hero {
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.18);
}

.badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.hero-main-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 20%, #ffe4a0 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #e2e8f0;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-logline {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Key Metrics Pill Bar */
.metrics-deck-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto 40px;
}

.metric-pill-item {
  background: rgba(18, 21, 33, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
}

.metric-pill-item:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(24, 28, 44, 0.85);
  transform: translateY(-2px);
}

.metric-pill-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-pill-val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero CTA buttons */
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.pitch-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header-centered {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.section-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   1. GAME PILLARS (USP)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.12);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 12px var(--accent-gold));
}

.pillar-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.container.wide-viewport-container {
  max-width: min(1760px, 94vw);
  width: 100%;
}

.models-category-selector {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 6px;
  background: rgba(10, 12, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(12px);
}

.btn-category-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-category-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-category-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.models-tabs-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-model-tab {
  background: rgba(18, 20, 32, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-model-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(28, 32, 50, 0.85);
  transform: translateY(-2px);
}

.btn-model-tab.active {
  color: #000;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.model-showcase-viewport {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 2.2fr 0.95fr;
  min-height: 760px;
  height: 76vh;
  max-height: 920px;
  position: relative;
}

@media (max-width: 1200px) {
  .model-showcase-viewport {
    grid-template-columns: 1.5fr 1fr;
    min-height: 640px;
    height: auto;
  }
}

@media (max-width: 960px) {
  .model-showcase-viewport {
    grid-template-columns: 1fr;
    min-height: 500px;
    height: auto;
  }
}

.showcase-media-stage {
  background: radial-gradient(circle at center, #141828 0%, #06070c 100%);
  position: relative;
  min-height: 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#webgl-canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: grab;
}

#webgl-canvas-container:active {
  cursor: grabbing;
}

/* 3D Loading Overlay */
.viewer-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.4s ease;
  pointer-events: all;
}

.viewer-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner-box {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.loading-model-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.loading-progress-track {
  width: 260px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #06b6d4);
  border-radius: 9999px;
  transition: width 0.2s ease;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.loading-progress-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* 3D Floating HUD Toolbar */
.viewer-3d-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 20;
  pointer-events: none;
}

.toolbar-group {
  display: flex;
  gap: 8px;
  pointer-events: all;
  background: rgba(10, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.btn-hud {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-hud:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-hud.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.select-hud-light {
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

/* 3D Interaction Hint Badge */
.viewer-interaction-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 12, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.showcase-info-panel {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: rgba(14, 16, 26, 0.88);
}

.model-header-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-role-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--model-accent, var(--accent-gold));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.model-title-display {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.model-desc-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Specs Sheet Table */
.specs-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: var(--radius-md);
}

.spec-entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-v {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   3. CONCEPT ART & GALLERY (LIGHTBOX)
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-filter:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-filter.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

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

.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.15);
}

.art-thumb-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.art-card:hover .art-img {
  transform: scale(1.05);
}

.art-placeholder-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  position: absolute;
  inset: 0;
}

.art-placeholder-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.art-card-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.art-card-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.art-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.art-card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox-container {
  max-width: 1000px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
}

.lightbox-img-stage {
  width: 100%;
  max-height: 60vh;
  min-height: 350px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.lightbox-caption-bar {
  padding: 24px 30px;
  background: rgba(14, 16, 26, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-close-lightbox {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10;
}

.btn-close-lightbox:hover {
  background: var(--accent-crimson);
  border-color: transparent;
}

/* ==========================================================================
   4. AUDIO & OST PLAYER SHOWCASE
   ========================================================================== */
.audio-player-deck {
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.85) 0%, rgba(12, 14, 24, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card), 0 0 30px rgba(245, 158, 11, 0.08);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 880px) {
  .audio-player-deck {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.audio-track-info-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audio-now-playing-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-active-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.audio-active-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Waveform Visualizer Simulation */
.waveform-bars-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  padding: 10px 0;
}

.wave-bar {
  flex: 1;
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  height: 20%;
  transition: height 0.15s ease, background-color 0.3s ease;
}

.audio-player-deck.playing .wave-bar {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  animation: wavePulse 1.2s infinite ease-in-out alternate;
}

@keyframes wavePulse {
  0% { height: 15%; }
  50% { height: 95%; }
  100% { height: 30%; }
}

/* Audio Controls Bar */
.audio-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.btn-audio-main-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: var(--transition-smooth);
}

.btn-audio-main-play:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.audio-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-scrubber {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  cursor: pointer;
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Tracklist */
.tracklist-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-item-card {
  background: rgba(10, 12, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.track-item-card:hover {
  background: rgba(24, 28, 44, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.track-item-card.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
}

.track-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-play-icon {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.track-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.track-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.track-item-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   5. ROADMAP & MILESTONES
   ========================================================================== */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
}

.timeline-phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-phase-card.done {
  border-color: rgba(16, 185, 129, 0.4);
}

.timeline-phase-card.current {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.phase-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.timeline-phase-card.done .phase-status-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.timeline-phase-card.current .phase-status-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.timeline-phase-card.upcoming .phase-status-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phase-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.phase-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.milestones-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.milestones-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   6. FINANCIALS & INVESTMENT ASK
   ========================================================================== */
.financials-deck-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .financials-deck-wrap {
    padding: 24px;
  }
}

.financials-top-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.fin-summary-card {
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.fin-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fin-val {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
}

/* Multi-segment budget bar */
.budget-stacked-bar {
  height: 20px;
  width: 100%;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.budget-segment {
  height: 100%;
  transition: width 0.6s ease;
}

.budget-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.budget-cat-card {
  background: rgba(10, 12, 20, 0.5);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--cat-color, var(--accent-gold));
  border-radius: var(--radius-sm);
  padding: 16px;
}

.budget-cat-pct {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.budget-cat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.budget-cat-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ==========================================================================
   7. INVESTOR CONTACT & NDA REQUEST FORM
   ========================================================================== */
.contact-section-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(22, 26, 42, 0.95) 0%, rgba(12, 14, 22, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.12);
}

@media (max-width: 600px) {
  .contact-section-wrap {
    padding: 24px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.custom-input, .custom-textarea, .custom-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.custom-input:focus, .custom-textarea:focus, .custom-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
.main-footer {
  text-align: center;
  padding: 60px 0 80px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}

.toast {
  background: rgba(18, 20, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-crimson); }

/* ==========================================================================
   FABUŁA & BIOMY - DESIGN SYSTEM
   ========================================================================== */
.story-synopsis-box {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.85) 0%, rgba(10, 12, 20, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

.story-synopsis-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-gold) 0%, transparent 100%);
}

.story-synopsis-quote {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.story-synopsis-text {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.8;
}

/* Biomes Grid & Cards */
.biomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

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

.biome-card {
  background: rgba(15, 18, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
}

.biome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--biome-color, var(--accent-gold));
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.biome-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px var(--biome-glow, rgba(245, 158, 11, 0.2));
}

.biome-card:hover::before {
  opacity: 1;
  height: 6px;
}

.biome-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.biome-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--biome-color, #fff);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.biome-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
}

.biome-title-group {
  margin-bottom: 16px;
}

.biome-name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.biome-subtitle {
  font-size: 0.9rem;
  color: var(--biome-color, var(--accent-gold));
  font-weight: 500;
}

.biome-quote-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid var(--biome-color, var(--accent-gold));
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.biome-description {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 24px;
}

.biome-meta-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.biome-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.biome-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.biome-hazards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.biome-hazard-tag {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  color: #e2e8f0;
}

.biome-gameplay-modifier {
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-gold);
}

.biome-boss-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffd080;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.biome-boss-tag:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

/* ==========================================================================
   BIOMES WORKSPACE LAYOUT & LEFT SIDEBAR MENU
   ========================================================================== */
.biomes-workspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1080px) {
  .biomes-workspace {
    grid-template-columns: 1fr;
  }
}

.biomes-sidebar-panel {
  position: sticky;
  top: 90px;
  background: rgba(12, 15, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.sidebar-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu-icon {
  font-size: 1.6rem;
}

.sidebar-menu-title-wrap {
  display: flex;
  flex-direction: column;
}

.sidebar-menu-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.sidebar-menu-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.biomes-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1080px) {
  .biomes-sidebar-panel {
    position: relative;
    top: 0;
  }
  .biomes-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
}

.biome-sidebar-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.biome-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(4px);
}

@media (max-width: 1080px) {
  .biome-sidebar-btn {
    white-space: nowrap;
  }
  .biome-sidebar-btn:hover {
    transform: none;
  }
}

.biome-sidebar-btn.active {
  background: var(--btn-active-bg, rgba(245, 158, 11, 0.15));
  border-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--btn-active-color, var(--accent-gold));
  color: #fff;
  box-shadow: 0 4px 20px -2px var(--btn-active-glow, rgba(245, 158, 11, 0.25));
}

.biome-sidebar-btn .btn-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.biome-sidebar-btn .btn-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.biome-sidebar-btn .btn-name-wrap {
  display: flex;
  flex-direction: column;
}

.biome-sidebar-btn .btn-biome-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.biome-sidebar-btn .btn-biome-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.biome-sidebar-btn .btn-loc-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 9999px;
  color: var(--btn-active-color, var(--accent-gold));
  white-space: nowrap;
}

/* ==========================================================================
   LOKACJE BIOMOWE (LOCATIONS SHOWCASE)
   ========================================================================== */
.biome-locations-wrapper {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.btn-toggle-locations {
  width: 100%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.btn-toggle-locations:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

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

.location-card {
  background: rgba(12, 15, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--biome-color, #10b981);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.location-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: var(--biome-color, #10b981);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.15);
}

.location-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-name {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.location-type {
  font-size: 0.82rem;
  color: var(--biome-color, #10b981);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.location-num-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 6px;
  color: #94a3b8;
  white-space: nowrap;
}

.location-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.location-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.location-mechanic-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #ffd080;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.location-enemies-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.location-enemies-pill {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* ==========================================================================
   8. FABULA.MD EXTRA UI COMPONENTS (HEROES, 6-ACTS, GAME SYSTEMS)
   ========================================================================== */

/* Protagonists (3 Dziedzice) UI */
.heroes-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.hero-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-select-card:hover {
  transform: translateY(-4px);
  border-color: var(--hero-accent, var(--accent-gold));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--hero-accent, var(--accent-gold-glow));
}

.hero-select-card.active {
  border-color: var(--hero-accent, var(--accent-gold));
  background: linear-gradient(145deg, rgba(22, 26, 42, 0.95), rgba(15, 18, 28, 0.98));
  box-shadow: 0 0 25px var(--hero-accent, var(--accent-gold-glow));
}

/* ==========================================================================
   PROTAGONISTS FULL SHOWCASE (ALL 3 HEROES VISIBLE WITH 10 COMPACT SKILLS)
   ========================================================================== */
.all-heroes-showcase-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-full-showcase-card {
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.95), rgba(12, 14, 22, 0.98));
  border: 1px solid var(--hero-accent, var(--border-subtle));
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-showcase-main-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .hero-showcase-main-grid {
    grid-template-columns: 1fr;
  }
}

.hero-big-portrait-frame {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--hero-accent, var(--accent-gold));
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--hero-accent, var(--accent-gold-glow));
}

.hero-big-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.hero-full-showcase-card:hover .hero-big-portrait-img {
  transform: scale(1.04);
}

.hero-big-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(7,8,13,0.9) 100%);
  pointer-events: none;
}

.hero-portrait-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--hero-accent, var(--accent-gold));
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.hero-showcase-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-class-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--hero-accent, var(--accent-gold));
  letter-spacing: 1.5px;
}

.hero-showcase-name {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
}

.hero-role-pill {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.04);
}

.hero-showcase-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.hero-roles-split-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.role-split-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.role-split-label {
  color: var(--accent-gold);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* 10 Compact Weapon Skills Block */
.hero-skills-block {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.hero-skills-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.skills-heading-icon {
  font-size: 1.4rem;
}

.skills-heading-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: #fff;
}

.skills-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.skill-compact-card {
  background: rgba(10, 12, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.skill-compact-card:hover {
  border-color: var(--hero-accent, var(--accent-gold));
  background: rgba(20, 26, 44, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.skill-mini-thumb-frame {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  position: relative;
}

.skill-mini-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill-mini-num {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-top-left-radius: 4px;
}

.skill-compact-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-compact-title {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.skill-compact-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   GŁÓWNY ANTAGONISTA (KRWAWY Z) SHOWCASE
   ========================================================================== */
.antagonist-showcase-card {
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.15) 0%, rgba(12, 14, 22, 0.98) 70%);
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.25);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.antagonist-badge-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.pulse-dot-red {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse 2s infinite ease-in-out;
}

.antagonist-hero-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
}

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

.antagonist-big-img-frame {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 2px solid #ef4444;
  background: #000;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.35);
}

.antagonist-big-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.antagonist-showcase-card:hover .antagonist-big-img {
  transform: scale(1.05);
}

.antagonist-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(10,12,20,0.9) 100%);
  pointer-events: none;
}

.antagonist-stat-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.antagonist-level-tag {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #ef4444;
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.antagonist-hp-tag {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.antagonist-info-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.antagonist-main-name {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 40%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.antagonist-title-tag {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #ffd080;
  letter-spacing: 0.5px;
}

.antagonist-location-pill {
  font-size: 0.9rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #ef4444;
  width: fit-content;
}

.antagonist-quote-box {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.05rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
}

.antagonist-lore-text {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.antagonist-phases-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
}

.antagonist-phases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.antagonist-phase-item {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid #ef4444;
}

.antagonist-threats-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
}

.antagonist-threats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* ==========================================================================
   4 SŁOWA MOCY & BAZA 32 SYLAB
   ========================================================================== */
.words-of-power-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.word-of-power-card {
  background: rgba(10, 12, 20, 0.8);
  border: 1px solid var(--wp-accent, var(--accent-gold));
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.word-of-power-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--wp-accent);
}

.wp-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-icon {
  font-size: 1.8rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wp-accent);
}

.wp-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
}

.wp-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--wp-accent);
  text-transform: uppercase;
}

.wp-hands-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wp-hand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.wp-hand-label {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.wp-syllables-pills {
  display: flex;
  gap: 4px;
}

.wp-syl-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #ffd080;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.wp-aura-tag {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-style: italic;
}

.wp-bonus-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--wp-accent);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.4;
  margin-top: auto;
}

/* 32 Syllables Catalog */
.syllables-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.syllables-cat-box {
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
}

.syllables-cat-header {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.syllables-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.syllable-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.syllable-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 44px;
  text-align: center;
}

.syllable-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.syllable-ring-name {
  font-size: 0.82rem;
  color: #fff;
}

.syllable-effect {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* 6-Act Campaign Timeline UI */
.acts-nav-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.btn-act-tab {
  background: rgba(15, 18, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: #94a3b8;
  font-family: var(--font-title);
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-act-tab:hover {
  color: #fff;
  border-color: var(--act-accent, var(--accent-gold));
  background: rgba(255, 255, 255, 0.05);
}

.btn-act-tab.active {
  color: #fff;
  border-color: var(--act-accent, var(--accent-gold));
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(15, 18, 28, 0.9));
  box-shadow: 0 0 15px var(--act-accent-glow, rgba(245, 158, 11, 0.3));
}

.act-detail-card {
  background: linear-gradient(145deg, rgba(22, 26, 42, 0.95), rgba(12, 14, 22, 0.98));
  border: 1px solid var(--act-accent, var(--accent-gold));
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.act-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.act-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--act-accent, var(--accent-gold));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--act-accent, var(--accent-gold));
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.act-title-large {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 900;
  margin-top: 6px;
}

.act-subtitle-text {
  font-size: 1rem;
  color: var(--text-muted);
}

.act-phases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.act-phase-item {
  background: rgba(10, 12, 20, 0.6);
  border-left: 4px solid var(--act-accent, var(--accent-gold));
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.act-phase-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #f1f5f9;
  font-weight: 700;
  margin-bottom: 4px;
}

.act-phase-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}

.act-highlights-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.act-highlight-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.act-highlight-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.act-highlight-value {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Game Systems & USP Showcase */
.systems-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.system-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.system-card-icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.system-card-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 800;
}

.system-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.voice-cmds-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.voice-cmd-item {
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.voice-phrase {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #a855f7;
  font-weight: 700;
  margin-bottom: 4px;
}

.voice-action {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.ring-slots-visualizer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.ring-slot-pill {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  font-size: 1.1rem;
  color: #ffd080;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.gauntlet-domains-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.gauntlet-domain-item {
  background: rgba(10, 12, 20, 0.6);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}

.domain-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.domain-spells {
  color: #94a3b8;
}

/* Skill Card Thumbnail Image */
.skill-card-img-wrap {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  position: relative;
}

.skill-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.skill-card:hover .skill-card-img {
  transform: scale(1.06);
}

/* Biome Card Header Banner */
.biome-card-banner {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.biome-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.biome-card:hover .biome-card-img {
  transform: scale(1.05);
}

.biome-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,12,20,0.9) 100%);
  pointer-events: none;
}

/* Game Systems Image Banner */
.system-img-banner {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  position: relative;
}

.system-img-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.system-img-banner.gauntlets-full-banner {
  background: #060810;
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.15);
}

.system-img-banner.gauntlets-full-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.system-feature-card:hover .system-img-banner img {
  transform: scale(1.02);
}

/* Act Boss Showcase Banner */
.act-boss-banner {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  background: #000;
}

.act-boss-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.act-boss-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,12,20,0.95) 100%);
  font-family: var(--font-title);
  color: #ef4444;
  font-size: 1.15rem;
  font-weight: 800;
}

/* Bestiary Concept Art Section */
.bestiary-section-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bestiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.bestiary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bestiary-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
}

.bestiary-img-frame {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.bestiary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bestiary-card:hover .bestiary-img {
  transform: scale(1.05);
}

.bestiary-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.bestiary-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.bestiary-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   8. HERO CINEMATIC VIDEO (PURE SILENT LOOP AS HERO HEADER)
   ========================================================================== */
.pitch-hero-video-mode {
  padding: 30px 0 50px;
  text-align: center;
  position: relative;
}

.video-showcase-pure {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(245, 158, 11, 0.18);
  aspect-ratio: 16 / 9;
  max-height: 740px;
  margin-bottom: 30px;
}

.hero-cinematic-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.metrics-deck-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 20px 0 10px;
  width: 100%;
}

.metric-pill-item {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-pill-item:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

.metric-pill-highlight {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(145deg, rgba(26, 22, 18, 0.95), rgba(14, 18, 28, 0.95));
}

.metric-pill-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.metric-pill-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}

/* ==========================================================================
   9. PIĘĆ MIECZY VALDGIRA (PENTAGRAM SWORDS SHOWCASE - SINGLE LINE ROW)
   ========================================================================== */
.swords-pentagram-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.sword-showcase-card {
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.95), rgba(12, 14, 22, 0.98));
  border: 1px solid var(--sword-accent, var(--accent-gold));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sword-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px var(--sword-accent);
}

.sword-img-frame {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sword-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.sword-showcase-card:hover .sword-card-img {
  transform: scale(1.08);
}

.sword-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(10,12,20,0.85) 100%);
  pointer-events: none;
}

.sword-element-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--sword-accent);
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.sword-num-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.sword-card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sword-card-title {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.sword-biome-tag {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.3;
}

.sword-quote-pill {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 0.74rem;
  color: #ffd080;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--sword-accent);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.sword-lore-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.sword-mechanic-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--sword-accent);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-top: auto;
}

.sword-mechanic-label {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .swords-pentagram-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* ==========================================================================
   10. GŁÓWNY ANTAGONISTA: KRWAWY Z (FULL-WIDTH EPIC SHOWCASE)
   ========================================================================== */
.antagonist-showcase-card.antagonist-fullwidth-mode {
  background: linear-gradient(180deg, rgba(30, 10, 16, 0.98) 0%, rgba(15, 6, 10, 0.99) 100%);
  border: 2px solid rgba(239, 68, 68, 0.6);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  width: 100%;
}

.antagonist-badge-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pulse-dot-red {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.antagonist-fullwidth-art-block {
  width: 100%;
  background: radial-gradient(circle at center, #26050b 0%, #080204 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 12px 35px rgba(0, 0, 0, 0.8);
  margin-bottom: 30px;
}

.antagonist-fullwidth-img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}

.antagonist-showcase-card:hover .antagonist-fullwidth-img {
  transform: scale(1.015);
}

.antagonist-art-floating-stats {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(10, 3, 6, 0.95);
  border-top: 1px solid rgba(239, 68, 68, 0.35);
  box-sizing: border-box;
}

.antagonist-stat-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.antagonist-level-tag {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
}

.antagonist-hp-tag {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
}

.antagonist-location-pill {
  font-size: 0.9rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #ef4444;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.antagonist-dossier-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.antagonist-dossier-col {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.antagonist-tag-nemezis {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.antagonist-main-name {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.antagonist-title-tag {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #ef4444;
  font-weight: 600;
}

.antagonist-quote-box {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 0.95rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.antagonist-lore-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.dossier-col-heading {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.antagonist-phases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.antagonist-phase-item {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
  padding-left: 10px;
  border-left: 2px solid #ef4444;
}

.antagonist-threats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: #cbd5e1;
}

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

/* ==========================================================================
   10. BIOMES & CAVES TOPOGRAPHY MATRIX DIAGRAM
   ========================================================================== */
.diagram-matrix-box {
  background: radial-gradient(circle at 50% 0%, rgba(30, 20, 45, 0.75), rgba(10, 12, 20, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.12);
  position: relative;
  overflow: hidden;
}

.diagram-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.diagram-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.diagram-heading {
  font-family: var(--font-title);
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: 6px;
}

.diagram-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 760px;
  line-height: 1.5;
}

.diagram-stats-pill {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #f1f5f9;
  white-space: nowrap;
}

/* Hub Central Node */
.diagram-hub-node {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(20, 15, 10, 0.85));
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 28px;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-hub-core {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.diagram-hub-icon {
  font-size: 2.2rem;
  animation: pulse-glow 2.5s infinite alternate;
}

.diagram-hub-info h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #ffd080;
  margin-bottom: 3px;
}

.diagram-hub-info p {
  font-size: 0.84rem;
  color: #cbd5e1;
}

/* Branching Grid (6 Biomes) */
.diagram-branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.diagram-branch-card {
  background: rgba(13, 16, 26, 0.85);
  border: 1px solid var(--biome-color, rgba(255, 255, 255, 0.15));
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.diagram-branch-card:hover {
  transform: translateY(-4px);
  border-color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--biome-glow, rgba(255, 255, 255, 0.2));
}

.diagram-branch-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diagram-branch-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.diagram-branch-titles {
  display: flex;
  flex-direction: column;
}

.diagram-branch-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--biome-color, var(--accent-gold));
  text-transform: uppercase;
  font-weight: 700;
}

.diagram-branch-name {
  font-family: var(--font-title);
  font-size: 1.12rem;
  color: #fff;
  margin: 1px 0;
}

.diagram-branch-elem {
  font-size: 0.76rem;
  color: #94a3b8;
}

.diagram-surface-row {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diagram-surface-tag {
  font-weight: 700;
  color: #f1f5f9;
}

.diagram-surface-count {
  color: #94a3b8;
  font-size: 0.76rem;
}

.diagram-caves-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diagram-caves-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 700;
}

.diagram-caves-chips {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.diagram-cave-chip {
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--biome-color, var(--accent-gold));
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.diagram-cave-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--biome-color, var(--accent-gold));
}

.cave-chip-text {
  font-weight: 600;
}

.diagram-branch-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--biome-color, var(--accent-gold));
  text-align: right;
}

/* Zone Filter Tabs in Locations Section */
.zone-tab-btn {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zone-tab-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.zone-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(14, 18, 28, 0.95));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* Cave Card Variant */
.location-card-cave {
  background: radial-gradient(circle at 100% 0%, rgba(35, 15, 30, 0.6), rgba(12, 14, 22, 0.95)) !important;
  border-color: rgba(236, 72, 153, 0.35) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 15px rgba(236, 72, 153, 0.08) !important;
}

.location-type-cave-badge {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #f472b6 !important;
  border: 1px solid rgba(236, 72, 153, 0.35) !important;
}

.cave-badge-glow {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================
   NPC & POSTACIE SHOWCASE STYLES
   ========================================== */
.npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.npc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
}

.npc-card:hover {
  transform: translateY(-5px);
  border-color: var(--npc-accent, var(--accent-gold));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.15);
}

.npc-image-frame {
  position: relative;
  width: 100%;
  height: 380px;
  background: radial-gradient(circle at 50% 40%, rgba(30, 41, 59, 0.6), rgba(10, 12, 20, 0.95));
  overflow: hidden;
  cursor: pointer;
}

.npc-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 14px;
}

.npc-card:hover .npc-image-frame img {
  transform: scale(1.05);
}

.npc-image-overlay-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 12, 20, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.npc-card:hover .npc-image-overlay-btn {
  opacity: 1;
  transform: translateY(0);
}

.npc-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.npc-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.npc-faction-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.npc-location-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.npc-name {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #fff;
  margin: 6px 0 4px;
  line-height: 1.3;
}

.npc-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--npc-accent, var(--accent-gold));
  margin-bottom: 14px;
}

.npc-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid var(--npc-accent, var(--accent-gold));
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
  line-height: 1.5;
}

.npc-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.npc-tags-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.npc-tag-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Lightbox Modal */
.npc-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.npc-lightbox-modal.hidden {
  display: none;
  opacity: 0;
}

.npc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.9);
  backdrop-filter: blur(12px);
}

.npc-lightbox-dialog {
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
  padding: 28px;
}

.npc-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.npc-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: rotate(90deg);
}

.npc-lightbox-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.npc-lightbox-image {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.5), rgba(10, 12, 20, 0.9));
  padding: 16px;
}

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

