/* ==========================================================================
   Data East Fan Page — css/style.css
   Warm brown-black #1a0a00 + arcade orange #ff6b1a identity.
   Passion One 400 headings. CSS counter for trivia. 3D card-flip for games.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Passion+One&family=Inter:wght@400;500;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #1a0a00;
  --bg-card:       #2a1200;
  --bg-alt:        #140800;
  --text:          #f5e8d0;
  --text-muted:    #9a7a55;
  --accent:        #ff6b1a;
  --accent-dim:    #cc5010;
  --border:        #3d1a00;
  --border-accent: #ff6b1a;
  --font-heading:  'Passion One', 'Arial Narrow', sans-serif;
  --font-body:     'Inter', 'Arial', sans-serif;

  --nav-height:    60px;
  --container-max: 1200px;
}

/* --------------------------------------------------------------------------
   CSS Counters — Trivia Boxes
   Each page resets at <body> scope; trivia blocks number sequentially.
   -------------------------------------------------------------------------- */
body {
  counter-reset: trivia-counter;
}

aside.trivia {
  counter-increment: trivia-counter;
}

aside.trivia::before {
  content: "FACT #" counter(trivia-counter);
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   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.7;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 2px solid var(--accent);
  opacity: 0.3;
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }

p + p { margin-top: 0.9em; }

strong { color: var(--text); }

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

.site-section {
  padding: 4rem 0;
}

.site-section:nth-child(even) {
  background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  z-index: 9999;
  transition: top 0.2s;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0f0600;
  border-bottom: 2px solid var(--accent);
  height: var(--nav-height);
}

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

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand:hover,
.nav-brand:focus {
  color: var(--accent-dim);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-left: auto;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.3rem 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s, border-bottom-color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-link--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-left: auto;
}

.burger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  transition: background 0.2s;
}

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

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #0f0600;
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

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

  .nav-link {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.25;
  filter: sepia(60%) saturate(150%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--accent);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(255, 107, 26, 0.4);
}

.hero-title span {
  display: block;
  color: var(--text);
}

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

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

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

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

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

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

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

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

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

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

/* --------------------------------------------------------------------------
   Page Hero (non-index pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 3px solid var(--accent);
  padding: 3rem 0 2.5rem;
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Game Cards (flat, for index / explore sections)
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover,
.game-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.game-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.game-card__body {
  padding: 1.25rem;
}

.game-card__platform {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.game-card__year {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border: 1px solid;
}

.tag--platform { border-color: var(--accent); color: var(--accent); }
.tag--genre    { border-color: var(--text-muted); color: var(--text-muted); }
.tag--flagship { border-color: #ffd700; color: #ffd700; }

/* --------------------------------------------------------------------------
   3D Card Flip (games.html catalogue)
   -------------------------------------------------------------------------- */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-flip {
  perspective: 700px;
  height: 240px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.card-flip:hover .card-inner,
.card-flip:focus-within .card-inner,
.card-flip--flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.card-front {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front__platform {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.card-front__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.card-front__year {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-front__hint {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.6;
}

.card-back {
  transform: rotateY(180deg);
  background: var(--bg-card);
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-card);
}

.card-back .card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .card-inner {
    transition: none;
  }
  .card-flip:hover .card-inner,
  .card-flip:focus-within .card-inner,
  .card-flip--flipped .card-inner {
    transform: none;
  }
  .card-front {
    position: static;
    height: auto;
  }
  .card-back {
    display: none;
  }
  .card-flip {
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   Filter Bar
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.filter-bar label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.filter-bar select,
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-bar select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.filter-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   History / Long-form Text
   -------------------------------------------------------------------------- */
.history-body {
  max-width: 760px;
  margin: 0 auto;
}

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

.era-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

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

.era-section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.era-section p {
  margin-bottom: 1rem;
  color: var(--text);
}

.era-section .era-image {
  float: right;
  max-width: 280px;
  margin: 0 0 1.5rem 2rem;
  border: 2px solid var(--border-accent);
  background: #000;
  padding: 1rem;
}

.era-section .era-image img {
  width: 100%;
}

.era-section .era-image figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   Trivia Boxes
   -------------------------------------------------------------------------- */
aside.trivia {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

aside.trivia p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Dev Quote / Blockquote
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  position: relative;
}

blockquote.dev-quote::before {
  content: "\201C";
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.4;
  position: absolute;
  top: -0.5rem;
  left: 0.75rem;
  line-height: 1;
}

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

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

/* --------------------------------------------------------------------------
   Screenshot Strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}

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


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

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-section {
  margin-bottom: 3rem;
}

.gallery-section h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}

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

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover,
.gallery-item:focus {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-grid--portrait .gallery-item img {
  aspect-ratio: 2/3;
  object-fit: contain;
  background: var(--bg);
}

.gallery-grid--box .gallery-item img {
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--bg);
}

.gallery-grid--landscape .gallery-item img {
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #000;
}

.gallery-item figcaption {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  background: var(--bg-card);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   People / Bio
   -------------------------------------------------------------------------- */
.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 2rem;
  margin-bottom: 3rem;
}

.bio-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.bio-portrait {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: var(--bg);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem;
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.bio-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.bio-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.bio-screenshots img {
  width: 100%;
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Video Grid
   -------------------------------------------------------------------------- */
.video-category {
  margin-bottom: 3.5rem;
}

.video-category h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}

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

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

.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

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

/* Lite video facade — click-to-load thumbnails */
a.video-card__embed.lite-youtube,
a.video-card__embed.lite-archive {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.lite-youtube img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s;
}

.lite-youtube:hover img,
.lite-youtube:focus img {
  filter: brightness(0.7);
}

.lite-archive {
  background: linear-gradient(135deg, #2a1500 0%, #4a2400 100%);
  transition: background 0.2s;
}

.lite-archive:hover,
.lite-archive:focus {
  background: linear-gradient(135deg, #3a2000 0%, #5a3000 100%);
}

.lite-archive__label {
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1;
}

.lite-archive__title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
  z-index: 1;
}

.lite-youtube__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  background: rgba(15, 6, 0, 0.85);
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}

.lite-youtube__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -5px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--accent);
}

.lite-youtube:hover .lite-youtube__play,
.lite-youtube:focus .lite-youtube__play,
.lite-archive:hover .lite-youtube__play,
.lite-archive:focus .lite-youtube__play {
  background: var(--accent);
  transform: scale(1.05);
}

.lite-youtube:hover .lite-youtube__play::before,
.lite-youtube:focus .lite-youtube__play::before,
.lite-archive:hover .lite-youtube__play::before,
.lite-archive:focus .lite-youtube__play::before {
  border-color: transparent transparent transparent var(--bg);
}

.video-card__info {
  padding: 0.75rem 1rem;
}

.video-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.video-card__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Resources
   -------------------------------------------------------------------------- */
.resource-group {
  margin-bottom: 2.5rem;
}

.resource-group h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.resource-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.resource-list .res-name {
  font-weight: 600;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-list .res-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Inline Images
   -------------------------------------------------------------------------- */
.inline-image {
  margin: 2rem 0;
  border: 2px solid var(--border-accent);
}

.inline-image img {
  width: 100%;
}

.inline-image figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.inline-image--right {
  float: right;
  max-width: 300px;
  margin: 0 0 1.5rem 2rem;
}

.inline-image--left {
  float: left;
  max-width: 300px;
  margin: 0 2rem 1.5rem 0;
}

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

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Easter Egg — BADDUDE flash overlay
   -------------------------------------------------------------------------- */
.baddude-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 10, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: baddude-fade-in 0.2s ease forwards;
}

.baddude-overlay.is-fading {
  animation: baddude-fade-out 0.5s ease forwards;
}

@keyframes baddude-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes baddude-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.baddude-overlay__inner {
  text-align: center;
  animation: baddude-flash 0.3s ease;
}

@keyframes baddude-flash {
  0%   { transform: scale(0.8); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.baddude-overlay__question {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  color: var(--accent);
  text-shadow: 0 0 30px rgba(255, 107, 26, 0.8), 0 0 60px rgba(255, 107, 26, 0.4);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: baddude-glow 0.5s ease-in-out infinite alternate;
}

@keyframes baddude-glow {
  from { text-shadow: 0 0 20px rgba(255, 107, 26, 0.6); }
  to   { text-shadow: 0 0 40px rgba(255, 107, 26, 1), 0 0 80px rgba(255, 107, 26, 0.6); }
}

.baddude-overlay__sub {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lb-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lb-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--border-accent);
  cursor: default;
}

.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}

.lb-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f0600;
  border-top: 2px solid var(--accent);
  padding: 2rem 0;
  margin-top: 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

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

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

.site-footer__text a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.font-heading { font-family: var(--font-heading); }

.placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  text-align: center;
  min-height: 160px;
  padding: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-stats {
    gap: 1.5rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .flip-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-header {
    flex-direction: column;
  }

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

  .inline-image--right,
  .inline-image--left {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
