/* OpenDeadlock's web page. The modern UI's design system (galius-iv/modern-ui): its
   base (ui.css: dark steel, the game's green and gold) below, and over it, at the end,
   its "Tactical" theme (themes/tactical.css): square glass panels with a thin cyan
   edge, faint scanlines, uppercase mono labels. Sizes in rem: a page, not a window
   that scales. */

:root {
  --bg: #07090d;
  --steel-0: #0d1219;
  --steel-1: #141b25;
  --steel-2: #1d2733;
  --steel-3: #2a3646;
  --edge: #3a4859;
  --edge-hi: #6b7d93;
  --text: #dde6ef;
  --text-dim: #a4b1c0;
  --text-faint: #808d9c;
  --green: #6ef08e;
  --green-dim: #3c9a57;
  --gold: #f3c454;
  --red: #ff5f56;
  --blue: #4fb6ff;
  --violet: #b98cff;
  --display: "DIN Alternate", "Bahnschrift", "Rajdhani", "Roboto Condensed", system-ui, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", Consolas, ui-monospace, monospace;
  --r: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .88em var(--mono); background: var(--steel-1); border: 1px solid var(--steel-3);
  border-radius: 4px; padding: 0 .3em; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
h2 { font-size: 1.7rem; margin: 3.5rem 0 1.25rem; }
h3 { font-size: 1.2rem; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.dim { color: var(--text-dim); }
.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 46rem; }
.section-title { font: 600 .75rem var(--display); text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-faint); margin: 1.5rem 0 .6rem; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 13, .88);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--steel-2); }
.top .wrap { display: flex; align-items: center; gap: 1rem; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text);
  font: 700 1.2rem var(--display); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; }
nav a { color: var(--text-dim); padding: .3rem .6rem; border-radius: var(--r); font-family: var(--display);
  font-size: 1rem; }
nav a:hover { color: var(--text); background: var(--steel-1); text-decoration: none; }
nav a.ext { display: inline-flex; align-items: center; gap: .3rem; }
nav a.ext svg { width: .8em; height: .8em; }
nav a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }

/* buttons and chips (ui.css's .btn, .chip) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.4rem; padding: 0 1rem; color: var(--text); font: 600 1rem var(--display);
  background: linear-gradient(var(--steel-2), var(--steel-1));
  border: 1px solid var(--edge); border-top-color: var(--edge-hi); border-radius: 5px; cursor: pointer; }
.btn:hover { background: linear-gradient(#273343, var(--steel-2)); text-decoration: none; }
.btn.primary { background: linear-gradient(#2c7a49, #1a5232); border-color: #5fcf87; }
.btn.primary:hover { background: linear-gradient(#348f56, #1f5f3a); }
.btn.big { min-height: 3rem; padding: 0 1.4rem; font-size: 1.15rem; }
.chip { display: inline-flex; align-items: center; padding: .1rem .6rem; border-radius: 99px;
  background: var(--steel-2); color: var(--text-dim); font: 600 .8rem var(--display);
  border: 1px solid transparent; white-space: nowrap; }
button.chip { cursor: pointer; font-size: .9rem; padding: .25rem .8rem; }
button.chip.on { border-color: var(--blue); color: var(--text);
  box-shadow: 0 0 10px rgba(79, 182, 255, .3); }
.chip.k-game { color: var(--green); }
.chip.k-feature { color: var(--gold); }
.chip.k-qol { color: var(--blue); }
.chip.k-port { color: var(--violet); }

/* hero */
.hero { padding: 4.5rem 0 2.5rem;
  background: radial-gradient(ellipse 80% 70% at 70% 0%, rgba(79, 182, 255, .12), transparent 70%),
              radial-gradient(ellipse 60% 60% at 0% 100%, rgba(110, 240, 142, .07), transparent 70%); }
.eyebrow { font: 600 .8rem var(--display); text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold); margin: 0 0 .8rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 1.25rem; }
.platforms { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; }
.note { color: var(--text-faint); font-size: .92rem; margin-top: 1.25rem; }

/* screenshots */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gallery a { display: block; border: 1px solid var(--edge); border-top-color: var(--edge-hi);
  border-radius: var(--r); overflow: hidden; background: #000; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery.classic img { image-rendering: pixelated; aspect-ratio: 4 / 3; }
.gallery.modern img { aspect-ratio: 16 / 9; }
.caption { color: var(--text-faint); font-size: .92rem; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* panels: ui.css's .panel */
.feature, .card, .entry, .steps li {
  background: rgba(13, 18, 25, .86); border: 1px solid var(--edge); border-top-color: var(--edge-hi);
  border-radius: var(--r); box-shadow: 0 6px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.feature { padding: 1.1rem 1.2rem; }
.feature h3 { color: var(--green); margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: .95rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; counter-reset: s; }
.steps li { padding: .9rem 1.1rem .9rem 3.4rem; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: .85rem;
  font: 700 1.3rem var(--display); color: var(--gold); }

/* What's new, the changelog */
.doc { padding-top: 2.5rem; padding-bottom: 2rem; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.5rem 0 0; position: sticky;
  top: 3.5rem; z-index: 5; padding: .6rem 0; background: var(--bg); }
.day h2 { margin: 2.25rem 0 .8rem; font-size: 1.3rem; color: var(--text-dim); }
.card, .entry { padding: 1rem 1.2rem; margin-bottom: .75rem; }
.card-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.card-head .chip { flex: none; transform: translateY(-2px); }
.card p { margin: .5rem 0 0; color: var(--text-dim); }
.card .more { display: inline-block; margin-top: .4rem; font-size: .88rem; }
.shots { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }
.shots figure { margin: 0; flex: 1 1 220px; max-width: 340px; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--edge);
  border-radius: 4px; image-rendering: pixelated; background: #000; }
.shots figcaption { font-size: .8rem; color: var(--text-faint); margin-top: .25rem; }

.with-toc { display: grid; grid-template-columns: 11rem 1fr; gap: 2.5rem; }
.toc { position: sticky; top: 4.5rem; align-self: start; display: flex; flex-direction: column;
  max-height: calc(100vh - 6rem); overflow: auto; }
.toc .section-title { margin-top: 0; }
.toc a { color: var(--text-dim); padding: .15rem 0; font-size: .92rem; }
.toc a:hover { color: var(--text); }
.with-toc > div { min-width: 0; }
.intro { color: var(--text-dim); }
.with-toc section > h2 { color: var(--text-dim); font-size: 1.3rem; margin: 2.5rem 0 .8rem;
  padding-bottom: .4rem; border-bottom: 1px solid var(--steel-2); }
.entry h3 a { color: var(--text); }
.entry p, .entry li { color: var(--text-dim); }
.entry:target { border-color: var(--blue); }
table { border-collapse: collapse; font-size: .9rem; margin: .75rem 0; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--steel-3); padding: .3rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--steel-1); }
@media (max-width: 600px) {
  .top .wrap { gap: .5rem; }
  .brand { font-size: 1.05rem; }
  .hero { padding-top: 2.5rem; }
  h1 br { display: none; }
}
@media (max-width: 820px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { display: none; }
}

footer { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--steel-2);
  font-size: .88rem; color: var(--text-faint); }
footer p { max-width: 46rem; }

/* ------------------------------------------------------------------ Tactical
   themes/tactical.css: a command-table hologram. Cold cyan for the interface; the
   game's green, gold and red kept for what they mean. */
:root {
  --bg: #02080c;
  --cyan: #46e0ff; --cyan-dim: rgba(70, 224, 255, .35); --cyan-faint: rgba(70, 224, 255, .12);
  --blue: #46e0ff;
  --edge: rgba(70, 224, 255, .28); --edge-hi: rgba(70, 224, 255, .5);
  --text: #d8f6ff; --text-dim: #8fc3d2; --text-faint: #5f8e9c;
  --steel-1: rgba(70, 224, 255, .06); --steel-2: rgba(70, 224, 255, .1); --steel-3: rgba(70, 224, 255, .22);
  --r: 0;
}
body { background:
  radial-gradient(ellipse 90% 50% at 50% -10%, rgba(70, 224, 255, .1), transparent 70%), var(--bg);
  background-attachment: fixed; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--cyan); }
code { border-radius: 0; color: var(--cyan); background: rgba(0, 10, 14, .8); border-color: var(--edge); }
h1, h2 { text-transform: uppercase; letter-spacing: .06em; color: #fff;
  text-shadow: 0 0 18px rgba(70, 224, 255, .45); }
h3 { letter-spacing: .03em; }
.section-title { font-family: var(--mono); letter-spacing: .2em; color: var(--cyan);
  display: flex; align-items: center; gap: .5rem; }
.section-title::before { content: ""; width: 6px; height: 6px; background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan); }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--edge), transparent); }
.eyebrow { font-family: var(--mono); letter-spacing: .2em; }

.top { background: rgba(2, 10, 14, .88); border-bottom-color: var(--edge); }
.brand { text-transform: uppercase; letter-spacing: .08em; }
nav a { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; border-radius: 0; }
nav a:hover { background: var(--cyan-faint); text-shadow: none; }
nav a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); text-shadow: 0 0 8px var(--cyan); }
nav a .n { color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }

/* keys: a lit bar at the left */
.btn { border: 0; border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem;
  background: linear-gradient(var(--cyan-dim), var(--cyan-dim)) left / 2px 100% no-repeat, var(--cyan-faint); }
.btn:hover { color: #fff; text-shadow: none;
  background: linear-gradient(var(--cyan), var(--cyan)) left / 2px 100% no-repeat, rgba(70, 224, 255, .24); }
.btn.primary { color: #c9ffd6;
  background: linear-gradient(#6ef08e, #6ef08e) left / 3px 100% no-repeat, rgba(110, 240, 142, .2); }
.btn.primary:hover { color: #fff;
  background: linear-gradient(#6ef08e, #6ef08e) left / 3px 100% no-repeat, rgba(110, 240, 142, .32); }
.btn.big { font-size: 1rem; }
.chip { border-radius: 0; background: rgba(70, 224, 255, .08); border: 1px solid var(--edge);
  font: .75rem var(--mono); letter-spacing: .04em; }
button.chip { font-size: .8rem; }
button.chip.on { background: rgba(70, 224, 255, .25); border-color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }

.hero { background: none; }

/* glass panels with scanlines */
.feature, .card, .entry, .steps li, .gallery a {
  border: 1px solid var(--edge); border-radius: 0;
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 8px 24px rgba(0, 0, 0, .5);
  background:
    repeating-linear-gradient(180deg, rgba(70, 224, 255, .035) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(6, 28, 38, .9), rgba(3, 12, 18, .92)); }
.gallery a { padding: 3px; }
.gallery a:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(70, 224, 255, .35); }
.feature h3 { text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.steps li::before { font-family: var(--mono); }
.shots img { border-radius: 0; border-color: var(--edge); }
.shots figcaption { font-family: var(--mono); font-size: .72rem; }
.entry:target { border-color: var(--cyan); box-shadow: 0 0 16px rgba(70, 224, 255, .3); }
.day h2, .with-toc section > h2 { font-family: var(--mono); font-weight: 600; font-size: 1rem;
  letter-spacing: .14em; color: var(--cyan); text-shadow: none; }
.with-toc section > h2 { border-bottom-color: var(--edge); }
.filters { background: rgba(2, 8, 12, .95); }
.toc a { font-family: var(--mono); font-size: .82rem; }
.toc a:hover { text-shadow: none; }
th { font-family: var(--mono); font-size: .8rem; }
footer { border-top-color: var(--edge); }

/* the platforms' downloads: underlined links in a row, a dot between them */
.platforms { gap: .25rem 0; font-size: .95rem; }
.platforms > * + *::before { content: "\00b7"; display: inline-block; color: var(--text-faint); margin: 0 .6rem; }
.platforms a { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan-dim);
  text-underline-offset: 3px; }
.platforms a:hover { color: #fff; text-decoration-color: var(--cyan); }
.platforms span { color: var(--text-faint); }

/* What's new: the changes by kind; the sidebar filters them by domain (All, or one) */
.toc.side { gap: .4rem; max-height: calc(100vh - 6rem); }
.toc a.filt { display: flex; justify-content: space-between; align-items: center;
  padding: .35rem .6rem; border-left: 2px solid var(--edge); text-decoration: none;
  font: 700 .95rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.toc a.filt span { font: .75rem var(--mono); color: var(--text-faint); }
.toc a.filt:hover { color: #fff; background: var(--cyan-faint); text-shadow: none; }
.toc a.filt.on { color: var(--text); background: linear-gradient(90deg, rgba(70, 224, 255, .18), transparent); }
.toc a.filt.k-all { border-left-color: var(--cyan); }
.toc a.filt.k-feature { border-left-color: var(--gold); }
.toc a.filt.k-qol { border-left-color: var(--blue); }
.toc a.filt.k-game { border-left-color: var(--green); }
.with-toc.doc { grid-template-columns: 13rem 1fr; }
.group h2 { margin: 2.5rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--edge); font-size: 1.3rem; }
.group.k-feature h2 { color: var(--gold); }
.group.k-qol h2 { color: var(--blue); }
.group.k-game h2 { color: var(--green); }
.group[hidden] { display: none; }
.chip[class*=" d-"] { color: var(--text-dim); }
.item { display: flex; gap: 1rem; align-items: flex-start; padding: .8rem .2rem; border-bottom: 1px solid var(--steel-2); }
.item:target { background: var(--cyan-faint); box-shadow: inset 2px 0 0 var(--cyan); padding-left: .8rem; }
.item-text { flex: 1; min-width: 0; }
.item h3 { font-size: 1.05rem; }
.item p { margin: .2rem 0 0; color: var(--text-dim); font-size: .95rem; }
.item .more { font-size: .85rem; margin-left: .25rem; }
.item .date { font: .72rem var(--mono); color: var(--text-faint); }
.thumbs { display: flex; gap: .4rem; flex: none; }
.thumbs a { display: block; border: 1px solid var(--edge); }
.thumbs a:hover { border-color: var(--cyan); }
.thumbs img { display: block; height: 72px; width: auto; image-rendering: pixelated; }
@media (max-width: 820px) {
  /* the filters as a row above the changes */
  .toc.side { display: flex; position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
  .toc a.filt { gap: .5rem; font-size: .85rem; }
  .item { flex-direction: column; }
  /* one column: .with-toc.doc above outranks .with-toc's own narrow rule */
  .with-toc.doc { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .thumbs { flex-wrap: wrap; max-width: 100%; }
  .thumbs img { height: 64px; }
}

/* Games: the relay's counts and listed games */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1.5rem 0 1rem; }
.stat { padding: 1rem 1.2rem; border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge-hi);
  background: repeating-linear-gradient(180deg, rgba(70, 224, 255, .035) 0 1px, transparent 1px 3px),
              linear-gradient(160deg, rgba(6, 28, 38, .9), rgba(3, 12, 18, .92)); }
.stat b { display: block; font: 700 2rem var(--mono); color: #fff; text-shadow: 0 0 12px rgba(70, 224, 255, .5); }
.stat span { color: var(--text-dim); font-size: .9rem; }
.stats.small .stat b { font-size: 1.4rem; }
.uptime { display: flex; width: fit-content; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.uptime img { display: block; }
.games { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; }
.games li { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 1rem; background: rgba(70, 224, 255, .05); border-left: 2px solid var(--cyan-dim); }
.games li .name { font: 600 1.05rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.games li .meta { color: var(--text-dim); font: .85rem var(--mono); white-space: nowrap; }
.games li.empty { color: var(--text-faint); border-left-color: var(--edge); font-style: italic; }
.games .code { font: 700 .95rem var(--mono); letter-spacing: .12em; color: var(--green);
  background: rgba(110, 240, 142, .12); border: 1px solid rgba(110, 240, 142, .4); padding: .1rem .5rem; cursor: pointer; }
.games .code:hover { background: rgba(110, 240, 142, .24); }
.games .code.copied::after { content: " copied"; letter-spacing: 0; font-weight: 400; color: var(--text-dim); }
.join { font-size: .9rem; margin: .6rem 0 0; }
.status { font: .8rem var(--mono); margin-top: 1.5rem; }
@media (max-width: 600px) { .games li { flex-direction: column; align-items: flex-start; gap: .2rem; } }

/* the enlarged screenshot (lightbox.js) */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 3rem 1rem 1rem; background: rgba(1, 5, 8, .92); backdrop-filter: blur(4px); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1600px, 100%); display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; cursor: default;
  border: 1px solid var(--edge); box-shadow: 0 0 40px rgba(70, 224, 255, .2); background: #000; }
.lightbox img.pixel { image-rendering: pixelated; }
.lightbox figcaption { margin-top: .6rem; color: var(--text-dim); font: .85rem var(--mono); text-align: center; }
.lightbox button { flex: none; background: rgba(70, 224, 255, .1); border: 1px solid var(--edge); color: var(--text);
  width: 2.6rem; height: 2.6rem; font: 1.6rem/1 var(--display); cursor: pointer; }
.lightbox button:hover { background: rgba(70, 224, 255, .25); border-color: var(--cyan); }
.lightbox button[hidden] { display: none; }
.lightbox .lb-close { position: absolute; top: .75rem; right: .75rem; }
@media (max-width: 600px) { .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 1rem; }
  .lightbox .lb-prev { left: 1rem; } .lightbox .lb-next { right: 1rem; } }

/* Landing: the relay's live counts, one row above the screenshots */
a.online { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; margin: 0 0 .5rem;
  padding: .7rem 1rem; color: var(--text-dim); font: .85rem var(--mono); letter-spacing: .04em;
  border: 1px solid var(--edge); background: rgba(70, 224, 255, .05); }
a.online:hover { text-decoration: none; text-shadow: none; border-color: var(--cyan); color: var(--text); }
a.online b { color: #fff; font-size: 1rem; margin-right: .2rem; }
a.online .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite; }
a.online.offline .dot { background: var(--text-faint); box-shadow: none; animation: none; }
a.online .go { margin-left: auto; color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { a.online .dot { animation: none; } }

/* before/after slider (compare.js): the before picture over the after, clipped at --pos */
.compare { --pos: 50%; position: relative; max-width: 640px; margin: .9rem 0; overflow: hidden;
  border: 1px solid var(--edge); background: #000; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  image-rendering: pixelated; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); pointer-events: none; }
.cmp-handle::after { content: "\2039\00a0\203a"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); padding: .15rem .45rem; font: 700 .9rem/1 var(--mono);
  color: #021015; background: var(--cyan); white-space: nowrap; }
.cmp-label { position: absolute; top: .5rem; padding: .1rem .45rem; font: .7rem var(--mono);
  text-transform: uppercase; letter-spacing: .1em; color: #fff; background: rgba(2, 8, 12, .75);
  pointer-events: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-label.l { left: .5rem; }
.cmp-label.r { right: .5rem; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.compare.small { flex: none; width: 300px; margin: 0; }
@media (max-width: 820px) { .compare.small { width: 100%; } }

/* FAQ: questions that open */
.faq { max-width: 860px; }
.faq .section-title { margin-top: 2.2rem; }
.faq details { border: 1px solid var(--edge); border-left: 2px solid var(--cyan-dim); margin-bottom: .5rem;
  background: rgba(70, 224, 255, .04); }
.faq details[open] { border-left-color: var(--cyan); background: rgba(70, 224, 255, .07); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem; font: 600 1.05rem var(--display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.1rem/1 var(--mono); color: var(--cyan); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: #fff; }
.faq details p { margin: 0; padding: 0 1rem .9rem; color: var(--text-dim); }

/* the phone's menu: a button in place of the links, which open as a panel under the bar */
.menu { display: none; margin-left: auto; width: 2.6rem; height: 2.4rem; padding: 0 .6rem;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
  background: var(--cyan-faint); border: 1px solid var(--edge); }
.menu i { display: block; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.top.open .menu i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.open .menu i:nth-child(2) { opacity: 0; }
.top.open .menu i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {  /* the top bar's links need ~850px; below that, the menu button */
  .menu { display: flex; }
  .top nav { display: none; position: absolute; top: 3.5rem; left: 0; right: 0; flex-direction: column;
    gap: 0; padding: .4rem 16px 1rem; background: #02090d; border-bottom: 1px solid var(--edge);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .5); }
  .top.open nav { display: flex; }
  .top nav a { padding: .8rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--steel-2); }
  .top nav a:last-child { border-bottom: 0; }
  .top nav a.on { box-shadow: inset 3px 0 0 var(--cyan); padding-left: .8rem; }
}

/* phones: the landing page */
@media (max-width: 600px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; margin-top: 2.5rem; }
  .lead { font-size: 1.02rem; }
  .cta .btn { flex: 1 1 100%; }
  .platforms { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; font-size: .92rem; }
  .platforms > * + *::before { display: none; }
  a.online { gap: .3rem 1rem; font-size: .8rem; }
  a.online .go { margin-left: 0; flex-basis: 100%; }
  .features { grid-template-columns: 1fr; }
  .steps li { padding: .8rem .9rem .8rem 2.6rem; }
  .steps li::before { left: .9rem; }
  .steps code { white-space: normal; }
}
/* a long kind ("game change (network, normal play unchanged)") wraps on a phone */
.entry .card-head .chip { white-space: normal; max-width: 100%; }
.entry p, .entry li, .item p { overflow-wrap: anywhere; }

/* What's new: one list; each change's kind and date under its sentence */
.items { margin-top: 1.5rem; border-top: 1px solid var(--edge); }
.item[hidden] { display: none; }
.item .meta { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.item .meta .chip { font-size: .68rem; padding: 0 .45rem; }

/* Downloads: a row per platform */
.downloads { max-width: 900px; }
.dl-list { display: grid; gap: .5rem; margin: 1.5rem 0 1rem; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem;
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge-hi);
  background: repeating-linear-gradient(180deg, rgba(70, 224, 255, .035) 0 1px, transparent 1px 3px),
              linear-gradient(160deg, rgba(6, 28, 38, .9), rgba(3, 12, 18, .92)); }
.dl-row h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
.dl-row h3 span { font: .8rem var(--mono); color: var(--cyan); text-transform: none; letter-spacing: 0; margin-left: .4rem; }
.dl-row p { margin: .2rem 0 0; color: var(--text-dim); font-size: .92rem; }
.dl-row .btn { flex: none; }
.dl-row .btn small { font: .75rem var(--mono); opacity: .75; margin-left: .3rem; letter-spacing: 0; }
.dl-row.off { opacity: .6; }
.dl-row.off .btn { cursor: default; }
@media (max-width: 600px) { .dl-row { flex-direction: column; align-items: stretch; } }

/* the landing page's button, once it names the visitor's system: the version and size under it */
.cta #get small { font: .78rem var(--mono); opacity: .8; margin-left: .45rem; letter-spacing: 0; }
.hero .other { margin: -.6rem 0 1.1rem; font-size: .9rem; }
.hero .other a { color: var(--text-dim); }
.hero .other a:hover { color: var(--cyan); }

/* the short changelog: each release as its Discord post, one line a change */
.rel h2 { margin: 2.25rem 0 .2rem; font-size: 1.3rem; }
.rel h2 .date { font: 400 .9rem var(--mono); color: var(--text-faint); letter-spacing: 0;
  text-transform: none; text-shadow: none; margin-left: .5rem; }
.rel-meta { margin: 0 0 .5rem; color: var(--text-faint); font-size: .9rem; }
.rel ul { margin: 0; padding-left: 1.2rem; }
.rel li { margin: .2rem 0; }
.rel li a { color: var(--text); }
.rel li .dom { color: var(--text-faint); font-style: italic; font-size: .88rem; }
.rel-more { margin: .4rem 0 0; font-size: .9rem; }
