:root {
  --bg: #fafaf8; --fg: #1d1f21; --muted: #5f6368; --line: #dcdcd6; --card: #ffffff; --accent: #2457b3; --accent-fg: #ffffff;
  --code: #eef0ec; --hl: #eef3fc; --works: #1f7a3a; --runs: #8a6100; --broken: #b3261e; --noeffect: #5f6368; --retest: #6b3fa0; --untested: #8a8f94;
  --eye-l: #2f6fd6; --eye-r: #d9661f; --near: #d9661f; --far: #2f6fd6;
  --broken-bg: #fbeeed; --shadow: rgba(20, 30, 50, .22); --halo: .55; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a; --fg: #e4e6e8; --muted: #9aa0a6; --line: #30343a; --card: #1c1f23; --accent: #8ab4f8; --accent-fg: #10213f;
    --code: #262a30; --hl: #1f2836; --works: #6dd58c; --runs: #f2c14e; --broken: #f28b82; --noeffect: #9aa0a6; --retest: #c9a7f5; --untested: #7c828a;
    --eye-l: #8ab4f8; --eye-r: #f6a66b; --near: #f6a66b; --far: #8ab4f8;
    --broken-bg: #2b1d1e; --shadow: rgba(0, 0, 0, .65); --halo: .6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a; --fg: #e4e6e8; --muted: #9aa0a6; --line: #30343a; --card: #1c1f23; --accent: #8ab4f8; --accent-fg: #10213f;
  --code: #262a30; --hl: #1f2836; --works: #6dd58c; --runs: #f2c14e; --broken: #f28b82; --noeffect: #9aa0a6; --retest: #c9a7f5; --untested: #7c828a;
  --eye-l: #8ab4f8; --eye-r: #f6a66b; --near: #f6a66b; --far: #8ab4f8;
  --broken-bg: #2b1d1e; --shadow: rgba(0, 0, 0, .65); --halo: .6; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, sans-serif; }
a { color: var(--accent); }
img, video { max-width: 100%; height: auto; display: block; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { line-height: 1.2; }

nav.top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 14px 16px; }
nav.top a { text-decoration: none; color: var(--fg); }
nav.top a[aria-current] { color: var(--accent); }
#lang { font: inherit; font-size: 14px; color: var(--fg); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 6px; max-width: 100%; }
nav.top .brand { font-weight: 700; font-size: 18px; margin-right: auto; }

section, header.page, main.page, footer.foot { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
section { padding-top: 32px; padding-bottom: 16px; }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding-top: 24px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; letter-spacing: -0.5px; }
.lead { font-size: 19px; margin: 0 0 24px; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600;
  font-size: 19px; padding: 14px 24px; border-radius: 10px; margin-bottom: 12px; }
.cta:hover { filter: brightness(1.08); }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-img img { width: 100%; border-radius: 10px; }

.promo { margin: 8px 0 24px; }
.promo img { width: 100%; border-radius: 12px; }
.steps { max-width: 820px; margin: 0 auto 24px; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.card h3 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
.card p { margin: 0; }
.card.wide { grid-column: span 2; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid img { width: 100%; border-radius: 8px; }
.honest p { max-width: 820px; }
footer.foot { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); margin-top: 24px; }

header.page h1 { margin: 8px 0 4px; font-size: 30px; }
header.page p { margin: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 16px 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 0; margin: 0; overflow: hidden; background: var(--card); }
.seg legend { float: left; padding: 8px 10px; color: var(--muted); font-size: 14px; }
.seg label { padding: 8px 14px; cursor: pointer; border-left: 1px solid var(--line); font-size: 15px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
#q { flex: 1 1 240px; max-width: 380px; padding: 8px 10px; font: inherit; color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips button { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  color: var(--muted); background: transparent; border: 1px solid var(--line); text-decoration: line-through; }
.chips button[aria-pressed="true"] { color: var(--fg); background: var(--card); border-color: var(--accent); text-decoration: none; }
.note { background: var(--hl); border-radius: 8px; padding: 8px 12px; font-size: 14px; max-width: 900px; }
.wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--card); white-space: nowrap; user-select: none; font-size: 14px; }
th[data-k] { cursor: pointer; }
th[aria-sort="ascending"]::after { content: " ▲"; color: var(--muted); }
th[aria-sort="descending"]::after { content: " ▼"; color: var(--muted); }
tr.grp th { background: var(--bg); border-top: 2px solid var(--line); padding: 14px 12px 6px; font-size: 15px; cursor: default; position: static; }
tr.grp:first-child th { border-top: 0; }
tr.grp .muted { font-weight: 400; font-size: 13px; margin-left: 6px; }
tr.row { cursor: pointer; }
tr.row.broken td, tr.row.broken td.hl { background: var(--broken-bg); }
tr.row.broken td:first-child { color: var(--muted); }
.gcell { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.marks { display: inline-flex; gap: 6px; flex: none; }
tr.row:hover td { background: var(--hl); }
tr.row td:first-child { font-weight: 600; }
td.hl { background: var(--hl); }
.tw { display: inline-block; color: var(--muted); transition: transform .15s; }
tr.open .tw { transform: rotate(90deg); }
.cam, .spb { color: var(--muted); font-weight: 400; }
td.more { text-align: right; font-size: 13px; white-space: nowrap; }
tr.det td { background: var(--bg); padding: 12px 16px 16px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 8px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; }
.pending { font-size: 14px; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; }
.media .load { justify-self: start; font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.media img, .media video { width: 100%; border-radius: 6px; }
code { background: var(--code); padding: 0 4px; border-radius: 4px; font-size: 13px; overflow-wrap: anywhere; }
.st { font-weight: 600; white-space: nowrap; }
.st-works { color: var(--works); } .st-runs { color: var(--runs); } .st-broken { color: var(--broken); }
.st-no-effect { color: var(--noeffect); } .st-retest { color: var(--retest); } .st-untested { color: var(--untested); font-weight: 400; }
.legend { font-size: 13px; margin: 12px 0 32px; }
main.page h2 { margin-top: 28px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  #t, #t thead, #t tbody, #t tr, #t td { display: block; }
  #t thead { display: none; }
  #t tr.row { padding: 8px 0; border-bottom: 1px solid var(--line); }
  #t tr.grp th { display: block; }
  #t td { border: 0; padding: 2px 14px; }
  #t tr.row td:not(:first-child):not(.more)::before { content: attr(data-h) ": "; color: var(--muted); font-weight: 400; }
  #t td.more { display: none; }
  #t td.hl { background: transparent; }
  dl { grid-template-columns: 1fr; }
}

/* Pictures: soft shadow, vignette (an overlay: an inset shadow on <img>
   itself is painted under the picture), and on the hero / promo a blurred
   left-eye / right-eye colour halo. */
.shot { position: relative; display: block; border-radius: 10px; box-shadow: 0 12px 32px -10px var(--shadow), 0 2px 6px -2px var(--shadow); isolation: isolate; }
.shot img, .shot video { border-radius: inherit; width: 100%; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 48px 6px rgba(0, 0, 0, .45); }
.halo::before { content: ""; position: absolute; inset: 2% -3% -4%; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--eye-l), var(--eye-r)); filter: blur(28px); opacity: var(--halo); }
.hero-img img, .promo img, .grid img, .media img { border-radius: inherit; }
button.theme { font: inherit; font-size: 16px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  color: var(--fg); background: var(--card); border: 1px solid var(--line); }
