:root {
  --bg: #0a0e0c;
  --bg-elevated: #11171a;
  --bg-card: #161e22;
  --border: #1f2a30;
  --border-bright: #2a3a42;
  --text: #e8f0ec;
  --text-muted: #7a8a85;
  --text-dim: #4a5a55;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --pink: #ff3d8b;
  --yellow: #ffe066;
  --display: 'Silkscreen', monospace;
  --mono: 'JetBrains Mono', monospace;
  --body: 'Sora', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(0,255,136,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(255,61,139,0.03) 0%, transparent 40%);
  min-height: 100vh;
}

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px);
  opacity: 0.4;
  mix-blend-mode: multiply;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10,14,12,0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 16px; flex-wrap: wrap; }
.logo {
  font-family: var(--display);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo-bracket { color: var(--accent); }
.logo-accent { color: var(--pink); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 13px; }
nav a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
nav a:hover { color: var(--accent); }

/* FOOTER */
.site-footer { margin-top: 80px; padding: 32px 0 48px; border-top: 1px solid var(--border); }
.footer-line { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.footer-line.muted { color: var(--text-dim); }

/* HERO (homepage) */
.hero { padding: 64px 0 48px; text-align: left; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 16px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero h1 .glow { color: var(--accent); text-shadow: 0 0 24px rgba(0,255,136,0.4); }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 620px; }

/* SECTIONS */
.section { margin: 48px 0; }
.section-title {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}
.section-title::before {
  content: '▸'; color: var(--accent); font-size: 14px;
}

/* GAME GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all 0.18s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,255,136,0.08);
}
.card-year {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  margin-bottom: 6px; letter-spacing: 0.1em;
}
.card-title {
  font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.25;
}
.card-meta {
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  margin-bottom: 12px;
}
.card-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; border-top: 1px dashed var(--border-bright);
  font-family: var(--mono); font-size: 12px;
}
.card-stat-label { color: var(--text-muted); }
.card-stat-value { color: var(--accent); font-weight: 500; font-size: 14px; }

/* GAME PAGE */
.game-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.crumbs {
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  margin-bottom: 20px;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--text-dim); margin: 0 8px; }

.game-title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 16px;
  line-height: 1.1;
}
.game-tagline { color: var(--text-muted); font-size: 17px; max-width: 720px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.15s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* COMPLETION TIME BLOCKS */
.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0 40px;
}
.time-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.time-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
}
.time-block.extra::before { background: var(--yellow); }
.time-block.completionist::before { background: var(--pink); }
.time-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.time-value {
  font-family: var(--display);
  font-size: 36px;
  color: var(--text);
  margin-bottom: 4px;
}
.time-suffix { font-size: 14px; color: var(--text-muted); margin-left: 4px; }
.time-desc { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* INFO TABLE */
.info-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 0;
  margin: 24px 0;
}
.info-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.info-row:last-child { border-bottom: none; }
.info-key { font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 0; min-width: 110px; }
.info-val { font-size: 14px; text-align: right; color: var(--text); }
.info-val a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-bright); }
.info-val a:hover { color: var(--accent); border-color: var(--accent); }

/* PROSE */
.prose { max-width: 720px; margin: 0; }
.prose p { margin-bottom: 16px; color: var(--text); font-size: 16px; line-height: 1.7; }
.prose h2 {
  font-family: var(--display); font-size: 20px;
  margin: 40px 0 16px; letter-spacing: 0.02em;
}
.prose h2::before { content: '▸ '; color: var(--accent); }

/* COMPARE PAGE */
.compare-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 32px 0;
}
.compare-side { text-align: center; padding: 32px 16px; background: var(--bg-card); border: 1px solid var(--border); }
.compare-side h2 {
  font-family: var(--display); font-size: 22px;
  margin-bottom: 8px; line-height: 1.15;
}
.compare-side .meta { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.compare-side a { color: inherit; text-decoration: none; }
.compare-side a:hover h2 { color: var(--accent); }
.vs-marker {
  font-family: var(--display);
  font-size: 28px;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255,61,139,0.5);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: var(--bg-card);
}
.compare-table td { color: var(--text); }
.compare-table .winner { color: var(--accent); font-weight: 500; }

.compare-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 16px; }
.compare-link {
  font-family: var(--mono); font-size: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.compare-link:hover { border-color: var(--accent); color: var(--accent); }

/* INDEX HUB PAGES (genres / platforms list) */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.hub-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: all 0.15s;
}
.hub-card:hover { border-color: var(--accent); }
.hub-card span:first-child { font-weight: 500; }
.hub-card .count { font-family: var(--mono); font-size: 12px; color: var(--accent); }

@media (max-width: 600px) {
  .compare-vs { grid-template-columns: 1fr; }
  .vs-marker { padding: 8px 0; }
  .header-inner { padding: 14px 20px; }
  nav { gap: 14px; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-val { text-align: left; }
}
