/* ==========================================================================
   Epyx Fan Page — css/style.css
   California sun-and-concrete aesthetic: Boogaloo 400, Source Sans 3,
   burnt orange #e8450a on warm sand #fdf4e3. Rounded cards, bold orange
   left-border accent. No CRT effects.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Boogaloo&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg-primary:    #fdf4e3;
  --bg-secondary:  #f7ebd1;
  --bg-card:       #ffffff;
  --bg-card-alt:   #fdf0d8;
  --border-dim:    #e8c898;

  --text-primary:  #2a1a08;
  --text-secondary:#6b4a22;
  --text-dim:      #b89060;

  --accent:        #e8450a;
  --accent-light:  #f26a30;
  --accent-dark:   #c43508;
  --accent-on:     #ffffff;

  --font-heading: 'Boogaloo', 'Impact', 'Arial Narrow', sans-serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', 'Arial', sans-serif;

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

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }
h5 { font-size: clamp(0.9rem, 1.5vw, 1.2rem); }

p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  margin-bottom: 1rem;
}

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

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(253, 244, 227, 0.97);
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(232,69,10,0.08);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0.05rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(232,69,10,0.05);
  border-radius: var(--radius) var(--radius) 0 0;
}

.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: 24px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 5rem;
  background: var(--bg-primary);
  border-bottom: 4px solid var(--accent);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(232,69,10,0.12) 0%, transparent 70%),
    linear-gradient(0deg, rgba(232,69,10,0.06) 0%, transparent 60%);
  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-heading);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border: 2px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-stat {
  text-align: center;
  padding: 1.5rem 2rem;
  border-right: 2px solid var(--border-dim);
  flex: 1;
  min-width: 120px;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 0.7rem 2rem;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--accent-on);
}

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

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

/* --------------------------------------------------------------------------
   Section shared styles
   -------------------------------------------------------------------------- */
.site-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-dim);
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

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

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   Cards — white rounded with bold orange left border
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(232,69,10,0.1);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   History / chapter sections
   -------------------------------------------------------------------------- */
.history-chapter {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
}

.history-chapter h3 {
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-dim);
}

.history-chapter p {
  color: var(--text-primary);
}

.history-chapter p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   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: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.person-card:hover {
  box-shadow: 0 4px 16px rgba(232,69,10,0.1);
}

.person-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.person-card .role {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
  letter-spacing: 0.05em;
}

.person-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Game entries
   -------------------------------------------------------------------------- */
.game-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.game-entry:hover {
  box-shadow: 0 4px 16px rgba(232,69,10,0.1);
}

.game-header {
  background: var(--bg-card-alt);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.game-title {
  color: var(--text-primary);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.game-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) / 2);
}

.tag-year {
  background: var(--accent);
  color: var(--accent-on);
}

.tag-platform {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-dim);
}

.game-body {
  padding: 1.25rem;
}

.game-description {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Platform filter
   -------------------------------------------------------------------------- */
.platform-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border-dim);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: calc(var(--radius) * 3);
}

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

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

.gallery-figure {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.gallery-figure:hover {
  box-shadow: 0 4px 16px rgba(232,69,10,0.12);
}

.gallery-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.gallery-figure:hover img {
  transform: scale(1.03);
}

.gallery-figure figcaption {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  background: var(--bg-card-alt);
}

/* --------------------------------------------------------------------------
   Music player
   -------------------------------------------------------------------------- */
.music-section {
  margin-bottom: 3rem;
}

.music-section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  background: var(--bg-card-alt);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.track-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.15s;
}

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

.track-list li:hover {
  background: var(--bg-card-alt);
}

.track-list li.playing {
  background: rgba(232,69,10,0.06);
  border-left: 3px solid var(--accent);
  padding-left: calc(1.25rem - 3px);
}

.track-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 1.8rem;
  flex-shrink: 0;
}

.track-name {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.track-game {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent);
  white-space: nowrap;
}

.track-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
  border: 1px solid var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: calc(var(--radius) / 2);
  transition: all 0.15s;
}

.track-link:hover {
  background: var(--accent);
  color: var(--accent-on);
}

.now-playing {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.now-playing #np-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.now-playing #np-game {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Video embeds
   -------------------------------------------------------------------------- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
}

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

.video-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

.video-entry:hover {
  box-shadow: 0 4px 16px rgba(232,69,10,0.1);
}

.video-entry-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-dim);
  background: var(--bg-card-alt);
}

.video-entry-header h3 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.video-entry-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

/* --------------------------------------------------------------------------
   Links grid
   -------------------------------------------------------------------------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.link-card:hover {
  box-shadow: 0 4px 16px rgba(232,69,10,0.1);
  color: inherit;
}

.link-icon {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

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

.link-card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
  background: var(--bg-primary);
  border-bottom: 4px solid var(--accent);
}

.page-hero .section-label {
  display: block;
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 65ch;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-dim);
}

.section-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   Review cards
   -------------------------------------------------------------------------- */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card-alt);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-dim);
}

.review-title-group { flex: 1 1 auto; }

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

.review-year {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.review-score-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.review-score {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: rgba(232,69,10,0.06);
  border-radius: var(--radius);
}

.review-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--accent);
  color: var(--accent-on);
  border-radius: calc(var(--radius) / 2);
}

.review-body {
  padding: 1.25rem 1.5rem;
}

.review-source {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-dim);
}

.review-quote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: rgba(232,69,10,0.04);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.review-quote p {
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.review-quote footer {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Flagship entries
   -------------------------------------------------------------------------- */
.flagship-entry {
  padding: 4rem 0;
  border-top: 1px solid var(--border-dim);
}

.flagship-entry:first-of-type {
  border-top: none;
}

.flagship-header {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.flagship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.flagship-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.flagship-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.flagship-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flagship-crosslinks a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.2s;
  border-radius: calc(var(--radius) * 3);
}

.flagship-crosslinks a:hover {
  background: var(--accent);
  color: var(--accent-on);
}

.flagship-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flagship-section h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-dim);
}

.flagship-section p {
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 75ch;
}

/* --------------------------------------------------------------------------
   Trivia cards
   -------------------------------------------------------------------------- */
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.trivia-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.trivia-card:hover {
  box-shadow: 0 4px 16px rgba(232,69,10,0.1);
}

.trivia-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   Key facts
   -------------------------------------------------------------------------- */
.key-facts {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}

.key-facts-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.key-facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
}

.key-facts dt {
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 600;
}

.key-facts dd {
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Easter egg modal
   -------------------------------------------------------------------------- */
#epyx-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(253,244,227,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#epyx-modal:not([hidden]) { display: flex; }

.epyx-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.epyx-modal-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 1rem;
}

.epyx-modal-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  font-style: italic;
  max-width: 40ch;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.epyx-modal-attr {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.epyx-modal-dismiss {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: 2px solid var(--border-dim);
  border-radius: calc(var(--radius) * 3);
  padding: 0.4rem 1.2rem;
  transition: all 0.2s;
  margin-top: 1rem;
}

.epyx-modal-dismiss:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Scroll reveal — initial hidden state set by JS so content is visible
   without JavaScript (for bots, no-JS users, and static snapshots).
   -------------------------------------------------------------------------- */
.reveal {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 3px solid var(--accent);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

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

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

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}

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

/* --------------------------------------------------------------------------
   Placeholder (missing images)
   -------------------------------------------------------------------------- */
.placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(232,69,10,0.1);
  }

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

  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-dim);
    border-radius: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border-dim);
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

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

  .container {
    padding: 0 1rem;
  }

  .flagship-section p {
    max-width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .nav-links a {
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
  }
}

@media (min-width: 1280px) {
  .person-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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