/* ==========================================================================
   Capcom Fan Page — css/style.css
   Graveyard midnight + Capcom scarlet identity.
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0e0202;
  --bg-card:       #1a0303;
  --bg-alt:        #170202;
  --text:          #f0eded;
  --text-muted:    #8a7070;
  --accent:        #e60012;
  --accent-dim:    #b3000e;
  --border:        #2e1010;
  --border-accent: #e60012;
  --font-heading:  'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:     'Inter', 'Arial', sans-serif;

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

/* --------------------------------------------------------------------------
   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;
  padding-top: var(--nav-height);
}

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.35;
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.1rem; }

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

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

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

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0a0101;
  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-weight: 400;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  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.75rem;
  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(--text-muted);
  transition: background 0.2s;
}

.nav-toggle:hover .burger,
.nav-toggle:focus .burger {
  background: var(--accent);
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border-radius: 0;
}

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

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

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

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

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 4rem 1.25rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(230,0,18,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
  filter: sepia(0.4) brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 10rem);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  line-height: 1;
}

.hero-title span {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-stat .num {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.8rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 6rem 0 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}

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

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

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

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

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

/* --------------------------------------------------------------------------
   Cards / Games Grid
   -------------------------------------------------------------------------- */
.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);
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
}

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

.game-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.game-card__body {
  padding: 1.25rem;
}

.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);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

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

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

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

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

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

.filter-bar label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-bar select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23e60012'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.filter-bar select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

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

.filter-count strong {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.timeline-entry {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
  line-height: 1;
}

.timeline-event {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

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

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

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

.history-chapter h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.history-chapter p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.history-figure {
  margin: 0 0 1.5rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  text-align: center;
}

.history-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.history-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.trivia {
  display: block;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.trivia strong {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.4rem;
}

.dev-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent-dim);
  background: rgba(230, 0, 18, 0.04);
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.dev-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dev-quote cite::before {
  content: "- ";
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   People Grid
   -------------------------------------------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.person-card:hover {
  border-color: var(--accent);
}

.person-card__name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.person-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.person-card__games {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.person-card__bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.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;
}

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

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}

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

.gallery-item__caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Video Grid
   -------------------------------------------------------------------------- */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.video-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.video-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.video-entry h3 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.video-entry p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

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

/* Lite YouTube facade - clickable poster that defers iframe load until play. */
.lite-youtube {
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.lite-youtube__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-youtube__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
  z-index: 2;
}
.lite-youtube__play:hover,
.lite-youtube__play:focus-visible {
  background: var(--accent, #e63946);
  transform: translate(-50%, -50%) scale(1.06);
  outline: none;
}
.lite-youtube__play-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 4px;
}
.lite-youtube--activated {
  cursor: default;
  background-image: none !important;
}

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

/* --------------------------------------------------------------------------
   Music
   -------------------------------------------------------------------------- */
.composer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s;
}

.composer-card:hover {
  border-color: var(--accent);
}

.composer-card__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.composer-card__era {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.composer-card__credits {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.composer-card__bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.composer-embed {
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Stat panels / Specs
   -------------------------------------------------------------------------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.spec-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.spec-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.spec-card td {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-card td:first-child {
  color: var(--text-muted);
  width: 45%;
  padding-right: 0.75rem;
}

.spec-card td:last-child {
  color: var(--text);
  font-weight: 500;
}

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

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.resource-card:hover {
  border-color: var(--accent);
}

.resource-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.resource-card__url {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.resource-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Easter Egg Overlay
   -------------------------------------------------------------------------- */
.capcom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(230, 0, 18, 0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: capcom-flash 0.15s ease;
  cursor: pointer;
}

@keyframes capcom-flash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  60%  { opacity: 0.85; }
  100% { opacity: 1; }
}

.capcom-overlay__inner {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  animation: capcom-rise 0.4s ease 0.1s both;
}

@keyframes capcom-rise {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.capcom-overlay__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.capcom-overlay__logo {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 15vw, 10rem);
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.capcom-overlay__tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.capcom-overlay__close {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.capcom-overlay__close:hover {
  background: rgba(255,255,255,0.15);
}

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

.lb-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: default;
}

.lb-inner img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lb-close {
  align-self: flex-end;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.lb-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footnotes
   -------------------------------------------------------------------------- */
.footnotes {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footnotes h2 {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footnotes ol {
  list-style: decimal;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footnotes li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footnotes li a { font-size: inherit; }

/* --------------------------------------------------------------------------
   Placeholder (no image available)
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  aspect-ratio: 3/4;
}

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

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

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.site-footer__text a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center  { text-align: center; }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.mt-sm        { margin-top: 1rem; }
.mt-md        { margin-top: 2rem; }
.mt-lg        { margin-top: 3rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #site-nav {
    height: auto;
    min-height: var(--nav-height);
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    height: auto;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid var(--border);
    margin-left: 0;
  }

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

  .nav-link {
    padding: 0.6rem 0.25rem;
    font-size: 0.7rem;
  }

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

  .games-grid,
  .people-grid,
  .specs-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 14vw, 6rem); }
  .hero-cta   { flex-direction: column; align-items: center; }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-count { margin-left: 0; }
}
