/* Editions (data/editions.js): the same game and layout as Zero-In (style.css) in the edition's
   own colors. Every color comes from the edition's page (tools/editions.mjs writes them as
   --e-* variables on body.edition); the score colors stay the target's. */
body.edition {
  --bg: var(--e-bg); --card: var(--e-card); --ink: var(--e-ink); --muted: var(--e-muted); --line: var(--e-line);
  --field: var(--e-field); --accent: var(--e-accent); --board-bg: var(--e-board-bg);
}
@media (prefers-color-scheme: dark) {
  body.edition { --bg: var(--e-bg-d); --card: var(--e-card-d); --ink: var(--e-ink-d); --muted: var(--e-muted-d); --line: var(--e-line-d);
                 --field: var(--e-field-d); --accent: var(--e-accent-d); --board-bg: var(--e-board-bg-d); }
}
html:has(body.edition), body.edition { background: var(--e-page); }
body.edition { background: linear-gradient(180deg, var(--e-page-top) 0, var(--e-page) 340px) no-repeat, var(--e-page); min-height: 100vh; }
body.edition .tag { color: var(--e-text); }
body.edition .top .round { color: var(--e-label); }
body.edition .stage, body.edition .final { border-color: var(--e-border); box-shadow: 0 18px 40px rgba(0, 10, 25, .5); }
body.edition .steps li.now { background: #0f2233; box-shadow: 0 0 0 3px var(--e-ring); }
body.edition .foot { color: var(--e-text); flex-wrap: wrap; }
body.edition .aboutgame { color: var(--e-text); }
body.edition .foot .linkish, body.edition .foot .soundtoggle { color: var(--e-text); }
body.edition .logo { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
body.edition #zilink { flex-basis: 100%; }
body.edition #zilink[hidden] { display: none; }
/* Before #1: just the line saying when it opens. */
body.notyet .board, body.notyet #steps, body.notyet #start { display: none; }
/* Sub-Zero on an edition: Sub-Zero's frost on the edition's own colors; the card's label keeps the
   edition's color, which is legible on every edition's card (Sub-Zero's blue is not, on dark ones). */
body.edition.subzero .stage .round, body.edition.subzero .final .round { color: var(--muted); }
body.edition .foot2 .backlink { color: var(--e-text); }
