:root {
  color-scheme: dark;
  --ink: #11101a; --panel: #1a1825; --line: #34303e; --muted: #aaa5b7;
  --text: #f1edf3; --gold: #ddbf83; --purple: #bda1ec; --green: #9cc5af; --red: #dda291;
}
* { 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: var(--gold); color: var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: #11101af5; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; color: var(--gold); }
.brand strong { font-size: 20px; letter-spacing: 3px; display: block; }
.brand small { font-size: 9px; letter-spacing: 2px; color: var(--muted); display: block; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13px; white-space: nowrap; }
.main-nav a { color: var(--muted); padding: 8px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.header-play { border: 1px solid #806b49; color: var(--gold); padding: 9px 17px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 5px 10px; font-size: 22px; line-height: 1.2; }
.hero { padding: 70px 0 48px; border-bottom: 1px solid var(--line); overflow: hidden; background: radial-gradient(ellipse at 80% 20%, #2c263c 0, transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: "Songti SC", "SimSun", serif; font-weight: 600; font-size: clamp(36px,3.8vw,52px); letter-spacing: 1px; line-height: 1.35; margin: 18px 0 22px; }
.hero h1 span { color: var(--gold); }
.hero-copy { color: var(--muted); max-width: 470px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.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: #231f32; border-color: var(--purple); }
.button-primary { background: var(--gold); border-color: var(--gold); color: #211b13; font-weight: 700; }
.button-primary:hover { background: #edd3a0; border-color: #edd3a0; }
.hero-art { position: relative; padding: 12px; border: 1px solid #625442; background: #181822; box-shadow: 0 16px 60px #0006; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); pointer-events: none; }
.hero-art::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.hero-art::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.hero-art img { width: 100%; height: 320px; object-fit: cover; object-position: 50% 57%; }
.art-caption { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px 2px; font-size: 12px; color: var(--muted); }
.art-caption strong { color: var(--gold); font-size: 14px; }
.map-seal { position: absolute; top: 27px; right: 27px; border: 1px solid #e1c99380; background: #16141ae6; border-radius: 50%; width: 70px; height: 70px; display: grid; place-content: center; text-align: center; color: var(--gold); font-size: 10px; }
.map-seal b { font: 24px/1.2 Georgia,serif; }
.intro-stats { display: flex; gap: 36px; margin-top: 28px; }
.intro-stats strong { font: 26px/1.2 Georgia,serif; margin-right: 6px; color: var(--gold); }
.intro-stats span { color: var(--muted); font-size: 12px; }
.quick-links { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 36px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quick-link { display: flex; align-items: center; gap: 16px; padding: 19px 22px; background: #1c1923; border-right: 1px solid var(--line); }
.quick-link:last-child { border-right: 0; } .quick-link:hover { background: #292334; }
.quick-link svg { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.quick-link b { display: block; font-size: 15px; }
.quick-link small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.quick-link .arrow { margin-left: auto; color: var(--gold); }
.search-bar { margin: 32px 0 0; position: relative; }
.global-search-box { display: flex; align-items: center; gap: 12px; background: #1b1824; 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: #8e879e; }
kbd { border: 1px solid #494151; 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: #201b2b; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 40px #0008; }
.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: #30283d; }
.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: #1c1925; color: var(--muted); font-size: 13px; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--gold); border-color: #786342; background: #302819; }
.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: #c9c0d6; background: #292435; border: 1px solid #443950; padding: 2px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.badge.hidden-job { color: var(--gold); background: #342b1e; border-color: #675336; }
.badge.developing { color: var(--red); border-style: dashed; border-color: #8b6358; background: #392822; }
.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 #514659; }
.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-top: 32px; border: 1px solid var(--line); border-radius: 10px; background: #17151f; padding: 24px; }
.route-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.route-heading h3 { font-size: 16px; } .route-heading p { font-size: 12px; color: var(--muted); }
.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: #302819; }
.route .arrow { color: #77668a; padding-inline: 2px; } .route-end { margin-top: 6px; }
.pets-section { background: #15131e; }
.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: #1c1926; 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: #2d2638; border: 1px solid #51445c; 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: 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: var(--gold); 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: #2e271d; }
.city-list button:hover { border-color: #5d536d; }
.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 #393342; border-radius: 6px; background: #211d2a; 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 #51465c; 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: #bbb3c6; font-size: 12px; min-height: 42px; border-left: 2px solid #675278; padding-left: 12px; }
.lore-section { background: #191523; }
.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: #221b2d; 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: #292134; 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: #1a1724; border: 1px solid #6e5b44; border-radius: 14px; box-shadow: 0 20px 100px #000b; }
dialog::backdrop { background: #0a0815d9; 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: #1a1724; }
.dialog-toolbar span { color: var(--gold); font-size: 12px; }
.dialog-close { border: 1px solid var(--line); border-radius: 6px; background: #2a2334; 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: #cbc4d3; 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: #2b241d; margin-top: 15px; }
.detail-route { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 13px; }
.detail-route button { background: #2a2334; border: 1px solid #4c3f5a; border-radius: 5px; padding: 5px 9px; }
.detail-route button.current { background: #463921; border-color: #a28b57; color: var(--gold); }
.detail-route .arrow { color: #7c6d8e; }
.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: #302a3c; 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: #211c2c; 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: #211c2c; }
.skill-entry > img { width: 50px; height: 50px; border-radius: 8px; border: 1px solid #5b4d67; }
.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: #c0b9cb; 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: #272131; 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 #7f6597; background: #241c30; color: #c9bbd8; 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); } .header-inner { gap: 20px; } .main-nav { gap: 15px; }
  .hero-grid { gap: 30px; } .hero h1 { font-size: 40px; } .quick-link { padding: 18px 14px; gap: 12px; }
  .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: 1fr 240px; } .city-npc-grid { grid-template-columns: repeat(3,1fr); } .intro-stats { gap: 23px; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 36px); } .header-inner { min-height: 68px; flex-wrap: wrap; gap: 12px; }
  .brand strong { font-size: 17px; } .brand-mark { width: 30px; height: 30px; } .header-play { margin-left: auto; padding: 7px 12px; }
  .menu-toggle { display: block; } .main-nav { display: none; order: 4; width: 100%; padding: 8px 0 17px; flex-wrap: wrap; gap: 10px 25px; margin-left: 0; } .main-nav.open { display: flex; }
  .hero { padding-top: 40px; } .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 39px; } .hero-art img { height: 280px; }
  .quick-links { grid-template-columns: 1fr 1fr; } .quick-link { border-bottom: 1px solid var(--line); }
  .quick-link:nth-child(2) { border-right: 0; } .quick-link:nth-child(3), .quick-link:nth-child(4) { border-bottom: 0; }
  .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); } .brand { gap: 8px; } .brand small { font-size: 8px; letter-spacing: 1.5px; }
  .hero { padding: 32px 0; } .hero h1 { font-size: 34px; margin: 16px 0; } .hero-copy { font-size: 13px; } .eyebrow { font-size: 10px; letter-spacing: 2px; }
  .hero-art img { height: 220px; } .art-caption { font-size: 10px; } .art-caption strong { font-size: 12px; }
  .intro-stats { gap: 18px; justify-content: space-between; } .intro-stats strong { font-size: 24px; display: block; }
  .quick-link { gap: 9px; padding: 14px 12px; } .quick-link svg { width: 23px; height: 23px; } .quick-link b { font-size: 13px; } .quick-link small { font-size: 10px; } .quick-link .arrow { display: none; }
  .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: 18px; } .route-heading { flex-direction: column; align-items: flex-start; gap: 7px; } .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%, #42334b66, 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: #baadc6; 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; } }
