/* Reading styles are scoped to the maintained beginner guide and its index entry. */
.wiki-starter-page {
  --text-main: #f1f3f0;
  --text-soft: #c8d3dc;
  --text-muted: #a6b6c2;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  background: #0c131c;
}
.wiki-starter-page::before { display: none; }
.wiki-starter-page .wiki-page-hero { background: linear-gradient(125deg, #101e2c, #131c29); }
.wiki-starter-page .wiki-page-hero::before { display: none; }
.wiki-starter-page .wiki-page-hero .container { padding-block: 2rem 2.6rem; }
.wiki-starter-page .wiki-page-hero h1 {
  margin: 0.65rem 0 1rem;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.wiki-starter-page .wiki-page-hero .starter-description { max-width: 44rem; color: #c8d3dc; font-size: 1.05rem; line-height: 1.9; }
.wiki-starter-page .wiki-source-line { margin-top: 1.1rem; color: #a6b6c2; font-size: 0.8rem; line-height: 1.8; }
.wiki-starter-page .wiki-reading-section { padding-block: 2.8rem 4rem; }
.wiki-starter-page .wiki-reading-layout { grid-template-columns: 195px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.6rem); align-items: start; }
.wiki-starter-page .wiki-article { max-width: 46rem; font-size: 1.08rem; line-height: 1.95; }
.wiki-starter-page .wiki-toc-inner { border: 0; border-left: 1px solid #34424f; border-radius: 0; background: none; padding: 0 0 0 1rem; }
.wiki-starter-page .wiki-toc a { padding: 0.48rem 0.1rem; font-size: 0.84rem; line-height: 1.65; color: #afc0cc; }
.wiki-starter-page .wiki-toc a:hover { color: #7cdeea; background: transparent; }
.wiki-starter-page .wiki-toc-heading { color: #f1f3f0; font-size: 0.9rem; margin-bottom: 0.6rem; }
.wiki-starter-page .starter-reading-note { margin: 0 0 1.4rem; font-size: 0.8rem; color: #a6b6c2; }
.wiki-starter-page .wiki-source-content h2 {
  font-family: inherit;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 650;
  line-height: 1.6;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  color: #f1f3f0;
}
.wiki-starter-page .wiki-source-content h3 { font-family: inherit; font-size: 1.15rem; line-height: 1.7; margin: 1.8rem 0 0.65rem; color: #e1c28b; }
.wiki-starter-page .wiki-source-content section { margin-top: 3.3rem; scroll-margin-top: 120px; padding-top: 1.6rem; border-top: 1px solid #293845; }
.wiki-starter-page .wiki-source-content p { margin: 0 0 1.15rem; }
.wiki-starter-page .wiki-source-content strong { color: #ecf2f4; font-weight: 650; }
.wiki-starter-page .wiki-source-content a { color: #7cdeea; text-decoration-thickness: 1px; }
.wiki-starter-page .starter-kicker { color: #e1c28b; font-size: 0.94rem; font-weight: 600; }
.wiki-starter-page .starter-lead { padding: 1.4rem 1.5rem 0.3rem; border-top: 2px solid #6ecbd4; background: #12222f; }
.wiki-starter-page .starter-checklist { margin: 0.6rem 0 1.1rem; padding-left: 1.55rem; }
.wiki-starter-page .starter-checklist li { margin: 0.45rem 0; padding-left: 0.2rem; }
.wiki-starter-page .starter-checklist a { text-decoration: none; }
.wiki-starter-page .starter-steps { margin: 1.2rem 0; padding-left: 1.55rem; }
.wiki-starter-page .starter-steps li { margin: 0 0 1rem; padding-left: 0.3rem; }
.wiki-starter-page .starter-note { color: #aebfcb; font-size: 0.94rem; line-height: 1.9; }
.wiki-starter-page .wiki-source-content figure { margin: 1.8rem 0 2rem; text-align: left; }
.wiki-starter-page .wiki-source-content figure a { display: block; cursor: zoom-in; }
.wiki-starter-page .wiki-source-content img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid #344654; box-shadow: none; }
.wiki-starter-page .wiki-source-content figcaption { margin: 0.65rem 0 0; max-width: none; font-size: 0.8rem; line-height: 1.8; color: #a6b6c2; }
.wiki-starter-page .wiki-source-content .starter-figure-compact { max-width: 610px; }
.wiki-starter-page .wiki-source-content .starter-figure-food { max-width: 340px; }
.wiki-starter-page .wiki-source-content .starter-figure-food img { width: 159px; max-width: 100%; }
.wiki-starter-page .wiki-source-content table { width: 100%; margin: 1.4rem 0; border: 0; border-collapse: collapse; font-size: 0.92rem; line-height: 1.85; background: #111d29; }
.wiki-starter-page .wiki-source-content caption { caption-side: top; text-align: left; font-size: 0.86rem; font-weight: 500; padding: 0 0 0.7rem; color: #afc0cc; }
.wiki-starter-page .wiki-source-content th, .wiki-starter-page .wiki-source-content td { border: 0; border-bottom: 1px solid #31414e; padding: 0.9rem 0.85rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.wiki-starter-page .wiki-source-content thead th { color: #eaf2f4; background: #1a2d3b; font-weight: 600; }
.wiki-starter-page .wiki-source-content tbody th { color: #e1c28b; width: 20%; font-weight: 500; }
.wiki-starter-page .wiki-source-content tbody tr:nth-child(even) { background: #14222e; }
.wiki-starter-page .starter-tools dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 1rem 0; }
.wiki-starter-page .starter-tools dl > div { padding: 0.85rem 0; border-bottom: 1px solid #293845; }
.wiki-starter-page .starter-tools dt { font-size: 0.96rem; color: #e8edf0; font-weight: 600; }
.wiki-starter-page .starter-tools dd { margin: 0.3rem 0 0; font-size: 0.92rem; line-height: 1.85; color: #aebfcb; }
.wiki-starter-page .starter-shortcuts { margin: 1rem 0; }
.wiki-starter-page .starter-shortcuts > div { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 0.8rem 0; }
.wiki-starter-page .starter-shortcuts dd { margin: 0; }
.wiki-starter-page kbd { display: inline-block; border: 1px solid #50606d; border-radius: 4px; padding: 0.02rem 0.6rem; font: 500 0.9rem/1.8 "Segoe UI", sans-serif; color: #ecf2f4; background: #192b38; }
.wiki-starter-page details { border-bottom: 1px solid #31414e; padding: 1rem 0; }
.wiki-starter-page summary { cursor: pointer; color: #e9f0f2; font-size: 1rem; font-weight: 600; line-height: 1.85; }
.wiki-starter-page details p { margin: 0.8rem 0 0; color: #b8c9d3; }
.wiki-starter-page .starter-related { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 1.2rem 0 2rem; }
.wiki-starter-page .starter-related a { padding: 0.8rem 0; border-bottom: 1px solid #31414e; text-decoration: none; }
.wiki-starter-page .starter-related strong, .wiki-starter-page .starter-related span { display: block; }
.wiki-starter-page .starter-related strong { font-size: 1rem; color: #7cdeea; }
.wiki-starter-page .starter-related span { margin-top: 0.3rem; font-size: 0.86rem; line-height: 1.8; color: #aebfcb; }
.wiki-starter-page .starter-credits { font-size: 0.8rem; line-height: 1.9; color: #a6b6c2; }
.wiki-starter-entry { background: #11202c; border-bottom: 1px solid #2a4353; }
.wiki-starter-entry .container { display: flex; gap: 2rem; justify-content: space-between; align-items: center; padding-block: 1.8rem; }
.wiki-starter-entry h2 { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 1.65rem; line-height: 1.5; margin: 0 0 0.5rem; color: #f1f3f0; }
.wiki-starter-entry p { max-width: 43rem; margin: 0; font-size: 0.97rem; line-height: 1.85; color: #b5c9d6; }
.wiki-starter-entry a { flex-shrink: 0; display: inline-block; padding: 0.8rem 1.2rem; color: #07151d; background: #82d7df; border-radius: 6px; font-size: 0.94rem; font-weight: 650; line-height: 1.6; text-decoration: none; }
.wiki-starter-hero-link { display: inline-block; margin: 0.5rem 0 0.3rem; font-size: 0.95rem; font-weight: 650; line-height: 1.8; color: #82d7df; text-decoration: underline; text-underline-offset: 0.3em; }
.starter-guide-pointer { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border: 1px solid #365565; border-radius: 6px; background: #12232e; }
.starter-guide-pointer a { color: #82d7df; font-weight: 650; line-height: 1.8; text-decoration: underline; text-underline-offset: 0.25em; }
.starter-guide-pointer p { color: #b5c9d6; font-size: 0.86rem; line-height: 1.9; margin: 0.6rem 0 0; }
@media (max-width: 980px) {
  .wiki-starter-page .wiki-reading-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .wiki-starter-page .wiki-toc { position: static; width: 100%; max-height: none; overflow: visible; }
  .wiki-starter-page .wiki-toc-inner { padding: 0.85rem 1rem; border: 1px solid #34424f; border-radius: 6px; background: #12212c; }
  .wiki-starter-page .wiki-toc-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; padding: 0.25rem 0; background: none; color: #e8f0f2; font: inherit; }
  .wiki-starter-page .wiki-toc-heading { display: none; }
  .wiki-starter-page .wiki-toc-links { display: none; padding-top: 0.7rem; }
  .wiki-starter-page .wiki-toc.is-open .wiki-toc-links:not([hidden]) { display: grid; }
  .wiki-starter-page .wiki-article { max-width: 46rem; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  .wiki-starter-page .wiki-page-hero .container { padding-block: 1.6rem 2rem; }
  .wiki-starter-page .wiki-reading-section { padding-top: 1.5rem; }
  .wiki-starter-page .wiki-article { font-size: 1.03rem; line-height: 1.95; }
  .wiki-starter-page .starter-lead { padding: 1.1rem 1rem 0.1rem; }
  .wiki-starter-page .wiki-source-content section { margin-top: 2.5rem; }
  .wiki-starter-page .starter-tools dl, .wiki-starter-page .starter-related { grid-template-columns: 1fr; }
  .wiki-starter-page .wiki-source-content table, .wiki-starter-page .wiki-source-content tbody, .wiki-starter-page .wiki-source-content tr { display: block; }
  .wiki-starter-page .wiki-source-content caption { display: block; }
  .wiki-starter-page .wiki-source-content thead { display: none; }
  .wiki-starter-page .wiki-source-content tr { padding: 0.3rem 0.7rem 0.6rem; border-bottom: 1px solid #415663; }
  .wiki-starter-page .wiki-source-content tbody th { display: block; width: auto; border: 0; padding: 0.6rem 0.1rem 0.3rem; font-size: 1rem; }
  .wiki-starter-page .wiki-source-content td { display: grid; grid-template-columns: 5.2em 1fr; gap: 0.8rem; padding: 0.45rem 0.1rem; border: 0; }
  .wiki-starter-page .wiki-source-content td::before { content: attr(data-label); color: #a6b6c2; font-size: 0.8rem; line-height: 1.85; }
  .wiki-starter-page .starter-shortcuts > div { grid-template-columns: 3rem 1fr; }
  .wiki-starter-entry .container { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wiki-starter-page { scroll-behavior: auto; }
}

/* Reviewed system and route articles share the same reading surface. */
.wiki-reviewed-page .wiki-source-content > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.wiki-anchor-alias { display: block; height: 0; overflow: hidden; scroll-margin-top: 120px; }

/* Keep long names and calculation references readable on narrow screens. */
.wiki-starter-page .wiki-source-content { overflow-wrap: anywhere; }

/* Compact player directories share the reviewed wiki reading surface. */
.wiki-starter-page .wiki-directory-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 18px 0; list-style: none; padding: 0; }
.wiki-starter-page .wiki-directory-links > li { margin: 0; padding: 15px 17px; border: 1px solid #2a384c; border-radius: 12px; background: #101725; }
.wiki-starter-page .wiki-directory-links a { font-weight: 700; }
.wiki-starter-page .wiki-directory-links p { margin: 7px 0 0; font-size: .94em; color: #c2cbd9; }
.wiki-starter-page .wiki-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 16px 0 26px; }
.wiki-starter-page .wiki-directory-person { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1px solid #29374a; border-radius: 10px; background: #101725; text-decoration: none; }
.wiki-starter-page .wiki-directory-person:hover { border-color: #52cfe4; background: #142333; }
.wiki-starter-page .wiki-directory-person img { display: block; flex: 0 0 56px; width: 56px; height: 56px; margin: 0; border-radius: 3px; object-fit: cover; }
.wiki-starter-page .wiki-directory-person span { min-width: 0; overflow-wrap: anywhere; font-weight: 650; line-height: 1.4; }
.wiki-starter-page .wiki-directory-letters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.wiki-starter-page .wiki-directory-letters a { display: inline-flex; min-width: 35px; justify-content: center; padding: 5px 9px; border: 1px solid #304157; border-radius: 7px; }
.wiki-starter-page .wiki-directory-grid + h3 { scroll-margin-top: 120px; }
@media (max-width: 540px) {
  .wiki-starter-page .wiki-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-starter-page .wiki-directory-person { flex-direction: column; gap: 8px; text-align: center; padding: 12px 8px; }
  .wiki-starter-page .wiki-directory-person span { font-size: 14px; }
}

/* Compact player directories share the reviewed wiki reading surface. */
.wiki-starter-page .wiki-directory-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 18px 0; list-style: none; padding: 0; }
.wiki-starter-page .wiki-directory-links > li { margin: 0; padding: 15px 17px; border: 1px solid #2a384c; border-radius: 12px; background: #101725; }
.wiki-starter-page .wiki-directory-links a { font-weight: 700; }
.wiki-starter-page .wiki-directory-links p { margin: 7px 0 0; font-size: .94em; color: #c2cbd9; }
.wiki-starter-page .wiki-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 16px 0 26px; }
.wiki-starter-page .wiki-directory-person { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1px solid #29374a; border-radius: 10px; background: #101725; text-decoration: none; }
.wiki-starter-page .wiki-directory-person:hover { border-color: #52cfe4; background: #142333; }
.wiki-starter-page .wiki-directory-person img { display: block; flex: 0 0 56px; width: 56px; height: 56px; margin: 0; border-radius: 3px; object-fit: cover; }
.wiki-starter-page .wiki-directory-person span { min-width: 0; overflow-wrap: anywhere; font-weight: 650; line-height: 1.4; }
.wiki-starter-page .wiki-directory-letters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.wiki-starter-page .wiki-directory-letters a { display: inline-flex; min-width: 35px; justify-content: center; padding: 5px 9px; border: 1px solid #304157; border-radius: 7px; }
.wiki-starter-page .wiki-directory-grid + h3 { scroll-margin-top: 120px; }
.wiki-library .guide-search { position: relative; display: flex; align-items: center; flex: 0 1 320px; width: min(100%, 320px); min-width: 200px; }
.wiki-library .guide-search .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wiki-library [data-wiki-search] { appearance: none; box-sizing: border-box; width: 100%; min-width: 0; padding: 12px 42px 12px 14px; border: 1px solid #35495b; border-radius: 12px; background: #0b1421; color: #edf5f8; font: inherit; font-size: 14px; line-height: 1.35; }
.wiki-library [data-wiki-search]::placeholder { color: #a4b6c6; opacity: 1; }
.wiki-library [data-wiki-search]:focus-visible { border-color: #52cfe4; outline: 2px solid #52cfe4; outline-offset: 3px; }
.wiki-library .guide-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 2px 6px; border: 1px solid #415669; border-radius: 4px; color: #a9bccd; font-size: 12px; line-height: 16px; pointer-events: none; }
@media (max-width: 900px) {
  .wiki-library .guide-search { flex-basis: 100%; width: 100%; min-width: 0; }
}
@media (max-width: 540px) {
  .wiki-starter-page .wiki-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-starter-page .wiki-directory-person { flex-direction: column; gap: 8px; text-align: center; padding: 12px 8px; }
  .wiki-starter-page .wiki-directory-person span { font-size: 14px; }
}
