:root{--bg:#f3f3eb;--paper:#fffef8;--ink:#263b35;--muted:#7d8674;--line:#d9ddcf;--wash:#e9eddd;--gold:#ded7b6;--dark:#22372f}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:94px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.8 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);background:var(--paper);border-radius:4px;padding:7px 12px}button:hover,a:hover{color:#738052}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #98a76d;outline-offset:3px}.skip{position:fixed;top:-100px;z-index:99;background:var(--paper);padding:10px}.skip:focus{top:0}.topbar{height:76px;position:sticky;top:0;z-index:20;background:#fffef9f5;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:45px;padding:0 3.5vw;backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:16px;white-space:nowrap}.brand>span{font-size:37px;color:#7f8e7c}.brand div{font-family:"Songti SC","Noto Serif SC",serif;font-size:23px;line-height:1.25;letter-spacing:3px}.brand small{display:block;font:8px/2 sans-serif;letter-spacing:2px}.topbar nav{height:100%;display:flex;gap:28px;align-items:stretch}.topbar nav a{display:flex;align-items:center;font-size:12px;border-bottom:2px solid transparent}.topbar nav a.active{border-color:var(--ink)}.source-nav{margin-left:auto;font-size:11px;border:1px solid var(--line);padding:7px 12px}.layout{display:grid;grid-template-columns:244px minmax(0,1fr)}aside{position:sticky;top:76px;height:calc(100vh - 76px);padding:34px 24px;border-right:1px solid var(--line);overflow:auto}h1,h2,h3{font-family:"Songti SC","Noto Serif SC",serif;font-weight:600;line-height:1.4}aside h2{font-size:25px;margin:14px 0 5px}.side-note{color:var(--muted);font-size:11px;margin:0 0 30px}.eyebrow{font:9px/1.8 sans-serif;letter-spacing:2px;color:var(--muted);margin:0}#categories{display:flex;flex-direction:column;gap:7px}#categories button{border:0;background:transparent;text-align:left;display:flex;gap:8px;align-items:center;padding:12px 11px;font-size:12px}#categories button.active{background:#e3e9d5;font-weight:600}#categories small{margin-left:auto;color:var(--muted);font:10px sans-serif}.side-foot{border-top:1px solid var(--line);margin-top:42px;padding-top:22px;font-size:10px;color:var(--muted)}.side-foot button{font-size:10px;background:transparent;padding:0;border:0}.side-foot a{display:block;margin-top:18px}main{padding:28px 36px 0;min-width:0}.breadcrumbs{font-size:10px;color:var(--muted);margin-bottom:24px}.hero{position:relative;background:linear-gradient(115deg,#20332d,#35483b);color:#e7e6cb;border-radius:7px;padding:36px 38px;overflow:hidden}.hero .eyebrow{color:#a8b69b}h1{font-size:42px;letter-spacing:3px;margin:14px 0 8px}.hero>p:not(.eyebrow){color:#c3cbb5;font-size:12px}.hero-stats{display:flex;gap:40px;margin-top:32px;position:relative;z-index:1}.hero-stats strong{display:block;font:600 27px/1.2 Georgia,serif}.hero-stats span{display:block;font-size:9px;margin-top:7px;color:#aebaa2}.hero-mark{position:absolute;right:65px;top:22px;font:170px/1.3 Georgia,serif;color:#d5ddba15;transform:rotate(-10deg)}.coverage{color:var(--muted);font-size:11px;padding:10px 0 27px;margin:0 0 28px;border-bottom:1px solid var(--line)}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.section-heading h2{font-size:28px;margin:8px 0 0}.section-heading>span{font-size:11px;color:var(--muted)}#search-form{display:flex;gap:12px}.search{background:var(--paper);border:1px solid var(--line);display:flex;align-items:center;gap:15px;padding:10px 16px;flex:1;border-radius:4px}.search>span{font-size:20px;color:#94a17e}.search input{border:0;background:transparent;outline:0;min-width:0;flex:1;font-size:12px}.search kbd{font-size:10px;color:#a9b29a;border:1px solid var(--line);padding:0 4px;line-height:1.3}select{border:1px solid var(--line);border-radius:4px;background:var(--paper);padding:7px 10px;font-size:11px;max-width:260px}.filters{display:flex;gap:20px;align-items:center;margin:16px 0 28px;flex-wrap:wrap}.filters label{font-size:10px;color:var(--muted);display:flex;gap:8px;align-items:center}.filters select{font-size:10px;max-width:220px;background:#f8f9f0}.filters button{margin-left:auto;font-size:10px;padding:4px 8px;border:0;background:transparent;color:var(--muted)}.result-bar{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:10px}.list-table{border:1px solid var(--line);border-radius:5px;overflow:hidden;background:var(--paper)}.list-row{display:grid;grid-template-columns:minmax(220px,2fr) minmax(100px,1fr) minmax(100px,1fr) 22px;align-items:center;gap:16px;padding:18px 18px;border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.list-row:hover{background:#edf1e3}.row-head{display:flex;align-items:center;gap:14px;min-width:0}.thumb{width:48px;height:48px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}.enemy-thumb{width:64px;height:64px}.row-head h3{font-size:17px;margin:0 0 4px}.row-head p{font-size:10px;color:var(--muted);margin:0}.row-meta{font-size:11px;line-height:1.7}.row-meta small{display:block;color:var(--muted);font-size:9px}.badges{display:flex;gap:5px;flex-wrap:wrap}.badge{font:10px/1.7 sans-serif;background:var(--wash);padding:3px 6px;border-radius:2px}.badge.warn{background:#f1e6d2;color:#8c713b}.row-arrow{color:#9aa888}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.shop-card{padding:22px 20px;border:1px solid var(--line);background:var(--paper);border-radius:5px;display:flex;flex-direction:column}.shop-card:hover{border-color:#a1ac83;box-shadow:0 8px 20px #263b350a}.shop-card h3{font-size:20px;margin:14px 0 7px}.shop-card p{font-size:11px;color:var(--muted)}.shop-card .inventory-preview{font-size:11px;line-height:1.8;min-height:60px;margin:8px 0 20px}.shop-card .card-bottom{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:13px;margin-top:auto;display:flex;justify-content:space-between}.pagination{display:flex;justify-content:center;gap:8px;align-items:center;margin:28px 0 48px;flex-wrap:wrap}.pagination button{font-size:11px;padding:7px 11px}.pagination button.active{background:var(--ink);color:var(--paper)}.pagination span{font-size:10px;color:var(--muted);margin:0 8px}.connections{margin:45px 0 35px;border-top:1px solid var(--line);padding-top:30px;display:flex;align-items:center;gap:15px}.connections div{flex:1}.connections h2{font-size:23px;margin:7px 0}.connections p{font-size:11px;color:var(--muted)}.connections>a{font-size:11px;padding:16px;border:1px solid var(--line);border-radius:4px;background:var(--paper)}footer{border-top:1px solid var(--line);padding:25px 0;display:flex;gap:20px;align-items:center;font-size:12px}footer span{font-size:9px;color:var(--muted)}footer a{margin-left:auto;font-size:10px}dialog{width:min(1020px,94vw);max-height:90vh;border:1px solid var(--line);border-radius:8px;padding:0;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#162d2bab;backdrop-filter:blur(5px)}.dialog-top{position:sticky;top:0;background:var(--paper);z-index:3;display:flex;align-items:center;gap:15px;padding:14px 24px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}.dialog-top #close{margin-left:auto;border:0;background:var(--wash);font-size:25px;padding:0;line-height:29px;width:29px;border-radius:50%}.dialog-top #back{font-size:10px}#detail-content{padding:32px 36px}.detail-heading{display:flex;gap:22px;align-items:center;margin-bottom:25px}.detail-heading img{width:96px;height:96px;image-rendering:pixelated;object-fit:contain}.detail-heading h2{font-size:34px;margin:8px 0}.detail-heading p{margin:0;color:var(--muted);font-size:11px}.detail-nav{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.detail-nav a{font-size:10px;border-bottom:1px solid var(--line)}.description{white-space:pre-line;font-size:14px;padding:22px 24px;background:var(--wash);border-radius:4px;margin:20px 0}.detail-section{margin:32px 0 15px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:21px;display:flex;justify-content:space-between;align-items:center}.detail-section small{font:10px sans-serif;color:var(--muted)}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.fields>div{background:#edf0e1;padding:12px 14px;border-radius:3px;min-width:0}.fields dt{font-size:9px;color:var(--muted)}.fields dd{font-size:13px;margin:6px 0 0;overflow-wrap:anywhere}.fields.stats{grid-template-columns:repeat(5,minmax(0,1fr))}.fields.stats dd{font:600 23px Georgia,serif}.note{font-size:11px;color:var(--muted);line-height:1.9}.notice{padding:15px 18px;background:#f4eddd;border-left:3px solid #c8ae70;font-size:11px;white-space:pre-line}.data-table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.data-table th{font-size:10px;color:var(--muted);font-weight:400;background:#f0f2e7}.data-table th,.data-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}.data-table a{border-bottom:1px solid #c4cdaf}.table-wrap{overflow-x:auto}.pills{display:flex;gap:8px;flex-wrap:wrap}.pills a{background:#edf0e2;font-size:11px;padding:7px 10px;border:1px solid var(--line);border-radius:3px;display:inline-flex;align-items:center;gap:7px}.pills img{width:26px;height:26px;object-fit:contain;image-rendering:pixelated}.location-card{border:1px solid var(--line);border-radius:4px;padding:15px 17px;margin-bottom:10px}.location-card h4{margin:0 0 6px;font-size:14px}.location-card p{font-size:11px;color:var(--muted);margin:4px 0}.location-card details{font-size:10px}.location-card ul{padding-left:20px}.location-card li{margin:8px 0;overflow-wrap:anywhere}details{margin:16px 0}summary{cursor:pointer;font-size:11px;color:var(--muted)}pre{font:11px/1.7 ui-monospace,monospace;background:#eef0e7;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:4px}.empty{padding:45px 20px;border:1px dashed var(--line);text-align:center;color:var(--muted);font-size:12px}.atlas-links{display:flex;gap:8px;flex-wrap:wrap}.atlas-links a{font-size:10px;border:1px solid var(--line);padding:8px}.search-hint{font-size:10px;color:var(--muted)}@media(min-width:1500px){main{padding-left:52px;padding-right:52px}.layout{grid-template-columns:265px minmax(0,1fr)}.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px){.topbar{gap:25px}.topbar nav{gap:18px}.layout{grid-template-columns:210px minmax(0,1fr)}aside{padding:28px 18px}main{padding:25px 24px 0}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.list-row{grid-template-columns:minmax(190px,2fr) 100px 95px 12px;gap:10px;padding:14px}.hero-stats{gap:27px}.connections{flex-wrap:wrap}.connections div{flex-basis:100%}}@media(max-width:800px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;gap:12px;padding:13px 20px}.brand div{font-size:19px}.brand>span{font-size:28px}.topbar nav{order:3;width:100%;height:32px;gap:25px;overflow:auto}.topbar nav a{white-space:nowrap;font-size:11px}.source-nav{font-size:9px}.layout{display:block}aside{position:static;height:auto;padding:24px 20px 0;border:0}aside>.eyebrow,aside>h2,.side-note,.side-foot{display:none}#categories{flex-direction:row;overflow:auto;gap:7px}#categories button{white-space:nowrap;padding:8px 12px}#categories small{margin-left:6px}main{padding:20px}.hero{padding:26px}.hero h1{font-size:34px}.hero-stats{gap:22px;flex-wrap:wrap}.hero-stats strong{font-size:25px}.hero-mark{right:25px;top:45px;font-size:120px}.hero>p:not(.eyebrow){font-size:11px}.filters{gap:12px}.filters label{flex-direction:column;align-items:start}.filters select{max-width:180px}.filters button{margin-left:0}.list-row{grid-template-columns:1fr 90px 12px}.list-row>.row-meta:nth-last-child(2){display:none}.enemy-thumb{width:54px;height:54px}.row-head h3{font-size:16px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.result-bar{gap:12px}.result-bar>span:last-child{display:none}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fields.stats{grid-template-columns:repeat(3,minmax(0,1fr))}#detail-content{padding:24px}.detail-heading img{width:72px;height:72px}.detail-heading h2{font-size:29px}.dialog-top{padding:12px 18px}.connections>a{padding:12px;font-size:10px}footer{flex-wrap:wrap}footer span{flex-basis:100%}footer a{margin-left:0}}@media(max-width:450px){.shop-grid{grid-template-columns:1fr}.filters{gap:12px 16px}#search-form>select{max-width:100px}.search{padding:10px 12px;gap:8px}.search input{font-size:11px}.hero-stats{gap:18px}.hero-stats>div{min-width:65px}.row-head{gap:10px}.thumb{width:35px;height:35px}.enemy-thumb{width:46px;height:46px}.list-row{padding:13px 10px;gap:8px;grid-template-columns:1fr 75px 10px}.row-meta{font-size:10px}.row-head h3{font-size:15px}.row-head p{font-size:9px}#detail-content{padding:22px 18px}.detail-heading{gap:13px}.detail-heading h2{font-size:25px}.detail-heading img{width:64px;height:64px}.fields.stats dd{font-size:21px}.data-table th,.data-table td{padding:10px 8px;min-width:65px}}
/* Guide-oriented architecture: compact global navigation, horizontal categories, dense readable lists. */
body{background-color:#f6f4ec;background-image:radial-gradient(#949c971c .65px,transparent .65px);background-size:17px 17px}.topbar{background:#e6ebeff5;box-shadow:0 1px 0 #fff inset;height:72px}.layout{display:block;max-width:1320px;margin:auto}main{padding:27px 32px 0}aside{position:static;height:auto;padding:0;margin:0 0 22px;border:0;overflow:visible}aside>.eyebrow,aside>h2,aside>.side-note,aside>.side-foot{display:none}#categories{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}#categories button{border:1px solid var(--line);background:#fffef7;padding:8px 14px;font-size:11px}#categories button.active{border-color:#9da991;background:#e6ebdb}#categories small{margin-left:8px}.hero{background:transparent;color:var(--ink);border-radius:0;padding:0}.hero .eyebrow{color:#899483}.hero h1{font-size:38px;letter-spacing:1px}.hero>p:not(.eyebrow){color:var(--muted);margin:8px 0 0}.hero-mark{display:none}.hero-stats{gap:32px;flex-wrap:wrap;margin:23px 0 0;padding:16px 0;border-top:1px solid var(--line)}.hero-stats strong{font-size:24px;color:#374c40}.hero-stats span{color:var(--muted)}.coverage{padding:0 0 18px;margin:0 0 20px}.section-heading h2{font-size:24px}.list-table,.shop-card{background:#fffef9}.quest-list{border-top:1px solid var(--line)}.task-card{padding:22px 20px;border:1px solid var(--line);border-top:0;background:#fffef8}.task-main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:30px}.task-main h3{font-size:21px;margin:8px 0}.task-main h3 a:hover{border-bottom:1px solid #9bab86}.task-main .note{margin:6px 0}.task-rewards{display:flex;flex-direction:column;gap:8px}.task-rewards .pills a{padding:5px 8px;font-size:10px}.task-actions{display:flex;gap:20px;align-items:start;margin-top:12px}.task-actions>details{flex:1;margin:0}.task-actions>details>summary{color:#526b55;display:inline-block;border-bottom:1px dashed #a5b293;padding-bottom:2px}.task-actions>a{font-size:10px;color:var(--muted);margin-top:2px}.step-list{list-style:none;padding:0;margin:20px 0;counter-reset:step}.step-list>li{counter-increment:step;position:relative;padding:0 0 22px 39px;border-left:1px solid #d2dbc4;margin-left:10px}.step-list>li:before{content:counter(step);position:absolute;left:-12px;top:0;width:24px;height:24px;border-radius:50%;background:#e3e9d7;display:grid;place-items:center;color:#60784f;font:11px Georgia,serif}.step-list>li:last-child{border:0;padding-bottom:0}.step-list strong{font-size:13px;font-weight:500}.step-list p{font-size:12px;line-height:1.9;color:#7d8874;white-space:pre-line;margin:7px 0}.task-card .step-list{padding-top:4px}.task-card .step-list>li>strong{font-size:12px}.task-card .step-list>li>p{font-size:11px}.detail-heading h2{font-size:32px}h1,h2,h3{font-family:"Songti SC","Noto Serif SC",serif}#categories button{font-family:inherit}@media(max-width:800px){.topbar{height:auto;min-height:68px}.layout{display:block}main{padding:22px 20px 0}aside{padding:0;margin:0 0 22px}#categories{overflow:visible}#categories button{padding:7px 11px;font-size:10px}.hero{padding:0}.hero h1{font-size:32px}.hero-stats{gap:24px}.task-main{grid-template-columns:1fr;gap:12px}.task-card{padding:20px 17px}.task-main h3{font-size:19px}.task-rewards{margin-top:0}.task-main .pills{gap:5px}.task-actions{gap:10px}.task-actions>a{white-space:nowrap}.filters{margin-bottom:22px}.hero>p:not(.eyebrow){font-size:12px}.hero-stats strong{font-size:23px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{scroll-behavior:auto!important}}

/* Both enemy parameter rows share one quiet panel and the same typography. */
#detail:has(.enemy-detail){width:min(1200px,94vw)}
.enemy-detail .enemy-parameters{border:1px solid var(--line);border-radius:5px;overflow:hidden;margin:18px 0 30px;background:#fafbf5}
.enemy-detail .enemy-stat-scroll{border-bottom:1px solid var(--line)}
.enemy-detail .enemy-stats{grid-template-columns:repeat(auto-fit,minmax(124px,1fr));gap:0;margin:0}
.enemy-detail .enemy-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(124px,1fr));gap:0;margin:0;padding:0}
.enemy-detail .enemy-parameters .fields>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:88px;min-width:124px;padding:15px 12px;background:transparent;border-radius:0;border-right:1px solid var(--line)}
.enemy-detail .enemy-meta>div{border-bottom:1px solid var(--line)}
.enemy-detail .enemy-parameters .fields>div:last-child{border-right:0}
.enemy-detail .enemy-parameters dt{font:400 14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:#52634e;white-space:nowrap}
.enemy-detail .enemy-parameters dd{font:600 18px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;margin:0;color:#284538;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.enemy-detail .enemy-meta:focus-visible,.enemy-detail .enemy-stat-scroll:focus-visible{outline:2px solid #98a76d;outline-offset:-2px}

/* Match the compact attribute and status strips used in character details. */
.enemy-detail .enemy-resistance{border:1px solid var(--line);border-radius:4px;overflow:hidden}
.enemy-detail .resistance-strip{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;border-bottom:1px solid var(--line);background:#f7f8f1;padding:12px}
.enemy-detail .resistance-strip:last-child{border-bottom:0}
.enemy-detail .resistance-strip h4{font:600 12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;text-align:left;margin:0;color:#405a46}
.enemy-detail .resistance-values{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);gap:10px;margin:0;padding:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.enemy-detail .resistance-values>span{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:44px;white-space:nowrap}
.enemy-detail .resistance-values b{font-size:11px;font-weight:500;line-height:1.5;color:#52634e}
.enemy-detail .resistance-values small{font-size:12px;line-height:1.5;color:#284538;font-variant-numeric:tabular-nums}
@media(max-width:700px){.enemy-detail .resistance-strip{grid-template-columns:90px minmax(0,1fr);gap:6px;padding:10px 8px}}

/* Enemy catalog columns keep combat values and each loot type easy to compare. */
.enemy-catalog-scroll{overflow:visible;border:1px solid var(--line);border-radius:5px;background:var(--paper);overscroll-behavior-x:contain;scrollbar-width:thin}
.enemy-catalog-table{width:100%;min-width:1180px;table-layout:fixed;border-collapse:collapse;text-align:left;font-size:12px}
.enemy-catalog-table thead{position:sticky;top:var(--ffrs-header-height,80px);z-index:25;background:#edf0e1;box-shadow:0 1px 0 var(--line)}
.enemy-catalog-table .enemy-column-note{font-size:11px;line-height:1.5;font-weight:400;color:#617058}
.enemy-catalog-table th{background:#edf0e1;color:#52634e;font-weight:500;white-space:nowrap}
.enemy-catalog-table th,.enemy-catalog-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}
.enemy-catalog-table tbody tr:last-child td{border-bottom:0}
.enemy-catalog-table tbody tr:hover{background:#f1f4e9}
.enemy-catalog-table th:nth-child(1){width:108px}.enemy-catalog-table th:nth-child(2){width:58px}.enemy-catalog-table th:nth-child(3){width:82px}.enemy-catalog-table th:nth-child(4){width:68px}.enemy-catalog-table th:nth-child(5){width:96px}.enemy-catalog-table th:nth-child(6){width:210px}.enemy-catalog-table th:nth-child(7),.enemy-catalog-table th:nth-child(8),.enemy-catalog-table th:nth-child(9){width:auto}.enemy-catalog-table th:nth-child(10){width:62px}
.enemy-catalog-table .enemy-row-head{display:flex;flex-direction:column;align-items:center;gap:8px;width:88px;min-width:0;text-align:center}
.enemy-catalog-table .enemy-thumb{width:88px;height:88px}
.enemy-catalog-table h3{width:88px;max-width:88px;font-size:16px;margin:0;line-height:1.5;white-space:nowrap;overflow-wrap:normal}
.enemy-catalog-table small{display:block;font-size:10px;line-height:1.6;color:var(--muted)}
.enemy-catalog-table .enemy-number{font-variant-numeric:tabular-nums;white-space:nowrap}
.enemy-weakness{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.enemy-weakness img{width:24px;height:24px;object-fit:contain}
.enemy-loot{display:flex;flex-direction:column;gap:4px}
.enemy-loot-kind{font-size:10px;color:var(--muted);margin-right:5px}
.enemy-catalog-table .enemy-loot a{border-bottom:1px solid #cbd5bd}
.enemy-list-locations a{display:block;width:fit-content;margin-bottom:3px}
@media(max-width:700px){.enemy-catalog-table{min-width:1180px}.enemy-catalog-table th,.enemy-catalog-table td{padding:10px 8px}}

.enemy-detail .enemy-parameters ::-webkit-scrollbar{height:6px}
.enemy-detail .enemy-parameters ::-webkit-scrollbar-track{background:#eef1e7}
.enemy-detail .enemy-parameters ::-webkit-scrollbar-thumb{background:#a4b198;border-radius:3px}

.enemy-catalog-table th:first-child,.enemy-catalog-table td:first-child{padding-inline:10px}

.enemy-traits{display:grid;gap:6px}
.enemy-catalog-table .enemy-traits p{margin:0;font-size:14.5px;line-height:1.65;color:#42573e}
.enemy-loot-entry{display:flex;align-items:center;gap:4px;padding-block:5px;min-width:0}
.enemy-loot-entry .enemy-loot-kind{flex-shrink:0;margin-right:0}
.enemy-loot-item{display:inline-grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:6px;flex:0 1 auto;min-width:0;max-width:100%;margin-right:0;padding:5px 7px;background:#eff3e6;border:1px solid #cbd5bd;border-radius:4px;line-height:1.6}
.enemy-loot-name{min-width:0;overflow-wrap:anywhere;line-height:1.5}
.enemy-loot-rate{position:static;vertical-align:baseline;min-width:23px;padding:1px 4px;border:1px solid #c2a244;border-radius:4px;background:#f3d47e;color:#493a16;font:700 12px/16px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;box-shadow:0 1px 2px #3c452012}

@media(max-width:1279px){.enemy-catalog-scroll{overflow:auto;max-height:calc(100dvh - var(--ffrs-header-height,80px) - 24px)}.enemy-catalog-table thead{top:0}}

.enemy-phase-selector{display:grid;grid-template-columns:auto minmax(220px,1fr);gap:12px 20px;align-items:center;padding:16px 18px;margin-bottom:24px;border:1px solid var(--line);border-radius:5px;background:#eef2e5}
.enemy-phase-selector label{font-weight:600}.enemy-phase-selector label small{font-weight:400;margin-left:8px;font-size:12px;color:#52634e}
.enemy-phase-selector select{max-width:none;width:100%;padding:9px 12px;background:var(--paper)}
.enemy-phase-selector p{grid-column:1/-1;margin:0;color:#52634e;font-size:13px}
.enemy-phase-traits{margin:16px 0;padding:12px 16px;border-left:3px solid #9aa979;background:#f1f4e9}.enemy-phase-traits p{margin:4px 0}
.enemy-catalog-table .enemy-phase-count{width:88px;white-space:normal;font-size:11px;line-height:1.5}
@media(max-width:600px){.enemy-phase-selector{grid-template-columns:1fr;gap:10px;padding:12px}.enemy-phase-selector p{font-size:12px}}

/* Enemy identity and secondary values belong beside the portrait, outside combat stats. */
.detail-heading.enemy-profile{align-items:flex-start;gap:22px}.enemy-profile>.thumb{margin-top:8px;flex:0 0 96px}.enemy-profile .detail-identity{flex:1;min-width:0}.enemy-profile h2{margin:5px 0 15px}
.enemy-detail .enemy-stat-scroll{border-bottom:0}.enemy-detail .enemy-meta{border-top:1px solid var(--line)}
@media(max-width:600px){.detail-heading.enemy-profile{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px}.enemy-profile>.thumb{width:64px;height:64px;margin:0}.enemy-profile .detail-identity{display:contents}.enemy-profile .eyebrow,.enemy-profile h2{grid-column:2;margin:0}.enemy-profile>.thumb{grid-row:1/3}}

.enemy-profile h2{text-align:left!important}

.enemy-resistance-heading{gap:12px;align-items:center;flex-wrap:wrap}
.enemy-detail .enemy-resistance-legend{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px 12px;padding:6px 10px;border:1px solid #e4d6a4;border-radius:4px;background:#fff3cb;color:#70521c;font:11px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;max-width:100%}
.enemy-resistance-legend>span{white-space:nowrap}.enemy-resistance-legend .legend-label{font-weight:600}
@media(max-width:800px){.enemy-detail .enemy-resistance-legend{justify-content:flex-start;flex-basis:100%;font-size:11px}}

/* Like character profile badges: small icons and inline facts, without parameter cards. */
.enemy-profile .enemy-profile-facts{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;margin-top:10px}
.enemy-profile-fact{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:3px;background:#edf1e4;color:#52634e;font-size:12px;line-height:1.5;white-space:nowrap}
.enemy-profile-fact strong{font-size:12px;font-weight:600;color:#284538}.enemy-profile-fact .enemy-fact-icon{width:16px;height:16px;flex:0 0 16px;color:#6b805a}
.enemy-profile h2{margin:5px 0 8px}.detail-heading.enemy-profile{align-items:center}.enemy-profile>.thumb{margin-top:0}
@media(max-width:600px){.enemy-profile .enemy-profile-facts{grid-column:1/-1;gap:6px;margin-top:3px}.enemy-profile-fact{font-size:11px;padding:3px 5px;gap:4px}.enemy-profile-fact strong{font-size:11px}.enemy-profile-fact .enemy-fact-icon{width:14px;height:14px;flex-basis:14px}}

.enemy-steal-summary{display:flex;align-items:center;gap:6px;margin:0 0 3px;color:#52634e;font-size:11px;line-height:1.6}.enemy-steal-summary .enemy-loot-rate{display:inline-block}

.enemy-list-locations .enemy-location-more{margin:4px 0 0}
.enemy-location-more summary{width:fit-content;font-size:11px;line-height:1.6;color:#52634e;cursor:pointer;list-style:none;text-decoration:underline dotted;text-underline-offset:3px}
.enemy-location-more summary::-webkit-details-marker{display:none}.enemy-location-more summary::after{content:' ▾'}.enemy-location-more[open] summary::after{content:' ▴'}
.enemy-location-more[open] summary{margin-bottom:5px}.enemy-location-more summary:focus-visible{outline:2px solid #98a76d;outline-offset:3px}

/* Expose battle rewards directly in the enemy catalog. */
.enemy-catalog-table{min-width:1300px}
.enemy-catalog-table th:nth-child(6){width:180px}
.enemy-catalog-table th:nth-child(7),.enemy-catalog-table th:nth-child(8){width:68px}
.enemy-catalog-table th:nth-child(9),.enemy-catalog-table th:nth-child(10),.enemy-catalog-table th:nth-child(11){width:auto}
.enemy-catalog-table th:nth-child(12){width:62px}

.enemy-catalog-table{min-width:1240px}
.enemy-catalog-table th:nth-child(7){width:112px}
.enemy-catalog-table th:nth-child(8),.enemy-catalog-table th:nth-child(9),.enemy-catalog-table th:nth-child(10){width:auto}
.enemy-catalog-table th:nth-child(11){width:62px}
.enemy-reward-line{display:flex;align-items:center;gap:7px;margin:5px 0;white-space:nowrap}
.enemy-reward-label{display:inline-block;border:1px solid;border-radius:3px;padding:1px 5px;font-size:11px;font-weight:700;line-height:1.6}
.reward-money{background:#fff0bb;border-color:#d7bc63;color:#785710}
.reward-exp{background:#e1edf9;border-color:#abc4dd;color:#315d8b}
