:root {
  --bg: #282930;
  --alt: #1e1f23;
  --head: #1e1f23;
  --card: #1e1f23;
  --inset: #282930;
  --line: #494d5a;
  --line-2: #4e5058;
  --text: #fff;
  --text-2: #dcdee3;
  --muted: #b5bac1;
  --faint: #8e929b;
  --accent: #fff;
  --accent-ink: #232428;
  --accent-hover: #e3e5e8;
  --hover: rgba(255, 255, 255, .08);
  --info: #ff8888;
  --info-bg: rgba(255, 68, 68, .1);
  --info-line: rgba(255, 68, 68, .3);
  --new: #5865f2;
  --fix: #57f287;
  --imp: #fee75c;
  --r: 12px;
  --r-sm: 8px;
  --font: "Builder Sans", "HCo Gotham SSm", Gotham, "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

html.classic {
  --bg: #191919;
  --alt: #232527;
  --head: #393939;
  --card: #2e2e2e;
  --inset: #191919;
  --line: #3e3e3e;
  --line-2: #4a4a4a;
  --accent: #00a2ff;
  --accent-ink: #fff;
  --accent-hover: #0084d1;
  --info: #00a2ff;
  --info-bg: rgba(0, 162, 255, .1);
  --info-line: rgba(0, 162, 255, .3);
  --new: #00a2ff;
  --r: 0px;
  --r-sm: 0px;
  --font: Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  font: 16px/1.65 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html.classic :focus-visible { outline-color: #00a2ff; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--head);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background-color .3s;
}
header.site.scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
header.site nav { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
html.classic .logo { text-transform: uppercase; letter-spacing: .5px; font-size: 18px; }

.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
html.classic .nav-links a:hover { color: #00a2ff; }

.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; border-radius: var(--r-sm); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn .icon { font-size: 20px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { background: var(--hover); border-color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-sm .icon { font-size: 16px; }

main > section { padding: 72px 0; }
.alt { background: var(--alt); transition: background-color .3s; }
.section-title { text-align: center; font-size: 34px; line-height: 1.2; font-weight: 700; margin-bottom: 12px; }
.section-subtitle { text-align: center; font-size: 17px; color: var(--muted); max-width: 600px; margin: 0 auto 36px; }

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: 50px; line-height: 1.12; font-weight: 700; letter-spacing: -.5px; margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, #b5bac1 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.notice {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 760px; margin: 44px auto 0; padding: 14px 20px;
  background: var(--info-bg); border: 1px solid var(--info-line); border-radius: var(--r-sm);
  font-size: 14px; color: var(--text-2); text-align: left;
}
.notice .icon { font-size: 20px; color: var(--info); }
.notice strong { color: var(--text); }
.hero .notice p { margin: 0; font-size: 14px; color: inherit; max-width: none; }

.demo-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 20px; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--inset); border: 1px solid var(--line); border-radius: var(--r-sm); }
.seg button { border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: calc(var(--r-sm) - 3px); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.switch { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--inset); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 44px; height: 24px; border-radius: 24px; background: var(--line-2); transition: background-color .25s; }
.switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.mode-desc { text-align: center; color: var(--muted); font-size: 15px; min-height: 1.65em; margin-bottom: 28px; }
.mode-desc strong { color: var(--text); }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.panel { background: var(--inset); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: background-color .3s, border-color .3s; }
.panel-title { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.panel-title span:last-child { color: var(--faint); font-weight: 500; }
.games { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.game {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: opacity .3s, filter .3s, border-color .2s, background-color .3s;
}
.game img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; flex: none; }
html.classic .game img { border-radius: 0; }
.game-tag { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--faint); }
.game.filtered { opacity: .4; filter: grayscale(1); }
button.game { width: 100%; text-align: left; cursor: pointer; }
button.game:hover { opacity: .6; border-color: var(--line-2); }
.games-after { gap: 0; }
.collapse { display: grid; grid-template-rows: 1fr; margin-bottom: 10px; transition: grid-template-rows .35s ease, opacity .25s ease, margin-bottom .35s ease; }
.collapse:last-child { margin-bottom: 0; }
.slot { min-height: 0; overflow: hidden; padding: 2px; margin: -2px; }
.hide-mode .collapse.is-filtered { grid-template-rows: 0fr; opacity: 0; margin-bottom: 0; }
.hide-mode .collapse.is-filtered .game { visibility: hidden; transition: visibility 0s .35s; }

.modal { margin: auto; width: min(500px, calc(100vw - 40px)); max-height: calc(100vh - 40px); border: 0; padding: 0; background: var(--bg); color: var(--text); border-radius: 6px; box-shadow: 0 8px 32px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.95); transition: opacity .18s, transform .18s, overlay .18s allow-discrete, display .18s allow-discrete; }
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: scale(.95); } }
.modal::backdrop { background: rgba(0, 0, 0, 0); transition: background-color .18s, overlay .18s allow-discrete, display .18s allow-discrete; }
.modal[open]::backdrop { background: rgba(0, 0, 0, .6); }
@starting-style { .modal[open]::backdrop { background: rgba(0, 0, 0, 0); } }
html.classic .modal { background: #2e2e2e; border: 1px solid #3e3e3e; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
html.classic .modal-header { background: #393939; border-color: #111; }
.modal-header h2 { font-size: 20px; font-weight: 500; }
.close-btn { background: none; border: 0; width: 32px; height: 32px; display: grid; place-items: center; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; transition: color .2s; }
.close-btn:hover { color: var(--text); }
.modal-body { padding: 18px 20px; font-size: 15px; color: var(--text-2); }
.modal-body p + p, .modal-body .tags + p { margin-top: 12px; }
.modal-body .label { color: var(--muted); font-size: 13px; margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.modal-footer { display: flex; justify-content: center; gap: 12px; padding: 16px; border-top: 1px solid var(--line); }
.modal-footer .btn { min-width: 100px; padding: 10px 24px; font-size: 14px; }
html.classic .modal-footer .btn-outline { background: #666; border-color: #666; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: border-color .25s, background-color .3s; }
.card:hover { border-color: var(--muted); }
html.classic .card:hover { border-color: #00a2ff; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--hover); font-size: 21px; margin-bottom: 16px; }
html.classic .card-icon { background: var(--inset); border: 1px solid var(--line); color: #00a2ff; }
.card h3 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; max-width: 960px; margin: 40px auto 0; }
.steps li { text-align: center; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 700; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 300px; margin: 0 auto; }
.steps a { color: var(--text); }

.updates { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.updates h2 { font-size: 34px; line-height: 1.2; margin-bottom: 14px; }
.updates p { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.window { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--alt); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
html.classic .window-bar { background: #393939; border-color: #111; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window-bar time { margin-left: auto; font-weight: 500; color: var(--faint); }
.window-body { list-style: none; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.window-body li { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 6px; background: var(--hover); font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.badge { flex: none; min-width: 74px; text-align: center; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.badge-new { background: var(--new); color: #fff; }
.badge-fix { background: var(--fix); color: #000; }
.badge-improvement { background: var(--imp); color: #000; }

.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s; interpolate-size: allow-keywords; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer a { color: var(--text); }

.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .icon { font-size: 16px; stroke-width: 2.6; color: #57f287; }
html.classic .trust .icon { color: #00a2ff; }

.closer {
  display: flex; align-items: center; gap: 28px; padding: 40px 44px;
  background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--r) + 8px);
}
.closer img { width: 88px; height: 88px; flex: none; }
.closer-text { flex: 1; }
.closer h2 { font-size: 32px; line-height: 1.15; margin-bottom: 8px; }
.closer p { font-size: 17px; opacity: .78; max-width: 520px; }
.closer .btn { background: var(--accent-ink); color: var(--accent); padding: 15px 30px; font-size: 17px; }
.closer .btn:hover { transform: translateY(-2px); opacity: .9; }
html.classic .closer .btn { background: #fff; color: #0074b8; }

footer.site { background: var(--alt); border-top: 1px solid var(--line); padding: 52px 0 28px; transition: background-color .3s; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { font-size: 18px; margin-bottom: 14px; display: inline-flex; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 340px; margin-bottom: 18px; }
.footer-brand strong { color: var(--text); }
.footer-col h2 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
html.classic .footer-col a:hover { color: #00a2ff; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--muted); font-size: 18px; transition: color .2s, border-color .2s, transform .2s; }
.social a:hover { color: var(--text); border-color: var(--text); transform: translateY(-2px); }
html.classic .social a:hover { color: #00a2ff; border-color: #00a2ff; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: 13px; }
.footer-bottom p { max-width: 680px; margin: 0 auto; }

.page-header { padding: 64px 0 40px; text-align: center; }
main > section.tight { padding-top: 8px; }
.not-found { padding-bottom: 120px; }
.page-header h1 { font-size: 46px; line-height: 1.15; margin-bottom: 14px; }
.page-header p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto; }
.page-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 20px; color: var(--muted); font-size: 15px; }

.stats { display: flex; justify-content: center; gap: 48px; margin-top: 28px; }
.stat strong { display: block; font-size: 32px; line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

.changelog-grid { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.changelog-card { display: block; text-decoration: none; color: inherit; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; cursor: pointer; transition: border-color .25s, background-color .3s; }
.changelog-card:hover { border-color: var(--text); }
html.classic .changelog-card:hover { border-color: #00a2ff; }
.changelog-card h2 { font-size: 23px; line-height: 1.25; }
.changelog-card .date { color: var(--muted); font-size: 14px; margin-top: 2px; }
.changelog-card .summary { color: var(--text-2); font-size: 16px; margin: 12px 0 16px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-foot .more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.card-foot .more .icon { transition: transform .2s; }
.changelog-card:hover .more .icon { transform: translateX(4px); }
.count { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.count-new { background: var(--new); color: #fff; }
.count-fix { background: var(--fix); color: #000; }
.count-improvement { background: var(--imp); color: #000; }
.state { text-align: center; color: var(--muted); padding: 48px 20px; }

.log-modal { width: min(720px, calc(100vw - 32px)); border-radius: var(--r); display: none; flex-direction: column; }
.log-modal[open] { display: flex; }
.log-modal .modal-header { align-items: flex-start; padding: 22px 26px; }
.log-modal .modal-header h2 { font-size: 26px; font-weight: 700; }
.log-modal .date { color: var(--muted); font-size: 14px; }
.log-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 26px; border-bottom: 1px solid var(--line); }
.log-filters button { border: 0; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--hover); color: var(--muted); transition: background-color .2s, color .2s; }
.log-filters button:hover { color: var(--text); }
.log-filters button[aria-pressed="true"][data-type="all"] { background: var(--accent); color: var(--accent-ink); }
.log-filters button[aria-pressed="true"][data-type="new"] { background: var(--new); color: #fff; }
.log-filters button[aria-pressed="true"][data-type="fix"] { background: var(--fix); color: #000; }
.log-filters button[aria-pressed="true"][data-type="improvement"] { background: var(--imp); color: #000; }
.log-body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.log-body img { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 20px; }
.changes { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.changes li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--hover); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.changes li[hidden] { display: none; }
.log-modal .modal-footer { flex-direction: column; align-items: center; gap: 12px; padding: 18px; }
.log-modal .modal-footer p { color: var(--muted); font-size: 14px; text-align: center; }
.log-modal .modal-footer strong { color: var(--text); }

.policy { max-width: 800px; margin: 0 auto; }
.policy-section { margin-bottom: 44px; }
.policy-section h2 { font-size: 26px; line-height: 1.3; margin-bottom: 14px; }
.policy-section p, .policy-section li { color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.policy-section p { margin-bottom: 14px; }
.policy-section ul { list-style: none; margin: 14px 0; }
.policy-section li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.policy-section li::before { content: "•"; position: absolute; left: 10px; color: var(--text); font-weight: 700; }
.policy-section li ul { margin: 8px 0 0; }
.policy-section strong { color: var(--text); }
.highlight { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 20px; margin: 20px 0; }
.highlight p { margin: 0; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; text-align: center; margin-top: 56px; }
.contact h2 { font-size: 24px; margin-bottom: 12px; }
.contact p { color: var(--muted); margin-bottom: 20px; }

.versions { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.version { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.version.current { border: 2px solid var(--accent); }
.version-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.version h2 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.version .sub { color: var(--muted); font-size: 14px; }
.pill { background: var(--accent); color: var(--accent-ink); padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.version h3 { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.version ul { list-style: none; }
.version li { position: relative; padding-left: 20px; color: var(--text-2); margin-bottom: 6px; }
.version li::before { content: "•"; position: absolute; left: 6px; }

.help-card { display: flex; align-items: center; gap: 20px; max-width: 820px; margin: 24px auto 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.help-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--hover); font-size: 24px; }
html.classic .help-icon { color: #00a2ff; }
.help-text { flex: 1; }
.help-text h3 { font-size: 18px; margin-bottom: 4px; }
.help-text p { color: var(--muted); font-size: 15px; }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.help-actions .btn { padding: 10px 18px; font-size: 15px; }
.help-actions .icon { font-size: 18px; }

.steps-more { text-align: center; margin-top: 40px; }
.steps-more .icon { font-size: 18px; }

.page-header .installed { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 24px auto 0; text-align: left; padding: 12px 18px; border-radius: var(--r-sm); background: rgba(87, 242, 135, .1); border: 1px solid rgba(87, 242, 135, .35); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.installed[hidden] { display: none; }
.installed .icon { color: #57f287; font-size: 18px; stroke-width: 2.6; }

.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); }

.guide { max-width: 760px; }
.guide-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.guide-section h2 { font-size: 28px; line-height: 1.25; margin-bottom: 12px; }
.guide-section > p { color: var(--text-2); font-size: 17px; margin-bottom: 16px; }
.guide-section strong { color: var(--text); }
.guide .icon { display: inline-block; vertical-align: -3px; font-size: 18px; color: var(--text); }
kbd { font: 600 .88em/1 var(--font); background: var(--card); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; color: var(--text); }

.guide-steps { list-style: none; counter-reset: gs; display: flex; flex-direction: column; gap: 12px; margin: 18px 0 24px; }
.guide-steps li { counter-increment: gs; position: relative; padding-left: 42px; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.guide-steps li::before { content: counter(gs); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.guide-list li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 16.5px; }
.guide-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

.defs { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.defs dt, .defs dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 700; }
.defs dd { color: var(--text-2); font-size: 16px; }

.tip { margin-top: 24px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-sm); }
.tip h3 { font-size: 16px; margin-bottom: 10px; }
.tip ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tip li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15.5px; }
.tip li::before { content: "•"; position: absolute; left: 4px; color: var(--muted); }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 20px; }
.mode-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.mode-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mode-card .game { background: var(--inset); margin-bottom: 14px; }
.mode-card p { color: var(--muted); font-size: 15px; }
.game-gone { min-height: 72px; justify-content: center; border-style: dashed; color: var(--faint); font-size: 14px; }

.mock { margin: 8px 0 4px; font-family: "Builder Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.mock .icon { color: inherit; font-size: 16px; vertical-align: middle; }
.mock-focus { box-shadow: 0 0 0 2px #fee75c; border-radius: 50%; }
.mock-chrome { max-width: 520px; background: #202124; border: 1px solid #3c4043; border-radius: 12px; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #35363a; }
.mock-url { flex: 1; background: #202124; color: #bdc1c6; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.mock-ext { width: 28px; height: 28px; display: grid; place-items: center; color: #e8eaed; }
.mock-avatar { width: 24px; height: 24px; border-radius: 50%; background: #8ab4f8; }
.mock-menu { margin: 10px 14px 14px auto; width: 270px; background: #292a2d; border-radius: 8px; padding: 10px 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.mock-menu > p { padding: 0 14px 8px; color: #e8eaed; font-size: 14px; font-weight: 600; }
.mock-menu-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(255, 255, 255, .06); color: #e8eaed; font-size: 13.5px; }
.mock-menu-row span:nth-child(2) { flex: 1; }
.mock-pin { width: 26px; height: 26px; display: grid; place-items: center; color: #8ab4f8; }

.mock-popup { width: 100%; max-width: 360px; background: #282930; border: 1px solid #494d5a; border-radius: 8px; overflow: hidden; color: #fff; font-size: 13px; }
.mp-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #1e1f23; border-bottom: 1px solid #494d5a; font-size: 15px; font-weight: 600; }
.mp-count { background: rgba(255, 255, 255, .1); padding: 3px 10px; border-radius: 12px; font-size: 11px; color: #b5bac1; font-weight: 500; }
.mp-tabs { display: flex; background: #1e1f23; border-bottom: 1px solid #494d5a; }
.mp-tabs span { flex: 1; text-align: center; padding: 9px; color: #b5bac1; border-bottom: 2px solid transparent; }
.mp-tabs .on { color: #fff; border-bottom-color: #fff; background: rgba(255, 255, 255, .05); }
.mp-body { padding: 16px; }
.mp-label { font-size: 12px; font-weight: 600; color: #d5d7dd; margin-bottom: 6px; }
.mp-input { padding: 8px 10px; background: #1e1f23; border: 1px solid #fff; border-radius: 8px; color: #6a6d75; margin-bottom: 10px; }
.mp-btn { padding: 9px; background: #fff; color: #2b2d31; border-radius: 8px; text-align: center; font-weight: 600; }
.mp-list-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.mp-list-head .mp-label { margin: 0; }
.mp-danger { color: #f87171; border: 1px solid #f87171; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.mp-list { background: #1e1f23; border: 1px solid #494d5a; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mp-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #282930; border: 1px solid #494d5a; border-radius: 6px; color: #d5d7dd; font-weight: 500; }
.mp-remove { color: #f87171; border: 1px solid #f87171; border-radius: 4px; padding: 2px 8px; font-size: 10.5px; font-weight: 600; }

.mock-banner { display: flex; align-items: flex-start; gap: 12px; max-width: 560px; margin-top: 18px; padding: 14px 16px; background: #393b3d; border: 1px solid #494d5a; border-left: 4px solid #fee75c; border-radius: 8px; color: #fff; font-size: 13px; }
.mb-icon { font-size: 18px; color: #fee75c; line-height: 1.2; }
.mock-banner div { flex: 1; }
.mock-banner p { color: #d5d7dd; margin-top: 2px; }
.mb-tag { background: #fff; color: #2b2d31; padding: 0 5px; border-radius: 3px; font-weight: 600; }
.mb-x { color: #b5bac1; font-size: 20px; line-height: 1; }

.faq-tight { max-width: none; }
.guide-end { text-align: center; padding: 8px 0 24px; }
.guide-end h2 { font-size: 30px; margin-bottom: 8px; }
.guide-end p { color: var(--muted); font-size: 17px; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.load { animation: rise .7s ease both; }
.load-2 { animation-delay: .08s; }
.load-3 { animation-delay: .16s; }
.load-4 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .updates { grid-template-columns: 1fr; gap: 32px; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

@media (max-width: 780px) {
  header.site nav { height: 58px; gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--head); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; }
  .nav-install { display: none; }
  main > section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
  .section-title, .updates h2 { font-size: 28px; }
  .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .page-header { padding: 44px 0 28px; }
  .page-header h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .closer { flex-direction: column; text-align: center; padding: 36px 24px; gap: 20px; }
  .closer h2 { font-size: 26px; }
  .closer p { margin: 0 auto; }
  .log-modal .modal-header, .log-filters, .log-body { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .panel { padding: 16px; }
  .notice { align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
  .stats { gap: 32px; }
  .contact { padding: 24px; }
  .policy-section h2 { font-size: 22px; }
  .mode-cards { grid-template-columns: 1fr; }
  .help-card { flex-direction: column; align-items: flex-start; }
  .help-actions, .help-actions .btn { width: 100%; }
  .defs { grid-template-columns: 1fr; }
  .defs dt { padding-bottom: 0; border-bottom: 0; }
  .defs dd { padding-top: 4px; }
  .guide-section h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
