/* ==========================================================================
   Shift At Midnight - Official High-Fidelity Landing Page & WebGL Player UI
   Enhanced Horror Atmosphere, Full-Bleed Hero & Multi-Anchor Navigation System
   ========================================================================== */

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

:root {
  /* Color Palette Tokens */
  --bg-main: #040507;
  --bg-surface: #0a0c10;
  --bg-card: #10131b;
  --bg-card-hover: #171b26;
  --bg-glass: rgba(8, 10, 14, 0.92);

  --accent-yellow: #ffc107;
  --accent-gold: #ffb703;
  --accent-yellow-glow: rgba(255, 193, 7, 0.45);
  --accent-red: #e63946;
  --accent-red-glow: rgba(230, 57, 70, 0.4);

  --text-main: #f8f9fa;
  --text-muted: #95a1b0;
  --text-dim: #5a6575;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 193, 7, 0.5);

  /* Typography Scale */
  --font-display: 'Oswald', 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shadows & Transitions */
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 30px rgba(255, 193, 7, 0.3);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  background-color: var(--bg-main);
  position: relative;
  min-height: 100vh;
}

/* Atmospheric CRT Scanline & Dark Vignette Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
  background-size: 100% 100%, 100% 4px;
  pointer-events: none;
  z-index: 85;
  opacity: 0.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

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

/* ==========================================================================
   Header Navbar Component
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  transition: var(--transition-fast);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.brand-logo span.highlight {
  color: var(--accent-yellow);
  text-shadow: 0 0 15px var(--accent-yellow-glow);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 6px 14px 6px 32px;
  color: #fff;
  font-size: 0.85rem;
  width: 180px;
  transition: var(--transition-fast);
}

.search-input:focus {
  width: 230px;
  border-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.header-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--accent-yellow);
  text-shadow: 0 0 12px var(--accent-yellow-glow);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.btn-primary {
  background: var(--accent-yellow);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 2px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 18px rgba(255, 193, 7, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* ==========================================================================
   Left Vertical Timeline Navigation (100% Matching UI/02.webp)
   ========================================================================== */
.timeline-sidebar {
  position: fixed;
  top: 130px;
  left: var(--space-6);
  width: 200px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5, 20px);
  padding-left: 24px;
}

/* Vertical Connecting Line */
.timeline-track::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: 2px 0;
  transition: var(--transition-fast);
}

.timeline-node {
  position: absolute;
  left: -24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid var(--text-muted);
  transition: var(--transition-fast);
  z-index: 2;
}

/* Solid Yellow Rectangle Indicator (100% Match to UI reference image 01.webp / 02.webp!) */
.timeline-item.active .timeline-node {
  border-radius: 0%;
  width: 20px;
  height: 28px;
  left: -48px;
  top: -2px;
  background: var(--accent-yellow);
  border: none;
  box-shadow: 0 0 15px var(--accent-yellow-glow);
}

.timeline-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-item.active .timeline-label {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.timeline-item:hover .timeline-label {
  color: var(--accent-yellow);
}

/* ==========================================================================
   Main Content Layout Frame
   ========================================================================== */
.main-wrapper {
  margin-left: 210px;
  min-height: 100vh;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
}

.section-header {
  margin-bottom: var(--space-12);
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-yellow);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: var(--space-2);
  max-width: 720px;
  line-height: 1.7;
}

/* ==========================================================================
   Hero Section Component (Full Bleed Immersive Screen)
   ========================================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}

/* Background Image Container with Slow Ambient Zoom */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1.05);
  animation: heroBgZoom 25s ease-in-out infinite alternate;
  filter: brightness(0.92) contrast(1.1);
}

@keyframes heroBgZoom {
  0% {
    transform: scale(1.03) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(-10px, -10px);
  }
}

/* Dark Horror Gradient Shadows - Subtle edges to preserve full background picture */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(circle at 60% 45%, rgba(4, 5, 7, 0.1) 0%, rgba(4, 5, 7, 0.5) 65%, rgba(4, 5, 7, 0.95) 100%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.6) 0%, transparent 20%, transparent 75%, rgba(4, 5, 7, 1) 100%);
}

/* Ambient Canvas Particle Overlay (Ember & Fog FX) */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-content-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-badge-list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.badge-tag {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid var(--border-highlight);
  color: var(--accent-yellow);
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* Giant Heavy Display Title (Matching THE LAST OF US Part II UI Vibe!) */
.hero-title {
  font-family: var(--font-display);
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.9);
}

.hero-title .text-gold {
  color: var(--accent-yellow);
  text-shadow: 0 0 35px var(--accent-yellow-glow), 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-description {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: var(--space-8);
  line-height: 1.7;
  max-width: 620px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.9);
  background: rgba(4, 5, 7, 0.45);
  padding: 12px 18px;
  border-left: 3px solid var(--accent-yellow);
  border-radius: 0 4px 4px 0;
  backdrop-filter: blur(6px);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.steam-rating-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.rating-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: #4cbb17;
}

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

/* Floating Trailer Card (100% UI Match) */
.hero-trailer-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.hero-trailer-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

.trailer-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 30px var(--accent-yellow-glow);
  transition: var(--transition-fast);
}

.hero-trailer-card:hover .play-overlay-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #fff;
}

.trailer-caption {
  padding: var(--space-4);
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Story Section Component
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-8);
  position: relative;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-yellow);
}

.story-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Characters & Entities Section (New Dedicated Anchor Section!)
   ========================================================================== */
.character-tabs {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-4);
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--accent-yellow);
  color: #000;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-6);
}

.entity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.entity-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.25);
}

.entity-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
  filter: grayscale(30%);
  transition: var(--transition-fast);
}

.entity-card:hover .entity-avatar {
  filter: grayscale(0%);
}

.entity-content {
  padding: var(--space-6);
}

.entity-danger-badge {
  display: inline-block;
  background: rgba(230, 57, 70, 0.2);
  color: var(--accent-red);
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.entity-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
}

.entity-traits {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   Gameplay & Features Component
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-6);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: rgba(255, 193, 7, 0.12);
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: #fff;
}

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

/* ==========================================================================
   Game Tutorial & Survival Guide
   ========================================================================== */
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.guide-step-card {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-8);
  align-items: center;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-yellow);
  line-height: 1;
}

.step-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: #fff;
}

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

.step-image {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Media & Gallery Component (New Dedicated Anchor Section!)
   ========================================================================== */
.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.media-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: var(--transition-normal);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.media-item:hover {
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-glow);
}

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

.media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   Dev Blog & Update News
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-yellow);
  margin-bottom: var(--space-2);
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.blog-read-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   About Us Studio Component
   ========================================================================== */
.about-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.social-links-group {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* ==========================================================================
   System Specs & Store Matrix
   ========================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.specs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-8);
}

.specs-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td {
  padding: var(--space-3) 0;
  font-size: 0.9rem;
}

.specs-table td.label {
  color: var(--text-dim);
  font-weight: 600;
  width: 130px;
}

.specs-table td.val {
  color: var(--text-main);
}

/* ==========================================================================
   Protocols & Legal Anchor Section
   ========================================================================== */
.legal-accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-6);
}

.legal-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
}

.legal-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  margin-left: 210px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) var(--space-8) var(--space-6);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-3);
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Modals (PLAY & Legal Protocol Modals)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.game-modal-container {
  width: 94vw;
  height: 92vh;
  max-width: 1440px;
  background: #000;
  border: 1px solid var(--border-highlight);
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.game-modal-header {
  height: 48px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.game-modal-body {
  flex-grow: 1;
  position: relative;
  background: #000;
}

#game-loading-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.5s ease;
}

#game-loading-overlay .loading-bg {
  position: absolute;
  top: -5%; left: -5%; width: 110%; height: 110%;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.3);
  z-index: 1;
}

#game-loading-overlay .loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 193, 7, 0.2);
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-2);
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.loading-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.loading-progress {
  font-family: var(--font-code);
  font-size: 1.1rem;
  color: var(--accent-yellow);
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-yellow-glow);
}

.loading-lore {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-6);
  font-style: italic;
  letter-spacing: 1px;
}

/* ==========================================================================
   Advertising Slots Design Systems (Google Ads / Adsterra Integration)
   ========================================================================== */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-8) auto;
  position: relative;
  z-index: 10;
}

.ad-label {
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* Sidebar Skyscraper (160x600) */
.ad-sidebar-skyscraper {
  margin: var(--space-4) auto 0 auto;
  width: 100%;
}

.ad-placeholder-160x600 {
  width: 160px;
  height: 600px;
  background: rgba(10, 12, 16, 0.65);
  border: 1px dashed var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.ad-placeholder-160x600 span {
  padding: 0 var(--space-2);
}

/* Content In-Feed Leaderboard (728x90) */
.ad-infeed-leaderboard {
  max-width: 100%;
  padding: 0 var(--space-4);
}

.ad-placeholder-728x90 {
  width: 728px;
  height: 90px;
  max-width: 100%;
  background: rgba(10, 12, 16, 0.65);
  border: 1px dashed var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Game Modal Companion Ads (300x250 Layout) */
.game-modal-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  width: 100%;
  height: 100%;
}

.game-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

#unity-game-canvas {
  width: 100%;
  height: 100%;
}

.game-modal-sidebar-ad {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.ad-placeholder-300x250 {
  width: 300px;
  height: 250px;
  background: rgba(10, 12, 16, 0.85);
  border: 1px dashed var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-muted);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Responsive Ads Hide Rules */
@media (max-width: 1300px) {
  .game-modal-layout {
    grid-template-columns: 1fr;
  }
  .game-modal-sidebar-ad {
    display: none;
  }
}

@media (max-width: 1024px) {
  .ad-sidebar-skyscraper {
    display: none;
  }
}

.btn-close-modal {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--accent-red);
}

.legal-modal-container {
  width: 90vw;
  max-width: 880px;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-body {
  padding: var(--space-8);
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-modal-body h2 {
  color: #fff;
  font-family: var(--font-display);
  margin: var(--space-6) 0 var(--space-3);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .timeline-sidebar {
    display: none;
  }

  .main-wrapper,
  .site-footer {
    margin-left: 0;
  }

  .hero-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .story-grid,
  .about-box,
  .specs-grid,
  .legal-accordion-grid {
    grid-template-columns: 1fr;
  }

  .guide-step-card {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 var(--space-4);
  }

  .header-nav {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}