@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #101311;
  --panel: #181e1a;
  --text: #f1f0e7;
  --muted: #b6c0b7;
  --accent: #c6e5af;
  --ink: #19251a;
  --rule: #384539;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #f0d86a; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1260px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; z-index: 4; top: -5rem; padding: .65rem 1rem; color: var(--ink); background: var(--accent); }
.skip:focus { top: 1rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.brand { text-decoration: none; font: 800 1.15rem/1 var(--mono); letter-spacing: .08em; }
.brand span, .brand b { color: var(--accent); }
.brand b { font-size: 1.35rem; margin-left: .45rem; font-family: Georgia, serif; }
.languages { display: flex; flex-wrap: wrap; gap: .35rem; }
.languages a { padding: .3rem .6rem; font: .8rem/1.4 var(--mono); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; }
.languages a:hover { border-color: var(--accent); }
.languages a[aria-current] { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 800; }
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, .65fr); gap: 50px; align-items: center; padding: 60px 0 45px; }
.eyebrow { margin: 0 0 11px; color: var(--accent); font: 700 .76rem/1.45 var(--mono); letter-spacing: .12em; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: 1; font-weight: 690; letter-spacing: -.064em; text-wrap: balance; }
.intro-copy { margin: 1.25rem 0 1.5rem; color: var(--muted); max-width: 58ch; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.intro-board {
  min-height: 215px; aspect-ratio: 1.25; width: min(100%, 340px); justify-self: end; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 13px;
  background: radial-gradient(ellipse, #94bb7b44, transparent 70%), conic-gradient(from 90deg, #18211a 25%, #233025 0 50%, #18211a 0 75%, #233025 0) 0 0 / 70px 70px;
}
.intro-board span { color: var(--accent); font: clamp(6rem, 11vw, 10.4rem)/1 Georgia, serif; text-shadow: 0 8px 26px #0008; }
.onward { display: inline-flex; align-items: center; text-decoration: none; padding: .58rem .92rem; border-radius: 5px; background: var(--accent); color: var(--ink); font-weight: 750; }
.onward:hover { background: #e2f1d6; }
.toc { border: 1px solid var(--rule); background: var(--panel); border-radius: 12px; padding: 24px 28px; }
.toc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.toc-head h2 { font-size: 1.24rem; }
.toc-head > span { font: .82rem/1.5 var(--mono); color: var(--accent); white-space: nowrap; }
.toc ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 30px; padding: 0; list-style: none; }
.toc a { display: flex; gap: .7rem; padding: .43rem .15rem; border-top: 1px solid var(--rule); text-decoration: none; }
.toc a:hover, .back:hover, .site-foot a:hover { color: var(--accent); text-decoration: underline; }
.toc a span { font: .8rem/1.9 var(--mono); color: var(--accent); }
.note { color: var(--muted); font-size: .95rem; }
.chapters { margin: 34px 0; }
.chapter { padding: clamp(20px,4vw,42px) 0; border-top: 1px solid var(--rule); }
.chapter-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 17px; margin-bottom: 25px; }
.chapter-no { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #607b5e; border-radius: 8px; color: var(--accent); background: #202a21; font: 800 1.22rem/1 var(--mono); }
.chapter-head h2 { font-size: clamp(1.42rem, 3.3vw, 2.38rem); line-height: 1.16; letter-spacing: -.027em; text-wrap: balance; }
.chapter-head p { color: var(--muted); margin-top: .5rem; }
.chapter-body { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.15fr); align-items: start; gap: clamp(20px, 4vw, 48px); }
.actions { padding: 0; list-style: none; margin: 0; }
.actions li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 11px; padding: .65rem 0; border-bottom: 1px solid #303c31; }
.actions li > span { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; color: #151813; background: #f8d965; font: 800 .84rem/1 var(--mono); }
.actions li div { overflow-wrap: anywhere; }
.actions strong { color: #f6faef; font-weight: 700; }
.download-link { display: inline-block; color: var(--accent); margin: 1rem 0; text-underline-offset: 4px; }
.screens { display: grid; gap: 12px; min-width: 0; }
.visual { position: relative; margin: 0; background: #0d1518; border: 1px solid #44554a; border-radius: 8px; overflow: hidden; }
.shot { display: grid; place-items: center; }
.shot > svg { display: block; width: 100%; height: auto; }
.arrow rect { fill: none; stroke: #ffe16e; stroke-width: 2; }
.arrow path { fill: none; stroke: #ffe16e; stroke-width: 2.6; stroke-linecap: round; }
.arrow .halo { stroke: #121714; stroke-width: 5.6; }
.arrow polygon { fill: #ffe16e; }
.arrow circle { fill: #ffe16e; stroke: #202018; stroke-width: 2; }
.arrow text { fill: #181911; font-family: var(--mono); font-weight: 800; }
.zoom { display: block; margin: 0 0 0 auto; padding: .35rem .7rem; border: 0; background: #19251f; color: var(--accent); cursor: zoom-in; font-size: .82rem; }
.zoom:hover { background: #29392d; }
.screens-5 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.screens-5 .visual-engine-panel { grid-column: 1 / -1; }
.screens-5 .visual-engine-install .shot { max-width: 420px; margin-inline: auto; }
.chapter-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 20px; }
.back { text-underline-offset: 3px; color: var(--muted); }
.help { padding: 26px; border-radius: 10px; border: 1px solid var(--rule); background: var(--panel); }
.help h2 { margin-bottom: .65rem; }
.help details { border-top: 1px solid var(--rule); padding: .65rem 0; }
.help summary { cursor: pointer; font-weight: 700; }
.help details p { margin-top: .45rem; color: var(--muted); }
.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 30px; color: var(--muted); }
.lightbox { border: 1px solid #627764; border-radius: 9px; background: #17221b; color: var(--text); max-width: min(96vw, 1440px); max-height: 94dvh; padding: 10px; }
.lightbox::backdrop { background: #000d; }
.lightbox form { display: flex; justify-content: end; margin-bottom: 10px; }
.lightbox button { border: 1px solid var(--accent); color: var(--accent); background: #15231a; padding: .4rem .75rem; border-radius: 5px; cursor: pointer; }
.expanded { overflow: auto; max-width: 100%; }
.expanded svg { display: block; max-width: none; max-height: 75dvh; width: auto; height: auto; }
@media (max-width: 860px) {
  .chapter-body { grid-template-columns: minmax(0,1fr); }
  .screens { max-width: 680px; width: 100%; justify-self: center; }
  .intro { gap: 25px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .top { gap: .75rem; padding-block: 16px; }
  .languages a { padding: .25rem .42rem; }
  .intro { display: block; padding-block: 35px 29px; }
  .intro-board { display: none; }
  .toc { padding: 18px; }
  .toc ol, .screens-5 { grid-template-columns: minmax(0,1fr); }
  .chapter-head { grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
  .chapter-no { width: 38px; height: 38px; font-size: .96rem; }
  .chapter-nav { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
