/* C64 Cracktros Archive - style.css
   Deep midnight C64 identity: #080038 bg, Press Start 2P headings, Share Tech Mono body.
   Primary #55ffff (C64 bright cyan), Secondary #ffff55 (C64 bright yellow).
   Key technique: Animated raster bars using CSS @property typed <color> custom properties;
   horizontal colour gradients cycling through C64 palette, scrolling vertically. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

/* ============================================================
   @property raster bar custom properties
   ============================================================ */
@property --rb-1 { syntax: '<color>'; inherits: false; initial-value: #55ffff; }
@property --rb-2 { syntax: '<color>'; inherits: false; initial-value: #ffff55; }
@property --rb-3 { syntax: '<color>'; inherits: false; initial-value: #ff55ff; }
@property --rb-4 { syntax: '<color>'; inherits: false; initial-value: #55ff55; }
@property --rb-5 { syntax: '<color>'; inherits: false; initial-value: #5555ff; }
@property --rb-6 { syntax: '<color>'; inherits: false; initial-value: #ff5555; }
@property --rb-7 { syntax: '<color>'; inherits: false; initial-value: #55ffff; }
@property --rb-8 { syntax: '<color>'; inherits: false; initial-value: #ffff55; }

@keyframes rbar-cycle {
  0%   { --rb-1:#55ffff; --rb-2:#ffff55; --rb-3:#ff55ff; --rb-4:#55ff55; --rb-5:#5555ff; --rb-6:#ff5555; --rb-7:#55ffff; --rb-8:#ffff55; }
  12%  { --rb-1:#ffff55; --rb-2:#ff55ff; --rb-3:#55ff55; --rb-4:#5555ff; --rb-5:#ff5555; --rb-6:#55ffff; --rb-7:#ffff55; --rb-8:#ff55ff; }
  25%  { --rb-1:#ff55ff; --rb-2:#55ff55; --rb-3:#5555ff; --rb-4:#ff5555; --rb-5:#55ffff; --rb-6:#ffff55; --rb-7:#ff55ff; --rb-8:#55ff55; }
  37%  { --rb-1:#55ff55; --rb-2:#5555ff; --rb-3:#ff5555; --rb-4:#55ffff; --rb-5:#ffff55; --rb-6:#ff55ff; --rb-7:#55ff55; --rb-8:#5555ff; }
  50%  { --rb-1:#5555ff; --rb-2:#ff5555; --rb-3:#55ffff; --rb-4:#ffff55; --rb-5:#ff55ff; --rb-6:#55ff55; --rb-7:#5555ff; --rb-8:#ff5555; }
  62%  { --rb-1:#ff5555; --rb-2:#55ffff; --rb-3:#ffff55; --rb-4:#ff55ff; --rb-5:#55ff55; --rb-6:#5555ff; --rb-7:#ff5555; --rb-8:#55ffff; }
  75%  { --rb-1:#55ffff; --rb-2:#ffff55; --rb-3:#ff55ff; --rb-4:#55ff55; --rb-5:#5555ff; --rb-6:#ff5555; --rb-7:#55ffff; --rb-8:#ffff55; }
  87%  { --rb-1:#ffff55; --rb-2:#ff55ff; --rb-3:#55ff55; --rb-4:#5555ff; --rb-5:#ff5555; --rb-6:#55ffff; --rb-7:#ffff55; --rb-8:#ff55ff; }
  100% { --rb-1:#55ffff; --rb-2:#ffff55; --rb-3:#ff55ff; --rb-4:#55ff55; --rb-5:#5555ff; --rb-6:#ff5555; --rb-7:#55ffff; --rb-8:#ffff55; }
}

@keyframes rbar-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 -128px; }
}

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg:           #080038;
  --bg-card:      #0c0050;
  --bg-card-2:    #100060;
  --bg-overlay:   rgba(4, 0, 28, 0.95);
  --cyan:         #55ffff;
  --yellow:       #ffff55;
  --magenta:      #ff55ff;
  --green:        #55ff55;
  --text:         #aaaaff;
  --text-bright:  #ffffff;
  --text-muted:   #5555aa;
  --border:       rgba(85, 255, 255, 0.25);
  --border-y:     rgba(255, 255, 85, 0.25);
  --font-heading: 'Press Start 2P', 'Courier New', monospace;
  --font-body:    'Share Tech Mono', 'Courier New', monospace;
  --radius:       0px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--yellow); text-decoration: underline; }
ul { list-style: none; }

/* ============================================================
   Raster bar divider
   ============================================================ */
.raster-bar {
  height: 16px;
  background: repeating-linear-gradient(
    to bottom,
    var(--rb-1) 0px, var(--rb-1) 2px,
    var(--rb-2) 2px, var(--rb-2) 4px,
    var(--rb-3) 4px, var(--rb-3) 6px,
    var(--rb-4) 6px, var(--rb-4) 8px,
    var(--rb-5) 8px, var(--rb-5) 10px,
    var(--rb-6) 10px, var(--rb-6) 12px,
    var(--rb-7) 12px, var(--rb-7) 14px,
    var(--rb-8) 14px, var(--rb-8) 16px
  );
  animation: rbar-cycle 1.6s linear infinite;
  width: 100%;
}

.raster-bar-wide {
  height: 32px;
  background: repeating-linear-gradient(
    to bottom,
    var(--rb-1) 0px, var(--rb-1) 4px,
    var(--rb-2) 4px, var(--rb-2) 8px,
    var(--rb-3) 8px, var(--rb-3) 12px,
    var(--rb-4) 12px, var(--rb-4) 16px,
    var(--rb-5) 16px, var(--rb-5) 20px,
    var(--rb-6) 20px, var(--rb-6) 24px,
    var(--rb-7) 24px, var(--rb-7) 28px,
    var(--rb-8) 28px, var(--rb-8) 32px
  );
  animation: rbar-cycle 1.6s linear infinite;
  width: 100%;
}

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   Nav
   ============================================================ */
#site-nav {
  background: rgba(8, 0, 56, 0.97);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid var(--cyan);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  flex: 1;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  color: var(--text);
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  border-color: var(--border);
}
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 0.5rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  margin-left: auto;
}
@media (max-width: 700px) {
  #nav-toggle { display: block; }
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.5rem; padding: 0.5rem 1rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--rb-1) 0px, var(--rb-1) 4px,
    transparent 4px, transparent 16px
  );
  animation: rbar-cycle 1.6s linear infinite;
  opacity: 0.15;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  color: var(--yellow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 4vw, 2.2rem);
  color: var(--cyan);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(85,255,255,0.6);
}
.hero-title span { color: var(--yellow); }
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-bright);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  background: rgba(85,255,255,0.05);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--cyan);
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.btn-primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--bg);
}
.btn-primary:hover { background: transparent; color: var(--cyan); text-decoration: none; }
.btn-secondary {
  border-color: var(--yellow);
  background: transparent;
  color: var(--yellow);
}
.btn-secondary:hover { background: var(--yellow); color: var(--bg); text-decoration: none; }

/* ============================================================
   Page sections
   ============================================================ */
.page-section {
  padding: 4rem 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section-label {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  color: var(--yellow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--cyan);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .hero-title { font-size: 0.9rem; }
}

/* ============================================================
   Screenshot strip
   ============================================================ */
.screenshot-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-color: var(--cyan) var(--bg-card);
}
.screenshot-strip img {
  height: 160px;
  width: auto;
  flex-shrink: 0;
  border: 1px solid var(--border);
  image-rendering: pixelated;
}

/* ============================================================
   Trivia and dev-quote
   ============================================================ */
.trivia {
  background: rgba(85,255,255,0.06);
  border-left: 3px solid var(--cyan);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-bright);
  margin: 1.5rem 0;
}
.dev-quote {
  border-left: 3px solid var(--yellow);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(255,255,85,0.04);
}
.dev-quote p {
  font-size: 1rem;
  color: var(--text-bright);
  font-style: italic;
  line-height: 1.7;
}
.dev-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--yellow);
  font-style: normal;
}

/* ============================================================
   Video embeds
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 500px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-meta {
  padding: 0.75rem 1rem;
}
.video-title {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--cyan);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.video-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Group cards (catalogue)
   ============================================================ */
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: border-color 0.15s;
}
.group-card:hover { border-color: var(--cyan); }
.group-name {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.group-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.group-meta span {
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 0.4rem;
  border: 1px solid var(--border-y);
  padding: 0.1rem 0.4rem;
  margin-right: 0.35rem;
  text-transform: uppercase;
}
.group-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
}
.group-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
}
.group-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.group-links a:hover { color: var(--cyan); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  background: #000000;
  border: 1px solid var(--border);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 195px;
  object-fit: contain;
  object-position: center;
  background: #000000;
  image-rendering: pixelated;
}
.gallery-item figcaption {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  line-height: 1.5;
}
.gallery-placeholder {
  width: 100%;
  height: 195px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.45rem;
  color: var(--cyan);
  text-align: center;
  padding: 1rem;
  line-height: 1.8;
  image-rendering: pixelated;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   People
   ============================================================ */
.people-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);
  padding: 1.25rem;
}
.person-handle {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: var(--cyan);
  margin-bottom: 0.25rem;
  line-height: 1.7;
}
.person-role {
  font-size: 0.75rem;
  color: var(--yellow);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.person-bio {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
}
.person-groups {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.person-groups strong { color: var(--text); }

/* ============================================================
   Music page
   ============================================================ */
.player-bar {
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: sticky;
  top: 3rem;
  z-index: 100;
}
.player-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.player-btn {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.player-btn:hover,
.player-btn.active {
  background: var(--cyan);
  color: var(--bg);
}
.player-info {
  flex: 1;
  min-width: 200px;
}
.player-track-name {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--cyan);
  line-height: 1.7;
}
.player-track-group {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.player-deepsid {
  font-size: 0.8rem;
}
.track-list {
  display: grid;
  gap: 0.5rem;
}
.track-group-heading {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--yellow);
  border-bottom: 1px solid var(--border-y);
  padding-bottom: 0.5rem;
  margin: 1.5rem 0 0.75rem;
  line-height: 1.7;
}
.track-item {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
  font-size: 0.85rem;
}
.track-item:hover { border-color: var(--cyan); }
.track-item.playing { border-color: var(--cyan); background: rgba(85,255,255,0.08); }
.track-name { color: var(--text-bright); }
.track-group { color: var(--text-muted); font-size: 0.75rem; }
.track-subtunes {
  font-family: var(--font-heading);
  font-size: 0.4rem;
  color: var(--text-muted);
  text-align: right;
}
.subtune-browser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  display: none;
}
.subtune-browser.open { display: block; }
.subtune-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.subtune-btn {
  font-family: var(--font-heading);
  font-size: 0.4rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.subtune-btn:hover,
.subtune-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ============================================================
   Flagship page
   ============================================================ */
.flagship-entry {
  margin-bottom: 5rem;
  padding-bottom: 4rem;
  border-bottom: 2px solid var(--border);
}
.flagship-entry:last-child { border-bottom: none; }
.flagship-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  image-rendering: pixelated;
}
.flagship-hero-placeholder {
  width: 100%;
  height: 300px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--cyan);
  text-align: center;
  padding: 1.5rem;
  line-height: 2;
}
.flagship-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.flagship-screenshots figure {
  background: #000000;
  border: 1px solid var(--border);
}
.flagship-screenshots img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #000000;
  image-rendering: pixelated;
}
.flagship-screenshots figcaption {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  background: var(--bg-card);
}
.flagship-screenshots .gallery-placeholder {
  height: 150px;
}
.flagship-subtitle {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flagship-h2 {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 2vw, 0.95rem);
  color: var(--cyan);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.flagship-section-title {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--yellow);
  margin: 2rem 0 0.75rem;
  line-height: 1.8;
}
.flagship-section-title::before {
  content: '> ';
  color: var(--text-muted);
}

/* ============================================================
   Resources
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .resources-grid { grid-template-columns: 1fr; }
}
.resource-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.resource-name {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  color: var(--cyan);
  min-width: 180px;
  line-height: 1.7;
}
.resource-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.resource-desc a { color: var(--cyan); }

/* ============================================================
   Play page
   ============================================================ */
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.method-badge {
  font-family: var(--font-heading);
  font-size: 0.4rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.method-badge-emu { border-color: var(--cyan); color: var(--cyan); }
.method-badge-online { border-color: var(--green); color: var(--green); }
.method-title {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}
.method-steps {
  padding-left: 0;
  counter-reset: step;
}
.method-steps li {
  counter-increment: step;
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.method-steps li:last-child { border-bottom: none; }
.method-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-heading);
  font-size: 0.4rem;
  color: var(--yellow);
  top: 0.6rem;
}

/* ============================================================
   Utility
   ============================================================ */
.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 2.5rem; }
p + p   { margin-top: 0.75rem; }

/* ============================================================
   FAIRLIGHT Easter Egg Modal
   ============================================================ */
.fairlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 20, 0.97);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.fairlight-overlay--visible { opacity: 1; }
.fairlight-inner {
  max-width: 700px;
  width: 90%;
  position: relative;
  text-align: center;
  border: 3px solid var(--cyan);
  padding: 3rem 2rem;
  background: #000014;
  box-shadow: 0 0 60px rgba(85,255,255,0.4), inset 0 0 40px rgba(85,255,255,0.05);
}
.fairlight-raster-top,
.fairlight-raster-bottom {
  height: 24px;
  background: repeating-linear-gradient(
    to bottom,
    var(--rb-1) 0px, var(--rb-1) 3px,
    var(--rb-2) 3px, var(--rb-2) 6px,
    var(--rb-3) 6px, var(--rb-3) 9px,
    var(--rb-4) 9px, var(--rb-4) 12px,
    var(--rb-5) 12px, var(--rb-5) 15px,
    var(--rb-6) 15px, var(--rb-6) 18px,
    var(--rb-7) 18px, var(--rb-7) 21px,
    var(--rb-8) 21px, var(--rb-8) 24px
  );
  animation: rbar-cycle 1.2s linear infinite;
  margin: 0 -2rem;
}
.fairlight-raster-top { margin-bottom: 1.5rem; }
.fairlight-raster-bottom { margin-top: 1.5rem; }
.fairlight-title {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 3vw, 1.4rem);
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(85,255,255,0.8);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.fairlight-greetings {
  overflow: hidden;
  height: 2.5rem;
  position: relative;
  margin-bottom: 1.5rem;
}
.fairlight-scroller {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--yellow);
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: scroller-anim 18s linear infinite;
}
@keyframes scroller-anim {
  from { left: 100%; }
  to   { left: -500%; }
}
.fairlight-tagline {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.fairlight-close {
  font-family: var(--font-heading);
  font-size: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  text-transform: uppercase;
}
.fairlight-close:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* ============================================================
   Petscii border decoration
   ============================================================ */
.petscii-border {
  border: 1px solid var(--cyan);
  position: relative;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.petscii-border::before {
  content: attr(data-label);
  position: absolute;
  top: -0.6rem;
  left: 0.75rem;
  background: var(--bg);
  font-family: var(--font-heading);
  font-size: 0.4rem;
  color: var(--cyan);
  padding: 0 0.5rem;
  letter-spacing: 0.1em;
}

/* ============================================================
   Page header for inner pages
   ============================================================ */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--border);
}
.page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 2.5vw, 1.1rem);
  color: var(--cyan);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}
.page-header-desc {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 700px;
  line-height: 1.75;
}
