*{box-sizing:border-box} :root{color-scheme:dark;--bg:#172628;--surface:#203234;--border:#3e5050;--text:#f0ebde;--muted:#b5c2b8;--gold:#f4c67a;--ink:#283332;--paper:#eee9d9}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 "Trebuchet MS",system-ui,sans-serif}h1,h2,h3,.brand b{font-family:Georgia,serif;margin:0;line-height:1.13}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #ffda80;outline-offset:3px}button:disabled{opacity:.59;cursor:default}header{background:#142123;border-bottom:1px solid var(--border)}.top,main{max-width:1200px;margin:auto;padding:0 32px}.top,.brand,nav,.heading,.section-title,footer,.panel-head,.costline{display:flex;align-items:center}.top{height:72px;gap:42px}.brand{gap:8px}.brand img{width:38px;height:38px}.brand b{font-size:29px;letter-spacing:-1px}.top nav{gap:24px;align-self:stretch}nav button{border:0;border-bottom:2px solid transparent;background:none;padding:0 2px;color:var(--muted);font-weight:600;font-size:15px}nav button[aria-current]{color:var(--gold);border-bottom-color:var(--gold)}.header-count{margin-left:auto;font-size:14px;color:var(--gold)}main{padding-bottom:28px}.heading,.section-title,footer,.costline{justify-content:space-between}.heading{margin:30px 0 19px;gap:10px}.eyebrow{font:700 12px/1.3 system-ui,sans-serif;letter-spacing:.14em;color:var(--gold);margin:0 0 6px}.heading h1{font-size:clamp(36px,4vw,52px);letter-spacing:-.04em}.heading>span,.section-title>span,footer{font-size:14px;color:var(--muted)}.grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(250px,1fr);gap:20px}.panorama{position:relative;isolation:isolate;overflow:hidden;min-height:248px;border:1px solid #73776a;border-radius:7px;background:#736758 url('./mine.webp?v=11') center/cover no-repeat;image-rendering:auto;display:flex;align-items:end}.panorama:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(83deg,#162729e8,transparent 70%),linear-gradient(0deg,#15232288,transparent 44%)}.ptext{padding:25px;max-width:63%}.ptext h2{font-size:clamp(28px,3vw,42px);margin:7px 0}.ptext p{margin:0;color:#f0eadb;line-height:1.45}.section-title{margin:25px 0 12px}.section-title h2{font-size:27px}.jobs,.geargrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.card{color:var(--ink);background:var(--paper);border:1px solid #c4bdac;border-radius:6px;padding:16px;display:flex;flex-direction:column;align-items:start;min-width:0}.card.current{box-shadow:inset 0 0 0 2px #bf9550}.card .icon{width:48px;height:48px;image-rendering:auto;align-self:start;margin-bottom:8px}.card small{color:#53645a;font:700 12px/1.4 system-ui;letter-spacing:.06em;text-transform:uppercase}.card h3{font-size:22px;margin:4px 0 7px}.card p{margin:0 0 15px;font-size:14px}.card button{margin-top:auto}.action,.gold,.sub{border-radius:4px;font-weight:700;font-size:14px;min-height:42px;padding:8px 13px}.action{background:#314c45;color:#fff9e7;border:1px solid #314c45;width:100%}.gold{background:#e8bd77;border:1px solid #f1d29f;color:#312d21}.wide{width:100%;margin-top:14px}.sub{background:transparent;border:1px solid #697b75;color:var(--text)}aside{display:flex;flex-direction:column;gap:12px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:6px}.panel{padding:19px}.panel-head{gap:8px;margin-bottom:10px}.panel-head .eyebrow{margin:0}.diamond{color:var(--gold)}.panel h2{font-size:25px}.panel h3{font-size:21px}.panel p{font-size:15px;color:var(--muted);margin:9px 0 12px}.costline{padding:3px 0;font-size:14px;gap:8px}.costline b{font-variant-numeric:tabular-nums}.ok{color:#98d9ad}ol{list-style:none;padding:0;margin:12px 0 0}li{position:relative;font-size:14px;color:#a5b3ac;padding:3px 0 3px 22px}li:before{content:"";position:absolute;left:4px;top:11px;width:7px;height:7px;transform:rotate(45deg);border:1px solid #809288}li.lit:before{background:#ffbd68;border-color:#ffbd68}li.next{color:#f5d19a}progress{display:block;width:100%;height:6px;margin-top:5px;appearance:none;border:none;background:#101e20;border-radius:9px;overflow:hidden}progress::-webkit-progress-bar{background:#101e20}progress::-webkit-progress-value{background:#e0b572}progress::-moz-progress-bar{background:#e0b572}footer{margin-top:16px;gap:10px}footer a{color:inherit}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:92vw;padding:12px 17px;background:#f1e6c9;color:#24312d;border-radius:6px;box-shadow:0 4px 16px #0005;font-size:15px;pointer-events:none;z-index:3}#toast:empty{display:none}.geargrid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:15px}.geargrid .card p{font-size:16px}.tune{display:flex;flex-wrap:wrap;gap:8px}.chosen{border-color:var(--gold);color:var(--gold)}.beacon{position:absolute;width:5px;height:8px;background:#ffd474;box-shadow:0 0 8px 3px #ff9b48;z-index:-1}img{image-rendering:auto}[hidden]{display:none!important}
@media(max-width:840px){.top,main{padding-left:18px;padding-right:18px}.top{gap:22px}.grid{grid-template-columns:1fr}.panorama{min-height:210px}aside{display:grid;grid-template-columns:1fr 1fr}.heading{margin-top:19px}.card h3{font-size:20px}}
@media(max-width:580px){.top{height:auto;flex-wrap:wrap;gap:0;justify-content:space-between;padding-top:8px}.brand b{font-size:25px}.brand img{width:32px}.top nav{width:100%;order:3;justify-content:space-between;gap:10px}.top nav button{min-height:44px}.header-count{font-size:13px}.heading>span{font-size:12px}.panorama{min-height:195px;background-position:64% center}.ptext{padding:15px;max-width:70%}.ptext p{font-size:14px}.section-title{margin:18px 0 8px}.section-title>span{font-size:12px}.jobs{display:flex;flex-direction:column;gap:7px}.jobs .card{display:grid;grid-template-columns:40px 1fr auto;grid-template-rows:auto auto auto;align-items:center;column-gap:8px;padding:10px}.jobs .card img{grid-column:1;grid-row:1/4;width:38px;height:38px;margin:auto}.jobs .card small,.jobs .card h3,.jobs .card p{grid-column:2}.jobs .card h3{font-size:19px;margin:0}.jobs .card p{font-size:13px;margin:0}.jobs .card button{grid-column:3;grid-row:1/4;align-self:center;margin:0;width:90px;padding:5px;font-size:13px}.grid{gap:14px}aside{grid-template-columns:1fr}.panel{padding:15px}.section-title h2{font-size:24px}.geargrid{grid-template-columns:1fr}footer{font-size:12px}}
footer button{border:0;padding:2px 0;color:var(--muted);font:inherit;background:transparent;text-decoration:underline}.jobs .card{position:relative;overflow:hidden}.jobs .card:before{content:"";position:absolute;top:0;left:0;right:0;height:59px;background:linear-gradient(90deg,#eee9d9 5%,#eee9d944),var(--land) 60% 40%/cover;opacity:.8}.jobs .icon{z-index:1}.jobs small{position:relative}.jobs .card small{margin-top:3px}@media(max-width:580px){.jobs .card:before{display:none}.jobs .card small{margin:0}}

.jobs .current progress{position:absolute;bottom:0;left:1px;width:calc(100% - 2px);height:5px;margin:0;border-radius:0;background:#c4cbbd}.jobs .current progress::-webkit-progress-bar{background:#c4cbbd}.jobs .current progress::-webkit-progress-value{background:#4d765c}.jobs .current progress::-moz-progress-bar{background:#4d765c}.jobs #clock{white-space:nowrap;font-variant-numeric:tabular-nums}
.jobxp{color:#45624f;font-size:13px}.region{border:1px solid var(--border);border-radius:7px;overflow:hidden}.valleymap{aspect-ratio:760/240;min-height:132px;background-size:100% 100%;position:relative;image-rendering:auto}.pin{position:absolute;transform:translate(-50%,-50%);border-radius:5px;border:1px solid #bcc5a1;padding:4px 10px;min-height:36px;background:#203332eb;color:#fff9e8;font-size:14px;font-weight:bold}.pin[aria-pressed=true]{border:2px solid #f5c680;color:#ffdead}.pin-bridge{left:51%;top:42%}.pin-mill{left:30%;top:78%}.place{border:0;border-radius:0}
.place[data-project="mill"]{
 background:linear-gradient(90deg,#121b20fa,#121b20d9 64%,#121b2082),
  url('./activity-scene-mill.webp?v=58') center/cover #121b20
}.place>.tune:first-child{margin-bottom:14px}.place>.sub,.place>.gold,.kit>.sub{margin-top:10px}.playerhead{display:flex;align-items:center;gap:15px}.playerhead img{width:62px}.playerhead>div{flex:1}.playerhead h2{margin:4px auto}.playerhead span:not(.eyebrow){color:var(--muted);font-size:14px}.xpbar{height:7px}.branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:6px;margin:0 0 12px}.branches button{border:1px solid var(--border);border-radius:6px;background:#233737;display:flex;text-align:left;gap:8px;align-items:center;padding:12px;font-weight:bold}.branches img{width:36px}.branches small,.talent small{display:block;color:var(--muted);font-weight:normal}.branches [aria-pressed=true]{border-color:var(--gold);background:#35453b}.treehead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.wallet{display:flex;align-items:center;gap:5px;font-size:14px;color:var(--gold)}.wallet img{width:24px}.rootnode{position:relative;margin:19px auto 0;max-width:400px}.talent{padding:15px;background:#243b3a;border:1px solid #5c7167;border-radius:6px}.talent.learned{border-color:#d6ad70}.talent small{font-size:13px}.talent h3{margin-top:5px}.talent .condition{font-size:14px;color:var(--muted)}.talent .price{color:var(--gold);margin:4px 0 8px;font-size:14px}.leaves{position:relative;margin-top:28px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.leaves:before{content:"";position:absolute;left:25%;right:25%;top:-14px;height:13px;border:1px solid #9b906c;border-bottom:0}.rootnode:after{content:"";position:absolute;left:50%;height:14px;border-left:1px solid #9b906c}.treehint{margin-bottom:0!important}.kit{padding:13px} @media(max-width:580px){.top nav{gap:5px}.top nav button{font-size:14px}.branches button{padding:8px 3px;flex-direction:column;text-align:center;gap:2px;font-size:13px}.branches img{width:28px}.leaves{gap:6px}.talent{padding:9px}.talent h3{font-size:18px}.talent .sub{padding:7px}.rootnode{max-width:85%}.tree .wallet{margin-bottom:8px}.jobs .card.current{padding-bottom:12px}}
.rootnode:after{bottom:-14px}
.character-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:18px;align-items:start}.paper-stage{height:260px;position:relative;border:1px solid #63796f;border-radius:8px;overflow:hidden;background:linear-gradient(90deg,#14292cdd 0%,#19343488 38%,#20352a44),url('./wood.webp?v=11') 55% 62%/cover;image-rendering:auto}.portrait-scene{position:absolute;inset:0 0 0 30%;display:grid;place-items:center;background:radial-gradient(ellipse at 55% 61%,#f5e2b162,transparent 57%)}.portrait-scene:before{content:"";position:absolute;left:50%;bottom:7%;width:44%;height:6%;transform:translateX(-50%);background:#26362c85;border-radius:50%}.paperdoll{position:relative;display:inline-block;height:96%;aspect-ratio:80/92;vertical-align:middle;filter:drop-shadow(1px 3px 1px #1a282d66)}.paperdoll img{position:absolute;inset:0;width:100%;height:100%;image-rendering:auto}.paperdoll.mini{height:64px;flex-shrink:0}.portrait-caption{position:absolute;left:18px;top:20px;max-width:44%;text-shadow:0 1px 2px #172628}.portrait-caption h2{font-size:clamp(23px,3vw,38px);line-height:1.09;margin-top:6px}.slot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}.body-slot,.item-choice{background:#203535;border:1px solid #475d56;border-radius:5px}.body-slot{display:grid;justify-items:center;text-align:center;align-content:start;padding:7px 3px;line-height:1.25}.body-slot[aria-pressed=true],.item-choice[aria-pressed=true]{border-color:#dbb777;background:#35483e;box-shadow:inset 0 0 0 1px #dbb777}.piece-icon,.empty-icon{height:38px;width:38px;object-fit:contain;image-rendering:auto}.body-slot small,.set-preview small{display:block;font-size:12px;color:var(--muted)}.body-slot b{font-size:13px}.bonuses{font-size:14px;color:#dfc698;margin:10px 0}.item-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(134px,1fr));gap:7px;margin:12px 0}.item-choice{display:flex;gap:7px;padding:8px;text-align:left;align-items:start}.item-choice small,.item-choice em{display:block;font-size:12px;line-height:1.4;color:var(--muted)}.item-choice em{font-style:normal;margin-top:4px;color:var(--gold)}.item-choice b{font-size:15px}.set-preview,.field-outfit{display:flex;gap:9px;align-items:center}.set-preview{padding:14px 0}.set-preview p{margin:4px 0 0}.set-actions{display:flex;gap:6px;flex-wrap:wrap}.field-outfit{border-bottom:1px solid var(--border);padding:5px 0;min-height:50px}.field-outfit .mini{height:46px}.field-outfit>div{margin-right:auto}.field-outfit small{display:block;color:var(--muted);font-size:13px}.field-outfit .sub{font-size:13px;padding:6px 9px}.empty-icon{display:grid;place-items:center;color:#9eaea3}.tree .playerhead{max-width:100%}@media(max-width:840px){.character-grid{grid-template-columns:1fr}.paper-stage{height:215px}.top{gap:12px}.top nav{gap:10px}}@media(max-width:580px){.top nav{gap:2px}.top nav button{font-size:13px}.item-list{grid-template-columns:1fr 1fr}.paper-stage{height:200px}.piece-icon{width:32px;height:32px}.character-grid{gap:10px}.set-panel{grid-row:2}.body-slot{min-width:0}.item-choice{padding:6px;gap:4px}}
.item-choice{min-width:0}.item-choice>span{min-width:0;overflow-wrap:anywhere}.item-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,158px),1fr))}@media(max-width:580px){.item-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.recipe-tabs{display:flex;gap:7px;margin-bottom:12px}.recipe-tabs button{min-height:42px;padding:6px 12px;background:var(--surface);border:1px solid var(--border);border-radius:4px}.recipe-tabs [aria-pressed=true]{border-color:var(--gold);color:var(--gold)}.blueprints{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(215px,100%),1fr));gap:10px;margin-bottom:18px}.blueprint{display:flex;flex-direction:column}.blue-head,.blue-foot{display:flex;align-items:center;gap:8px}.blue-head img{width:40px;height:40px;object-fit:contain}.blue-head small{letter-spacing:.08em;color:var(--gold);font-size:12px}.blue-foot{justify-content:space-between;margin-top:auto;padding-top:10px}.blue-foot small,.exp-track{color:var(--muted);font-size:14px}.exp-track{margin-bottom:10px}#targets{background:var(--surface);color:var(--text);border:1px solid #69796c;border-radius:8px;padding:20px;width:min(400px,92vw)}#targets::backdrop{background:#0b1818bc}.target-list{display:grid;gap:7px;margin:12px 0}.target-list button{min-height:54px;background:#2b403f;border:1px solid var(--border);border-radius:5px;display:flex;align-items:center;text-align:left;gap:8px;padding:6px}.target-list img{width:34px;height:34px}.target-list small{display:block;color:var(--muted)}.target-list strong{margin-left:auto;font-size:13px;color:var(--gold)}
@media(max-width:580px){.blueprints{grid-template-columns:1fr 1fr}.blueprint{padding:10px}.blue-head{gap:4px;flex-wrap:wrap}.blue-head h3{font-size:17px}.blue-foot{align-items:stretch;flex-direction:column}.blueprint .costline{font-size:13px}.blueprint p{font-size:13px}.blue-head img{width:30px;height:30px}}

/* The valley journal */
:root{--bg:#10191f;--surface:#1c2a30;--border:#39494d;--muted:#c1cccb;--gold:#f4c482;--paper:#213037;--ink:#f1eee4}
body{background:radial-gradient(ellipse at 85% 0%,#253640 0,transparent 52rem),var(--bg);font-family:"DM Sans",system-ui,sans-serif}
header{background:#101a20}.brand b{letter-spacing:-.045em}.top{height:66px}.brand img{width:33px}
main:has(#Tal:not([hidden]))>.heading{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.panorama{margin:20px 0;min-height:clamp(220px,26vw,320px);border:1px solid #697072;border-radius:14px;background:#253638 url('./erztal.webp?v=11') center 29%/cover;image-rendering:auto}
.panorama:before{background:linear-gradient(90deg,#0b1720db,transparent 76%),linear-gradient(0deg,#0b1720bd,transparent 65%)}
.ptext{max-width:33rem;padding:clamp(18px,4vw,42px)}.ptext h2{font-size:clamp(35px,5vw,65px);font-weight:normal;letter-spacing:-.045em}.ptext p{max-width:39ch}
.panel,.card,.region,.paper-stage,.first-tool,.choices button{border-radius:11px}.panel,.card{border-color:var(--border)}
.panel{background:linear-gradient(125deg,#223138,#19272d)}.card small,.jobxp{color:#b1d2c7}.card h3{color:#fff6e4}
.section-title h2,aside h2,.panel h2{font-weight:normal;letter-spacing:-.035em}.section-title>span{font-size:13px}
.first-tool,.route-choice{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid var(--border);background:#243138;color:var(--text);padding:12px}
.first-tool{border-left:3px solid #deb275;flex-wrap:wrap}.first-tool div{flex:1;min-width:135px}.first-tool small,.route-choice small{display:block;color:var(--muted);font-size:13px}.first-tool .piece-icon{width:43px;height:43px}
.jobs .card{isolation:isolate;min-height:255px;border:1px solid #475452;border-radius:12px;background:linear-gradient(0deg,#152229 28%,#152229d9 57%,#15222909 100%),var(--land) center top/auto 70% no-repeat,#152229;padding:75px 13px 12px;align-items:stretch}
.jobs .card:before,.jobs .card>.icon{display:none}.jobs .card.current{border-color:var(--gold);box-shadow:inset 0 0 0 1px #dab581}.jobs .card small{color:#ffe0a9;font-size:11px;letter-spacing:.12em}.jobs .card h3{font-size:23px}.jobs .card p{color:#ecf1e9;line-height:1.45}.jobs .action{background:#36574e;border-color:#60796c;color:#fffaed}.jobs .quick-set{background:none;border:0;color:#f4cb8c;font-size:13px;text-align:left}.jobs .current progress::-webkit-progress-value{background:#e2ae69}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.choices button{min-width:0}.route-choice .icon{width:38px;height:38px}.route-choice[aria-pressed=true]{border-color:var(--gold);background:#343c37}.haul{padding:12px;border-left:3px solid var(--gold);background:#2d3a39;margin-bottom:16px}
.paper-stage{background:linear-gradient(90deg,#121c24de,#15252b44),url('./wood.webp?v=11') center/cover;image-rendering:auto}
#Werkstatt>.workshop-progress{background:linear-gradient(90deg,#17262bf7,#16272cce 60%,#16272c44),url('./mine.webp?v=11') center/cover}
.task{border-top:3px solid #c7925e}.gold,.action,.sub{border-radius:7px}
@media(max-width:580px){
 .top,main{padding-inline:12px}.top{height:48px;padding-top:0}.brand b{font-size:23px}
 .top nav{position:fixed;z-index:5;bottom:0;left:0;right:0;background:#111e25fa;border-top:1px solid #526061;display:grid;grid-template-columns:repeat(5,1fr);padding:3px 3px calc(4px + env(safe-area-inset-bottom))}
 nav button{border-bottom:0;border-radius:5px}.top nav button[aria-current]{background:#304038;color:#ffda96}
 main{padding-bottom:calc(76px + env(safe-area-inset-bottom))}#toast{bottom:calc(65px + env(safe-area-inset-bottom))}
 .panorama{margin:12px 0;min-height:205px;background-position:64% 30%}.ptext{max-width:83%;padding:15px}.ptext p{font-size:13px}.ptext h2{font-size:36px}
 .jobs .card,.jobs .card.current{min-height:115px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;align-items:center;column-gap:6px;padding:12px 10px 10px 18%;background:linear-gradient(90deg,#13212818,#152229e8 20%,#19262dfa 76%),var(--land) left center/auto 100% no-repeat,#19262d}
 .jobs .card small,.jobs .card h3,.jobs .card p{grid-column:1}.jobs .card h3{font-size:20px}.jobs .card .action{grid-column:2;grid-row:1/4;width:84px;min-height:44px}
 .jobs .card .quick-set{grid-column:1/-1;grid-row:5;width:100%;min-height:38px}
 .first-tool{gap:7px;padding:9px}.first-tool .gold{font-size:13px}.route-choice{gap:6px;padding:8px}.route-choice .icon{width:27px;height:27px}.route-choice b{font-size:15px}.route-choice small{font-size:12px}
}

/* Navigation and progression journal */
.top nav button {display:flex;gap:6px;align-items:center;justify-content:center}
.top nav img {height:24px;width:24px;object-fit:contain}
img, .card .icon, .piece-icon {image-rendering:auto}
.header-count {white-space:nowrap}
.milestone-journal {margin:22px 0}
.milestone-journal .section-title {margin-top:0}
.progress-list {display:grid;gap:2px;background:var(--border);border:1px solid var(--border);border-radius:10px;overflow:hidden}
.progress-row {display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:12px;padding:11px 14px;background:#1a292f;align-items:center}
.progress-row img {width:42px;height:42px;object-fit:contain}
.progress-row b,.progress-row small {display:block}
.progress-row small {color:var(--muted);font-size:14px}
.progress-row .unlock-level {color:var(--gold);font-size:14px;font-weight:650;white-space:nowrap}
.progress-summary {width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:9px;background:#21323a;color:var(--text);display:flex;gap:12px;align-items:center;text-align:left}
.progress-summary>span:first-child {flex:1}
.progress-summary b,.progress-summary small {display:block}
.progress-summary small {color:var(--muted);font-size:14px;margin-top:1px}
.progress-summary .chevron {font-size:20px;color:var(--gold)}
.progress-summary[aria-expanded=true] .chevron {transform:rotate(180deg)}
.progress-summary[aria-expanded=true] {border-radius:9px 9px 0 0}
.progress-summary+.progress-list {border-top:0;border-radius:0 0 9px 9px}
.progress-summary:not([aria-expanded=true])+.progress-list {display:none}
.workshop-progress {padding:20px 22px;margin-bottom:18px}
.workshop-progress .xpbar {max-width:28rem}
.workshop-progress .up-next {display:block;margin:11px 0 0;color:var(--gold);font-size:14px}
.recipe-tabs {flex-wrap:wrap}
.recipe-tabs button {font-size:15px}
.blue-head img {width:52px;height:52px;flex:none}
.blue-head h3 {overflow-wrap:anywhere}
.blueprint {min-width:0}
.blueprint.future {background:#19262c}
.blueprint.future .blue-head small {color:#bfcac9}
.blueprint .costline {align-items:baseline}
.blue-foot {gap:8px}
.batch-actions {display:flex;flex-wrap:wrap;gap:5px}
.batch-actions button {min-width:42px}
.target-list button {opacity:1}
.target-list button:disabled {color:#c0cdca;background:#233137}
.target-list button.current {border-color:#cba16d}
.target-list button>span {flex:1;min-width:0}
.target-list strong {max-width:43%;text-align:right}
.wallet {flex-wrap:wrap}
@media(max-width:840px){.top nav img{width:20px;height:20px}.top{gap:12px}.top nav{gap:8px}}
@media(max-width:780px) and (min-width:581px){.top nav img{display:none}.top,main{padding-inline:12px}}
@media(max-width:580px){
 .top nav button{flex-direction:column;gap:1px;line-height:1.25;font-size:12px;min-height:48px}
 .top nav img{width:23px;height:23px}
 .blueprints{grid-template-columns:1fr}
 .blueprint{padding:15px}
 .blue-head{flex-wrap:nowrap;gap:12px}
 .blue-head h3{font-size:21px}.blue-head img{width:48px;height:48px}
 .blue-foot{align-items:center;flex-direction:row}.blueprint p,.blueprint .costline{font-size:14px}
 .progress-row{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:10px}
 .progress-row img{width:34px;height:34px}
 .workshop-progress{padding:16px}
}
.rank-track{display:flex;gap:4px;flex-wrap:wrap;margin:11px 0}
.rank-track span{font-size:12px;line-height:1.4;padding:2px 6px;border:1px solid #536761;border-radius:4px;color:#c4d0c9}
.rank-track .upcoming{border-color:#b89d75;color:var(--gold)}
.rank-track .earned{background:#354e42;color:#e1f1cf}
#targets{max-height:85dvh;overflow:auto}
@media(max-width:380px){.first-tool div{min-width:110px}.leaves{grid-template-columns:1fr}.leaves:before,.rootnode:after{display:none}.leaves{margin-top:8px}.tree .rootnode{max-width:none}}
.blue-foot{flex-wrap:wrap}

:root {--bg:#121d20;--surface:#213033;--border:#425051;--text:#f2ecdc;--muted:#bfcac1;--gold:#eec284}
body{background:radial-gradient(ellipse at 74% -5%,#2b3e40,transparent 57rem),var(--bg)}
.top,.panel,.card,.route-choice,.region,.paper-stage{--edge:#85795a}
.top .brand img{height:44px;width:40px;object-fit:contain}
.header-count{display:flex;align-items:center;gap:7px}
.header-count img,.objective-fire{width:27px;height:27px;object-fit:contain}
.ptext{max-width:min(36rem,75%)}
.panorama{background-position:center 47%}
.valleymap{position:relative;isolation:isolate;background:#354949 url('./map-furt.webp?v=60') center/cover no-repeat;aspect-ratio:2.65;min-height:0}
.map-building{pointer-events:none;position:absolute;object-fit:contain;transform:translate(-50%,-60%);filter:drop-shadow(1px 4px 3px #202b2a8c)}
.map-bridge{width:22%;height:42%;left:51%;top:57%}
.map-mill{width:18%;height:52%;left:28%;top:63%}
.valleymap .pin{font:600 12px/1.2 system-ui,sans-serif;border:1px solid #a7a58b;border-radius:15px;background:#18292af2;padding:5px 9px;min-height:27px;box-shadow:0 2px 5px #1118}
.valleymap .pin[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}
.pin-bridge{left:52%;top:73%}.pin-mill{left:28%;top:91%}
.beacon{height:16px;width:16px;transform:translate(-50%,-80%);background:transparent url('./i-fire.webp?v=11') center/contain no-repeat;box-shadow:none;filter:drop-shadow(0 0 4px #f5a755);z-index:0}
.empty-slot-art{filter:saturate(.18);opacity:.42}
@media(max-width:580px){.top .brand img{height:38px;width:34px}.ptext{max-width:85%}.valleymap{aspect-ratio:2.45}.header-count img{width:24px;height:24px}.valleymap .pin{font-size:11px;min-height:23px;padding:3px 6px}.pin-mill{top:87%}}
.dungeon-scene{height:clamp(110px,17vw,195px);margin:13px 0;border:1px solid var(--border);border-radius:8px;background-position:center 48%;background-size:cover}
#Werkstatt>.workshop-progress{background:linear-gradient(90deg,#17262bfa,#17262bca 52%,#17262b25),url('./workshop.webp?v=11') center 58%/cover}

.opening-card{border-top:2px solid #c99962;margin-bottom:18px;padding:16px}
.opening-card>.gold{margin-top:12px}
.opening-head{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:start}
.opening-head img{width:52px;height:52px;object-fit:contain}
.opening-head h2{font-size:clamp(23px,4vw,30px)}
.opening-head p{margin:6px 0 12px}
.starter-materials{display:grid;gap:6px}
.starter-material{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:54px;padding:4px 8px;background:#142429;border:1px solid var(--border);border-radius:7px}
.starter-material img{width:32px;height:32px;object-fit:contain}
.starter-material b,.starter-material small{display:block}
.starter-material small{color:var(--muted);font-size:13px}
.starter-material .sub{min-height:38px;padding-inline:8px}
.opening-card .tool-speed{margin:0 0 10px}
.tool-speed strong{color:var(--gold)}
.first-choice-copy{margin:0 0 10px;color:var(--muted)}
#furtHeading,#projectDetails,.blueprint{scroll-margin-block:12px 68px}
#projectDetails:focus-visible,.blueprint:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.beacon.fresh{animation:fire-light 1s ease-out}
@keyframes fire-light{from{opacity:.15;scale:.65}50%{scale:1.5}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){.beacon.fresh{animation:none}}
@media(max-width:580px){
 .opening-card{padding:12px}.opening-head{grid-template-columns:38px minmax(0,1fr);gap:7px}
 .opening-head img{width:38px;height:38px}.opening-card>.gold{width:100%}
 .first-choice-copy+.choices{grid-template-columns:1fr}.first-choice-copy+.choices .route-choice{min-height:60px}
 .first-choice-copy+.choices .route-choice img{width:39px;height:39px}
}

.jobs .card>.icon{display:block;width:42px;height:42px;object-fit:contain;margin:0 0 4px;align-self:start;filter:drop-shadow(0 1px 3px #061416)}
.jobs .card{padding-top:48px}
@media(max-width:580px){
 .jobs .card,.jobs .card.current{grid-template-columns:32px minmax(0,1fr) auto;padding:10px 8px 9px;column-gap:7px;background:linear-gradient(90deg,#14212730,#152229e0 27%,#19262dfa 78%),var(--land) left center/auto 100% no-repeat,#19262d}
 .jobs .card>.icon{width:31px;height:36px;grid-column:1;grid-row:1/4;align-self:center;margin:0}
 .jobs .card small,.jobs .card h3,.jobs .card p{grid-column:2}
 .jobs .card .action{grid-column:3}
}

footer{flex-wrap:wrap}
footer #saved{flex:1 1 230px}
#saveDialog{width:min(32rem,calc(100% - 24px));max-height:85dvh;overflow:auto;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text)}
#saveDialog::backdrop{background:#0b1818bc}
.close-save{float:right;margin:0 0 5px 8px}
.save-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.save-controls label{cursor:pointer;display:inline-flex;align-items:center}
#importFile{width:1px;height:1px;position:absolute;opacity:0}
.save-controls label:has(+input:focus-visible){outline:2px solid var(--gold);outline-offset:3px}
#importConfirm{margin-top:16px;padding-top:8px;border-top:1px solid var(--border)}
#saveNotice:empty{display:none}

.group-link{font-size:13px;min-height:36px;flex-shrink:0}
@media(min-width:841px){.top{gap:20px}.top nav{gap:12px}}
@media(max-width:580px){.top nav{grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;padding-inline:2px}.top nav button{font-size:clamp(10px,2.8vw,12px);letter-spacing:-.025em;min-width:0}.header-count{margin-left:0}.group-link{padding:4px 8px;font-size:12px}}
#portraitDialog{width:min(480px,calc(100% - 24px));max-height:84dvh;overflow:auto;background:#18282d;color:var(--text);border:1px solid #8b7863;border-radius:12px;padding:20px}
#portraitDialog::backdrop{background:#0a151bd9}
.portrait-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.portrait-option{display:grid;justify-items:center;align-content:end;padding:10px;border:1px solid var(--border);border-radius:8px;background:radial-gradient(ellipse at 50% 22%,#495143,#203234 72%)}
.portrait-option img{height:clamp(130px,40vw,225px);max-width:100%;object-fit:contain;display:block}
.portrait-option b{margin-top:7px}
.portrait-option[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}
.portrait-edit{margin-top:12px;max-width:390px}
.portrait-edit summary{cursor:pointer}
.portrait-edit .portrait-options{margin-top:12px}
.class-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:7px}
.class-options button{display:grid;justify-items:center;gap:5px;align-content:center;min-height:78px;padding:8px 3px;background:#223638;border:1px solid var(--border);border-radius:7px;font-size:14px}
.class-options button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}
.class-summary,.enemy-preview{display:flex;align-items:center;gap:12px;margin:15px 0}
.class-summary img,.enemy-preview img{width:clamp(56px,15vw,95px);height:auto;aspect-ratio:1;object-fit:contain}
.class-summary>div,.enemy-preview>div{flex:1;min-width:0}
.class-summary p,.enemy-preview p{margin:4px 0}
.class-summary .xpbar{max-width:360px}
.combat-stats{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.combat-stats span{border:1px solid var(--border);border-radius:6px;padding:5px 9px}
.combat-stats b,.battle-rating{color:var(--gold)}
.battle-rating{display:inline-block;font-size:13px}
.battle-hard{color:#ffb19d}
.weapon-upgrade,.prep{padding:10px;margin:10px 0;border:1px solid var(--border);border-radius:7px;background:#15252a}
.prep p{margin:5px 0}
.class-tree-title{margin:17px 0 8px}
.class-nodes{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}

.group-layout{display:grid;gap:12px}
.group-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.group-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0}
.group-form label{display:grid;gap:4px;flex:1;min-width:min(160px,100%);font-size:14px}
.group-form :is(input,select){font:inherit;min-height:43px;padding:8px;border:1px solid var(--border);border-radius:6px;background:#142329;color:var(--text);width:100%}
.group-party{border-top:1px solid var(--border);margin:13px 0 0;padding:13px 0 0}
.group-party small{color:var(--gold)}
.group-notice{color:#ffc4a3!important;overflow-wrap:anywhere}
.group-columns li button{margin-left:8px}
@media(max-width:700px){.group-columns{grid-template-columns:1fr}}

#classDialog{width:min(29rem,calc(100% - 24px));padding:20px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px}
#classDialog::backdrop{background:#0b1818bc}
#classDialogSummary,.class-fixed{color:var(--gold)}

.class-growth{margin:10px 0 14px;padding:10px;border:1px solid var(--border);border-radius:7px}
.class-growth summary{cursor:pointer;color:var(--gold)}
.class-growth p,.next-class-level{font-size:14px}
.class-table{overflow-x:auto}
.class-table table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.class-table th,.class-table td{text-align:right;padding:6px 7px;border-bottom:1px solid var(--border)}
.class-table th:first-child{text-align:left}
.enemy-xp{display:block;margin-top:5px;font-size:13px;color:var(--muted)}

.crafting-status{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 12px;margin:8px 0 14px;padding:12px;border-left:3px solid var(--gold)}
.crafting-status p{margin:3px 0 0}
.crafting-status progress{grid-column:1/-1}
.blueprint.craft-running{border-color:var(--gold)}
.workshop-hint{color:var(--muted);font-size:14px;margin:0 0 10px}

.enemy-tactics{display:grid;gap:6px;margin:8px 0;font-size:14px}
.enemy-tactics dt{font-weight:700;color:var(--gold)}
.enemy-tactics dd{margin:0;color:var(--muted);line-height:1.45}
.enemy-preview:has(.enemy-tactics){align-items:flex-start}
.combat-report{margin:10px 0;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}
.combat-report ul{margin:4px 0 0;padding-inline-start:20px;color:var(--muted)}

.jobs .workplace-resources{margin:8px 0 4px;min-width:0}
.jobs .card .resource-pick,.activity-workbench .resource-pick{
 display:flex;align-items:center;gap:8px;width:100%;min-height:52px;margin:0;padding:6px 9px;
 border:1px solid #b99563;border-radius:8px;background:#283a3e;color:#fff1d6;text-align:left;font-size:15px
}
.resource-pick:hover,.resource-pick:focus-visible{box-shadow:0 0 0 2px var(--gold)}
.resource-pick .resource-icon{width:34px;height:34px;object-fit:contain;flex:none}
.resource-current{flex:1;min-width:0;overflow-wrap:anywhere}
.resource-current>span{display:block;color:var(--muted);font-size:13px}
.resource-action{font-size:14px;font-weight:700;color:var(--gold)}
.resource-next{display:block;margin:6px 0 0;padding:0 3px;font-size:14px;line-height:1.35;color:var(--muted)}
.resource-next b{color:#f2dfbb}
@media(max-width:580px){
 .jobs .workplace-resources{grid-column:1/-1;grid-row:4}
}

.dungeon-panel{max-width:760px;margin:0 auto}

#Rucksack{max-width:900px;margin:0 auto}
#Rucksack h2{margin:12px 0}
.inventory-categories,.inventory-items{display:grid;list-style:none;margin:0;padding:0}
.inventory-categories{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px}
.inventory-categories button{
 display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;text-align:left;width:100%;
 min-height:70px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)
}
.inventory-categories button:hover,.inventory-categories button:focus-visible{border-color:var(--gold)}
.inventory-categories b{display:block;color:#fff1d6;font-size:16px}
.inventory-categories small{display:block;margin-top:3px;color:var(--muted);font-size:13px}
.inventory-categories .icon{width:44px;height:44px;object-fit:contain}
.inventory-back{min-height:44px}
.inventory-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.inventory-items li{
 display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:52px;
 padding:7px 11px;border:1px solid var(--border);border-radius:8px;background:var(--surface)
}
.inventory-items .icon{width:36px;height:36px;object-fit:contain}
.inventory-items strong{color:var(--gold);font-variant-numeric:tabular-nums}
.inventory-items .inventory-empty{color:var(--muted)}
.inventory-empty strong{color:inherit}
@media(max-width:580px){
 .inventory-categories,.inventory-items{grid-template-columns:1fr;gap:6px}
}

.chapter-journal{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0;border-left:3px solid var(--gold)}
.chapter-journal>div{flex:1 1 250px}
.chapter-journal h2{font-size:16px;margin:0 0 5px;color:var(--gold)}
.chapter-journal p{margin:4px 0 0}
.chapter-journal button,.forge-option button{min-height:44px}
#Dungeons>.chapter-journal{max-width:760px;margin:0 auto 12px}
#weaponForges{margin:16px 0;scroll-margin-block:10px 70px}
.forge-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px}
.forge-option{padding:12px;border:1px solid var(--border);border-radius:9px}
.forge-option h4{margin:0;color:var(--gold)}
.forge-option ul{list-style:none;margin:8px 0;padding:0}
.forge-option li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px}
.material-source{min-height:44px;background:none;padding:0 3px;color:var(--gold);border:0;text-decoration:underline;text-align:left}

.dungeon-difficulty{margin:12px 0 16px}
.dungeon-difficulty h4{margin:0 0 5px}
.dungeon-difficulty button{min-height:44px}
.dungeon-difficulty [aria-pressed=true]{border-color:var(--gold);color:var(--gold);background:#354538}
#veteranTemper{margin:14px 0;scroll-margin-block:12px 68px}
#veteranTemper button{margin:4px 6px 0 0;min-height:44px}

.battle-board{margin:12px 0;padding:12px;border:1px solid #657970;border-radius:10px;background:#1a2b31}
.battle-sides,.battle-damage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.battle-side{
 position:relative;isolation:isolate;overflow:hidden;display:grid;align-items:end;
 min-width:0;min-height:clamp(10rem,28vw,15rem);text-align:center;
 border:1px solid #7b694c;border-radius:.25rem;background:#121a1e
}
.battle-side.enemy{border-color:#9b624e}
.battle-art{position:absolute;inset:0;z-index:-1}
.battle-art::after{
 content:"";position:absolute;inset:0;
 background:linear-gradient(to bottom,transparent 28%,#0b1118a8 62%,#0b1118 100%)
}
.battle-art>.role-portrait,.battle-art>.battle-enemy-art{width:100%;height:100%;display:block}
.battle-art>.role-portrait img{object-fit:cover;object-position:center top}
.battle-art>.battle-enemy-art{object-fit:cover;object-position:center 20%}
.battle-vitals{
 display:grid;gap:.28rem;padding:.5rem;color:#fff4e2;
 text-shadow:0 1px 3px #000;font-variant-numeric:tabular-nums
}
.battle-vitals b{line-height:1.2;overflow-wrap:anywhere}
.battle-damage{font-variant-numeric:tabular-nums}
.battle-side progress{width:100%;height:10px;margin:0;border:none;accent-color:#90c99c}
.battle-side.enemy progress{accent-color:#ec967e}
.battle-side progress::-webkit-progress-bar{border-radius:8px;background:#111e23}
.battle-side progress::-webkit-progress-value{border-radius:8px;background:#90c99c;transition:width .2s ease-out}
.battle-side.enemy progress::-webkit-progress-value{background:#ec967e}
.battle-damage{margin:10px 0 0;text-align:center;font-size:14px}
.battle-damage>div{padding:6px;border-radius:6px;background:#26383d}
.battle-damage dt{color:var(--muted)}
.battle-damage dd{margin:2px 0 0}
.battle-heal{margin:6px 0 0;color:#b3d5a9;font-size:14px;text-align:center}
.battle-heal:empty{display:none}
@media(prefers-reduced-motion:reduce){
 .battle-side progress::-webkit-progress-value{transition:none}
}

.battle-healing{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:10px}
.battle-healing button{min-height:44px}
.battle-healing small{color:var(--muted);font-size:13px}

#healingSetup{max-width:760px;margin:0 auto 12px}
.healing-settings summary{font-weight:700;cursor:pointer}
.healing-settings form{margin-top:10px}
.healing-settings>div{margin-top:8px}
.healing-settings p,.battle-note{font-size:14px;color:var(--muted);margin:6px 0 0}
.healing-settings .tune{align-items:end}
.healing-settings label{display:grid;gap:3px;font-size:14px}
.healing-settings input,.healing-settings select{
 min-height:42px;border:1px solid var(--border);border-radius:6px;background:#17272c;padding:5px 8px;color:var(--text)
}
.healing-settings input{width:85px}

@media(min-width:581px){.jobs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.valley-activities{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0}
.valley-activities h2{margin:0;font-size:18px}
#Aktivitäten{max-width:900px;margin:0 auto}
#activityMenu h2{margin:10px 0 7px}
#activityMenu section+section{margin-top:18px}
.activities-back{min-height:44px;margin:0 0 8px}
.activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:8px}
.activity-entry{
 display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;align-items:center;min-height:62px;text-align:left;
 padding:8px 10px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px
}
.activity-entry:hover,.activity-entry:focus-visible{border-color:var(--gold)}
.activity-entry img{width:38px;height:38px;object-fit:contain}
.activity-entry b,.activity-entry small{display:block}
.activity-entry small{color:var(--muted);font-size:13px;margin-top:3px}

#activityWork .jobs{grid-template-columns:minmax(0,1fr)}

.outfit-picker{display:grid;gap:5px;margin:10px 0;font-size:14px}
.outfit-picker select{
 width:100%;min-height:44px;padding:6px 9px;color:var(--text);background:#23373b;border:1px solid #647672;border-radius:7px
}
.activity-outfit{
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin:10px 0;padding:8px 10px;
 color:#f4dfbf;background:var(--surface);border:1px solid var(--border);border-radius:7px;font-size:14px
}
.activity-outfit button{min-height:40px}
#outfitEditor{scroll-margin-block:10px 70px}

.paperdoll img.trade-prop{inset:auto 2% 13% auto;width:34%;height:30%;max-width:100%;object-fit:contain;z-index:1}
.jobs .activity-outfit{grid-column:1/-1;margin:6px 0}
.jobs .activity-outfit button{width:auto;min-width:100px}
@media(max-width:580px){
 .jobs .card:has(.activity-outfit) .activity-outfit{grid-row:5}
 .jobs .card:has(.activity-outfit) .quick-set{grid-row:6}
}

.provision-panel{margin-bottom:1rem}
.provision-panel summary{cursor:pointer;font-weight:700}
.provision-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem}
.provision-form{margin:.75rem 0;align-items:end}
.provision-form label{display:grid;gap:.25rem}
.provision-form input[type=number]{width:5rem}
.order-status{margin-top:.75rem}
.order-status progress{display:block;width:min(100%,28rem);margin-top:.35rem}

.dungeon-panel{max-width:62rem}
.dungeon-selector,.mist-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.65rem;margin:.85rem 0}
.dungeon-choice{display:grid;gap:.24rem;text-align:left;min-height:3.75rem;background:#20343b;color:#edf3ec;border:1px solid #49636a;border-radius:.6rem;padding:.75rem}
.dungeon-choice small,.dungeon-run-head small,.dungeon-steps small,.dungeon-roster small{display:block;color:#b6c9c5;font-size:.84rem}
.dungeon-choice[aria-pressed=true]{border-color:#cba969;background:#304748;box-shadow:inset 0 -2px #cba969}
.dungeon-hero{display:grid;align-items:end;min-height:clamp(10rem,35vw,19rem);position:relative;isolation:isolate;overflow:hidden;border-radius:.8rem;margin:1rem 0;background:#1d3038}
.dungeon-hero .dungeon-scene{position:absolute;inset:0;margin:0;height:100%;border:0;border-radius:0;z-index:-2}
.dungeon-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(8deg,#102029 1%,transparent 80%);z-index:-1}
.dungeon-hero>div:last-child{padding:clamp(1rem,3vw,1.7rem);color:#f2efe4}
.dungeon-hero h2,.dungeon-run-head h2{margin:.25rem 0 0}
.dungeon-hero span{font-weight:700;color:#f1ca87}
.dungeon-roster ol,.dungeon-steps,.battle-allies{list-style:none;padding:0;margin:.65rem 0}
.dungeon-roster li+li{margin-top:.55rem}
.dungeon-roster details,.dungeon-steps li,.battle-allies li{border:1px solid #49636a;border-radius:.55rem;background:#1a2b31}
.dungeon-roster summary{cursor:pointer;padding:.65rem;display:flex;gap:.6rem;align-items:center}
.dungeon-roster summary::after{content:"+";margin-left:auto;font-size:1.2rem;padding:0 .4rem;color:#d9bb83}
.dungeon-roster details[open] summary::after{content:"−"}
.dungeon-roster summary>.icon,.room-loot .icon{width:2rem;height:2rem;object-fit:contain}
.room-detail{padding:0 .75rem .65rem}
.room-loot{display:flex;flex-wrap:wrap;gap:.4rem}
.room-loot span{display:flex;align-items:center;gap:.3rem;padding:.15rem .45rem;background:#263d43;border-radius:.3rem}
.room-loot .icon{height:1.3rem;width:1.3rem}
.dungeon-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.5rem}
.dungeon-steps li{padding:.55rem .65rem}
.dungeon-steps [aria-current=step]{border-color:#cba969}
.dungeon-run-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin:.8rem 0}
.dungeon-run-head>span{padding:.32rem .62rem;border-radius:.35rem;background:#304748;color:#f2e4c8}
.battle-board{background:radial-gradient(ellipse at 50% 0%,#304b55,#16272f 72%);padding:clamp(.65rem,2.5vw,1.2rem)}
.battle-side progress{height:.88rem}
.battle-allies{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.45rem}
.battle-allies li{padding:.5rem;display:grid;gap:.25rem}
.battle-allies progress{width:100%;height:.65rem}
.nebel-pass{margin-top:1rem}
.mist-projects article{min-width:0}
.mist-resource>.icon{width:2.35rem;height:2.35rem;object-fit:contain}

#healingSetup{max-width:62rem;margin:1rem auto}
.dungeon-outfit{margin:.65rem 0}
.dungeon-outfit summary{cursor:pointer}

body{background:#101a22;color:#eee9d9}
.top .brand b{font-family:Georgia,serif;color:#f3dfbc}
.valley-dashboard{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(12rem,.95fr);grid-template-areas:"land land character" "order needs character";gap:.75rem;margin-top:1.05rem}
.valley-dashboard .panorama{grid-area:land;margin:0;min-height:clamp(17rem,30vw,25rem);border-color:#716451;border-radius:.55rem;background-position:center 46%;display:flex;align-items:end}
.valley-dashboard .panorama-nebel{background-image:url('./dungeon-nebel.webp?v=11')}
.valley-dashboard .ptext{position:relative;max-width:95%;padding:clamp(1rem,3vw,2.2rem)}
.valley-dashboard .ptext h1{font-family:Georgia,serif;font-size:clamp(2.2rem,5vw,4.5rem);font-weight:normal;line-height:1.02;margin:.25rem 0;color:#f8e7cc;text-shadow:0 2px 14px #000}
.valley-dashboard .ptext p{color:#efe9de;margin:.65rem 0 0}
.dashboard-panel{min-width:0;padding:clamp(.8rem,2vw,1.15rem);border:1px solid #70614d;border-radius:.55rem;background:linear-gradient(140deg,#263137,#151f26 78%);box-shadow:inset 0 0 0 2px #131c22}
.dashboard-panel h2{font-family:Georgia,serif;font-size:clamp(1.1rem,2vw,1.55rem);color:#f3dfbc;margin:0 0 .75rem;padding-bottom:.5rem;border-bottom:1px solid #77634a}
.overview-character{grid-area:character;text-align:center;background:radial-gradient(ellipse at 70% 65%,#514034,#222c35 55%,#151f26 85%)}
#dashboardCharacter{display:flex;flex-direction:column;align-items:center;gap:.8rem}
.overview-character .paperdoll{display:inline-block;width:min(100%,17rem);height:clamp(12rem,29vw,23rem);filter:drop-shadow(0 12px 16px #090d13)}
.overview-character-meta{display:grid;justify-items:center;gap:.45rem}
.overview-character-meta small{color:#d9c9ad}
.overview-order{grid-area:order}
.overview-needs{grid-area:needs}
.overview-work-main,.overview-need{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:center}
.overview-work-main>.icon{width:clamp(2.4rem,5vw,4rem);height:auto}
.overview-work-main h3,.overview-work-main p{margin:.15rem 0 .4rem}
.valley-dashboard progress{display:block;width:100%;height:.7rem;margin:.35rem 0 .6rem;accent-color:#e4ac54}
.overview-need.thirst progress{accent-color:#79c4d9}
.overview-need>.icon{width:1.7rem;height:1.7rem}
.overview-need-label{display:flex;justify-content:space-between;gap:.4rem;font-variant-numeric:tabular-nums}
.valley-dashboard .provision-panel{margin:.7rem 0 0;padding:.55rem;border-color:#516066;background:#18252d}
.valley-dashboard .provision-grid{grid-template-columns:minmax(0,1fr)}
.valley-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:.75rem 0 1.3rem}
.valley-shortcut{min-height:clamp(6rem,13vw,11rem);display:flex;align-items:end;padding:.8rem;text-align:left;color:#fae5bd;font:700 clamp(1rem,2.2vw,1.55rem) Georgia,serif;text-shadow:0 2px 6px #000;border:1px solid #70614d;border-radius:.55rem;background:linear-gradient(0deg,#101a22ee 4%,transparent 75%),var(--scene) center/cover}
.valley-shortcut:hover,.valley-shortcut:focus-visible{border-color:#f1c47f}
@media(max-width:850px){
 .valley-dashboard{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);grid-template-areas:"land character" "order needs";gap:.45rem;margin-top:.45rem}
}

/* The valley overview follows the proportions and artwork of the approved concept. */
main:has(#Tal:not([hidden])){max-width:96rem;padding-inline:clamp(.45rem,1vw,1rem)}
body:has(#Tal:not([hidden])){background:#101518}
body .top{max-width:96rem}
body:has(#Tal:not([hidden])) header{background:linear-gradient(100deg,#111619,#1a2429,#111619);border-bottom:1px solid #7b6a4c}
body:has(#Tal:not([hidden])) .brand b{font-size:clamp(1.35rem,3.1vw,2.9rem)}
body:has(#Tal:not([hidden])) .brand img{width:clamp(2.2rem,4.7vw,4.5rem);height:auto}
@media(min-width:851px){
 body .top nav{flex:1;justify-content:space-around;gap:0}
 body .top nav img{display:none}
 body .top nav button{font:600 clamp(.95rem,1.45vw,1.55rem) Georgia,serif;color:#ebd8b5;padding-inline:.7rem}
 body .top nav button[aria-current]{background:linear-gradient(0deg,#8c4e225c,transparent);box-shadow:inset 0 -2px #f6bd66}
 .valley-dashboard{grid-template-columns:minmax(0,54fr) minmax(0,23fr) minmax(0,22fr);gap:clamp(.45rem,.8vw,.8rem);margin-top:.35rem}
}
.valley-dashboard .panorama{aspect-ratio:1196/425;min-height:0;border:1px solid #857252;border-radius:.28rem;overflow:hidden;background:linear-gradient(0deg,#10171be6,transparent 58%),url('./overview-nebel.webp?v=44') center/cover no-repeat #181e20}
.valley-dashboard .panorama::before{display:none}
.valley-dashboard .ptext{padding:0;position:absolute;inset:0;max-width:none}
.valley-dashboard .ptext h1{
 position:absolute;left:clamp(.65rem,2.4vw,2rem);right:.65rem;bottom:2.55rem;margin:0;
 font:700 clamp(1.05rem,3.8vw,3.65rem)/1.08 Georgia,serif;color:#f5e5c7;
 text-shadow:0 2px 6px #000b
}
.valley-dashboard .ptext p{position:absolute;right:clamp(.4rem,1vw,1rem);bottom:.55rem;margin:0;padding:.28rem .6rem;border:1px solid #a28d63;border-radius:.15rem;background:#131819e6;color:#f0dfbc;font-size:clamp(.7rem,1.2vw,.95rem)}
.dashboard-panel{border:1px solid #897655;border-radius:.23rem;background:radial-gradient(ellipse at 20% 0%,#293032,#141b1d 78%);box-shadow:inset 0 0 0 2px #222528,inset 0 0 0 3px #78654177}
.dashboard-panel h2{font-size:clamp(1.28rem,2.25vw,2.25rem);color:#f3dfbc;margin:0 0 .55rem;padding-bottom:.5rem;border-bottom:1px solid #776952}
.overview-character{position:relative;overflow:hidden;isolation:isolate;min-height:0;background:#101618}
.overview-character h2{position:relative;z-index:1}
.overview-ranger{position:absolute;inset:2.5rem 0 0;width:100%;height:calc(100% - 2.5rem);object-fit:cover;object-position:center 26%;z-index:-2}
.overview-character::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0e1315 2%,transparent 29%,transparent 86%,#0e1315 100%);z-index:-1}
#dashboardCharacter{justify-content:end;height:calc(100% - 3rem);min-height:12rem}
.overview-character-meta{color:#f6e3c1;text-shadow:0 2px 4px #000}
.overview-work-main>.overview-wood{width:clamp(2.8rem,10vw,10rem);border-radius:.25rem}
.overview-work-main h3,.overview-need strong{font-family:Georgia,serif;color:#f2e2c7}
.overview-work-main h3{font-size:clamp(1.05rem,2vw,1.9rem)}
.valley-dashboard progress{height:clamp(.7rem,1.2vw,1.05rem);border:1px solid #9d835a;border-radius:1rem}
.valley-dashboard progress::-webkit-progress-bar{background:#101415;border-radius:1rem}
.valley-dashboard progress::-webkit-progress-value{background:linear-gradient(#f9ce7d,#ad622a);border-radius:1rem}
.valley-dashboard .thirst progress::-webkit-progress-value{background:linear-gradient(#a8dfee,#3982a1)}
.valley-shortcut{min-height:clamp(6rem,14.4vw,14rem);border-color:#8c7856;border-radius:.2rem;background:linear-gradient(0deg,#101619 0%,#101619e8 17%,transparent 52%),var(--scene) center top/cover}
.valley-shortcut>span{display:flex;align-items:center;gap:.6rem}
.valley-shortcut .icon{width:1.5em;height:1.5em;object-fit:contain}
@media(max-width:580px){
 body .top{height:auto;padding-top:0}
 body .top nav{
  position:static;display:flex;justify-content:space-between;width:100%;overflow-x:auto;gap:.2rem;
  order:3;padding:0;background:transparent;border-top:1px solid #584b36
 }
 body .top nav button{
  flex:0 0 auto;display:block;min-height:2.75rem;padding-inline:.42rem;
  font:700 .77rem Georgia,serif;color:#efd9b1
 }
 body .top nav img{display:none}
 body .top nav [aria-current]{box-shadow:inset 0 -2px #edbb70;background:linear-gradient(0deg,#83502470,transparent)}
 .valley-dashboard{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:.4rem}
 .valley-dashboard .panorama{
  min-height:clamp(8.6rem,40vw,12.5rem);width:100%;aspect-ratio:auto;background-size:cover;background-position:left center
 }
 .valley-dashboard .ptext h1{bottom:2.85rem}
 .valley-dashboard .ptext p{left:.3rem;right:auto;bottom:.3rem;font-size:.69rem;padding:.14rem .28rem}
 .dashboard-panel{padding:.48rem .5rem}
 .dashboard-panel h2{font-size:clamp(1rem,4.1vw,1.25rem);margin-bottom:.4rem;padding-bottom:.3rem}
 .overview-character h2{font-size:clamp(.85rem,3.55vw,1.12rem)}
 .overview-ranger{inset:1.55rem 0 0;height:calc(100% - 1.55rem);object-fit:contain;object-position:center top}
 #dashboardCharacter{height:calc(100% - 2rem);min-height:0}
 .overview-character-meta{gap:.1rem;font-size:.72rem}
 .overview-character-meta small{display:none}
 .overview-character-meta button{min-height:2.75rem;padding:.2rem .4rem;font-size:.73rem;background:#101618e8}
 .overview-work-main,.overview-need{gap:.35rem}
 .overview-work-main>.icon{width:1.7rem}
 .overview-work-main h3{font-size:1rem;line-height:1.14}
 .overview-work-main p,.overview-need-label{font-size:.79rem;line-height:1.23}
 .overview-need>.icon{width:1.3rem;height:1.3rem}
 .valley-dashboard progress{margin:.2rem 0 .5rem}
 .valley-dashboard .provision-panel{padding:0 .32rem;margin-top:.35rem}
 .valley-dashboard .provision-panel summary{display:list-item;align-content:center;min-height:2.75rem;font-size:.77rem;overflow-wrap:anywhere}
 .overview-order #dashboardWork>button{padding:.35rem .5rem;font-size:.8rem;min-height:2.75rem}
 .valley-shortcuts{gap:.35rem;margin:.4rem 0 .9rem}
 .valley-shortcut{min-height:clamp(4.5rem,21vw,6rem);padding:.35rem;font-size:clamp(.78rem,3.7vw,1rem);overflow-wrap:anywhere}
 .valley-shortcut .icon{display:none}
}
.overview-goal{position:relative;margin:.45rem 0 .6rem}
.overview-goal progress{margin:0}
.overview-goal span{position:absolute;inset:0;display:grid;place-items:center;font-size:.75rem;line-height:1;color:#fff2d5;text-shadow:0 1px 3px #000,0 1px 3px #000}

@media(max-width:580px){.valley-dashboard .provision-panel select,.valley-dashboard .provision-panel input:not([type=checkbox]){max-width:100%}}

.valley-chapter{margin:0 0 .8rem}
.valley-chapter>summary{
 cursor:pointer;padding:.3rem .55rem;font:700 clamp(1.05rem,2vw,1.4rem) Georgia,serif;color:#f2dfb9
}
.valley-chapter[open]>summary{border-bottom:1px solid #786749;margin-bottom:.7rem}
.valley-chapter .grid{margin:0}
.valley-chapter .panel{background:linear-gradient(130deg,#283032,#182125);border-color:#675b46;border-radius:.3rem}
.overview-portrait-link{
 position:absolute;inset:0;display:flex;align-items:end;justify-content:center;
 width:100%;height:100%;border:0;padding:.4rem;background:transparent;color:inherit;isolation:isolate
}
.overview-portrait-link:hover{background:transparent}
.overview-portrait-link:focus-visible{outline:2px solid #efbf78;outline-offset:-4px}
.overview-portrait-link::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#101618dd,transparent 28%,transparent 78%,#0e1315aa)}
.overview-character h2{pointer-events:none}
.overview-work-main>.piece-icon{width:2.4rem;height:2.4rem;object-fit:contain}
@media(max-width:580px){
 .overview-character{display:grid;grid-template-rows:auto minmax(0,1fr);padding:0}
 .overview-character h2{margin:0;padding:.38rem .25rem;background:#111719}
 #dashboardCharacter{position:relative;height:auto;min-height:0}
 .overview-ranger{object-fit:cover;object-position:center top;inset:0;height:100%}
 .overview-character .overview-character-meta{align-self:end;font-size:.77rem}
 .overview-work-main>.piece-icon{width:1.7rem;height:1.7rem}
 .overview-order #dashboardWork>button{margin-top:.25rem}
 .valley-chapter>summary{min-height:2.75rem;align-content:center}
}

.valley-dashboard .thirst progress::-moz-progress-bar{background:linear-gradient(#a8dfee,#3982a1);border-radius:1rem}
.overview-live-avatar{
 position:absolute;inset:0;display:grid;place-items:center;padding:2.7rem .15rem 2rem;
 background:radial-gradient(ellipse at 65% 60%,#4c3d2b,#1b252b 63%,#101719);
 z-index:-2
}
.overview-character .overview-live-avatar .paperdoll{height:100%;width:auto;max-width:100%;min-height:0}
.overview-live-avatar .paperdoll img{object-fit:contain}
@media(max-width:580px){
 .overview-live-avatar{padding:.15rem .1rem 1.05rem}
}

/* Carry the valley's palette and framing across the game. */
body{background:#101518}
header{background:linear-gradient(100deg,#111619,#1a2429,#111619);border-bottom:1px solid #7b6a4c}
.page-banner{
 min-height:clamp(9rem,19vw,15rem);display:flex;align-items:end;margin:.8rem 0 .75rem;
 padding:clamp(1rem,3.5vw,2.1rem);border:1px solid #857252;border-radius:.25rem;
 background:linear-gradient(92deg,#0d1419e8,transparent 84%),linear-gradient(0deg,#101719e6,transparent 70%),var(--page-scene) center 44%/cover #1a2429
}
.page-banner h1{font:700 clamp(1.85rem,4vw,3.5rem)/1.06 Georgia,serif;color:#f4dfb7;margin:.25rem 0;text-shadow:0 2px 5px #000}
.page-banner #pageContext{color:#e4d7c1;margin:.3rem 0 0}
.page-banner-compact{min-height:0;padding:.6rem .8rem;background:#182125}
.page-banner-compact h1{font-size:clamp(1.3rem,3vw,1.8rem)}
.heading-for-assistive-tech{position:absolute;inline-size:1px;block-size:1px;min-height:0;margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
#globalWorkControls{margin:.7rem 0}
#globalWorkControls:empty,#globalWorkControls:has(>details):not(:has(>details:not([hidden]))){display:none}
#globalWorkControls>details{margin:0;min-width:0;padding:.55rem .75rem}
#globalWorkControls summary,.tab:not(#Tal) summary{cursor:pointer}
.tab:not(#Tal) :is(.panel,.talent,.dungeon-roster details,.dungeon-steps li,.battle-board),#globalWorkControls .panel,#healingSetup .panel{
 color:#eee6d6;border-color:#746449;border-radius:.3rem;background:linear-gradient(138deg,#283136,#151d22 75%);
 box-shadow:inset 0 0 0 2px #171e24
}
.tab:not(#Tal) :is(h2,h3,h4),#healingSetup summary{font-family:Georgia,serif;color:#f0ddbd}
.tab:not(#Tal) :is(.playerhead,.prep,.class-summary,.combat-stats,.costline,.blue-foot,.battle-damage>div,.battle-allies li){
 background-color:#1b262b;border-color:#655b49
}
.tab:not(#Tal) :is(.dungeon-choice,.inventory-categories button,.branches button,.class-options button,.item-choice,.target-list button,.route-choice){
 background:#1d282d;color:#efe4ce;border-color:#746449;border-radius:.3rem
}
.tab:not(#Tal) :is([aria-pressed=true],.craft-running){border-color:#e5b66f;box-shadow:inset 0 -2px #d5a45f}
.tab:not(#Tal) :is(progress,.xpbar){accent-color:#dda960}
.tab:not(#Tal) :is(.dungeon-panel,#healingSetup){max-width:62rem}
.tab:not(#Tal) .dungeon-hero{margin-top:.5rem;border:1px solid #8d7856;border-radius:.3rem}
.tab:not(#Tal) .dungeon-nav,.tab:not(#Tal) .dungeon-selector{margin:.55rem 0}
.tab:not(#Tal) .paper-stage{
 border-color:#8b7854;border-radius:.25rem;background:radial-gradient(ellipse at 55% 70%,#594735,#233138 54%,#131b21)
}
.activity-entry.activity-scene{
 min-height:clamp(6rem,14vw,10rem);grid-template-columns:clamp(2.6rem,8vw,3.8rem) minmax(0,1fr);
 align-items:end;padding:.65rem;text-align:left;border:1px solid #8a7757;
 border-radius:.3rem;background:linear-gradient(0deg,#10171bed,#10171b80 52%,#10171b16),var(--activity-scene) center/cover;
 color:#f3e4c7;text-shadow:0 1px 5px #000
}
.activity-entry.activity-scene img{width:100%;height:auto;aspect-ratio:1;align-self:end;filter:drop-shadow(0 2px 6px #000b)}
.activity-entry.activity-scene b{font-family:Georgia,serif;font-size:clamp(1rem,2vw,1.4rem)}
.activity-entry.activity-scene small{color:#eee3ce}
.tab:not(#Tal) .inventory-items li{background:#1b262b;border-color:#655b49;color:#eee6d6}
.tab:not(#Tal) .inventory-items .inventory-empty{color:#aeb5af}
.tab:not(#Tal) .blueprint{border-top:2px solid #77664c}
.tab:not(#Tal) .blueprint.future{border-top-color:#635a4c}
@media(max-width:580px){
 .page-banner{min-height:7.5rem;padding:.7rem .8rem;margin:.45rem 0}
 .page-banner-compact{min-height:0}
 .heading-for-assistive-tech{min-height:0;margin:0;padding:0}
 #globalWorkControls>details{padding:.35rem .45rem}
 #globalWorkControls summary{align-content:center;min-height:2.35rem;font-size:.8rem;overflow-wrap:anywhere}
 .activity-entry.activity-scene{min-height:5.3rem}
 .tab:not(#Tal) .blue-foot{flex-wrap:wrap;gap:.35rem}
}

#Rucksack .inventory-categories{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.55rem;
 list-style:none;padding:0
}
#Rucksack .inventory-categories li{margin:0;padding:0;min-width:0}
#Rucksack :is(.inventory-categories,.inventory-items) li::before{content:none}
#Rucksack .inventory-categories button{height:100%;width:100%;text-align:left}
@media(max-width:580px){
 body .top nav{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.15rem .25rem;overflow:visible}
 body .top nav button{grid-column:span 3;min-width:0;min-height:2.75rem;padding-inline:.15rem;font-size:clamp(.69rem,3.35vw,.85rem)}
 body .top nav button:nth-child(n+5){grid-column:span 4}
 #Rucksack .inventory-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
 #Rucksack .inventory-categories button{gap:.35rem;padding:.55rem .4rem}
 #Rucksack .inventory-categories .icon{width:1.7rem;height:1.7rem}
 #Rucksack .inventory-categories small{font-size:.73rem}
}
#Rucksack .inventory-categories button>span{min-width:0;overflow-wrap:anywhere;hyphens:auto}
#Rucksack .inventory-categories .icon{flex:none}

.activity-switcher{display:flex;flex-wrap:wrap;gap:.35rem;margin:.65rem 0}
.activity-switcher .sub{min-height:2.75rem;display:inline-flex;align-items:center;padding:.4rem .75rem}
.activity-switcher [aria-pressed=true]{border-color:#d1a76d;color:#ffe2ae}
#activityWork .activity-workbench{grid-column:1/-1;text-align:left}
.activity-workbench-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.4rem;margin:0 0 .65rem}
.activity-workbench-head h2{margin:0}
.activity-state{padding:.28rem .55rem;border:1px solid #75634b;border-radius:.25rem;color:#efdbb7;background:#161e23;font-size:.87rem}
.activity-state.activity-paused{border-color:#bd8855;color:#ffd293}
.activity-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));gap:.4rem;margin:.75rem 0}
.activity-metrics>div{background:#172126;border:1px solid #594e3e;border-radius:.25rem;padding:.48rem .6rem}
.activity-metrics dt{color:#ced0c5;font-size:.82rem}
.activity-metrics dd{margin:.15rem 0 0;color:#f5dfb8;font-weight:700;font-variant-numeric:tabular-nums}
.activity-countdown,.activity-gate{margin:.55rem 0;color:#f0cf9e}
.activity-workbench progress{width:100%;margin:.2rem 0 .75rem}
.activity-work-actions{margin-top:.55rem}
.activity-work-actions button,.activity-equipment summary{min-height:2.75rem}
.activity-equipment summary{align-content:center;color:#f0dcb9;font-weight:700}
@media(max-width:580px){
 .activity-switcher .sub{padding:.3rem .52rem;font-size:.8rem}
 .activity-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .activity-work-actions button{flex:1 1 auto}
}

/* Shared surfaces and controls from the valley extend to every interaction layer. */
:root{--surface:#1d282e;--border:#6d5f49;--bg:#101518;--muted:#c1c3b9;--gold:#efbf78}
.game-dialog:is(#targets,#portraitDialog,#classDialog,#saveDialog){
 max-width:min(36rem,calc(100% - 1rem));max-height:calc(100dvh - 1rem);overflow:auto;
 padding:clamp(.85rem,3vw,1.45rem);border:1px solid #ab8b5d;border-radius:.35rem;
 color:#efe6d5;background:linear-gradient(145deg,#2b3437,#161f25 72%);
 box-shadow:inset 0 0 0 3px #182127,0 1.4rem 5rem #000a
}
.game-dialog::backdrop{background:#091015d9;backdrop-filter:blur(3px)}
.game-dialog h2{font:700 clamp(1.45rem,3vw,2rem)/1.12 Georgia,serif;color:#f4dcb0;margin:0}
.game-dialog p{color:#d6cbb7}
.game-dialog .dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:.55rem;padding-bottom:.6rem;border-bottom:1px solid #766449;margin-bottom:.6rem}
.game-dialog .dialog-heading p{margin:.25rem 0 0}
.game-dialog .dialog-heading .close-save{float:none}
.game-dialog .target-list{display:grid;gap:.38rem}
.game-dialog .target-list button{
 width:100%;min-width:0;min-height:3.1rem;text-align:left;background:#18262c;color:#eee4d0;
 border:1px solid #746449;border-radius:.25rem
}
.game-dialog .target-list button.current{border-color:#e3b16c;background:#34342b}
.game-dialog .target-list button>span{min-width:0;overflow-wrap:anywhere}
.game-dialog .portrait-option{border-radius:.3rem;border-color:#746449;background:radial-gradient(ellipse at 65% 65%,#544430,#1a272e 70%)}
.game-dialog .portrait-option:focus-visible,.game-dialog button:focus-visible{outline:2px solid #ffd69b;outline-offset:2px}
.game-dialog .sub,.game-dialog .gold,.game-dialog .target-list button{min-height:2.75rem}
.tab:not(#Tal) .slot-grid button{border-color:#746449;background:#1a272d;color:#ecdec3;border-radius:.25rem}
.tab:not(#Tal) .slot-grid [aria-pressed=true]{border-color:#e3b16c;background:#34342b}
.tab:not(#Tal) .item-choice{box-shadow:inset 0 0 0 1px #142026;text-align:left}
.tab:not(#Tal) .item-choice small{color:#c4cbc4}
.tab:not(#Tal) .talent{padding:.8rem}
.tab:not(#Tal) .talent.learned{border-color:#a48356}
.tab:not(#Tal) .rank-track .earned{background:#373729;color:#ffdc9b}
.tab:not(#Tal) .group-party,.tab:not(#Tal) .clan-section{
 padding:.7rem;margin:.65rem 0;border:1px solid #746449;border-radius:.3rem;background:#18242a
}
.clan-fire h3{display:flex;align-items:center;gap:.45rem}
.clan-fire .icon,.clan-row-title .icon{width:1.7rem;height:1.7rem;object-fit:contain}
.clan-contract ul,.clan-section ul{list-style:none;padding:0}
.clan-contract li,.clan-section li{padding:.48rem;margin:.35rem 0;background:#202c30;border-radius:.25rem}
.clan-row-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.4rem}
.clan-row-title b{overflow-wrap:anywhere}
.clan-goal progress,.clan-fire progress{width:100%}
.clan-contract.locked{border-color:#5f5a4c}
.tab:not(#Tal) .recipe-ingredients{padding:.3rem .55rem;background:#172127;border:1px solid #5d5241;border-radius:.25rem}
.tab:not(#Tal) .recipe-ingredients .costline{background:none}
.tab:not(#Tal) .blueprint[data-recipe-state="ready"]{border-top-color:#d7a866}
.tab:not(#Tal) .blueprint[data-recipe-state="in-progress"]{border-color:#efbf78}
.tab:not(#Tal) .blue-head .icon,.tab:not(#Tal) .blue-head .piece-icon{flex:none}
.tab:not(#Tal) .blade,.tab:not(#Tal) .blue-head>div{min-width:0;overflow-wrap:anywhere}
.tab:not(#Tal) .battle-board{
 border-color:#907951;background:linear-gradient(#10181dc4,#121b20 73%),var(--battle-scene) center 37%/cover #152128
}
.tab:not(#Tal) .battle-healing{padding:.45rem;background:#1d2a30;border-radius:.25rem}
.tab:not(#Tal) :is(.sub,.gold,input:not([type=hidden]),select){min-height:2.75rem}
.tab:not(#Tal) :is(.sub,.gold,.target-list button):focus-visible{outline:2px solid #ffd69b;outline-offset:2px}
@media(max-width:580px){
 .game-dialog .target-list button strong{overflow-wrap:anywhere}
 .tab:not(#Tal) .blue-foot>button{flex:1 1 auto}
 .tab:not(#Tal) .clan-row-title{font-size:.88rem}
 .tab:not(#Tal) .group-party,.tab:not(#Tal) .clan-section{padding:.48rem}
 .battle-vitals{font-size:.9rem}
}
.game-dialog[data-scene="dungeon-silver"]{--dialog-scene:url('./dungeon-silver.webp?v=11')}
.game-dialog[data-scene="overview-outpost"]{--dialog-scene:url('./overview-outpost.webp?v=44')}
.game-dialog[data-scene="erztal"]{--dialog-scene:url('./erztal.webp?v=11')}
.game-dialog[data-scene="overview-workshop"]{--dialog-scene:url('./overview-workshop.webp?v=44')}
.game-dialog:is(#targets,#portraitDialog,#classDialog,#saveDialog){
 background:linear-gradient(180deg,#131b20c9 0,#192329 7rem),var(--dialog-scene) center top/100% auto no-repeat #192329
}
