/* ==========================================
   Companion of Darkness S1 - Premium UI Design
   Dark Fantasy Game Website
   UI Designer: Refined Visual System
   ========================================== */

/* ==========================================
   DESIGN TOKENS / CSS VARIABLES
   ========================================== */
:root {
  /* Color System - Refined Dark Fantasy Palette */
  --bg-primary: #08080f;
  --bg-secondary: #0f0f1a;
  --bg-tertiary: #141425;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --bg-elevated: #181830;
  
  /* Accent Colors - Mystical Purple */
  --accent-primary: #9b7ce8;
  --accent-secondary: #c9a0ff;
  --accent-tertiary: #7b5bd8;
  --accent-glow: rgba(155, 124, 232, 0.4);
  --accent-soft: rgba(155, 124, 232, 0.12);
  --accent-red: #e84545;
  --accent-red-glow: rgba(232, 69, 69, 0.25);
  --accent-gold: #f0c040;
  
  /* Text Colors - Optimal Contrast */
  --text-primary: #ede8ff;
  --text-secondary: #9893b8;
  --text-muted: #63609a;
  --text-accent: #c9a0ff;
  
  /* Border & Shadow */
  --border-color: rgba(155, 124, 232, 0.15);
  --border-hover: rgba(155, 124, 232, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(155, 124, 232, 0.15);
  --shadow-glow-strong: 0 0 50px rgba(155, 124, 232, 0.25);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #9b7ce8 0%, #c9a0ff 50%, #9b7ce8 100%);
  --gradient-dark: linear-gradient(180deg, #08080f 0%, #0f0f1a 50%, #08080f 100%);
  --gradient-card: linear-gradient(145deg, #12121f 0%, #0f0f1a 100%);
  --gradient-card-hover: linear-gradient(145deg, #1a1a2e 0%, #12121f 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(155, 124, 232, 0.15) 0%, transparent 70%);
  
  /* Typography */
  --font-heading: 'Cinzel', 'Noto Serif SC', serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing Scale (8px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-tertiary);
  border-radius: 3px;
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ==========================================
   NAVIGATION - Refined
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(155, 124, 232, 0.12);
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 8, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 80px rgba(155, 124, 232, 0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition-base);
}

.nav-logo:hover .logo-icon {
  transform: rotate(360deg) scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  position: relative;
  padding: var(--space-2) 0;
  transition: var(--transition-fast);
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION - Cinematic & Immersive
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(155, 124, 232, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 69, 69, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(155, 124, 232, 0.06) 0%, transparent 50%),
    var(--bg-primary);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239b7ce8' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  opacity: 0;
  animation: particleFloat 8s infinite;
  box-shadow: 0 0 6px var(--accent-glow);
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  15% { opacity: 0.7; }
  85% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--space-8);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.75rem;
  background: rgba(155, 124, 232, 0.12);
  border: 1px solid rgba(155, 124, 232, 0.25);
  border-radius: 50px;
  color: var(--accent-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, #ede8ff 0%, #c9a0ff 35%, #9b7ce8 65%, #ede8ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite, fadeInUp 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

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

.hero-subtitle-cn {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-family: 'Noto Serif SC', serif;
  color: var(--accent-secondary);
  margin-bottom: var(--space-5);
  font-weight: 600;
  letter-spacing: 8px;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-8);
  line-height: 1.9;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  background: rgba(155, 124, 232, 0.08);
  border: 1px solid rgba(155, 124, 232, 0.18);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.hero-tag:hover {
  background: rgba(155, 124, 232, 0.15);
  border-color: rgba(155, 124, 232, 0.3);
  transform: translateY(-2px);
}

.hero-tag .tag-icon {
  color: var(--accent-primary);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

/* Buttons - Premium Design */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow), 0 0 60px rgba(155, 124, 232, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px var(--accent-glow), 0 0 80px rgba(155, 124, 232, 0.25);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-secondary);
  border: 2px solid rgba(155, 124, 232, 0.35);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(155, 124, 232, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(155, 124, 232, 0.15);
}

/* Hero Showcase - Cinematic Display */
.hero-showcase {
  position: relative;
  margin-top: var(--space-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(155, 124, 232, 0.2);
  box-shadow: 0 8px 50px rgba(155, 124, 232, 0.12), 0 0 100px rgba(155, 124, 232, 0.06);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-showcase img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-showcase:hover img {
  transform: scale(1.02);
}

.hero-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.showcase-label {
  display: inline-block;
  padding: 0.375rem 1.25rem;
  background: rgba(155, 124, 232, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(155, 124, 232, 0.3);
  border-radius: 50px;
  color: var(--accent-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

/* ==========================================
   SECTION STYLES - Consistent & Elegant
   ========================================== */
.section {
  padding: var(--space-20) var(--space-8);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: var(--space-4);
  position: relative;
  padding: 0 var(--space-4);
}

.section-label::before,
.section-label::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: var(--accent-primary);
  opacity: 0.5;
}

.section-label::before {
  left: -12px;
}

.section-label::after {
  right: -12px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: var(--space-5);
  letter-spacing: -0.5px;
}

.section-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(155, 124, 232, 0.25), transparent);
  margin: 0;
  border: none;
}

/* Dark Pattern Overlay */
.dark-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(155, 124, 232, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232, 69, 69, 0.025) 0%, transparent 50%);
  pointer-events: none;
}

/* ==========================================
   CARDS - Premium Glassmorphism
   ========================================== */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(155, 124, 232, 0.12);
  border: 1px solid rgba(155, 124, 232, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin-bottom: var(--space-5);
  color: var(--accent-primary);
  transition: var(--transition-base);
}

.card:hover .card-icon {
  background: rgba(155, 124, 232, 0.2);
  border-color: rgba(155, 124, 232, 0.35);
  transform: scale(1.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ==========================================
   CHARACTER CARDS -Elegant Profile Design
   ========================================== */
.character-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.character-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 50px rgba(155, 124, 232, 0.18);
  border-color: var(--border-hover);
}

.character-screenshot-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.character-info {
  padding: var(--space-6);
}

.character-role {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: rgba(155, 124, 232, 0.12);
  border: 1px solid rgba(155, 124, 232, 0.2);
  border-radius: 50px;
  color: var(--accent-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: 0.5px;
}

.character-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.character-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Character Img Placeholder (if no image) */
.character-img-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1a1040 0%, #2a1860 50%, #0f0f1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(155, 124, 232, 0.25);
  position: relative;
  overflow: hidden;
}

.character-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(155, 124, 232, 0.12), transparent 70%);
}

/* ==========================================
   TIMELINE - Sophisticated Chapter Display
   ========================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), rgba(155, 124, 232, 0.1));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--space-10);
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-dot {
  position: absolute;
  left: 24px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-glow);
  z-index: 1;
}

.timeline-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.timeline-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.timeline-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(155, 124, 232, 0.08);
  border: 1px solid rgba(155, 124, 232, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

/* ==========================================
   GALLERY - Premium Grid Layout
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 40px rgba(155, 124, 232, 0.18);
  border-color: var(--border-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 15, 0.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: #fff;
  font-size: 0.925rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   NEWS SECTION - Clean List Design
   ========================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.news-item {
  display: flex;
  gap: var(--space-6);
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  align-items: center;
}

.news-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateX(6px);
}

.news-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 72px;
  padding: var(--space-3);
  background: rgba(155, 124, 232, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(155, 124, 232, 0.12);
}

.news-date-day {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  font-family: var(--font-heading);
}

.news-date-month {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-1);
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
}

.news-link {
  color: var(--accent-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  transition: var(--transition-fast);
}

.news-link:hover {
  gap: var(--space-3);
}

/* ==========================================
   FAQ SECTION - Smooth Accordion
   ========================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(155, 124, 232, 0.25);
}

.faq-item.active {
  border-color: rgba(155, 124, 232, 0.35);
  box-shadow: 0 4px 20px rgba(155, 124, 232, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.025rem;
  background: var(--gradient-card);
  transition: var(--transition-fast);
  user-select: none;
}

.faq-question:hover {
  background: rgba(155, 124, 232, 0.06);
}

.faq-question .faq-toggle {
  color: var(--accent-primary);
  font-size: 1.4rem;
  transition: transform var(--transition-base);
  font-weight: 300;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(155, 124, 232, 0.1);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: rgba(155, 124, 232, 0.2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ==========================================
   RATING & REVIEWS - Trust Building
   ========================================== */
.rating-display {
  text-align: center;
  margin-bottom: var(--space-12);
}

.rating-score {
  font-size: 4.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-family: var(--font-heading);
}

.rating-stars {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin: var(--space-3) 0;
  letter-spacing: 4px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.925rem;
}

.rating-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.rating-tag {
  padding: 0.5rem 1.25rem;
  background: rgba(155, 124, 232, 0.08);
  border: 1px solid rgba(155, 124, 232, 0.18);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.review-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(155, 124, 232, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.review-meta {
  flex: 1;
}

.review-name {
  font-weight: 700;
  font-size: 1rem;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.825rem;
}

.review-stars {
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.75;
  font-style: italic;
  position: relative;
  padding-left: var(--space-5);
  border-left: 3px solid rgba(155, 124, 232, 0.3);
}

/* ==========================================
   VERSION HISTORY - Clean List
   ========================================== */
.version-list {
  max-width: 800px;
  margin: 0 auto;
}

.version-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.version-item:hover {
  border-color: var(--border-hover);
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.version-tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: rgba(155, 124, 232, 0.12);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 0.5px;
}

.version-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.version-changes {
  list-style: none;
  padding: 0;
}

.version-changes li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

.version-changes li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.75rem;
  top: 3px;
}

/* ==========================================
   FOOTER - Professional Layout
   ========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-16) var(--space-8) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-10);
  max-width: var(--max-width);
  margin: 0 auto;
  margin-bottom: var(--space-12);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

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

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.925rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-col ul li a:hover {
  color: var(--accent-secondary);
  padding-left: 6px;
}

.footer-brand {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
}

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

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(155, 124, 232, 0.08);
  border: 1px solid rgba(155, 124, 232, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ==========================================
   PAGE HEADER - Sub Page Hero
   ========================================== */
.page-header {
  position: relative;
  padding: 11rem var(--space-8) 5rem;
  text-align: center;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(155, 124, 232, 0.12) 0%, transparent 60%),
    var(--bg-primary);
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header .section-label {
  margin-bottom: var(--space-5);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: var(--space-5);
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  color: var(--accent-secondary);
}

.breadcrumb .separator {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ==========================================
   GAME SCREENSHOT COMPONENTS
   ========================================== */
.game-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
}

.game-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-screenshot:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 35px rgba(155, 124, 232, 0.15);
  transform: translateY(-6px);
}

.game-screenshot:hover img {
  transform: scale(1.03);
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.story-scene-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(155, 124, 232, 0.18);
  margin-top: var(--space-5);
  position: relative;
}

.story-scene-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-scene-image:hover img {
  transform: scale(1.02);
}

.story-scene-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(8, 8, 15, 0.7), transparent);
  pointer-events: none;
}

/* char-card-with-img */
.char-card-with-img .character-info {
  padding: var(--space-5);
}

/* ==========================================
   LIGHTBOX - Premium Image Viewer
   ========================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: lightboxFadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 100px rgba(155, 124, 232, 0.2);
}

.lightbox-close {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  border: none;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ==========================================
   BACK TO TOP - Smooth Scroll Button
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 52px;
  height: 52px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(155, 124, 232, 0.5);
  background: var(--accent-secondary);
}

/* ==========================================
   ANIMATIONS - Smooth Entrance Effects
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grid items */
.card-grid-2 .card:nth-child(1),
.card-grid-3 .card:nth-child(1),
.card-grid-4 .card:nth-child(1) {
  transition-delay: 0.1s;
}

.card-grid-2 .card:nth-child(2),
.card-grid-3 .card:nth-child(2),
.card-grid-4 .card:nth-child(2) {
  transition-delay: 0.2s;
}

.card-grid-3 .card:nth-child(3),
.card-grid-4 .card:nth-child(3) {
  transition-delay: 0.3s;
}

.card-grid-4 .card:nth-child(4) {
  transition-delay: 0.4s;
}

/* ==========================================
   RESPONSIVE DESIGN - Mobile First Approach
   ========================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 15, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: var(--space-5);
    gap: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(155, 124, 232, 0.08);
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .news-item {
    flex-direction: column;
    text-align: center;
  }
  
  .news-date {
    min-width: auto;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 52px;
  }

  .timeline-dot {
    left: 8px;
  }

  .section {
    padding: var(--space-12) var(--space-5);
  }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .screenshot-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-tag {
    font-size: 0.825rem;
    padding: 0.5rem 1rem;
  }

  .hero-tags {
    gap: var(--space-3);
  }

  .section-title {
    font-size: 1.875rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   GALLERY PLACEHOLDER - If no image
   ========================================== */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1040, #0f0f1a);
  color: var(--text-muted);
  font-size: 0.925rem;
}

.gallery-placeholder .placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  opacity: 0.4;
}

/* game-img class for gallery items */
.gallery-item img.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   ACCESSIBILITY - WCAG Compliant
   ========================================== */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn-primary {
    background: Highlight;
    color: HighlightText;
  }
  
  .card:hover {
    border-color: Highlight;
  }
}
