:root{color-scheme:dark;--bg:#101b1b;--surface:#192727;--ink:#e6eee4;--muted:#acbdb5;--line:#344843;--mint:#a8d9ae;--gold:#e5c48d}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.7 system-ui,"Microsoft YaHei",sans-serif}a{color:var(--mint);text-underline-offset:4px}a:hover{color:#fff}header{border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 85% 60%,#28403a,transparent 65%),#101b1b}nav{display:flex;gap:28px;max-width:1500px;margin:auto;padding:24px 32px;border-bottom:1px solid var(--line)}nav a:first-child{margin-right:auto;letter-spacing:2px;text-decoration:none}.hero{max-width:1500px;margin:auto;padding:58px 32px 40px}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:3px}h1{font-size:clamp(42px,6vw,76px);line-height:1.15;font-weight:650;margin:20px 0 24px;letter-spacing:2px}h1 em{color:var(--mint);font-style:normal}.lede{color:var(--muted);max-width:620px;font-size:18px}.counts{display:flex;gap:42px;margin:34px 0 22px;flex-wrap:wrap}.counts span{font-size:13px;color:var(--muted)}.counts b{font-size:28px;margin-right:10px;color:var(--ink)}.updated{font-size:12px;color:var(--muted)}main{max-width:1564px;margin:auto;padding:32px}.notice{background:#21352e;border-left:3px solid var(--mint);padding:18px 22px;margin-bottom:28px}.toolbar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:10px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.toolbar label:first-child{flex:1;min-width:240px}input,select,button,.button{font:inherit;color:var(--ink);border:1px solid #536a61;border-radius:6px;background:#101c19;padding:11px 14px}input:focus,select:focus,button:focus,a:focus{outline:2px solid var(--mint);outline-offset:3px}button,.button{cursor:pointer;font-size:14px;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#304a3f}#result{flex-basis:100%;margin:0;color:var(--muted);font-size:13px}h2{font-size:26px;margin:44px 0 18px}h2 span{margin-left:15px;font-size:13px;font-weight:normal;color:var(--muted)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:1120px}caption{position:absolute;left:-9999px}thead{background:#263b32}th,td{padding:20px 15px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}thead th{font-size:13px;color:#c3d9c6}tbody tr:nth-child(even){background:#142220}tbody tr:hover{background:#22332c}tr:target{outline:2px solid var(--gold);outline-offset:-3px;background:#2d3528}td,tbody th{font-size:14px;font-weight:normal}td p:first-child{margin-top:0}td p:last-child{margin-bottom:0}td img{width:100%;max-width:112px;height:112px;object-fit:contain;background:#24332b;border-radius:8px}.badge{font-size:11px;color:var(--gold);border:1px solid #655b42;border-radius:3px;padding:2px 6px;white-space:nowrap}h3{font-size:16px;line-height:1.5;margin:12px 0}small{display:block;color:var(--muted);font-size:12px;line-height:1.7}.food{display:block;border-top:1px solid var(--line);padding-top:9px;margin-top:12px;font-size:13px;color:var(--mint)}.price{color:var(--gold);font-weight:bold}.price small{font-weight:normal;margin-top:8px}.rules{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.rules article{border-top:1px solid var(--line);padding:8px 8px 12px}.rules p,.sources p{color:var(--muted);font-size:14px}.calculator{background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-top:40px;padding:24px}.calculator h2{margin-top:0}.calc-inputs{display:flex;gap:18px;flex-wrap:wrap}.calc-inputs input{width:180px}.calculator output{display:block;font-size:24px;color:var(--gold);margin-top:18px}.calculator p{color:var(--muted);font-size:13px}footer{max-width:1500px;margin:20px auto 0;border-top:1px solid var(--line);padding:30px 32px;display:flex;gap:24px;justify-content:space-between;font-size:12px;color:var(--muted)}[hidden]{display:none!important}@media(max-width:700px){nav{gap:15px;padding:18px 20px;font-size:13px}nav a:first-child{letter-spacing:0}.hero{padding:36px 20px}.counts{gap:18px}.counts b{font-size:23px}main{padding:20px 12px}.toolbar{padding:16px}.toolbar label:first-child{min-width:100%}.rules{grid-template-columns:1fr}table{min-width:1080px}.table-wrap:before{content:'左右滑动查看完整表格';display:block;padding:8px 14px;font-size:12px;color:var(--gold)}footer{flex-direction:column;gap:10px}.notice{font-size:14px}}@media print{body{background:white;color:black;font-size:10px}header{background:white}nav,.toolbar,.calculator,footer{display:none}h1{font-size:24px}main,.hero{padding:0}.table-wrap{overflow:visible}table{min-width:0;table-layout:auto}th,td{padding:5px;font-size:9px}td img{width:45px;height:45px}small{font-size:8px;color:#333}a,.food,.price,h1 em{color:#123}.counts,.notice,.updated{font-size:10px}.table-wrap:before{display:none}tr{break-inside:avoid}h2{break-after:avoid}.rules p,.sources p{font-size:10px;color:#333}}



/* Nine-column resource table: explicit widths, bounded text, compact spacing. */
.table-wrap{max-width:100%;overflow:auto}
main{max-width:1960px}
table{width:100%;min-width:1740px;table-layout:fixed}
thead th:nth-child(1){width:150px}thead th:nth-child(2){width:104px}
thead th:nth-child(3){width:170px}thead th:nth-child(4){width:240px}
thead th:nth-child(5){width:230px}thead th:nth-child(6){width:240px}
thead th:nth-child(7){width:100px}thead th:nth-child(8){width:240px}
thead th:nth-child(9){width:260px}
th,td{padding:14px 12px;overflow-wrap:anywhere;line-height:1.6;min-width:0}
td p{margin:0 0 10px}td p:last-child{margin-bottom:0}
td img{display:block;width:80px;height:80px;max-width:100%;background:white}
tbody th h3{margin:8px 0;font-size:15px}small{line-height:1.6}
details{margin-top:10px;font-size:12px;color:var(--muted)}summary{cursor:pointer}
.scroll-hint{color:var(--muted);font-size:13px;margin:0 0 12px}
.table-wrap:focus-visible{outline:2px solid var(--mint)}
@media(max-width:760px){
 .table-wrap{border:0;overflow:visible;border-radius:0}.table-wrap:before{display:none}
 table,tbody{display:block;width:100%;min-width:0}thead{display:none}
 tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 104px;border:1px solid var(--line);border-radius:10px;margin-bottom:16px;padding:14px;background:var(--surface)}
 tbody th,tbody td{display:block;width:auto;min-width:0;border:0;padding:0}
 tbody th{grid-column:1;grid-row:1;text-align:left;padding-right:12px}
 tbody td:first-of-type{grid-column:2;grid-row:1;justify-self:end}
 tbody td:not(:first-of-type){grid-column:1 / -1;border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
 tbody td:not(:first-of-type):before{content:attr(data-label);display:block;color:var(--gold);font-size:12px;font-weight:600;margin-bottom:5px}
 .scroll-hint{display:none}.hero{padding-top:28px;padding-bottom:24px}.counts{margin:22px 0 16px}
 h2{margin-top:28px}.toolbar{gap:12px}.toolbar input{width:100%;min-width:0}.toolbar label{min-width:0}
}
@media print{table{min-width:0;table-layout:auto}thead th{width:auto!important}th,td{padding:5px}td img{width:45px;height:45px}details{display:none}}
/* v3: full-width hero, admin controls, page-level sticky table headers */
nav,.hero,footer{max-width:1960px}.hero{padding:58px 32px 40px}nav{flex-wrap:wrap}.sticky-table-head{position:fixed;top:0;z-index:50;overflow:hidden;background:#263b32;box-shadow:0 4px 12px #0005;pointer-events:none;border:1px solid var(--line)}.sticky-table-head table{margin:0}.sticky-table-head th{padding:14px 12px}.admin-panel{border:1px solid #68794e;border-radius:10px;padding:24px;margin-bottom:24px;background:var(--surface)}.admin-panel h2{margin:0 0 16px}.admin-actions,#login-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.known-toggle{display:flex;flex-direction:row;align-items:center;gap:6px;margin-bottom:12px;color:var(--gold)}.known-toggle input{accent-color:#a8d9ae;width:18px;height:18px;margin:0}.natural-info{margin-top:12px}.natural-info summary{color:var(--mint)}.natural-info p{font-size:13px;line-height:1.7}.natural-image{display:block;max-width:100%;height:auto;border-radius:6px;background:white;margin-top:12px}#empty{padding:36px 20px;border:1px dashed var(--line);text-align:center;color:var(--muted)}button:disabled{opacity:.6;cursor:wait}#admin-message{color:var(--gold)}.admin-panel input[type=password]{width:260px;max-width:100%}#r-sussur:target{scroll-margin-top:65px}tbody tr{scroll-margin-top:65px}
@media(max-width:760px){.hero{padding:28px 20px 24px}nav{gap:14px}.admin-panel{padding:16px}.natural-info{max-width:none}.sticky-table-head{display:none!important}}
@media print{.admin-panel,.known-toggle,.sticky-table-head{display:none!important}}
.natural-open{white-space:normal;font-size:12px;text-align:left;padding:7px 8px;margin-top:12px;color:var(--mint);width:100%}dialog{width:min(840px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:24px}dialog::backdrop{background:#000a}.dialog-close{float:right}dialog h2{margin:0 80px 22px 0}.natural-body{display:flex;gap:24px;align-items:start}.natural-body>img{width:300px;max-width:45%;border-radius:8px;background:white}.natural-body>div{flex:1}.natural-body p:first-child{margin-top:0}@media(max-width:760px){.natural-body{flex-direction:column}.natural-body>img{width:100%;max-width:300px;align-self:center}}

/* World lore reading panel and persistent publishing controls. */
.lore-tag{display:inline-block;color:var(--gold);font-size:12px;line-height:1.6}.lore-summary{font-size:13px;margin:8px 0}.source-open{white-space:normal;padding:6px 8px;font-size:12px;text-align:left}.image-label{font-size:10px;text-align:center;margin-top:4px}.natural-open small{font-size:10px}.save-bar{position:fixed;bottom:0;left:0;right:0;z-index:60;background:#1c302a;border-top:1px solid #78927c;box-shadow:0 -5px 22px #0007;display:flex;align-items:center;justify-content:center;gap:22px;padding:14px 24px}.save-bar.has-changes{border-top:3px solid var(--gold)}.save-bar small{font-size:11px}.save-bar.has-changes b{color:var(--gold)}.save-bar button,#save-known{background:var(--mint);color:#10241a;font-weight:700;border-color:var(--mint)}body:has(.save-bar:not([hidden])){padding-bottom:100px}.publish-receipt{border-left:4px solid var(--mint);padding:16px;background:#254738;color:#d9f7d6}.admin-panel #known-status{font-weight:700;color:var(--gold)}.admin-panel #verify-known{font-size:12px}#natural-dialog{width:min(1000px,calc(100vw - 32px));padding:28px}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:18px;border-bottom:1px solid var(--line);padding-bottom:20px}.dialog-heading h2{margin:4px 0 12px;font-size:30px}.dialog-heading .eyebrow{margin:0}.dialog-close{float:none;position:sticky;top:0}.lore-overview{display:grid;grid-template-columns:260px 1fr;gap:28px;padding:24px 0}.lore-overview h3{color:var(--mint);margin-top:0}.lore-overview p{margin:8px 0 18px}.local-art{margin:0}.local-art img{width:100%;height:260px;object-fit:contain;background:#fff;border-radius:10px}.local-art figcaption{font-size:12px;color:var(--muted);margin-top:8px}.size-note{font-size:13px;color:var(--muted)}.edition-note{background:#23382f;border-left:3px solid var(--gold);padding:16px 20px}.edition-note p{margin:6px 0 0;font-size:14px}.reference-section{margin-top:24px}.reference-section>h3{font-size:20px}.image-status,.lore-sources>p,.lore-reviewed{font-size:12px;color:var(--muted)}.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.reference-grid figure{margin:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#111c1b}.reference-grid img{width:100%;height:230px;object-fit:contain;background:#101517;display:block}.reference-grid figcaption{padding:14px;font-size:13px}.reference-grid figcaption p{font-size:12px;color:var(--muted);margin-bottom:0}.reference-grid small{font-size:11px}.lore-sources{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.lore-sources summary{cursor:pointer;color:var(--mint);font-weight:700}.lore-sources li{padding:8px 0;font-size:13px}.lore-sources li p{font-size:12px;color:var(--muted);margin:4px 0}.lore-sources ol{padding-left:20px}.lore-reviewed{border-top:1px solid var(--line);padding-top:16px;margin-bottom:0}
@media(max-width:760px){#natural-dialog{padding:18px;width:calc(100vw - 20px)}.dialog-heading h2{font-size:24px}.lore-overview{grid-template-columns:1fr;gap:16px}.local-art{max-width:260px;margin:auto}.reference-grid{grid-template-columns:1fr}.save-bar{padding:10px 12px;gap:8px;flex-wrap:wrap;justify-content:space-between}.save-bar>div{width:100%}.save-bar b{font-size:13px}.save-bar small{display:none}.save-bar button,.save-bar a{font-size:12px;padding:8px 12px}body:has(.save-bar:not([hidden])){padding-bottom:116px}}
@media print{.save-bar,.natural-open,.source-open,.image-label{display:none!important}}

/* Share targets stay highlighted until navigation selects another item. */
tbody tr.item-highlight{background:#35422b;outline:3px solid var(--gold);outline-offset:-3px}
tbody tr.item-highlight th{box-shadow:inset 5px 0 var(--gold)}
.share-link{display:block;margin-top:12px;font-size:12px;color:var(--gold)}
#link-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;width:max-content;max-width:calc(100vw - 32px);padding:12px 18px;margin:0;background:#263b32;color:var(--ink);border:1px solid var(--gold);border-radius:8px;box-shadow:0 4px 20px #0006}
#link-notice input{display:block;width:min(600px,70vw);margin-top:8px}
body:has(.save-bar:not([hidden])) #link-notice{bottom:130px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.share-link,#link-notice{display:none!important}tbody tr.item-highlight{background:transparent;outline:0}tbody tr.item-highlight th{box-shadow:none}}

/* v10: the playable rule appears first; lore is a separate lower section. */
main{max-width:1480px}.table-wrap{overflow:visible;border-radius:12px}.table-wrap:before{display:none!important}table{min-width:0!important;width:100%;table-layout:fixed}thead th:nth-child(1){width:230px}thead th:nth-child(2){width:auto}tbody th{width:230px;vertical-align:top}tbody td.item-detail{padding:24px 28px}tbody th .item-icon{width:96px;height:96px;object-fit:cover;border-radius:12px;display:block;margin-bottom:12px}.quick-use{border-left:3px solid var(--mint);padding:2px 0 2px 14px}.quick-use p{margin:5px 0 0;color:var(--ink);font-size:16px}.procedure-grid{display:grid;grid-template-columns:1.2fr 1fr .9fr;gap:24px;margin:22px 0}.procedure-grid b,.quick-use b,.recipe-links>b{color:var(--gold);font-size:13px}.procedure-grid p{margin:5px 0}.time-value{font-size:17px;font-weight:650}.item-intro{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted)}.item-intro summary{cursor:pointer;color:var(--ink);font-weight:600}.item-intro p{max-width:900px}.recipe-links p{margin:5px 0}.crafting-rules,#monster-audit{margin-top:28px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.crafting-rules summary,#monster-audit>details>summary{font-size:20px;cursor:pointer}.crafting-rules li{margin:12px 0}.harvest-entry{padding:14px 0;border-bottom:1px solid var(--line)}.harvest-entry h3{margin:0}.harvest-entry p{margin:6px 0}#harvest-results{max-height:70vh;overflow:auto;margin-top:18px}#harvest-search{max-width:650px}.known-toggle{margin:12px 0}.item-highlight{outline:2px solid var(--gold);outline-offset:-2px;background:#283830}.sticky-table-head table{min-width:0!important}.sticky-table-head th:first-child{width:230px}
@media(max-width:900px){.procedure-grid{grid-template-columns:1fr 1fr}.procedure-grid>div:last-child{grid-column:1/-1}thead th:nth-child(1),tbody th{width:190px}}
@media(max-width:760px){nav{flex-wrap:wrap;gap:12px}thead,.sticky-table-head{display:none!important}table,tbody,tr,tbody th,tbody td.item-detail{display:block!important;width:100%!important}tr{border-bottom:2px solid var(--line);padding:16px 0}tr[hidden]{display:none!important}tbody th{padding:8px 18px 16px!important;min-height:120px;text-align:left}tbody th .item-icon{float:left;width:84px;height:84px;margin:0 16px 10px 0}tbody th h3{margin:8px 0}tbody th .share-link{display:inline-block}.item-detail{clear:both;padding:10px 18px 20px!important;border:0!important}.item-detail:before,tbody th:before{display:none!important}.procedure-grid{grid-template-columns:1fr;gap:16px;margin:20px 0}.procedure-grid>div:last-child{grid-column:auto}.item-intro{margin-top:18px}.toolbar label{width:100%}.harvest-entry{font-size:14px}.hero h1{font-size:44px}.known-toggle{clear:both}.item-highlight{outline-offset:-3px}}
@media print{.item-intro{display:block}.procedure-grid{display:block}.crafting-rules{break-before:page}tbody th .item-icon{width:60px;height:60px}.item-detail p{font-size:11px}.item-detail{color:black}.quick-use p{color:black}}

tbody th h3{font-size:17px;line-height:1.5}.badge{font-size:12px}

.monster-loot{margin:2rem 0;padding:1.4rem;background:var(--surface);border:1px solid var(--line);border-radius:14px}.monster-loot h2{margin-top:0}.monster-loot h2 span{font-size:.85rem;color:var(--muted)}.monster-loot input{display:block;width:min(100%,32rem);margin:.5rem 0 1rem}.monster-profile{border-top:1px solid var(--line);padding:.9rem 0;font-size:14px;color:var(--ink)}.monster-profile summary{cursor:pointer;font-weight:700;font-size:16px}.monster-profile summary small{font-weight:400;color:var(--muted);margin-left:.5rem}.monster-drop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1rem}.monster-drop-grid article{padding:.8rem;background:var(--bg);border-radius:9px;overflow-wrap:anywhere}.monster-drop-grid h3{margin:0 0 .6rem;font-size:1rem}.monster-drop-grid p{margin:.4rem 0}.monster-drop-grid small{color:var(--muted)}
