/* ==========================================================================
   Ocean Software Fan Page — css/style.css
   Bold print/cinema aesthetic: Antonio 700, Source Sans 3, royal blue #1a6ec4.
   No CRT effects, no rounded corners — rectangular cassette-inlay design.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@700&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:    #050e1f;
  --bg-secondary:  #08152a;
  --bg-card:       #0c1c35;
  --bg-card-alt:   #0f2242;
  --border-dim:    #1a3056;

  --text-primary:  #f0f2f5;
  --text-secondary:#8899bb;
  --text-dim:      #4a607a;

  --accent-blue:   #1a6ec4;
  --accent-light:  #3d8fdf;
  --accent-white:  #ffffff;

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

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

/* --------------------------------------------------------------------------
   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-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

ul, ol {
  list-style: none;
}

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

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(5, 14, 31, 0.96);
  border-bottom: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-white);
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-white);
  border-bottom-color: var(--accent-blue);
  background: rgba(26, 110, 196, 0.08);
}

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

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,110,196,0.06) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(26,110,196,0.02) 120px,
      rgba(26,110,196,0.02) 121px
    );
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

.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.7rem, 1.5vw, 0.9rem);
  color: var(--accent-blue);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  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);
}

.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-white);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat .label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

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

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

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

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

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

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

.section-title {
  color: var(--accent-white);
  margin-bottom: 1rem;
}

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

/* --------------------------------------------------------------------------
   Cards — clean white-on-dark, 2px top border in accent blue
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-top: 2px solid var(--accent-blue);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

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

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

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

.card-grid .card {
  background: var(--bg-card);
}

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

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

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

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

.person-card {
  background: var(--bg-card);
  border-top: 2px solid var(--accent-blue);
  padding: 1.5rem;
}

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

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

.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-top: 2px solid var(--accent-blue);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

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

.game-header {
  background: var(--bg-card-alt);
  padding: 1.25rem 1.5rem;
  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(--accent-white);
  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.7rem;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

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

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

.tag-type {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.game-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .game-body {
    grid-template-columns: 1fr 1fr;
  }
  .game-description {
    grid-column: 1 / -1;
  }
  .game-cover {
    max-width: 50%;
  }
}

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

.game-description p {
  margin-bottom: 0.75rem;
}

.key-facts {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--accent-blue);
  padding: 1rem 1.25rem;
}

.key-facts-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

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

.reception-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--text-dim);
  padding: 1rem 1.25rem;
}

.reception-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.reception-block p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.game-cover {
  grid-column: 1 / -1;
  margin: 0;
}

.game-screenshot {
  width: 100%;
  border: 1px solid var(--border-dim);
  background: var(--bg-secondary);
  cursor: zoom-in;
  transition: border-color 0.2s;
}

.game-screenshot:hover {
  border-color: var(--accent-blue);
}

.screenshot-caption {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.3rem 0;
}

.image-note {
  grid-column: 1 / -1;
  background: rgba(26, 110, 196, 0.05);
  border: 1px dashed var(--border-dim);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Secondary game entries (compact)
   -------------------------------------------------------------------------- */
.secondary-entry {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--border-dim);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1px;
}

.secondary-entry h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.secondary-entry .game-meta {
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   Games subsection
   -------------------------------------------------------------------------- */
.games-subsection {
  margin-bottom: 4rem;
}

.games-subsection-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-white);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-blue);
}

/* --------------------------------------------------------------------------
   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.8rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

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

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

.gallery-figure {
  background: var(--bg-card);
  margin: 0;
  overflow: hidden;
}

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

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

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

.music-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-white);
  padding: 1rem 1.5rem;
  background: var(--bg-card-alt);
  border-top: 2px solid var(--accent-blue);
  border-bottom: 1px solid var(--border-dim);
  margin-bottom: 0;
}

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

.track-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-dim);
  cursor: pointer;
  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(26, 110, 196, 0.12);
  border-left: 3px solid var(--accent-blue);
  padding-left: calc(1rem - 3px);
}

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

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

.track-game {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--accent-blue);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.track-composer-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

.now-playing .track-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-white);
  margin-bottom: 0.25rem;
}

.now-playing .track-composer {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.player-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  margin-bottom: 0;
}

.player-controls button {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.08em;
}

.player-controls button:hover,
.player-controls button:focus {
  background: var(--accent-blue);
  color: var(--accent-white);
  outline: none;
}

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

.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-top: 2px solid var(--accent-blue);
  overflow: hidden;
  transition: border-color 0.2s;
}

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

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

.video-entry-header h3 {
  color: var(--accent-white);
  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: 1px;
  background: var(--border-dim);
}

.video-link {
  padding: 0.75rem 1.25rem;
}

.video-link a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
}

.video-link a:hover {
  color: var(--accent-white);
}

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

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.25rem;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.link-card:hover {
  background: var(--bg-card-alt);
  color: inherit;
}

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

.link-card-content h3 {
  font-size: 1rem;
  color: var(--accent-white);
  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;
  text-align: left;
  background: var(--bg-primary);
  border-bottom: 4px solid var(--accent-blue);
}

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

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

.page-hero .section-subtitle {
  color: var(--text-secondary);
}

.page-header {
  padding: calc(var(--nav-height) + 2.5rem) 0 2rem;
  text-align: center;
  background: var(--bg-primary);
  border-bottom: 4px solid var(--accent-blue);
}

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

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

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--accent-white);
  margin-bottom: 1.25rem;
  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-top: 2px solid var(--accent-blue);
  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.3rem;
  color: var(--accent-white);
  margin-bottom: 0.35rem;
}

.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: 1.6rem;
  line-height: 1;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--accent-blue);
  color: var(--accent-white);
  background: rgba(26, 110, 196, 0.12);
}

.review-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  background: var(--accent-blue);
  color: var(--accent-white);
}

.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(26, 110, 196, 0.06);
  border-left: 4px solid var(--accent-blue);
}

.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-top: 4px solid var(--accent-blue);
  border-left: 1px solid var(--border-dim);
  border-right: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  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(--accent-white);
  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.75rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.flagship-crosslinks a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-white);
}

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

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

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

/* --------------------------------------------------------------------------
   TOC
   -------------------------------------------------------------------------- */
.toc {
  margin: 2rem 0 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 4px solid var(--accent-blue);
}

.toc-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.toc-list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.toc-list a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-light);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Footnotes / citations
   -------------------------------------------------------------------------- */
.footnotes {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footnotes h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

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

.footnotes ol li {
  margin-bottom: 0.4rem;
}

.cite {
  font-size: 0.75rem;
  color: var(--text-dim);
  vertical-align: super;
}

/* --------------------------------------------------------------------------
   Easter egg modal / boot screen
   -------------------------------------------------------------------------- */
#ocean-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

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

.ocean-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--accent-white);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.ocean-modal-sub {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: var(--accent-blue);
  letter-spacing: 0.4em;
  margin-bottom: 3rem;
}

.cassette-bar-wrap {
  width: min(400px, 90vw);
  border: 2px solid var(--accent-blue);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  height: 20px;
}

.cassette-bar {
  position: absolute;
  inset: 0;
  background: var(--accent-blue);
  width: 0%;
  transition: width 0.1s linear;
}

.cassette-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--accent-white);
  letter-spacing: 0.2em;
  z-index: 1;
}

.ocean-modal-dismiss {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-top: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
}

.ocean-modal-dismiss:hover {
  color: var(--accent-white);
}

/* Boot screen */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#boot-screen:not([hidden]) { display: flex; }

.boot-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--accent-white);
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.boot-loading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-blue);
  letter-spacing: 0.4em;
  animation: boot-pulse 1s ease-in-out infinite;
}

@keyframes boot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent-blue);
  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-white);
}

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

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

/* --------------------------------------------------------------------------
   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-blue);
  outline-offset: 2px;
}

figure[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   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-secondary);
    border-bottom: 2px solid var(--accent-blue);
    padding: 1rem 1.5rem;
    z-index: 99;
  }

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

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

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    border: 1px solid var(--border-dim);
  }

  .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.75rem;
    padding: 0.35rem 0.5rem;
  }
}

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

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