
*{box-sizing:border-box}body{margin:0;background:#fff;color:#242424;font:16px/1.85 system-ui,sans-serif}
a{color:var(--accent);text-underline-offset:.2em}p,li,h1,h2,h3,a{overflow-wrap:anywhere}
header,main,footer{max-width:1120px;margin-inline:auto;padding:20px}
header{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-bottom:1px solid #ddd}
header>a{font-weight:750;text-decoration:none}header nav{display:flex;gap:18px;flex-wrap:wrap}
h1{font-size:30px;line-height:1.5}h2{font-size:23px;line-height:1.6}h3{font-size:18px;line-height:1.6}
.article{max-width:720px;margin:28px auto;font-size:16px}.article p{margin-block:18px}
.toc{display:block;margin:24px 0;padding:16px 0;border-block:1px solid #ddd}.toc ol{margin-bottom:0}
.service-note{font-size:14px;border-left:2px solid var(--accent);padding-left:14px;margin-block:24px}
.related{margin-top:32px;border-top:1px solid #ddd;padding-top:16px}
footer{font-size:13px;color:#555;border-top:1px solid #ddd;margin-top:40px}
a:focus-visible,input:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
h2[id]{scroll-margin-top:20px}img,svg{max-width:100%;height:auto}
@media(max-width:480px){header,main,footer{padding:16px}header nav{gap:12px}}
@media print{header,footer,.service-note,.toc{display:none}body{background:white}a{color:inherit}}

body.bsdk{--accent:#58644e!important;margin:0;background:#f5f3ee;color:#282923;font:16px/1.9 system-ui,-apple-system,"Segoe UI","Yu Gothic",sans-serif}
body.bsdk *{box-sizing:border-box}
body.bsdk a{color:#4e6045;text-underline-offset:4px;overflow-wrap:anywhere}
body.bsdk a:hover{text-decoration-thickness:2px}
body.bsdk a:focus-visible{outline:2px solid #58644e;outline-offset:5px}
body.bsdk header,body.bsdk main,body.bsdk footer{max-width:1100px;padding-inline:32px;margin-inline:auto}
body.bsdk header{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding-block:18px 17px;border-bottom:2px solid #42463b;min-height:0}
body.bsdk header>a{font:700 28px/1.3 Georgia,"Times New Roman",serif;letter-spacing:-.8px;color:#252620;text-decoration:none}
body.bsdk header nav{display:flex;gap:23px;flex-wrap:wrap;font-size:13px;line-height:1.7}
body.bsdk header nav a{color:#575c51;text-decoration:none}
body.bsdk header nav a:hover{text-decoration:underline}
body.bsdk main{padding-block:22px 35px}
body.bsdk .bsdk-intro{display:flex;align-items:baseline;justify-content:space-between;gap:25px;padding:0 0 19px;border-bottom:1px solid #cbcfc2;margin:0 0 25px}
body.bsdk .bsdk-intro h1{font-size:20px;line-height:1.6;letter-spacing:0;font-weight:600;margin:0;color:#34382f}
body.bsdk .bsdk-intro p{font-size:14px;line-height:1.8;color:#636858;max-width:430px;margin:0}
body.bsdk .bsdk-front{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:40px;padding-bottom:29px;border-bottom:1px solid #aeb5a3}
body.bsdk .bsdk-lead{min-width:0;padding:0 34px 0 0;border-right:1px solid #cbcfc2}
body.bsdk .bsdk-topic{font-size:12px!important;letter-spacing:.04em;color:#606f55!important;font-weight:600;margin:0 0 10px!important}
body.bsdk .bsdk-lead h2{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;font-size:28px;line-height:1.6;font-weight:600;letter-spacing:0;margin:0 0 16px}
body.bsdk .bsdk-lead h2 a{color:#272a23;text-decoration:none}
body.bsdk .bsdk-lead h2 a:hover{text-decoration:underline;text-decoration-thickness:1px}
body.bsdk .bsdk-lead p{font-size:16px;line-height:1.9;color:#50564a;margin:0 0 17px}
body.bsdk .bsdk-lead .bsdk-read{font-size:14px;font-weight:600}
body.bsdk .bsdk-secondary>h2{font-size:15px;font-weight:650;color:#515c48;border-bottom:1px solid #aeb7a1;padding-bottom:10px;margin:0 0 0}
body.bsdk .bsdk-brief{padding:17px 0;border-bottom:1px solid #d4d7cd}
body.bsdk .bsdk-brief:last-child{border-bottom:0;padding-bottom:0}
body.bsdk .bsdk-brief h3{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;font-size:18px;line-height:1.7;font-weight:600;letter-spacing:0;margin:0 0 6px}
body.bsdk .bsdk-brief h3 a{color:#33392c;text-decoration:none}
body.bsdk .bsdk-brief h3 a:hover{text-decoration:underline}
body.bsdk .bsdk-brief p{font-size:14px;line-height:1.85;color:#646a5b;margin:0}
body.bsdk .bsdk-index{margin-top:29px;scroll-margin-top:20px}
body.bsdk .bsdk-index-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 23px;padding-bottom:13px;border-bottom:1px solid #aeb5a3}
body.bsdk .bsdk-index-head h2{font-family:"Yu Mincho",Georgia,serif;font-size:23px;line-height:1.6;font-weight:600;margin:0;color:#2d3327}
body.bsdk .bsdk-index-nav{display:flex;gap:23px;flex-wrap:wrap;font-size:13px}
body.bsdk .bsdk-index-nav a{color:#59694d;text-decoration:none}
body.bsdk .bsdk-index-nav a:hover{text-decoration:underline}
body.bsdk .bsdk-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
body.bsdk .bsdk-group{min-width:0;scroll-margin-top:20px}
body.bsdk .bsdk-group>h3{font-size:13px;font-weight:700;letter-spacing:.04em;color:#526348;border-bottom:2px solid #828d75;padding:0 0 10px;margin:0}
body.bsdk .bsdk-story{padding:19px 0;border-bottom:1px solid #d2d6ca}
body.bsdk .bsdk-story h4{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;font-size:18px;font-weight:600;line-height:1.75;letter-spacing:0;margin:0 0 8px}
body.bsdk .bsdk-story h4 a{color:#33392c;text-decoration:none}
body.bsdk .bsdk-story h4 a:hover{text-decoration:underline}
body.bsdk .bsdk-story p{font-size:14px;color:#646b5b;line-height:1.85;margin:0}
body.bsdk .bsdk-note{border-top:1px solid #abb59e;margin:32px 0 0;padding-top:20px;display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px}
body.bsdk .bsdk-note h2{font-size:16px;font-weight:650;line-height:1.7;color:#424d37;margin:0}
body.bsdk .bsdk-note p{font-size:15px;line-height:1.9;color:#616856;margin:0}
body.bsdk .article{max-width:720px;margin:4px auto 0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;line-height:1.95}
body.bsdk .article>.eyebrow{font-size:14px;letter-spacing:.015em;color:#60704f;font-weight:500;margin:0 0 11px}
body.bsdk .article h1{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;font-size:clamp(26px,3vw,32px);line-height:1.65;font-weight:600;letter-spacing:0;color:#282d22;margin:0 0 22px}
body.bsdk .article p,body.bsdk .article li{font-size:16px;line-height:1.95;color:#3c4235}
body.bsdk .article p{margin:18px 0}
body.bsdk .article h1+p{font-size:16px;color:#535f47}
body.bsdk .article>h2,body.bsdk .article section h2{font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;font-size:23px;line-height:1.7;font-weight:600;color:#303a26;letter-spacing:0;border:0;padding:0;margin:34px 0 16px;scroll-margin-top:20px}
body.bsdk .article ul,body.bsdk .article ol{padding-left:24px}
body.bsdk .article li{margin:8px 0}
body.bsdk .toc{display:block;border:0;border-block:1px solid #c3cbb8;border-radius:0;background:transparent;padding:18px 0;margin:28px 0;font-size:16px}
body.bsdk .toc strong{font-size:16px;font-weight:600;color:#45523a}
body.bsdk .toc ol{margin:10px 0 0;padding-left:24px}
body.bsdk .toc li{font-size:16px;line-height:1.8;margin:7px 0}
body.bsdk .toc a{color:#506143}
body.bsdk .service-note{background:transparent;border:0;border-left:2px solid #a6b197;border-radius:0;padding:0 0 0 14px;margin:26px 0!important;font-size:16px!important;color:#5d6951!important;line-height:1.9}
body.bsdk .related{background:transparent;border:0;border-top:1px solid #b3bfa6;border-radius:0;padding:22px 0 0;margin:32px 0}
body.bsdk .related h2{font-family:"Yu Mincho",Georgia,serif;font-size:23px;font-weight:600;line-height:1.7;margin:0 0 13px;color:#35442a}
body.bsdk .related ul{margin:0;padding-left:24px}
body.bsdk footer{border-top:1px solid #b7c0ac;padding-block:24px 29px;margin-top:0;font-size:13px;line-height:1.9;color:#606956}
body.bsdk footer a{color:#526747}
@media(max-width:800px){body.bsdk .bsdk-front{gap:26px}body.bsdk .bsdk-lead{padding-right:24px}body.bsdk .bsdk-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}body.bsdk .bsdk-intro{display:block}body.bsdk .bsdk-intro p{margin-top:8px;max-width:none}body.bsdk header nav{gap:15px;font-size:12px}}
@media(max-width:620px){body.bsdk header,body.bsdk main,body.bsdk footer{padding-inline:18px}body.bsdk header{flex-direction:column;align-items:flex-start;gap:13px;padding-block:16px}body.bsdk header>a{font-size:27px}body.bsdk header nav{gap:18px;font-size:13px}body.bsdk main{padding-block:20px 30px}body.bsdk .bsdk-intro{padding-bottom:16px;margin-bottom:20px}body.bsdk .bsdk-intro h1{font-size:20px}body.bsdk .bsdk-intro p{font-size:14px;line-height:1.85}body.bsdk .bsdk-front{display:block;padding-bottom:23px}body.bsdk .bsdk-lead{border:0;padding:0;margin-bottom:25px}body.bsdk .bsdk-lead h2{font-size:25px;line-height:1.65;margin-bottom:14px}body.bsdk .bsdk-lead p{font-size:16px}body.bsdk .bsdk-secondary{border-top:1px solid #bec8b2;padding-top:17px}body.bsdk .bsdk-secondary>h2{font-size:16px}body.bsdk .bsdk-brief h3{font-size:19px}body.bsdk .bsdk-brief p{font-size:15px}body.bsdk .bsdk-index{margin-top:24px}body.bsdk .bsdk-index-head{display:block;margin-bottom:22px;padding-bottom:12px}body.bsdk .bsdk-index-nav{gap:20px;margin-top:10px;font-size:13px}body.bsdk .bsdk-columns{display:block}body.bsdk .bsdk-group{margin-bottom:28px}body.bsdk .bsdk-story h4{font-size:19px}body.bsdk .bsdk-story p{font-size:15px}body.bsdk .bsdk-note{display:block;margin-top:24px;padding-top:18px}body.bsdk .bsdk-note h2{margin-bottom:10px;font-size:16px}body.bsdk .bsdk-note p{font-size:16px}body.bsdk .article{margin:0;padding:0}body.bsdk .article h1{font-size:26px;line-height:1.65}body.bsdk .article>h2,body.bsdk .article section h2{font-size:23px;margin-top:30px}body.bsdk .article p,body.bsdk .article li,body.bsdk .toc li{font-size:16px}body.bsdk .service-note{padding-left:12px}body.bsdk footer{font-size:13px}}
@media(max-width:360px){body.bsdk header,body.bsdk main,body.bsdk footer{padding-inline:16px}body.bsdk header nav{gap:14px;font-size:12px}body.bsdk .bsdk-lead h2{font-size:24px}body.bsdk .bsdk-index-nav{gap:16px}}
@media print{body.bsdk{background:white;color:#222}}

html{color-scheme:light}html[data-theme=dark]{color-scheme:dark}
.theme-toggle{font:500 12px/1.5 system-ui,sans-serif;padding:7px 10px;border:1px solid currentColor;border-radius:4px;background:transparent;color:inherit;cursor:pointer;white-space:nowrap}
header nav{align-items:center}.theme-toggle:hover{background:#80808018}.theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* A: a compact handbook with a colored masthead and margin headings. */
body.theme-indie header{background:#28553c;border:0;color:#fff;padding-block:22px}
body.theme-indie header>a,body.theme-indie header nav a{color:#fff}
body.theme-indie .mi-opening{grid-template-columns:1.7fr 1fr;padding-block:16px 24px}
body.theme-indie .mi-game>h2{background:#edf1e6;padding:9px 12px;border:0;font-size:21px}
body.theme-indie .article>h2{border-left:3px solid #28553c;padding-left:14px}
/* B: a support desk, with a narrow service bar and prominent search area. */
body.tnh header{max-width:none;background:#263d4a;color:#fff;padding-inline:max(28px,calc((100vw - 1064px)/2));border:0}
body.tnh header>a,body.tnh header nav a{color:#fff}
body.tnh .tnh-intro{margin-top:8px}.tnh-search{padding:17px 20px;background:#edf3f6;border-radius:6px}
body.tnh .tnh-game-nav{gap:0;border:0;margin-top:25px}
body.tnh .tnh-game-nav a{padding:10px 22px;background:#edf3f6;border-right:1px solid #c5d2da}
body.tnh .article .toc{background:#edf3f6;border:0;padding:18px 22px;border-radius:5px}
/* C: documentation shell, persistent navigation rail on larger screens. */
@media(min-width:1000px){
 body.theme-sifu{padding-left:240px}
 body.theme-sifu header{position:fixed;inset:0 auto 0 0;width:240px;max-width:240px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background:#eef1f3;border:0;border-right:1px solid #c6cdd3;padding:32px 25px;gap:32px;overflow:auto}
 body.theme-sifu header nav{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
 body.theme-sifu main,body.theme-sifu footer{max-width:1120px;padding-inline:40px}
 body.theme-sifu main{padding-top:35px}
 body.theme-sifu .article{margin-left:0}
}
body.theme-sifu .gs-home>h1{font-size:26px}.theme-sifu .gs-topic{font-family:ui-monospace,monospace}
body.theme-sifu .article>h2{border-bottom:1px solid #c6cdd3;padding-bottom:9px}
/* D: journal masthead, then a single lead and a separate reading column. */
body.bsdk header{flex-direction:column;align-items:center;gap:14px;border-top:5px solid #34382f;border-bottom:3px double #777c70;padding-top:16px}
body.bsdk header>a{font-size:38px;letter-spacing:-1.2px}
body.bsdk header nav{justify-content:center}
body.bsdk .bsdk-intro{padding-top:0}.bsdk-front{align-items:start}
body.bsdk .bsdk-columns{display:block}
body.bsdk .bsdk-group{display:grid;grid-template-columns:150px minmax(0,1fr);column-gap:30px;margin-bottom:28px}
body.bsdk .bsdk-group>h3{grid-column:1;grid-row:1/100;border:0;padding-top:19px;font-size:17px}
body.bsdk .bsdk-story{grid-column:2;display:grid;grid-template-columns:1.05fr 1fr;gap:24px}
body.bsdk .bsdk-story h4{margin:0}
body.bsdk .article>h1{font-size:34px;font-weight:500}
body.bsdk .article>h1+p{font-family:'Yu Mincho',Georgia,serif;font-size:18px}
@media(max-width:650px){
 body.theme-indie .mi-opening{grid-template-columns:1fr}
 body.tnh header{padding-inline:16px}body.tnh .tnh-search{padding:12px}body.tnh .tnh-game-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:0}body.tnh .tnh-game-nav a{padding:10px 8px;text-align:center;font-size:12px}
 body.bsdk header{align-items:flex-start}body.bsdk header nav{justify-content:flex-start;gap:12px}
 body.bsdk header>a{font-size:32px}body.bsdk .bsdk-group{display:block}
 body.bsdk .bsdk-group>h3{border-bottom:2px solid #828d75;padding-bottom:8px}
 body.bsdk .bsdk-story{display:block}body.bsdk .bsdk-story h4{margin-bottom:9px}
 body.bsdk .article>h1{font-size:27px}
 header nav{gap:12px!important}.theme-toggle{font-size:12px}
}
/* Dark palette is applied to every generated page, including utility pages. */
html[data-theme=dark] body{--night-bg:#171b18;--night-panel:#222923;--night-text:#e5e9e2;--night-muted:#b9c4b7;--night-link:#add4b2;--night-line:#485348}
html[data-theme=dark] body.tnh{--night-bg:#141b21;--night-panel:#202d37;--night-text:#e1e8ed;--night-muted:#b6c5cf;--night-link:#a6cee5;--night-line:#425560}
html[data-theme=dark] body.theme-sifu{--night-bg:#16191d;--night-panel:#242a31;--night-text:#e3e7eb;--night-muted:#bdc6cf;--night-link:#a8cce9;--night-line:#47515e}
html[data-theme=dark] body.bsdk{--night-bg:#1e1c19;--night-panel:#2b2823;--night-text:#ece6dc;--night-muted:#cac0b0;--night-link:#dbca9f;--night-line:#585144}
html[data-theme=dark] body{background:var(--night-bg)!important;color:var(--night-text)!important}
html[data-theme=dark] body :is(header,main,footer,section,article,aside,nav,div,p,li,dl,dt,dd,tr,caption,th,td,h1,h2,h3,h4,strong,span,label,form){color:inherit!important;border-color:var(--night-line)!important}
html[data-theme=dark] body :is(header,.tnh-search,.tnh-check,.tnh-game-nav a,.gs-reference thead th,.mi-game>h2,.article .toc){background:var(--night-panel)!important}
html[data-theme=dark] body :is(a,header>a,header nav a){color:var(--night-link)!important}
html[data-theme=dark] body :is(input,button){color:var(--night-text)!important;background:var(--night-panel)!important;border-color:var(--night-muted)!important}
html[data-theme=dark] body input::placeholder{color:var(--night-muted)!important;opacity:1}
html[data-theme=dark] body :is(.service-note,.eyebrow,footer){color:var(--night-muted)!important;background:transparent!important}
html[data-theme=dark] body.theme-sifu .gs-reference caption,html[data-theme=dark] body.bsdk .bsdk-topic{color:var(--night-muted)!important}
html[data-theme=dark] body :focus-visible{outline-color:var(--night-link)!important}
@media print{body.theme-sifu{padding-left:0}html[data-theme=dark] body{background:#fff!important;color:#111!important}.theme-toggle{display:none}}

.editorial-art{margin:18px 0 22px;max-width:600px}
.editorial-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;border-radius:2px}
.editorial-art figcaption{font:12px/1.75 system-ui,sans-serif;color:#626762;margin-top:8px}
.editorial-art figcaption span{white-space:nowrap;font-size:11px}
.tnh-check .editorial-art{margin-top:0}.gs-side .editorial-art{margin:18px 0}
.article .editorial-art{margin:26px auto}
html[data-theme=dark] .editorial-art figcaption{color:var(--night-muted)}
@media(max-width:650px){.gs-side .editorial-art{max-width:300px}.editorial-art figcaption{font-size:12px}}

[hidden]{display:none!important}
