/* ==========================================================================
   Hewson Consultants Fan Page — css/style.css
   Visual identity: precision engineering — dreadnought industrial
   Teko 700 headings + Inter body
   Background: #121820  Accent: #5ab4e0  No CRT glow
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:         #121820;
  --bg-card:    #1a2230;
  --bg-alt:     #0e1520;
  --text:       #d0dce8;
  --text-muted: #6a8099;
  --accent:     #5ab4e0;
  --border:     #2a3a4a;

  --font-display: 'Teko', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, 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.8;
  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: #fff;
  outline: none;
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h5 { font-size: 1.1rem; }

p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

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

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 999;
  transition: top 0.2s;
}

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

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: rgba(18,24,32,0.96);
  backdrop-filter: blur(8px);
}

#site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

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

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

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

  .nav-links a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg);
}

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

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 960px;
}

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

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 12rem);
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 1rem;
}

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

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  letter-spacing: 0.04em;
}

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

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

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

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

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

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

/* --------------------------------------------------------------------------
   Main content offset
   -------------------------------------------------------------------------- */
#main-content {
  padding-top: var(--nav-height);
}

#hero + #main-content,
#hero ~ #main-content {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   Site sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 5rem 0;
}

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

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

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.05rem);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Cards (1px left border accent — industrial motif)
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 2rem;
  margin-bottom: 2rem;
}

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

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

/* --------------------------------------------------------------------------
   History / chapters
   -------------------------------------------------------------------------- */
.history-chapter {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.history-chapter:last-child {
  border-bottom: none;
}

.history-chapter h3 {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.chapter-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Person grid
   -------------------------------------------------------------------------- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.person-card {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 1.75rem;
}

.person-card h4 {
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.person-card .role {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.person-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Catalogue / game entries
   -------------------------------------------------------------------------- */
.game-entry {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.game-entry[hidden] {
  display: none !important;
}

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

.game-title {
  color: var(--text);
  margin-bottom: 0.35rem;
}

.game-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid;
}

.tag-year      { border-color: var(--text-muted); color: var(--text-muted); }
.tag-platform  { border-color: var(--border);      color: var(--text-muted); }
.tag-c64       { border-color: var(--accent);      color: var(--accent); }
.tag-spectrum  { border-color: #88c0d0;            color: #88c0d0; }
.tag-amiga     { border-color: #a0c8a0;            color: #a0c8a0; }
.tag-st        { border-color: #b0b0c0;            color: #b0b0c0; }
.tag-dev       { border-color: var(--border);      color: var(--text-muted); }
.tag-composer  { border-color: var(--border);      color: var(--text-muted); }
.tag-rack-it   { border-color: #c0a860;            color: #c0a860; }

.game-entry p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Gallery grid & platform filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

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

.gallery-card {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  overflow: hidden;
  transition: border-left-color 0.2s;
}

.gallery-card:hover {
  border-left-color: #fff;
}

.gallery-card[hidden] {
  display: none !important;
}

.gallery-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-alt);
}

.gallery-card-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-card-info {
  padding: 1rem 1.25rem;
}

.gallery-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.gallery-card-meta {
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Music / tracklist
   -------------------------------------------------------------------------- */
.tracklist {
  margin-bottom: 4rem;
}

.tracklist-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}

.tracklist-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .tracklist-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

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

.tracklist-game {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.tracklist-track {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.tracklist-composer {
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Flagship / deep-dive sections
   -------------------------------------------------------------------------- */
.flagship-section {
  margin-bottom: 4.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--border);
}

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

.flagship-section h3 {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.flagship-section a {
  color: var(--accent);
}

.flagship-section a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Review entries
   -------------------------------------------------------------------------- */
.review-entry {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.review-entry h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.review-score {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.75rem;
}

blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.1rem);
  border-left: 1px solid var(--accent);
  margin: 1.25rem 0;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Interview entries
   -------------------------------------------------------------------------- */
.interview-entry {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.interview-entry h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.interview-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.link-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 1.5rem;
  transition: border-left-color 0.2s;
  color: var(--text);
}

.link-card:hover {
  border-left-color: #fff;
  color: var(--text);
}

.link-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  flex-shrink: 0;
  width: 1.8rem;
  text-align: center;
}

.link-card-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.link-card-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

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

@media (max-width: 760px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

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

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--bg-alt);
}

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

.video-info {
  padding: 1.25rem 1.5rem;
}

.video-info h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.video-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.video-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Inline video embeds
   -------------------------------------------------------------------------- */
.inline-embed {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
}

.inline-embed h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.inline-embed .video-embed {
  border-left: none;
}

/* --------------------------------------------------------------------------
   SID player
   -------------------------------------------------------------------------- */
.sid-player {
  background: var(--bg-card);
  border-left: 1px solid var(--accent);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.sid-player h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.sid-player .sid-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sid-player .sid-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-style: italic;
}

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

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

/* --------------------------------------------------------------------------
   MANTA easter egg — starfield warp overlay
   -------------------------------------------------------------------------- */
#manta-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(18,24,32,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.manta-box {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 3rem;
  max-width: 480px;
  text-align: center;
}

.manta-box h2 {
  color: var(--accent);
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.manta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.manta-close {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.manta-close:hover {
  background: var(--accent);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Pull quotes
   -------------------------------------------------------------------------- */
.pull-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--accent);
  text-align: center;
  padding: 2rem;
  line-height: 1.5;
  margin: 2rem 0;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

@media (max-width: 640px) {
  .pull-quote {
    padding: 1.5rem 1rem;
  }
}

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

.footnotes h4 {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footnotes ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.footnotes li {
  font-family: var(--font-body);
  font-size: 0.8em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Utility classes
   -------------------------------------------------------------------------- */
.image-note {
  font-family: var(--font-body);
  font-size: 0.78em;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

.subsection-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--accent);
}

.games-subsection {
  margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   Geometric grid accent line (decorative)
   -------------------------------------------------------------------------- */
.grid-accent {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 4rem 0;
  opacity: 0.4;
}

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

.site-footer p {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

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

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

/* --------------------------------------------------------------------------
   Game cover images & lightbox
   -------------------------------------------------------------------------- */
.game-cover { margin: 0 0 0.75rem; max-width: 180px; }
.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); }
