@charset "UTF-8";
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100d0b;
  --panel: #20180f;
  --line: #5b4329;
  --text: #eddfbd;
  --muted: #b5a58c;
  --accent: #e2ba69;
  --accent-hi: #ffe7ab;
  --bronze: #9f7b3c;
  --red: #772918;
  --serif: "Goudy Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  --heading: #edcd8e; --subhead: #dfc28c; --strong: #f1e0b8; --prose: #ded0b3; --soft: #c0af91;
  --doc-a: #20170fe8; --doc-b: #17100ce8; --chip: #170f0a; --quote: #342313; --code: #30251a; --code-ink: #e5c38c;
  --th: #362415; --td: #140f09aa; --hover: #322215; --surface: #0e0a07; --dialog: #1b120b;
  --cur-a: #612515; --cur-b: #23160e; --cur-edge: #986535; --cur-text: #ffe3a4;
  --btn-a: #35271a; --btn-b: #1a120d; --hot-a: #5b2c18; --hot-b: #27140e;
  --body-a: #100d0bb8; --body-b: #100d0bdf; --glow: #44301e66;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; color: var(--text); background: var(--bg) radial-gradient(ellipse at 50% 150px, var(--glow), transparent 700px), linear-gradient(var(--body-a), var(--body-b)), url(stone.svg); font: 18px/1.6 var(--serif); }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hi); }
button, input { font: inherit; }
button, .button { cursor: pointer; }
button { color: var(--text); background: linear-gradient(var(--btn-a), var(--btn-b)); border: 1px solid var(--bronze); padding: 8px 15px; box-shadow: inset 0 0 0 2px #0d0907; }
button:hover { color: var(--accent-hi); background: linear-gradient(var(--hot-a), var(--hot-b)); border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { color: var(--accent); }
.site-header { min-height: 76px; padding: 14px max(28px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; gap: 28px; border-bottom: 2px solid #725733; background: linear-gradient(#231b15, #110d0a); box-shadow: 0 2px 0 #070504, 0 3px 0 #44331f; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); font: 23px "Castellar", "Copperplate Gothic Light", Georgia, serif; text-decoration: none; white-space: nowrap; text-shadow: 0 2px 2px #000; }
.brand img { width: 26px; height: 32px; }
.brand-pc { color: var(--muted); font: 12px var(--serif); margin-left: 7px; }
.search-open { font: 13px var(--sans); white-space: nowrap; padding: 8px 12px; width: 100%; text-align: left; margin-bottom: 14px; }
.search-open kbd { float: right; }
kbd { padding: 1px 5px; border: 1px solid #80683e; font: 11px var(--sans); margin-left: 9px; color: #ebce92; }
/* Home: styled after the game's title screen (dusk sky, gilt frame, cream menu with an ember selection). */
.home-main { padding: 0 0 48px; }
.ornate { position: relative; border: 2px solid #b48a4a; background: linear-gradient(#140d08e6, #0d0805ee); box-shadow: inset 0 0 0 1px #2a1a0d, inset 0 0 0 4px #0b0705, inset 0 0 0 5px #7a5a2e, 0 0 0 1px #3b2a16, 0 14px 40px #000a; }
.ornate::before { content: ""; position: absolute; inset: -7px; pointer-events: none; background:
  radial-gradient(circle at 7px 7px, #f3d48e 0 3px, #8a6430 4px 6px, transparent 7px),
  radial-gradient(circle at calc(100% - 7px) 7px, #f3d48e 0 3px, #8a6430 4px 6px, transparent 7px),
  radial-gradient(circle at 7px calc(100% - 7px), #f3d48e 0 3px, #8a6430 4px 6px, transparent 7px),
  radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #f3d48e 0 3px, #8a6430 4px 6px, transparent 7px); }
.hero { position: relative; min-height: min(80vh, 760px); display: grid; place-items: center; overflow: hidden; isolation: isolate; border-bottom: 2px solid #6d5230; }
.hero .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.9) brightness(.62); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(100deg, #6b2e0fb0 0%, #3a1c1260 35%, #1a122a40 65%, #2b1840b0 100%),
  linear-gradient(#0000 55%, var(--bg) 100%), radial-gradient(ellipse at 50% 40%, #0000 30%, #0008 100%); }
.hero-inner { text-align: center; padding: 70px 20px 60px; width: min(900px, 100%); }
.logo { display: inline-block; padding: 0 .12em; margin: 0 0 14px; font: 400 clamp(64px, 11vw, 128px)/.9 "Castellar", "Copperplate Gothic Light", "Trajan Pro", Georgia, serif; letter-spacing: 3px;
  background: linear-gradient(#fff3cf 8%, #d9b06a 38%, #f6dca2 46%, #9a6630 66%, #e2b46a 86%, #6a3d1f); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #2a1406) drop-shadow(0 6px 14px #000c); }
.logo span { display: block; margin: 14px auto 0; width: fit-content; padding: 4px 26px; font: 400 clamp(17px, 2.4vw, 25px)/1.2 var(--serif); font-variant: small-caps; letter-spacing: 3px;
  color: #efd4a0; -webkit-text-fill-color: #efd4a0; border-block: 1px solid #b48a4a; background: linear-gradient(90deg, #0000, #24150bcc, #0000); }
.tagline { font-size: 21px; color: #f2e4c4; text-shadow: 0 2px 6px #000; margin: 0 0 30px; }
.title-menu { width: min(360px, 100%); margin: 0 auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.title-menu a { color: #efe2c2; text-decoration: none; font: 400 23px/1.25 var(--serif); padding: 6px 10px; text-shadow: 0 2px 0 #000, 0 0 10px #000; }
.title-menu a.selected, .title-menu a:hover, .title-menu a:focus-visible { color: #ffb347; text-shadow: 0 2px 0 #000, 0 0 14px #d8661f; }
.title-menu:hover a.selected:not(:hover) { color: #efe2c2; text-shadow: 0 2px 0 #000, 0 0 10px #000; }
.disc-note { margin: 22px 0 0; font-size: 15px; color: #d6c39d; text-shadow: 0 1px 3px #000; }
.band { max-width: 1180px; margin: 64px auto 0; padding: 0 28px; }
.band-head { text-align: center; margin-bottom: 24px; }
.band-head h2 { font-size: 36px; margin: 0 0 6px; color: var(--heading); text-shadow: 0 2px 0 #000; }
.band-head h2::before, .band-head h2::after { content: "\25C6"; font-size: 12px; color: #9b7642; vertical-align: middle; margin: 0 16px; }
.band-head p { margin: 0; color: var(--muted); font-size: 18px; }
.compare { margin: 0; }
.compare-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.compare-tab { font: 17px var(--serif); padding: 6px 16px; }
.compare-tab[aria-pressed="true"] { color: #ffe0a6; border-color: #e0a250; background: linear-gradient(#7a3317, #3a160b); }
.compare-stage { --pos: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid #b48a4a; box-shadow: inset 0 0 0 1px #2a1a0d, 0 14px 40px #000a; background: #070504; touch-action: pan-y; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #f3d48e; box-shadow: 0 0 8px #000; pointer-events: none; }
.compare-handle::after { content: "\25C0\00a0\25B6"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; font: 11px var(--sans); color: #2a1606; background: radial-gradient(#fbe3a8, #c99a52); border: 2px solid #5b3b17; border-radius: 50%; box-shadow: 0 2px 8px #000; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-stage:has(.compare-range:focus-visible) .compare-handle::after { outline: 2px solid #fff; outline-offset: 3px; }
.compare-label { position: absolute; top: 14px; padding: 3px 12px; font: 15px var(--serif); letter-spacing: 1px; font-variant: small-caps; color: #f3e2bd; background: #0d0805cc; border: 1px solid #7a5a2e; pointer-events: none; }
.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; }
.compare figcaption, .media-figure figcaption { color: var(--soft); font: 13px/1.5 var(--sans); padding: 10px 4px 0; text-align: center; }
.clip-grid, .showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.media-figure { margin: 25px 0; }
.clip-grid .media-figure, .showcase-grid .media-figure { margin: 0; }
.media-enlarge { display: block; cursor: zoom-in; }
.media-figure img, .media-figure video { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #070504; border: 2px solid #8f6d3d; box-shadow: inset 0 0 0 1px #2a1a0d, 0 10px 28px #0009; }
.showcase-grid img { aspect-ratio: 16 / 10; object-fit: cover; }
.media-video { position: relative; }
.video-toggle { display: block; margin: 8px 0 -4px auto; font: 12px var(--sans); padding: 4px 10px; }
.animation-toggle { display: block; margin: 10px auto 0; font: 13px var(--sans); }
.media-dialog { width: min(1380px, 96vw); max-height: 94vh; padding: 18px; border: 2px solid var(--bronze); background: #100b07; color: var(--text); }
.media-dialog::backdrop { background: #000e; }
.media-close { display: block; margin: 0 0 14px auto; }
.media-dialog video { display: block; width: 100%; max-height: 73vh; background: #070504; }
.media-dialog img { display: block; max-width: 100%; max-height: 73vh; width: auto; height: auto; margin: auto; object-fit: contain; }
.media-description { font: 13px/1.6 var(--sans); color: var(--muted); margin: 15px 0 0; }
.spec-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.spec-list li { display: flex; border: 1px solid var(--line); background: var(--chip); color: var(--prose); font-size: 16px; }
.spec-list li > span, .feature-clip { padding: 5px 14px; }
.feature-clip { color: var(--prose); text-decoration: none; }
.feature-clip::before { content: "\25B6"; font-size: 10px; margin-right: 8px; color: var(--accent); vertical-align: 2px; }
.spec-list li:has(.feature-clip):hover { border-color: var(--accent); }
.feature-clip:hover, .feature-clip:focus-visible { color: var(--accent-hi); }
.guide-strip { max-width: 1124px; margin: 70px auto 0; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 26px; }
.guide-strip h2 { margin: 0 12px 0 0; font-size: 24px; }
.guide-strip a { font-size: 18px; text-decoration: none; color: #efe2c2; }
.guide-strip a:hover { color: #ffb347; }
@media (max-width: 800px) {
  .clip-grid, .showcase-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 50px 16px 44px; }
  .tagline { font-size: 18px; }
  .band { margin-top: 46px; padding: 0 16px; }
  .band-head h2 { font-size: 29px; }
  .band-head h2::before, .band-head h2::after { margin: 0 10px; }
  .compare-label { top: 8px; font-size: 13px; }
  .compare-label-before { left: 8px; }
  .compare-label-after { right: 8px; }
  .guide-strip { margin: 46px 16px 0; justify-content: flex-start; }
  .guide-strip h2 { width: 100%; }
}
.site-footer { max-width: 1320px; margin: 0 auto; padding: 26px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.site-footer a { margin-left: 12px; }
.footer-divider { color: #6e512d; padding: 0 8px; }
.docs-layout { max-width: 1500px; margin: auto; display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 35px; padding: 42px 30px 70px; min-height: 80vh; }
.sidebar { position: sticky; top: 112px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; padding: 4px 12px 18px 0; font-size: 17px; }
.sidebar h2 { font-size: 20px; margin: 25px 0 9px; color: var(--subhead); padding-left: 9px; }
.sidebar h2:first-child { margin-top: 0; }
.sidebar a { display: block; text-decoration: none; padding: 6px 9px; color: var(--soft); border: 1px solid transparent; line-height: 1.35; margin-bottom: 3px; }
.sidebar a[aria-current] { color: var(--cur-text); border-color: var(--cur-edge); background: linear-gradient(90deg, var(--cur-a), var(--cur-b)); box-shadow: inset 0 0 0 1px #150c07; }
.sidebar a:hover { color: #fff0c8; background: var(--hover); }
.doc-main { min-width: 0; background: linear-gradient(var(--doc-a), var(--doc-b)), url(stone.svg); border: 1px solid var(--line); box-shadow: inset 0 0 0 3px #100b08; padding: 30px 35px; }
.doc-section { font-size: 16px; color: var(--muted); margin-bottom: 9px; }
.doc-main > h1 { font-size: clamp(34px, 3.3vw, 46px); color: var(--heading); margin-bottom: 14px; }
.doc-description { color: var(--soft); font-size: 19px; line-height: 1.5; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 25px; }
.prose { overflow-wrap: anywhere; font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: 29px; margin: 37px 0 18px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.prose h3 { color: var(--subhead); font-size: 23px; margin: 28px 0 14px; }
.prose h4 { font-size: 19px; }
.prose p, .prose li { color: var(--prose); }
.prose li { margin: 7px 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose strong { color: var(--strong); }
.prose blockquote { border-left: 3px solid var(--bronze); background: var(--quote); margin: 24px 0; padding: 16px 20px; }
.prose blockquote p:last-child { margin: 0; }
code { background: var(--code); padding: 2px 5px; font: .76em/1.6 Consolas, "Liberation Mono", monospace; color: var(--code-ink); }
pre { padding: 22px; background: #0f0b08; border: 1px solid #62492b; overflow: auto; box-shadow: inset 0 0 0 2px #1c140d; }
pre code { padding: 0; background: none; color: #e0cfad; font-size: 12px; white-space: pre; }
.copy-code { display: block; margin: -13px 0 24px auto; font: 11px var(--sans); }
.table-scroll { overflow-x: auto; margin: 23px 0; }
html:not(.js) .prose table { display: block; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: 13px/1.6 var(--sans); }
th { color: var(--heading); text-align: left; font-weight: 600; background: var(--th); }
td, th { padding: 12px; border: 1px solid var(--line); vertical-align: top; min-width: 115px; }
td { background: var(--td); }
.toc { position: sticky; top: 115px; align-self: start; font-size: 16px; max-height: calc(100vh - 150px); overflow-y: auto; }
.toc > h2 { color: var(--accent); font-size: 20px; margin: 0 0 16px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc ul ul { padding-left: 12px; }
.toc li { margin: 10px 0; line-height: 1.35; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.source-link { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 38px; font-size: 14px; }
.page-turn { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: 16px; }
.page-turn a { max-width: 48%; }
.page-turn a:last-child { margin-left: auto; text-align: right; }
.doc-menu { display: none; }
.browser-layout { max-width: 820px; margin: 45px auto 65px; padding: 32px; border: 3px solid #947343; background: linear-gradient(var(--doc-a), var(--doc-b)), url(stone.svg); box-shadow: inset 0 0 0 3px #100b08, 0 8px 30px #0008; }
.browser-layout h1 { color: var(--heading); font-size: 46px; margin-bottom: 8px; }
.browser-layout .subtitle { color: var(--soft); font-size: 20px; }
.browser-layout .steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { border: 1px solid var(--line); padding: 20px; margin: 15px 0; background: var(--surface); }
.steps li::before { counter-increment: steps; content: counter(steps) "."; color: var(--accent); margin-right: 15px; font-size: 22px; }
.state { display: inline-block; margin-left: 12px; color: var(--muted); font: 12px var(--sans); }
.state.ok { color: #bdd19d; }
.hint, .small { font-size: 15px; color: var(--muted); }
.hint { margin: 12px 0 0; }
.play, .button { display: inline-block; padding: 10px 35px; color: #ffe3a2; border: 1px solid #c18b43; background: linear-gradient(#652b18, #2a120a); font-weight: 700; text-decoration: none; text-shadow: 0 2px #000; }
.search-dialog { background: var(--dialog); color: var(--text); border: 3px solid #9b7644; box-shadow: inset 0 0 0 2px #0b0704, 0 10px 60px #000; width: min(680px, 94vw); max-height: 80vh; padding: 24px; }
.search-dialog::backdrop { background: #000c; }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.search-heading h2 { font-size: 28px; margin: 0; }
.search-close { font-size: 15px; }
#search-input { width: 100%; background: var(--surface); color: var(--text); border: 1px solid #765b34; padding: 12px; font: 15px var(--sans); }
#search-status { color: var(--muted); font-size: 16px; margin: 16px 0; }
#search-results { list-style: none; margin: 0; padding: 0; }
#search-results a { display: block; padding: 15px 6px; border-top: 1px solid var(--line); text-decoration: none; }
#search-results a:hover { background: #312014; }
#search-results strong { display: block; font-weight: 400; font-size: 21px; }
#search-results span { display: block; color: var(--muted); font: 12px/1.6 var(--sans); margin-top: 5px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 50; padding: 12px; background: #ead29f; color: #160d07; }
.skip-link:focus { top: 12px; }
.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: 1150px) { .site-header { padding-inline: 24px; gap: 20px; } .docs-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 26px; } .toc { display: none; } .doc-main { padding: 26px 30px; } }
@media (max-width: 800px) {
  .site-header { position: relative; padding: 12px 16px; gap: 12px; }
  .brand { font-size: 21px; }
  .site-footer { flex-direction: column; gap: 7px; padding: 23px; }
  .docs-layout { display: block; padding: 23px 16px 40px; }
  .doc-main { padding: 24px 20px; }
  .sidebar { position: static; max-height: none; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .js .sidebar { display: none; }
  .js .sidebar.is-open { display: block; }
  .js .doc-menu { display: block; margin-bottom: 20px; width: 100%; text-align: left; }
  .doc-main > h1 { font-size: 35px; }
  .doc-description { font-size: 18px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 27px; }
  .browser-layout { margin: 28px 18px 40px; padding: 23px; }
  .browser-layout h1 { font-size: 38px; }
  .steps li { padding: 16px; }
  .steps li::before { display: block; margin-bottom: 10px; }
  .steps button { max-width: 100%; text-align: left; }
  .state { display: block; margin: 12px 0 0; }
  .search-dialog { padding: 18px; }
  .search-heading h2 { font-size: 25px; }
  .search-close kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { :root { color-scheme: light; --text: black; --accent: #684115; --muted: #333; } body { background: white; } .site-header, .sidebar, .toc, .site-footer, .doc-menu, .search-dialog, .copy-code, .page-turn { display: none !important; } .docs-layout { display: block; padding: 0; } .doc-main { background: white; border: 0; padding: 0; box-shadow: none; } .doc-main > h1, .doc-description, .prose p, .prose li, .prose strong { color: black; } pre, code { background: #eee; color: black; white-space: pre-wrap; } pre code { color: black; white-space: pre-wrap; } .table-scroll { overflow: visible; } td, th { background: white; color: black; } }

/* Light theme: parchment pages under a leather header; the title screen hero stays dusk-dark. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eadcbc;
  --panel: #f5ead0;
  --line: #bfa774;
  --text: #2f2012;
  --muted: #6b563a;
  --accent: #8a3a12;
  --accent-hi: #b24a14;
  --bronze: #a07a3a;
  --heading: #6a2a0e; --subhead: #7a4a1a; --strong: #1f130a; --prose: #3a2a18; --soft: #5a4630;
  --doc-a: #f6ecd2f2; --doc-b: #efe1bff2; --chip: #f6ecd2; --quote: #ead8ab; --code: #e6d4a6; --code-ink: #6a2a0e;
  --th: #e3cf9e; --td: #f8efd8cc; --hover: #e5d2a2; --surface: #f8efd8; --dialog: #f3e7c9;
  --cur-a: #8f3a1c; --cur-b: #6a2814; --cur-edge: #5a2210; --cur-text: #fff0cf;
  --btn-a: #f6ebcf; --btn-b: #e2cf9f; --hot-a: #e8b27e; --hot-b: #d8955a;
  --body-a: #eadcbcdd; --body-b: #e4d3adee; --glow: #fff6dc99;
}
:root[data-theme="light"] pre { background: #2a2016; }
:root[data-theme="light"] .media-figure img, :root[data-theme="light"] .media-figure video { box-shadow: 0 8px 22px #4a361a55; }
:root[data-theme="light"] .band-head h2 { text-shadow: none; }
:root[data-theme="light"] .guide-strip a { color: var(--prose); }
:root[data-theme="light"] .guide-strip a:hover { color: var(--accent-hi); }
:root[data-theme="light"] .ornate:not(.title-menu) { background: linear-gradient(#f6ecd2f2, #efe1bff2); box-shadow: inset 0 0 0 1px #d9c48f, inset 0 0 0 4px #f6ecd2, inset 0 0 0 5px #a07a3a, 0 8px 24px #4a361a40; }
:root[data-theme="light"] .page-turn a, :root[data-theme="light"] .toc a { color: var(--accent); }
:root[data-theme="light"] button { box-shadow: inset 0 0 0 2px #fbf3dd; }
:root[data-theme="light"] .compare-tab[aria-pressed="true"], :root[data-theme="light"] .flow-platform[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #2a0f06; }
:root[data-theme="light"] kbd { color: var(--accent); border-color: var(--bronze); }
:root[data-theme="light"] .site-header kbd { color: #ebce92; }

/* Header: brand on the left, three actions on the right. */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-actions::before { content: none; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: #d8c7a2; background: transparent; border: 1px solid transparent; box-shadow: none; text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.icon-button:hover { color: #ffe7ab; background: #ffffff0d; border-color: #6d5230; }
.icon-button svg { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.install-button { display: inline-flex; align-items: center; height: 40px; margin-left: 12px; padding: 0 26px; color: #ffe3a2; border: 1px solid #e0a250; background: linear-gradient(#a03a14, #5a1d0a); font: 700 17px var(--serif); letter-spacing: 1.5px; font-variant: small-caps; text-decoration: none; text-shadow: 0 2px #000; box-shadow: inset 0 0 0 2px #2a0f06; }
.install-button:hover { color: #fff; background: linear-gradient(#c24a18, #7a2a0e); box-shadow: inset 0 0 0 2px #2a0f06, 0 0 16px #ff8a3a66; }

/* Step banners and the install flow. */
.media-art { margin: 20px 0 22px; }
.media-art img { max-height: 190px; width: 100%; object-fit: contain; background: none; border: 0; box-shadow: 0 8px 22px #0007; }
/* Diagrams bake their own dark panel and frame into the SVG, so they read the same on both themes. */
.media-figure.media-diagram img { max-height: none; background: none; border: 0; box-shadow: 0 8px 22px #0007; }
.flow-main { max-width: 860px; margin: 40px auto 70px; padding: 0 20px; }
.flow-head h1 { font-size: clamp(34px, 5vw, 52px); color: var(--heading); margin-bottom: 12px; }
.flow-lead { font-size: 20px; color: var(--soft); }
.flow { margin-top: 30px; }
.flow-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow-platform { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px 18px; text-align: left; }
.flow-platform strong { font: 400 24px var(--serif); color: var(--heading); }
.flow-platform span { font: 13px var(--sans); color: var(--soft); }
.flow-platform[aria-pressed="true"] { border-color: #e0a250; background: linear-gradient(#7a3317, #3a160b); }
.flow-platform[aria-pressed="true"] strong, .flow-platform[aria-pressed="true"] span { color: #ffe0a6; }
.flow-progress { margin: 28px 0 16px; }
.flow-count { display: block; font: 14px var(--sans); color: var(--soft); margin-bottom: 8px; }
.flow-bar { display: block; height: 6px; background: var(--line); }
.flow-bar span { display: block; height: 100%; background: linear-gradient(90deg, #a03a14, #e2ba69); transition: width .25s; }
.flow-steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: flow; }
.flow-step { counter-increment: flow; padding: 24px 28px; margin: 0 0 18px; background: linear-gradient(var(--doc-a), var(--doc-b)); border: 1px solid var(--line); box-shadow: inset 0 0 0 3px var(--surface); }
.flow-step h2 { margin: 0 0 6px; font-size: 28px; color: var(--heading); }
.flow-step h2::before { content: counter(flow) ". "; color: var(--accent); }
.flow-step p { color: var(--prose); }
.flow-step p:last-child { margin-bottom: 0; }
.button-quiet { display: inline-block; padding: 9px 20px; margin-left: 8px; border: 1px solid var(--bronze); color: var(--text); text-decoration: none; font-size: 16px; }
.button-quiet:hover { color: var(--accent-hi); border-color: var(--accent); }
.flow-nav { display: flex; justify-content: space-between; }
.flow-nav .flow-next { margin-left: auto; color: #ffe3a2; border-color: #e0a250; background: linear-gradient(#a03a14, #5a1d0a); }
.flow-note { margin-top: 28px; font-size: 15px; color: var(--muted); }
@media (max-width: 800px) {
  .flow-picker { grid-template-columns: 1fr; }
  .flow-step { padding: 20px 18px; }
  .install-button { padding: 0 16px; }
}
@media print { .header-actions, .flow-nav, .flow-picker, .flow-progress { display: none !important; } }
.site-header .brand { color: #e2ba69; }
.site-header .brand-pc { color: #b5a58c; }
