/* ==========================================================================
   Richard Joseph Fan Page — css/style.css
   Audiophile liner notes identity — Playfair Display, warm gold, ink navy.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0a0f1e;
  --bg-card:       #0f1a2e;
  --bg-alt:        #0d1526;
  --text:          #e8e0d0;
  --text-muted:    #8a8070;
  --accent:        #c9a84c;
  --accent-dim:    #a88a38;
  --border:        #1e2d42;
  --border-card:   #c9a84c;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Sans 3', 'Source Sans Pro', sans-serif;

  --nav-height:    64px;
  --container-max: 1100px;
  --player-height: 60px;
}

/* --------------------------------------------------------------------------
   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;
  padding-top: var(--nav-height);
  padding-bottom: var(--player-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);
  text-decoration: underline;
  outline: none;
}

ul, ol { list-style: none; }

hr,
.gold-rule {
  border: none;
  border-top: 1px solid var(--accent);
  opacity: 0.35;
  margin: 2.5rem 0;
}

blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

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

strong { color: var(--text); font-weight: 600; }

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

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

.skip-link:focus {
  top: 1rem;
  color: #000;
  text-decoration: none;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-card);
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  margin-left: auto;
  font-size: 1rem;
  border-radius: 2px;
}

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

.nav-link {
  display: block;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

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

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

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

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  background: var(--bg);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.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;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

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

.hero-subtitle::after {
  content: '|';
  animation: cursor-blink 0.8s step-start infinite;
  color: var(--accent);
  margin-left: 2px;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #000;
  text-decoration: none;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--accent);
  color: #000;
  text-decoration: none;
}

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

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

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Cards — liner note style
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.game-card:hover {
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.1);
}

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

.game-card__cover-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.game-card__body {
  padding: 1rem 1.25rem;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.game-card__year {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.game-card__meta {
  margin-bottom: 0.75rem;
}

.game-card__meta-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.meta-label {
  color: var(--text-muted);
  min-width: 5rem;
  flex-shrink: 0;
}

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

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

.tag--platform {
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.tag--genre {
  background: rgba(232, 224, 208, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(232, 224, 208, 0.15);
}

.tag--role {
  background: rgba(201, 168, 76, 0.08);
  color: var(--accent-dim);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* --------------------------------------------------------------------------
   Platform Filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

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

.filter-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

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

.filter-btn--active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 168, 76, 0.08);
}

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

/* --------------------------------------------------------------------------
   History / biography layout
   -------------------------------------------------------------------------- */
.history-body {
  max-width: 760px;
}

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

.history-chapter h3 {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.history-chapter h2 {
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   People profiles
   -------------------------------------------------------------------------- */
.person-card {
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s;
}

.person-card:hover {
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.08);
}

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

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

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Music page
   -------------------------------------------------------------------------- */
.track-list {
  list-style: none;
}

.track-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.track-item:last-child {
  border-bottom: none;
}

.track-num {
  font-family: var(--font-heading);
  color: var(--accent);
  min-width: 1.5rem;
  text-align: right;
  font-size: 0.85rem;
}

.track-title {
  flex: 1;
  color: var(--text);
}

.track-year {
  color: var(--text-muted);
  font-size: 0.8rem;
  min-width: 3rem;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Resource links
   -------------------------------------------------------------------------- */
.resource-list {
  list-style: none;
}

.resource-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.resource-item__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.resource-item a {
  font-size: 0.82rem;
}

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

.gallery-item {
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.gallery-item:hover {
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.1);
}

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

.gallery-item__caption {
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SID Player (persistent bottom bar)
   -------------------------------------------------------------------------- */
.sid-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-card);
  height: var(--player-height);
  display: flex;
  align-items: center;
}

.player-bar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.player-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.player-track {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

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

.player-btn--play {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  width: 34px;
  height: 34px;
}

.player-btn--play:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #000;
}

.player-btn--toggle {
  font-size: 1rem;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-vol-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

#sid-volume {
  width: 70px;
  height: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.player-deepsid {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.player-deepsid a {
  color: var(--accent);
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   Flagship editorial
   -------------------------------------------------------------------------- */
.flagship-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

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

.flagship-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.flagship-section .flagship-meta {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.flagship-section p {
  max-width: 740px;
  margin-bottom: 1em;
  color: var(--text);
  line-height: 1.8;
}

.flagship-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.flagship-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

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

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

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

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

.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;
}

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

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

/* --------------------------------------------------------------------------
   WARZONE Easter egg overlay
   -------------------------------------------------------------------------- */
.warzone-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 15, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlay-in 0.3s ease;
}

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

.warzone-inner {
  max-width: 520px;
  width: 90%;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  text-align: center;
}

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

.warzone-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

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

.warzone-quote {
  border-left: 2px solid var(--accent);
  padding: 0.75rem 1rem;
  text-align: left;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.warzone-close {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(10, 15, 30, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

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

.lb-inner img {
  max-height: 80vh;
  border: 1px solid var(--border-card);
  border-radius: 2px;
}

.lb-close {
  display: block;
  margin-bottom: 0.75rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.lb-close:hover { color: var(--accent); border-color: var(--accent); }

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

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

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
    margin-left: 0;
  }

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

  .nav-link {
    padding: 0.65rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

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

  .hero-stats { gap: 1.5rem; }

  .player-volume { display: none; }

  .player-deepsid { display: none; }
}

/* --------------------------------------------------------------------------
   Game cover images & lightbox
   -------------------------------------------------------------------------- */
.game-cover { margin: 0 0 0.75rem; max-width: 180px; }
.game-card__cover { max-width: 180px; display: block; object-fit: contain; background: var(--bg-secondary, #111); }
.game-screenshot {
  width: 100%; display: block; object-fit: contain;
  border: 1px solid var(--border-dim, #333);
  border-radius: var(--radius, 4px);
  background: var(--bg-secondary, #111);
  cursor: zoom-in; transition: border-color 0.2s;
}
.game-screenshot:hover { border-color: var(--accent-cyan, #00e5ff); }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; cursor: zoom-out; padding: 1rem;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: 95vw; max-height: 90vh; object-fit: contain;
  border: 1px solid var(--border-dim, #333); border-radius: var(--radius, 4px); cursor: zoom-out;
}
.lightbox-close {
  position: fixed; top: 1rem; right: 1.5rem; background: none; border: none;
  color: var(--accent-cyan, #00e5ff); font-size: 2.5rem; line-height: 1;
  cursor: pointer; z-index: 10000; padding: 0.25rem 0.5rem;
}
.lightbox-close:hover { color: var(--accent-yellow, #ffd700); }
