/* ==========================================================================
   Earth Defense Force Fan Page — css/style.css
   Military classified document / tactical operations briefing identity.
   IBM Plex Mono throughout. No glows. No gradients. Flat military terminal.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #050505;
  --bg-secondary:  #0a0a0a;
  --bg-card:       #0f0f0f;
  --text:          #b8c8a0;    /* military terminal olive-green */
  --text-muted:    #5a6a4a;
  --accent:        #ff8c00;    /* amber alert — the only accent colour */
  --accent-dim:    #cc6f00;
  --positive:      #4a7a1e;    /* army olive for success/positive states */
  --border:        #1a2a0a;
  --border-bright: #2e4a12;
  --font-mono:     'IBM Plex Mono', 'Courier New', monospace;

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

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::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-mono);
  font-weight: 400;
  line-height: 1.85;
  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-dim);
  outline: none;
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-bright);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

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

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg);
}

#starfield { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 6rem);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.hero-tagline::after {
  content: ' >_';
  color: var(--accent);
  animation: cursor-blink 1.1s step-end infinite;
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
  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-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 0;
  transition: all 0.2s;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: #000; }
.btn-secondary {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

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

.site-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.site-section:last-child { border-bottom: none; }

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

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.section-label::before { content: '[  '; }
.section-label::after  { content: '  ]'; }

.section-title {
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  font-weight: 400;
}

/* Decorative dividers */
p.divider-label {
  color: var(--border-bright);
  font-size: 0.7rem;
  margin: 1rem 0 0;
  letter-spacing: 0;
}
hr {
  border: none;
  border-top: 1px solid var(--border-bright);
  margin: 0 0 2rem;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }

.card-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.card-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; }

/* --------------------------------------------------------------------------
   Tags / Badges
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 0;
  margin: 2px;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  background: var(--bg-secondary);
}
.tag-platform { color: var(--text); }
.tag-year     { color: var(--accent); }
.tag-dev      { color: var(--positive); }
.tag-spinoff  { color: var(--accent-dim); }

/* Status badges */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 0;
  margin: 2px;
  border: 1px solid var(--border-bright);
}
.badge-official  { background: #0a1a04; color: var(--positive); border-color: var(--positive); }
.badge-legal     { background: var(--bg-card); color: var(--text); border-color: var(--border-bright); }
.badge-emulation { background: var(--bg-card); color: var(--text-muted); border-color: var(--border-bright); }

/* --------------------------------------------------------------------------
   Games listing
   -------------------------------------------------------------------------- */
.game-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.game-entry:hover { border-color: var(--accent); }
.game-entry.platform-hidden { display: none; }

.game-header { margin-bottom: 1rem; }
.game-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.game-meta { display: flex; flex-wrap: wrap; gap: 4px; }

.game-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}
@media (max-width: 600px) { .game-body { grid-template-columns: 1fr; } }

.game-description p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.key-facts { margin-top: 0.75rem; }
.key-facts-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.key-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.85rem; }
.key-facts dt { color: var(--text-muted); }
.key-facts dd { color: var(--text); }

.reception-block { margin-top: 0.75rem; }
.reception-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reception-block p { font-size: 0.85rem; color: var(--text-muted); }

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

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.filter-active { border-color: var(--accent); color: var(--accent); background: var(--bg-secondary); }

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

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.gallery-card:hover { border-color: var(--accent); }
.gallery-card.platform-hidden { display: none; }

.gallery-card-inner { padding: 1rem; }
.gallery-card-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.gallery-card-platforms { display: flex; flex-wrap: wrap; gap: 4px; }
.gallery-card-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.gallery-placeholder {
  width: 100%;
  height: 160px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-bright);
}

/* --------------------------------------------------------------------------
   Review scores
   -------------------------------------------------------------------------- */
.review-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.review-game-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.scores-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-bottom: 1rem; }
.scores-table th {
  text-align: left;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-bright);
}
.scores-table td { padding: 6px 8px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.score-value { color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; }
.review-quote { font-style: italic; color: var(--text-muted); font-size: 0.9rem; border-left: 2px solid var(--border-bright); padding-left: 1rem; margin: 0.75rem 0; }
.review-attribution { font-size: 0.8rem; color: var(--text-muted); }

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

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

.link-icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.link-card-content h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.link-card-content p { font-size: 0.85rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   History chapters
   -------------------------------------------------------------------------- */
.history-chapter {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.history-chapter:last-child { border-bottom: none; }
.history-chapter h3 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.history-chapter p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.history-chapter strong { color: var(--text); }

.timeline-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 2px 8px;
  border-radius: 0;
  margin-bottom: 0.5rem;
}

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

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.5rem;
}
.person-card h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.person-role {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.person-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; }

/* --------------------------------------------------------------------------
   Play page
   -------------------------------------------------------------------------- */
.play-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.play-entry h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.play-entry p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.play-entry .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.25rem;
}
.video-entry h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.video-entry p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.video-link a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Flagship (editorial)
   -------------------------------------------------------------------------- */
.editorial-section {
  max-width: 800px;
}
.editorial-section h3 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}
.editorial-section p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.85; }
.editorial-section strong { color: var(--text); }
.editorial-section a { color: var(--accent); }
.editorial-section a:hover { color: var(--accent-dim); }

/* --------------------------------------------------------------------------
   Footnotes
   -------------------------------------------------------------------------- */
.footnotes {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-bright);
}
.footnotes h4 {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footnotes ol { list-style: decimal; padding-left: 1.5rem; }
.footnotes li { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.footnotes a { color: var(--text-muted); }
.footnotes a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Modern page (status badges)
   -------------------------------------------------------------------------- */
.modern-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.modern-entry h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.modern-entry .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; align-items: center; }
.modern-entry p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   Games subsection headers
   -------------------------------------------------------------------------- */
.games-subsection { margin-bottom: 3rem; }
.games-subsection-title {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-bright);
}

/* --------------------------------------------------------------------------
   Easter egg reveal
   -------------------------------------------------------------------------- */
#easter-egg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--positive);
  z-index: 500;
  max-width: 260px;
  display: none;
}
#easter-egg.active { display: block; }
#easter-egg-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  float: right;
  font-size: 1rem;
  line-height: 1;
  margin: -4px -4px 0 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-bright);
  background: var(--bg-secondary);
}
.site-footer p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links a { font-size: 0.6rem; padding: 3px 4px; }
  .nav-brand { font-size: 0.5rem; }
  .hero-title { font-size: clamp(1.5rem, 8vw, 3rem); }
  .hero-stats { gap: 1rem; }
  .hero-stat .num { font-size: 1.1rem; }
  .card-grid, .gallery-grid, .person-grid, .video-grid, .links-grid { grid-template-columns: 1fr; }
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 0;
  line-height: 1;
  flex-shrink: 0;
}
.nav-hamburger:hover,
.nav-hamburger:focus { color: var(--accent); border-color: var(--accent); outline: none; }
.nav-hamburger[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }

@media (max-width: 480px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none; }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-bright);
    padding: 0.5rem 1.5rem;
    gap: 0;
    z-index: 99;
  }
  .nav-links.nav-open a {
    font-size: 0.75rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .nav-links.nav-open li:last-child a { border-bottom: none; }
}

/* Scores table — horizontally scrollable on small screens */
@media (max-width: 600px) {
  .scores-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --------------------------------------------------------------------------
   Co-op guide
   -------------------------------------------------------------------------- */
.coop-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.coop-guide h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.coop-guide ol { list-style: decimal; padding-left: 1.5rem; }
.coop-guide li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
