
*{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.tnh{--accent:#3e5b6b!important;margin:0;background:#fff;color:#252b30;font:16px/1.85 system-ui,-apple-system,"Segoe UI","Yu Gothic",sans-serif}
body.tnh *{box-sizing:border-box}
body.tnh a{color:#345464;text-underline-offset:4px;overflow-wrap:anywhere}
body.tnh a:hover{text-decoration-thickness:2px}
body.tnh a:focus-visible,body.tnh input:focus-visible{outline:3px solid #506f80;outline-offset:4px}
body.tnh header,body.tnh main,body.tnh footer{max-width:1120px;margin-inline:auto;padding-inline:28px}
body.tnh header{padding-block:18px;min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dce0e3;background:#fff}
body.tnh header>a{font-size:18px;font-weight:750;letter-spacing:-.3px;line-height:1.4;text-decoration:none;color:#252b30}
body.tnh header nav{display:flex;gap:22px;flex-wrap:wrap;font-size:14px;line-height:1.6}
body.tnh header nav a{color:#505a62;text-decoration:none}
body.tnh header nav a:hover{text-decoration:underline}
body.tnh main{padding-block:28px 36px}
body.tnh .tnh-intro{max-width:770px;margin:0 0 22px}
body.tnh .tnh-intro h1{font-size:28px;line-height:1.5;letter-spacing:-.02em;margin:0 0 10px;color:#252b30;font-weight:750}
body.tnh .tnh-intro>p{font-size:16px;color:#555f66;margin:0;line-height:1.8}
body.tnh .tnh-search{max-width:720px;margin:22px 0 16px}
body.tnh .tnh-search label{display:block;font-size:15px;font-weight:650;margin:0 0 7px}
body.tnh #article-search{width:100%;min-width:0;min-height:48px;padding:10px 13px;border:1px solid #9da9b0;border-radius:3px;background:white;color:#252b30;font-size:16px;line-height:1.6;font-family:inherit}
body.tnh #article-search::placeholder{color:#667179;opacity:1}
body.tnh #search-count{display:block;margin:7px 0 0;font-size:14px;color:#576168;min-height:26px}
body.tnh .tnh-game-nav{display:flex;gap:24px;flex-wrap:wrap;border-bottom:1px solid #b8c2c8;margin:0 0 26px;padding:0}
body.tnh .tnh-game-nav a{display:block;padding:8px 0 10px;font-size:14px;font-weight:700;letter-spacing:.02em;text-decoration:none;color:#3e5b6b;border-bottom:2px solid transparent}
body.tnh .tnh-game-nav a:hover{border-bottom-color:#3e5b6b}
body.tnh .tnh-directory{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:40px;align-items:start}
body.tnh .tnh-group{margin:0 0 32px;scroll-margin-top:18px}
body.tnh .tnh-group h2{font-size:20px;margin:0;padding-bottom:11px;border-bottom:1px solid #dce0e3;color:#252b30;line-height:1.5}
body.tnh .tnh-row{padding:17px 0;border-bottom:1px solid #e4e7e9}
body.tnh .tnh-row h3{font-size:17px;font-weight:650;line-height:1.7;margin:0 0 5px;letter-spacing:0}
body.tnh .tnh-row h3 a{text-decoration:none;color:#345464}
body.tnh .tnh-row h3 a:hover{text-decoration:underline}
body.tnh .tnh-row p{font-size:15px;line-height:1.8;color:#566169;margin:0}
body.tnh .tnh-check{background:#f5f6f7;padding:20px;align-self:start;border-top:2px solid #7e929e}
body.tnh .tnh-check h2{font-size:17px;line-height:1.6;margin:0 0 10px;color:#30383d}
body.tnh .tnh-check>p{font-size:14px;color:#59636a;margin:0 0 17px}
body.tnh .tnh-check dl{margin:0}
body.tnh .tnh-check dt{font-size:14px;font-weight:700;margin:15px 0 4px}
body.tnh .tnh-check dd{font-size:14px;line-height:1.8;margin:0;padding:0 0 14px;border-bottom:1px solid #dce0e3;color:#59636a}
body.tnh .tnh-check>p:last-child{margin:17px 0 0}
body.tnh .tnh-check a{font-size:14px}
body.tnh .article{max-width:720px;margin:4px auto 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;line-height:1.95}
body.tnh .article .eyebrow{font-size:14px;font-weight:500;letter-spacing:0;color:#59636a;margin:0 0 10px}
body.tnh .article h1{font-size:clamp(26px,3vw,32px);line-height:1.5;letter-spacing:-.02em;color:#252b30;margin:0 0 22px}
body.tnh .article p,body.tnh .article li{font-size:16px;line-height:1.95;color:#30383d}
body.tnh .article p{margin:18px 0}
body.tnh .article h1+p{font-size:16px;color:#505d65}
body.tnh .article>h2,body.tnh .article section h2{font-size:23px;line-height:1.6;margin:34px 0 16px;padding:0;border:0;scroll-margin-top:20px;color:#252b30}
body.tnh .article ul,body.tnh .article ol{padding-left:24px}
body.tnh .article li{margin:8px 0}
body.tnh .toc{display:block;background:transparent;border:0;border-block:1px solid #d4dadd;border-radius:0;padding:18px 0;margin:28px 0;font-size:16px}
body.tnh .toc strong{font-size:16px;font-weight:650;color:#343e45}
body.tnh .toc ol{margin:10px 0 0;padding-left:24px}
body.tnh .toc li{font-size:16px;line-height:1.8;margin:7px 0}
body.tnh .service-note{background:transparent;border:0;border-left:2px solid #aebbc3;border-radius:0;margin:26px 0!important;padding:0 0 0 14px;font-size:16px!important;color:#566169!important;line-height:1.9}
body.tnh .related{background:transparent;border:0;border-top:1px solid #cfd7dc;border-radius:0;padding:22px 0 0;margin:32px 0}
body.tnh .related h2{font-size:23px;line-height:1.6;margin:0 0 13px;color:#252b30}
body.tnh .related ul{margin:0;padding-left:24px}
body.tnh footer{border-top:1px solid #dce0e3;margin-top:0;padding-block:24px 30px;color:#59636a;font-size:13px;line-height:1.9}
body.tnh footer a{color:#3e5b6b}
body.tnh [hidden]{display:none!important}
@media(max-width:780px){body.tnh .tnh-directory{grid-template-columns:minmax(0,1fr) 210px;gap:26px}body.tnh header nav{gap:15px;font-size:13px}body.tnh header>a{font-size:17px}body.tnh .tnh-check{padding:17px}}
@media(max-width:620px){body.tnh header,body.tnh main,body.tnh footer{padding-inline:18px}body.tnh header{flex-direction:column;align-items:flex-start;gap:13px;padding-block:16px;min-height:0}body.tnh header nav{gap:17px;font-size:13px}body.tnh main{padding-block:23px 30px}body.tnh .tnh-intro h1{font-size:25px;line-height:1.5}body.tnh .tnh-intro>p{font-size:16px}body.tnh .tnh-search{margin-top:18px}body.tnh .tnh-game-nav{gap:20px;margin-bottom:23px}body.tnh .tnh-game-nav a{font-size:13px}body.tnh .tnh-directory{display:flex;flex-direction:column;gap:10px}body.tnh .tnh-guide-list,body.tnh .tnh-check{width:100%;min-width:0}body.tnh .tnh-row{padding-block:16px}body.tnh .tnh-row h3{font-size:17px}body.tnh .tnh-row p{font-size:15px}body.tnh .tnh-check{padding:20px;margin:0}body.tnh .tnh-check h2{font-size:18px}body.tnh .tnh-check dt,body.tnh .tnh-check dd,body.tnh .tnh-check>p,body.tnh .tnh-check a{font-size:16px}body.tnh .article{margin:0;padding:0}body.tnh .article h1{font-size:26px}body.tnh .article>h2,body.tnh .article section h2{font-size:23px;margin-top:30px}body.tnh .article p,body.tnh .article li,body.tnh .toc li{font-size:16px}body.tnh .service-note{padding-left:12px}body.tnh footer{font-size:13px}}
@media(max-width:360px){body.tnh header,body.tnh main,body.tnh footer{padding-inline:16px}body.tnh header nav{gap:14px;font-size:12px}body.tnh .tnh-intro h1{font-size:24px}body.tnh .tnh-game-nav{gap:17px}}

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}
