/* ==========================================================================
   Mike Singleton Fan Page - style.css
   Visual identity: dawn breaks over the realm of Ice, panoramic scale in 48K.
   Background: #060a12 | Accent: #7ab8f5 | Font: Lora 700
   Advanced CSS: multi-layer gradient stacking with scroll parallax
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #060a12;
  --bg-mid:        #0a1420;
  --bg-card:       #0d1830;
  --bg-alt:        #0f1e35;
  --text:          #d4e4f7;
  --text-muted:    #6a8aaa;
  --accent:        #7ab8f5;
  --accent-dim:    #3a6a9a;
  --secondary:     #f0f4ff;
  --gold:          #c8a84b;
  --border:        #1e3050;
  --border-glow:   #2a5080;
  --font-heading:  'Lora', Georgia, serif;
  --font-body:     'Lora', Georgia, serif;
  --nav-height:    60px;
  --container-max: 1100px;
  --scroll-y:      0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: var(--secondary);
  outline: none;
}

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover { color: var(--secondary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
  background: rgba(122, 184, 245, 0.08);
}

.nav-link--active,
.nav-link[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.burger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   HERO - Panoramic Landscape (Lords of Midnight CSS technique)
   Multi-layer gradient stacking: sky gradient + horizon mist + ground gradient
   CSS scroll-behavior parallax via --scroll-y custom property
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Layer 1: sky (top) - deep midnight blue fading to dawn */
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      #020408 0%,
      #060a12 15%,
      #0a1525 35%,
      #0f2040 55%,
      #152840 65%,
      #1a304a 72%,
      #204a60 80%,
      #2a5a70 85%,
      #3a7080 88%,
      #4a8090 90%
    );
  transform: translateY(calc(var(--scroll-y) * -0.35px));
  will-change: transform;
}

/* Layer 2: horizon mist - warm glow at the dawn line */
.hero-horizon {
  position: absolute;
  inset: 0;
  background:
    /* Warm dawn glow at horizon (87-92% from top) */
    radial-gradient(
      ellipse 120% 8% at 50% 89%,
      rgba(122, 184, 245, 0.25) 0%,
      rgba(200, 168, 75, 0.12) 40%,
      transparent 80%
    ),
    /* horizon band */
    linear-gradient(
      to bottom,
      transparent 80%,
      rgba(90, 140, 200, 0.15) 86%,
      rgba(122, 184, 245, 0.3) 88%,
      rgba(90, 140, 180, 0.2) 90%,
      transparent 95%
    );
  transform: translateY(calc(var(--scroll-y) * -0.2px));
  will-change: transform;
}

/* Layer 3: distant mountains silhouette */
.hero-mountains {
  position: absolute;
  inset: 0;
  /* Jagged mountain profile using clip-path */
  background: #0a1828;
  clip-path: polygon(
    0% 100%, 0% 92%, 2% 88%, 4% 91%, 6% 85%, 9% 88%, 11% 83%,
    13% 87%, 15% 80%, 17% 84%, 20% 77%, 22% 82%, 24% 75%, 27% 80%,
    29% 73%, 31% 78%, 34% 71%, 36% 76%, 38% 69%, 40% 74%, 43% 67%,
    45% 72%, 47% 65%, 50% 70%, 52% 63%, 54% 68%, 56% 61%, 59% 66%,
    61% 59%, 63% 64%, 65% 57%, 68% 62%, 70% 56%, 72% 61%, 74% 54%,
    77% 59%, 79% 52%, 81% 57%, 83% 51%, 85% 56%, 87% 50%, 89% 55%,
    91% 49%, 93% 54%, 95% 48%, 97% 53%, 99% 47%, 100% 52%, 100% 100%
  );
  transform: translateY(calc(var(--scroll-y) * -0.12px));
  will-change: transform;
}

/* Layer 4: mid-distance ridgeline */
.hero-ridge {
  position: absolute;
  inset: 0;
  background: #0d1e30;
  clip-path: polygon(
    0% 100%, 0% 94%, 3% 91%, 6% 94%, 9% 90%, 13% 93%, 17% 89%,
    21% 92%, 25% 88%, 29% 91%, 33% 87%, 37% 90%, 41% 86%, 45% 89%,
    49% 85%, 53% 88%, 57% 84%, 61% 87%, 65% 83%, 69% 86%, 73% 82%,
    77% 85%, 81% 81%, 85% 84%, 89% 80%, 93% 83%, 97% 79%, 100% 82%,
    100% 100%
  );
  transform: translateY(calc(var(--scroll-y) * -0.06px));
  will-change: transform;
}

/* Layer 5: foreground ground - icy terrain */
.hero-ground {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      #040810 0%,
      #060c18 30%,
      transparent 60%
    );
  transform: translateY(calc(var(--scroll-y) * 0.05px));
  will-change: transform;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 6rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.05;
  color: var(--secondary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 60px rgba(122, 184, 245, 0.3);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-block .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
}

.stat-block .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(122, 184, 245, 0.1);
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   Site Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.site-section:last-child { border-bottom: none; }

.site-section--alt {
  background: var(--bg-mid);
}

.section-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   History Body
   -------------------------------------------------------------------------- */
.history-body p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

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

.history-chapter {
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Section Image Float
   -------------------------------------------------------------------------- */
.section-image {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 280px;
  width: 100%;
}

.section-image img {
  width: 100%;
  border: 1px solid var(--border);
  padding: 6px;
  background: var(--bg-card);
}

.section-image figcaption {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
  line-height: 1.4;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* --------------------------------------------------------------------------
   Screenshot Strip (index page)
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 2rem 0;
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.screenshot-strip figure img {
  aspect-ratio: unset;
  object-fit: contain;
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   Trivia / Callout
   -------------------------------------------------------------------------- */
.trivia {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.93rem;
  font-style: italic;
  color: var(--text);
}

.trivia p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Dev Quote
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(200, 168, 75, 0.06);
  border-radius: 0 4px 4px 0;
}

blockquote.dev-quote p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

blockquote.dev-quote cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

blockquote.dev-quote cite::before { content: '- '; }

/* --------------------------------------------------------------------------
   Game Cards (games.html, gallery.html)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

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

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

.card-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: var(--bg-mid);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.7rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.year {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

/* --------------------------------------------------------------------------
   Gallery Grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-group-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.gallery-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item--portrait {
  aspect-ratio: 3/4;
}

.gallery-item--landscape {
  aspect-ratio: 4/3;
}

.gallery-item--square {
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: var(--bg-card);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 10, 18, 0.85);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.4rem 0.6rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Video Embeds
   -------------------------------------------------------------------------- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.video-card .video-embed {
  border: none;
  border-radius: 0;
}

.video-info {
  padding: 0.9rem 1rem;
}

.video-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.video-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.video-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.video-category-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--secondary);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.video-category-heading:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Resources
   -------------------------------------------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.resource-item {
  display: grid;
  grid-template-columns: minmax(160px, 180px) 1fr;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  align-items: start;
}

.resource-name {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.88rem;
  line-height: 1.4;
}

.resource-name a {
  font-weight: 600;
}

.resource-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Flagship / Deep Dive
   -------------------------------------------------------------------------- */
.flagship-hero {
  margin: -0.5rem 0 2.5rem;
}

.flagship-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: center top;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px;
}

.flagship-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.flagship-section:last-child { border-bottom: none; }

.flagship-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--secondary);
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.flagship-subtitle {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.flagship-body {
  font-size: 1rem;
  line-height: 1.85;
}

.flagship-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  margin: 2.5rem 0 0.8rem;
}

.flagship-body p {
  margin-bottom: 1.2rem;
}

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

.flagship-screenshot {
  margin: 2rem 0;
}

.flagship-screenshot img {
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  padding: 6px;
  background: var(--bg-card);
}

.flagship-screenshot figcaption {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Play Methods
   -------------------------------------------------------------------------- */
.play-method {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.play-method-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.method-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 3px;
}

.method-badge--official {
  background: var(--accent);
  color: var(--bg);
}

.method-badge--emulation {
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.method-badge--legal {
  background: #2a4a20;
  border: 1px solid #4a8a40;
  color: #8aee8a;
}

.play-method h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary);
}

.play-method ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.play-method ol li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Modern Scene Cards
   -------------------------------------------------------------------------- */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.modern-card--featured {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(200, 168, 75, 0.08);
}

.modern-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.modern-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--secondary);
  line-height: 1.3;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge--active {
  background: #1a4a20;
  border: 1px solid #3a8a40;
  color: #7aee7a;
}

.status-badge--complete {
  background: #1a2a4a;
  border: 1px solid #3a5a8a;
  color: #7ab8f5;
}

.status-badge--abandoned {
  background: #2a1a10;
  border: 1px solid #6a3a20;
  color: #c87a4a;
}

.status-badge--wip {
  background: #2a2a1a;
  border: 1px solid #6a6a20;
  color: #c8c84a;
}

.modern-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.modern-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.modern-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modern-links a {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.2s;
}

.modern-links a:hover {
  border-color: var(--accent);
  background: rgba(122, 184, 245, 0.08);
}

/* --------------------------------------------------------------------------
   Interviews
   -------------------------------------------------------------------------- */
.interview-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.interview-block:last-child { border-bottom: none; }

.interview-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.interview-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--secondary);
  line-height: 1.8;
  border-left: 3px solid var(--accent-dim);
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.interview-attr {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 1.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer__inner {
  display: grid;
  gap: 0.8rem;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.site-footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.site-footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Easter Egg Modal
   -------------------------------------------------------------------------- */
.midnight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.9);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.midnight-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(122, 184, 245, 0.15);
  position: relative;
}

.midnight-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.midnight-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.midnight-subtitle {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.midnight-passage {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.8;
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  text-align: left;
}

.midnight-attr {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-italic { font-style: italic; }

.crosslink-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.crosslink-list a {
  font-size: 0.88rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 10, 18, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
    gap: 0;
    overflow: visible;
  }

  .nav-menu.nav-menu--open {
    display: flex;
  }

  .nav-link {
    padding: 0.7rem 1.5rem;
    width: 100%;
    border-radius: 0;
  }

  .section-image {
    float: none;
    margin: 0 0 1.5rem;
    max-width: 100%;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .resource-item {
    grid-template-columns: 1fr;
  }

  .hero-mountains,
  .hero-ridge {
    display: none;
  }

  .midnight-inner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.5rem; }
  .hero-cta { flex-direction: column; }
  .videos-grid { grid-template-columns: 1fr; }
}
