:root {
  color-scheme: dark;
  --bg: #1b1a17;
  --panel: #23221e;
  --ink: #f4f0e7;
  --muted: #b9b4a9;
  --line: #3c3932;
  --accent: #ff874f;
  --green: #b9d6ad;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 Arial, "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, dl { margin: 0; }
p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.85; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: clamp(28px, 2.7vw, 37px); line-height: 1.3; letter-spacing: -.8px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.5; letter-spacing: -.3px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
p code, li code { padding: 2px 5px; background: var(--panel); color: var(--ink); font-size: .88em; overflow-wrap: anywhere; }
.site-header, body > main, body > footer { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 64px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; color: var(--ink); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -1.7px; }
.brand span { color: var(--accent); }
.header-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 28px; }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; }
.header-nav a:hover { color: var(--accent); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding: 21px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb [aria-current] { color: var(--ink); }
.eyebrow, .kicker, .section-kicker { color: var(--accent); font-size: 11px; line-height: 1.6; letter-spacing: 1.25px; text-transform: uppercase; }
.eyebrow { margin-bottom: 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px; padding: 28px 0 40px; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 24px; font-size: clamp(48px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -3.5px; }
.hero h1 span { color: var(--accent); }
.intro { max-width: 53ch; margin-bottom: 28px; font-size: 15px; line-height: 1.9; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.actions a { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 50px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.button { padding: 14px 20px; border: 1px solid var(--accent); background: var(--accent); color: #251a13; }
.button:hover { background: #ffa372; border-color: #ffa372; color: #251a13; }
.text-button { border-bottom: 1px solid #756553; }
.text-button:hover { border-color: var(--accent); }
.demo-figure { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--panel); }
.demo-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #11110f; }
.demo-figure figcaption { margin: 13px 2px 1px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.demo-figure figcaption a { color: var(--accent); text-decoration: underline; text-decoration-color: #79533d; text-underline-offset: 3px; }
.hero-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 25px; }
.hero-meta > *, .hero-meta p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.hero-meta a { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 25px 0 28px; border-top: 1px solid var(--line); }
.facts > div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 11px; line-height: 1.7; }
.facts dd { margin: 7px 0 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.facts dd small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.section-nav { position: sticky; z-index: 20; top: 0; display: flex; gap: 30px; min-height: 64px; max-width: 100%; overflow-x: auto; border-block: 1px solid var(--line); background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-inline: contain; }
.section-nav a { position: relative; display: flex; align-items: center; flex: 0 0 auto; min-height: 62px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.section-nav a::after { position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); opacity: 0; content: ""; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--accent); }
.section-nav a[aria-current]::after { opacity: 1; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 64px; min-width: 0; }
.article { min-width: 0; }
.guide-section { padding: 54px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 86px; }
.guide-section:last-child { border-bottom: 0; }
.section-heading { margin-bottom: 28px; }
.section-heading .kicker, .section-heading .section-kicker { margin-bottom: 11px; }
.section-heading h2 { margin-bottom: 17px; }
.section-heading > p:last-child { max-width: 65ch; margin-bottom: 0; font-size: 14px; }
.guide-section > p { max-width: 70ch; font-size: 14px; }
.source-note, .guide-section .source-note { margin: 19px 0 0; color: var(--muted); font-size: 11px; line-height: 1.85; }
.source-note a, .article p > a, .article li p > a { color: var(--accent); text-decoration: underline; text-decoration-color: #79533d; text-underline-offset: 4px; overflow-wrap: anywhere; }
.source-note a:hover, .article p > a:hover { text-decoration-color: var(--accent); }
.compat-tools { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 26px 0 17px; }
.compat-tools label { display: flex; flex-direction: column; gap: 9px; flex: 1 1 340px; max-width: 430px; color: var(--muted); font-size: 11px; }
.compat-tools input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 15px; border: 1px solid #615a4e; border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; appearance: none; }
.compat-tools input::placeholder { color: #b9b4a9; opacity: 1; }
.compat-tools input:hover { border-color: var(--muted); }
.compat-tools input:focus { border-color: var(--accent); }
#game-count, .filter-count { flex: 0 0 auto; margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.table-wrap, .comparison { min-width: 0; max-width: 100%; margin: 22px 0; }
.table-wrap table, .comparison table, table.comparison { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 12px; line-height: 1.8; }
.table-wrap th, .table-wrap td, .comparison th, .comparison td { padding: 17px 16px 17px 0; vertical-align: top; overflow-wrap: anywhere; }
.table-wrap th:last-child, .table-wrap td:last-child, .comparison th:last-child, .comparison td:last-child { padding-right: 0; }
.table-wrap thead, .comparison thead { border-block: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.table-wrap thead th, .comparison thead th { padding-block: 13px; font-weight: 400; }
.table-wrap tbody tr, .comparison tbody tr { border-bottom: 1px solid var(--line); }
.table-wrap tbody td, .comparison tbody td { color: var(--muted); }
.table-wrap tbody th, .table-wrap tbody td:first-child, .comparison tbody th { color: var(--ink); font-weight: 700; }
.compat-table th:first-child { width: 28%; }
.compat-table th:nth-child(2) { width: 23%; }
.comparison th:first-child { width: 25%; }
.status-pill { display: inline-block; padding: 2px 8px; border: 1px solid #725539; color: #f1c594; font-size: 10px; font-weight: 400; line-height: 1.65; white-space: nowrap; }
.status-pill.playable, .status-pill.working, .status-pill.success, .status-pill.demo { color: var(--green); border-color: #526649; }
.status-pill.experimental, .status-pill.partial, .status-pill.ingame { color: #f1c594; border-color: #725539; }
.status-pill.unverified, .status-pill.unsupported { color: #eea59c; border-color: #70483f; }
#empty-result, .empty-result { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.release-note { margin: 27px 0; padding: 20px 23px; border-left: 2px solid var(--accent); background: var(--panel); }
.release-note h3, .release-note > strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.release-note p { margin: 0; font-size: 13px; line-height: 1.9; }
.release-note .button { display: inline-flex; align-items: center; gap: 18px; min-height: 50px; margin-top: 18px; font-size: 12px; font-weight: 700; }
.inline-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; color: var(--accent); font-size: 12px; line-height: 1.7; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.install-steps { margin: 32px 0 0; padding: 0; list-style: none; }
.install-steps > li { display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: start; gap: 19px; padding: 27px 0; border-top: 1px solid var(--line); }
.step-number { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border: 1px solid #77543f; color: var(--accent); font: 12px/1 monospace; }
.install-steps li > div { min-width: 0; }
.install-steps h3 { margin-bottom: 10px; font-size: 19px; }
.install-steps p { max-width: 65ch; margin-bottom: 15px; font-size: 14px; }
.install-steps p:last-child { margin-bottom: 0; }
.faq details, #faq details { border-top: 1px solid var(--line); }
.faq details:last-child, #faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary, #faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; min-height: 70px; padding: 22px 0; list-style: none; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.75; cursor: pointer; }
.faq summary::-webkit-details-marker, #faq summary::-webkit-details-marker { display: none; }
.faq summary > span, #faq summary > span { flex: 0 0 auto; width: 22px; color: var(--accent); font: 23px/1 monospace; text-align: center; transition: transform .16s ease; }
.faq summary:hover, #faq summary:hover, .faq details[open] > summary, #faq details[open] > summary { color: var(--accent); }
.faq details[open] > summary > span, #faq details[open] > summary > span { transform: rotate(45deg); }
.faq details > p, #faq details > p { max-width: 70ch; margin-bottom: 23px; padding-right: 32px; font-size: 14px; }
.troubleshoot { margin-top: 23px; }
.troubleshoot details { border-top: 1px solid var(--line); }
.troubleshoot details:last-child { border-bottom: 1px solid var(--line); }
.troubleshoot summary { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; min-height: 70px; padding: 22px 0; list-style: none; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.75; cursor: pointer; }
.troubleshoot summary::-webkit-details-marker { display: none; }
.troubleshoot summary > span { flex: 0 0 auto; width: 22px; color: var(--accent); font: 23px/1 monospace; text-align: center; transition: transform .16s ease; }
.troubleshoot summary:hover, .troubleshoot details[open] > summary { color: var(--accent); }
.troubleshoot details[open] > summary > span { transform: rotate(45deg); }
.troubleshoot details > p { max-width: 70ch; margin-bottom: 23px; padding-right: 32px; font-size: 14px; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 23px; }
.source-list a { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 44px; padding: 19px 0; border-top: 1px solid var(--line); }
.source-list strong { font-size: 13px; line-height: 1.7; }
.source-list small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.related-links { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
.related-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.related-links a strong { min-width: 0; }
.related-links a > span { min-width: 0; max-width: 58%; color: var(--muted); font-size: 11px; }
.related-links a:last-child { border-bottom: 1px solid var(--line); }
.resources { position: sticky; top: 100px; min-width: 0; padding-top: 54px; }
.resources > div { padding: 23px 0; border-top: 2px solid var(--accent); }
.resources .kicker, .resources .section-kicker { margin-bottom: 13px; font-size: 10px; }
.resources h2 { margin-bottom: 15px; font-size: 23px; line-height: 1.4; letter-spacing: -.35px; }
.resources p { font-size: 12px; line-height: 1.9; }
.resources a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 48px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.resources > div > small { display: block; margin-top: 19px; color: var(--muted); font-size: 10px; line-height: 1.85; }
.end-navigation { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.end-navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; line-height: 1.7; }
body > footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 21px 30px; padding-block: 34px; }
body > footer p { margin: 0; font-size: 12px; }
body > footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12px; }
body > footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
body > footer nav [aria-current] { color: var(--accent); }
body > footer > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.8; }
.skip { position: absolute; z-index: 50; top: -100px; left: 24px; padding: 12px 18px; background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .site-header, body > main, body > footer { padding-inline: 40px; }
  .hero { gap: 32px; }
  .hero h1 { letter-spacing: -2.6px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 218px; gap: 38px; }
  .resources h2 { font-size: 21px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 22px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: 64px; letter-spacing: -3px; }
  .intro { max-width: 65ch; }
  .demo-figure { max-width: 680px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .resources { position: static; padding: 0 0 40px; }
  .resources > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .resources .kicker, .resources .section-kicker, .resources h2, .resources p { grid-column: 1; }
  .resources a { grid-column: 2; }
  .resources a:first-of-type { grid-row: 1 / 3; align-self: start; }
  .resources a:nth-of-type(2) { grid-row: 3; align-self: start; }
  .resources a:nth-of-type(3) { grid-row: 4; }
  .resources > div > small { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 78px; }
  .site-header, body > main, body > footer { padding-inline: 24px; }
  .site-header { min-height: 74px; gap: 16px; }
  .brand { font-size: 27px; }
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 11px; }
  .breadcrumb { gap: 8px; padding-top: 15px; padding-bottom: 5px; font-size: 10px; }
  .hero { gap: 28px; padding: 22px 0 26px; }
  .eyebrow { margin-bottom: 22px; font-size: 10px; }
  .hero h1 { margin-bottom: 22px; font-size: clamp(36px, 10.75vw, 60px); line-height: 1.08; letter-spacing: -2px; }
  .intro { margin-bottom: 24px; font-size: 14px; line-height: 1.9; }
  .actions { gap: 14px 20px; }
  .actions a { min-height: 49px; font-size: 12px; }
  .button { padding-inline: 17px; }
  .demo-figure { padding: 10px; }
  .demo-figure figcaption { margin-top: 11px; font-size: 10px; }
  .hero-meta { justify-content: flex-start; gap: 7px 22px; padding-bottom: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; padding-block: 24px; }
  .facts dt { font-size: 10px; }
  .facts dd { font-size: 14px; }
  .section-nav { gap: 26px; min-height: 59px; }
  .section-nav a { min-height: 57px; font-size: 11px; }
  .guide-section { padding: 40px 0; scroll-margin-top: 77px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { margin-bottom: 15px; font-size: 29px; }
  .section-heading .kicker, .section-heading .section-kicker { font-size: 10px; }
  .section-heading > p:last-child, .guide-section > p { font-size: 13px; }
  .compat-tools { display: block; }
  .compat-tools label { max-width: none; }
  #game-count, .filter-count { margin: 11px 0 0; }
  .compat-table table, .compat-table tbody { display: block; }
  .compat-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .compat-table tr { display: block; padding: 17px 0; }
  .compat-table tbody th, .compat-table tbody td { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 15px; width: 100%; padding: 7px 0; font-size: 12px; }
  .compat-table tbody th::before, .compat-table tbody td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 400; }
  .compat-table .status-pill { justify-self: start; }
  .comparison { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-inline: contain; }
  .comparison table { min-width: 480px; }
  .install-steps > li { grid-template-columns: 31px minmax(0, 1fr); gap: 15px; padding-block: 24px; }
  .step-number { width: 29px; height: 29px; font-size: 11px; }
  .install-steps h3 { font-size: 18px; }
  .install-steps p { font-size: 13px; }
  .release-note { padding: 18px 20px; }
  .release-note p { font-size: 12px; }
  .faq summary, #faq summary { gap: 18px; min-height: 66px; padding-block: 20px; font-size: 14px; }
  .faq details > p, #faq details > p { padding-right: 0; font-size: 13px; }
  .troubleshoot summary { gap: 18px; min-height: 66px; padding-block: 20px; font-size: 14px; }
  .troubleshoot details > p { padding-right: 0; font-size: 13px; }
  .source-list { grid-template-columns: minmax(0, 1fr); }
  .related-links a { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 17px; }
  .related-links a > span { max-width: none; }
  .resources { padding-bottom: 32px; }
  .resources > div { display: block; }
  .resources h2 { font-size: 23px; }
  .resources p { max-width: 50ch; margin-bottom: 15px; }
  .end-navigation { padding-block: 15px; }
  .end-navigation a { font-size: 11px; }
  body > footer { grid-template-columns: auto minmax(0, 1fr); gap: 18px 25px; padding-block: 29px; }
  body > footer nav { grid-column: 1 / -1; gap: 25px; }
  body > footer p { font-size: 11px; }
}

@media (max-width: 390px) {
  .site-header, body > main, body > footer { padding-inline: 20px; }
  .site-header { gap: 12px; }
  .brand { font-size: 25px; }
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 10px; }
  .hero h1 { letter-spacing: -1.8px; }
  .actions { gap: 12px 18px; }
  .section-heading h2 { font-size: 27px; }
  .install-steps > li { grid-template-columns: 25px minmax(0, 1fr); gap: 12px; }
  .step-number { width: 25px; height: 28px; }
  .compat-table tbody th, .compat-table tbody td { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
  .end-navigation { align-items: flex-start; gap: 20px; }
  body > footer { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  body > footer nav { gap: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Practical setup examples stay inside the article width on small screens. */
.preflight { margin-block: 32px; }
.preflight > h3 { margin-bottom: 18px; }
.preflight ul { padding: 0; margin: 0; list-style: none; }
.preflight li { padding-block: 18px; border-top: 1px solid var(--line); }
.preflight h4, .file-help h4 { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.preflight p { margin-bottom: 5px; font-size: 14px; }
.file-help { min-width: 0; margin-top: 22px; }
.file-help h4:not(:first-child) { margin-top: 24px; }
.file-help pre { display: block; max-width: 100%; overflow-x: auto; padding: 17px; margin: 16px 0; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 12px; line-height: 1.8; tab-size: 2; }
.file-help pre code { padding: 0; background: transparent; font-size: inherit; overflow-wrap: normal; }
.file-help .source-note { margin: 12px 0 18px; }
.control-table th:first-child { width: 48%; }
.troubleshoot details > .inline-link { margin: 0 0 18px; }
#performance > h3 { margin-top: 28px; margin-bottom: 12px; }
@media (max-width: 640px) {
 .preflight p { font-size: 13px; }
 .file-help pre { padding: 13px; font-size: 11px; }
 .control-table table { font-size: 12px; }
 .control-table th, .control-table td { padding-right: 14px; }
}
