/* Area hierarchy uses elevation fills; outlines are reserved for keyboard focus. */
body{background:var(--elevation-0);color:var(--gray-50);font-family:var(--font-body)}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent-orange);outline-offset:4px}
.site-header{background:var(--elevation-1)}
.site-header .brand,.site-header .brand-symbol{color:var(--gray-50)}
.site-header .brand small{color:var(--gray-600)}
.brand-logo{display:block;width:140px;height:auto;object-fit:contain;image-rendering:auto}
.header-nav-link,.submenu-link{color:var(--gray-400)}
.header-nav-link:hover,.header-nav-link[aria-expanded=true],.submenu-link:hover{background:var(--elevation-3);color:var(--gray-50)}
.header-nav-link.active,.submenu-link.active{background:var(--elevation-2);color:var(--accent-orange)}
.nav-submenu{background:var(--elevation-4);box-shadow:0 16px 40px #0006}
.submenu-group{background:var(--elevation-3);border-radius:6px}
.submenu-section-label{margin:7px 5px 2px;padding:9px 8px 4px;border-top:1px solid var(--gray-700);color:var(--gray-500);font-size:11px;line-height:1.2}
.skill-submenu{min-width:290px;max-height:min(70vh,680px);overflow-y:auto}
.skill-menu-branch{border-radius:6px}
.skill-menu-branch>summary{padding:10px 12px;color:var(--gray-200);font-size:13px;list-style:none;cursor:pointer}
.skill-menu-branch>summary::-webkit-details-marker{display:none}
.skill-menu-branch>summary::after{content:'';float:right;width:6px;height:6px;margin:4px 2px 0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.skill-menu-branch[open]>summary::after{transform:translateY(3px) rotate(225deg)}
.skill-menu-branch>summary:hover,.skill-menu-branch[open]>summary{background:var(--elevation-3);color:var(--gray-50)}
.skill-menu-steps{padding:4px 6px 9px 12px;background:var(--elevation-3)}
.skill-menu-path{margin-top:5px;padding-left:10px;border-left:1px solid var(--gray-700)}
.skill-menu-steps .submenu-link{display:flex;justify-content:space-between;gap:12px;white-space:nowrap}
.skill-menu-steps .submenu-link small{color:var(--gray-500)}
.wiki-header-search{background:var(--elevation-3);color:var(--gray-300)}
.entry-hero,.panel,.category-card,.wiki-card,.job-family,.tool-card,.empty-state,.wiki-home-search,.monster-focus{background:var(--elevation-1);border:0;box-shadow:none;border-radius:16px}
.panel{padding:26px}.panel h2{font-size:18px}
.entry-emblem,.wiki-card-image,.sprite-box,.card-icon.with-game-image,.image-stage,.wiki-fact,.job-step,.job-stage-card,.skill-node,.map-candidate,.result-metrics>div,.party-stage,.party-guide-step,.guide-chain-step,.reference-note,.wiki-reference-note,.note-panel,.media-zoom{background:var(--elevation-2)!important;border:0}
.wiki-card:hover,.party-catalog-card:hover,.category-card:hover,.tool-card:hover{background:var(--elevation-3);box-shadow:none}
.entry-title h1,h1,h2,h3,strong,b{font-weight:var(--weight-bold)}
.tag,.wiki-card-tag{background:#f7ff6426;color:var(--accent-yellow)}
.tag.review{background:var(--elevation-4);color:var(--gray-400)}
.tag.example{background:#95ff6426;color:var(--accent-green)}
.group-tab,.quiet-button,.wiki-pagination a{background:var(--elevation-2);color:var(--gray-300);border:0}
.group-tab.active,.quiet-button.is-completed{background:var(--elevation-5);color:var(--accent-yellow)}
.action-button,.wiki-search button{background:var(--elevation-5);color:var(--accent-yellow);border:0}
.action-button:hover,.wiki-search button:hover{background:var(--elevation-7)}
input:not([type=checkbox]):not([type=radio]),select,textarea{background:var(--elevation-3)!important;color:var(--gray-100);border:0!important}
input::placeholder{color:var(--gray-600)}
[data-atlas-form] label{color:var(--gray-400)}
input[type=checkbox],input[type=radio],progress{accent-color:var(--accent-orange)}
th{background:var(--elevation-3);color:var(--gray-400)}
td{background:var(--elevation-2);border:0}tr:nth-child(even)>td{background:var(--elevation-3)}
table{border-collapse:separate;border-spacing:0 2px}
.info-item,.related-link,.wiki-relations li{background:var(--elevation-2);border-radius:8px;padding:12px;margin-bottom:4px}
.image-dialog{background:var(--elevation-1);border:0}.image-dialog::backdrop{background:#000b}
.media-figure figcaption,.guide-picture-grid figcaption{color:var(--gray-400)}
.footer{border:0;color:var(--gray-600)}.footer span:first-child{color:var(--gray-500)}
.wiki-reference-note{line-height:1.7;color:var(--gray-500)}.wiki-reference-note strong{color:var(--gray-300)}
.quest-location-tag{display:inline-flex;align-items:center;gap:6px;min-height:28px}
.quest-location-tag img{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}
.quest-location-symbol{display:inline-flex;align-items:center}.quest-location-symbol .icon{width:17px;height:17px}
.quest-trash-crop{display:block;width:82px;height:137px;overflow:hidden;flex-shrink:0}
.quest-object-guide .quest-trash-crop img{width:232px;max-width:none;height:158px;max-height:none;transform:translate(-117px,-18px);object-fit:contain}
.quest-detail-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-bottom:20px}
.quest-detail-nav .back-link{display:inline-flex;align-items:center;min-height:44px;margin:0}
#main:has(>.quest-detail-nav){padding-top:24px}
.quest-detail-nav .quest-complete-button{flex-shrink:0;min-height:44px;padding:10px 20px;border-radius:12px;background:var(--accent-yellow);color:#202118;font-weight:700}
.quest-detail-nav .quest-complete-button:hover{filter:brightness(.92)}
.quest-detail-nav .quest-complete-button.is-completed{background:var(--elevation-5);color:var(--accent-yellow);box-shadow:inset 0 0 0 1px var(--accent-yellow)}
.quest-entry-top{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;align-items:stretch;margin-bottom:21px}
.quest-entry-top .entry-hero{align-self:stretch;height:100%;min-width:0;margin-bottom:0}
.quest-entry-top .detail-aside{display:flex;min-width:0;align-self:stretch}.quest-entry-top .detail-aside .panel{height:100%}
.quest-entry-top .wiki-relations{grid-template-columns:minmax(0,1fr)}
.quest-entry-top .wiki-relations a{min-width:0;overflow-wrap:anywhere}
.quest-map-preview{display:block;position:relative;width:100%;height:128px;padding:0;overflow:hidden;border:0;border-radius:8px;background:var(--elevation-0)}
.quest-map-preview .npc-map-canvas{width:100%;height:100%;max-width:none;max-height:none}
.quest-map-zoom{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:29px;height:29px;border-radius:4px;background:var(--elevation-1);color:var(--accent-yellow);box-shadow:0 1px 5px #0008}
.quest-map-zoom-icon{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}.quest-map-preview:hover .quest-map-zoom,.quest-map-preview:focus-visible .quest-map-zoom{background:var(--elevation-5)}
.quest-map-dialog{width:min(1200px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);padding:20px;border:0;border-radius:14px;background:var(--elevation-1);color:var(--gray-50);box-shadow:0 25px 80px #0009}
.quest-map-dialog::backdrop{background:#000c}.quest-map-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.quest-map-dialog-heading h2{margin:0;font-size:18px}.quest-map-dialog-heading button{border:0;border-radius:5px;background:var(--elevation-3);color:var(--gray-50);padding:8px 12px}
.quest-map-dialog .npc-map-toolbar{padding:8px 0 12px}.quest-map-dialog .npc-map-canvas{width:100%;height:auto;max-width:none;max-height:min(55vh,400px);border-radius:8px}
.quest-detail-layout{display:block}
.quest-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;align-items:start;margin:0 0 21px}
.quest-summary-grid>div{min-width:0}.quest-summary-grid{--quest-card-min-height:180px}.quest-summary-progress>.panel:first-child,.quest-summary-reward>.panel{min-height:var(--quest-card-min-height)}
.quest-summary-reward h2{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.quest-summary-reward .npc-reward-group--inline{display:block}.quest-summary-reward .npc-reward-group--inline .npc-reward-rule{margin-top:10px}
.quest-summary-reward .npc-reward-group:not(:first-of-type){margin-top:14px}.quest-reward-pop{font-size:13px;color:var(--accent-yellow);margin:0 0 12px}
.quest-reward-tiles{margin-top:4px}.quest-summary-reward .npc-reward-rule{color:var(--gray-400);font-weight:400;margin:8px 0 0}
.npc-page .entry-hero{background:transparent;padding:0;gap:24px;margin:34px 0 64px}
.npc-page .entry-emblem{width:109px;height:109px;border-radius:16px}
.npc-page .entry-emblem img{max-width:85px;max-height:85px;width:auto;height:auto}
.npc-page .entry-title h1{font-size:32px;margin:12px 0 10px;letter-spacing:0;line-height:1.2}
.npc-page .entry-title p{color:var(--gray-600);font-size:14px}
.npc-page .tag{font-size:12px;padding:4px 8px;font-weight:400}
.npc-page .tag.review{background:#95ff6426;color:var(--accent-green)}
.npc-page .detail-layout{display:flex;flex-direction:column;gap:40px}
.npc-page .detail-stack{width:100%;gap:40px}
.npc-page .detail-aside{width:100%}
.npc-page .wiki-reference-note{margin:28px 0 0}
.npc-section h2{font-size:20px;line-height:1.3;margin:0 0 22px;display:flex;align-items:center;gap:12px}
.npc-map-icon{width:23px;height:23px;object-fit:contain;vertical-align:middle}
.npc-location+.npc-location{margin-top:28px}
.npc-location h3{font-size:18px;margin:0 0 18px;display:flex;align-items:center;gap:12px}
.npc-location h3 .wiki-inline-link{color:var(--gray-50);text-decoration:none}.npc-location h3 .wiki-inline-link:hover{color:var(--accent-orange)}
.npc-scene{margin:0;border-radius:24px;background:var(--elevation-1);overflow:hidden}
.npc-scene>img{display:block;width:100%;height:auto;min-height:200px;max-height:365px;object-fit:cover;image-rendering:pixelated}
.npc-scene figcaption{padding:12px 20px;color:var(--gray-600);font-size:12px}
.npc-map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;color:var(--gray-400);font-size:12px}
.npc-map-controls{display:flex;gap:6px}
.npc-map-controls button{background:var(--elevation-3);color:var(--gray-400);border:0;border-radius:6px;padding:8px 12px;font-size:12px}
.npc-map-controls button[aria-pressed=true]{background:var(--elevation-5);color:var(--accent-yellow)}
.npc-map-controls button:hover{background:var(--elevation-6)}
.npc-map-canvas{display:block;width:100%;height:365px;background:var(--elevation-0);image-rendering:auto}
.map-native-preview{display:grid;justify-items:center;gap:12px;padding:12px;max-width:100%}
.map-native-preview>span{font-size:12px;color:var(--gray-100);border:2px solid #ff0099;border-radius:5px;padding:4px 10px}
.map-native-canvas{display:block;max-width:100%;height:auto;image-rendering:auto}
.npc-map-target-outline{fill:none;stroke:#170918;stroke-width:9}
.npc-map-target{fill:#ff168d22;stroke:#ff168d;stroke-width:4}
.npc-map-dot{fill:var(--accent-yellow)}
.npc-map-label-bg{fill:#210d23;stroke:#ff168d;stroke-width:2;vector-effect:non-scaling-stroke}
.npc-map-label{fill:#fff;font-family:var(--font-body);font-weight:700;font-size:24px}
.npc-map-pointer{fill:#ff168d;stroke:#210d23;stroke-width:2;filter:drop-shadow(0 0 3px #ff168d)}
.npc-map-viewer figcaption{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--gray-500)}
.npc-map-viewer figcaption .source-link{margin:0}
.npc-map-pending{color:var(--gray-600)}
.npc-location-data{display:flex;align-items:center;gap:20px;margin-top:16px;background:var(--elevation-2);border-radius:16px;padding:20px}
.npc-location-data .wiki-image{max-width:160px;max-height:100px;width:auto;height:auto;flex-shrink:0;image-rendering:pixelated}
.npc-location-data p{color:var(--gray-400);font-size:13px}.npc-location-data small{color:var(--gray-600);font-size:12px}

.npc-guide-card{background:var(--elevation-1);border-radius:16px;padding:22px 24px;min-width:0}
.npc-guide-card h3{margin:0 0 12px;font-size:16px;line-height:1.5}
.npc-guide-card ol{margin:0 0 16px;padding-left:24px;color:var(--gray-300);line-height:1.8}
.npc-guide-card li{padding-left:4px}
.npc-quest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.npc-quest-card{background:var(--elevation-1);border-radius:16px;padding:28px;min-width:0;display:flex;flex-direction:column;gap:24px}
.npc-quest-top{display:flex;align-items:flex-start;gap:20px;min-height:72px}
.npc-quest-top>div{flex:1;min-width:0}
.npc-quest-top h3{display:flex;align-items:center;gap:18px;font-size:18px;line-height:1.5;margin:0 0 12px;font-weight:700}
.npc-quest-top h3>a{min-width:0;overflow-wrap:anywhere}
.npc-quest-top h3>a:hover{color:var(--accent-orange)}
.npc-level{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--level-tag-background);color:var(--accent-yellow);border-radius:4px;padding:4px 8px;font-family:var(--font-body);font-size:18px;font-weight:700;line-height:normal;white-space:nowrap}
.npc-quest-top p{font-size:12px;color:var(--gray-500);line-height:1.7}
.npc-quest-top>.wiki-image{max-width:65px;max-height:82px;width:auto;height:auto;image-rendering:pixelated}
.npc-quest-body{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.npc-quest-body h4,.npc-reward h4{font-size:14px;margin:0 0 14px;font-weight:700}
.npc-materials{display:flex;flex-wrap:wrap;gap:16px;margin:0;padding:0;list-style:none}
.npc-materials li{display:flex;flex-direction:column;align-items:center;gap:8px;width:72px;max-width:none}
.npc-materials a{display:flex;flex-direction:column;gap:8px;align-items:center;color:var(--gray-300);font-size:12px;text-align:center}
.npc-materials .wiki-image{width:38px;height:42px;object-fit:contain;image-rendering:pixelated}
.npc-material-name{display:flex;flex-direction:column;align-items:center;gap:4px;width:60px;padding:0;border:0;background:transparent;color:var(--gray-300);font-family:var(--font-body);font-size:10px;font-weight:400;line-height:14px;text-align:center;cursor:pointer}
.npc-material-name>span{min-height:0;width:100%;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
.npc-material-name:hover,.npc-material-name[aria-expanded=true]{color:var(--accent-yellow)}
.npc-material-underline{display:block;width:60px;height:1px}
.npc-materials--conditions li{gap:6px}.npc-materials small{font-size:14px;color:var(--gray-50)}
.npc-materials--conditions li{width:72px;min-width:72px;max-width:72px;align-items:center}
.npc-materials--conditions a{gap:6px;align-items:center;text-align:center}
.npc-materials--conditions .npc-material-name{align-items:center;text-align:center}
.npc-materials--conditions .wiki-image{object-position:center}
.npc-material-icon{display:inline-grid;grid-template-columns:max-content;grid-template-rows:max-content}
.npc-material-icon>.wiki-image{grid-column:1;grid-row:1;align-self:start;justify-self:start}
.npc-material-count{grid-column:1;grid-row:1;align-self:start;justify-self:start;margin:29px 0 0 41px;font-family:var(--font-body);font-size:14px;font-weight:700;line-height:normal;color:var(--gray-50);white-space:nowrap}
.npc-material-meso .wiki-image{image-rendering:pixelated}
.npc-material-meso .npc-material-count{font-size:12px}
.npc-material-meso .npc-material-name{cursor:default}

.npc-chain{flex-shrink:0;text-align:right;color:var(--gray-600);font-size:12px;max-width:116px}
.npc-chain-icons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-bottom:12px}
.npc-chain-step{display:block;flex:0 0 11px;width:11px;height:11px;color:var(--quest-chain-pending)}
.npc-chain-step.is-highlighted{color:var(--accent-yellow)}
.quest-sequence{position:relative;display:grid;place-items:center;min-height:184px;margin:20px 0;padding:20px 22px 22px;border-radius:24px;background:var(--elevation-1)}
.quest-sequence.is-long{padding-block:54px}
.quest-sequence h2{position:absolute;top:20px;left:22px;margin:0;font-size:16px;line-height:1.4}
.quest-sequence-list{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:30px 54px;width:100%;min-width:0;margin:0;padding:0 4px;list-style:none}
.quest-sequence-step{position:relative;flex:0 0 109px;min-width:0}
.quest-sequence-step:not(:last-child)::after{content:"";position:absolute;left:calc(100% + 8px);top:47px;width:39px;height:2px;background:repeating-linear-gradient(to right,var(--gray-600) 0 2px,transparent 2px 6px)}
.quest-sequence-step.is-row-end::after{display:none}
.quest-sequence-link{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;color:var(--gray-500);font-size:13px;line-height:1.2;text-align:center;text-decoration:none}
.quest-sequence-link:hover,.quest-sequence-link:focus-visible{color:var(--accent-yellow)}
.quest-sequence-portrait{display:grid;place-items:center;width:39px;height:65px;filter:grayscale(1);opacity:.6}
.quest-sequence-portrait .wiki-image{display:block;width:39px;height:65px;object-fit:contain;image-rendering:pixelated}
.quest-sequence-link:hover .quest-sequence-portrait,.quest-sequence-link:focus-visible .quest-sequence-portrait{filter:none;opacity:1}
.quest-sequence-name{display:block;max-width:109px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quest-sequence-count{display:block;color:var(--gray-500)}
.quest-sequence-step.is-current .quest-sequence-portrait{filter:none;opacity:1}
.quest-sequence-step.is-current .quest-sequence-name{color:var(--accent-yellow)}
.quest-sequence-step.is-current .quest-sequence-count{color:var(--gray-50)}
@media(max-width:700px){.quest-sequence,.quest-sequence.is-long{display:block;min-height:0;padding:18px 16px}.quest-sequence h2{position:static}.quest-sequence-list{margin-top:8px}}
@media(max-width:900px){.quest-entry-top,.quest-summary-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.quest-map-dialog{padding:14px}.quest-map-dialog .npc-map-canvas{height:55vh}}
.npc-reward{margin-top:auto}.npc-reward h4{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}.npc-exp{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;line-height:normal;white-space:nowrap;color:var(--accent-exp)}
.npc-exp-label{background:linear-gradient(to bottom,#fff 0%,#f3ff48 47.596%,#c4d200 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.npc-meso{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:700;line-height:normal;color:var(--gray-50);white-space:nowrap}.npc-meso .icon{width:16px;height:16px;color:var(--accent-orange)}
.npc-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.npc-related-card{background:var(--elevation-1);border-radius:16px;padding:20px;display:flex;align-items:center;gap:24px;min-width:0;min-height:103px}
.npc-related-card:hover{background:var(--elevation-3)}
.npc-related-card>.wiki-image{width:42px;height:64px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.npc-related-card strong{font-size:14px}.npc-related-card p{font-size:12px;color:var(--gray-600);margin-top:8px}.npc-related-card small{color:var(--accent-orange);font-size:12px;display:block;margin-top:8px}
.npc-empty{background:var(--elevation-1);padding:24px;border-radius:16px;font-size:13px;color:var(--gray-500)}
.npc-extra{margin-top:40px;display:flex;flex-direction:column;gap:20px}
.npc-page>.wiki-reference-note{margin-top:40px}
@media(min-width:1500px){main,.header-inner,.page-context{max-width:1321px}.npc-page .entry-hero{margin-top:42px}}
@media(max-width:1100px){.npc-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.npc-quest-card{padding:24px}.npc-chain{display:none}}
@media(max-width:760px){.panel{padding:20px}.npc-page .entry-hero{margin:20px 0 40px;gap:20px}.npc-page .entry-emblem{width:90px;height:100px}.npc-page .entry-title h1{font-size:28px}.npc-page .entry-title p{font-size:12px}.npc-quest-grid{grid-template-columns:1fr}.npc-quest-card{padding:24px}.npc-chain{display:block}.npc-scene{border-radius:16px}.npc-scene>img{min-height:0;object-fit:contain}.npc-location-data{padding:16px;gap:14px}.npc-location-data .wiki-image{max-width:100px}.npc-related-card{gap:14px;padding:16px}.npc-page .detail-stack{gap:32px}}
@media(max-width:420px){.npc-related-grid{grid-template-columns:1fr}.npc-quest-card{padding:20px}.npc-chain{display:none}.npc-materials{gap:12px}.npc-quest-top h3{font-size:16px}.npc-page .entry-title h1{font-size:24px}}
@media(max-width:760px){.npc-map-canvas{height:280px}.npc-map-toolbar{padding:14px;flex-wrap:wrap}.npc-map-viewer figcaption{padding:14px}}
@media(max-width:900px){.site-header .brand{order:0}.wiki-header-search{order:1;margin-left:auto}.header-navigation{order:2}}
@media(max-width:1100px){.brand-logo{width:120px}}
@media(max-width:420px){.brand-logo{width:112px}}

/* Clickable acquisition tooltip: native top layer keeps it above card clipping. */
.item-source-popover{position:fixed;inset:auto;margin:0;padding:0;border:0;border-radius:12px;width:360px;max-width:calc(100vw - 24px);max-height:min(480px,calc(100dvh - 24px));background:var(--elevation-3);color:var(--gray-50);font-family:var(--font-body);box-shadow:0 12px 40px #0008}
.item-source-popover:popover-open{display:flex;flex-direction:column}
.item-source-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 8px;background:var(--elevation-4)}
.item-source-header h2{font-size:14px;line-height:1.5;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.item-source-header p{font-size:10px;color:var(--gray-500);margin:0}
.item-source-close{flex-shrink:0;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:var(--elevation-6);color:var(--gray-300);font-size:20px;cursor:pointer}
.item-source-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;padding:4px 12px 12px;display:flex;flex-direction:column;gap:12px}
.item-source-monster{padding:12px;background:var(--elevation-2);border-radius:8px}
.item-source-monster-link{display:flex;align-items:center;gap:12px;color:var(--gray-50);text-decoration:none}
.item-source-monster-link>.wiki-image,.item-source-monster-link>[role=img]{display:block;width:56px;height:56px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.item-source-monster-link>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.item-source-monster-link strong{font-size:12px;line-height:1.5}
.item-source-level{font-size:10px;padding:3px 6px;border-radius:4px;background:var(--level-tag-background);color:var(--accent-yellow);white-space:nowrap}
.item-source-map-heading{margin:12px 0 8px;font-size:10px;color:var(--gray-500)}
.item-source-maps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.item-source-maps li{display:flex;align-items:center;gap:8px;padding:8px;background:var(--elevation-3);border-radius:4px;font-size:12px;line-height:1.5}
.item-source-maps a{flex:1;min-width:0;color:var(--gray-300);word-break:keep-all;overflow-wrap:anywhere}
.item-source-maps small{flex-shrink:0;font-size:10px;color:var(--gray-500)}
.item-source-best{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;font-size:10px;color:var(--accent-yellow)}
.item-source-best .icon{width:12px;height:12px}
.item-source-more{display:block;margin-top:10px;font-size:10px;color:var(--gray-500);text-align:right}
.item-source-footer{padding:12px 16px;background:var(--elevation-4)}
.item-source-note{font-size:10px;color:var(--gray-500);line-height:1.6;margin:0 0 6px}
.item-source-footer>a{font-size:10px;color:var(--accent-orange)}
.item-source-empty{font-size:12px;line-height:1.6;color:var(--gray-400);padding:12px;margin:0}
.item-source-monster-link:hover strong,.item-source-maps a:hover{color:var(--accent-orange)}
.item-source-quests{display:flex;flex-direction:column;gap:3px;margin-top:6px}
.item-source-header .item-source-quest{display:flex;align-items:flex-start;gap:5px;margin:0;color:var(--gray-400);font-size:12px;line-height:1.5}
.item-source-quest-icon{flex-shrink:0;margin-top:1px;width:12px;height:16px}
.item-source-quest-icon{color:var(--accent-yellow)}
.item-source-quest span{min-width:0;overflow-wrap:anywhere}
.item-source-quest a{color:var(--accent-yellow);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.quest-delivery{padding:24px;border-radius:8px;background:var(--elevation-2)}
*+.quest-delivery{margin-top:24px}
.quest-delivery-guide{padding:14px;margin-bottom:10px;border-radius:8px;background:var(--elevation-2);color:var(--gray-300);font-size:12px;line-height:1.6}
.quest-delivery-guide strong{display:block;margin-bottom:6px;color:var(--gray-50);font-size:13px}
.quest-delivery-guide p{margin:3px 0}
.quest-delivery-guide a{color:var(--accent-orange);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.quest-delivery h3{margin:0 0 12px;color:var(--gray-50);font-size:15px}
.quest-delivery-entry+.quest-delivery-entry{margin-top:14px;padding-top:14px;border-top:1px solid var(--elevation-7)}
.quest-delivery-entry>p{margin:0 0 10px;color:var(--gray-300);font-size:13px}
.quest-delivery-recipient{display:flex;align-items:center;gap:16px}
.quest-delivery-recipient>.wiki-image{width:44px;height:44px;object-fit:contain;image-rendering:pixelated}
.quest-delivery-recipient>div{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.6}
.quest-delivery-recipient span,.quest-delivery-start{color:var(--gray-400)}
.quest-delivery-entry>.quest-delivery-start{margin:8px 0 0;font-size:12px}

.npc-material-icon>[role=img]{grid-column:1;grid-row:1;width:38px;height:42px;display:grid;place-items:center}

.item-source-maps{margin-top:12px}
.item-source-map-label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
.item-source-map-label a{flex:initial;text-decoration-line:underline;text-decoration-style:dashed;text-underline-offset:4px;text-decoration-color:var(--gray-600)}
.item-source-best img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}
.map-route-popover{position:fixed;inset:auto;margin:0;padding:14px;width:290px;max-width:calc(100vw - 24px);max-height:390px;overflow:auto;border:0;border-radius:12px;background:var(--elevation-5);color:var(--gray-300);box-shadow:0 12px 40px #0008;font-family:var(--font-body);pointer-events:auto}
.map-route-popover h3{font-size:14px;margin:0 0 10px;color:var(--gray-50)}
.map-route-image{display:grid;place-items:center;min-height:90px;background:var(--elevation-2);border-radius:6px;padding:8px;font-size:10px}
.map-route-image .wiki-image{display:block;width:100%;height:160px;max-width:none;max-height:none;object-fit:contain;image-rendering:pixelated}
.map-route-town{display:flex;align-items:center;gap:6px;font-size:13px;margin:12px 0 8px;color:var(--gray-300)}
.map-route-path{font-size:13px;line-height:1.8;margin:0;color:var(--gray-400);word-break:keep-all;overflow-wrap:anywhere}
.map-route-path strong{color:var(--accent-yellow);font-weight:700}
.map-route-arrow{color:var(--gray-600)}

.npc-reward-group+.npc-reward-group{margin-top:16px}
.npc-reward-rule{margin:0 0 10px;color:var(--accent-yellow);font-size:12px;font-weight:700;line-height:1.5}
.npc-reward-note{margin:10px 0 0;color:var(--gray-400);font-size:11px;line-height:1.6;overflow-wrap:anywhere}

.map-route-town .icon{width:16px;height:16px;flex-shrink:0}

.npc-reward-group--inline{display:flex;align-items:center;gap:16px}
.npc-reward-group--inline .npc-materials{min-width:0}
.npc-reward-group--inline .npc-reward-rule{flex-shrink:0;margin:0;color:var(--gray-400);font-weight:400;white-space:nowrap}

.npc-meso-icon{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}

.npc-quest-card{position:relative;isolation:isolate;cursor:pointer;transition:background-color .16s ease,transform .16s ease,box-shadow .16s ease}
.npc-quest-card:hover,.npc-quest-card:focus-within{background:var(--elevation-2);box-shadow:0 8px 24px #0003;transform:translateY(-2px)}
.npc-quest-detail-link{align-self:flex-end;margin-top:-12px;color:var(--gray-400);font-size:12px;text-decoration:none}
.npc-quest-detail-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:16px}
.npc-quest-detail-link span{position:relative;z-index:2}
.npc-quest-card a:not(.npc-quest-detail-link),.npc-quest-card button{position:relative;z-index:2}
.npc-quest-card:hover .npc-quest-detail-link,.npc-quest-detail-link:focus-visible{color:var(--accent-yellow)}
.npc-quest-detail-link:focus-visible::after{outline:2px solid var(--accent-yellow);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.npc-quest-card{transition:none}.npc-quest-card:hover,.npc-quest-card:focus-within{transform:none}}

.map-route-town-mark{width:24px;height:24px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}

.equipment-hover{padding:12px;background:var(--elevation-2);border-radius:8px}
.equipment-hover-top{display:flex;align-items:center;gap:18px}
.equipment-hover-top>.wiki-image{width:72px;height:80px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.equipment-hover dl{margin:0;font-size:12px;line-height:1.7}
.equipment-hover dl>div{display:flex;justify-content:space-between;gap:16px}
.equipment-hover dt{color:var(--gray-400)}.equipment-hover dd{margin:0;color:var(--gray-100)}
.equipment-hover-requirements{flex:1}.equipment-hover-jobs{font-size:12px;margin:12px 0;color:var(--gray-300)}
.equipment-hover h3,.equipment-drop-title{font-size:12px;margin:8px 0;color:var(--gray-100)}
.equipment-hover-note{font-size:10px;color:var(--gray-500);margin:10px 0 0}
.equipment-reference-mark{display:block;color:var(--accent-yellow);font-size:10px;font-weight:400;white-space:nowrap}
.equipment-hover-public{margin-top:12px;padding:10px;background:var(--elevation-3);border-radius:6px}
.equipment-hover-public .source-link,.use-item-hover .source-link{display:inline-block;margin-top:8px;font-size:11px}
.equipment-drop-title{margin:4px 0 0}
.item-source-header--equipment>div{flex:1;text-align:left}
.item-source-header--equipment h2{font-size:20px;line-height:1.3}
.item-source-header--equipment p{margin-top:6px}
.equipment-hover--game{padding:20px 16px 18px}
.equipment-hover--game .equipment-hover-top{align-items:center;gap:16px}
.equipment-hover--game .equipment-hover-top>.wiki-image{width:94px;height:110px}
.equipment-hover--game .equipment-hover-requirements{font-size:14px;line-height:1.4}
.equipment-hover--game .equipment-hover-requirements>div{justify-content:flex-start;gap:3px}
.equipment-hover--game .equipment-hover-requirements dt{color:var(--gray-100)}
.equipment-hover--game .equipment-hover-requirements dt::after{content:':' }
.equipment-hover--game .equipment-hover-requirements dd{color:var(--gray-50)}
.equipment-hover--game .equipment-hover-jobs{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;margin:14px 0 8px;font-size:13px;text-align:center}
.equipment-job.available{color:var(--gray-50)}
.equipment-job.unavailable{color:#ec5357}
.equipment-job.unknown{color:var(--gray-500)}
.equipment-hover-divider{height:1px;background:var(--gray-600);margin:12px 0 16px}
.equipment-hover--game .equipment-hover-category{margin:0 0 8px;text-align:center;color:var(--gray-200);font-size:14px;line-height:1.6}
.equipment-hover--game .equipment-hover-stats{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.6}
.equipment-hover--game .equipment-hover-stats>div{justify-content:center;gap:6px;text-align:center}
.equipment-hover--game .equipment-hover-stats dt{color:var(--gray-200)}
.equipment-hover--game .equipment-hover-stats dt::after{content:':' }
.equipment-hover--game .equipment-hover-stats dd{color:var(--gray-50)}
.equipment-hover--game .equipment-hover-note{text-align:center;margin-top:16px}
.equipment-meso-icon{vertical-align:middle;margin-left:4px;object-fit:contain;image-rendering:pixelated}

.item-source-header:not(.item-source-header--compact){padding:14px 16px 12px}
.item-source-header:not(.item-source-header--compact) h2{margin-bottom:4px}
.item-source-header--compact{padding:10px 16px 6px}

.shop-item-detail{display:flex;flex-direction:column;gap:16px;min-width:0}
.shop-item-summary,.shop-item-places{padding:14px;background:var(--elevation-2);border-radius:8px}
.shop-item-effect{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.shop-item-effect .wiki-image{width:48px;height:48px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.shop-item-effect p{margin:0;font-size:13px;line-height:1.6;color:var(--gray-100)}
.shop-item-prices{margin:0;display:grid;gap:10px;font-size:12px}
.shop-item-prices>div{display:flex;justify-content:space-between;gap:12px}
.shop-item-prices dt{color:var(--gray-400)}.shop-item-prices dd{margin:0;color:var(--gray-100)}
.shop-item-price-note{font-size:10px;color:var(--gray-500);margin:10px 0 0}
.shop-item-places h3{font-size:12px;margin:0 0 12px}.shop-item-places ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shop-item-places li{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--gray-300);line-height:1.5}.shop-item-places img{object-fit:contain;image-rendering:pixelated}

.wiki-pagination--numbered{justify-content:center;gap:6px;flex-wrap:wrap}
.wiki-pagination--numbered a,.wiki-pagination--numbered>span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 8px;box-sizing:border-box;border-radius:7px}
.wiki-pagination--numbered a:hover{background:var(--elevation-4);color:var(--gray-50)}
.wiki-pagination--numbered .page-current{background:var(--accent-yellow,#eaff45);color:#212121;font-weight:var(--weight-bold)}
.wiki-pagination--numbered .page-disabled{color:var(--gray-700)}
.wiki-pagination--numbered .page-gap{min-width:16px;padding:0;color:var(--gray-500)}
.wiki-pagination--numbered a:focus-visible{outline:2px solid var(--accent-yellow,#eaff45);outline-offset:3px}

.quest-prerequisites{display:flex;flex-direction:column;gap:5px;margin:7px 0 10px}
.quest-prerequisite{display:flex;align-items:flex-start;gap:5px;max-width:100%;min-width:0;box-sizing:border-box;color:var(--accent-yellow,#eaff45);font-size:12px;font-weight:400;line-height:1.6;text-align:left;white-space:normal}
.quest-prerequisite-icon{flex-shrink:0;margin-top:1px;width:12px;height:16px}
.quest-prerequisite a{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.quest-prerequisite>span{flex:1 1 0;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}.quest-prerequisite>span>span{color:var(--gray-400)}
.quest-state-record{display:flex;align-items:center;gap:8px;margin-top:7px;color:var(--gray-400);font-size:12px}.quest-state-record select{max-width:150px;padding:4px 8px;border:1px solid var(--gray-700);border-radius:8px;background:var(--surface-2);color:var(--text);font:inherit}
.npc-quest-top .quest-prerequisite a{font-size:12px}.wiki-card .quest-prerequisite{font-size:11px}

/* Keep the detail link close to rewards while retaining its bottom-right alignment. */
.npc-quest-card{padding-bottom:24px}
.npc-reward>:last-child{margin-bottom:0}

/* NPC listing; existing elevation and grayscale tokens. */
.npc-list-card{min-height:115px;padding:22px 24px;gap:24px;border-radius:16px;background:var(--elevation-1)}
.npc-list-sprite{width:55px;height:71px;flex:none;display:flex;align-items:center;justify-content:center}
.npc-list-sprite .wiki-image{max-width:55px;max-height:71px;object-fit:contain;image-rendering:pixelated}
.npc-list-content{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.npc-town-tag{display:inline-flex;align-items:center;gap:8px;padding:2px 4px;border-radius:4px;background:var(--town-tint);color:var(--town-color);font-size:11px;line-height:normal}
.npc-town-tag img{width:14px;height:14px;object-fit:contain;image-rendering:pixelated}
.npc-list-card h3{margin:0;font-size:16px;font-weight:700;line-height:normal;color:var(--gray-50)}
.npc-list-card p{margin:0;font-size:12px;line-height:normal;color:var(--gray-600)}
.npc-list-card p span{color:var(--accent-yellow);text-decoration:underline;text-underline-offset:2px}
.npc-list-card:focus-visible{outline:2px solid var(--accent-yellow);outline-offset:3px}

.npc-town-tag{--town-color:#a8bacb;--town-tint:#a8bacb26}
.npc-town-tag[data-town="헤네시스"]{--town-color:#ffb464;--town-tint:#ffb46426}
.npc-town-tag[data-town="엘리니아"]{--town-color:#91cf85;--town-tint:#91cf8526}
.npc-town-tag[data-town="페리온"]{--town-color:#e2a078;--town-tint:#e2a07826}
.npc-town-tag[data-town="커닝시티"]{--town-color:#b5a0dd;--town-tint:#b5a0dd26}
.npc-town-tag[data-town="리스항구"]{--town-color:#87cbd9;--town-tint:#87cbd926}
.npc-town-tag[data-town="슬리피우드"]{--town-color:#9cb78c;--town-tint:#9cb78c26}
.npc-town-tag[data-town="노틸러스"]{--town-color:#80b8d7;--town-tint:#80b8d726}
.npc-town-tag[data-town="오르비스"]{--town-color:#d8b1dc;--town-tint:#d8b1dc26}
.npc-town-tag[data-town="엘나스"]{--town-color:#a5cee9;--town-tint:#a5cee926}
.npc-town-tag[data-town="루디브리엄"]{--town-color:#e9b676;--town-tint:#e9b67626}
.npc-town-tag[data-town="지구방위본부"]{--town-color:#a4bc79;--town-tint:#a4bc7926}
.npc-town-tag[data-town="아랫마을"]{--town-color:#d9bd8a;--town-tint:#d9bd8a26}
.npc-town-tag[data-town="아쿠아리움"]{--town-color:#79d4cb;--town-tint:#79d4cb26}
.npc-town-tag[data-town="리프레"]{--town-color:#b1ce78;--town-tint:#b1ce7826}
.npc-town-tag[data-town="무릉"]{--town-color:#e7a4bb;--town-tint:#e7a4bb26}
.npc-town-tag[data-town="백초마을"]{--town-color:#a7cdaa;--town-tint:#a7cdaa26}
.npc-town-tag[data-town="아리안트"]{--town-color:#e2c076;--town-tint:#e2c07626}
.npc-town-tag[data-town="마가티아"]{--town-color:#b7a5cf;--town-tint:#b7a5cf26}

.npc-list-tags{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px}
.npc-role-tag{display:inline-flex;align-items:center;gap:8px;padding:2px 4px;min-height:18px;border-radius:4px;background:var(--elevation-9);color:var(--gray-50);font-size:11px;line-height:normal;white-space:nowrap}
.npc-role-tag img{width:13px;height:14px;object-fit:contain;image-rendering:pixelated}

.shop-item-places h3{display:flex;align-items:center;justify-content:space-between;gap:8px}
.shop-lowest-legend{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:var(--accent-yellow);font-weight:400}
.shop-lowest-badge{display:inline-flex;align-items:center;flex-shrink:0}
.shop-item-places .shop-lowest-medal{width:14px;height:14px;flex-shrink:0}
.shop-item-places li>img{flex-shrink:0}

.npc-map-canvas--minimap{width:auto;height:auto;max-width:100%;max-height:365px;margin:0 auto}
.npc-map-target{stroke-width:4;filter:drop-shadow(0 0 3px #ff168d)}

/* Original MapleStory UI/Basic.img cursors; local PNGs, no external runtime requests. */
@media (any-pointer:fine){
 html,body,body *{cursor:url("assets/maple-cursor-default.png") 1 1,auto!important}
 a,button,select,summary,label[for],[role="button"],[data-item-source],[data-monster-source],.npc-quest-card,
 a *,button *,summary *,[role="button"] *{cursor:url("assets/maple-cursor-pointer.png") 1 1,pointer!important}
 input,textarea,[contenteditable="true"]{cursor:text!important}
 input:is([type="checkbox"],[type="radio"],[type="range"],[type="button"],[type="submit"]){cursor:url("assets/maple-cursor-pointer.png") 1 1,pointer!important}
 button:disabled,input:disabled,select:disabled,[aria-disabled="true"]{cursor:not-allowed!important}
}

/* NPC browsing controls */
.npc-list-filters{align-items:end;gap:16px}
.npc-list-filters .wiki-filter{flex:1;min-width:160px}
.npc-quest-filter{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;border:1px solid var(--gray-700);border-radius:10px;cursor:pointer;color:var(--gray-200);background:var(--elevation-1);font-size:14px}
.npc-quest-filter input{width:18px;height:18px;margin:0;accent-color:var(--accent-yellow);cursor:pointer;flex:none}
.npc-quest-filter:has(input:checked){border-color:var(--accent-yellow);color:var(--accent-yellow)}
.npc-quest-filter:focus-within{outline:2px solid var(--accent-yellow);outline-offset:3px}
@media(max-width:640px){.npc-list-filters .wiki-filter{min-width:calc(50% - 16px)}.npc-quest-filter{width:100%;box-sizing:border-box}.npc-list-filters .quiet-button{width:100%}}

.quest-catalog-grid{margin-top:16px;align-items:stretch}
.quest-catalog-grid>.npc-quest-card{align-self:stretch}
.quest-catalog-grid .npc-quest-detail-link{margin-top:auto}
.npc-quest-top .npc-quest-giver{margin-top:10px;color:var(--gray-400)}
.npc-quest-giver .wiki-inline-link{color:var(--accent-yellow)}

/* Separate consumable descriptions, effects and vendor value. */
.use-item-hover .equipment-hover-top{align-items:center}
.use-item-info{flex:1;min-width:0}
.use-item-description{margin:0;font-size:13px;line-height:1.75;color:var(--gray-100)}
.use-item-hover .use-item-effects{margin-top:0}
.use-item-hover .use-item-price{margin-top:10px;padding-top:0}
.use-item-price>div{padding:10px 12px;background:#00000024;border-radius:6px;align-items:baseline}
.use-item-hover .use-item-price dt{font-size:11px;color:var(--gray-400)}
.use-item-hover .use-item-price dd{color:var(--accent-yellow);font-size:14px;font-weight:600;white-space:nowrap}
.use-item-price dd span{font-size:11px;font-weight:400;color:var(--gray-300)}

.quest-continent-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}
.quest-continent-buttons button{display:flex;align-items:center;gap:10px;min-height:72px;padding:10px 16px;border:1px solid transparent;border-radius:12px;background:var(--elevation-1);color:var(--gray-300);font:inherit;cursor:pointer}
.quest-continent-buttons button[aria-pressed="true"]{border-color:var(--accent-yellow);background:#f4ff4312;color:var(--accent-yellow)}
.quest-continent-buttons button:hover{background:var(--elevation-2)}
.quest-continent-buttons button:focus-visible{outline:2px solid var(--accent-yellow);outline-offset:3px}
.quest-continent-buttons img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated}
.quest-continent-buttons small{font-size:11px;color:var(--gray-400)}
.quest-continent-section{margin:28px 0}.quest-continent-section>h2{font-size:18px;margin:0 0 16px}
@media(max-width:760px){.quest-continent-buttons{gap:8px}.quest-continent-buttons button{padding:8px 10px;min-height:58px;font-size:12px}.quest-continent-buttons img{width:38px;height:38px}}

.npc-custom-filter{position:relative;min-width:180px}
.npc-custom-filter summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:10px 14px;background:var(--elevation-2);border:1px solid transparent;border-radius:8px;cursor:pointer;list-style:none}
.npc-custom-filter summary::-webkit-details-marker{display:none}
.npc-custom-filter summary>span:first-child{display:flex;align-items:center;gap:10px}
.npc-custom-filter details[open] summary{border-color:var(--accent-yellow)}
.npc-filter-chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--gray-400);transition:transform .15s}
.npc-filter-chevron>.icon{width:18px;height:18px;stroke-width:2}
.npc-custom-filter details[open] .npc-filter-chevron{transform:rotate(180deg)}
.npc-filter-options{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:100%;width:max-content;max-width:min(340px,85vw);max-height:320px;overflow:auto;padding:6px;border:1px solid #ffffff18;border-radius:10px;background:var(--elevation-2);box-shadow:0 12px 32px #0008}
.npc-filter-options button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--gray-100);font:inherit;text-align:left;cursor:pointer}
.npc-filter-options button:hover{background:#ffffff0d;outline:none}
.npc-filter-options button:focus-visible{background:#ffffff0d;outline:1px solid var(--accent-yellow);outline-offset:-1px}
.npc-filter-options button[aria-pressed="true"]{background:#f4ff4312;color:var(--accent-yellow)}
.npc-custom-filter img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.npc-town-symbol{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--gray-400);flex-shrink:0}
.npc-town-symbol .icon{width:18px;height:18px}
.npc-filter-check{margin-left:auto;padding-left:16px;color:var(--accent-yellow)}
.npc-custom-filter summary:focus-visible{outline:2px solid var(--accent-yellow);outline-offset:3px}

.quest-level-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 24px}
.quest-level-buttons>span{font-size:12px;color:var(--gray-400);margin-right:8px}
.quest-level-buttons button{padding:9px 13px;border:1px solid transparent;border-radius:8px;background:var(--elevation-1);color:var(--gray-300);font:inherit;font-size:12px;cursor:pointer}
.quest-level-buttons button[aria-pressed="true"]{border-color:var(--accent-yellow);color:var(--accent-yellow);background:#f4ff4312}
.quest-level-buttons button:hover{background:var(--elevation-2)}
.quest-level-buttons button:focus-visible{outline:2px solid var(--accent-yellow);outline-offset:3px}

/* Compact region toggles share the scale of the level controls. */
.quest-continent-buttons{gap:6px;margin:16px 0 10px}
.quest-continent-buttons button{gap:6px;min-height:34px;padding:5px 9px;border-radius:6px;font-size:12px;line-height:20px}
.quest-continent-buttons img{width:22px;height:22px}
.quest-continent-buttons small{display:none}
.quest-town-buttons{margin:0 0 28px}
.quest-town-buttons button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 12px}
.quest-town-buttons img{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}

.quest-dropdown-filters{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 18px}.quest-dropdown-filters>.wiki-filter{flex:0 1 180px;min-width:140px}
.quest-filter-hint{margin:-7px 0 18px;color:var(--gray-500);font-size:12px;line-height:1.6}

.npc-filter-options{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:auto;padding-right:10px;scrollbar-width:auto;scrollbar-color:auto}
.npc-filter-options::-webkit-scrollbar{width:8px}
.npc-filter-options::-webkit-scrollbar-track{background:var(--elevation-3);border-radius:8px;margin-block:10px}
.npc-filter-options::-webkit-scrollbar-thumb{background:var(--gray-500);border:2px solid var(--elevation-3);border-radius:8px;min-height:32px}
.npc-filter-options::-webkit-scrollbar-thumb:hover{background:var(--gray-300)}

.quest-random-scroll{display:flex;align-items:center;gap:12px;width:fit-content;max-width:100%;margin:14px 0;color:var(--gray-100);text-decoration:none}
.quest-random-scroll>img{width:42px;height:38px;object-fit:contain;image-rendering:pixelated;flex:none;border-radius:5px}
.quest-random-scroll>span{display:grid;gap:7px}.quest-random-scroll strong{font-size:13px;line-height:1.6;font-weight:500}.quest-random-scroll small{font-size:12px;color:var(--accent-yellow)}
.quest-random-scroll:focus-visible{outline:2px solid var(--accent-yellow);outline-offset:5px}

.quest-continent-buttons + .quest-dropdown-filters{margin-top:28px}

.quest-continent-buttons{align-items:center}
.quest-continent-buttons>.quest-filter-label{font-size:12px;color:var(--gray-400);margin-right:8px}

/* Roomier hover details; keep the viewport limits and pointer crossing behavior. */
.item-source-popover{width:414px;max-height:min(552px,calc(100dvh - 24px))}
.map-route-popover{width:334px;max-height:min(449px,calc(100dvh - 24px));box-sizing:border-box}
.item-source-header h2,.map-route-popover h3{font-size:16px}
.item-source-header p,.item-source-level,.item-source-map-heading,.item-source-maps small,.item-source-best,.item-source-more,.item-source-note,.item-source-footer>a,.map-route-image{font-size:12px}
.item-source-monster-link strong,.item-source-maps li,.item-source-empty{font-size:14px}
.item-source-popover .shop-item-effect p,.item-source-popover .use-item-description{font-size:15px}
.item-source-popover .shop-item-prices,.item-source-popover .shop-item-places h3,.item-source-popover .shop-item-places li{font-size:14px}
.item-source-popover .shop-item-price-note{font-size:12px}
.item-source-popover .use-item-price dt,.item-source-popover .use-item-price dd span{font-size:13px}
.item-source-popover .use-item-price dd{font-size:16px}
.map-route-town,.map-route-path{font-size:14px}

.quest-filter-hint:empty{display:none}

/* Persistent header search and appearance controls. */
.header-inner{gap:16px}
.header-navigation{min-width:0}
.cosmetic-page{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:18px;align-items:start}
.cosmetic-preview,.cosmetic-picker{min-width:0}
.cosmetic-preview{position:relative}
.cosmetic-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr);place-items:safe center;min-height:340px;padding:40px 12px 32px;overflow:auto;background:transparent}
.cosmetic-stage img{display:block;width:auto;height:auto;max-width:none;max-height:none;image-rendering:pixelated;zoom:2}
.cosmetic-stage img[hidden]{display:none}
.cosmetic-stage p{position:absolute;bottom:12px;left:16px;right:16px;margin:0 auto;max-width:260px;color:var(--gray-400);font-size:12px;text-align:center}
.cosmetic-appearance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 18px}
.cosmetic-gender-switch{position:absolute;top:12px;left:12px;z-index:1;display:flex;gap:6px;margin:0}
.cosmetic-gender-switch button{display:grid;place-items:center;width:34px;height:34px;padding:6px;border:1px solid var(--elevation-6);border-radius:7px;background:var(--elevation-2);color:var(--gray-300);cursor:pointer}
.cosmetic-gender-switch button[aria-pressed="true"]{border-color:var(--accent-orange);color:var(--accent-orange);background:var(--elevation-3)}
.cosmetic-skin-picker{min-width:0;margin:0;padding:0;border:0}
.cosmetic-skin-picker legend{margin-bottom:8px;color:var(--gray-300);font-size:12px}
.cosmetic-skin-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.cosmetic-skin-option{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:5px 2px;border:2px solid transparent;border-radius:7px;background:var(--elevation-2);color:var(--gray-400);cursor:pointer}
.cosmetic-skin-option[aria-pressed="true"]{border-color:var(--accent-orange);color:var(--accent-orange)}
.cosmetic-skin-option img{display:block;width:auto;height:68px;max-width:100%;object-fit:contain;image-rendering:pixelated}
.cosmetic-skin-option span{overflow:hidden;max-width:100%;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.cosmetic-size-control{margin-top:18px}
.cosmetic-size-control>div{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:var(--gray-300);font-size:12px}
.cosmetic-size-control output{color:var(--accent-orange);font-variant-numeric:tabular-nums}
.cosmetic-size-control input{display:block;width:100%;margin:0;accent-color:var(--accent-orange);cursor:pointer}
.cosmetic-appearance label,.cosmetic-search-label{display:flex;flex-direction:column;gap:6px;color:var(--gray-400);font-size:12px}
.cosmetic-appearance button{display:flex;flex-direction:column;gap:5px;min-width:0;padding:8px;border:0;border-radius:7px;background:var(--elevation-3);color:var(--gray-400);font-size:12px;text-align:left}
.cosmetic-appearance button strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gray-50);font-size:11px}
.cosmetic-appearance input,.cosmetic-appearance select,.cosmetic-search-label input{min-width:0;width:100%;padding:10px;border:0;border-radius:7px;background:var(--elevation-3);color:var(--gray-50)}
.cosmetic-id-tools{margin:0 0 16px;color:var(--gray-400);font-size:11px}
.cosmetic-id-tools summary{padding:7px 0;cursor:pointer}
.cosmetic-id-tools label{display:inline-flex;flex-direction:column;gap:4px;margin:5px 8px 0 0}
.cosmetic-id-tools input{width:110px;padding:8px;border:0;border-radius:6px;background:var(--elevation-3);color:var(--gray-50)}
.cosmetic-worn h2,.cosmetic-picker h2{margin:0 0 12px;font-size:17px}
.cosmetic-worn button{display:flex;align-items:center;gap:9px;width:100%;margin:5px 0;padding:7px 9px;border:0;border-radius:7px;background:var(--elevation-2);color:var(--gray-200);text-align:left;font-size:12px}
.cosmetic-worn button > span:last-child{margin-left:auto;font-size:14px;line-height:1}
.cosmetic-worn img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated}
.cosmetic-reset{margin:16px 0;padding:9px 12px;border:0;border-radius:7px;background:var(--elevation-3);color:var(--gray-300);font-size:12px}
.cosmetic-categories,.cosmetic-slots{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.cosmetic-categories button,.cosmetic-slots button{padding:8px 10px;border:0;border-radius:7px;background:var(--elevation-2);color:var(--gray-300);font-size:12px}
.cosmetic-categories button[aria-pressed="true"],.cosmetic-slots button[aria-pressed="true"]{background:var(--accent-orange);color:var(--elevation-0)}
.cosmetic-search-row{display:flex;align-items:end;gap:9px}
.cosmetic-search-label{flex:1}
.cosmetic-hair-colors{margin:14px 0 4px;color:var(--gray-400);font-size:12px}
.cosmetic-hair-colors>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.cosmetic-hair-colors button{width:28px;height:28px;padding:0;border:1px solid var(--gray-500);border-radius:3px;cursor:pointer}
.cosmetic-hair-colors button[aria-pressed="true"]{outline:2px solid var(--accent-orange);outline-offset:2px}
.cosmetic-results{margin:12px 0 8px;color:var(--gray-500);font-size:12px}
.cosmetic-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px}
.cosmetic-option{display:flex;align-items:center;gap:8px;min-height:54px;padding:8px;border:0;border-radius:8px;background:var(--elevation-2);color:var(--gray-200);font-size:11px;text-align:left}
.cosmetic-option:hover,.cosmetic-option.selected{background:var(--elevation-3);color:var(--accent-orange)}
.cosmetic-option[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--accent-orange)}
.cosmetic-option img{width:34px;height:34px;flex:none;object-fit:contain;image-rendering:pixelated}
.cosmetic-option img.cosmetic-face-icon{box-sizing:content-box;padding:6px;background:#f3e6d2;border:1px solid #d9c9b2;border-radius:6px}
.cosmetic-hover{position:fixed;z-index:200;width:min(340px,calc(100vw - 16px));max-height:min(520px,calc(100vh - 16px));overflow:auto;pointer-events:none;padding:16px 14px;border:1px solid var(--elevation-7);border-radius:10px;background:var(--elevation-4);box-shadow:0 16px 40px #0008;color:var(--gray-50);font-size:12px}
.cosmetic-hover[hidden]{display:none}
.cosmetic-hover>strong{display:block;margin-bottom:3px;font-size:15px}
.cosmetic-hover-label{display:block;margin-bottom:10px;color:var(--gray-400)}
.cosmetic-hover-town{display:grid;grid-template-columns:70px 34px 1fr;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--elevation-6)}
.cosmetic-hover-town:last-child{padding-bottom:0}
.cosmetic-hover-town-name{color:var(--accent-orange)}
.cosmetic-hover-town img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.cosmetic-hover-town small{display:block;margin-top:2px;color:var(--gray-400);font-size:10px}
@media(max-width:850px){.cosmetic-page{grid-template-columns:1fr}.cosmetic-stage{min-height:290px}}
.header-search{position:relative;display:flex;align-items:center;flex:0 1 230px;min-width:170px;height:42px;margin-left:auto;border-radius:8px;background:var(--elevation-3);color:var(--gray-400)}
.header-search:focus-within{outline:2px solid var(--accent-orange);outline-offset:2px}
.header-search-icon,.header-settings-button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-search-icon{margin-left:12px}
.header-search input{width:100%;min-width:0;height:100%;padding:0 10px;border:0;outline:0;background:transparent;color:var(--gray-50);font-size:12px}
.header-search input::placeholder{color:var(--gray-500)}
.header-search input::-webkit-search-cancel-button{cursor:pointer}
.header-search-preview{position:absolute;top:calc(100% + 8px);right:0;z-index:60;width:min(360px,calc(100vw - 24px));max-height:min(470px,70vh);overflow:auto;border:1px solid var(--elevation-7);border-radius:10px;background:var(--elevation-4);box-shadow:0 16px 40px #0005;color:var(--gray-50)}
.header-search-preview[hidden],.header-settings-panel[hidden]{display:none}
.header-search-list{padding:6px}
.header-search-list>a{display:flex;align-items:center;gap:10px;min-height:52px;padding:7px 9px;border-radius:7px;color:var(--gray-50);text-decoration:none}
.header-search-list>a:hover,.header-search-list>a:focus-visible{background:var(--elevation-6);outline:0}
.header-search-list .wiki-image,.header-search-list [role="img"]{width:32px;height:32px;flex:none;object-fit:contain;image-rendering:pixelated}
.header-search-list span:not([role="img"]){display:flex;flex-direction:column;min-width:0;gap:2px}
.header-search-list strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-search-list small{color:var(--gray-500);font-size:10px}
.header-search-list p{margin:12px;color:var(--gray-500);font-size:12px}
.header-search-all{display:block;padding:12px 15px;border-top:1px solid var(--elevation-7);color:var(--accent-orange);font-size:11px;text-decoration:none}
.header-search-all:hover{text-decoration:underline}
.header-settings{position:relative;flex:none}
.header-settings-button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:8px;background:var(--elevation-3);color:var(--gray-300);cursor:pointer}
.header-settings-button:hover,.header-settings-button[aria-expanded="true"]{background:var(--elevation-5);color:var(--gray-50)}
.header-settings-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:61;width:220px;padding:14px;border:1px solid var(--elevation-7);border-radius:10px;background:var(--elevation-4);box-shadow:0 16px 40px #0005}
.header-settings-panel fieldset{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0;padding:0;border:0}
.header-settings-panel fieldset[hidden]{display:none}
.header-settings-panel fieldset+fieldset{margin-top:16px}
.header-settings-panel legend{margin-bottom:8px;color:var(--gray-400);font-size:11px}
.header-settings-panel button{min-height:36px;padding:6px;border:0;border-radius:6px;background:var(--elevation-2);color:var(--gray-300);font-size:11px;cursor:pointer}
.header-settings-panel button:hover{background:var(--elevation-6)}
.header-settings-panel button[aria-pressed="true"]{background:var(--level-tag-background);color:var(--accent-yellow);font-weight:700}
@media(max-width:1100px){.header-inner{gap:10px}.header-search{flex-basis:190px;min-width:145px}}
@media(max-width:1780px){.header-search{order:1;flex:1;max-width:320px;margin-left:auto}.header-settings{order:2}.header-navigation{order:3}}
@media(max-width:620px){.header-settings{order:1;margin-left:auto}.header-search{order:2;flex:1 0 100%;max-width:none;margin-left:0}.header-navigation{order:3}.header-search-preview{left:0;right:auto;width:100%}}

/* The featured quest keeps its own contrast in the light palette. */
:root[data-theme="light"] .quest-focus{background:#854b17;color:#fff}
:root[data-theme="light"] .quest-focus .focus-label,
:root[data-theme="light"] .quest-focus p,
:root[data-theme="light"] .quest-focus .focus-locations{color:#fff0d9}
:root[data-theme="light"] .quest-focus .light-button{color:#fff}
:root[data-theme="light"] .npc-exp-label{background-image:linear-gradient(to bottom,#d8731d 0%,#a3540d 48%,#733706 100%)}
:root[data-theme="light"] .tag,:root[data-theme="light"] .wiki-card-tag{background:rgba(163,84,13,.12)}
:root[data-theme="light"] .quest-continent-buttons button:not([aria-pressed="true"]),
:root[data-theme="light"] .quest-level-buttons button:not([aria-pressed="true"]){border-color:var(--gray-700)}
:root[data-theme="light"] .quest-continent-buttons button[aria-pressed="true"],
:root[data-theme="light"] .npc-filter-options button[aria-pressed="true"],
:root[data-theme="light"] .quest-level-buttons button[aria-pressed="true"]{background:rgba(163,84,13,.09)}
:root[data-theme="light"] .wiki-pagination--numbered .page-current{color:#fff}
.item-source-popover .craft-source h3{margin:0 0 12px;font-size:14px;line-height:1.5}
.craft-materials{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 24px;font-size:13px;line-height:1.6}
.craft-material{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.craft-material .guide-inline-image{margin:0;flex-shrink:0}
.craft-material-separator{color:var(--gray-400)}
.item-source-popover .craft-source p{margin:0 0 12px;font-size:13px;line-height:1.6}
.item-source-popover .craft-source .table-wrap{margin:0}
.item-source-popover .craft-source th{font-size:11px;padding:8px 12px}
.item-source-popover .craft-source td{font-size:13px;line-height:1.5;padding:12px}
.craft-npc-place{color:var(--gray-400);white-space:nowrap}

/* Source metadata belongs in the maintained data, not the reading interface. */
.source-link,.source-panel,.asset-credit,.wiki-reference-note{display:none!important}

/* Color swatches use stylesheet rules so the page CSP permits them. */
.cosmetic-hair-colors button[data-cosmetic-hair-color="0"]{background-color:#292929}
.cosmetic-hair-colors button[data-cosmetic-hair-color="1"]{background-color:#b43e3c}
.cosmetic-hair-colors button[data-cosmetic-hair-color="2"]{background-color:#cb773b}
.cosmetic-hair-colors button[data-cosmetic-hair-color="3"]{background-color:#d1b746}
.cosmetic-hair-colors button[data-cosmetic-hair-color="4"]{background-color:#588b52}
.cosmetic-hair-colors button[data-cosmetic-hair-color="5"]{background-color:#497ab7}
.cosmetic-hair-colors button[data-cosmetic-hair-color="6"]{background-color:#8862a3}
.cosmetic-hair-colors button[data-cosmetic-hair-color="7"]{background-color:#795441}

.cosmetic-options--icons{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:6px}
.cosmetic-options--icons .cosmetic-option{justify-content:center;min-height:60px;padding:8px;aspect-ratio:1}
.cosmetic-options--icons .cosmetic-option img{width:40px;height:40px}
.cosmetic-lens-picker{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.cosmetic-lens-picker .cosmetic-lens-option{display:grid;place-items:center;width:38px;height:38px;min-height:0;padding:3px;aspect-ratio:1;border:1px solid var(--elevation-6);border-radius:6px}
.cosmetic-lens-option img{width:28px;height:28px}
.cosmetic-hover-item{display:flex;align-items:center;gap:12px;margin-top:10px;color:var(--gray-400)}
.cosmetic-hover-item img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated}

.cosmetic-preview > .cosmetic-reset{position:absolute;top:12px;right:12px;z-index:1;margin:0;font-size:12px;padding:8px 12px}

.cosmetic-picker-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.cosmetic-picker-heading h2{margin:0;white-space:nowrap}
.cosmetic-picker-filters{display:flex;flex:0 1 380px;align-items:center;gap:8px;min-width:min(100%,280px);margin-left:auto}
.cosmetic-picker-heading .cosmetic-search{display:flex;flex:1 1 170px;align-items:center;min-width:0;border-radius:7px;background:var(--elevation-3);color:var(--gray-500)}
.cosmetic-picker-heading .cosmetic-search:focus-within{outline:2px solid var(--accent-orange);outline-offset:2px}
.cosmetic-search svg{width:16px;height:16px;flex:none;margin-left:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cosmetic-picker-heading input{min-width:0;width:100%;padding:10px 12px 10px 8px;border:0;outline:0;background:transparent;color:var(--gray-50);font:inherit;font-size:13px}
.header-search input[type=search],.cosmetic-picker-heading .cosmetic-search input[type=search]{background:transparent!important}
.cosmetic-job-select{position:relative;display:block;flex:0 0 122px;min-width:0;color:var(--gray-500)}
.cosmetic-job-select svg{position:absolute;top:50%;right:13px;width:12px;height:8px;transform:translateY(-50%);fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.cosmetic-picker-heading select{display:block;width:100%;min-width:0;padding:10px 32px 10px 10px;appearance:none;-webkit-appearance:none;border:0;border-radius:7px;background:var(--elevation-3);color:var(--gray-50);font:inherit;font-size:13px;cursor:pointer}
.cosmetic-picker-heading select:focus-visible{outline:2px solid var(--accent-orange);outline-offset:2px}

.cosmetic-gender-pixel{display:block;flex:none;width:24px;height:24px;image-rendering:pixelated}
.cosmetic-gender-switch button{padding:4px}

.cosmetic-page{grid-template-columns:minmax(260px,320px) minmax(0,1fr) minmax(280px,340px)}
.cosmetic-equipment{min-width:0}
.cosmetic-equipment .cosmetic-worn{margin-top:0}
@media(max-width:1100px){.cosmetic-page{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}.cosmetic-equipment{grid-column:2}}
@media(max-width:850px){.cosmetic-page{grid-template-columns:1fr}.cosmetic-equipment{grid-column:auto}}

.cosmetic-equipment{padding:22px}
.cosmetic-worn button{display:grid;grid-template-columns:32px minmax(0,1fr) 20px;gap:12px;padding:12px}
.cosmetic-worn button span:not(:last-child){min-width:0;overflow-wrap:anywhere;word-break:keep-all;line-height:1.5}
.cosmetic-worn button span:last-child{margin:0;justify-self:center}
@media(min-width:851px) and (max-width:1250px){.cosmetic-page{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}.cosmetic-equipment{grid-column:2}}

.cosmetic-page-heading{padding-top:24px;margin-bottom:40px}
.cosmetic-page-heading p{margin-top:16px}
@media(max-width:760px){.cosmetic-page-heading{padding-top:16px;margin-bottom:28px}}

/* Let the wardrobe use the viewport rather than squeezing the picker. */
main:has(.cosmetic-page){max-width:none;width:100%;padding-left:200px;padding-right:200px}
@media(min-width:1801px){.cosmetic-page{grid-template-columns:340px minmax(440px,1fr) 340px}}
@media(min-width:851px) and (max-width:1800px){.cosmetic-page{grid-template-columns:340px minmax(0,1fr)}.cosmetic-equipment{grid-column:2}}
@media(max-width:760px){main:has(.cosmetic-page){padding-left:19px;padding-right:19px}}


.cosmetic-item-price{display:block;margin-top:4px;color:var(--gray-400);font-size:11px;line-height:1.4}

.cosmetic-equipment-total{display:flex;flex-direction:column;gap:7px;margin-top:20px;padding-top:18px;border-top:1px solid var(--elevation-6)}
.cosmetic-equipment-total>span{font-size:12px;color:var(--gray-300)}
.cosmetic-equipment-total strong{font-size:16px;color:var(--accent-orange);overflow-wrap:anywhere}
.cosmetic-equipment-total small{font-size:11px;line-height:1.5;color:var(--gray-400)}

@media(min-width:851px){
 .cosmetic-preview,.cosmetic-equipment{position:sticky;top:var(--cosmetic-sticky-top,100px);align-self:start;max-height:calc(100dvh - var(--cosmetic-sticky-top,100px) - 16px);overflow-y:auto}
}

@media(min-width:761px) and (max-width:1200px){main:has(.cosmetic-page){padding-left:40px;padding-right:40px}}

.cosmetic-cart-beauty{display:grid;grid-template-columns:32px minmax(0,1fr) 20px;align-items:center;gap:12px;margin:5px 0;padding:12px;border-radius:7px;background:var(--elevation-2);font-size:12px}
.cosmetic-cart-beauty>div{min-width:0;line-height:1.5}
.cosmetic-cart-beauty small{display:block;color:var(--gray-400)}
.cosmetic-worn .cosmetic-cart-beauty>button{display:block;width:20px;margin:0;padding:0;background:transparent;font-size:14px;text-align:center}

/* Compact quest detail cards. */
.quest-page .panel{padding:18px}
.quest-page .panel h2{font-size:16px;line-height:1.4;margin:0 0 12px}
.quest-page .entry-hero{padding:18px;gap:18px}
.quest-page .entry-title h1{font-size:28px;line-height:1.3;margin:10px 0}
.quest-page .quest-sequence{padding:16px 18px;min-height:160px}
.quest-page .quest-sequence h2{font-size:16px}

.quest-summary-reward .npc-materials{justify-content:center}
.quest-summary-reward .npc-reward-rule{text-align:center}
.quest-summary-progress>.panel>h2,.quest-summary-reward>.panel>h2{font-size:16px;line-height:1.4}

.quest-item-acquisition{min-width:0}.quest-item-acquisition .item-source-monster{padding:12px 0}.quest-source-more summary{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;list-style:none;padding:12px;font-size:13px;color:var(--gray-300)}.quest-source-more summary::-webkit-details-marker{display:none}.quest-source-more .collapse-label,.quest-source-more[open] .expand-label{display:none}.quest-source-more[open] .collapse-label{display:inline}.quest-source-more[open] summary svg{transform:rotate(180deg)}

.quest-source-more[open]>summary{display:none}.quest-source-collapse{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:12px;border:0;background:transparent;color:var(--gray-300);font:inherit;font-size:13px;cursor:pointer}

.quest-progress-completion{margin-top:16px}.quest-summary-progress h3{font-size:14px;margin:16px 0 10px}
/* Center the steps against the card itself; the heading does not offset them. */
.quest-page .quest-sequence,.quest-page .quest-sequence.is-long{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:24px}
.quest-page .quest-sequence h2{position:absolute;top:24px;left:24px;margin:0}
.quest-page .quest-sequence-list{max-width:769px;margin:32px 0;box-sizing:border-box}

.quest-page .quest-sequence,.quest-page .quest-sequence.is-long,.quest-summary-progress>.panel,.quest-summary-reward>.panel{padding:24px}

.quest-summary-progress>.panel+.panel{margin-top:20px;min-height:0}
@media(min-width:901px){.quest-summary-reward{position:sticky;top:100px;align-self:start;max-height:calc(100dvh - 116px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--gray-500) transparent}}
.quest-delivery-recipient a[data-map-route]{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:currentColor;text-decoration-thickness:1px;text-underline-offset:4px}
#main a[data-map-route],#npc-item-source a[data-map-route],#npc-map-route a[data-map-route]{color:inherit;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:var(--gray-600);text-decoration-thickness:1px;text-underline-offset:4px;cursor:help}
.quest-summary-progress .quest-progress-quantity{color:var(--gray-50)}

.quest-followups{margin:40px 0 24px}.quest-followups>h2{font-size:16px;line-height:1.4;margin:0 0 18px}.quest-followups .npc-quest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.quest-followups .npc-quest-card{padding:24px}
@media(max-width:760px){.quest-followups .npc-quest-grid{grid-template-columns:minmax(0,1fr)}}
@property --reward-border-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
.quest-summary-reward>.panel,.monster-list-card:has(>.hunting-medal){position:relative;isolation:isolate}
.quest-summary-reward>.panel:has(.quest-reward-tiles){min-height:0}
.quest-summary-reward>.panel::before,.monster-list-card:has(>.hunting-medal)::before{content:"";position:absolute;inset:0;padding:1px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--reward-border-angle),#d9ad481c 0deg,#d9ad481c 265deg,#ebc86d80 315deg,#ffe8a5cc 340deg,#d9ad481c 360deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;animation:reward-border-orbit 4.5s linear infinite}
.quest-summary-reward>.panel,.monster-list-card:has(>.hunting-medal){box-shadow:0 0 8px #dfb5540a}
@keyframes reward-border-orbit{to{--reward-border-angle:360deg}}
@media(prefers-reduced-motion:reduce){.quest-summary-reward>.panel::before,.monster-list-card:has(>.hunting-medal)::before{animation:none;--reward-border-angle:35deg}}

.quest-summary-progress .quest-progress-item{display:inline-flex;align-items:center;gap:8px;min-height:42px}.quest-summary-progress .quest-progress-item .guide-inline-image{margin:0;flex-shrink:0}.quest-summary-progress .quest-progress-quantity{display:inline-flex;align-items:center;justify-content:center;min-height:42px;line-height:1.4}

/* Keep quest progress on one surface, without nested row/card fills. */
.quest-summary-progress td,
.quest-summary-progress tr:nth-child(even)>td,
.quest-summary-progress .item-source-monster,
.quest-summary-progress .item-source-maps li{background:transparent}

/* Separate requirement rows without restoring their backgrounds. */
.quest-summary-progress tbody>tr+tr>td{border-top:1px solid color-mix(in srgb,var(--gray-800) 60%,var(--gray-900))}
.quest-item-acquisition>.item-source-monster+.item-source-monster{border-top:1px solid color-mix(in srgb,var(--gray-800) 60%,var(--gray-900));border-radius:0;margin-top:12px;padding-top:24px}

.quest-source-more{margin:0;padding:0;border:0}
.quest-source-more>.item-source-maps{margin-top:4px}

.quest-companion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:0}
.quest-companion-more>summary{cursor:pointer;font-size:13px;padding-top:16px;color:var(--gray-300)}
@media(max-width:760px){.quest-companion-grid{grid-template-columns:minmax(0,1fr)}}

/* Expanded map names must not renegotiate the objective table's columns. */
.quest-summary-progress table:has(>thead>tr>th:nth-child(3)){table-layout:fixed;width:100%}
.quest-summary-progress table:has(>thead>tr>th:nth-child(3))>thead>tr>th:nth-child(1){width:35%}
.quest-summary-progress table:has(>thead>tr>th:nth-child(3))>thead>tr>th:nth-child(2){width:12%}
.quest-summary-progress table:has(>thead>tr>th:nth-child(3))>thead>tr>th:nth-child(3){width:53%}
.quest-summary-progress td{overflow-wrap:anywhere;vertical-align:top}
.quest-summary-progress td .quest-object-guide{margin:0 0 20px;padding:12px 0;background:transparent;border-radius:0}
.quest-summary-progress .quest-progress-item{max-width:100%}
.quest-summary-progress .quest-progress-item>a{min-width:0;overflow-wrap:anywhere}

.craft-source td{vertical-align:middle}
.craft-npc-identity{display:flex;align-items:center;gap:8px}
.craft-npc-identity>.guide-inline-image{margin:0;flex-shrink:0}

.craft-npc-place a[data-map-route]{color:inherit;text-decoration-line:underline;text-decoration-style:dashed;text-decoration-color:var(--gray-600);text-decoration-thickness:1px;text-underline-offset:4px}
.craft-npc-place a[data-map-route]:hover{color:var(--accent-orange)}

.quest-reward-review{display:inline-block;font-size:12px;font-weight:400;line-height:1.5;color:var(--gray-400);white-space:nowrap}

.item-source-map-location{flex-basis:100%;color:var(--gray-500);font-size:12px;line-height:1.5;overflow-wrap:anywhere}

.quest-page .entry-title h1{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.quest-page .quest-title-level{font-size:14px;line-height:20px;padding:4px 8px}

/* Monster catalog cards. Data-driven sprites retain their aspect ratio. */
.wiki-card-grid.monster-list-grid{grid-template-columns:repeat(auto-fill,160px);gap:17px 16px}
.wiki-card.monster-list-card{position:relative;display:flex;flex-direction:column;align-items:center;width:160px;min-height:235px;padding:52px 8px 18px;border-radius:8px;text-align:center;gap:0}
.monster-list-card .monster-list-level{position:absolute;left:8px;top:8px;font-size:12px;line-height:16px;padding:4px 8px}
.monster-list-sprite{display:flex;align-items:center;justify-content:center;width:86px;height:84px;flex-shrink:0}
.monster-list-sprite .wiki-image{width:100%;height:100%;max-width:86px;max-height:84px;object-fit:contain;image-rendering:pixelated}
.monster-list-card h3{font-size:18px;line-height:24px;font-weight:700;color:var(--gray-50);margin:30px 0 4px;word-break:keep-all;overflow-wrap:break-word;text-wrap:balance;width:100%}
.monster-list-card .monster-list-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:0 4px;font-size:13px;line-height:18px;font-weight:400;margin:0;color:var(--gray-500)}
.monster-list-hp{color:#ff7575}.monster-list-exp{color:var(--accent-yellow)}
.monster-list-stats>span{white-space:nowrap}
@media(max-width:390px){.wiki-card-grid.monster-list-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.wiki-card.monster-list-card{width:100%}}

.monster-list-card h3.monster-name--compact{font-size:16px}
.monster-list-card h3.monster-name--long{font-size:14px}
.monster-list-card .monster-list-stats{width:100%;flex-wrap:nowrap}
.monster-list-stats .monster-list-separator{flex:0 0 8px}
.monster-list-card .monster-list-stats--stacked{flex-direction:column;align-items:center}
.monster-list-stats--stacked .monster-list-separator{display:none}

.wiki-search-field{display:flex;align-items:center;flex:1;min-width:0;gap:0;background:var(--elevation-3);border-radius:8px;color:var(--gray-400)}
.wiki-search .wiki-search-field input{background:transparent;border:0;outline:0;min-width:0;flex:1;min-height:48px;padding:13px 16px;font-size:14px}
.wiki-search-field:focus-within{outline:2px solid var(--accent-orange);outline-offset:2px}
.wiki-search .wiki-search-field input:focus{outline:none;box-shadow:none;border:0}

/* Reviewed hunting recommendations: distinct from maximum spawn-count medals. */
.hunting-medal{display:inline-flex;vertical-align:middle;margin-left:5px;flex:none;line-height:1;cursor:help}
.hunting-medal img{width:18px!important;height:18px!important;object-fit:contain;image-rendering:pixelated}
.monster-list-card .monster-affinity-summary,.monster-list-card .monster-affinity-jobs{font-size:12px;line-height:18px;white-space:normal;overflow-wrap:anywhere;margin:8px 0 0;color:var(--gray-300,#aaa);width:100%}
.monster-list-card .monster-affinity-jobs{margin-top:4px;color:var(--accent-yellow)}
.monster-affinity-detail{line-height:1.7}

.monster-list-card > .hunting-medal{position:absolute;top:12px;right:12px;margin:0}

.monster-list-filters .wiki-filter{flex:0 1 160px;min-width:120px}
.monster-list-filters .wiki-level{flex-basis:110px;min-width:90px}
.monster-list-filters .wiki-filter input:not([type=hidden]),.monster-list-filters .npc-custom-filter summary,.monster-list-filters>.quiet-button{box-sizing:border-box;height:48px;min-height:48px;padding:12px 14px;font-size:14px;line-height:24px}
.monster-list-filters .wiki-level input{width:100%}

.quest-companion-objective{margin-top:16px}
.quest-companion-targets{display:flex;flex-wrap:wrap;gap:16px;list-style:none;padding:0;margin:8px 0 0}
.quest-companion-targets li{width:88px;min-width:0}
.quest-companion-targets a{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12px;line-height:18px;overflow-wrap:anywhere}
.quest-companion-target-image{height:64px;width:72px;display:flex;align-items:center;justify-content:center}
.quest-companion-target-image .wiki-image{max-width:64px;max-height:64px;object-fit:contain}

.quest-summary-progress>.panel>h2:has(+.quest-progress-content){margin-bottom:28px}
.quest-progress-content{display:flex;flex-direction:column;gap:28px;min-width:0}
.quest-progress-content>*{margin-top:0;margin-bottom:0}
.quest-progress-content>.quest-condition-npcs,.quest-progress-content>.quest-quiz-guide{margin:0}
.quest-progress-content>.quest-progress-note{line-height:1.7}
.quest-condition-npcs{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}
.quest-condition-npc{display:flex;align-items:center;gap:16px;flex:1 1 240px;min-width:0;padding:20px;background:var(--elevation-2);border-radius:12px}
.quest-condition-npc>.wiki-image{width:64px;height:80px;max-height:80px;object-fit:contain;flex-shrink:0}
.quest-condition-npc p{margin:4px 0}
.quest-condition-stage{font-size:12px;color:var(--gray-400)}
.quest-condition-location a{color:var(--gray-300);text-decoration:underline dotted;text-underline-offset:4px}

.quest-quiz-guide{margin:20px 0;padding:24px;background:var(--elevation-2);border-radius:12px}.quest-quiz-guide ol{padding-left:24px;margin:16px 0}.quest-quiz-guide li{padding:6px 0;line-height:1.7}.quest-quiz-guide h3{display:flex;align-items:center;gap:8px;margin:0;color:var(--accent-yellow);font-size:16px}.quest-quiz-guide h3 .quest-prerequisite-icon{margin:0}.quest-quiz-guide>:last-child{margin-bottom:0}

.wiki-panel h2:has(.quest-job-notice){display:flex;align-items:center;flex-wrap:wrap;gap:12px}.quest-job-notice{display:inline-flex}.quest-job-notice svg{flex-shrink:0}

/* Map-only kill objectives align with the monster and quantity row. */
.quest-item-acquisition>.item-source-monster:has(>.item-source-maps:first-child){padding-top:0}
.quest-item-acquisition>.item-source-monster>.item-source-maps:first-child{margin-top:0}
.quest-summary-progress .quest-item-acquisition>.item-source-monster>.item-source-maps:first-child>li:first-child{min-height:0;padding-top:0;align-items:flex-start;line-height:1.65}

/* Preserve the original title/portrait layout; tighten notice-free cards by only 4px. */
.npc-quest-top:not(:has(.quest-prerequisites,.npc-quest-giver))+.npc-quest-body{margin-top:-4px}

.quest-guide-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:20px 0}.quest-guide-images figure{margin:0;min-width:0}.quest-guide-images img{display:block;width:100%;height:auto;border-radius:8px}.quest-guide-images figcaption{margin-top:8px;font-size:12px;line-height:1.6;color:var(--gray-400)}

.map-route-image .npc-map-canvas{width:100%;height:160px;max-width:100%;border-radius:4px}

.guidance-item-link{font:inherit;padding:0;border:0;background:none;cursor:pointer;text-decoration:underline}

.quest-acquisition-target{margin:0 0 16px}.quest-acquisition-target img{display:block;max-width:min(100%,360px);max-height:220px;width:auto;height:auto;object-fit:contain;border-radius:6px}.quest-acquisition-target figcaption{margin-top:10px;font-size:13px;color:var(--gray-200);line-height:1.6}

/* Shared catalog section rhythm: region, search, filters, then results. */
#main{--catalog-section-gap:32px;--catalog-region-gap:16px}
#main>.quest-continent-buttons{margin-top:28px;margin-bottom:var(--catalog-section-gap);row-gap:10px}
#main>.quest-continent-buttons:has(+.quest-town-buttons){margin-bottom:var(--catalog-region-gap)}
#main>.quest-town-buttons{margin-top:0;margin-bottom:var(--catalog-section-gap);row-gap:10px}
#main>.wiki-search{margin-top:0;margin-bottom:var(--catalog-section-gap)}
#main>.wiki-filters,#main>.quest-dropdown-filters{margin-top:0;margin-bottom:var(--catalog-section-gap);row-gap:20px}
#main>.wiki-result-heading{margin-top:0;margin-bottom:20px}
#main>.quest-filter-hint:empty{display:none}
@media(max-width:760px){
 #main{--catalog-section-gap:24px;--catalog-region-gap:14px}
 #main>.quest-continent-buttons{margin-top:24px}
 #main>.wiki-result-heading{margin-bottom:16px}
}

/* Monster detail: one responsive card per stat. */
.monster-stats-section{min-width:0}
.monster-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}
.monster-stat-card{text-align:center;min-width:0;min-height:136px;padding:24px;background:var(--elevation-1);border-radius:16px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.monster-stat-card dt{color:var(--gray-400);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.monster-stat-card dd{margin:0;font-size:24px;line-height:1.3;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.monster-stat-card[data-stat="stats.maxHP"]{--monster-stat-color:#ff7373}
.monster-stat-card[data-stat="stats.exp"]{--monster-stat-color:var(--accent-yellow)}
.monster-stat-card[data-stat="stats.PDDamage"],.monster-stat-card[data-stat="stats.MDDamage"]{--monster-stat-color:#75b7ff}
.monster-stat-card[data-stat="stats.maxHP"] dt,.monster-stat-card[data-stat="stats.exp"] dt,.monster-stat-card[data-stat="stats.PDDamage"] dt,.monster-stat-card[data-stat="stats.MDDamage"] dt,.monster-stat-card dd{color:var(--monster-stat-color,inherit)}
@media(max-width:900px){.monster-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.monster-stat-grid{gap:12px}.monster-stat-card{min-height:112px;padding:18px}.monster-stat-card dd{font-size:21px}}

.wiki-entry-page .detail-layout:has(.monster-stats-section){grid-template-columns:minmax(0,1fr)}

.monster-affinity-detail{display:flex;flex-wrap:wrap;gap:12px}
.monster-affinity-badge{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;background:var(--elevation-2);border-radius:12px;line-height:1.5}
.monster-affinity-badge img{flex-shrink:0;width:32px;height:32px;object-fit:contain;image-rendering:pixelated}

.monster-stat-card--affinity dd{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px}
.monster-stat-affinity{display:inline-flex;flex-direction:row;align-items:center;gap:12px}
.monster-stat-affinity img{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}
.monster-stat-card--affinity small{font-size:20px;line-height:1.5;font-weight:600}

.monster-affinity-job-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.monster-affinity-job-grid>.panel{margin:0;min-width:0;border-radius:16px}
.monster-affinity-job-list{list-style:none;padding:0;margin:0;display:grid;gap:18px}
.monster-affinity-job-list li{display:flex;flex-direction:column;gap:6px}
.monster-affinity-job-list small{font-size:13px;line-height:1.5;color:var(--gray-400)}
@media(max-width:600px){.monster-affinity-job-grid{grid-template-columns:1fr}}

.monster-affinity-job-grid .affinity-job-caption{margin:8px 0 24px;font-size:13px;line-height:1.7;color:var(--gray-400)}
.monster-affinity-job-grid h2{margin-bottom:0}
.monster-affinity-job-list li{flex-direction:column;align-items:center;gap:12px;text-align:center}
.monster-affinity-job-list li>div{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.affinity-job-portraits{display:flex;flex-shrink:0;align-items:center;justify-content:center}
.affinity-job-portraits img{width:112px;height:96px;object-fit:contain;border-radius:8px;background:transparent}
@media(max-width:480px){.affinity-job-portraits img{width:72px;height:64px}}

.monster-affinity-job-list li{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:20px;text-align:left}
.monster-affinity-job-list li>div{align-items:flex-start;gap:12px}
.monster-affinity-job-list strong{font-size:18px;line-height:1.5}
.affinity-job-portraits img{width:130px;height:140px}
.affinity-job-skills{display:flex;flex-wrap:wrap;gap:12px}
.affinity-job-skill{display:flex;align-items:center;gap:10px;font-size:14px}
.affinity-job-skill .affinity-skill-icon{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
.affinity-job-skill>span{display:flex;flex-direction:column;gap:3px}
@media(max-width:480px){.monster-affinity-job-list li{grid-template-columns:90px minmax(0,1fr);gap:14px}.affinity-job-portraits img{width:90px;height:108px}}

/* Connected, hoverable descriptions for monster nature and weaknesses. */
.monster-affinity-help{position:relative;display:inline-flex}
button.monster-stat-affinity{border:0;background:transparent;color:inherit;font:inherit;padding:4px;cursor:help;border-radius:8px}
button.monster-stat-affinity:focus-visible{outline:2px solid var(--accent,#e4ee41);outline-offset:3px}
.monster-affinity-tooltip{position:absolute;z-index:40;top:100%;left:50%;transform:translateX(-50%);width:320px;max-width:70vw;padding:16px;background:var(--elevation-3);color:var(--gray-100);border:1px solid var(--elevation-7);border-radius:12px;box-shadow:0 8px 24px #0006;font-size:15px;font-weight:400;line-height:1.65;text-align:left;visibility:hidden;opacity:0;transition:opacity .12s}
.monster-affinity-help:not([data-dismissed]):hover>.monster-affinity-tooltip,.monster-affinity-help:not([data-dismissed]):focus-within>.monster-affinity-tooltip{visibility:visible;opacity:1}

.hunting-medal-tooltip{position:fixed;transform:none;max-width:calc(100vw - 24px);box-sizing:border-box;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.hunting-medal-tooltip strong{font-size:15px;color:var(--accent-yellow)}
.hunting-medal-tooltip span{font-size:14px;line-height:1.6}
.hunting-medal:focus-visible{outline:2px solid #e4ee41;outline-offset:4px;border-radius:3px}
.monster-list-card:has(.hunting-medal:hover),.monster-list-card:has(.hunting-medal:focus){z-index:50}

/* Fit every affinity on one line, shrinking with the card's available width. */

.monster-header-towns{margin-left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;max-width:40%;flex-shrink:0}
.monster-header-town{display:inline-flex;padding:6px}
.monster-header-town img{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}
@media(max-width:600px){.entry-hero:has(.monster-header-towns){flex-wrap:wrap}.monster-header-towns{max-width:100%;gap:8px}.monster-header-town img{width:32px;height:32px}}

.monster-hit-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px;margin:0 0 24px;border-radius:16px;background:var(--level-tag-background);color:var(--gray-300);font-size:16px;line-height:1.5}
.monster-hit-banner strong{color:var(--accent-yellow)}
.monster-hit-banner>span:last-child{font-size:24px;flex:none}
@media(max-width:600px){.monster-hit-banner{padding:18px 20px;font-size:14px}}

button.monster-hit-banner{width:100%;border:0;text-align:left;cursor:pointer;font-family:inherit}
.monster-hit-banner small{display:block;margin-top:4px;color:var(--gray-400);font-size:13px}
.monster-hit-banner:focus-visible{outline:2px solid #e4ee41;outline-offset:4px}
.character-preview-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;box-sizing:border-box;padding:28px;border:0;background:var(--elevation-1);color:var(--gray-100);overflow:auto}
.character-preview-drawer::backdrop{background:#0008}
.character-preview-drawer header{display:flex;justify-content:space-between;gap:16px;margin-bottom:28px}
.character-preview-drawer h2{font-size:22px;margin:0 0 8px}
.character-preview-drawer header p{color:var(--gray-500);margin:0;font-size:14px}
.character-preview-drawer header button{align-self:flex-start;border:0;background:var(--elevation-3);color:var(--gray-100);border-radius:8px;padding:4px 12px;font-size:26px;cursor:pointer}
.character-preview-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 14px}
.character-preview-fields label{display:flex;flex-direction:column;gap:8px;font-size:14px;min-width:0}
.character-preview-fields .wide{grid-column:1/-1}
.character-preview-fields input,.character-preview-fields select{width:100%;box-sizing:border-box;min-width:0;background:var(--elevation-3);color:var(--gray-100);border:1px solid var(--elevation-7);border-radius:8px;padding:12px;font:inherit}
.character-preview-hint{font-size:13px;color:var(--gray-500);line-height:1.7;margin:20px 0}
.character-preview-result{padding:20px;background:var(--level-tag-background);color:var(--accent-yellow);border-radius:12px;font-size:20px;font-weight:600}
.character-preview-drawer footer{display:flex;flex-direction:column;gap:14px;margin-top:24px}
.character-preview-drawer footer small,.character-preview-status{font-size:13px;color:var(--gray-400);line-height:1.6}

.monster-header-town{position:relative;cursor:help}
.monster-town-tooltip{position:absolute;top:100%;right:0;z-index:50;white-space:nowrap;padding:8px 12px;border-radius:8px;background:var(--elevation-3);color:var(--gray-50);font-size:14px;line-height:1.5;box-shadow:0 4px 16px #0005;visibility:hidden;opacity:0;pointer-events:none}
.monster-header-town:hover .monster-town-tooltip,.monster-header-town:focus .monster-town-tooltip{visibility:visible;opacity:1}
.monster-header-town:focus-visible{outline:2px solid #e4ee41;border-radius:8px}

.hunting-medal-tooltip[popover]{margin:0;bottom:auto;right:auto;border:1px solid var(--elevation-7)}
.hunting-medal-tooltip:popover-open{visibility:visible;opacity:1}
.hunting-medal-tooltip span{word-break:keep-all;overflow-wrap:break-word}

.character-preview-drawer{width:min(500px,100vw)}
.character-preview-drawer section{margin-bottom:26px}
.character-preview-drawer section h3{font-size:16px;margin:0 0 14px}
.character-preview-drawer details summary{cursor:pointer;margin-bottom:18px}
.character-preview-fields label[hidden]{display:none}
.character-preview-fields .character-reset{flex-direction:row;align-items:center}
.character-reset input{width:18px;height:18px}
.character-monster-summary{font-size:13px;line-height:1.8;color:var(--gray-400);margin:22px 0;padding:16px;border-radius:12px;background:var(--elevation-2)}
.character-preview-result small{display:block;font-size:13px;line-height:1.7;color:var(--gray-300);margin-top:8px}

.monster-drops-section>h2,.party-walkthrough-section>h2{font-size:20px;margin:0 0 20px}
.monster-drop-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.monster-drop-card{background:var(--elevation-1,#202020);border-radius:16px;padding:24px 16px;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.monster-drop-item{display:flex;flex-direction:column;align-items:center;gap:16px;color:var(--gray-50,#eee);text-decoration:none;width:100%;flex:1}
.monster-drop-item .monster-drop-icon{width:48px;height:48px;max-width:48px;max-height:48px;object-fit:contain;image-rendering:pixelated}
.monster-drop-item strong{font-size:15px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.monster-drop-card .wiki-drop-rate{margin:14px 0 0;padding:0;font-size:15px;font-weight:600;color:var(--gray-500);white-space:nowrap}
.monster-drop-card .wiki-drop-rate.is-rare{color:var(--accent-yellow)}
.monster-drop-card .wiki-drop-rate a{color:inherit;text-decoration:none}
.monster-drop-card a:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){.monster-drop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.monster-drop-card{padding:20px 12px}}

/* User-selected valuable drops; medal retains precedence over the star. */
.featured-drop-star{position:absolute;top:12px;right:12px;display:inline-flex;filter:drop-shadow(0 1px 1px #130b1b80)}
.featured-drop-item{position:relative;isolation:isolate;border-radius:16px;box-shadow:0 0 6px #54247914}
.featured-drop-item::after{content:"";position:absolute;inset:0;padding:2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--reward-border-angle),#111014 0deg,#17111e 150deg,#352044 240deg,#7436a1 300deg,#44205f 330deg,#111014 360deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;animation:reward-border-orbit 4s linear infinite}
@media(prefers-reduced-motion:reduce){.featured-drop-item::after{animation:none;--reward-border-angle:35deg}}

.featured-drop-star img{width:20px!important;height:20px!important;object-fit:contain;image-rendering:pixelated}

.npc-custom-filter img[src$="pixel-drop-star-shaded.png"]{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}

/* Party catalog shares the quiet surfaces and spacing of the NPC catalog. */
.party-travel-note{background:var(--elevation-1);border-radius:16px;margin:0 0 28px;padding:18px 22px;color:var(--gray-400)}
.party-travel-note summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}
.party-travel-note summary::-webkit-details-marker{display:none}
.party-travel-note summary>span{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.party-travel-note strong{color:var(--gray-200);font-weight:500}.party-travel-note svg{width:18px;height:18px;flex:none}
.party-travel-note p{margin:16px 0 0;line-height:1.7}
.party-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.party-catalog-card{display:flex;flex-direction:column;min-width:0;background:var(--elevation-1);border-radius:16px;padding:24px;color:inherit;text-decoration:none;border:0;transition:border-color .15s,transform .15s}
.party-catalog-card:hover{text-decoration:none}
.party-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.party-card-kind{font-size:13px;color:var(--gray-500);text-align:right}
.party-card-intro{display:flex;align-items:center;gap:20px;margin:24px 0;min-height:88px}.party-card-intro>div:last-child{min-width:0}
.party-card-art{width:76px;height:88px;display:flex;align-items:center;justify-content:center;flex:none}
.party-card-art .wiki-image{width:auto!important;height:auto!important;max-width:76px;max-height:88px;object-fit:contain;image-rendering:pixelated}
.party-card-region{margin:0 0 8px;color:var(--gray-500);font-size:14px}.party-card-intro h2{margin:0;font-size:23px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
.party-card-facts{margin:0;display:grid;gap:12px;font-size:15px;line-height:1.6}.party-card-facts>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px}.party-card-facts dt{color:var(--gray-500)}.party-card-facts dd{margin:0;color:var(--gray-300);word-break:keep-all;overflow-wrap:anywhere}
.party-card-requirements{font-size:14px;color:var(--gray-400);line-height:1.6;margin-top:16px}.party-card-requirements p{margin:0 0 4px}
.party-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:26px;font-size:13px;color:var(--gray-500)}.party-card-footer strong{margin-left:auto;display:flex;align-items:center;gap:6px;font-weight:400;color:var(--gray-300);white-space:nowrap}.party-card-footer svg{width:16px;height:16px}
@media(max-width:1200px){.party-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.party-catalog-grid{grid-template-columns:minmax(0,1fr);gap:16px}.party-catalog-card{padding:20px}.party-travel-note{padding:16px}.party-card-intro h2{font-size:21px}}

:root{--detail-major-section-space:88px;--detail-card-gap:16px}
.monster-maps-section{margin:var(--detail-major-section-space) 0}.monster-maps-section>h2{font-size:18px;margin:0 0 18px}
.monster-map-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.monster-maps-section:not(.monster-maps-expanded) .monster-map-card:nth-child(n+9){display:none}
.monster-maps-toggle{display:block;margin:20px auto 0}
.monster-maps-toggle--mobile-only{display:none}
@media(max-width:760px){.monster-maps-section:not(.monster-maps-expanded) .monster-map-card:nth-child(n+5){display:none}.monster-maps-toggle--mobile-only{display:block}}
.monster-map-card{flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;padding:22px 18px;text-align:center;min-width:0}
.monster-map-preview{height:112px;width:100%;display:flex;align-items:center;justify-content:center}
.monster-map-preview .wiki-image{max-width:100%;max-height:112px;width:auto!important;height:auto!important;object-fit:contain}
.monster-map-region{color:var(--gray-500);font-size:13px}.monster-map-card h3{font-size:16px;line-height:1.5;margin:0;word-break:keep-all;overflow-wrap:anywhere}
@media(max-width:760px){.monster-map-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.monster-map-card{padding:18px 12px}.monster-map-preview{height:90px}.monster-map-preview .wiki-image{max-height:90px}}

.monster-drop-name{color:inherit;text-decoration-line:underline;text-decoration-style:dashed;text-decoration-color:#777;text-underline-offset:6px;text-decoration-thickness:1px;cursor:pointer}.monster-drop-card .monster-drop-name:hover{color:var(--accent-yellow);text-decoration-style:dashed;text-underline-offset:6px}

.monster-map-region{display:flex;align-items:center;justify-content:center;gap:7px}.monster-map-region img{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}

.monster-map-name{color:inherit;text-decoration-line:underline;text-decoration-style:dashed;text-decoration-color:#777;text-underline-offset:6px;text-decoration-thickness:1px}.monster-map-name:hover{color:var(--accent-yellow);text-decoration-style:dashed}

.monster-map-card{position:relative}.monster-map-card>.hunting-medal{position:absolute;top:12px;right:12px;margin:0}

.recent-market-price{margin:0 0 18px;padding:16px 20px;background:var(--elevation-1,#202020);border-radius:16px}.recent-market-price>div{display:flex;justify-content:space-between;align-items:center;gap:16px}.recent-market-price dt{color:var(--gray-500);font-size:14px}.recent-market-price dd{margin:0;color:var(--accent-yellow);font-size:18px;font-weight:600}.recent-market-price dd span{font-size:14px}.recent-market-price small{display:block;margin-top:6px;text-align:right;color:var(--gray-500);font-size:11px}

.monster-map-count{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:6px;color:var(--gray-500);font-size:13px;line-height:18px}.monster-map-count>.hunting-medal{margin:0}.monster-map-card{padding-top:40px}

.monster-related-quests{margin:88px 0 0;min-width:0}.monster-related-quests>h2{font-size:20px;margin:0 0 20px}.monster-related-quests>.npc-quest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media(max-width:760px){.monster-related-quests>.npc-quest-grid{grid-template-columns:minmax(0,1fr)}}

.character-preview-fields.character-identity-fields{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 76px;gap:10px}
.character-identity-fields select,.character-identity-fields input{padding:12px 8px}

/* Selected class introduction between advancement tabs and builds. */
.skill-job-intro{display:flex;align-items:center;gap:32px;background:#1e1e1e;border-radius:20px;padding:28px 36px;margin:28px 0 32px}
.skill-job-illustration{width:190px;height:166px;object-fit:contain;flex:0 0 auto;image-rendering:auto}
.skill-job-copy{min-width:0;flex:1}.skill-job-copy h2{font-size:23px;margin:0 0 10px}.skill-job-copy h2 small{font-size:14px;color:var(--gray-500);font-weight:400;margin-left:8px}
.skill-job-copy>p{margin:0 0 14px;color:#ccc;line-height:1.6}.skill-job-traits{display:flex;flex-wrap:wrap;gap:6px 24px}.skill-job-traits p{margin:0;font-size:14px;line-height:1.7;color:var(--gray-400)}.skill-job-traits strong{color:#e5e85b;margin-right:10px;font-weight:400}
.skill-job-copy dl{display:flex;flex-wrap:wrap;gap:8px 28px;margin:16px 0 0}.skill-job-copy dl>div{display:flex;gap:10px;font-size:14px;line-height:1.6}.skill-job-copy dt{color:var(--gray-500);flex-shrink:0}.skill-job-copy dd{margin:0;color:var(--gray-100)}
@media(max-width:640px){.skill-job-intro{align-items:flex-start;gap:16px;padding:22px;flex-direction:column}.skill-job-illustration{width:140px;height:122px;align-self:center}.skill-job-copy h2{font-size:21px}.skill-job-copy dl,.skill-job-traits{flex-direction:column;gap:8px}}

/* Give skill selection, introduction and builds their own breathing room. */
#main:has(>.skill-job-intro){padding-top:56px}
#main:has(>.skill-job-intro)>.page-heading{margin-bottom:40px}
#main:has(>.skill-job-intro)>.group-tabs{margin-bottom:48px;row-gap:10px}
#main>.skill-job-intro{margin-top:0;margin-bottom:20px}
#main>.skill-job-intro+.skill-build-section{margin-top:0;margin-bottom:72px}
#main>.skill-build-section>.skill-build+.skill-build{margin-top:20px}
@media(max-width:640px){
 #main:has(>.skill-job-intro){padding-top:36px}
 #main:has(>.skill-job-intro)>.page-heading{margin-bottom:28px}
 #main:has(>.skill-job-intro)>.group-tabs{margin-bottom:36px}
 #main>.skill-job-intro{margin-bottom:16px}
 #main>.skill-job-intro+.skill-build-section{margin-bottom:48px}
 #main>.skill-build-section>.skill-build+.skill-build{margin-top:16px}
}

/* Skill catalog cards: compact class badge and larger skill artwork. */
.skill-catalog-card .wiki-card-tag{display:inline-flex;align-items:center;width:fit-content;max-width:100%;padding:5px 9px;border-radius:7px;line-height:1.35;font-size:11px;word-break:keep-all}
.skill-catalog-card .wiki-card-image{width:80px;height:80px}
.skill-catalog-card .wiki-card-image .wiki-image{width:60px;height:60px;max-width:60px;max-height:60px;object-fit:contain;image-rendering:pixelated}
.skill-catalog-card h3{margin-top:10px;margin-bottom:0}
.skill-catalog-card .wiki-card-id:empty{display:none}

/* Shared page rhythm: separate major sections without expanding card contents. */
#main{padding-top:56px;--page-section-gap:56px;--catalog-section-gap:40px;--catalog-region-gap:20px}
#main>.page-heading{margin-bottom:40px}
#main>.group-tabs{margin-bottom:48px;row-gap:10px}
#main>.group-section{margin-top:48px;margin-bottom:56px}
#main>.panel+.panel{margin-top:var(--page-section-gap)}
#main .detail-stack{gap:var(--page-section-gap)}
#main .entry-hero{margin-bottom:40px}
#main .quest-summary-grid{margin-bottom:var(--page-section-gap)}
#main .wiki-entry-page:has(>.monster-hit-banner){--page-section-gap:var(--detail-card-gap)}
#main .wiki-entry-page:has(>.monster-hit-banner)>.entry-hero,
#main .wiki-entry-page>.monster-hit-banner{margin-bottom:var(--page-section-gap)}
#main>.hunt-rec-filters{margin-top:40px;margin-bottom:40px}
@media(max-width:640px){
 #main{padding-top:36px;--page-section-gap:40px;--catalog-section-gap:28px;--catalog-region-gap:16px}
 #main>.page-heading{margin-bottom:28px}
 #main>.group-tabs{margin-bottom:36px}
 #main>.group-section{margin-top:36px;margin-bottom:40px}
 #main .entry-hero{margin-bottom:28px}
 #main>.hunt-rec-filters{margin-top:28px;margin-bottom:28px}
}

.character-stat-upload{padding:18px;border:1px dashed var(--muted);border-radius:14px}.character-stat-upload input[type=file]{display:block;max-width:100%;margin-top:12px;font:inherit;font-size:13px}.character-stat-upload input::file-selector-button{border:0;border-radius:8px;padding:10px 14px;margin-right:10px;background:var(--elevation-3);color:var(--gray-100);font:inherit;cursor:pointer}.character-stat-upload [data-stat-status]{font-size:13px;line-height:1.6;margin:10px 0 0;color:var(--accent)}.character-stat-upload [data-stat-status]:empty{display:none}

.character-skill-picker>span{display:block;margin-bottom:10px}#character-skill-selected{display:flex;align-items:center;gap:10px}.character-skill-check{margin-left:auto}

.character-buffs>label{display:block;margin:14px 0}.character-buff-row{border-radius:12px;background:var(--elevation-2,#262626);padding:14px;margin-top:10px}.character-buff-row>div{display:flex;align-items:center;gap:10px}.character-buff-row .wiki-image{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}.character-buff-row button{margin-left:auto;background:transparent;border:0;color:inherit;font-size:24px;cursor:pointer}.character-buff-row>label{display:flex;align-items:center;gap:10px;margin:10px 0}.character-buff-row input[type=number]{width:80px;padding:8px}.character-buff-row input[type=checkbox]{width:18px;height:18px}.character-buff-row small{display:block;line-height:1.6;color:var(--accent)}.character-buffs [data-buff-base]{margin-top:16px}

.character-buffs>label>select{display:block;width:100%;margin-top:10px;padding:14px 16px;border:0;border-radius:12px;background:var(--elevation-2,#262626);color:inherit;font:inherit}.character-buff-row input[type=number]{border:0;border-radius:8px;background:var(--elevation-3,#343434);color:inherit;font:inherit}.character-buffs select:focus-visible,.character-buff-row input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.character-buffs [data-buff-base][hidden]{display:none}

.character-buff-picker{margin:18px 0}.character-buff-picker .character-skill-options{max-height:280px}.character-buff-picker .character-skill-options button{min-height:54px}

.character-stat-upload-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.character-stat-upload-row strong{font-size:18px;line-height:1.4}
.character-stat-upload-row .character-preview-hint{margin:8px 0 0}
.character-stat-upload input[type=file][hidden]{display:none}
.character-stat-upload-button{flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:var(--elevation-3);color:var(--gray-50);font:inherit;font-size:28px;line-height:1;cursor:pointer}
.character-stat-upload-button:hover{background:var(--elevation-5)}
.character-stat-upload-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.character-stat-upload-button:disabled{opacity:.45;cursor:wait}

#character-preview-dialog .npc-custom-filter{min-width:0;width:100%}#character-preview-dialog .npc-filter-options{box-sizing:border-box;max-width:100%;width:100%}#character-preview-dialog [data-character-dropdown]>select[hidden]{display:none}

.character-stat-upload [data-stat-title].is-complete{color:var(--accent-yellow)}
.character-stat-upload-button.is-reading{font-size:14px;opacity:1;color:var(--accent-yellow)}
.character-stat-upload-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Calculator form surfaces and section boundaries. */
#character-preview-dialog input:not([type=hidden]):not([type=file]):not([type=checkbox]):not([type=radio]),
#character-preview-dialog .npc-custom-filter summary{background:var(--elevation-3)!important;box-shadow:none;color:var(--gray-50)}
#character-preview-dialog .npc-custom-filter summary:hover{background:var(--elevation-4)!important}
#character-preview-dialog input::placeholder{color:var(--gray-500)}
#character-preview-form>section{margin-bottom:0}
#character-preview-form>section+section,
#character-preview-form>section+details{margin-top:30px;padding-top:30px;border-top:1px solid var(--elevation-3)}
#character-preview-form>.character-monster-summary{margin-top:30px;padding-top:24px;border-top:1px solid var(--elevation-3)}
#character-preview-dialog .npc-custom-filter>span{color:var(--gray-300)}

#character-preview-dialog .character-attack-fields{grid-template-columns:minmax(0,1fr) 112px;align-items:end}
#character-preview-dialog .character-attack-fields .character-skill-picker>span{margin-bottom:7px;font-size:12px;color:var(--gray-300)}
#character-preview-dialog .character-attack-fields summary{box-sizing:border-box;height:48px}
#character-preview-dialog #character-skill-selected{min-width:0}
#character-preview-dialog #character-skill-selected>span{overflow-wrap:anywhere}

#character-preview-dialog .npc-custom-filter summary{border-color:transparent}

#character-preview-form>.character-stat-upload+section{border-top:0;margin-top:24px;padding-top:0}
#character-preview-form>section:has(.character-identity-fields)+section{margin-top:20px;padding-top:20px}

.character-buff-launch{margin:18px 0}.character-buff-launch>span{display:block;margin-bottom:8px}.character-buff-launch>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px;border:0;border-radius:8px;background:var(--elevation-3);color:var(--gray-100);font:inherit;cursor:pointer}
.character-buff-dialog{position:fixed;inset:24px calc(var(--calculator-width,500px) + 20px) 24px auto;margin:0;width:min(620px,calc(100vw - var(--calculator-width,500px) - 60px));max-width:none;max-height:calc(100dvh - 48px);box-sizing:border-box;padding:24px;border:0;border-radius:16px;background:var(--elevation-1);color:var(--gray-100)}
.character-buff-dialog::backdrop{background:#0003}.character-buff-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.character-buff-dialog h2{font-size:20px;margin:0}.character-buff-dialog header button{border:0;background:var(--elevation-3);color:var(--gray-100);border-radius:8px;font-size:26px;cursor:pointer;padding:4px 12px}
.character-buff-dialog [data-buff-grid]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:calc(100dvh - 225px);overflow:auto}
.character-buff-dialog [data-buff-pick]{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px;border:0;border-radius:9px;background:var(--elevation-3);color:var(--gray-100);font:inherit;text-align:left;cursor:pointer}.character-buff-dialog [data-buff-pick]:hover{background:var(--elevation-4)}.character-buff-dialog [data-buff-pick][aria-pressed=true]{background:var(--level-tag-background);color:var(--accent-yellow)}.character-buff-dialog .wiki-image{width:32px;height:32px;object-fit:contain;flex-shrink:0}.character-buff-dialog small{display:block;font-size:11px;color:var(--gray-500)}.buff-pick-check{margin-left:auto}.character-buff-dialog footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:16px}
@media(max-width:900px){.character-buff-dialog{inset:16px;margin:auto;width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}}

.character-buff-dialog{inset:40px calc(var(--calculator-width,500px) + 16px) auto auto;width:min(500px,calc(100vw - var(--calculator-width,500px) - 48px));padding:18px;max-height:calc(100dvh - 80px)}
.character-buff-dialog header{margin-bottom:14px}.character-buff-dialog h2{font-size:17px}
.character-buff-dialog [data-buff-grid]{gap:6px;max-height:min(520px,calc(100dvh - 230px))}
.character-buff-dialog [data-buff-pick]{min-height:44px;padding:8px 10px;gap:8px;font-size:12px;border-radius:7px}
.character-buff-dialog .wiki-image{width:24px;height:24px}.character-buff-dialog small{font-size:10px}
.character-buff-dialog footer{margin-top:14px;font-size:12px}.character-buff-dialog footer button{padding:10px 14px;font-size:12px}
@media(max-width:900px){.character-buff-dialog{inset:24px 16px auto;margin:0 auto;width:min(500px,calc(100vw - 32px))}}

.character-buff-dialog [data-buff-grid]{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;padding-right:14px;scrollbar-width:thin;scrollbar-color:var(--gray-700) var(--elevation-2)}
.character-buff-dialog [data-buff-grid]::-webkit-scrollbar{width:8px}
.character-buff-dialog [data-buff-grid]::-webkit-scrollbar-track{background:var(--elevation-2);border-radius:8px}
.character-buff-dialog [data-buff-grid]::-webkit-scrollbar-thumb{background:var(--gray-700);border:2px solid var(--elevation-2);border-radius:8px}

#character-preview-dialog .character-buff-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;gap:6px 10px;padding:10px 40px 10px 12px;margin-top:8px}
#character-preview-dialog .character-buff-row>div:first-child{grid-column:1;min-width:0;gap:8px}
#character-preview-dialog .character-buff-row>div:first-child strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
#character-preview-dialog .character-buff-row .wiki-image{width:28px;height:28px;flex-shrink:0}
#character-preview-dialog .character-buff-row [data-buff-remove]{position:absolute;right:10px;top:13px;margin:0;padding:0;width:22px;height:26px;line-height:26px}
#character-preview-dialog .character-buff-row>[data-character-dropdown]{grid-column:2;display:block}
#character-preview-dialog .character-buff-row [data-character-dropdown] .npc-custom-filter>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#character-preview-dialog .character-buff-row [data-character-dropdown] summary{min-height:36px;padding:6px 10px;font-size:12px}
#character-preview-dialog .character-buff-row>small,#character-preview-dialog .character-buff-row>.character-buff-included{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5}
#character-preview-dialog .character-buff-row .npc-filter-options button{margin:0;font-size:12px}

.character-buff-dialog [data-buff-pick]{padding:11px 12px;gap:10px;line-height:1.45}
.character-buff-dialog [data-buff-pick]>span:not(.buff-pick-check){min-width:0}
.character-buff-dialog [data-buff-pick] small{margin-top:5px;font-size:11px;line-height:1.55;word-break:keep-all;overflow-wrap:break-word}
.character-buff-dialog [data-buff-grid]{gap:8px}
.character-buff-dialog .buff-pick-check{flex-shrink:0}

.character-buff-dialog header{padding-right:14px}
.character-buff-dialog header button{display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;min-width:36px;flex:0 0 36px;padding:0;line-height:1;border-radius:8px;font-size:24px}

#character-preview-dialog .character-buff-row{background:var(--elevation-3)}
#character-preview-dialog .character-buff-row [data-buff-remove]{font-family:Arial,sans-serif;font-size:18px;font-weight:400;color:var(--gray-500);top:15px;width:22px;height:22px;line-height:22px}
#character-preview-dialog .character-buff-row [data-buff-remove]:hover{color:#fff}

#character-preview-dialog .character-buff-launch{margin:0}
#character-preview-dialog .character-buffs>.character-preview-hint{margin-bottom:20px}
#character-preview-dialog .character-buff-launch>span{margin-bottom:10px;font-size:13px;line-height:1.5;color:var(--gray-300)}
#character-preview-dialog .character-buff-launch+.character-buff-launch{margin-top:24px}
#character-preview-dialog .character-buff-launch>button{min-height:44px;padding:11px 14px;line-height:22px}
#character-preview-dialog .character-buffs [data-buff-rows]:not(:empty){margin-top:20px}

/* Keep picker content aligned; reserve scroll space equally on both sides. */
.character-buff-dialog [data-buff-grid]{padding-inline:0;scrollbar-gutter:stable both-edges}
.character-buff-dialog header{padding-inline:0}
.character-buff-dialog footer{padding-inline:0}

/* Align selected buff identity, level and remove control on one row. */
#character-preview-dialog .character-buff-row{grid-template-columns:minmax(0,1fr) 96px 22px;padding:12px;gap:10px}
#character-preview-dialog .character-buff-row>div:first-child{grid-row:1;align-self:center}
#character-preview-dialog .character-buff-row>[data-character-dropdown]{grid-row:1;margin:0;align-self:center}
#character-preview-dialog .character-buff-row [data-buff-remove]{position:static;grid-column:3;grid-row:1;align-self:center;display:grid;place-items:center;margin:0;padding:0;line-height:1}

/* Keep section captions close to their heading and visually secondary. */
#character-preview-dialog .character-preview-hint{color:var(--gray-500);line-height:1.6}
#character-preview-form section:has(>h3 + .character-preview-hint)>h3{margin-bottom:8px}
#character-preview-form section>h3 + .character-preview-hint{margin-top:0;margin-bottom:16px}

#character-preview-dialog .character-attack-fields{margin-bottom:0}
#character-preview-dialog .character-skill-summary{margin:8px 0 0;line-height:1.6}

/* Lock the page while the character drawer or its picker is open. */
html:has(#character-preview-dialog[open]),body:has(#character-preview-dialog[open]){overflow:hidden}
#character-preview-dialog,.character-buff-dialog [data-buff-grid]{overscroll-behavior:contain}

/* Homepage: image-only banner carousel. */
#main:has(.home-banner){padding-top:28px}
.home-banner{position:relative;width:100%;aspect-ratio:3;overflow:hidden;border-radius:20px;background:#242424;isolation:isolate;touch-action:pan-y}
.home-banner-track,.home-banner-slide,.home-banner-slide>a{width:100%;height:100%}
.home-banner-track{position:relative}.home-banner-slide{position:absolute;inset:0}.home-banner-slide>a{display:block}
.home-banner-slide[hidden]{display:none}
.home-banner-slide img{display:block;width:100%;height:100%;object-fit:contain}
.home-banner-slide:nth-child(1){background:#101d38}
.home-banner-slide:nth-child(2){background:#e5c6ef}
.home-banner-slide:nth-child(3){background:#6bd8ee}
.home-banner-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--gray-500);background:linear-gradient(120deg,#292929,#202020)}
.home-banner-empty svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.5}
.home-banner-empty span{font-size:20px}.home-banner-empty small{font-size:13px;color:#6e6e6e}
.home-banner-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#0005;color:#fff;cursor:pointer}
.home-banner-arrow.previous{left:20px}.home-banner-arrow.next{right:20px}
.home-banner-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.home-banner-arrow:hover{background:#0009}
.home-banner-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px}
.home-banner-dots button{width:8px;height:8px;min-height:0;padding:0;border:0;border-radius:99px;background:#ffffff60;cursor:pointer}
.home-banner-dots button[aria-current="true"]{width:30px;background:#fff}
.home-banner button:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:640px){.home-banner{aspect-ratio:3;border-radius:14px}.home-banner-arrow{width:32px;height:32px}.home-banner-arrow.previous{left:10px}.home-banner-arrow.next{right:10px}.home-banner-dots{bottom:12px}.home-banner-empty span{font-size:16px}.home-banner-empty{gap:8px}}

/* Compact primary search below the home banner. */
.home-primary-search{max-width:760px;margin:28px auto 0;padding:0 0 24px}
.home-primary-search h1{margin:0 0 14px;font-size:22px;line-height:1.4;text-align:center}
.home-primary-search .wiki-search{display:flex;align-items:stretch;gap:8px;margin:0}
.home-primary-search .wiki-search-field{flex:1;min-width:0;height:48px;min-height:48px;background:var(--elevation-3);border-radius:10px}
.home-primary-search .wiki-search .wiki-search-field input{width:100%;height:48px;min-height:48px;font-size:15px;line-height:22px;background:transparent!important;border:0;border-radius:0;padding:12px 14px 12px 8px}
.home-primary-search .wiki-search>button{height:48px;min-width:76px;padding:0 18px;border-radius:10px;background:var(--green);color:#171717;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.home-primary-search .wiki-search input::placeholder{color:var(--gray-500)}
@media(max-width:640px){.home-primary-search{margin-top:20px}.home-primary-search h1{font-size:19px;margin-bottom:12px}.home-primary-search .wiki-search>button{min-width:64px;padding:0 14px}.home-primary-search .wiki-search .wiki-search-field input{font-size:14px}}

/* Skill pages share the active theme's surfaces and text contrast. */
.skill-job-intro,.skill-build{background:var(--elevation-1);color:var(--gray-50)}
.skill-job-copy h2,.skill-job-copy dd,.skill-build-skill,.skill-build-tradeoffs strong{color:var(--gray-50)}
.skill-job-copy>p,.skill-job-traits p,.skill-build-description,.skill-build-tail,.skill-build-tradeoffs{color:var(--gray-300)}
.skill-job-copy h2 small,.skill-job-copy dt,.skill-build-heading>span,.skill-build-help,.skill-build-step:not(:last-child)::after{color:var(--gray-500)}
.skill-job-traits strong,.skill-build .skill-build-title,.skill-build-note,.skill-build-tips>strong{color:var(--accent-yellow)}
.skill-build-tips{background:var(--elevation-2);color:var(--gray-300)}
.skill-build-skill:focus-visible{outline-color:var(--accent-orange)}
:root[data-theme="light"] .skill-build-icon strong{color:var(--gray-50);text-shadow:1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff}
.growth-stat-options>div{background:var(--elevation-2)}
.growth-stat-options p{color:var(--gray-400)}

.cosmetic-motion{margin:0 0 20px;padding:14px;border-radius:10px;background:var(--elevation-2)}
.cosmetic-motion-poses{display:flex;flex-wrap:wrap;gap:6px}
.cosmetic-motion-poses button{border:0;border-radius:6px;background:var(--elevation-3);color:var(--gray-300);padding:7px 10px;font-size:12px}
.cosmetic-motion-poses button:hover{background:var(--elevation-4)}
.cosmetic-motion-poses button[aria-pressed="true"]{background:var(--elevation-5);color:var(--accent-orange)}
.cosmetic-motion-toggle{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--gray-300);font-size:12px}
.cosmetic-motion-toggle input{accent-color:var(--accent-orange)}

/* Dropdown summaries must not inherit the drawer section-summary spacing. */
#character-preview-dialog .npc-custom-filter summary{margin-bottom:0}
#character-preview-dialog .character-buff-row>[data-character-dropdown] .npc-custom-filter{gap:0}

.skill-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:16px;margin:0 0 24px}
.skill-summary-card{min-width:0;padding:24px;border-radius:14px;background:var(--elevation-1);text-align:center;display:grid;grid-template-rows:20px minmax(60px,1fr);gap:16px;align-items:center;justify-items:center}
.skill-summary-card h2{font-size:13px;line-height:20px;color:var(--gray-400);margin:0}
.skill-summary-card p{margin:0;font-size:15px;line-height:1.7;color:var(--gray-50);overflow-wrap:anywhere;word-break:keep-all;flex:1;width:100%;display:flex;align-items:center;justify-content:center;text-align:center}
@media(max-width:1000px){.skill-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.skill-summary-cards{grid-template-columns:1fr;gap:10px}.skill-summary-card{padding:16px}.skill-summary-card{gap:12px;grid-template-rows:20px minmax(44px,1fr)}}

.home-banner-track{position:relative}
.home-banner-slide{position:absolute;inset:0;will-change:transform}

/* Shared surfaces and accent contrast in both themes. */
.npc-filter-options{border-color:var(--elevation-5)}
.npc-filter-options button:hover,.npc-filter-options button:focus-visible{background:var(--elevation-4)}
#character-preview-dialog .character-buff-row [data-buff-remove]:hover{color:var(--gray-50)}
.guide-source-button{background:var(--elevation-3);border-color:var(--elevation-7)}
.guide-source-button:hover{background:var(--elevation-4)}
.map-entrance-preview{background:var(--elevation-2)}
.wiki-drop-rate{color:var(--gray-500)}
.home-banner-empty{color:var(--gray-400);background:var(--elevation-2)}
.home-banner-empty small{color:var(--gray-500)}
:root[data-theme="light"] .home-primary-search .wiki-search>button{color:#fff}
:root[data-theme="light"] .npc-town-tag{color:color-mix(in srgb,var(--town-color) 45%,#20262c)}
:root[data-theme="light"] .monster-list-hp{color:#b83240}
:root[data-theme="light"] .monster-stat-card[data-stat="stats.maxHP"]{--monster-stat-color:#b83240}
:root[data-theme="light"] .monster-stat-card[data-stat="stats.PDDamage"],:root[data-theme="light"] .monster-stat-card[data-stat="stats.MDDamage"]{--monster-stat-color:#2566a6}

.cosmetic-motion{margin:20px 0 0}
.cosmetic-motion h3{margin:0 0 12px;font-size:14px;color:var(--gray-50)}
.cosmetic-motion-toggle{border:0;border-radius:6px;padding:8px 10px;background:var(--elevation-3);font:inherit;font-size:12px;cursor:pointer}
.cosmetic-motion-toggle:hover{background:var(--elevation-4)}
.cosmetic-motion-toggle[aria-pressed="true"]{color:var(--accent-orange)}

.skill-motion-preview{padding:24px;margin:0 0 24px;border-radius:14px;background:var(--elevation-1);text-align:center}
.skill-motion-preview[hidden]{display:none}
.skill-motion-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.skill-motion-heading h2{font-size:16px;margin:0}
.skill-motion-heading button{border:0;border-radius:8px;background:var(--elevation-3);color:var(--gray-50);width:36px;height:36px;cursor:pointer}
.skill-motion-preview canvas{max-width:100%;max-height:280px;object-fit:contain;image-rendering:pixelated}

/* Keep the skill header, summary and motion on the same spacing rhythm. */
#main .wiki-entry-page:has(>.skill-summary-cards)>.entry-hero{margin-bottom:24px}

#main .wiki-entry-page:has(>.skill-summary-cards)>.detail-layout{grid-template-columns:minmax(0,1fr)}
.skill-level-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}
.skill-level-card{min-width:0;padding:14px 18px;background:var(--elevation-2);border-radius:12px}
.skill-level-card header{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.skill-level-icon{width:40px;height:40px;display:grid;place-items:center;background:var(--elevation-3);border-radius:10px;flex-shrink:0}
.skill-level-icon img{max-width:32px;max-height:32px;width:auto;height:auto;image-rendering:pixelated}
.skill-level-card header strong{font-size:16px;color:var(--gray-50)}
.skill-level-master{margin-left:auto;color:var(--accent);font-size:12px}
.skill-level-card dl{margin:0;display:grid;gap:7px}
.skill-level-card dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.skill-level-card dt{font-size:12px;line-height:1.5;color:var(--gray-400)}
.skill-level-card dd{margin:0;text-align:right;font-size:15px;line-height:1.5;color:var(--gray-50);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:1000px){.skill-level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.skill-level-grid{grid-template-columns:1fr;gap:12px}.skill-level-card{padding:12px 14px}}

.monster-quest-entry{min-width:0;display:flex;flex-direction:column;gap:10px}
.monster-quest-entry>.npc-quest-card{flex:1}
.monster-quest-reason{display:flex;flex-wrap:wrap;gap:8px 12px;padding:0 8px 8px;color:var(--gray-400);font-size:12px;line-height:1.5}
.monster-quest-reason span{display:inline-flex;align-items:center;gap:6px}
.monster-quest-reason img{max-width:24px;max-height:24px;width:auto;height:auto;image-rendering:pixelated}

.growth-job-section{margin-bottom:40px}
.growth-job-section .section-heading{margin-bottom:20px}
.growth-job-section h2{margin:0 0 8px;font-size:22px}
.growth-job-section .section-heading p{margin:0;color:var(--gray-400);font-size:14px}
.growth-job-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.growth-job-card{min-width:0;display:flex;flex-direction:column;background:var(--elevation-1);border-radius:18px;overflow:hidden;transition:transform .18s,box-shadow .18s}
.growth-job-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #0001}
.growth-job-art{height:190px;display:grid;place-items:center;background:var(--elevation-2);padding:16px}
.growth-job-art img{width:auto;height:166px;max-width:100%;object-fit:contain}
.growth-job-copy{display:flex;flex-direction:column;flex:1;padding:24px}
.growth-job-group{font-size:12px;color:var(--accent);margin-bottom:8px}
.growth-job-copy h3{font-size:21px;margin:0 0 14px;color:var(--gray-50)}
.growth-job-copy>p{margin:0 0 20px;font-size:14px;line-height:1.8;color:var(--gray-400);word-break:keep-all}
.growth-job-copy dl{margin:auto 0 22px;display:grid;gap:10px}
.growth-job-copy dl>div{display:grid;grid-template-columns:34px 1fr;gap:10px;font-size:12px;line-height:1.6}
.growth-job-copy dt{color:var(--gray-400)}
.growth-job-copy dd{margin:0;color:var(--gray-50)}
.growth-job-link{display:flex;justify-content:space-between;font-size:13px;color:var(--accent)}
@media(max-width:1000px){.growth-job-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.growth-job-grid{grid-template-columns:1fr;gap:16px}.growth-job-art{height:170px}.growth-job-art img{height:150px}.growth-job-copy{padding:20px}}

.growth-job-advice{border-top:1px solid var(--elevation-3);padding-top:20px;margin-bottom:24px}
.growth-job-advice h4{margin:0 0 12px;font-size:14px;color:var(--gray-50)}
.growth-stat-paths{display:grid;gap:10px;margin-bottom:20px}
.growth-stat-paths>div{padding:14px;border-radius:10px;background:var(--elevation-2)}
.growth-stat-paths strong{font-size:13px;color:var(--accent)}
.growth-stat-paths p,.growth-job-advice li{font-size:13px;line-height:1.8;color:var(--gray-400);word-break:keep-all}
.growth-stat-paths p{margin:8px 0 0}
.growth-job-advice ul{padding-left:18px;margin:0;display:grid;gap:10px}

.growth-job-copy>p{min-height:76px}
.growth-job-copy>dl{min-height:84px;margin:0 0 22px}

.growth-route-guide{margin:0 0 32px}
.growth-route-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
.growth-route-heading h2{margin:0 0 10px}
.growth-route-heading p{margin:0;color:var(--gray-400);font-size:14px}
.growth-route-heading label{display:grid;gap:8px;min-width:200px;font-size:12px;color:var(--gray-400)}
.growth-route-heading select{padding:12px;border:0;border-radius:10px;background:var(--elevation-2);color:var(--gray-50);font:inherit;font-size:14px}
.growth-route-table{width:100%;min-width:860px;table-layout:fixed}
.growth-route-table th:first-child{width:12%}
.growth-route-table th:nth-child(2){width:34%}
.growth-route-table th:nth-child(3){width:27%}
.growth-route-table td,.growth-route-table th{vertical-align:top;padding:20px 16px}
.growth-route-table tbody th{color:var(--accent);font-size:14px}
.growth-route-entity{display:flex;align-items:center;gap:10px;margin-bottom:12px;min-width:0}
.growth-route-entity img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.growth-route-entity span{display:grid;gap:5px;min-width:0}
.growth-route-entity strong{font-size:13px;line-height:1.5;word-break:keep-all}
.growth-route-entity small{color:var(--gray-400);font-size:11px;line-height:1.5}
.growth-route-mobs{padding-left:12px;display:grid;gap:4px;border-left:2px solid var(--elevation-3)}
.growth-route-place+.growth-route-place{margin-top:20px}
.growth-route-mobs img{width:28px;height:28px}
.growth-route-table td>p{font-size:12px;line-height:1.8;margin:0 0 18px;color:var(--gray-400)}
.growth-route-table td>p strong{color:var(--gray-50)}
@media(max-width:600px){.growth-route-heading{align-items:stretch;flex-direction:column}.growth-route-heading label{min-width:0}}

.skill-build-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.skill-build-recommended{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:7px;background:var(--elevation-3);color:var(--accent);font-size:12px;line-height:1.4;white-space:nowrap}
.skill-build-recommended img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}

.growth-job-picker{display:grid;gap:18px;margin-bottom:28px}
.growth-job-picker>div>strong{display:block;font-size:13px;color:var(--gray-400);margin-bottom:10px}
.growth-job-picker .group-tabs{margin:0;flex-wrap:wrap}
.growth-selected-job{display:grid;grid-template-columns:240px minmax(0,1fr)}
.growth-selected-job:hover{transform:none;box-shadow:none}
.growth-selected-job .growth-job-art{height:100%;min-height:220px;align-content:start;padding-top:28px}
.growth-selected-job .growth-job-copy>p{min-height:0}
.growth-selected-job .growth-job-copy>dl{min-height:0;margin-bottom:18px}
.growth-selected-job .growth-stat-paths{grid-template-columns:1fr 1fr}
.growth-selected-job .growth-job-advice{margin-bottom:18px}
@media(max-width:760px){.growth-selected-job{grid-template-columns:1fr}.growth-selected-job .growth-job-art{height:180px;min-height:0}.growth-selected-job .growth-stat-paths{grid-template-columns:1fr}}

.growth-stat-choice{display:block;padding:14px;border-radius:10px;background:var(--elevation-2);border:1px solid transparent;text-decoration:none;color:inherit}.growth-stat-choice.active{border-color:var(--accent);background:var(--elevation-3)}.growth-stat-choice:hover{background:var(--elevation-3)}.growth-stat-choice:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.growth-stat-detail{padding:18px 20px;margin:0 0 24px;background:var(--elevation-2);border-radius:12px}.growth-stat-detail h4{margin:0 0 16px}.growth-stat-detail ol{list-style:none;padding:0;margin:0;display:grid;gap:14px}.growth-stat-detail li{padding-left:14px;border-left:2px solid var(--accent)}.growth-stat-detail li strong{font-size:13px;color:var(--gray-100)}.growth-stat-detail li p{margin:5px 0 0;font-size:13px;line-height:1.8;color:var(--gray-400);word-break:keep-all}.growth-stat-formula{font-size:12px;line-height:1.8;color:var(--gray-400);margin:18px 0 0;padding-top:12px;border-top:1px solid var(--elevation-3)}

.growth-stat-choice{display:flex;flex-direction:column;gap:7px}.growth-stat-choice>span{font-size:12px;color:var(--gray-400)}.growth-stat-rule{display:flex;align-items:center;gap:12px;margin-bottom:16px}.growth-stat-rule>strong{color:var(--accent);font-size:17px}.growth-stat-rule>span{font-size:13px;color:var(--gray-400)}.growth-stat-detail .growth-stat-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.growth-stat-detail .growth-stat-steps>li{padding:14px;border:0;border-radius:10px;background:var(--elevation-1);min-width:0}.growth-stat-step-head{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--gray-400);height:36px;margin-bottom:10px}.growth-stat-number{display:grid;place-items:center;width:21px;height:21px;border-radius:5px;background:var(--elevation-3);color:var(--accent);font-weight:bold}.growth-stat-item{margin-left:auto;display:flex}.growth-stat-item .wiki-image{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}.growth-stat-detail .growth-stat-steps>li>strong{display:block;font-size:14px}.growth-stat-example{margin-top:16px;padding-top:16px;border-top:1px solid var(--elevation-3)}.growth-stat-example>strong{font-size:12px;color:var(--gray-400)}.growth-stat-example>div{display:flex;align-items:center;gap:14px;margin-top:10px}.growth-stat-example>div>span{display:flex;flex-direction:column;gap:7px;text-align:center;flex:1;background:var(--elevation-1);border-radius:8px;padding:12px 6px}.growth-stat-example small{font-size:11px;color:var(--gray-400)}.growth-stat-example b{font-size:23px;color:var(--gray-100)}.growth-stat-example i{font-style:normal;color:var(--gray-400)}.growth-stat-example .growth-stat-result b{color:var(--accent)}.growth-stat-example>p,.growth-stat-short-note{font-size:12px;line-height:1.6;color:var(--gray-400);margin:12px 0 0}.growth-stat-more{margin-top:16px;font-size:12px}.growth-stat-more summary{cursor:pointer;color:var(--gray-400)}.growth-stat-more ul{margin:12px 0 0}@media(max-width:600px){.growth-stat-detail .growth-stat-steps{grid-template-columns:1fr}.growth-stat-rule{align-items:flex-start;flex-direction:column;gap:5px}.growth-stat-example>div{gap:6px}.growth-stat-detail{padding:16px}}

.adv-family{margin:28px 0 40px}.adv-family>h2{font-size:21px;margin:0 0 16px}.adv-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.adv-job-card.panel{margin:0;padding:22px}.adv-card-intro{display:flex;align-items:center;gap:18px}.adv-card-intro>img{width:130px;height:126px;object-fit:contain;flex-shrink:0}.adv-card-intro h3{font-size:20px;margin:0 0 9px}.adv-card-intro p{font-size:13px;line-height:1.7;color:var(--gray-400);margin:0 0 12px;word-break:keep-all}.adv-detail-link{color:var(--accent);font-size:13px}.adv-branches{margin-top:20px;display:grid;gap:10px}.adv-branch{display:flex;align-items:center;gap:6px}.adv-branch>a{flex:1;min-width:0;background:var(--elevation-2);border-radius:8px;padding:10px 5px;text-decoration:none;text-align:center;color:var(--gray-100)}.adv-branch small{display:block;font-size:10px;color:var(--gray-400);margin-bottom:6px}.adv-branch strong{display:block;font-size:12px;word-break:keep-all}.adv-branch>span{font-size:12px;color:var(--gray-400)}.adv-branch>a:hover{background:var(--elevation-3)}.adv-detail-hero{display:flex;align-items:center;gap:30px}.adv-detail-hero>img{width:190px;height:166px;object-fit:contain}.adv-detail-hero h1{font-size:30px;margin:12px 0}.adv-detail-hero p{font-size:14px;color:var(--gray-400)}.adv-stage-picker{margin:20px 0}.adv-detail-overview{display:grid;grid-template-columns:1fr 1fr;gap:20px}.adv-detail-overview>.panel{margin:0 0 20px}.adv-detail-overview h2,.adv-walkthrough h2{font-size:19px;margin:0 0 20px}.adv-checklist{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:9px;margin:0}.adv-checklist>li{padding:8px 11px;border-radius:6px;background:var(--elevation-2);font-size:13px;color:var(--gray-100)}.adv-checklist>li:before{content:'✓';color:var(--accent);margin-right:7px}.adv-npc{display:inline-flex;align-items:center;gap:16px;text-decoration:none;color:var(--gray-100)}.adv-npc>.wiki-image{width:64px;height:76px;object-fit:contain;image-rendering:pixelated}.adv-detail-overview p{font-size:13px;color:var(--gray-400)}.adv-walkthrough>ol{list-style:none;padding:0;margin:0;display:grid;gap:0}.adv-walkthrough>ol>li{display:flex;gap:18px;padding:0 0 24px;position:relative}.adv-walkthrough li:last-child{padding-bottom:0}.adv-step-number{flex-shrink:0;display:grid;place-items:center;width:32px;height:32px;background:var(--elevation-3);color:var(--accent);font-weight:bold;border-radius:8px;z-index:1}.adv-walkthrough>ol>li:not(:last-child):before{content:'';position:absolute;left:15px;top:32px;bottom:0;width:2px;background:var(--elevation-3)}.adv-walkthrough h3{font-size:16px;margin:4px 0 7px}.adv-walkthrough p{font-size:14px;line-height:1.7;color:var(--gray-400);margin:0;word-break:keep-all}.adv-map{display:inline-block;font-size:12px;padding:6px 9px;border-radius:5px;background:var(--elevation-2);color:var(--accent);margin-top:9px}.adv-map a{color:inherit;text-decoration:none}.adv-quest-links{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:900px){.adv-directory{grid-template-columns:1fr}}@media(max-width:600px){.adv-job-card.panel{padding:16px}.adv-card-intro>img{width:90px;height:110px}.adv-card-intro{gap:12px}.adv-detail-overview{grid-template-columns:1fr;gap:0}.adv-detail-hero{gap:15px}.adv-detail-hero>img{width:110px;height:120px}.adv-detail-hero h1{font-size:24px}.adv-branch strong{font-size:11px}.adv-branch small{font-size:9px}}

.growth-kill-layout{display:grid;grid-template-columns:350px minmax(0,1fr);gap:24px;align-items:start}.growth-kill-calculator.panel{position:sticky;top:96px;margin:0;padding:24px}.growth-kill-calculator h2{font-size:20px;margin:0 0 22px}.growth-kill-calculator>label,.growth-kill-actual label{display:block;font-size:13px;color:var(--gray-400);margin:18px 0 8px}.growth-kill-calculator input,.growth-kill-calculator select{display:block;width:100%;min-height:44px;padding:10px 12px;border-radius:8px;border:1px solid var(--elevation-3);background:var(--elevation-2);color:var(--gray-100);font:inherit;font-size:14px;box-sizing:border-box}.growth-kill-options:empty{display:none}.growth-kill-options{background:var(--elevation-2);border-radius:8px;max-height:280px;overflow:auto;margin-top:6px}.growth-kill-options button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:transparent;color:var(--gray-100);padding:10px 12px;cursor:pointer;font:inherit;font-size:13px}.growth-kill-options button:hover{background:var(--elevation-3)}.growth-kill-options .wiki-image{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}.growth-kill-options small{display:block;margin-top:5px;font-size:11px;color:var(--gray-400)}.growth-kill-options>p{font-size:13px;padding:12px;color:var(--gray-400)}.growth-kill-monster{display:flex;align-items:center;gap:14px;padding:14px;background:var(--elevation-2);border-radius:10px;margin-top:12px}.growth-kill-monster>.wiki-image{width:56px;height:56px;object-fit:contain;image-rendering:pixelated}.growth-kill-monster strong{font-size:15px}.growth-kill-monster span{display:block;font-size:12px;color:var(--gray-400);margin-top:7px}.growth-kill-actual{margin-top:16px;font-size:12px;color:var(--gray-400)}.growth-kill-actual summary{cursor:pointer}.growth-kill-actual p{font-size:11px;line-height:1.6}.growth-kill-result{padding:22px 16px;margin-top:22px;background:var(--elevation-2);border-radius:12px;text-align:center}.growth-kill-result>span{display:block;font-size:13px;color:var(--gray-400)}.growth-kill-result>strong{display:block;color:var(--accent);font-size:37px;line-height:1.2;margin:14px 0 8px;overflow-wrap:anywhere}.growth-kill-result>strong small{font-size:17px;margin-left:6px}.growth-kill-result>b{font-size:16px;color:var(--gray-100)}.growth-kill-result>p{font-size:13px;color:var(--gray-400);margin:0;line-height:1.7}.growth-kill-breakdown{display:grid;gap:8px;margin-top:20px;border-top:1px solid var(--elevation-3);padding-top:14px;font-size:12px;color:var(--gray-400)}.growth-kill-breakdown>span{display:flex;justify-content:space-between;gap:8px}.growth-kill-breakdown em{font-style:normal;color:var(--gray-100)}.growth-exp-table.panel{margin:0;padding:0;overflow:hidden}.growth-exp-table table{width:100%}.growth-exp-table td:last-child,.growth-exp-table th:last-child{text-align:right}.growth-exp-table [data-growth-level]{border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:8px 12px;border-radius:6px}.growth-exp-table tr.active{background:var(--elevation-2)}.growth-exp-table tr.active button{color:var(--accent)}.growth-exp-table tbody tr:hover{background:var(--elevation-2)}@media(max-width:760px){.growth-kill-layout{grid-template-columns:1fr}.growth-kill-calculator.panel{position:static}.growth-exp-table{width:100%}}

.growth-kill-calculator.panel{padding:20px;max-height:calc(100vh - 112px);overflow-y:auto;box-sizing:border-box;scrollbar-width:thin}.growth-kill-calculator h2{margin-bottom:14px;font-size:18px}.growth-kill-calculator>label,.growth-kill-actual label{margin-top:12px;margin-bottom:6px}.growth-kill-calculator input,.growth-kill-calculator select{min-height:38px;padding:8px 10px}.growth-kill-monster{padding:10px;gap:10px}.growth-kill-monster>.wiki-image{width:40px;height:40px}.growth-kill-result{padding:15px 12px;margin-top:16px}.growth-kill-result>strong{font-size:32px;margin:9px 0 5px}.growth-kill-breakdown{margin-top:12px;padding-top:10px;gap:6px}.growth-exp-table td,.growth-exp-table th{padding:12px 20px}.growth-exp-table [data-growth-level]{padding:4px 8px}@media(max-width:760px){.growth-kill-calculator.panel{max-height:none;overflow:visible}}

.growth-kill-calculator.panel{position:static;max-height:none;overflow:visible}

.adv-branch>a,.adv-branch>.adv-branch-goal{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:12px 6px 14px;min-width:0}.adv-stage-art{display:block;width:88px;height:76px;object-fit:contain;margin:0 auto 10px;flex-shrink:0}.adv-branch>span{align-self:center}.adv-branch small{white-space:nowrap}@media(max-width:600px){.adv-stage-art{width:58px;height:60px;margin-bottom:8px}.adv-branch>a{padding:10px 3px}.adv-branch{gap:5px}.adv-branch small{font-size:9px}}

.adv-walkthrough li>div{flex:1;min-width:0}.adv-step-help{margin-top:14px;padding:13px 16px;border-radius:10px;background:var(--elevation-2);font-size:13px}.adv-step-help summary{color:var(--accent);cursor:pointer;font-weight:bold}.adv-step-help>div{margin-top:15px}.adv-step-help p{font-size:13px;margin:10px 0}.adv-step-help ul{padding-left:18px;margin:12px 0}.adv-step-help li{display:list-item;padding:4px 0;color:var(--gray-400);line-height:1.7}.adv-step-help li:before{display:none}.adv-step-help h4{font-size:13px;margin:18px 0 10px}.adv-tip-route{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:var(--gray-100)}.adv-tip-route span{color:var(--gray-400)}.adv-quiz-answers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.adv-quiz-answers>div{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px 12px;background:var(--elevation-1);border-radius:7px;line-height:1.6}.adv-quiz-answers span{color:var(--gray-400)}.adv-quiz-answers strong{color:var(--gray-100);text-align:right}.adv-guide-link{display:inline-block;margin-top:14px;color:var(--accent)}@media(max-width:600px){.adv-quiz-answers{grid-template-columns:1fr}.adv-step-help{padding:12px}}

/* Advancement spacing: section 32px, card 24px, heading 16px. */
.adv-family{margin:36px 0 48px}.adv-family>h2{margin-bottom:20px}.adv-directory{gap:24px}.adv-job-card.panel{padding:24px}.adv-card-intro{gap:20px}.adv-card-intro h3{margin-bottom:12px}.adv-card-intro p{margin-bottom:16px}.adv-branches{margin-top:28px;gap:16px}.adv-branch{gap:8px}
.adv-detail-hero.panel{margin-bottom:0;padding:28px}.adv-detail-hero h1{margin:12px 0}.adv-detail-hero p{margin:0 0 20px;line-height:1.7}.adv-stage-picker.group-tabs{margin:28px 0 32px;gap:10px}.adv-detail-overview{gap:24px;margin-bottom:32px}.adv-detail-overview>.panel{margin:0;padding:24px}.adv-detail-overview h2,.adv-walkthrough h2{margin:0 0 20px}.adv-detail-overview p{margin:12px 0 0;line-height:1.7}.adv-walkthrough.panel{margin:0;padding:28px}.adv-walkthrough>ol>li{padding-bottom:32px}.adv-walkthrough>ol>li:last-child{padding-bottom:0}.adv-walkthrough h3{margin:4px 0 12px}.adv-map{margin-top:12px}.adv-step-help{margin-top:16px}.adv-walkthrough+.panel{margin-top:32px;padding:24px}.adv-walkthrough+.panel>h2{margin:0 0 20px}
@media(max-width:600px){.adv-family{margin:28px 0 36px}.adv-directory{gap:20px}.adv-job-card.panel,.adv-detail-hero.panel,.adv-detail-overview>.panel,.adv-walkthrough.panel{padding:20px}.adv-card-intro{gap:14px}.adv-branches{margin-top:24px;gap:14px}.adv-branch{gap:5px}.adv-detail-overview{gap:20px;margin-bottom:24px}.adv-stage-picker.group-tabs{margin:24px 0}.adv-walkthrough>ol>li{padding-bottom:28px}.adv-walkthrough+.panel{margin-top:24px;padding:20px}}

.growth-kill-layout{grid-template-columns:minmax(0,560px) minmax(320px,1fr)}@media(max-width:760px){.growth-kill-layout{grid-template-columns:minmax(0,1fr)}}

.adv-stage-skill{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 12px;background:var(--elevation-1);border-radius:10px}.adv-stage-skill .wiki-image{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}@media(max-width:600px){.adv-stage-skill{width:48px;height:48px;margin-bottom:10px}.adv-stage-skill .wiki-image{width:32px;height:32px}}

.adv-step-intro{display:flex;justify-content:space-between;align-items:center;gap:24px}.adv-step-intro>div{flex:1;min-width:0}.adv-step-people{display:flex;gap:18px;flex-shrink:0}.adv-step-npc{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:var(--gray-400);font-size:11px}.adv-step-npc .wiki-image{width:64px;height:76px;object-fit:contain;image-rendering:pixelated}.adv-inline-item{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}.adv-inline-item .wiki-image{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}.adv-inline-item a{color:inherit}.adv-tip-assets{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px;color:var(--gray-100)}.adv-tip-assets>.wiki-image{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}.adv-tip-assets .adv-npc{margin-left:auto}.adv-tip-assets .adv-npc .wiki-image{height:70px;width:60px}.adv-route-figure,.adv-skull-figure{margin:18px 0 0;padding:12px;border-radius:10px;background:var(--elevation-1)}.adv-route-figure .wiki-image{width:100%;height:220px;object-fit:contain}.adv-route-figure figcaption,.adv-skull-figure figcaption{font-size:12px;margin-top:10px;color:var(--gray-400)}.adv-skull-figure{max-width:360px}.adv-skull-figure svg{display:block;width:100%;height:150px;background:transparent;border-radius:6px}@media(max-width:600px){.adv-step-intro{gap:12px}.adv-step-people{gap:8px}.adv-step-npc .wiki-image{width:44px;height:60px}.adv-step-npc{max-width:70px;text-align:center}.adv-route-figure .wiki-image{height:160px}}

.adv-walkthrough .adv-route-figure a>.wiki-image{display:block;width:100%;max-width:none;height:220px;max-height:none;object-fit:contain}.adv-route-figure>a{display:block;width:100%}.adv-walkthrough .adv-inline-item>.wiki-image{width:24px;height:24px}.adv-walkthrough .adv-step-npc>.wiki-image{width:64px;height:76px}@media(max-width:600px){.adv-walkthrough .adv-route-figure a>.wiki-image{height:160px}.adv-walkthrough .adv-step-npc>.wiki-image{width:44px;height:60px}}

.growth-kill-calculator .npc-custom-filter{display:block;min-width:0;width:100%;margin-top:16px}.growth-kill-calculator .npc-custom-filter>span{display:block;font-size:13px;color:var(--gray-400);margin-bottom:8px}.growth-kill-calculator .npc-custom-filter summary{min-height:48px;box-sizing:border-box}.growth-kill-calculator .npc-custom-filter summary>span:first-child{display:flex;gap:10px;align-items:center}.growth-kill-calculator .npc-custom-filter summary img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}.growth-kill-calculator .npc-filter-options{max-height:340px;overflow:auto;z-index:30}.growth-monster-picker .npc-filter-options>input{position:sticky;top:0;margin:4px 0 10px;background:var(--elevation-1);z-index:1}.growth-monster-picker .growth-kill-options{max-height:none;margin:0;background:none;overflow:visible}.growth-monster-picker .growth-kill-options button{min-height:58px}.growth-kill-calculator .npc-filter-options button img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}.growth-kill-calculator .npc-filter-options button{gap:10px}.growth-kill-calculator [hidden]{display:none}

.growth-hunt-profile{padding:16px;margin-bottom:20px;border-radius:12px;background:var(--elevation-2)}.growth-hunt-profile>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:14px}.growth-hunt-profile strong{font-size:14px;color:var(--gray-100)}.growth-hunt-profile .quiet-button{font-size:12px;padding:8px}.growth-hunt-buffs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.growth-hunt-buffs>span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--gray-400)}.growth-hunt-buffs img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}.growth-hunt-profile label,.growth-hunt-assumptions label{display:block;margin:14px 0 7px;font-size:12px;color:var(--gray-400)}.growth-map-picker .npc-filter-options>input{position:sticky;top:0;z-index:1;background:var(--elevation-1);margin-bottom:10px}.growth-map-picker button{display:flex;align-items:center;width:100%}.growth-hunt-section{border-top:1px solid var(--elevation-3);margin-top:24px;padding-top:24px}.growth-hunt-section h3{font-size:18px;margin:0 0 18px}.growth-hunt-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.growth-hunt-metrics>div{background:var(--elevation-2);border-radius:10px;padding:18px 14px}.growth-hunt-metrics span{display:block;font-size:12px;color:var(--gray-400);margin-bottom:12px}.growth-hunt-metrics strong{font-size:23px;color:var(--accent)}.growth-hunt-metrics small{font-size:12px;margin-left:6px}.growth-hunt-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.growth-hunt-facts span{padding:6px 8px;background:var(--elevation-2);border-radius:6px;font-size:11px;color:var(--gray-400)}#growth-hunt-result>p,.growth-hunt-assumptions p{font-size:12px;color:var(--gray-400);line-height:1.7}.growth-hunt-assumptions{margin-top:18px;font-size:12px;color:var(--gray-400)}.growth-hunt-assumptions summary{cursor:pointer}@media(max-width:500px){.growth-hunt-metrics{grid-template-columns:1fr}}

.adv-route-figure>a>svg{display:block;width:100%;height:300px;background:transparent;border-radius:6px;overflow:visible}@media(max-width:600px){.adv-route-figure>a>svg{height:240px}}

/* Text fields use a quiet inset focus state across both themes. */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus,
textarea:focus{outline:none!important;outline-offset:0!important;box-shadow:inset 0 0 0 1px var(--gray-500)!important}
.header-search:focus-within,.wiki-search-field:focus-within,.cosmetic-picker-heading .cosmetic-search:focus-within{outline:none;box-shadow:inset 0 0 0 1px var(--gray-500)}
.header-search input:focus,.wiki-search-field input:focus,.cosmetic-search input:focus{box-shadow:none!important}

.guide-visual-ref{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}.guide-visual-ref>.wiki-image{width:26px;height:30px;max-width:26px;max-height:30px;object-fit:contain}.guide-visual-ref>a{color:var(--accent-orange);text-decoration:underline;text-underline-offset:3px}

.growth-profile-heading h3{font-size:14px;margin:0;color:var(--gray-100)}.growth-profile-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px}.growth-profile-summary>span{font-size:13px;color:var(--gray-400)}.growth-profile-summary>.quiet-button{margin-left:auto}.growth-profile-assets{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.growth-profile-asset{display:inline-flex;align-items:center;gap:5px}.growth-profile-asset>.wiki-image{width:30px;height:32px;max-width:30px;max-height:32px;object-fit:contain}.growth-profile-asset small{font-size:11px;color:var(--gray-400)}

/* Search stays outside the scrolling results in shared growth pickers. */
:is(.growth-kill-calculator,.world-route-section) :is(.growth-map-picker,.growth-monster-picker) .npc-filter-options{overflow:hidden;padding:8px;max-height:340px;width:100%;max-width:100%;box-sizing:border-box}
:is(.growth-kill-calculator,.world-route-section) :is(.growth-map-picker,.growth-monster-picker) .npc-filter-options>input{position:static;display:block;margin:0 0 8px;min-height:40px;height:40px;flex-shrink:0;background:var(--elevation-1)}
#growth-hunt-map-options,.growth-map-picker .growth-map-options,.growth-monster-picker .growth-kill-options{max-height:270px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;margin:0;padding:0;background:transparent}
:is(.growth-kill-calculator,.world-route-section) :is(.growth-map-picker,.growth-monster-picker) .npc-filter-options button{min-height:48px;padding:8px 10px;gap:12px;font-size:13px;line-height:1.4}
:is(.growth-kill-calculator,.world-route-section) :is(.growth-map-picker,.growth-monster-picker) .npc-filter-options button>.wiki-image{width:32px;height:32px;max-width:32px;max-height:32px;flex:0 0 32px;object-fit:contain}
#growth-hunt-map-options button>span,.growth-map-options button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Compact character summary: details stay together, edit action aligns right. */
.growth-hunt-profile{padding:12px 14px}
.growth-hunt-profile>.growth-profile-summary{margin-top:0;justify-content:flex-start;gap:10px;min-height:36px}
.growth-profile-summary>strong{white-space:nowrap}
.growth-profile-assets{gap:8px}
.growth-profile-summary>.growth-profile-edit{margin-left:auto;white-space:nowrap;flex-shrink:0;padding:6px 8px;font-size:12px}
@media(max-width:400px){.growth-profile-summary>.growth-profile-edit{margin-left:auto}}

/* Equipment detail: the same game-style layout as equipment hover cards. */
.equipment-detail-aside{align-self:start;min-width:0}
.equipment-detail-tooltip{padding:24px 20px;border-radius:12px;background:var(--elevation-1)}
.equipment-detail-tooltip .equipment-detail-name{margin:0 0 24px;text-align:center;font-size:20px;line-height:1.4;color:var(--gray-50)}
.equipment-detail-tooltip .equipment-hover-top>.wiki-image{width:112px;height:144px;background:var(--elevation-3);border-radius:6px;padding:12px}
.equipment-detail-tooltip .equipment-hover-requirements{font-size:14px;line-height:1.6}
.equipment-detail-tooltip .equipment-hover-category,.equipment-detail-tooltip .equipment-hover-stats{font-size:14px}
.equipment-detail-tooltip .equipment-hover-jobs{margin-top:20px;font-size:13px}
@media(max-width:700px){.equipment-detail-aside{width:100%}.equipment-detail-tooltip{max-width:420px;margin:0 auto}}

.equipment-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:16px;margin:0}
@media(max-width:600px){.equipment-summary-cards{gap:8px}}

@media(min-width:1001px){
 .wiki-entry-page .detail-layout:has(>.equipment-detail-aside){grid-template-columns:minmax(0,3fr) minmax(0,7fr)}
}

.equipment-scroll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.equipment-drop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:600px){.equipment-scroll-grid,.equipment-drop-grid{grid-template-columns:1fr}}

.equipment-related-section>h2{font-size:22px;margin:0 0 20px}
.equipment-related-section .equipment-scroll-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;list-style:none}
@media(max-width:600px){.equipment-related-section .equipment-scroll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.wiki-entry-page>.equipment-summary-cards{margin:0 0 32px}
.equipment-simulator{margin:0;padding:24px}
.equipment-simulator h2{font-size:22px;margin:0 0 24px}
.equipment-sim-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.equipment-sim-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px 12px;background:var(--elevation-3);color:var(--gray-50);border:0;border-radius:12px;font-size:14px;line-height:1.5}
.equipment-sim-choices button:hover{background:var(--elevation-4)}
.equipment-sim-choices .wiki-image{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}
.equipment-sim-status,.equipment-sim-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}
.equipment-sim-status strong{color:var(--accent-yellow)}
.equipment-sim-actions button:disabled{opacity:.4;cursor:default}
.equipment-sim-log{margin:0;padding:0;list-style:none;color:var(--muted);font-size:14px;line-height:1.8}
.equipment-sim-log strong{color:var(--gray-50);margin-left:8px}
@media(max-width:600px){.equipment-sim-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}

.equipment-simulator{position:relative;overflow:hidden}
.equipment-sim-hint{color:var(--muted);font-size:14px;margin:6px 0 0}
.equipment-sim-choices button:disabled{opacity:.45;cursor:default}
/* Original WZ frames retain their native origins and frame delays. */
.equipment-original-effect{position:absolute;inset:0;pointer-events:none;z-index:2}
.equipment-original-effect img{position:absolute;max-width:none;image-rendering:pixelated}

.equipment-detail-name.equipment-quality-blue{color:#66aaff}
.equipment-detail-name.equipment-quality-purple{color:#cc66ff}
.equipment-detail-name.equipment-quality-yellow{color:#ffff66}
.equipment-detail-name.equipment-quality-green{color:#66ff66}

.equipment-detail-tooltip{position:relative;overflow:hidden}

.equipment-sim-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:26px}
.equipment-simulator .equipment-sim-header h2{margin:0}
.equipment-sim-header button{flex-shrink:0}

.equipment-window-view{padding:24px;display:flex;justify-content:center;background:var(--elevation-2);border-radius:16px}
.equipment-window-board{position:relative;width:350px;max-width:100%;aspect-ratio:175/306;image-rendering:pixelated}
.equipment-window-background{display:block;width:100%;height:100%}
.equipment-window-slot{position:absolute;left:85.714%;top:79.412%;width:18.286%;height:10.458%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center}
.equipment-window-slot .wiki-image{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.equipment-view-toggle{display:block;margin:16px auto 0}
.equipment-slot-100{left:49.1429%;top:16.6667%}
.equipment-slot-101{left:49.1429%;top:27.1242%}
.equipment-slot-102{left:49.1429%;top:37.5817%}
.equipment-slot-103{left:67.4286%;top:37.5817%}
.equipment-slot-104{left:49.1429%;top:48.0392%}
.equipment-slot-105{left:49.1429%;top:48.0392%}
.equipment-slot-106{left:49.1429%;top:68.9542%}
.equipment-slot-107{left:49.1429%;top:79.4118%}
.equipment-slot-108{left:12.5714%;top:58.4967%}
.equipment-slot-109{left:85.7143%;top:48.0392%}
.equipment-slot-110{left:12.5714%;top:48.0392%}
.equipment-slot-111{left:67.4286%;top:27.1242%}
.equipment-slot-112{left:67.4286%;top:48.0392%}
.equipment-slot-113{left:49.1429%;top:58.4967%}
.equipment-slot-114{left:12.5714%;top:27.1242%}
.equipment-slot-130{left:67.4286%;top:48.0392%}
.equipment-slot-131{left:67.4286%;top:48.0392%}
.equipment-slot-132{left:67.4286%;top:48.0392%}
.equipment-slot-133{left:67.4286%;top:48.0392%}
.equipment-slot-134{left:67.4286%;top:48.0392%}
.equipment-slot-135{left:67.4286%;top:48.0392%}
.equipment-slot-136{left:67.4286%;top:48.0392%}
.equipment-slot-137{left:67.4286%;top:48.0392%}
.equipment-slot-138{left:67.4286%;top:48.0392%}
.equipment-slot-139{left:67.4286%;top:48.0392%}
.equipment-slot-140{left:67.4286%;top:48.0392%}
.equipment-slot-141{left:67.4286%;top:48.0392%}
.equipment-slot-142{left:67.4286%;top:48.0392%}
.equipment-slot-143{left:67.4286%;top:48.0392%}
.equipment-slot-144{left:67.4286%;top:48.0392%}
.equipment-slot-145{left:67.4286%;top:48.0392%}
.equipment-slot-146{left:67.4286%;top:48.0392%}
.equipment-slot-147{left:67.4286%;top:48.0392%}
.equipment-slot-148{left:67.4286%;top:48.0392%}
.equipment-slot-149{left:67.4286%;top:48.0392%}

.equipment-sim-market{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:20px 0}
.equipment-sim-market>div{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:12px;background:var(--elevation-2)}
.equipment-sim-market span,.equipment-sim-market small{color:var(--muted);font-size:13px;line-height:1.5}
.equipment-sim-market strong{color:var(--accent-yellow);font-size:20px}

.equipment-sim-choices button[draggable=true]{cursor:grab}
.equipment-sim-choices button[draggable=true]:active{cursor:grabbing}
.equipment-window-slot.is-drop-target{outline:2px solid var(--accent-yellow);background:rgba(247,255,100,.2)}

.equipment-drag-ghost{position:fixed;left:0;top:0;width:48px;height:48px;pointer-events:none;background:transparent!important;border:0!important;box-shadow:none!important;image-rendering:pixelated;z-index:-1}

.equipment-window-view.equipment-detail-tooltip{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}

/* Cropped walkthrough targets stay at native resolution. */
.quest-object-guide--crop img{min-width:0;image-rendering:auto}

/* Match the town panel heading inset to its 14px side/bottom padding. */
.shop-item-detail .shop-item-places>h3,.item-source-popover .shop-item-places>h3{margin-top:0;padding-top:0}

.quest-quiz-guide .quest-quiz-answer{color:var(--accent-yellow);font-weight:inherit}

/* Separate quest information, follow-up quests, and companion quests. */
#main .quest-summary-grid:has(+.quest-followups){margin-bottom:0}
#main .quest-followups{margin-top:80px}
@media(max-width:760px){#main .quest-followups{margin-top:56px}}

/* Search popularity on the home page. */
.home-popular-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:40px 0 64px}
.home-popular{padding:28px;min-width:0}
.home-popular>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.home-popular h2{margin:0;font-size:20px}
.home-popular-list{list-style:none;margin:0;padding:0}.home-popular-list li+li{border-top:1px solid var(--gray-800)}
.home-popular-list a{display:flex;align-items:center;gap:14px;min-height:68px;padding:12px 0;color:inherit;text-decoration:none}
.home-popular-list a:hover .home-popular-name{color:var(--accent-yellow)}
.home-popular-rank{width:22px;flex-shrink:0;color:var(--gray-400);text-align:center}.home-popular-list li:nth-child(-n+3) .home-popular-rank{color:var(--accent-yellow)}
.home-popular-image{width:36px;height:40px;object-fit:contain;flex-shrink:0;image-rendering:pixelated}
.home-popular-name{flex:1;min-width:0;overflow-wrap:anywhere}
.home-popular-empty{color:var(--gray-400);padding:28px 0;margin:0;line-height:1.6}
@media(max-width:760px){.home-popular-grid{grid-template-columns:1fr;gap:20px;margin-top:28px}.home-popular{padding:22px}.home-popular h2{font-size:18px}}

/* Shared top edge for every quest objective, including encounter-only monsters. */
.quest-summary-progress tbody>tr>td{vertical-align:top}
.quest-summary-progress .quest-progress-item,
.quest-summary-progress .quest-progress-quantity{align-items:flex-start;min-height:0;line-height:1.65}
.quest-summary-progress .quest-progress-item>.wiki-inline-link{line-height:inherit}
.quest-summary-progress td>:first-child,
.quest-summary-progress .quest-item-acquisition>:first-child{margin-top:0}
.quest-summary-progress .quest-item-acquisition>.item-source-monster:first-child{padding-top:0;padding-bottom:0}
.quest-summary-progress .quest-item-acquisition>.item-source-monster>p:first-child{margin-top:0}
.quest-summary-progress td .quest-object-guide{padding-top:0}

/* Center item and monster portraits with their names inside top-aligned cells. */
.quest-summary-progress .quest-progress-item{align-items:center}

/* Crafting is the first content in an objective cell, so its heading shares the row top. */
.quest-summary-progress .craft-source>h3:first-child{margin-top:0;line-height:1.65}

/* One spacing rule for the progress title, description, tables and NPC cards. */
.quest-summary-progress>.panel:has(>.quest-progress-content){--quest-progress-gap:24px;display:flex;flex-direction:column;gap:var(--quest-progress-gap)}
.quest-summary-progress>.panel>h2:has(+.quest-progress-content){margin:0}
.quest-summary-progress>.panel>.quest-progress-content{gap:var(--quest-progress-gap);margin:0}
.quest-summary-progress>.panel>.quest-progress-content>*{margin-top:0;margin-bottom:0}

/* A heading has trailing font space as well as the section gap; compensate optically. */
.quest-summary-progress>.panel:has(>.quest-progress-content>.quest-progress-note:first-child)>h2{margin-bottom:-4px}

/* Align the first identity line, independently of the acquisition details below it. */
.quest-summary-progress table tbody>tr>td{vertical-align:top}
.quest-summary-progress .quest-progress-item,
.quest-summary-progress .quest-progress-quantity{align-items:center;min-height:42px}
.quest-summary-progress .item-source-monster-link{align-items:flex-start}
.quest-summary-progress .item-source-monster-link>div{gap:6px}
.quest-summary-progress .item-source-monster-link strong{display:flex;align-items:center;min-height:42px}
.quest-summary-progress .craft-source>h3:first-child{display:flex;align-items:center;min-height:42px}
.quest-summary-progress .quest-item-acquisition>.item-source-monster>.item-source-maps:first-child>li:first-child{min-height:42px;align-items:center}

.quest-summary-progress td>.item-source-monster:first-child{padding-top:0}

.quest-summary-progress .quest-reviewed-method>.item-source-monster:first-child{padding-top:0}

/* Shared decorative marker for original quest narrative. */
.quest-progress-note{display:flex;align-items:flex-start;gap:10px}
.quest-progress-note>.quest-dialogue-icon{width:24px;height:24px;flex:0 0 24px;object-fit:contain;image-rendering:pixelated;margin-top:1px}
.quest-progress-note>span{min-width:0}

/* Plain acquisition instructions share the first identity line center. */
.quest-summary-progress .quest-method-text,
.quest-summary-progress .quest-reviewed-method>p:first-child,
.quest-summary-progress .quest-item-acquisition>p:first-child{display:block;box-sizing:border-box;min-height:42px;padding-top:max(0px,calc((42px - 1.65em)/2));margin-top:0;line-height:1.65}

/* Keep the name centered on the objective line without extra space below it. */
.quest-summary-progress .item-source-monster-link>div{padding-top:10.5px;gap:4px}
.quest-summary-progress .item-source-monster-link strong{min-height:0;line-height:21px}

/* Center the complete name/level stack beside the monster portrait. */
.quest-summary-progress .item-source-monster-link{align-items:center}
.quest-summary-progress .item-source-monster-link>div{padding-top:0;gap:4px}

/* Let the objective cell own its outer bottom spacing. */
.quest-summary-progress .quest-item-acquisition>.item-source-monster:last-child,
.quest-summary-progress .quest-reviewed-method>.item-source-monster:last-child{padding-bottom:0}
.quest-summary-progress .item-source-monster>.item-source-maps:last-child>li:last-child{padding-bottom:0}

/* Crafting NPC rows center portraits, locations and fee text together. */
.craft-source table tbody>tr>td,
.quest-summary-progress .craft-source table tbody>tr>td{vertical-align:middle}
:root:not([data-theme="light"]) .craft-source table tbody>tr>td:nth-child(2){color:#fff}

/* Keep map disclosure controls close to the next objective boundary. */
.quest-summary-progress tbody>tr:has(.quest-source-more)>td{padding-bottom:8px}
.quest-summary-progress .item-source-monster:has(>.quest-source-more:last-child){padding-bottom:0}
.quest-summary-progress .quest-source-more:last-child{margin-bottom:0}

/* Equal objective row insets and map rhythm, including first and last entries. */
.quest-summary-progress .quest-progress-content>table>tbody>tr>td{padding-top:24px;padding-bottom:24px}
.quest-summary-progress .item-source-monster>.item-source-maps>li,
.quest-summary-progress .quest-item-acquisition>.item-source-monster>.item-source-maps:first-child>li:first-child,
.quest-summary-progress .item-source-monster>.item-source-maps:last-child>li:last-child{box-sizing:border-box;min-height:42px;padding:8px;align-items:center;line-height:1.5}
.quest-summary-progress .item-source-monster>.item-source-maps{gap:4px}
.quest-summary-progress td>.item-source-monster:last-child{padding-bottom:0}

/* Compact map disclosure spacing in quest objectives. */
.quest-summary-progress .quest-source-more>summary,
.quest-summary-progress .quest-source-collapse{padding:4px 8px;min-height:28px;line-height:20px;box-sizing:border-box}
.quest-summary-progress tbody>tr:has(.quest-source-more)>td{padding-bottom:4px}
.quest-summary-progress .item-source-maps:has(+.quest-source-more){margin-bottom:0}
.quest-summary-progress>.wiki-panel:has(.quest-source-more){padding-bottom:12px}

/* Acquisition cards end at their last object without stacked trailing space. */
.quest-summary-progress td .quest-delivery-guide>.quest-object-guide:last-child{margin-bottom:0;padding-bottom:0}
.quest-summary-progress td .quest-delivery-guide:last-child{margin-bottom:0}

/* Phones: logo and quiz button share the first row; search and settings share the second. */
@media(max-width:620px){.header-quiz-link{order:0;margin-left:auto}.header-settings{order:2;margin-left:0}.header-search{flex:1 1 220px;min-width:220px}}

/* Home backdrop: the picture over #121212 covering the viewport, fading from dark at the top to bright at the bottom. The source is a soft video-style frame, so a light blur hides its compression blocks; the box is oversized so the blurred edges stay off screen. */
body.is-home{position:relative;isolation:isolate}
body.is-home::before{content:"";position:fixed;inset:-24px;z-index:-1;background:var(--home-bg,none) center/cover no-repeat;opacity:0;transition:opacity .7s ease;pointer-events:none;filter:blur(3px) brightness(.8);-webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.18) 28%,rgba(0,0,0,.65) 62%,#000 100%);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.18) 28%,rgba(0,0,0,.65) 62%,#000 100%)}
body.is-home.home-bg-ready::before{opacity:.34}
@media(prefers-reduced-motion:reduce){body.is-home::before{transition:none}}
:root[data-theme="light"] body.is-home::before{display:none}
/* Job-quiz page: the same fixed, faded backdrop as the home page, with the Lith Harbor picture (sharp: the source is a clean 1920x1080). */
body.is-quiz{position:relative;isolation:isolate}
body.is-quiz::before{content:"";position:fixed;inset:0;z-index:-1;background:var(--quiz-bg,none) center/cover no-repeat;opacity:0;transition:opacity .7s ease;pointer-events:none;filter:brightness(.85);-webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.18) 28%,rgba(0,0,0,.65) 62%,#000 100%);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.18) 28%,rgba(0,0,0,.65) 62%,#000 100%)}
body.is-quiz.quiz-bg-ready::before{opacity:.34}
@media(prefers-reduced-motion:reduce){body.is-quiz::before{transition:none}}
:root[data-theme="light"] body.is-quiz::before{display:none}

.wiki-global-search{position:relative}.wiki-global-search .global-search-preview{left:0;right:0;width:100%;text-align:left}
/* Wide screens: the header uses the full width (the 1321px page cap does not apply to it); the menu keeps its size and the search keeps room for its placeholder. */
@media(min-width:1781px){.header-inner{max-width:none;gap:22px}.header-navigation{flex:none}.header-search{flex:0 1 290px;min-width:250px}}

/* Menu tabs sit in the middle of the header; the logo stays at the far left and the search, settings and quiz button at the far right. */
.header-right{display:contents}
@media(min-width:1781px){
 .site-header .brand{flex:1 1 0;justify-content:flex-start}
 .header-navigation{flex:none;justify-content:center}
 .header-right{display:flex;flex:1 1 0;align-items:center;justify-content:flex-end;gap:10px}
 .header-search{margin-left:0;min-width:220px}
}
@media(min-width:761px) and (max-width:1780px){.header-navigation{justify-content:center;gap:clamp(2px,2.2vw,28px)}}

@media(min-width:1500px){.header-inner{max-width:none}}

/* Glass: translucent panels with a blurred, neutral look at what is behind them. The header glasses on every page; the cards glass on the home page, where the backdrop is. */
:root{--glass-bg:color-mix(in srgb,var(--elevation-1) 70%,transparent);--glass-bg-strong:color-mix(in srgb,var(--elevation-1) 84%,transparent);--glass-field:color-mix(in srgb,var(--gray-50) 15%,transparent);--glass-lift:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,0) 50%);--glass-shadow:0 10px 34px rgba(0,0,0,.38);--glass-blur:blur(22px)}
:root[data-theme="light"]{--glass-lift:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0) 46%);--glass-shadow:0 10px 34px rgba(40,60,90,.16)}
/* The header has no fill of its own; it blurs only once the page has scrolled, so content passing under it does not fight with the menu text. */
.site-header{background:transparent;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);box-shadow:none;transition:backdrop-filter .25s ease,-webkit-backdrop-filter .25s ease}
body.is-scrolled .site-header{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
@media(prefers-reduced-motion:reduce){.site-header{transition:none}}
.header-search,.header-settings-button{background:var(--glass-field)}
/* Pop-up menus stay solid: a see-through menu is unreadable over banners and cards. */
body.is-home .home-banner,body.is-home .home-popular{background:var(--glass-lift),var(--glass-bg);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-shadow)}
body.is-home .wiki-search-field{background:var(--glass-bg);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-shadow)}
body.is-home .home-primary-search h1{text-shadow:0 2px 14px rgba(0,0,0,.6)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.site-header{background:var(--elevation-1)}body.is-home .home-banner,body.is-home .home-popular,body.is-home .wiki-search-field{background:var(--elevation-1)}}

/* Home hero: the search is the main feature, so it leads the page like a chat prompt box - big, centered, glowing on focus. The banner and lists follow below it. */
body.is-home main{display:flex;flex-direction:column}
body.is-home .home-primary-search{order:-1;width:100%;max-width:860px;margin:0 auto;padding:clamp(36px,9vh,104px) 0 clamp(30px,5vh,56px)}
body.is-home .home-primary-search h1{margin:0 0 clamp(18px,3vh,30px);font-size:clamp(28px,3.4vw,46px);line-height:1.25;letter-spacing:-.01em;text-shadow:0 2px 22px rgba(0,0,0,.7)}
body.is-home .home-primary-search .wiki-search{gap:12px}
body.is-home .home-primary-search .wiki-search-field{height:68px;min-height:68px!important;border-radius:26px!important;background:var(--glass-field)!important;box-shadow:0 18px 54px rgba(0,0,0,.45);transition:box-shadow .2s ease,background .2s ease}
body.is-home .home-primary-search .wiki-search input::placeholder{color:var(--gray-400)}
body.is-home .home-primary-search .wiki-search-field:focus-within{box-shadow:0 18px 54px rgba(0,0,0,.5),0 0 28px color-mix(in srgb,var(--gray-50) 11%,transparent)!important;outline:none!important}
body.is-home .home-primary-search .wiki-search-field>svg{width:26px;height:26px;margin-left:24px;flex:none}
body.is-home .home-primary-search .wiki-search .wiki-search-field input{height:68px;min-height:68px;font-size:19px;line-height:26px;padding:14px 22px 14px 14px}
body.is-home .home-primary-search .wiki-search>button{height:68px;min-width:104px;padding:0 26px;border-radius:26px;font-size:17px}
@media(max-width:640px){body.is-home .home-primary-search{padding-top:28px}body.is-home .home-primary-search .wiki-search-field,body.is-home .home-primary-search .wiki-search .wiki-search-field input,body.is-home .home-primary-search .wiki-search>button{height:56px;min-height:56px!important}body.is-home .home-primary-search .wiki-search-field{border-radius:20px!important}body.is-home .home-primary-search .wiki-search>button{min-width:72px;padding:0 16px;border-radius:20px;font-size:15px}body.is-home .home-primary-search .wiki-search .wiki-search-field input{font-size:16px}body.is-home .home-primary-search .wiki-search-field>svg{width:22px;height:22px;margin-left:16px}}

/* Home: the big search in the page replaces the header search. Keep the settings and quiz buttons at the right end where the search used to push them. */
body.is-home .header-search{display:none}
@media(max-width:1780px){body.is-home .header-settings{margin-left:auto}}
@media(max-width:620px){body.is-home .header-quiz-link{margin-left:auto}body.is-home .header-settings{order:1;margin-left:0}}
@media(max-width:420px){body.is-home .header-inner{gap:8px}body.is-home .header-quiz-link{padding:0 10px;font-size:11.5px;gap:4px}body.is-home .header-settings{margin-left:0}}

/* Popular items under the hero search: a gold star label followed by as many quick-link tags as fit on the line. */
.home-hot{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px}
.home-hot-label{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--gray-50);font-size:13px;white-space:nowrap}
.home-hot-label b{font-weight:var(--weight-bold)}
.home-hot-star{width:16px;height:16px;fill:var(--accent-yellow)}
.home-hot-list{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;min-width:0;flex:0 1 auto;max-width:100%}
.home-hot-chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:3px 12px 3px 8px;border-radius:8px;background:var(--glass-field);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);color:var(--gray-50);font-size:13px;white-space:nowrap;transition:background .15s,transform .15s}
.home-hot-chip[hidden]{display:none}
.home-hot-chip:hover{transform:translateY(-1px)}
.home-hot-chip:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.home-hot-image{width:22px;height:24px;object-fit:contain;flex:none;image-rendering:pixelated}
@media(max-width:640px){.home-hot{margin-top:16px;align-items:flex-start;flex-wrap:wrap;justify-content:center;gap:8px}.home-hot-list{justify-content:center}.home-hot-chip{min-height:32px;padding:3px 10px 3px 7px;font-size:12px}.home-hot-image{width:20px;height:22px}}

/* Layering: the page backdrop is the dimmest, cards are dark and mostly opaque, controls inside them and the hero search are lighter. Depth comes from fill and shadow, not borders. */
body.is-home .home-primary-search .wiki-search-field{background:var(--glass-lift),color-mix(in srgb,var(--gray-50) 16%,transparent)!important;box-shadow:0 22px 60px rgba(0,0,0,.5)}
body.is-home .home-popular{background:var(--elevation-1);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
body.is-home .home-popular header{padding-bottom:12px}
body.is-home .home-popular-list li{background:color-mix(in srgb,var(--gray-50) 9%,transparent);border-radius:12px}
body.is-home .home-popular-list li+li{margin-top:6px;border-top:0}
body.is-home .home-popular-list li a{padding-left:12px;padding-right:12px}
body.is-home .home-hot-chip{background:color-mix(in srgb,var(--gray-50) 18%,transparent);box-shadow:0 6px 16px rgba(0,0,0,.28)}
body.is-home .home-hot-chip:hover{background:color-mix(in srgb,var(--gray-50) 26%,transparent)}

/* Typing state: the field fills a step lighter than when idle, so the active input is obvious without any border. */
body.is-home .home-primary-search .wiki-search-field:focus-within{background:var(--glass-lift),color-mix(in srgb,var(--gray-50) 27%,transparent)!important}
body.is-home .home-primary-search .wiki-search-field:focus-within input::placeholder{color:var(--gray-300)}

/* Decorative leaf follows the home headline without changing search layout. */
.home-title-copy{position:relative;display:inline-block;isolation:isolate}
.home-title-leaf{position:absolute;right:-23px;top:-22px;width:42px;height:42px;transform:rotate(24deg);transform-origin:center;object-fit:contain;image-rendering:pixelated;z-index:-1;pointer-events:none;user-select:none}
@media(max-width:760px){.home-title-leaf{right:-16px;top:-16px;width:30px;height:30px}.home-title-copy{max-width:calc(100% - 44px)}}

/* Equal vertical spacing around the home search section. */
body.is-home .home-primary-search{padding-top:100px;padding-bottom:100px}


.skill-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.skill-family-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--elevation-1);border-radius:20px;padding:28px 22px;transition:background .15s,transform .18s ease-out}
.skill-family-card:hover{background:var(--elevation-2)}
.skill-family-card img{width:160px;height:140px;object-fit:contain;margin-bottom:20px}
.skill-family-card h2{font-size:24px;margin:0 0 12px}
.skill-family-card p{color:var(--gray-400);font-size:14px;margin:0 0 20px}
.skill-family-card span{color:var(--accent-yellow);font-size:14px}
@media(max-width:900px){.skill-family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.skill-family-grid{grid-template-columns:1fr;gap:16px}.skill-family-card{flex-direction:row;text-align:left;gap:20px;padding:22px}.skill-family-card img{width:88px;height:90px;margin:0}.skill-family-card h2{font-size:21px}}

@media(hover:hover) and (pointer:fine){.skill-family-card:hover{transform:translateY(-4px)}}
.skill-family-card:focus-visible{transform:translateY(-4px)}
@media(prefers-reduced-motion:reduce){.skill-family-card{transition:none}.skill-family-card:hover,.skill-family-card:focus-visible{transform:none}}

/* Site footer: one quiet line of notice, no border, below the content. */
.site-footer{padding:28px 24px 36px;text-align:center}
.site-footer p{margin:0;font-size:12px;line-height:1.7;color:var(--gray-600)}
.site-footer .site-copyright{margin-top:6px;color:var(--gray-500)}

/* Footer text links and the simple text pages they open. */
.site-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin:10px 0 0}
.site-legal a{font-size:12px;color:var(--gray-500);text-decoration:none}
.site-legal a:hover{color:var(--gray-50);text-decoration:underline}
.legal-page{max-width:760px;margin:0 auto;padding:12px 0 40px}
.legal-page h1{margin:0 0 20px;font-size:24px}
.legal-page p{margin:0 0 12px;line-height:1.8;color:var(--gray-200)}
.site-footer .site-copyright a{color:var(--gray-400);text-decoration:underline;text-underline-offset:2px}
.site-footer .site-copyright a:hover{color:var(--gray-50)}
.site-footer .site-copyright .site-sep{color:var(--gray-600)}

.adv-family{scroll-margin-top:96px}.adv-family-filter{margin:0}
.adv-family-filter{margin-bottom:0}
.adv-family{margin:36px 0 96px}.adv-family:last-of-type{margin-bottom:48px}
@media(max-width:600px){.adv-family{margin:28px 0 64px}}
.adv-family{margin:36px 0 144px}.adv-family:last-of-type{margin-bottom:48px}
@media(max-width:600px){.adv-family{margin:28px 0 88px}}
.adv-family-mark{width:20px;height:20px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.adv-detail-hero .ui-button{align-self:flex-start;margin-top:4px}.adv-card-intro .ui-button{display:inline-flex}
.adv-detail-hero.panel{margin-bottom:24px}
@media(max-width:600px){.adv-detail-hero.panel{margin-bottom:20px}}
.adv-detail-overview{margin-bottom:24px}
@media(max-width:600px){.adv-detail-overview{margin-bottom:20px}.adv-walkthrough+.panel{margin-top:20px}}
.adv-npc-text{display:grid;gap:6px}.adv-npc-text>strong{font-size:15px}.adv-npc-town{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--gray-400)}.adv-npc-town>img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}
.adv-npc-text{gap:12px}
.character-preview-fields.character-identity-fields{align-items:start}
.character-preview-fields.character-identity-fields>label{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.4}
.character-preview-fields.character-identity-fields>label>select,.character-preview-fields.character-identity-fields>label>input{height:var(--control-height);min-height:var(--control-height);box-sizing:border-box;font-size:var(--control-font-size);line-height:1.2}
.character-preview-drawer section>h3{margin:0 0 24px}
.character-preview-fields:not(.character-identity-fields){grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 10px}
.character-preview-fields:not(.character-identity-fields)>label:nth-child(n+5){grid-column:span 2}
.character-preview-fields:not(.character-identity-fields)>.wide,.character-preview-fields:not(.character-identity-fields)>.character-reset{grid-column:1/-1}
.character-preview-fields:not(.character-identity-fields)>label:nth-child(-n+4) input{padding-left:12px;padding-right:8px}
.character-preview-fields.character-identity-fields>*{font-size:14px;line-height:1.4}
.character-preview-fields:not(.character-identity-fields)>*:nth-child(n+5){grid-column:span 2}
.character-preview-fields:not(.character-identity-fields)>[data-character-dropdown]{font-size:14px}
.character-preview-fields.character-identity-fields>*{line-height:20px}
.character-preview-fields.character-identity-fields>.ui-select>span,.character-preview-fields.character-identity-fields>div>.ui-select>span{font-size:14px;line-height:20px}
.character-preview-fields.character-identity-fields .ui-select{gap:8px}
.character-preview-fields:not(.character-identity-fields)>*:nth-child(n+5){grid-column:auto}
.character-preview-fields:not(.character-identity-fields)>[data-physical-range]{grid-column:span 2}
.character-preview-fields:not(.character-identity-fields)>label:nth-child(n+5),.character-preview-fields:not(.character-identity-fields)>div:nth-child(n+5){grid-column:auto}
.character-preview-fields:not(.character-identity-fields)>label[data-physical-range]{grid-column:span 2}
.character-preview-fields:not(.character-identity-fields)>label[data-physical-range]{grid-column:auto}
.character-preview-fields:not(.character-identity-fields)>[data-physical-weapon]{grid-column:span 2}
.character-preview-fields:not(.character-identity-fields)>div[data-physical-weapon]:nth-child(n+5){grid-column:span 2}
.character-preview-fields:not(.character-identity-fields){align-items:start}
.character-preview-fields:not(.character-identity-fields)>:is(label,div){font-size:14px;line-height:20px}
.character-preview-fields:not(.character-identity-fields)>label{display:flex;flex-direction:column;gap:8px}
.character-preview-fields:not(.character-identity-fields) .ui-select{gap:8px}
.character-preview-fields:not(.character-identity-fields) .ui-select>span{font-size:14px;line-height:20px}
.character-preview-fields.character-identity-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px}
.character-preview-fields:not(.character-identity-fields)>*:nth-child(n+5){grid-column:auto}
.character-preview-fields>[hidden]{display:none !important}

#character-preview-dialog .character-buff-row{padding:14px 16px;gap:10px 12px;margin-top:10px}
#character-preview-dialog .character-buff-row>small{margin-top:0;line-height:1.6}
#character-preview-dialog .character-buff-row>[data-character-dropdown] summary{min-height:36px !important;height:36px !important;padding:0 12px !important}
.character-buff-gains{color:var(--gray-400)}
#character-preview-dialog .character-buff-launch>span{font-size:14px;line-height:20px;margin-bottom:8px}
#character-preview-dialog .character-buff-launch>button{height:var(--control-height);min-height:var(--control-height);padding:10px 14px;border-radius:var(--control-radius);font-size:var(--control-font-size);line-height:1.2}
#character-preview-dialog .character-buff-row{padding:14px 16px 18px}
#character-preview-dialog .character-buff-row>[data-character-dropdown] summary{background:var(--elevation-5) !important;border-radius:var(--control-radius) !important;padding:0 12px !important;cursor:pointer;transition:background .15s}
#character-preview-dialog .character-buff-row>[data-character-dropdown] summary:hover{background:var(--elevation-7) !important}
#character-preview-dialog .character-buff-row>[data-character-dropdown] details[open] summary,#character-preview-dialog .character-buff-row>[data-character-dropdown] summary:focus-visible{background:var(--elevation-7) !important}
.wiki-card-grid.map-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.wiki-card.map-catalog-card{display:flex;flex-direction:column;padding:12px;gap:0;overflow:hidden}
.map-catalog-card .wiki-card-image{width:100%;aspect-ratio:4/3;height:auto;margin:0;border-radius:12px;display:grid;place-items:center;overflow:hidden}
.map-catalog-card .wiki-card-image .wiki-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.map-catalog-card .wiki-card-body{padding:14px 6px 6px;display:grid;gap:8px}
.map-card-town{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--gray-400)}
.map-card-town>img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}
.map-catalog-card h3{font-size:18px;margin:0;line-height:1.3}
.map-card-counts{margin:0;font-size:13px;color:var(--gray-400)}
@media(max-width:1100px){.wiki-card-grid.map-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.wiki-card-grid.map-card-grid{grid-template-columns:1fr}}
.wiki-card.equipment-catalog-card{position:relative}
.equipment-card-slot{position:absolute;top:14px;right:16px;font-size:12px;line-height:1.4;color:var(--gray-400)}
.equipment-catalog-card .npc-level{font-size:12px;line-height:1.4;padding:3px 8px;border-radius:6px}
.map-catalog-card .wiki-card-body{justify-items:center;text-align:center}
.map-card-town{justify-content:center}
.map-catalog-card .wiki-image[class*="map-zoom-"]{width:auto;height:auto;max-width:none;max-height:none;image-rendering:pixelated}
.map-catalog-card .wiki-image.map-zoom-2{zoom:2}
.map-catalog-card .wiki-image.map-zoom-3{zoom:3}
.wiki-card .wiki-card-tag{display:inline-flex;align-items:center;width:fit-content;max-width:100%;padding:3px 8px;border-radius:6px;font-size:12px;line-height:1.4;margin-bottom:6px;word-break:keep-all}
.map-catalog-card .wiki-card-image{position:relative}
.map-catalog-card .wiki-image:not([class*="map-zoom-"]){position:absolute;inset:0;width:100% !important;height:100% !important;max-width:none;max-height:none;object-fit:contain !important}
.wiki-filters .wiki-level{flex:0 0 160px;min-width:160px}
.wiki-filters .wiki-level .ui-stepper{width:100%}
.wiki-filter-note{margin:10px 0 0;font-size:13px;color:var(--accent-yellow)}
.wiki-image.item-icon-doubled{zoom:.5}
.wiki-filters .quiet-button,.wiki-filters [data-wiki-reset]{height:var(--control-height);min-height:var(--control-height);padding:0 20px;border-radius:var(--control-radius);font-size:var(--control-font-size);line-height:1;align-self:flex-end}

/* Standalone party facts reuse the monster detail responsive cards. */
.party-entry-stats{min-width:0;margin:24px 0}

.party-entry-town-icon{display:inline-block;width:24px;height:24px;object-fit:contain;image-rendering:pixelated;vertical-align:middle;margin-right:8px}

.party-attempt-detail{display:block;margin-top:10px;font-size:14px;font-weight:400;line-height:1.6;color:var(--gray-400)}

/* Match monster details: compact facts, with extra space before major sections. */
#main .party-entry-sections{--page-section-gap:var(--detail-card-gap)}
.party-entry-sections>:is(section,div){margin-block:0}
.party-entry-sections>:is(.party-walkthrough-section,.party-rewards-section){margin-top:var(--detail-major-section-space)}
#main .party-entry-top .entry-hero{margin-bottom:0}
.party-walkthrough-section>.storage-note:empty{display:none}
.party-walkthrough-section>h2+.party-step-timeline{margin-top:0}
.party-reward-grid .party-reward-note{margin-top:10px}
.party-reward-grid .party-reward-note{white-space:normal;font-size:13px;font-weight:500;line-height:1.5;word-break:keep-all}
/* Party walkthrough: quiet prose, one self-contained card per stage. */
.party-guide-step{padding:28px!important;margin:20px 0;border-radius:16px;color:var(--gray-100)}
.party-guide-step h3{font-size:20px;margin:0 0 16px}.party-guide-step h3 .inline-check{font-size:20px;white-space:normal;gap:12px;color:var(--gray-50)}
.party-guide-step .guide-brief{color:var(--gray-400);font-size:16px;line-height:1.9;margin:0 0 18px}
.party-guide-step>p,.party-guide-step .wiki-inline-link,.party-guide-step .source-link{color:var(--gray-400)}
.party-guide-step .wiki-inline-link{display:inline-block;font-size:13px;margin:8px 0 18px;text-decoration:underline;text-underline-offset:4px}
.party-guide-step>h3:not(:first-of-type){margin:24px 0 12px;line-height:1.5}
.party-guide-step>.table-wrap{margin:0}
.party-guide-step table{margin:0}.party-guide-step th,.party-guide-step td{color:var(--gray-200)}
@media(max-width:600px){.party-guide-step{padding:18px!important}.party-guide-step .guide-brief{font-size:14px}.party-guide-step h3 .inline-check{font-size:17px}}

/* Numbered walkthrough cards share the content column, without an external timeline. */
.party-step-timeline{display:grid;gap:16px;margin-top:24px;padding:0}
.party-step-timeline .party-guide-step{position:relative;margin:0;padding:28px!important;border:1px solid var(--elevation-3);border-radius:16px;outline:none}
.party-guide-step>h3:first-of-type{display:flex;align-items:center;gap:14px;margin:0 0 18px;color:var(--gray-50);line-height:1.5}
.party-step-number{display:inline-grid;place-items:center;flex:0 0 36px;height:36px;border-radius:8px;background:var(--elevation-3);color:var(--accent-yellow);font-size:16px;font-variant-numeric:tabular-nums}
.party-step-timeline .is-current .party-step-number{background:var(--accent-yellow);color:#171717}
.party-guide-step>.guide-brief{margin:0;line-height:1.75}
.party-guide-step>:last-child{margin-bottom:0}
@media(max-width:600px){.party-step-timeline .party-guide-step{padding:20px!important}.party-guide-step>h3:first-of-type{font-size:18px;gap:12px;margin-bottom:16px}.party-step-number{flex-basis:32px;height:32px;font-size:14px}}

.party-boss-step{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:32px;align-items:center}
.party-boss-step>h3,.party-boss-step>.guide-brief{grid-column:1}
.party-boss-sprites{grid-column:2;grid-row:1 / 3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:344px;max-width:100%;gap:16px}
.party-boss-sprites>div{display:grid;grid-template-rows:68px 18px;justify-items:center;align-items:end;gap:10px;min-width:0}
.party-boss-sprites .wiki-image{display:block;width:auto;height:auto;max-width:min(96px,100%);max-height:68px;margin:0;padding:0;object-fit:contain;image-rendering:pixelated}
.party-boss-sprites span{display:block;margin:0;line-height:18px;text-align:center;font-size:12px;color:var(--gray-400);white-space:nowrap}
@media(max-width:800px){.party-boss-step{grid-template-columns:1fr}.party-boss-sprites{grid-column:1;grid-row:auto;justify-self:end;margin-top:20px}}

.party-barrel-image{margin:20px 0 0}.party-barrel-image img{display:block;width:333px;max-width:100%;height:auto;border-radius:10px}
.party-reward-title{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 8px}
.party-reward-count{font-size:15px;font-weight:600;color:var(--gray-500);white-space:nowrap}

.party-cat-image{margin:20px 0 0}.party-cat-image img{display:block;width:480px;max-width:100%;height:auto;border-radius:10px}

.party-guide-step .party-guide-objective{color:var(--accent-yellow);font-weight:700}
.party-reward-icon{display:flex;align-items:center;justify-content:center;width:100%;height:64px}
.party-reward-icon img{image-rendering:pixelated;max-width:none;max-height:none}
.party-reward-grid .monster-drop-item{justify-content:flex-start}
.party-reward-title>strong{margin-top:2px}
.party-reward-icon img.party-icon-x1{zoom:.5}.party-reward-icon img.party-icon-x2{zoom:1}.party-reward-icon img.party-icon-x4{zoom:2}.party-reward-icon img.party-icon-x6{zoom:3}

.party-reward-icon img.monster-drop-icon{width:40px;height:40px;max-width:40px;max-height:40px;object-fit:contain;image-rendering:pixelated;zoom:1}
.party-reward-icon{height:40px}

.party-guide-item{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;white-space:nowrap}
.party-guide-item .party-guide-item-icon{display:inline-block;width:20px;height:20px;max-width:none;max-height:none;object-fit:contain;image-rendering:pixelated;margin:0;padding:0}
.party-guide-step h3 .party-guide-item-icon{width:24px;height:24px}
.hunt-rec-variants>section{display:flex;flex-direction:column;gap:12px}
.hunt-rec-variants>section>h3{margin:0;line-height:1.4}
.hunt-rec-variants .hunt-rec-meta{line-height:24px}
.hunt-rec-variants .hunt-rec-tip{font-size:14px;line-height:22px;gap:6px}
.hunt-rec-variants .hunt-rec-tip svg{width:14px;height:14px;margin-top:4px}
.hunt-rec-variants .hunt-rec-context{margin:0;font-size:13px}
.hunt-rec-variants .hunt-rec-tip p{font-size:14px;line-height:22px}
.hunt-rec-variants .hunt-rec-tip p{font-size:13px;line-height:20px;color:var(--gray-400)}
.hunt-rec-variants .hunt-rec-tip svg{margin-top:3px}

.party-step-instructions{padding-left:22px;list-style:decimal}
.party-step-instructions>li{padding-left:4px;margin:0 0 10px}
.party-step-instructions>li:last-child{margin-bottom:0}
.party-step-instructions>li::marker{color:var(--gray-500);font-size:13px}

.party-guide-step>h3.party-guide-table-title{font-size:16px;line-height:1.5}
.party-guide-step h3.party-guide-table-title .party-guide-item-icon{width:18px;height:18px}
.hunt-rec-job{display:inline-flex;align-items:center;gap:6px}
.hunt-rec-job .job-art{display:inline-flex;align-items:center;margin:0;padding:0;background:none}
.hunt-rec-job .job-art img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}
.hunt-rec-job-sep{color:var(--gray-500)}
.hunt-rec-card{position:relative}
.hunt-rec-symbol{position:absolute;top:16px;right:16px;display:flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:10px;background:var(--elevation-2)}
.hunt-rec-symbol img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated}
.hunt-rec-variants>section>h3{line-height:24px}
.hunt-rec-variants .hunt-rec-job{line-height:24px}
.hunt-rec-variants .hunt-rec-job .job-art{width:24px;height:24px;min-width:0;flex:none}
.hunt-rec-variants .hunt-rec-job .job-art img{width:24px;height:24px}
.hunt-rec-variants>section>h3{display:flex;flex-wrap:wrap;align-items:center;min-height:24px}

/* Uniform cropped previews; the link opens the untouched full map. */
.party-guide-maps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:24px 0 0;grid-column:1 / -1}
.party-guide-map{position:relative;margin:0;min-width:0;overflow:hidden;border-radius:12px;background:var(--elevation-1)}
.party-guide-map>a{display:block;position:relative;aspect-ratio:16 / 9;overflow:hidden;cursor:zoom-in}
.party-guide-map img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;margin:0}

.party-guide-map figcaption{position:absolute;top:0;left:0;right:0;z-index:2;pointer-events:none;text-shadow:0 1px 4px #000,0 0 8px #000;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 20px;font-size:14px;line-height:1.5;color:#fff}
.party-guide-map figcaption span{flex:none;margin-left:auto;white-space:nowrap;font-size:12px;color:#d5d5d5}
@media(max-width:600px){.party-guide-maps{grid-template-columns:1fr}}


.party-guide-step>h3.party-coupon-table-title{font-size:14px;color:var(--accent-yellow)}
.hunt-rec-variants .hunt-rec-job-sep{padding:0 12px;white-space:pre}
.hunt-rec-variants>section>h3{row-gap:6px}







.party-guide-map--portrait>a{aspect-ratio:4 / 3}
.party-guide-map--portrait img{width:60%;height:auto;min-height:100%;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);object-fit:cover}

.party-guide-maps:has(img[src$="kerning-coupons-play.webp"]){grid-template-columns:minmax(0,779px)}
.party-guide-map img[src$="kerning-coupons-play.webp"]{object-position:center bottom;image-rendering:auto}

/* Keep puzzle previews compact enough to read the complete arrangement. */
.party-guide-maps:has(img[src$="kerning-barrels-user.png"]){grid-template-columns:minmax(0,480px)}
.party-guide-map:has(img[src$="kerning-barrels-user.png"])>a{aspect-ratio:1}
.party-guide-maps:has(img[src$="kerning-cats-user.png"]){grid-template-columns:minmax(0,633px)}
.party-guide-map:has(img[src$="kerning-cats-user.png"])>a{aspect-ratio:633 / 322}

/* Shared map preview width; every stage uses the same crop presentation. */
.party-guide-map{width:100%;max-width:none;justify-self:stretch}



.party-shadow-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.party-shadow-role{display:flex;align-items:center;gap:20px;padding:20px;background:var(--elevation-1);border-radius:12px}
.party-shadow-art{display:flex;align-items:center;justify-content:center;width:88px;flex:none}
.party-shadow-art img{max-width:88px;max-height:88px;object-fit:contain;image-rendering:pixelated}
.party-shadow-label{font-size:14px;color:var(--accent-yellow)}
.party-shadow-role h4{margin:8px 0;color:var(--gray-50);font-size:18px}
.party-shadow-role p{margin:4px 0;color:var(--gray-400);font-size:14px;line-height:1.6}
@media(max-width:700px){.party-shadow-roles{grid-template-columns:1fr}}

/* Reviewed per-map focal points keep playable terrain in portrait previews. */
.party-guide-map--portrait img{transform:translate(-50%,calc(0% - var(--map-focus-y,50%)))}

/* Attribute-based map geometry works with the site CSP (inline styles are blocked). */
.party-guide-map[data-map-width="56"]{--map-native-width:56px}
.party-guide-map[data-map-width="70"]{--map-native-width:70px}
.party-guide-map[data-map-width="77"]{--map-native-width:77px}
.party-guide-map[data-map-width="80"]{--map-native-width:80px}
.party-guide-map[data-map-width="89"]{--map-native-width:89px}
.party-guide-map[data-map-width="105"]{--map-native-width:105px}
.party-guide-map[data-map-width="107"]{--map-native-width:107px}
.party-guide-map[data-map-width="116"]{--map-native-width:116px}
.party-guide-map[data-map-width="127"]{--map-native-width:127px}
.party-guide-map[data-map-width="133"]{--map-native-width:133px}
.party-guide-map[data-map-width="134"]{--map-native-width:134px}
.party-guide-map[data-map-width="144"]{--map-native-width:144px}
.party-guide-map[data-map-width="146"]{--map-native-width:146px}
.party-guide-map[data-map-width="154"]{--map-native-width:154px}
.party-guide-map[data-map-width="155"]{--map-native-width:155px}
.party-guide-map[data-map-width="157"]{--map-native-width:157px}
.party-guide-map[data-map-width="159"]{--map-native-width:159px}
.party-guide-map[data-map-width="162"]{--map-native-width:162px}
.party-guide-map[data-map-width="167"]{--map-native-width:167px}
.party-guide-map[data-map-width="180"]{--map-native-width:180px}
.party-guide-map[data-map-width="184"]{--map-native-width:184px}
.party-guide-map[data-map-width="192"]{--map-native-width:192px}
.party-guide-map[data-map-width="197"]{--map-native-width:197px}
.party-guide-map[data-map-width="202"]{--map-native-width:202px}
.party-guide-map[data-map-width="204"]{--map-native-width:204px}
.party-guide-map[data-map-width="205"]{--map-native-width:205px}
.party-guide-map[data-map-width="207"]{--map-native-width:207px}
.party-guide-map[data-map-width="214"]{--map-native-width:214px}
.party-guide-map[data-map-width="219"]{--map-native-width:219px}
.party-guide-map[data-map-width="287"]{--map-native-width:287px}
.party-guide-map[data-map-width="351"]{--map-native-width:351px}
.party-guide-map[data-map-width="633"]{--map-native-width:633px}
.party-guide-map[data-map-width="666"]{--map-native-width:666px}
.party-guide-map[data-map-width="778"]{--map-native-width:778px}
.party-guide-map[data-map-width="779"]{--map-native-width:779px}
.party-guide-map[data-map-width="787"]{--map-native-width:787px}
.party-guide-map[data-map-width="791"]{--map-native-width:791px}
.party-guide-map[data-map-width="792"]{--map-native-width:792px}
.party-guide-map[data-map-width="793"]{--map-native-width:793px}
.party-guide-map[data-map-width="796"]{--map-native-width:796px}
.party-guide-map[data-map-width="804"]{--map-native-width:804px}
.party-guide-map[data-map-width="814"]{--map-native-width:814px}
.party-guide-map[data-map-width="815"]{--map-native-width:815px}
.party-guide-map[data-map-width="830"]{--map-native-width:830px}
.party-guide-map[data-map-width="834"]{--map-native-width:834px}
.party-guide-map[data-map-width="886"]{--map-native-width:886px}
.party-guide-map[data-map-width="903"]{--map-native-width:903px}
.party-guide-map[data-map-width="924"]{--map-native-width:924px}
.party-guide-map[data-map-width="1080"]{--map-native-width:1080px}
.party-guide-map[data-map-width="1225"]{--map-native-width:1225px}
.party-guide-map[data-map-width="1265"]{--map-native-width:1265px}
.party-guide-map[data-map-width="1332"]{--map-native-width:1332px}
.party-guide-map[data-map-width="1485"]{--map-native-width:1485px}
.party-guide-map[data-map-width="1494"]{--map-native-width:1494px}
.party-guide-map[data-map-width="1600"]{--map-native-width:1600px}
.party-guide-map[data-map-width="1769"]{--map-native-width:1769px}
.party-guide-map[data-map-width="1801"]{--map-native-width:1801px}
.party-guide-map[data-map-width="1813"]{--map-native-width:1813px}
.party-guide-map[data-map-width="1865"]{--map-native-width:1865px}
.party-guide-map[data-map-width="1881"]{--map-native-width:1881px}
.party-guide-map[data-map-width="1938"]{--map-native-width:1938px}
.party-guide-map[data-map-width="1943"]{--map-native-width:1943px}
.party-guide-map[data-map-width="2005"]{--map-native-width:2005px}
.party-guide-map[data-map-width="2112"]{--map-native-width:2112px}
.party-guide-map[data-map-width="2184"]{--map-native-width:2184px}
.party-guide-map[data-map-width="2185"]{--map-native-width:2185px}
.party-guide-map[data-map-width="2239"]{--map-native-width:2239px}
.party-guide-map[data-map-width="2274"]{--map-native-width:2274px}
.party-guide-map[data-map-width="2325"]{--map-native-width:2325px}
.party-guide-map[data-map-width="2339"]{--map-native-width:2339px}
.party-guide-map[data-map-width="2364"]{--map-native-width:2364px}
.party-guide-map[data-map-width="2389"]{--map-native-width:2389px}
.party-guide-map[data-map-width="2395"]{--map-native-width:2395px}
.party-guide-map[data-map-width="2412"]{--map-native-width:2412px}
.party-guide-map[data-map-width="2492"]{--map-native-width:2492px}
.party-guide-map[data-map-width="2514"]{--map-native-width:2514px}
.party-guide-map[data-map-width="2545"]{--map-native-width:2545px}
.party-guide-map[data-map-width="2603"]{--map-native-width:2603px}
.party-guide-map[data-map-width="2606"]{--map-native-width:2606px}
.party-guide-map[data-map-width="2814"]{--map-native-width:2814px}
.party-guide-map[data-map-width="2836"]{--map-native-width:2836px}
.party-guide-map[data-map-width="2884"]{--map-native-width:2884px}
.party-guide-map[data-map-width="2949"]{--map-native-width:2949px}
.party-guide-map[data-map-width="3159"]{--map-native-width:3159px}
.party-guide-map[data-map-width="3354"]{--map-native-width:3354px}
.party-guide-map[data-map-width="3548"]{--map-native-width:3548px}
.party-guide-map[data-map-width="3787"]{--map-native-width:3787px}
.party-guide-map[data-map-width="3829"]{--map-native-width:3829px}
.party-guide-map[data-map-width="4255"]{--map-native-width:4255px}
.party-guide-map[data-map-width="4899"]{--map-native-width:4899px}
.party-guide-map[data-map-focus="45"]{--map-focus-y:45%}
.party-guide-map[data-map-focus="48"]{--map-focus-y:48%}
.party-guide-map[data-map-focus="49"]{--map-focus-y:49%}
.party-guide-map[data-map-focus="50"]{--map-focus-y:50%}
.party-guide-map[data-map-focus="52"]{--map-focus-y:52%}
.party-guide-map[data-map-focus="53"]{--map-focus-y:53%}
.party-guide-map[data-map-focus="54"]{--map-focus-y:54%}
.party-guide-map[data-map-focus="55"]{--map-focus-y:55%}
.party-guide-map[data-map-focus="58"]{--map-focus-y:58%}
.party-guide-map[data-map-focus="60"]{--map-focus-y:60%}
.party-guide-map[data-map-focus="62"]{--map-focus-y:62%}
.party-guide-map[data-map-focus="68"]{--map-focus-y:68%}
.party-guide-map[data-map-focus="74"]{--map-focus-y:74%}
.party-guide-map[data-map-focus="75"]{--map-focus-y:75%}
.party-guide-map[data-map-focus="78"]{--map-focus-y:78%}
.party-guide-map[data-map-focus="83"]{--map-focus-y:83%}
.hunt-rec-map-image{display:block;color:inherit}
.hunt-rec-map .hunt-rec-map-image>img{height:140px;width:100%;max-width:none;max-height:none;object-fit:contain;image-rendering:pixelated;margin:8px auto 20px}

.hunt-step-route{margin:28px 0 8px}
.hunt-steps{display:flex;gap:0;margin-bottom:36px;overflow-x:auto}
.hunt-step{flex:1 1 0;min-width:96px;display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;color:var(--gray-400);text-decoration:none;padding:4px 8px}
.hunt-step+.hunt-step::before{content:"";position:absolute;top:19px;right:50%;width:100%;height:2px;background:var(--elevation-3)}
.hunt-step-number{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--elevation-2);color:var(--gray-400);font-size:14px;font-weight:700}
.hunt-step-label{font-size:13px}
.hunt-step.is-active{color:var(--accent-yellow)}
.hunt-step.is-active .hunt-step-number{background:var(--accent-yellow);color:#111}
.hunt-step-spots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
@media(max-width:800px){.hunt-step-spots{grid-template-columns:repeat(5,minmax(140px,1fr));overflow-x:auto;padding-bottom:8px}}
.hunt-step-spot{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:12px;background:var(--elevation-1);color:var(--gray-50,#eee);text-decoration:none}
.hunt-step-spot:hover{background:var(--elevation-2)}
.hunt-step-spot strong{font-size:15px}
.hunt-step-spot span{font-size:13px;color:var(--gray-400)}

.hunt-step-route{margin:28px 0 40px;padding:28px;border-radius:24px;background:var(--elevation-1)}
.hunt-step-head{margin-bottom:24px}
.hunt-step-head h2{margin:0;font-size:18px}
.hunt-step-head p{margin:0;font-size:14px;color:var(--gray-400)}
.hunt-step+.hunt-step::before{background:var(--elevation-3)}
.hunt-step-number{background:var(--elevation-3)}
.hunt-step-spot{background:var(--elevation-2)}
.hunt-step-spot:hover{background:var(--elevation-3)}
@media(max-width:700px){.hunt-step-route{padding:20px 16px}}
.hunt-step-spot{background:var(--elevation-3)}
.hunt-step-spot:hover{background:var(--elevation-4)}
.hunt-step-number{background:var(--elevation-4)}
.hunt-step-spot{background:var(--elevation-5)}
.hunt-step-spot:hover{background:var(--elevation-7)}
.hunt-step-number{background:var(--elevation-7)}
.hunt-step+.hunt-step::before{background:var(--elevation-7)}
.hunt-step.is-active .hunt-step-number{background:var(--accent-yellow)}
.hunt-step-spot strong{display:flex;align-items:center;gap:8px}
.hunt-step-spot strong img{width:20px;height:20px;flex:none;object-fit:contain;image-rendering:pixelated}

.party-lp-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:24px 0}
.party-lp-day{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 8px;background:var(--elevation-1);border-radius:12px}
.party-lp-day strong,.party-lp-day span{font-size:14px;color:var(--accent-yellow)}
.party-lp-day img{width:40px;height:32px;object-fit:contain;image-rendering:pixelated}
@media(max-width:600px){.party-lp-days{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Minimap resolution limits the image, never the caption card. */




.party-switch-map figure{margin:16px 0;background:#1f1f1f;border-radius:16px;overflow:hidden}.party-switch-map figcaption{padding:12px 20px;color:#f7ff64;font-weight:700}.party-switch-map svg{display:block;width:100%;height:auto}.party-reward-title small{display:block;flex-basis:100%;margin-top:6px;font-weight:400}

.wiki-card.map-catalog-card{justify-content:center}
.map-card-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--gray-500)}
.map-card-placeholder svg{width:44px;height:44px}
.map-card-placeholder small{font-size:13px;color:var(--gray-500)}
.wiki-card.map-catalog-card{justify-content:flex-start}
.map-catalog-card .wiki-card-body{flex:1;align-content:center}
.wiki-card-grid.map-card-grid{align-items:stretch}
.wiki-card-grid.map-card-grid>.map-catalog-card{align-self:stretch;height:auto}
.map-catalog-card .wiki-card-body{padding:18px 6px}
.map-catalog-card .wiki-card-body{padding:30px 6px 18px}

/* Interaction overlays share the terrain image's exact coordinate system. */
.party-interaction-open{display:block;width:100%;padding:0;border:0;background:#1b1b1b;cursor:zoom-in;text-align:inherit}
.party-interaction-canvas{display:block;position:relative;width:100%}
.party-guide-map .party-interaction-canvas>img,.party-interaction-canvas>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:0;position:static;transform:none}
.party-interaction-canvas>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.party-interaction-legend{display:flex;flex-wrap:wrap;gap:10px 24px;list-style:none;margin:0;padding:20px 16px 18px;font-size:14px;line-height:1.6}
.party-interaction-legend li{display:flex;align-items:baseline;gap:8px;color:var(--gray-300)}
.party-interaction-legend b{display:inline-flex;justify-content:center;min-width:24px;border-radius:50%;background:#f7ff64;color:#151515}
.party-interaction-legend strong{color:var(--gray-100)}
.party-interaction-dialog{width:min(1400px,96vw);max-width:96vw;max-height:94vh;padding:20px;border:1px solid var(--gray-700);border-radius:16px;background:var(--elevation-1);color:var(--gray-100)}
.party-interaction-dialog::backdrop{background:#000b}
.party-interaction-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}
.party-interaction-heading h2{margin:0;font-size:20px}
.party-interaction-heading button{padding:8px 16px;cursor:pointer}
.party-interaction-scroll{max-height:70vh;overflow:auto;background:#1b1b1b;margin-bottom:16px}
.party-interaction-scroll .party-interaction-canvas{min-width:0}
@media(max-width:600px){.party-interaction-legend{font-size:13px}.party-interaction-dialog{padding:12px}}

.party-interaction-dialog[open]{display:flex;flex-direction:column}
.party-interaction-controls{display:flex;gap:8px}
.party-interaction-dialog .party-interaction-scroll{flex:1 1 auto;min-height:120px}
.party-interaction-dialog>.party-interaction-legend{flex:0 0 auto;max-height:22vh;overflow:auto}

/* Shared image rows retain each map's natural scale and align the legends. */
.party-guide-maps{align-items:stretch}
.party-guide-maps>.party-annotated-map{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:0}
.party-guide-maps>.party-annotated-map>.party-interaction-open{align-self:end}
.party-map-focused-preview{display:block;width:100%;height:420px;overflow:hidden}
.party-interaction-open>.party-map-full-canvas{display:none}
.party-interaction-scroll>.party-map-focused-preview{display:none}
.party-interaction-scroll>.party-map-full-canvas{display:block}

.party-guide-maps--six>.party-annotated-map{grid-template-columns:minmax(0,1fr)}
.party-guide-maps--six>.party-annotated-map>.party-interaction-open{aspect-ratio:auto;min-width:0;max-width:100%;display:block}
.party-guide-maps--six .party-map-focused-preview{min-width:0;max-width:100%}

/* Map artwork always uses the same dark canvas, independent of page theme. */
.party-guide-map>a,.party-interaction-canvas,.party-map-focused-preview{background:#1b1b1b}

/* Preview limits never affect the full map in the enlargement dialog. */
.party-guide-map--portrait>.party-interaction-open,.party-guide-map--portrait>a{max-height:420px;overflow:hidden}
@media(max-width:600px){.party-map-focused-preview{height:280px}.party-guide-map--portrait>.party-interaction-open,.party-guide-map--portrait>a{max-height:280px}}

/* Landscape maps keep their full native proportions at the card width. */
.party-guide-map:not(.party-guide-map--portrait)>a{aspect-ratio:auto;max-height:none}
.party-guide-map:not(.party-guide-map--portrait)>a>img{width:100%;height:auto;object-fit:contain;position:static;transform:none}

/* Desktop map viewport: full landscape artwork, focused portrait region. */
@media(min-width:601px){
 .party-guide-map>.party-interaction-open,.party-guide-map>a{height:720px;max-height:720px;aspect-ratio:auto}
 .party-map-focused-preview{height:720px}
 .party-guide-map:not(.party-guide-map--portrait)>a>img{height:100%;object-fit:contain}
}
@media(max-width:600px){.party-guide-map:not(.party-guide-map--portrait) .party-map-focused-preview{height:auto}}

/* All portrait maps fit in the viewport without clipping, including plain-image maps. */
.party-guide-map--portrait>a>img{width:100%;height:100%;min-height:0;object-fit:contain;position:static;transform:none}
@media(max-width:600px){.party-guide-map--portrait>a{height:280px;aspect-ratio:auto}}

.party-rewards-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-bottom:20px}
.party-rewards-heading h2{margin:0}
.party-rewards-heading .npc-exp{margin-left:auto}

/* Full map artwork follows the detail panel width; keep its original aspect. */
.map-detail-scene{width:100%;margin-top:20px}
.map-detail-scene .media-zoom{display:block;width:100%;height:720px;max-width:none;overflow:hidden}
.map-detail-scene .wiki-image{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;image-rendering:pixelated}
.map-detail-npcs{margin-top:20px}

.map-page>.detail-layout{grid-template-columns:minmax(0,1fr);width:100%}
.map-page>.detail-layout>.detail-stack{width:100%}

.map-detail-npc-section>h2{margin:0 0 20px;font-size:22px}
.map-detail-npc-section .map-detail-npcs{margin-top:0}

/* Map detail sections share the same outer and inner spacing. */
#main .map-page{--page-section-gap:24px;--map-heading-gap:16px}
#main .map-page>.entry-hero{margin-bottom:var(--page-section-gap)}
#main .map-page>.detail-layout>.detail-stack>section{margin-block:0}
#main .map-page .detail-stack>section>h2{margin:0 0 var(--map-heading-gap)}
#main .map-page .map-detail-scene{margin-top:0}
#main .map-page .map-detail-npcs{margin-top:0;gap:20px}
@media(max-width:640px){
 #main .map-page{--page-section-gap:20px;--map-heading-gap:14px}
  #main .map-page .map-detail-npcs{gap:16px}
}

.map-detail-monster-section>h2{margin:0 0 24px;font-size:22px}
.map-detail-monsters{gap:20px}
.map-detail-monsters .map-monster-spawn{margin:12px 0 0;color:var(--muted);font-size:14px}
.map-detail-monsters .map-monster-condition{margin:6px 0 0;color:var(--accent-yellow,#eaff45);font-size:13px}.map-monster-card-static{cursor:default}
@media(max-width:640px){.map-detail-monsters{gap:16px}}

.skill-next-section>h2{margin:0 0 20px;font-size:22px}
.skill-next-grid{gap:20px}
@media(max-width:640px){.skill-next-grid{gap:16px}}

/* Recommendation page: title, level route, filters, and results are distinct blocks. */
#main:has(>.hunt-step-route){--hunt-page-gap:64px}
#main:has(>.hunt-step-route)>.page-heading{margin-bottom:var(--hunt-page-gap)}
#main>.hunt-step-route{margin-top:0;margin-bottom:var(--hunt-page-gap)}
#main:has(>.hunt-step-route)>.quest-continent-buttons{margin-top:0;margin-bottom:28px}
#main:has(>.hunt-step-route)>.quest-town-buttons{margin-top:0;margin-bottom:28px}
#main:has(>.hunt-step-route)>.wiki-filters{margin-top:0;margin-bottom:var(--hunt-page-gap)}
@media(max-width:640px){
 #main:has(>.hunt-step-route){--hunt-page-gap:40px}
 #main:has(>.hunt-step-route)>.quest-continent-buttons,
 #main:has(>.hunt-step-route)>.quest-town-buttons{margin-bottom:20px}
}

@media(max-width:600px){.map-detail-scene .media-zoom{height:280px}}

.monster-drop-entry{display:flex;min-width:0}
.monster-drop-entry>.monster-drop-card{width:100%;text-decoration:none}
.monster-drop-entry>.monster-drop-card:hover .monster-drop-name{color:var(--accent-yellow)}

.consumable-page>.detail-layout{grid-template-columns:minmax(0,1fr)}

.consumable-extra-info>h2{margin:0 0 24px;font-size:22px}
.consumable-extra-info>h3{margin:0 0 16px;font-size:16px}
.consumable-shop-places{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.consumable-shop-place{min-width:0;background:var(--elevation-1);border-radius:12px}
.consumable-shop-place>a,.consumable-shop-place>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px;height:100%;font-size:14px}
.consumable-shop-place img{object-fit:contain;image-rendering:pixelated;flex:none}
.consumable-shop-name{flex:1;min-width:70px}
.consumable-shop-price{white-space:nowrap;color:var(--muted)}
.consumable-shop-lowest{font-size:12px;color:var(--accent-yellow);background:var(--elevation-2);padding:3px 6px;border-radius:4px}
@media(max-width:1000px){.consumable-shop-places{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.consumable-shop-places{grid-template-columns:1fr}}

#main .consumable-page{--page-section-gap:88px}
#main .consumable-page>.entry-hero{margin-bottom:var(--detail-card-gap)}
.consumable-summary .monster-stat-grid{display:flex;flex-wrap:wrap}
.consumable-summary .monster-stat-card{flex:1 1 calc((100% - 48px)/4);min-width:0}
@media(max-width:900px){.consumable-summary .monster-stat-card{flex-basis:calc((100% - 16px)/2)}}
@media(max-width:480px){.consumable-summary .monster-stat-card{flex-basis:100%}}
.consumable-description dd,.consumable-description dd p{font-size:15px;font-weight:400;line-height:1.7}
.consumable-summary dd>span{display:block}

.consumable-summary dd>.consumable-meso{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}

.consumable-shop-place>a,.consumable-shop-place>div{flex-wrap:nowrap;gap:8px}
.consumable-shop-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.consumable-shop-name--compact{font-size:12px}
.consumable-shop-name--long{font-size:11px}
.consumable-shop-price,.consumable-shop-lowest{flex-shrink:0;font-size:12px}

#main .consumable-page .detail-stack>section{margin-block:0}

#main .wiki-entry-page>.item-drop-monsters{margin-top:88px;width:100%}.item-drop-monsters>h2{margin:0 0 24px;font-size:24px}.item-drop-monsters .monster-list-grid{width:100%}

#main .wiki-entry-page>.item-reward-quests{margin-top:88px;width:100%}.item-reward-quests>h2{margin:0 0 24px;font-size:24px}.item-reward-quest{min-width:0;display:flex;flex-direction:column;gap:12px}.item-reward-quest>.npc-quest-card{flex:1}.item-quest-reward-kind{margin:0;color:var(--accent-yellow);font-size:14px}

/* Shared monster cards must fit on item, map and catalog pages without JS. */
.monster-list-card{min-width:0;container-type:inline-size}
.monster-list-card .monster-list-stats{max-width:100%;min-width:0;flex-wrap:wrap;gap:4px 8px}
.monster-list-card .monster-list-stats>span{max-width:100%;min-width:0;font-size:clamp(10px,8cqi,13px);line-height:1.5}
.monster-list-card .monster-list-stats .monster-list-separator{display:none}

.wiki-search[data-search-type]{position:relative;overflow:visible}.wiki-search[data-search-type]>.global-search-preview{left:0;right:0;width:100%;text-align:left;z-index:100}

form[data-guide-search],form[data-guide-supplement]{position:relative}form>.guide-live-preview{left:0;right:0;width:100%;z-index:100}

.npc-taxi-card h3{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 8px}
.npc-taxi-town{display:inline-flex;align-items:center;gap:6px}
.npc-taxi-town img{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}
.npc-taxi-arrow{color:var(--gray-500)}

.npc-beauty-card{justify-content:flex-start;gap:10px;padding:16px 8px 14px}
.npc-beauty-card img{width:80px;height:80px;flex:none;object-fit:contain;image-rendering:pixelated}
.npc-beauty-card strong{flex:1;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.4;font-weight:600;word-break:keep-all;overflow-wrap:anywhere;min-height:34px}

.npc-beauty-card img{width:96px;height:96px;object-fit:contain}

.skill-prereq{display:grid;gap:8px;justify-items:start}.skill-prereq small{color:var(--gray-400);font-size:13px;padding-left:4px}
.skill-next-section{margin:48px 0}
.skill-next-section>h2{margin:0 0 20px}
.skill-prereq{gap:12px}
.skill-prereq small{padding-left:6px;line-height:1.4}
.npc-service h3{font-size:15px;font-weight:600;margin:32px 0 12px;color:var(--gray-300,#bbb)}
.npc-service h3:first-of-type{margin-top:40px}
.npc-service h3+.npc-beauty-grid{margin-top:0}
.growth-topology-svg{width:100%;max-height:460px}

.home-banner-slide:nth-child(2){background:#153f64}.home-banner-arrow{font-size:30px;line-height:1}
.nav-label{position:relative;display:inline-block}
.nav-badge{position:absolute;bottom:calc(100% - 1px);right:-16px;font-size:9px;line-height:1;font-weight:800;letter-spacing:.08em;color:transparent;background:linear-gradient(90deg,#a78bfa,#22d3ee);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 0 3px rgba(124,92,255,.9));animation:nav-badge-glow 2.2s ease-in-out infinite;pointer-events:none}
@keyframes nav-badge-glow{0%,100%{filter:drop-shadow(0 0 2px rgba(124,92,255,.7))}50%{filter:drop-shadow(0 0 5px rgba(34,211,238,1))}}
@media(prefers-reduced-motion:reduce){.nav-badge{animation:none}}


.nav-badge-inline{position:static;display:inline-block;margin-left:6px;vertical-align:super;font-size:8px}

.equipment-simulator .equipment-sim-status{margin:0 0 26px}

.equipment-sim-log strong.is-success{color:var(--accent-yellow)}
.equipment-sim-log strong.is-fail{color:#ff8f8f}

#main .wiki-entry-page:has(.equipment-simulator)>.entry-hero{margin-bottom:20px}

.legal-page h2{margin:32px 0 10px;font-size:17px;color:var(--gray-50)}
.legal-page ul{margin:0 0 12px;padding-left:20px;line-height:1.8;color:var(--gray-200)}
.legal-page li+li{margin-top:4px}
.legal-page strong{color:var(--gray-50)}
.legal-page a{color:var(--accent-yellow);text-decoration:underline;text-underline-offset:2px}
.legal-page .legal-date{color:var(--muted);font-size:14px;margin-bottom:24px}

.item-shops{margin-top:28px}.item-shops h2{margin:0 0 16px}.item-shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;list-style:none;padding:0;margin:0}.item-shop-card{display:flex;align-items:center;gap:18px;padding:24px;background:var(--surface,#202020);border-radius:20px;min-width:0}.item-shop-portrait{width:64px;height:72px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}.item-shop-info{flex:1;min-width:0}.item-shop-info h3{margin:0 0 8px}.item-shop-info p{margin:0;color:var(--text-muted,#aaa);line-height:1.5}.item-shop-price{white-space:nowrap;font-size:18px}@media(max-width:480px){.item-shop-card{flex-wrap:wrap;padding:20px}.item-shop-price{margin-left:82px}}

.item-crafting-acquisition,.item-other-acquisition{margin-top:32px;padding:28px;border-radius:24px;background:var(--surface,#202020)}.item-crafting-acquisition>h2,.item-other-acquisition>h2{margin:0 0 20px;font-size:20px}.item-other-acquisition ul{margin:0;padding-left:20px;line-height:1.8}.item-crafting-acquisition .craft-source>h3{margin-top:24px}@media(max-width:600px){.item-crafting-acquisition,.item-other-acquisition{padding:20px}}

.adv-next-stage{margin-top:88px}
.adv-next-stage>h2{font-size:21px;margin:0 0 16px}
.adv-next-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.adv-next-card{display:flex;align-items:center;gap:18px;padding:20px;background:var(--elevation-1);border-radius:16px;color:inherit;text-decoration:none;transition:background .15s}
.adv-next-card:hover{background:var(--elevation-2)}
.adv-next-card img{width:120px;height:105px;object-fit:contain;flex-shrink:0}
.adv-next-card h3{margin:0 0 8px;font-size:18px}
.adv-next-card p{margin:0 0 12px;font-size:14px;line-height:1.6;color:var(--gray-300)}
.adv-next-card span{font-size:13px;color:var(--accent-yellow)}
@media(max-width:600px){.adv-next-card{padding:16px;gap:14px}.adv-next-card img{width:90px;height:79px}}

.adv-step-intro{align-items:center}
.adv-walkthrough .adv-step-intro h3{margin:0 0 4px;line-height:32px}

.adv-npc-location{margin-top:16px}
.adv-npc-location .party-guide-map{margin:0}

.adv-route{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:12px 0 0;font-size:14px;line-height:1.6;color:var(--gray-300)}
.adv-route>span{font-size:12px;color:var(--gray-400);margin-right:4px}
.adv-route b{font-weight:normal}
.adv-route b.is-destination{color:var(--accent-yellow);font-weight:bold}
.adv-route i{font-style:normal;color:var(--gray-500)}

.adv-branch>.adv-branch-goal{flex:1;background:var(--elevation-2);border-radius:8px;text-align:center;color:var(--gray-100)}
.adv-branch-goal strong{color:var(--accent-yellow)}

.adv-step-help-title{display:block;color:var(--accent);font-weight:bold;margin-bottom:15px}
.adv-hall-maps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.adv-hall-maps .adv-route,.adv-hall-maps .adv-route-note{grid-column:1/-1}
.adv-route-note{margin:0;font-size:13px;line-height:1.7;color:var(--gray-400)}
@media(max-width:700px){.adv-hall-maps{grid-template-columns:1fr}}

.adv-step-people{align-items:flex-end}

.npc-map-viewer>.section-note{margin:0;padding:12px 24px 18px}

.adv-walkthrough>ol>li{padding-bottom:56px}
.adv-walkthrough>ol>li:last-child{padding-bottom:0}

.adv-walkthrough .adv-step-help{padding:20px 24px;border-radius:12px}
.adv-walkthrough .adv-step-help-title{margin:0 0 16px;font-size:14px}
.adv-walkthrough .adv-step-help>div{margin-top:0}
.adv-tip-group+.adv-tip-group,.adv-tip-group+.adv-tip-note{margin-top:16px}
.adv-tip-label{display:block;margin-bottom:8px;font-size:12px;color:var(--gray-400)}
.adv-tip-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px}
.adv-tip-item{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--gray-100)}
.adv-walkthrough .adv-tip-item .wiki-image{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
.adv-tip-arrow{color:var(--gray-500)}
.adv-tip-group ul{margin:0;padding-left:18px}
.adv-tip-note{margin:0;font-size:13px;line-height:1.7;color:var(--gray-400)}

.adv-walkthrough .adv-step-help .adv-tip-group+.adv-tip-group{margin-top:24px}
.adv-walkthrough .adv-step-help .adv-tip-group+.adv-tip-note,.adv-walkthrough .adv-step-help .adv-npc-location+.adv-tip-note{margin-top:20px}
.adv-walkthrough .adv-step-help .adv-tip-label{margin-bottom:10px}
.adv-walkthrough .adv-step-help>.adv-npc-location{margin-top:0}

.adv-place-lead .adv-route-figure{margin:0;padding:24px;border-radius:16px}
.adv-place-lead .adv-route-figure>a>svg{height:360px}
.adv-place-lead .adv-route{margin-top:14px}
@media(max-width:600px){.adv-place-lead .adv-route-figure{padding:16px}.adv-place-lead .adv-route-figure>a>svg{height:260px}}

/* Location blocks: map, then the way there, then a short note — one rhythm everywhere. */
.adv-npc-location>.adv-route,.adv-npc-location .adv-route{margin:16px 0 0;line-height:1.7}
.adv-npc-location .adv-route+.adv-route-note,.adv-npc-location .adv-route-note{margin:8px 0 0;line-height:1.7}
.adv-npc-location .adv-route>span{margin-right:8px}
.adv-route>.adv-route-label{display:inline-flex;align-items:center;gap:6px;color:var(--accent-yellow,#eaff45)}
.adv-route-label .quest-prerequisite-icon{margin:0}
.adv-route>.adv-route-label{font-size:inherit;line-height:1}
.adv-route-label .quest-prerequisite-icon{display:block;width:11px;height:15px}

/* Tip boxes: the same 24px on every side; nothing inside adds extra space at the edges. */
.adv-walkthrough .adv-step-help{padding:24px}
.adv-walkthrough .adv-step-help p{margin:0 0 8px}
.adv-walkthrough .adv-step-help>:last-child,.adv-walkthrough .adv-step-help>div>:last-child,.adv-walkthrough .adv-step-help .adv-tip-group>:last-child,.adv-walkthrough .adv-step-help li:last-child{margin-bottom:0}
.adv-walkthrough .adv-step-help>div>:first-child{margin-top:0}
@media(max-width:600px){.adv-walkthrough .adv-step-help{padding:20px}}
.adv-tip-assets .adv-holy-stone{margin-left:auto;display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:320px}
.adv-tip-assets .adv-holy-stone .adv-npc .wiki-image{width:96px;height:120px}
.adv-holy-stone-hint{margin:0;font-size:13px;line-height:1.7;color:var(--accent-yellow,#eaff45)}
@media(max-width:600px){.adv-tip-assets .adv-holy-stone{margin-left:0;max-width:none}}
.adv-walkthrough .adv-step-help .adv-holy-stone .adv-npc .wiki-image,.adv-walkthrough .adv-step-help .adv-holy-stone .adv-npc>.wiki-image{width:96px;height:120px;max-width:none;max-height:none}
.adv-walkthrough .adv-step-help h4{margin:32px 0 14px;font-size:14px}
.adv-walkthrough .adv-step-help ul+h4,.adv-walkthrough .adv-step-help .adv-tip-route+ul{margin-top:20px}
.adv-walkthrough .adv-step-help ul{margin:16px 0 0}
.adv-walkthrough .adv-step-help ul+h4{margin-top:32px}
.adv-walkthrough .adv-tip-item--large{text-decoration:none}
.adv-walkthrough .adv-tip-item--large .wiki-image{width:64px;height:80px}
.adv-walkthrough .adv-step-help .adv-tip-note--accent{margin-top:12px;color:var(--accent-yellow,#eaff45)}
/* Tip box rhythm: title 20 → sections 28 apart → label 12 → body; list rows 6. */
.adv-walkthrough .adv-step-help>.adv-step-help-title{margin:0 0 20px}
.adv-walkthrough .adv-step-help>div>*,.adv-walkthrough .adv-step-help>.adv-tip-group{margin:0}
.adv-walkthrough .adv-step-help>div>*+*,.adv-walkthrough .adv-step-help>.adv-tip-group+.adv-tip-group,.adv-walkthrough .adv-step-help .adv-tip-group+.adv-tip-group{margin-top:28px}
.adv-walkthrough .adv-step-help .adv-tip-group>.adv-tip-label{margin:0 0 12px}
.adv-walkthrough .adv-step-help .adv-tip-group ul{margin:0;padding-left:18px}
.adv-walkthrough .adv-step-help .adv-tip-group li{margin:0;line-height:1.7}
.adv-walkthrough .adv-step-help .adv-tip-group li+li{margin-top:6px}
.adv-walkthrough .adv-step-help>div>.adv-guide-link{margin-top:20px}
/* 가는 길: every map on the route as a picture card, arrows between. */
.adv-walkthrough .adv-route.adv-route-strip{display:block}
.adv-route-strip>.adv-route-label{display:flex;margin:0 0 12px}
.adv-route-maps{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 32px;margin:0;padding:0;list-style:none}
.adv-route-maps>li{position:relative;width:132px;margin:0}
.adv-route-maps>li+li::before{content:"→";position:absolute;left:-23px;top:30px;color:var(--gray-500);font-size:14px;line-height:1}
.adv-route-maps a,.adv-route-card{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--gray-300)}
.adv-walkthrough .adv-route-maps .wiki-image{display:block;width:132px;height:76px;max-width:none;max-height:none;object-fit:cover;border-radius:8px;background:var(--elevation-1)}
.adv-route-maps b{font-size:13px;font-weight:normal;line-height:1.5;word-break:keep-all}
.adv-route-maps>li.is-destination b{color:var(--accent-yellow,#eaff45);font-weight:bold}
.adv-route-maps a>span,.adv-route-card>span{font-size:12px;line-height:1;color:var(--gray-400)}
.adv-route-maps a:hover b{text-decoration:underline}
@media(max-width:600px){.adv-route-maps{gap:12px 28px}.adv-route-maps>li{width:112px}.adv-walkthrough .adv-route-maps .wiki-image{width:112px;height:64px}.adv-route-maps>li+li::before{left:-21px;top:24px}}
.adv-npc-location>.adv-route+.adv-route{margin-top:8px}
.adv-branch-goal{text-decoration:none}
/* Advancement maps take the map's own proportions, so no empty band sits above or below the picture. */
.adv-walkthrough .party-guide-map .party-map-focused-preview{height:auto!important;max-height:720px}
.adv-walkthrough .party-guide-map .party-interaction-open{height:auto!important;min-height:0!important}
/* A map that follows a route line starts a new block: keep it clearly apart from the map that route belongs to. */
.adv-walkthrough .adv-npc-location>.adv-route+.party-guide-map,.adv-walkthrough .adv-npc-location>.adv-route+.adv-route-note+.party-guide-map,.adv-walkthrough .adv-npc-location+.adv-npc-location{margin-top:48px}
/* Prerequisite skills span the full content width, like the panels above them. */
.skill-next-section .skill-next-grid:has(.skill-prereq){grid-template-columns:1fr}
.skill-prereq{justify-items:stretch}
.skill-prereq>.wiki-card,.skill-prereq>a{width:100%;max-width:none}
.skill-prereq .skill-prereq-level{display:block;margin-top:6px;font-size:13px;line-height:1.4;color:var(--gray-400)}
/* Level cards sit under their own heading, edge to edge with the boxes above, like the prerequisite cards. */
.skill-level-section>.skill-level-grid{margin-top:0}
.detail-stack>.skill-next-section{margin-bottom:0}
.detail-stack>.skill-next-section+.skill-next-section{margin-top:0}
.skill-prereq .wiki-card-body>.skill-prereq-level{padding:0;margin:8px 0 0}
/* Prerequisite card text: tag, name and required level spaced evenly. */
.skill-prereq .wiki-card-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.skill-prereq .wiki-card-body>*{margin:0!important}
.skill-prereq .wiki-card-body>.wiki-card-id{display:none}
/* Home: 추천 사냥터 sits beside 인기 아이템·인기 퀘스트 in the same list style. */
/* 인기 아이템·인기 퀘스트 on top, 추천 사냥터 below in the first column, same width. */
.home-popular-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-hunt>header{flex-wrap:nowrap}
.home-hunt-more{font-size:14px;color:var(--accent-yellow);text-decoration:none;white-space:nowrap}
.home-hunt .home-hunt-map{width:40px;height:40px;object-fit:cover;border-radius:6px}
.home-hunt-level{flex-shrink:0;font-size:13px;color:var(--gray-400)}
.home-hunt-empty{margin:0;color:var(--gray-400)}

@media(max-width:760px){.home-popular-grid{grid-template-columns:1fr}}
.npc-quest-card[data-quest-id]{cursor:pointer}
.home-popular.home-hunt .home-popular>header{height:36px}
.world-route-intermediate>summary{color:var(--accent-yellow,#eaff45)}
