/* ==========================================================================
   Konami Fan Page — css/style.css
   Deep space void-blue + Vic Viper blue-violet accent.
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #000822;
  --bg-card:       #050f30;
  --bg-alt:        #030c28;
  --text:          #d8e0f8;
  --text-muted:    #6070a8;
  --accent:        #8899ff;
  --accent-dim:    #6677cc;
  --accent-glow:   #8899ff44;
  --border:        #101840;
  --border-accent: #8899ff;
  --font-heading:  'Space Grotesk', 'Arial', sans-serif;
  --font-body:     'Inter', 'Arial', sans-serif;

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

/* --------------------------------------------------------------------------
   Zone accent system — per-section colour shift
   -------------------------------------------------------------------------- */
[data-zone="arcade-era"]  { --zone-accent: #6677ee; }
[data-zone="nes-era"]     { --zone-accent: #8899ff; }
[data-zone="snes-era"]    { --zone-accent: #aabbff; }
[data-zone="flagship"]    { --zone-accent: #ff4455; }

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

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

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, #0a1540 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, #06103a 0%, transparent 40%);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  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: 1px solid var(--accent);
  opacity: 0.3;
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p + p { margin-top: 0.9em; }
strong { color: #f0f4ff; }

/* --------------------------------------------------------------------------
   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;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

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

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 8, 34, 0.96);
  border-bottom: 1px solid var(--border-accent);
  height: var(--nav-height);
  backdrop-filter: blur(8px);
}

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

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover, .nav-brand:focus { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link:focus {
  color: var(--accent);
  background: rgba(136, 153, 255, 0.08);
}

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

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

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 8, 34, 0.98);
    border-bottom: 1px solid var(--border-accent);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    display: none;
  }

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

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
  }
}

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

/* --------------------------------------------------------------------------
   Diagonal section dividers (Gradius force field geometry)
   -------------------------------------------------------------------------- */
.section-divider--down {
  clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%);
  padding-top: calc(5vw + 3rem);
}

.section-divider--up {
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(5vw + 3rem);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #000c3a 0%, #000822 40%, #000e14 100%);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(136, 153, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(102, 119, 238, 0.08) 0%, transparent 45%);
  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: 800px;
  padding: 4rem 1.5rem;
}

.hero-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto 2rem;
  border: 1px solid rgba(136, 153, 255, 0.2);
}

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

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 40px rgba(136, 153, 255, 0.4);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

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

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

.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(136, 153, 255, 0.1);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #000c3a 0%, #000822 100%);
  border-bottom: 1px solid var(--border);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding-bottom: calc(3rem + 3vw);
}

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

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

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

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

.site-section + .site-section {
  border-top: 1px solid var(--border);
}

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

.section-header {
  margin-bottom: 2.5rem;
}

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

.section-title {
  color: #fff;
  position: relative;
  display: inline-block;
}

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

/* --------------------------------------------------------------------------
   Screenshot strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.screenshot-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.screenshot-strip img:hover { border-color: var(--accent); }

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

aside.trivia::before {
  content: 'Did You Know?';
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zone-accent, var(--accent));
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   Developer quotes
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  border-left: 3px solid var(--zone-accent, var(--accent));
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: rgba(136, 153, 255, 0.04);
  border-radius: 0 4px 4px 0;
}

blockquote.dev-quote p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

blockquote.dev-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Inline image with caption
   -------------------------------------------------------------------------- */
.inline-figure {
  margin: 2rem auto;
  max-width: 720px;
}

.inline-figure img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.inline-figure figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Image placeholder
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-accent);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  min-height: 160px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

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

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

/* --------------------------------------------------------------------------
   Stats bar
   -------------------------------------------------------------------------- */
.stats-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

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

/* --------------------------------------------------------------------------
   Games grid / filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.filter-bar label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

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

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

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

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  transition: border-color 0.2s;
}

.game-card:hover { border-color: var(--zone-accent, var(--accent)); }

.game-card__thumb {
  flex-shrink: 0;
  width: 80px;
}

.game-card__thumb img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.game-card__thumb .placeholder {
  width: 80px;
  height: 100px;
  min-height: unset;
  font-size: 0.7rem;
}

.game-card__body {
  flex: 1;
  min-width: 0;
}

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

.game-card__title {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

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

.game-card__note {
  font-size: 0.83rem;
  color: var(--text);
}

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

.tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag--platform {
  background: rgba(136, 153, 255, 0.15);
  color: var(--accent);
}

.tag--genre {
  background: rgba(100, 100, 150, 0.15);
  color: var(--text-muted);
}

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

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

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

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.gallery-item:hover img { opacity: 0.85; }

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

/* --------------------------------------------------------------------------
   People / bio sections
   -------------------------------------------------------------------------- */
.bio-section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.bio-portrait {
  flex-shrink: 0;
}

.bio-portrait img,
.bio-portrait .placeholder {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-accent);
}

.bio-portrait .placeholder { min-height: 140px; }

.bio-name {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.bio-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.bio-screenshots {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.bio-screenshots img {
  height: 100px;
  width: auto;
  max-width: 160px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .bio-section {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Credit suppression sidebar
   -------------------------------------------------------------------------- */
.credit-sidebar {
  background: rgba(255, 68, 85, 0.06);
  border: 1px solid rgba(255, 68, 85, 0.25);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.credit-sidebar h3 {
  font-size: 0.85rem;
  color: #ff4455;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.credit-sidebar p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.video-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.video-entry:hover { border-color: var(--accent); }

.video-entry > div:first-child {
  padding: 1.25rem;
}

.video-entry h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

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

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

/* Lite YouTube facade — poster + play button until clicked */
.lite-youtube,
.video-embed.lite-youtube {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.lite-youtube__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-youtube__play {
  position: absolute;
  inset: 0;
  margin: auto;
  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);
  transform: 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;
}
.lite-youtube--activated iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta {
  padding: 0.6rem 1.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
}

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

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

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--accent);
}

.resource-list li a::before {
  content: '→';
  font-size: 0.8rem;
}

.resource-list li a:hover { color: #fff; }

.resource-list li span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 4, 16, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  text-align: center;
}

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

.lb-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 3px;
  cursor: pointer;
}

.lb-close:hover { background: rgba(136, 153, 255, 0.1); }

/* --------------------------------------------------------------------------
   Konami Code easter-egg overlay
   -------------------------------------------------------------------------- */
.konami-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: konami-fade-in 0.3s ease;
}

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

.konami-overlay__inner {
  text-align: center;
  max-width: 480px;
  padding: 2rem;
}

.konami-overlay__lives {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 9rem);
  color: #ff4455;
  letter-spacing: 0.05em;
  animation: konami-count 0.8s steps(30, end) forwards;
  line-height: 1;
}

@keyframes konami-count {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.konami-overlay__label {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.konami-overlay__code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.konami-overlay__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.konami-overlay__close {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
}

.konami-overlay__close:hover { background: rgba(136, 153, 255, 0.15); }

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Arcade / music info table
   -------------------------------------------------------------------------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.info-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-accent);
}

.info-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.info-table tr:hover td { background: rgba(136, 153, 255, 0.03); }

/* --------------------------------------------------------------------------
   Two-column prose layout
   -------------------------------------------------------------------------- */
.prose-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 700px) {
  .prose-cols { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

#site-footer a { color: var(--text-muted); }
#site-footer a:hover { color: var(--accent); }
