:root {
  color-scheme: light;
  --ink: #25282b;
  --muted: #60676d;
  --link: #285d8b;
  --line: #d2d5d8;
  --soft: #f4f5f6;
  --page: #f7f7f7;
  --white: #fff;
  --focus: #b94b12;
  --sidebar: 198px;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: var(--link); text-decoration: none; text-underline-offset: .15em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, input, select { border: 1px solid #a8aeb4; border-radius: 0; background: white; color: var(--ink); }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 20; background: white; padding: 10px; border: 2px solid var(--link); }
.skip:focus { top: 8px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; margin: auto; min-height: 58px; padding: 12px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-name { font-size: 1.125rem; font-weight: 700; white-space: nowrap; color: var(--ink); }
.header-meta { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.search-form { display: flex; gap: 0; min-width: 0; }
/* Joined search controls keep their focus ring inside their own border. */
.search-form :is(input, select, button):focus-visible { outline-offset: -3px; }
.header-search { margin-left: auto; max-width: 570px; flex: 1 1 420px; }
.search-form input { min-width: 0; flex: 1; width: 100%; padding: 6px 10px; }
.search-form select { border-left: 0; background: var(--soft); padding: 6px 8px; font-size: .875rem; max-width: 170px; }
.search-form button { border-left: 0; padding: 6px 16px; background: var(--soft); white-space: nowrap; font-size: .875rem; }
.menu-button { display: none; padding: 6px 10px; font-size: .875rem; background: var(--soft); }
.top-nav { border-bottom: 1px solid var(--line); background: #fafafa; }
.top-nav-inner { max-width: 1240px; padding: 0 24px; margin: auto; display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: center; min-height: 35px; font-size: .875rem; }
.top-nav a { padding: 5px 0; }
.top-nav .current-game { font-weight: 600; }
.language { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.layout { max-width: 1240px; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 24px; margin: 0 auto; padding: 0 24px 36px; }
.sidebar { min-width: 0; align-self: start; font-size: .875rem; padding-top: 22px; }
.side-title { font-weight: 700; padding: 0 0 12px; line-height: 1.5; }
.side-title a { color: var(--ink); }
.side-section { margin: 0 0 18px; }
.side-section h2 { font-size: .875rem; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); }
.side-list { list-style: none; padding: 4px 0; margin: 0; }
.side-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; margin-left: -8px; line-height: 1.5; border-left: 2px solid transparent; }
.side-list a[aria-current], .side-list a[data-current-section] { background: #e9edf1; border-left-color: var(--link); font-weight: 650; }
.side-list a:hover { background: #eceff1; }
.side-count { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.side-utility { border-top: 1px solid var(--line); padding-top: 6px; margin: 0 0 18px; font-size: .8125rem; }
.side-utility ul { display: flex; flex-wrap: wrap; gap: 2px 14px; list-style: none; margin: 0; padding: 0; }
.side-utility a { display: inline-flex; align-items: center; min-height: 32px; }
.side-utility a[aria-current] { color: var(--ink); font-weight: 600; }
.dialog-navigation .side-utility a { min-height: 44px; }
.side-note { padding: 4px 0; margin: 0; color: var(--muted); font-size: .8125rem; }
.main { min-width: 0; background: var(--white); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 28px 28px; }
.breadcrumbs { font-size: .8125rem; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs ol { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 3px 8px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #7a8187; }
.page-title { font-size: 1.75rem; line-height: 1.4; margin: 0; padding-bottom: 7px; border-bottom: 1px solid #acb2b8; font-weight: 650; overflow-wrap: anywhere; }
.page-meta { font-size: .8125rem; color: var(--muted); margin: 8px 0; display: flex; gap: 5px 14px; flex-wrap: wrap; }
.fixture-notice { font-size: .8125rem; padding: 7px 0; margin: 0 0 12px; color: #62572e; line-height: 1.6; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); font-size: .875rem; margin: 0 0 20px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:first-child { padding-left: 0; padding-right: 14px; }
.tabs a[aria-current] { border-bottom-color: var(--link); color: var(--ink); font-weight: 650; }
.section-heading { font-size: 1.1875rem; line-height: 1.5; margin: 26px 0 10px; border-bottom: 1px solid var(--line); padding: 0 0 5px; font-weight: 650; scroll-margin-top: 20px; }
.section-heading:first-child { margin-top: 0; }
.section-meta, .scope-line { color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); overscroll-behavior-x: contain; }
.wiki-table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.6; }
.wiki-table caption { text-align: left; padding: 6px 10px; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.wiki-table th { background: #eef0f2; text-align: left; font-size: .875rem; vertical-align: top; padding: 7px 10px; font-weight: 650; }
.wiki-table td { padding: 7px 10px; vertical-align: top; border-top: 1px solid var(--line); }
.wiki-table th + th, .wiki-table td + td { border-left: 1px solid #e0e2e4; }
.wiki-table tbody tr:nth-child(even) td { background: #fafafa; }
.wiki-table tbody tr:hover td { background: #f1f4f7; }
.wiki-table td:first-child a { font-weight: 550; }
.wiki-table p { margin: 0; }
.wiki-table small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.wiki-table .muted { color: var(--muted); font-size: .875rem; }
.table-empty { text-align: left !important; color: var(--muted); padding: 18px 10px !important; }
.badge { display: inline-block; font-size: .75rem; line-height: 1.4; border: 1px solid #c6c9cc; background: #f7f7f7; color: #60666c; padding: 1px 5px; vertical-align: middle; white-space: nowrap; font-weight: 400; }
.badge-dummy { background: #faf7eb; border-color: #d6cda9; color: #6c5c26; }
.entry-label { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.directory-title { font-size: 1rem; }
.directory-table { min-width: 550px; }
.category-index { min-width: 500px; }
.category-index th:first-child { width: 28%; }
.category-index th:last-child { width: 76px; }
.category-index ul { margin: 0; padding: 0; list-style: none; }
.category-index li + li { margin-top: 4px; }
.jump-list { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 8px 0 18px; padding: 0; font-size: .875rem; }
.content-note { font-size: .875rem; line-height: 1.7; color: var(--muted); margin: 14px 0; }
.detail-grid { display: grid; grid-template-areas: "body info"; grid-template-columns: minmax(0, 1fr) 272px; gap: 24px; align-items: start; }
.detail-main { min-width: 0; grid-area: body; }
.infobox { grid-area: info; border: 1px solid var(--line); min-width: 0; }
.infobox h2 { margin: 0; background: #eef0f2; padding: 7px 10px; font-size: .9375rem; border-bottom: 1px solid var(--line); }
.infobox .wiki-table { font-size: .875rem; }
.infobox .wiki-table th { width: 35%; font-size: .875rem; background: #f5f5f5; }
.infobox .wiki-table td, .infobox .wiki-table th { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.infobox .wiki-table tr:last-child th, .infobox .wiki-table tr:last-child td { border-bottom: 0; }
.infobox .wiki-table td { border-left: 1px solid var(--line); border-top: 0; overflow-wrap: anywhere; }
.infobox .sample-identity { padding: 7px 10px; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.sample-identity .badge { margin-bottom: 3px; }
.toc { border: 1px solid var(--line); background: #fafafa; padding: 9px 13px; margin: 0 0 22px; max-width: 420px; font-size: .875rem; }
.toc summary { font-weight: 650; cursor: pointer; padding: 2px 0; }
.toc ol { margin: 5px 0 0; padding-left: 23px; }
.toc li { padding: 2px 0; }
.unfilled { color: #676e75; font-size: .9375rem; margin: 0 0 18px; padding: 0; }
.relations { list-style: none; margin: 0; padding: 0; }
.relations li { display: grid; grid-template-columns: 150px minmax(0, 1fr); padding: 7px 0; border-bottom: 1px solid #e4e6e8; font-size: .9375rem; gap: 12px; }
.relation-label { color: var(--muted); font-size: .875rem; }
.page-footer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 12px; font-size: .875rem; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer { max-width: 1240px; margin: 0 auto 22px; padding: 0 24px 0 270px; font-size: .8125rem; color: var(--muted); }
.footer p { margin: 3px 0; }
.empty-state { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 14px 0; }
.empty-state h2 { font-size: 1rem; margin: 0 0 5px; font-weight: 600; }
.empty-state p { font-size: .875rem; margin: 0; color: var(--muted); }
.search-panel { margin: 16px 0 22px; }
.search-panel > label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.search-panel .search-form { max-width: 800px; }
.results-summary { font-size: .875rem; color: var(--muted); margin: 0 0 10px; }
.results-list { padding: 0; list-style: none; margin: 0; }
.results-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-title { font-size: 1rem; font-weight: 550; }
.result-path { font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.result-type { margin-left: 7px; }
.search-result-status { font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.backlinks { font-size: .9375rem; list-style: disc; padding-left: 22px; }
.backlinks li { margin: 5px 0; }
.mobile-dialog { border: 0; border-right: 1px solid var(--line); padding: 0; width: 330px; max-width: 90vw; max-height: 100dvh; height: 100dvh; margin: 0 auto 0 0; background: white; color: var(--ink); }
.mobile-dialog::backdrop { background: #1d252d66; }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: white; border-bottom: 1px solid var(--line); padding: 12px 18px; position: sticky; top: 0; z-index: 1; }
.dialog-head button { padding: 7px 10px; min-height: 44px; background: var(--soft); font-size: .875rem; }
.dialog-navigation { padding: 16px 22px; }
.dialog-navigation .side-list a { min-height: 44px; }
.noscript { padding: 8px 0; color: #62572e; font-size: .875rem; }
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filter-form label { font-size: .875rem; }
.filter-form input { padding: 6px 9px; max-width: 310px; width: 100%; font-size: .9375rem; }
.filter-meta { font-size: .8125rem; color: var(--muted); }
.category-table { min-width: 520px; }
.category-table th:first-child { width: 38%; }
.table-help { display: none; font-size: .8125rem; color: var(--muted); margin: 0 0 6px; }
.game-index { font-size: .9375rem; min-width: 500px; }
.game-index td:nth-child(2) { white-space: nowrap; }
body.modal-open { overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .layout { gap: 18px; padding: 0 18px 28px; grid-template-columns: 188px minmax(0, 1fr); }
  .header-inner { padding: 12px 18px; gap: 16px; }
  .top-nav-inner { padding: 0 18px; }
  .header-meta { display: none; }
  .main { padding: 18px 22px 24px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 242px; gap: 18px; }
  .footer { padding-left: 248px; }
}
@media (max-width: 940px) {
  .detail-grid { grid-template-columns: 1fr; grid-template-areas: "info" "body"; }
  .infobox .wiki-table th { width: 28%; }
  .toc { max-width: none; }
  .header-search select { max-width: 120px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 700px) {
  body { background: white; }
  .header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 10px 14px; }
  .menu-button { display: inline-block; min-height: 44px; }
  .site-name { font-size: 1.0625rem; white-space: normal; }
  .header-search { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; flex-wrap: wrap; }
  .header-search input { font-size: 1rem; padding: 8px 10px; min-height: 44px; flex-basis: calc(100% - 182px); }
  .header-search select { max-width: 114px; min-height: 44px; font-size: .875rem; padding: 7px; }
  .header-search button { padding: 7px 12px; min-height: 44px; font-size: .875rem; }
  .top-nav-inner { min-height: 35px; padding: 0 14px; gap: 14px; font-size: .8125rem; }
  .top-nav .current-game { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language { font-size: .75rem; }
  .layout { display: block; padding: 0; }
  .sidebar { display: none; }
  .main { padding: 15px 16px 24px; border: 0; }
  .breadcrumbs { font-size: .8125rem; margin-bottom: 10px; }
  .page-title { font-size: 1.625rem; line-height: 1.4; }
  .page-meta { font-size: .8125rem; gap: 4px 12px; }
  .fixture-notice { font-size: .8125rem; padding: 4px 0; margin-bottom: 10px; }
  .tabs { margin: 0 0 20px; gap: 0 12px; }
  .tabs a, .tabs a:first-child { padding: 8px 0; font-size: .875rem; min-height: 40px; }
  .section-heading { font-size: 1.1875rem; margin-top: 24px; }
  .wiki-table { font-size: .9375rem; }
  .wiki-table th, .wiki-table td { padding: 8px 10px; }
  .wiki-table th { font-size: .875rem; }
  .jump-list { gap: 2px 16px; }
  .jump-list a { display: inline-block; padding: 7px 0; }
  .detail-grid { gap: 20px; }
  .relations li { grid-template-columns: 1fr; gap: 2px; }
  .page-footer { font-size: .875rem; margin-top: 24px; }
  .page-footer a { padding: 5px 0; }
  .footer { border-top: 1px solid var(--line); padding: 14px 16px 0; font-size: .8125rem; }
  .table-help { display: block; }
  .search-panel .search-form { flex-wrap: wrap; gap: 8px; }
  .search-panel .search-form input { flex: 1 1 100%; font-size: 1rem; min-height: 44px; }
  .search-panel .search-form select { flex: 1; border: 1px solid #a8aeb4; max-width: none; font-size: .875rem; min-height: 44px; }
  .search-panel .search-form button { border: 1px solid #a8aeb4; flex: 0 0 82px; min-height: 44px; }
  .filter-form { gap: 7px; }
  .filter-form label { flex-basis: 100%; }
  .filter-form input { max-width: none; min-width: 0; min-height: 44px; flex: 1; font-size: 1rem; }
  .toc summary { min-height: 40px; display: list-item; padding: 7px 0; }
  .toc li { padding: 4px 0; }
}
@media (max-width: 360px) {
  .header-search input { flex: 1 1 100%; border-bottom: 0; }
  .header-search select { flex: 1; max-width: none; border-left: 1px solid #a8aeb4; }
  .header-search button { flex: 0 0 64px; }
}
@media print {
  .site-header, .top-nav, .sidebar, .footer, .mobile-dialog, .tabs, .page-footer, .filter-form, .table-help { display: none; }
  body { background: white; }
  .layout { display: block; padding: 0; }
  .main { border: 0; padding: 0; }
  .table-scroll { overflow: visible; }
  .wiki-table { min-width: 0; }
  .detail-grid { display: block; }
  .infobox { margin-bottom: 20px; }
  a { color: inherit; }
  .section-heading { break-after: avoid; }
}
.wiki-table tbody th { border-top: 1px solid var(--line); }

.main p a, .wiki-table td a, .relations a, .backlinks a { text-decoration: underline; }

/* Refinements from the live preview audit; preserve the existing Wiki layout. */
.header-search-link { margin-left: auto; font-size: .875rem; text-decoration: underline; padding: 8px 0; }
.search-prompt { font-size: .875rem; font-weight: 600; margin: 0 0 6px; }
.results-summary { overflow-wrap: anywhere; }
.category-table th { white-space: nowrap; }
.category-table td:not(:first-child) { min-width: 6rem; }
.category-table.category-empty { min-width: 0; }
.table-help { display: block; }
.filter-form button { min-height: 44px; padding: 6px 10px; font-size: .875rem; background: var(--soft); }
.filter-meta { white-space: nowrap; }
@media (max-width: 700px) {
  .has-page-search { grid-template-columns: auto minmax(0, 1fr) auto; }
  .header-search-link { padding: 10px 0; white-space: nowrap; }
  .category-index, .game-index { min-width: 0; }
  .category-index th:first-child { width: 30%; }
  .category-index th:last-child { width: 3.5em; }
  .category-index td, .category-index th, .game-index td, .game-index th { padding: 7px 8px; }
  .game-index td:nth-child(2) { white-space: normal; }
  .filter-form input { flex-basis: 50%; }
}
@media print { .table-help { display: none; } }

/* A related-entry label must keep its short identifier suffix on the same line. */
.category-table td:has(.entry-label) { min-width: 12rem; }

/* Long-form content preserves the reference infobox and existing site shell. */
.entry-summary { line-height: 1.9; margin: 0 0 20px; overflow-wrap: anywhere; }
.content-section { min-width: 0; }
.content-section p, .supplementary-body p { line-height: 1.9; overflow-wrap: anywhere; }
.subsection-heading { font-size: 1.0625rem; line-height: 1.6; margin: 24px 0 10px; padding-bottom: 4px; border-bottom: 1px solid #e4e6e8; scroll-margin-top: 20px; }
h4.subsection-heading, h5.subsection-heading, h6.subsection-heading { font-size: 1rem; }
.content-steps, .content-list { padding-left: 1.6em; line-height: 1.9; }
.content-steps li, .content-list li { padding-left: .15em; margin: 7px 0; overflow-wrap: anywhere; }
.content-steps li::marker { font-weight: 650; }
.toc ol ol { margin: 4px 0 3px; padding-left: 1.3em; }
.toc a[aria-current="location"] { font-weight: 700; text-decoration: underline; }
.disclosure-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8125rem; margin: 0 0 18px; }
.disclosure-controls button { font-size: .8125rem; min-height: 36px; padding: 5px 10px; background: var(--soft); }
.supplementary-section { margin: 18px 0; border: 1px solid var(--line); padding: 0 12px; background: #fafafa; }
.supplementary-section > summary { padding: 10px 0; cursor: pointer; }
.supplementary-section > summary :is(.section-heading, .subsection-heading) { display: inline; border: 0; margin: 0; padding: 0; font-size: 1rem; }
.supplement-label { font-size: .75rem; font-weight: 400; margin-left: 8px; color: var(--muted); }
.supplementary-body { padding: 0 0 8px; }
.supplementary-body .supplementary-section { background: white; }
.content-callout { border-left: 3px solid #a8b7c4; padding: 3px 12px; margin: 16px 0; background: #f4f6f8; font-size: .875rem; }
.content-callout p { margin: 5px 0; }
.source-citations { margin-left: .4em; font-size: .75rem; overflow-wrap: anywhere; }
.source-citations a { display: inline-block; margin-right: .3em; white-space: nowrap; overflow-wrap: normal; }
/* Keep standalone provenance quiet and left-aligned; leave inline citations intact. */
:is(.content-section, .supplementary-body) > .source-citations { display: block; margin: 6px 0 0; text-align: left; }
:is(.content-section, .supplementary-body) > .source-citations a:last-child { margin-right: 0; }
.source-summary dl { margin: 0 0 14px; font-size: .875rem; }
.source-summary dl > div { display: grid; grid-template-columns: 8em minmax(0,1fr); gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.source-summary dt { color: var(--muted); }
.source-summary dd { margin: 0; }
.source-list { padding-left: 1.5em; font-size: .875rem; overflow-wrap: anywhere; }
.source-list li { margin: 10px 0; scroll-margin-top: 20px; }
.source-list p { margin: 4px 0; color: var(--muted); }
.source-kind, .source-date { font-size: .75rem; color: var(--muted); }
.result-snippet { font-size: .875rem; line-height: 1.7; margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.content-table { min-width: 420px; }
.content-table th, .content-table td { overflow-wrap: anywhere; }
.content-table tbody th { font-weight: 500; min-width: 7em; }
@media (min-width: 941px) {
  .guide-layout { grid-template-columns: minmax(0,1fr) 242px; }
}
@media (max-width: 700px) {
  .disclosure-controls button { min-height: 44px; }
  .supplementary-section > summary { min-height: 44px; }
  .source-summary dl > div { grid-template-columns: 7em minmax(0,1fr); gap: 8px; }
}
@media print {
  .disclosure-controls { display: none; }
  .supplementary-section { background: white; }
}

/* Article navigation is a short reading aid; provenance is available on demand. */
.article-image { margin: 20px 0 24px; max-width: 100%; }
.article-image-link { display: block; line-height: 0; cursor: zoom-in; }
.article-image img { display: block; width: 100%; height: auto; max-width: 100%; border: 1px solid var(--line); }
.article-image figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.65; }
.image-caption, .image-credit { display: block; }
.image-credit { margin-top: 6px; font-size: .75rem; color: var(--muted); text-align: left; }
.image-credit a { display: inline-block; padding: 5px 0; text-decoration: underline; }
@media (max-width: 700px) {
  .image-credit a { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
}
.entry-updated { font-size: .75rem; color: var(--muted); }
.related-reading { margin: 24px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.related-reading h2 { margin: 0 0 6px; font-size: .9375rem; font-weight: 650; scroll-margin-top: 20px; }
.related-reading ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 0; margin: 0; }
.related-reading a { display: inline-block; padding: 4px 0; font-size: .875rem; text-decoration: underline; }
.article-meta-disclosure { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.article-meta-disclosure > summary { width: fit-content; max-width: 100%; padding: 5px 0; cursor: pointer; scroll-margin-top: 20px; }
.disclosure-count { margin-left: 6px; font-size: .75rem; font-weight: 400; }
.article-meta-disclosure .backlinks { font-size: .8125rem; margin: 4px 0 12px; }
.sources-body { padding: 4px 0 8px; color: var(--ink); }
.sources-body .source-summary dl { margin: 0 0 10px; font-size: .8125rem; }
.sources-body .source-list { font-size: .8125rem; margin: 0; }
.sources-body a { text-decoration: underline; }
.category-table:not(:has(th:nth-child(3))) { min-width: 0; }
.category-table:not(:has(th:nth-child(3))) th:first-child { width: 64%; }
@media (max-width: 700px) {
  .related-reading ul { gap: 0 18px; }
  .related-reading a, .article-meta-disclosure > summary { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .article-meta-disclosure { margin-top: 0; }
  .category-table:not(:has(th:nth-child(3))) td:has(.entry-label) { min-width: 0; }
  .category-table:not(:has(th:nth-child(3))) td:not(:first-child) { min-width: 5rem; }
}

/* Game-home media stays inside the Wiki column; images retain their full frame. */
.game-introduction { margin: 0 0 20px; }
.game-visual { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; border: 1px solid #d4d9d1; background: #f0f3eb; }
.game-scene { display: block; min-width: 0; line-height: 0; }
.game-scene img { display: block; width: 100%; height: auto; }
.game-identity { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; min-width: 0; }
.game-logo { display: block; width: min(100%, 232px); height: auto; }
.game-edition { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .65em; color: #46513f; font-size: .75rem; text-align: center; }
.home-media-credit { margin: 4px 0 10px; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.home-media-credit a { text-decoration: underline; }
.home-summary { margin: 10px 0; font-size: .9375rem; line-height: 1.7; }
.home-store { margin: -6px 0 18px; }
.official-store { font-size: .8125rem; }
.home-trailer { width: 100%; max-width: 560px; margin: 0 0 24px; }
.trailer-frame { width: 100%; aspect-ratio: 16 / 9; background: #111; }
.trailer-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.home-trailer figcaption { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.home-trailer figcaption a { text-decoration: underline; }
.trailer-notice { color: var(--muted); font-size: .6875rem; margin: 2px 0 0; }
@media (max-width: 700px) {
 .game-visual { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
 .game-identity { padding: 8px; gap: 4px; }
 .game-edition { font-size: .625rem; }
 .game-logo { max-width: 174px; }

}

.game-edition > span { white-space: nowrap; }

/* Wall World's gold logo uses its original transparent canvas. */
body[data-game="wall-world"] .game-visual { background: #1d2532; border-color: #303b4c; }
body[data-game="wall-world"] .game-logo { width: 100%; max-width: 320px; }
body[data-game="wall-world"] .game-edition { color: #dce4ef; }

/* Progression-first navigation stays opt-in to the incremental guide. */
.progression-nav > li > ul { list-style:none; margin:0 0 8px; padding:0 0 0 10px; border-left:2px solid var(--line); }
.progression-nav > li > ul a { display:block; padding:5px 0; font-size:.8125rem; line-height:1.55; }
.walkthrough-start { margin-bottom:24px; }
.stage-jumps { padding-left:1.5rem; }
.stage-jumps li { margin:6px 0; }

/* A long walkthrough uses the full reading column after its opening infobox. */
@media (min-width: 841px) {
  .progression-longform { display:block; }
  .progression-longform > .infobox { float:right; width:242px; margin:0 0 18px 20px; }
  .progression-longform > .detail-main { display:block; }
  .progression-longform .toc { overflow:hidden; }
  .progression-longform > .detail-main > .content-section { clear:both; }
}

/* Article summaries need more reading space than compact metadata cells. */
.wiki-table.category-table.category-summary th:first-child { width: 40%; }
