:root {
  color-scheme: light;
  --ink: #f8f6ee; --panel: #fffefa; --line: #d9d7c7; --muted: #5c6b64;
  --text: #213c36; --gold: #815724; --purple: #477d78; --green: #387257; --red: #a64733;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 100px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 15px/1.7 "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .4; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.muted { color: var(--muted); } .gold { color: var(--gold); } .small { font-size: 13px; }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: 3px; font-weight: 600; }
.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; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; background: #254f46; color: #fff; }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; padding: 11px 22px; font-size: 14px; transition: background .15s, border-color .15s; }
.button:hover { background: #edf3e8; border-color: var(--purple); }
.button-primary { background: var(--gold); border-color: var(--gold); color: #fffdf3; font-weight: 700; }
.button-primary:hover { background: #5e4526; border-color: #5e4526; }
.search-bar { margin: 32px 0 0; position: relative; }
.global-search-box { display: flex; align-items: center; gap: 12px; background: #fffefa; border: 1px solid var(--line); padding: 13px 18px; border-radius: 8px; }
.global-search-box svg { width: 20px; height: 20px; color: var(--gold); }
.global-search-box input { width: 100%; border: 0; background: transparent; color: var(--text); outline: 0; min-width: 0; }
input::placeholder { color: #65776f; }
kbd { border: 1px solid #d2d4c8; border-radius: 4px; font: 12px/1.5 monospace; color: var(--muted); padding: 0 7px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; max-height: 420px; overflow-y: auto; z-index: 20; background: #fffefa; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 40px #24362b21; }
.search-result { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 20px; text-align: left; }
.search-result:hover { background: #ecf3e9; }
.search-result .result-type { color: var(--gold); font-size: 11px; width: 40px; flex-shrink: 0; }
.search-result small { color: var(--muted); margin-left: auto; }
.search-hint { padding: 12px 18px; color: var(--muted); font-size: 13px; }
.section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-family: "Songti SC", "SimSun", serif; font-size: 32px; font-weight: 600; letter-spacing: 2px; margin-top: 8px; }
.section-heading p { font-size: 13px; color: var(--muted); max-width: 430px; }
.filter-bar { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; align-items: center; margin-bottom: 23px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid transparent; border-radius: 6px; padding: 7px 15px; background: #efeee4; color: var(--muted); font-size: 13px; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--gold); border-color: #265953; background: #e5eddf; }
.filter-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
select, .filter-input { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; color: var(--text); min-width: 0; }
.filter-input { width: 190px; }
.check { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.check input { accent-color: var(--gold); width: 15px; height: 15px; }
.result-count { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.job-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.job-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px 18px; min-width: 0; transition: border-color .2s, transform .2s; }
.job-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.job-emblem { width: 40px; height: 40px; color: var(--gold); }
.branch-102 .job-emblem { color: var(--green); } .branch-103 .job-emblem { color: var(--purple); }
.tier-label { color: var(--muted); font-size: 11px; }
.job-card h3 { font-family: "Songti SC", "SimSun", serif; font-size: 22px; letter-spacing: 2px; margin-bottom: 6px; }
.job-tagline { color: var(--muted); font-size: 12px; margin-bottom: 16px; min-height: 21px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge { color: #405d4a; background: #ecf1e9; border: 1px solid #d3dece; padding: 2px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.badge.hidden-job { color: var(--gold); background: #f8eed6; border-color: #d7bc7e; }
.badge.developing { color: var(--red); border-style: dashed; border-color: #c09b8d; background: #f5e9df; }
.skill-preview { display: flex; align-items: center; gap: 6px; margin: 18px 0; min-height: 31px; }
.skill-preview img { width: 30px; height: 30px; border-radius: 5px; border: 1px solid #d7cfc1; }
.skill-preview span { color: var(--muted); font-size: 11px; margin-left: 4px; }
.card-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 11px; }
.card-bottom b { color: var(--gold); font-weight: 500; }
.more-row { text-align: center; margin-top: 25px; } .more-row button { min-width: 180px; }
.empty { padding: 36px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.routes { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #f6f2e4; padding: 12px 16px; }
.route-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 0; cursor: pointer; }
.route-heading strong { font-size: 14px; }
.route-heading span { margin-left:auto; font-size:12px; color:var(--muted); }
.route-heading::after { content:"＋"; color:var(--forest); }
.routes[open] .route-heading::after { content:"−"; }
.routes[open] .route-grid { margin-top:16px; }
.route-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px 30px; }
.route { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; color: var(--muted); }
.route button { border: 0; padding: 2px 3px; background: transparent; color: var(--text); border-radius: 3px; }
.route button:hover { color: var(--gold); background: #e5eddf; }
.route .arrow { color: #5b7a69; padding-inline: 2px; } .route-end { margin-top: 6px; }
.pets-section { background: #f4f6ed; }
.pet-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.pet-card { min-width: 0; display: flex; align-items: center; flex-direction: column; background: #fffefa; border: 1px solid var(--line); border-radius: 12px; padding: 20px 12px 14px; text-align: center; transition: border-color .2s, transform .2s; }
.pet-card:hover { border-color: var(--green); transform: translateY(-3px); }
.pet-portrait { width: 78px; height: 78px; border-radius: 15px; padding: 4px; background: #edeedb; border: 1px solid #d8dbc5; margin-bottom: 13px; }
.pet-portrait img { width: 100%; height: 100%; object-fit: contain; }
.pet-card h3 { font-size: 14px; margin-bottom: 8px; }
.pet-meta { color: var(--muted); font-size: 11px; }
.evolution { color: var(--green); font-size: 11px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; width: 100%; }
.map-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.map-controls { display: flex; gap: 6px; align-items: center; }
.map-controls button { border: 1px solid var(--line); background: var(--panel); padding: 4px 12px; border-radius: 4px; min-width: 34px; }
.map-controls output { color: var(--muted); min-width: 45px; text-align: center; font-size: 12px; }
.map-layout { display: grid; grid-template-columns: minmax(0,1fr) 288px; gap: 20px; }
.map-viewport { height: 530px; width: 100%; overflow: auto; background: #122c3b; border: 1px solid #4a5550; border-radius: 10px; overscroll-behavior: contain; }
.map-stage { position: relative; width: 100%; min-width: 660px; aspect-ratio: 8 / 5; }
.world-image { width: 100%; height: 100%; }
.map-pin { position: absolute; transform: translate(-50%,-100%); border: 0; background: transparent; padding: 8px 3px 0; font-size: 10px; white-space: nowrap; z-index: 2; min-height: 30px; }
.pin-dot { display: block; width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 3px #191a20cc; border: 1px solid #fff1c9; border-radius: 50%; margin: 3px auto 0; }
.map-pin span:first-child { display: block; background: #14121ceb; padding: 3px 6px; border-radius: 4px; border: 1px solid #796243; color: #f4e5c9; box-shadow: 0 2px 5px #0007; }
.map-pin:hover, .map-pin[aria-pressed="true"] { z-index: 5; }
.map-pin:hover span:first-child, .map-pin[aria-pressed="true"] span:first-child { background: #f2d390; color: #20190f; }
.map-pin.dev span:first-child { color: #dfb8ad; border-style: dashed; border-color: #997366; }
.map-pin.dev .pin-dot { background: var(--red); }
.map-pin.dev[aria-pressed="true"] span:first-child { color: #20190f; background: var(--red); }
.city-list { display: flex; flex-direction: column; gap: 4px; max-height: 530px; overflow-y: auto; padding-right: 4px; }
.city-list button { text-align: left; background: var(--panel); border: 1px solid transparent; border-radius: 6px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.city-list button[aria-pressed="true"] { border-color: #8c7853; background: #e5eddf; }
.city-list button:hover { border-color: #748f73; }
.city-list small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.map-legend { color: var(--muted); font-size: 12px; display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 6px; } .legend-dot.dev { background: var(--red); }
.city-detail { margin-top: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.city-overview { display: grid; grid-template-columns: 340px 1fr; }
.city-image-button { display: block; width: 100%; border: 0; padding: 0; background: #203328; text-align: left; position: relative; }
.city-image-button img { width: 100%; height: 100%; max-height: 310px; min-height: 250px; object-fit: cover; }
.city-image-button span { position: absolute; bottom: 12px; right: 12px; background: #15121be6; border: 1px solid #625b57; color: var(--gold); border-radius: 4px; padding: 5px 10px; font-size: 11px; }
.city-copy { padding: 28px 30px; }
.city-copy h3 { font-family: "Songti SC", "SimSun", serif; font-size: 26px; margin: 9px 0 12px; }
.city-copy p { color: var(--muted); font-size: 13px; margin-top: 14px; }
.city-services { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.city-people { padding: 24px 30px; border-top: 1px solid var(--line); }
.city-people h4 { font-size: 15px; margin-bottom: 16px; }
.city-npc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.npc-mini { display: flex; align-items: center; gap: 10px; border: 1px solid #d3dbca; border-radius: 6px; background: #f5f6ee; padding: 10px; text-align: left; min-width: 0; }
.npc-mini:hover { border-color: var(--purple); }
.npc-mini img { width: 32px; height: 32px; border-radius: 5px; flex-shrink: 0; }
.npc-mini b { font-size: 12px; display: block; overflow-wrap: anywhere; }
.npc-mini small { color: var(--muted); font-size: 10px; }
.npc-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.npc-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.npc-card:hover { border-color: var(--purple); }
.npc-card-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.npc-card-top img { width: 44px; height: 44px; border: 1px solid #c9ccbe; border-radius: 8px; }
.npc-card h3 { font-size: 15px; margin-bottom: 5px; }
.npc-location { color: var(--muted); font-size: 11px; }
.npc-card blockquote { margin: 14px 0 16px; color: #52665c; font-size: 12px; min-height: 42px; border-left: 2px solid #b9b091; padding-left: 12px; }
.lore-section { background: #f6f4e8; }
.lore-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.lore-layout h3 { font-family: "Songti SC", "SimSun", serif; font-size: 25px; margin-bottom: 18px; }
.lore-layout p { color: var(--muted); font-size: 14px; }
.faction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.faction { padding: 13px 16px; background: #fffdf6; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.faction small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.lore-quote { border-left: 2px solid var(--gold); color: var(--gold); margin: 20px 0; padding-left: 18px; font-family: "Songti SC", "SimSun", serif; font-size: 19px; }
.guide-faq { margin-top: 30px; }
.guide-faq details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.guide-faq summary { cursor: pointer; font-size: 13px; } .guide-faq p { padding-top: 12px; font-size: 12px; }
.site-footer { padding: 35px 0; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; } .footer-links a:hover { color: var(--gold); }
.back-top { position: fixed; bottom: 22px; right: 22px; z-index: 15; border: 1px solid var(--line); border-radius: 8px; background: #fffdf5; color: var(--gold); width: 38px; height: 38px; text-align: center; line-height: 38px; }
dialog { width: min(960px,calc(100% - 36px)); max-height: calc(100dvh - 44px); padding: 0; color: var(--text); background: #fffdf6; border: 1px solid #b6b49b; border-radius: 14px; box-shadow: 0 20px 100px #1a352e44; }
dialog::backdrop { background: #182e2ac9; backdrop-filter: blur(5px); }
.dialog-toolbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fffdf6; }
.dialog-toolbar span { color: var(--gold); font-size: 12px; }
.dialog-close { border: 1px solid var(--line); border-radius: 6px; background: #f4f1e6; font-size: 24px; width: 36px; height: 36px; line-height: 1; }
.dialog-content { padding: 28px 34px 36px; }
.detail-title { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.detail-title .job-emblem { width: 65px; height: 65px; }
.detail-title .pet-portrait { margin: 0; width: 90px; height: 90px; flex-shrink: 0; }
.detail-title h2 { font-family: "Songti SC", "SimSun", serif; font-size: 32px; letter-spacing: 2px; margin-bottom: 10px; }
.detail-intro { color: #465c51; font-size: 14px; line-height: 1.9; }
.detail-section { margin-top: 30px; }
.detail-section h3 { font-size: 17px; color: var(--gold); margin-bottom: 16px; }
.tip { font-size: 13px; color: var(--muted); padding: 15px; border-left: 2px solid var(--gold); background: #f7efda; margin-top: 15px; }
.detail-route { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 13px; }
.detail-route button { background: #f4f1e6; border: 1px solid #d8d4c5; border-radius: 5px; padding: 5px 9px; }
.detail-route button.current { background: #f3e8cd; border-color: #b29c69; color: var(--gold); }
.detail-route .arrow { color: #698475; }
.info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.attribute-row { display: grid; grid-template-columns: 34px 1fr 22px; align-items: center; gap: 10px; font-size: 12px; margin-top: 8px; color: var(--muted); }
.attribute-bar { background: #dbe5d7; height: 5px; border-radius: 5px; overflow: hidden; }
.attribute-bar span { display: block; height: 100%; background: var(--purple); border-radius: 5px; }
.growth-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.growth { border: 1px solid var(--line); background: #f5f4eb; border-radius: 6px; padding: 10px; font-size: 11px; color: var(--muted); }
.growth b { display: block; color: var(--text); font-size: 17px; margin-top: 4px; }
.skill-list { display: grid; gap: 12px; }
.skill-entry { display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f5f4eb; }
.skill-entry > img { width: 50px; height: 50px; border-radius: 8px; border: 1px solid #d7d4c3; }
.skill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.skill-head h4 { font-size: 15px; } .skill-head small { font-size: 11px; color: var(--gold); }
.skill-entry p { margin-top: 9px; color: #526159; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.skill-facts { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 11px; color: var(--muted); margin-top: 11px; }
.skill-facts b { color: var(--gold); font-weight: 500; }
.minor-note { color: var(--muted); font-size: 11px; margin-top: 14px; }
.detail-section .npc-mini { max-width: 350px; margin: 10px 0; }
.evolution-chain { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.evolution-node { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #f3f5e9; border: 1px solid var(--line); border-radius: 7px; padding: 12px 20px; font-size: 12px; }
.evolution-node.current { border-color: var(--gold); color: var(--gold); }
.evolution-node img { width: 60px; height: 60px; object-fit: contain; }
.npc-talk { margin: 12px 0; padding: 15px 18px; border-left: 2px solid #a59c77; background: #f3efdf; color: #495a4f; font-size: 14px; }
.detail-map { max-height: 70dvh; width: 100%; object-fit: contain; background: #1c302a; border-radius: 6px; margin-top: 18px; }
.map-full-link { display: inline-block; margin-top: 14px; color: var(--gold); font-size: 13px; border-bottom: 1px solid #7c6742; }
.inline-link { border: 0; background: transparent; color: var(--gold); padding: 0; text-decoration: underline; text-underline-offset: 4px; font-size: inherit; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .job-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .pet-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .map-layout { grid-template-columns: minmax(0,1fr) 240px; } .city-npc-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding: 48px 0; } .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; } .section-heading h2 { font-size: 29px; }
  .job-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .route-grid { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; } .map-viewport { height: 450px; }
  .city-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-height: 210px; }
  .city-list button { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; font-size: 12px; }
  .city-overview { grid-template-columns: 260px 1fr; } .city-copy { padding: 24px; } .city-npc-grid { grid-template-columns: 1fr 1fr; }
  .npc-grid { grid-template-columns: 1fr 1fr; } .lore-layout { grid-template-columns: 1fr; gap: 30px; } .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
     .eyebrow { font-size: 10px; letter-spacing: 2px; }
  .global-search-box { padding: 11px 13px; } .global-search-box input { font-size: 13px; } .global-search-box kbd { display: none; }
  .search-result small { font-size: 10px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs { gap: 4px; } .tab { padding: 6px 11px; font-size: 12px; } .filter-controls { gap: 10px; width: 100%; } .filter-controls select { flex: 1; } .filter-input { width: 100%; }
  .job-grid { gap: 10px; } .job-card { padding: 18px 14px 14px; } .job-card h3 { font-size: 19px; } .job-card .job-emblem { width: 34px; height: 34px; }
  .job-tagline { font-size: 11px; min-height: 37px; } .skill-preview { gap: 4px; } .skill-preview img { width: 25px; height: 25px; } .skill-preview span { display: none; }
  .routes { padding: 10px 12px; } .route-heading span { display:none; } .route-grid { grid-template-columns: 1fr; }
  .pet-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; } .pet-card { padding: 15px 6px 10px; } .pet-card h3 { font-size: 12px; overflow-wrap: anywhere; }
  .pet-portrait { width: 63px; height: 63px; } .pet-meta, .evolution { font-size: 10px; }
  .map-viewport { height: 390px; } .map-controls button { padding: 4px 9px; } .city-overview { grid-template-columns: 1fr; }
  .city-image-button img { height: 210px; min-height: 0; } .city-copy, .city-people { padding: 22px; } .city-npc-grid { gap: 8px; }
  .npc-mini { padding: 8px; gap: 7px; } .npc-mini img { width: 27px; height: 27px; } .npc-grid { grid-template-columns: 1fr; } .npc-card blockquote { min-height: 0; }
  .dialog-toolbar { padding: 12px 18px; } .dialog-content { padding: 24px 20px; } .detail-title { gap: 14px; } .detail-title h2 { font-size: 27px; }
  .detail-title .job-emblem { width: 45px; height: 45px; } .detail-title .pet-portrait { width: 72px; height: 72px; }
  .info-columns { grid-template-columns: 1fr; gap: 20px; } .skill-entry { padding: 14px; grid-template-columns: 37px 1fr; gap: 11px; } .skill-entry > img { width: 37px; height: 37px; }
  .skill-head h4 { font-size: 14px; } .detail-section { margin-top: 25px; } .detail-intro { font-size: 13px; } .evolution-node { padding: 10px 12px; } .faction { padding: 12px; }
}
/* Full-body left-facing idle cutouts, rendered from the game's current Spine. */
.job-art { position: relative; height: 190px; margin: -8px -8px 15px; padding: 17px 8px 14px; background: radial-gradient(ellipse at 50% 58%, #dbe6cd, transparent 67%); }
.role-portrait { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.job-art .tier-label { position: absolute; top: 0; right: 0; font-size: 10px; }
.weapon-caption { position: absolute; right: 0; bottom: -4px; color: #56695e; font-size: 10px; }
.portrait-caption { color: var(--muted); font-size: 12px; margin-top: 14px; }
.npc-card-top .npc-portrait { width: 118px; height: 155px; border: 0; border-radius: 0; object-fit: contain; flex-shrink: 0; }
.npc-card-top > div { min-width: 0; }
.npc-mini .npc-portrait { width: 50px; height: 65px; object-fit: contain; border: 0; border-radius: 0; flex-shrink: 0; }
.detail-role-art, .detail-npc-art { width: 190px; height: 210px; flex-shrink: 0; }
.detail-npc-art .npc-portrait { width: 100%; height: 100%; object-fit: contain; }
.class-detail-title > div:last-child, .npc-detail-title > div:last-child { min-width: 0; }
@media (max-width: 1100px) { .npc-card-top .npc-portrait { width: 94px; height: 134px; } }
@media (max-width: 820px) {
  .city-npc-grid { grid-template-columns: 1fr 1fr; }
  .npc-mini .npc-portrait { width: 44px; height: 58px; }
}
@media (max-width: 520px) {
  .job-art { height: 157px; margin: -5px -5px 16px; padding: 17px 0 14px; }
  .job-art .tier-label { font-size: 9px; }
  .weapon-caption { font-size: 9px; }
  .npc-card-top .npc-portrait { width: 114px; height: 143px; }
  .npc-mini .npc-portrait { width: 37px; height: 53px; }
  .detail-role-art, .detail-npc-art { width: 112px; height: 160px; }
  .portrait-caption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* The harbor cover and the field guide share the same paper, ink and brass palette. */
:root {
  --forest: #194e46;
  --paper: #faf8ef;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}
.site-header { position:sticky; top:0; z-index:30; background:#fffcf3f7; border-bottom:1px solid #d7d6c7; backdrop-filter:blur(12px); }
.header-inner { display:flex; align-items:center; gap:32px; min-height:72px; }
.brand { display:flex; align-items:center; gap:11px; color:var(--forest); white-space:nowrap; }
.brand-mark { width:42px; height:42px; color:#96703b; }
.brand strong { display:block; font: bold 23px/1.2 var(--serif); letter-spacing:.13em; }
.brand small { display:block; margin-top:4px; font:9px/1.2 Georgia,serif; letter-spacing:.12em; }
.main-nav { display:flex; align-items:center; gap:clamp(17px,2.3vw,38px); margin-left:auto; }
.main-nav a { padding:8px 0; font-size:14px; border-bottom:2px solid transparent; }
.main-nav a:hover,.main-nav a.active { color:#805722; border-color:#af8b52; }
.play-cta,.launch { display:inline-flex; align-items:center; justify-content:center; gap:20px; min-height:43px; padding:8px 24px; border-radius:4px; font-weight:700; }
.play-cta { background:var(--forest); color:#fff9e7; }
.play-cta:hover { background:#28665a; }
.menu-toggle { display:none; background:transparent; color:var(--forest); border:1px solid #bfcbbf; border-radius:4px; width:40px; height:39px; font-size:19px; }
.cover { position:relative; isolation:isolate; background:#133f3b; color:#fff9e9; }
.cover-art,.cover-art img,.cover::before { position:absolute; inset:0; width:100%; height:100%; }
.cover-art { z-index:-2; }
.cover-art img { object-fit:cover; object-position:55% 53%; }
.cover::before { content:""; z-index:-1; background:linear-gradient(90deg,#062e30ed 0%,#123a3bd6 19%,#133d3f97 33%,transparent 58%),linear-gradient(0deg,#143c3273,transparent 17%); }
.cover-inner { position:relative; min-height:clamp(435px,33.5vw,640px); display:flex; align-items:center; padding-block:54px; }
.cover-copy { padding-bottom:7px; }
.cover-kicker,.rubric { display:flex; align-items:center; gap:14px; font:600 11px/1.4 Georgia,var(--serif); letter-spacing:.17em; }
.cover-kicker { color:#ffdf94; }
.cover-kicker i { width:34px; height:1px; background:currentColor; }
.cover h1 { font:700 clamp(66px,6.4vw,109px)/1.22 var(--serif); letter-spacing:.055em; margin:16px 0; text-shadow:0 3px 20px #082e3355; }
.cover-lead { font:500 clamp(16px,1.3vw,21px)/1.7 var(--serif); letter-spacing:.055em; }
.cover-actions { display:flex; align-items:center; gap:25px; margin-top:34px; }
.launch {
  min-width:272px;
  min-height:70px;
  gap:17px;
  padding:12px 30px;
  border:1px solid #fff0b3;
  border-radius:5px;
  background:linear-gradient(125deg,#ffe59a,#f8c665 70%,#f2b550);
  color:#283827;
  font-size:25px;
  font-weight:800;
  letter-spacing:.09em;
  box-shadow:inset 0 0 0 3px #ffe8af80, 0 3px 0 #aa7939, 0 8px 18px #092f2c55;
  transition:transform .16s, box-shadow .16s;
}
.launch-play { display:grid; place-items:center; width:31px; height:31px; border-radius:50%; background:#364937; }
.launch-play::after { content:""; margin-left:3px; border-block:6px solid transparent; border-left:9px solid #ffe29a; }
.launch:hover { transform:translateY(-2px); box-shadow:inset 0 0 0 3px #ffefbd, 0 4px 0 #aa7939, 0 10px 21px #082d2955; }
.launch:active { transform:translateY(1px); }
.launch:focus-visible { outline:3px solid white; outline-offset:5px; }
.guide-link { display:inline-flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #cdd3b8aa; font-size:14px; }
.scene-link { display:flex; align-items:center; gap:10px; position:absolute; right:0; bottom:24px; padding:6px 13px 6px 9px; border:1px solid #faeacb88; border-radius:3px; background:#153f3bdf; font-size:12px; }
.scene-link svg { width:27px; height:27px; color:#f8d18d; }
.scene-link span { display:grid; font-size:9px; color:#edd9ad; line-height:1.5; letter-spacing:.08em; }
.scene-link b { font:600 15px/1.3 var(--serif); color:#fff6da; }
.atlas { background:var(--paper); padding:39px 0 34px; scroll-margin-top:0; }
.atlas-head { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:20px; }
.rubric,.section-heading .eyebrow { color:#81683e; font:600 10px/1.4 Georgia,serif; letter-spacing:.17em; }
.atlas-title h2,.section-heading h2 { font:700 clamp(28px,2.6vw,42px)/1.25 var(--serif); letter-spacing:.08em; margin:5px 0 0; }
.search-bar { width:min(370px,42%); margin:0; }
.global-search-box { background:#fffefa; border-color:#cdcfbf; border-radius:5px; padding:10px 14px; font-size:13px; }
.global-search-box:focus-within { outline:2px solid var(--forest); outline-offset:2px; }
.chapters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.chapter { --tint:#f2e3c5; --accent:#865b2e; --rule:#d5b986; position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; min-height:165px; padding:20px; border:1px solid var(--rule); border-radius:6px; color:#283c33; background:linear-gradient(120deg,#fffdf3 0%,var(--tint) 95%); transition:transform .18s,box-shadow .18s; }
.chapter-pets { --tint:#dbeccc; --accent:#41653c; --rule:#b9caaa; }
.chapter-world { --tint:#d2e6e9; --accent:#406a76; --rule:#abc4c8; }
.chapter-npcs { --tint:#f1dbcc; --accent:#9a6049; --rule:#d8b8a4; }
.chapter::before { content:""; position:absolute; z-index:-1; right:-26px; top:-31px; width:125px; aspect-ratio:1; border:1px solid var(--rule); border-radius:50%; box-shadow:0 0 0 7px var(--tint),0 0 0 8px var(--rule); opacity:.75; }
.chapter:hover,.chapter:focus-visible { transform:translateY(-3px); box-shadow:0 7px 17px #2d4a3621; }
.chapter-count { align-self:flex-start; margin-bottom:auto; font-size:11px; letter-spacing:.04em; color:var(--accent); }
.chapter h3 { position:relative; font:700 25px/1.4 var(--serif); }
.chapter-foot { display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:6px; padding-top:7px; border-top:1px solid var(--rule); font-size:11px; color:var(--accent); }
.chapter-foot b { font-size:15px; line-height:1; }
.chapter-art { position:absolute; z-index:-1; width:47%; max-width:145px; height:104px; right:2%; top:4px; object-fit:contain; filter:drop-shadow(0 3px 2px #805d3429); }
.chapter-pets .chapter-art { transform:rotate(6deg); padding:8px; }
.chapter-world .chapter-art { height:70px; width:38%; right:4%; top:20px; object-fit:cover; border:4px solid #fffced; outline:1px solid #a2aea3; transform:rotate(-10deg); }
.lore-strip { display:flex; align-items:center; gap:14px; margin-top:18px; padding:14px 20px; background:#edf0e5; border:1px solid #cfd8c4; border-radius:5px; }
.lore-strip svg { width:24px; height:24px; color:#7d6f43; }
.lore-strip strong { font:700 18px var(--serif); }
.lore-strip span { font-size:13px; color:var(--muted); }
.lore-strip b { margin-left:auto; }
.crumb { display:flex; align-items:center; gap:14px; font-size:13px; }
.crumb a { color:var(--forest); text-decoration:underline; text-underline-offset:4px; }
.in-chapter .atlas { padding:14px 0; border-bottom:1px solid var(--line); }
.in-chapter .atlas-head { margin:0; }
.section { --chapter-ink:#86602d; --wash:#f0e7d2; padding:38px 0 58px; background:linear-gradient(var(--wash),var(--paper) 250px); }
#pets { --chapter-ink:#467048; --wash:#e2edda; }
#world { --chapter-ink:#346b76; --wash:#dcebee; }
#npcs { --chapter-ink:#8a5341; --wash:#f5e2d6; }
#lore { --chapter-ink:#526449; --wash:#e7eadb; }
.section-heading { padding-block:5px 23px; border-bottom:1px solid var(--line); }
.section-heading .eyebrow { color:var(--chapter-ink); }
.filter-bar { background:#fffdf7; border:1px solid var(--line); border-radius:6px; padding:12px; }
.tab[aria-pressed="true"] { background:var(--forest); color:white; border-color:var(--forest); }
.job-card,.npc-card,.pet-card { border-radius:6px; box-shadow:0 3px 8px #3c422808; }
.job-art { border-bottom:1px solid #e2ddca; background:radial-gradient(ellipse at 50% 65%,var(--wash),transparent 72%); }
.filter-controls select,.filter-input { background:#fffefa; }
.map-toolbar { justify-content:flex-end; }
.map-toolbar .tabs { margin-right:auto; }
.site-footer { background:#193e37; color:#d5decd; }
.site-footer .gold,.site-footer .visit-stats .vs b { color:#f3d391; }
.site-footer .visit-stats .vs,.site-footer .visit-stats .vs i,.site-footer .icp-record a { color:#ccd7c7; }
body:not(.in-chapter) .back-top { display:none; }
@media(min-width:1500px) { .wrap { width:min(1400px,calc(100% - 13vw)); } }
@media(max-width:960px) {
  .header-inner { gap:15px; }
  .main-nav { gap:16px; }
  .chapter { padding:15px; }
  .chapter-art { width:50%; height:86px; top:11px; }
}
@media(max-width:820px) {
  .header-inner { min-height:62px; flex-wrap:wrap; gap:10px; padding:9px 0; }
  .header-cta { margin-left:auto; }
  .menu-toggle { display:block; }
  .main-nav { display:none; order:4; width:100%; margin:0; padding:3px 0; flex-wrap:wrap; gap:8px 19px; }
  .main-nav.open { display:flex; }
  .brand strong { font-size:19px; } .brand-mark { width:33px; height:33px; }
  .play-cta { min-height:38px; padding:6px 14px; font-size:13px; gap:10px; }
  .chapters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cover h1 { font-size:58px; } .cover-lead { font-size:15px; }
  .atlas-head { gap:15px; }
}
@media(max-width:640px) {
  .wrap { width:calc(100% - 36px); }
  .brand { gap:6px; } .brand small { font-size:8px; }
  .cover-art { height:76%; } .cover-art img { object-position:center 53%; }
  .cover::before { background:linear-gradient(0deg,#133f3b 18%,#133f3bf5 27%,#133f3baa 40%,transparent 61%); }
  .cover-inner { min-height:485px; align-items:flex-end; padding:0 0 27px; }
  .cover-copy { width:100%; padding:0; }
  .cover-kicker { font-size:10px; }
  .cover h1 { font-size:51px; margin:7px 0; }
  .cover-actions { display:grid; justify-items:start; gap:9px; margin-top:19px; }
  .launch { width:100%; min-width:0; min-height:59px; font-size:22px; }
  .launch-play { width:27px; height:27px; }
  .guide-link { justify-self:center; font-size:13px; padding:3px 0; }
  .scene-link { top:12px; bottom:auto; right:0; padding:4px 8px; }
  .scene-link svg { width:19px; height:19px; }
  .scene-link b { font-size:12px; }
  .atlas { padding:24px 0; }
  .atlas-head { align-items:stretch; flex-direction:column; gap:14px; }
  .search-bar { width:100%; }
  .chapters { gap:10px; }
  .chapter { min-height:145px; padding:12px; }
  .chapter-art { top:14px; width:54%; height:77px; right:0; }
  .chapter-count { font-size:10px; }
  .chapter h3 { font-size:21px; }
  .chapter-foot { font-size:10px; }
  .chapter-world .chapter-art { height:47px; top:27px; right:6%; }
  .lore-strip { flex-wrap:wrap; gap:5px 9px; padding:13px; }
  .lore-strip span { order:4; width:100%; padding-left:33px; font-size:12px; }
  .in-chapter .atlas-head { gap:10px; }
  .section { padding:24px 0 38px; }
  .section-heading { padding-bottom:15px; margin-bottom:15px; gap:8px; }
  .map-layout { grid-template-columns:minmax(0,1fr); }
  .filter-bar { padding:9px; }
}
