@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-var.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #f3efff;
  --muted: #beb5e7;
  --gold: #ffd23a;
  --green: #64e879;
  --blue: #70d0ff;
  --edge: #7055d4;
  --title: "Lilita One", sans-serif;
  --pixel: "Press Start 2P", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, #0b0630, #241064 60%, #3c1a8f) fixed; color: var(--ink); font: 17px/1.6 "Nunito", system-ui, sans-serif; }
a { color: var(--gold); text-underline-offset: 4px; }
a:hover { color: #ffb464; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; border-radius: 3px; }
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding-block: 52px 32px; text-align: center; }
.hero h1 { font-size: clamp(64px, 12vw, 112px); }
.hero p { margin: 16px auto 0; color: var(--muted); max-width: 600px; }
.eyebrow { font: 9px/1.8 var(--pixel); color: var(--muted); letter-spacing: .04em; }
.hero .eyebrow { margin-top: 22px; }
.jj-title { display: inline-block; margin: 0; font-family: var(--title); font-weight: 400; line-height: 1.1; background: linear-gradient(#fff6a8, #ffd23a 30%, #ff8a1c 55%, #ff3b5c 80%, #ff4fd8); color: transparent; background-clip: text; -webkit-background-clip: text; -webkit-text-stroke: 2px #1a0840; paint-order: stroke fill; filter: drop-shadow(3px 3px 0 #1a0840); transform: skewX(-6deg); }
.jj-title.green { background-image: linear-gradient(#e9ffb0, #9cff5a 35%, #39d353 70%, #1c8a2f); }
.jj-title.blue { background-image: linear-gradient(#e3fbff, #7fdcff 35%, #2fb7ff 70%, #1655c9); }
.top { position: sticky; top: 0; z-index: 10; background: #0b0630ed; backdrop-filter: blur(8px); border-block: 1px solid #7055d480; }
.top ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.top a { display: block; padding: 12px 16px; font: 20px var(--title); color: var(--muted); text-decoration: none; }
.top a:hover, .top a:focus-visible { color: var(--gold); }
section { padding-top: 56px; scroll-margin-top: 68px; }
h2 { font-size: clamp(34px, 6vw, 46px); }
h3, h4 { font-family: var(--title); font-weight: 400; }
h3 { margin: 0 0 8px; font-size: 25px; color: var(--gold); }
h4 { font-size: 20px; margin: 5px 0; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 780px; margin-block: 14px 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pill { display: inline-block; font: 8px/1.6 var(--pixel); padding: 6px 9px; border-radius: 4px; background: #292052; color: var(--ink); }
.pill.playable { background: #183d27; color: #a4f7ab; }
.pill.preparing { background: #172f55; color: #a7dfff; }
.panel { background: #100934d9; border: 2px solid var(--edge); border-radius: 10px; padding: 24px; box-shadow: inset 1px 1px 0 #a99bff80, 4px 4px 0 #05021a; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; }
.num { font: 42px/1.1 var(--title); }
.num small { font-size: 23px; color: var(--muted); }
.stat p { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.note { color: var(--muted); font-size: 14px; margin-block: 16px 24px; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.columns > *, .timeline-grid > * { min-width: 0; }
.columns p { margin: 0; color: var(--muted); }
.next { padding-block: 20px 0; margin: 0; color: var(--muted); }
.next strong { color: var(--ink); }
.plus-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.plus-summary p { color: var(--muted); }
.plus-summary p:last-child { margin-bottom: 0; }
.timeline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.timeline-grid article > h3 { margin-bottom: 24px; }
.timeline { list-style: none; margin: 0; padding-left: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 8px; width: 2px; background: #7055d4; }
.timeline > li { position: relative; padding-left: 4px; margin-bottom: 28px; }
.timeline > li:last-child { margin-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; background: var(--green); border: 2px solid #1a0840; transform: rotate(45deg); }
.timeline-grid .plus-history li::before { background: var(--blue); }
.timeline time { font: 8px/1.8 var(--pixel); color: var(--gold); }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }
.future { margin-top: 24px; }
.ground { margin-top: 56px; height: 28px; border-top: 6px solid #64dc4d; background: repeating-linear-gradient(90deg, #8a4b1e 0 32px, #6e3a15 32px 64px); }
footer { background: #2b160e; color: #deccb9; padding: 24px 0 30px; font-size: 14px; }
footer p { margin-bottom: 10px; max-width: 900px; }
footer p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-block: 36px 24px; }
  .top ul { gap: 2px; }
  .top a { padding: 12px 8px; font-size: 17px; white-space: nowrap; }
  section { padding-top: 40px; }
  .panel { padding: 20px; }
  .stats { gap: 8px; }
  .stat { padding: 18px 6px; }
  .num { font-size: 30px; }
  .num small { display: block; font-size: 17px; }
  .stat p { font-size: 12px; }
  .columns, .plus-summary, .timeline-grid { grid-template-columns: 1fr; gap: 24px; }
  .jj-title { -webkit-text-stroke-width: 1.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Public milestone counts are rendered from data/milestones.json. */
.reference-checks { margin-block: 20px; }
.reference-checks summary { cursor: pointer; color: var(--gold); font-family: var(--title); font-size: 22px; }
.reference-checks[open] summary { margin-bottom: 16px; }
.timeline-grid .milestone-project > h3 { margin-bottom: 8px; }
.milestone-count { color: var(--muted); margin-bottom: 10px; }
.milestone-count strong { color: var(--ink); font: 36px/1.2 var(--title); margin-right: 8px; }
.milestone-count strong span { color: var(--muted); font-size: 24px; }
.milestone-project progress { display: block; width: 100%; height: 12px; margin-bottom: 28px; border: 0; border-radius: 6px; overflow: hidden; background: #292052; accent-color: var(--green); }
#timeline-plus progress { accent-color: var(--blue); }
.milestone-project progress::-webkit-progress-bar { background: #292052; border-radius: 6px; }
.milestone-project progress::-webkit-progress-value { background: var(--green); border-radius: 6px; }
#timeline-plus progress::-webkit-progress-value { background: var(--blue); }
.milestone-project progress::-moz-progress-bar { background: var(--green); border-radius: 6px; }
#timeline-plus progress::-moz-progress-bar { background: var(--blue); }
.milestone-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 5px; }
.milestone-heading h4 { margin: 0; }
.milestone-state { font-size: 12px; color: var(--muted); }
.timeline > li[data-status="complete"] .milestone-state { color: var(--green); }
.timeline > li[data-status="in_progress"] .milestone-state { color: var(--gold); }
.timeline > li[data-status="planned"]::before { background: #41316e; }
.timeline > li[data-status="in_progress"]::before { background: var(--gold); }

.coverage-section { margin-top: 32px; scroll-margin-top: 90px; }
.coverage-section > h3 { font-size: 29px; }
.coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.coverage-count strong { font: 32px var(--title); color: var(--ink); }
.coverage-count { color: var(--muted); }
.coverage-card progress { display: block; width: 100%; height: 14px; accent-color: var(--gold); }
.coverage-card .note { margin-bottom: 0; }
.component-summary { margin-top: 20px; }
.component-summary p { color: var(--muted); }
.component-summary summary { cursor: pointer; color: var(--gold); }
.component-summary li { margin-block: 8px; }
.component-state { color: var(--green); font-size: 13px; margin-left: 8px; }
.history-list { margin-block: 6px; }
.history-list time { font: 9px/1.8 var(--pixel); color: var(--gold); }
#history > .panel { margin-top: 24px; }
@media (max-width: 680px) {
  .coverage-grid { grid-template-columns: 1fr; }
  .top ul { flex-wrap: wrap; }
  .top a { font-size: 15px; padding: 9px 7px; }
  section { scroll-margin-top: 100px; }
}

.coverage-method summary { color: var(--gold); cursor: pointer; }
.coverage-method p { color: var(--muted); margin-top: 12px; }

/* Quality metrics */
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.coverage-bars, .explain { margin-top: 20px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: 12px; margin-block: 8px; }
.bar-row progress { width: 100%; height: 12px; accent-color: var(--green); border: 0; border-radius: 6px; background: #292052; }
.bar-row progress::-webkit-progress-bar { background: #292052; border-radius: 6px; }
.bar-row progress::-webkit-progress-value { background: var(--green); border-radius: 6px; }
.bar-row progress::-moz-progress-bar { background: var(--green); border-radius: 6px; }
.bar-row b { text-align: right; font-weight: 700; }
.explain p, .platform-list { color: var(--muted); }
.platform-list { list-style: none; padding: 0; margin: 0; }
.platform-list li { margin-block: 10px; }
.platform-list .pill { margin-inline: 8px; }
@media (max-width: 680px) {
  .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: minmax(0, 1fr) 3.6rem; }
  .bar-row progress { grid-column: 1 / -1; grid-row: 2; }
  .bar-row b { grid-row: 1; grid-column: 2; }
}

/* Four base-game metric tiles */
.stats.stats-base { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .stats.stats-base { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
