.article-layout > *, .article-content {min-width:0;max-width:100%}
.article-content {overflow-wrap:anywhere}
.article-table-wrap {max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.article-table-wrap table {min-width:520px}
.article-table-wrap th,.article-table-wrap td {min-width:110px;max-width:360px;white-space:normal!important;overflow-wrap:anywhere}
.article-content .table-swipe-hint {font-size:12px;line-height:1.6;color:#536b5c;margin:18px 0 6px}
.table-swipe-hint:not([hidden]) + .article-table-wrap {margin-top:0}
.table-swipe-hint[hidden],.back-to-top[hidden] {display:none}
.back-to-top {position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:40;width:48px;height:48px;display:grid;place-items:center;padding:0;border:2px solid #23494a;border-radius:14px;background:#ffe16b;color:#23494a;box-shadow:0 3px 0 #23494a,0 5px 14px #173f4933;cursor:pointer}
.back-to-top:hover {background:#ffed9c}
.article-comments{padding:28px 38px;border-top:2px solid #bac8a8;scroll-margin-top:20px}
.article-comments h2{margin:0 0 12px;font-size:22px;color:#285e51}.comment-total{font-size:14px;color:#64765e}
.comments-intro,.comment-empty{color:#64765e;font-size:14px;line-height:1.8}
.comment-login{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px;background:#e5ebd2;border:1px solid #b5c5a6;border-radius:7px;font-size:14px;margin:20px 0}
.article-comments [hidden]{display:none!important}
.comment-form label{display:block;font-size:14px;line-height:1.7;margin:18px 0 9px;color:#405e4e}
.comment-form textarea{box-sizing:border-box;display:block;width:100%;resize:vertical;min-height:112px;max-height:400px;border:2px solid #8ca68d;border-radius:6px;background:#fff9e5;padding:12px;color:#2c4437;font:inherit;font-size:16px;line-height:1.7}
.comment-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.comment-actions small{color:#64765e}
.comment-form textarea[readonly]{min-height:72px;resize:none;background:#e8edd8}
#comment-feedback{font-size:13px;color:#795d29;line-height:1.7}#comment-feedback:empty{display:none}
.comment-item{padding:20px 0;border-top:1px solid #c8cfb5}.comment-author{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.comment-author strong{font-size:14px;color:#315f4d;overflow-wrap:anywhere}.comment-author time{font-size:12px;color:#6b7b69}.comment-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85;margin:10px 0 0;color:#344e3f}
.comment-more{display:block;margin:12px auto 0;padding:10px 20px;border:1px solid #90aa8c;border-radius:6px;background:#e4ebd2;color:#315f4d;cursor:pointer;font:inherit;font-size:14px}.comment-more:disabled,.comment-actions button:disabled{opacity:.6;cursor:wait}
@media(max-width:640px){.article-comments{padding:24px 18px}.article-comments h2{font-size:20px}.comment-login{padding:12px}}
.article-series {display:block;padding:24px 38px;border-top:1px solid #c3c9af;background:#edf0d9}
.article-series h2 {margin:0 0 16px;font-size:18px;color:#285e51}
.series-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.series-links a {display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #aabda2;border-radius:8px;background:#fff9e5;line-height:1.6;overflow-wrap:anywhere}
.series-links a:hover {background:#fff0b3;border-color:#69886f}
.series-links span {font-size:13px;color:#51705b}
.series-links strong {font-size:16px;color:#293f35}
.series-links .series-next {grid-column:2}
@media(max-width:640px){.article-series{padding:22px 18px}.series-links{grid-template-columns:minmax(0,1fr);gap:12px}.series-links .series-next{grid-column:auto}.series-links a{padding:14px}}
.back-to-top:focus-visible {outline:3px solid #fff;outline-offset:4px}
@media(max-width:640px) {
  .guide-category-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;overflow:visible}
  .guide-category-tabs button,.guide-category-tabs .guide-all {min-width:0;min-height:102px;width:100%;padding:8px 4px;font-size:13px;gap:5px;overflow-wrap:anywhere}
  .guide-category-icon {transform:scale(.87);margin:-3px}
  .article-head {padding:20px 18px 16px}
  .article h1 {font-size:24px;line-height:1.5;overflow-wrap:anywhere;margin:12px 0}
  .article-summary {font-size:15px;line-height:1.85;margin-bottom:0}
  .article-content {padding:0 18px 24px}
  .article-content p {font-size:16px;line-height:1.9;margin:14px 0 20px}
  .article-content h2 {font-size:21px;line-height:1.5;margin:30px 0 14px}
  .article-content h3 {font-size:19px;line-height:1.55;margin:24px 0 12px}
  .article-content h4 {font-size:17px;line-height:1.6;margin:22px 0 10px}
  .article-content section {scroll-margin-top:18px}
  .article-table-wrap th,.article-table-wrap td {font-size:14px;line-height:1.75;padding:12px}
  .article-bottom {padding:18px;line-height:1.8}
  .article-layout aside {width:100%}
  .toc a,.related-link {overflow-wrap:anywhere}
  footer {padding-bottom:86px}
}

/* Article surfaces share the game's framed panels and warm paper palette. */
.article-layout {grid-template-columns:minmax(0,820px) minmax(240px,1fr);gap:28px;align-items:start}
.article-layout .article {border-radius:12px;box-shadow:0 5px 0 #154b50,0 14px 28px #123e4020}
.article-head {position:relative;padding:81.5px 38px 28px;border-top:0;border-bottom:1px solid #c9cfb2;background:linear-gradient(135deg,#fff8dd,#f0efd5)}
.article-head::before {content:"";display:block;position:absolute;inset:0 0 auto;height:57.5px;box-sizing:border-box;background:repeating-linear-gradient(118deg,#ffe574 0 22px,#ffdc53 22px 40px);border-bottom:2px solid #394f42}
.article-head>.category {font-size:12px;padding:5px 10px;border:1px solid #c6ae58;border-radius:5px;background:#ffeaa0;color:#62501f;font-weight:800;letter-spacing:.04em}
.article h1 {font-size:30px;line-height:1.5;letter-spacing:-.025em;margin:17px 0 14px;overflow-wrap:anywhere;text-wrap:pretty}
.article-head .article-tags {margin:0 0 16px;gap:8px}
.article-head .article-tags a {padding:4px 10px;border-color:#aabf99;background:#e4ebcf;border-radius:5px;font-size:12px}
.article-head .meta {justify-content:flex-start;align-items:center;gap:10px 20px;flex-wrap:wrap;font-size:12px;line-height:1.8;color:#63745f}
.article-summary {margin:22px 0 0;padding:15px 18px;border-left:4px solid #4a9b80;border-radius:0 7px 7px 0;background:#e5ead180;font-size:15px;line-height:1.9;color:#435d4e}
.article-content {padding:8px 38px 36px}
.article-content section {padding-top:26px;scroll-margin-top:24px}
.article-content section+section {margin-top:22px;border-top:1px solid #d1d4bc}
.article-content h2 {position:relative;margin:0 0 20px;padding:3px 0 3px 17px;font-size:23px;line-height:1.5;letter-spacing:.01em;color:#24594e;text-wrap:pretty}
.article-content h2::before {content:"";position:absolute;left:0;top:.3em;bottom:.3em;width:5px;border-radius:3px;background:#e9bd3f;box-shadow:1px 1px 0 #b58b2833}
.article-content h3 {font-size:19px;line-height:1.6;margin:26px 0 12px;color:#315f51}
.article-content h4 {font-size:17px;line-height:1.7;margin:22px 0 10px}
.article-content p {font-size:16px;line-height:2;margin:0 0 18px;color:#3d5248}
.article-content section>:last-child {margin-bottom:0}
.article-content strong {color:#24584a}
.article-content ul,.article-content ol {padding-left:1.5em;line-height:1.95;color:#3d5248}
.article-content li+li {margin-top:8px}
.article-content a:focus-visible,.article-tags a:focus-visible,.toc a:focus-visible {outline:3px solid #167e82;outline-offset:3px;border-radius:4px}
.article-content ::selection,.article-head ::selection {background:#ffe391;color:#243d35}
.article-table-wrap {border:1px solid #aebd9b;border-radius:8px;background:#faf5e2;box-shadow:0 3px 0 #b5bda42b}
.article-table-wrap th,.article-table-wrap td {padding:13px 15px;line-height:1.8;border-color:#d1d6bd}
.article-table-wrap th {background:#dfe9cf80;color:#315b4b}
.article-table-wrap tr:nth-child(odd) {background:#eaf0db}
.article-inline-image {padding:12px;border:1px solid #c3cbae;border-radius:9px;background:#eeecd4;margin:24px 0}
.article-inline-image img {border-radius:5px;border-color:#aabd9f}
.article-inline-image figcaption {font-size:12px;line-height:1.7;margin:10px 0 0}
.article-layout aside {position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#95b59e transparent;padding:0 3px 6px}
.article-layout .sidebar-box {padding:0 18px 12px;border-radius:9px;overflow:hidden;margin-bottom:22px}
.article-layout .sidebar-box h2 {margin:0 -18px 8px!important;padding:15px 18px;font-size:17px;line-height:1.5;background:repeating-linear-gradient(118deg,#ffe574 0 22px,#ffdc53 22px 40px);border-bottom:2px solid #394f42}
.article-layout .toc a {padding:12px 10px;margin:3px 0;border:0;border-radius:6px;color:#476555;font-size:14px;line-height:1.7}
.article-layout .toc a+a {border-top:1px solid #d9dcc5}
.article-layout .toc a:hover,.article-layout .toc a[aria-current="location"] {background:#e2ead0;color:#235f51}
.article-layout .related-link {font-size:14px;line-height:1.85;padding:15px 3px;border-color:#cdd3b8}
.article-layout .related-link:last-child {border-bottom:0}
.article-layout .related-link span {font-size:11px;color:#69815e;margin-bottom:5px;letter-spacing:.04em}
.article-layout .back-link {display:flex;justify-content:center;align-items:center;margin-top:0;line-height:1.7;font-size:14px}
.article-series {padding:26px 38px;background:#e9eed6}
.article-series h2 {font-size:18px;line-height:1.6;margin-bottom:16px}
.series-links a {border:2px solid #acbe9b;box-shadow:0 3px 0 #c4cdb1;border-radius:8px;padding:16px}
.series-links strong {font-size:15px;line-height:1.8}
.article-bottom {padding:19px 38px;background:#edf0d9;font-weight:700;font-size:14px}
.article-bottom a {display:inline-block;padding:5px 0}
.article-comments {padding:28px 38px 32px;background:#f3efda}
.article-comments h2 {font-size:20px;line-height:1.5;margin:0 0 9px}
.comment-total {display:inline-block;font-size:12px;border:1px solid #b9c6a5;border-radius:5px;background:#e5ebd2;padding:1px 7px;vertical-align:middle}
.comments-intro {margin:0 0 18px;font-size:13px}
.comment-form textarea {border-color:#a1b291;border-radius:8px;background:#faf5e4;transition:border-color 120ms ease,box-shadow 120ms ease}
.comment-form textarea:focus {outline:0;border-color:#3b8875;box-shadow:0 0 0 3px #3b88751a}
.comment-empty {margin:22px 0 0;padding:24px 14px;border:1px dashed #bdc7a9;border-radius:8px;text-align:center;background:#e9edd640}
@media(max-width:1000px) {
  .article-layout {grid-template-columns:minmax(0,1fr) 240px;gap:20px}
  .article-head {padding:77.5px 28px 28px}
  .article-content {padding:6px 28px 30px}
  .article-series,.article-comments {padding:24px 28px}
  .article h1 {font-size:27px}
}
@media(max-width:760px) {
  .article-layout {display:flex;flex-direction:column;gap:26px}
  .article-layout .article {width:100%;border-radius:10px}
  .article-layout aside {position:static;max-height:none;overflow:visible;width:100%;padding:0}
  .article-head {padding:74.5px 20px 22px}
  .article h1 {font-size:24px;line-height:1.5;margin:14px 0}
  .article-head .meta {gap:5px 14px;font-size:12px}
  .article-summary {padding:12px 14px;margin-top:18px;font-size:14px;line-height:1.9}
  .article-content {padding:2px 20px 28px}
  .article-content section {padding-top:25px}
  .article-content section+section {margin-top:20px}
  .article-content h2 {font-size:21px;margin-bottom:16px;padding-left:14px}
  .article-content h3 {font-size:18px}
  .article-content p {font-size:16px;line-height:1.95;margin-bottom:18px}
  .article-table-wrap th,.article-table-wrap td {padding:11px 12px;font-size:14px}
  .article-inline-image {padding:8px;margin:20px 0}
  .article-series,.article-comments {padding:24px 20px}
  .article-bottom {padding:16px 20px}
  .series-links {grid-template-columns:minmax(0,1fr)}
  .series-links .series-next {grid-column:auto}
}

/* Reading position and compact mobile chapter navigation. */
.toc-toggle {display:none}
.article-layout .toc a[aria-current="location"] {background:#e2ead0;color:#235f51;font-weight:800;box-shadow:inset 4px 0 0 #dcaf31;padding-left:16px}
.article-layout .toc .toc-links[hidden] {display:none}
@media(max-width:760px) {
  .article-layout .article>.toc {margin:18px 20px 0;padding:0;border:1px solid #aebd9b;border-radius:8px;background:#f4f1da;box-shadow:0 3px 0 #bac5a64d;overflow:hidden}
  .article-layout .article>.toc>h2 {display:none}
  .toc-toggle {display:grid;grid-template-columns:auto minmax(0,1fr) 16px;align-items:center;gap:10px;width:100%;border:0;border-radius:0;padding:13px 14px;background:repeating-linear-gradient(118deg,#ffe574 0 22px,#ffdc53 22px 40px);color:#294e43;text-align:left;font:inherit;font-size:14px;font-weight:800;cursor:pointer;min-height:48px}
  .toc-current {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:400}
  .toc-chevron {transition:transform 120ms ease;text-align:center}
  .toc-toggle[aria-expanded="true"] .toc-chevron {transform:rotate(180deg)}
  .toc-toggle:focus-visible {outline:3px solid #167e82;outline-offset:-3px}
  .article-layout .article>.toc .toc-links {padding:7px 10px;max-height:45vh;overflow-y:auto;border-top:1px solid #b4bd96}
  .article-layout .article>.toc a {display:block;min-height:44px;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce) {.toc-chevron {transition:none}}
/* Comment feedback and moderation controls use the existing paper panels. */
.comment-draft-note {display:block;margin-top:9px;color:#698064;font-size:12px;line-height:1.7}
.comment-draft-note:empty {display:none}
#comment-feedback:not(:empty) {padding:11px 13px;border:1px solid #b6c6a4;border-radius:7px;background:#e7edd4}
#comment-feedback[data-state="error"] {background:#fff0d7;border-color:#cfac73;color:#845322}
#comment-feedback[data-state="success"] {color:#2f624b;background:#deedcf}
.comment-form[aria-busy="true"] button::before {content:'';width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-right:8px;animation:auth-spin .7s linear infinite}
.comment-item-actions {display:flex;justify-content:flex-end;gap:12px;margin-top:8px}
.comment-item-actions button,.comment-retry,.comment-dialog button:not(.account-button) {font:inherit;font-size:13px;color:#356e5b;background:#e4ecd4;border:1px solid #adc19c;border-radius:6px;padding:7px 12px;min-height:36px;cursor:pointer}
.comment-item-actions button:disabled {opacity:.65;cursor:default}
.comment-dialog {width:min(440px,calc(100vw - 32px));box-sizing:border-box;padding:0 22px 22px;background:#f5f0dc;color:#2e5144;border:3px solid #284b48;border-radius:10px;box-shadow:0 5px 0 #154b50;max-height:85dvh;overflow:auto}
.comment-dialog::backdrop {background:#123e48a6}
.comment-dialog h2 {font-size:20px;margin:0 -22px 18px;padding:15px 22px;background:repeating-linear-gradient(118deg,#ffe574 0 22px,#ffdc53 22px 40px);border-bottom:2px solid #394f42}
.comment-dialog-preview {font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:auto}
.comment-dialog label {display:block;margin:15px 0 8px;font-size:14px;font-weight:700}
.comment-dialog select {width:100%;padding:10px;border:1px solid #85aaa0;border-radius:6px;color:#315b4b;background:#e6edd9;font:inherit}
.comment-dialog-actions {display:flex;justify-content:flex-end;gap:12px;margin-top:18px}
.comment-dialog [role="status"] {font-size:13px;line-height:1.7;color:#845322}
.comment-dialog button:disabled {opacity:.65;cursor:wait}
.comment-item-actions button:focus-visible,.comment-retry:focus-visible,.comment-dialog button:focus-visible,.comment-dialog select:focus-visible {outline:3px solid #167e82;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.comment-form[aria-busy="true"] button::before{animation:none}}
.list-return{display:inline-flex;align-items:center;min-height:44px;margin:12px 0 0;padding:8px 14px;border:1px solid #92b49e;border-radius:8px;background:#e5edd5;color:#315e51;font-size:14px;font-weight:700;text-decoration:none}
.list-return:hover{background:#d5e6c7}
.list-return:focus-visible{outline:3px solid #167e82;outline-offset:3px}
/* Keep phone inputs readable without automatic zoom and leave room to scroll past the keyboard. */
@media(max-width:760px){
  body .header-actions .header-search input,.comment-dialog select{font-size:16px}
  .comment-form textarea{scroll-margin-block:24px;max-height:40dvh}
  .comment-actions{flex-wrap:wrap;scroll-margin-block:20px}
  .comment-actions button,.comment-item-actions button,.comment-dialog-actions button{min-height:44px}
  .comment-dialog-actions{flex-wrap:wrap}
  .article-comments{scroll-margin-bottom:calc(24px + env(safe-area-inset-bottom))}
}
