/* Shared visual system. Layout and game-specific positioning live in style.css and character.css. */
:root {
 --bg:#201e18;
 --surface:#373228;
 --surface-2:#443a2b;
 --surface-dark:#292820;
 --border:#65563d;
 --edge:#171710;
 --text:#fbefd9;
 --muted:#d0c3a9;
 --gold:#ffd08c;
 --ink:#302013;
 --paper:#f0d7aa;
 --ridge:#796546;
 --green:#bdd29d;
 --radius:1rem;
 --radius-small:.68rem;
 --game-font:ui-rounded,"Nunito","Trebuchet MS",system-ui,sans-serif;
 --panel-face:linear-gradient(148deg,#453a2b 0%,#302b22 78%);
 --button-face:linear-gradient(165deg,#574832,#3a3123 76%);
 --panel-depth:inset 0 1px #fde0a528,0 3px 0 var(--edge),0 6px 12px #100d0936;
 --button-depth:inset 0 1px #ffe4ad42,0 2px 0 #211a12;
}
body,body:has(#Tal:not([hidden])) {
 background:radial-gradient(ellipse at 42% 0%,#483d29 0%,transparent 40rem),var(--bg);
 color:var(--text);font-family:var(--game-font);line-height:1.55
}
body :is(h1,h2,h3,h4),body .tab:not(#Tal) :is(h2,h3,h4),body #healingSetup summary {
 font-family:var(--game-font);font-weight:850;letter-spacing:-.032em;color:var(--text)
}
body :is(h1,h2,h3,h4){line-height:1.16}
body :is(small,.hint,.muted){color:var(--muted)}
main,body main:has(#Tal:not([hidden])){max-width:83rem;padding-inline:clamp(.65rem,2.4vw,1.3rem)}
body header,body:has(#Tal:not([hidden])) header {
 background:linear-gradient(165deg,#453927,#2c261c 62%);
 border-bottom:1px solid #7d6240;box-shadow:0 3px 0 #15130e,0 8px 18px #13100955
}
body header .top {
 height:auto;max-width:83rem;display:grid;grid-template-columns:1fr auto;
 align-items:center;gap:.45rem 1rem;padding:clamp(.5rem,2vw,.85rem) clamp(.65rem,2.4vw,1.3rem) .7rem
}
body header .brand {display:flex;align-items:center;gap:.45rem;color:var(--text)}
body header .top .brand img,body:has(#Tal:not([hidden])) header .top .brand img {
 width:clamp(2rem,4vw,2.9rem);height:clamp(2rem,4vw,2.9rem)
}
body header .top .brand b,body:has(#Tal:not([hidden])) header .top .brand b {
 font-family:var(--game-font);font-size:clamp(1.42rem,4vw,2.2rem);font-weight:900;letter-spacing:-.06em;
 text-shadow:0 2px #19140d
}
body header .top nav {
 grid-column:1/-1;position:static;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));
 width:auto;overflow:visible;gap:.37rem;background:none;border:0;padding:0;order:0
}
body header .top nav button,body header .top nav button:nth-child(n+5) {
 display:flex;flex-direction:column;justify-content:center;align-items:center;grid-column:auto;gap:.13rem;
 min-height:3.25rem;min-width:0;padding:.28rem .12rem;border-radius:var(--radius-small);
 border:1px solid #715c40;background:var(--button-face);box-shadow:var(--button-depth);
 color:#fae3ba;font:800 clamp(.7rem,1.5vw,.95rem)/1.17 var(--game-font)
}
body header .top nav img {display:block;width:1.48rem;height:1.48rem;object-fit:contain;filter:drop-shadow(0 2px 1px #20160bbf)}
body header .top nav button[aria-current=page] {
 background:linear-gradient(160deg,#ffe0a6,#d39855 90%);border-color:#f6cb90;color:#3c2616;
 box-shadow:inset 0 1px #fff0c8,0 2px 0 #704623
}
@media(min-width:1050px) {
 body header .top {grid-template-columns:auto minmax(0,1fr)}
 body header .top nav {grid-column:2;grid-row:1}
}
@media(max-width:620px){
 body header .top nav{grid-template-columns:repeat(4,minmax(0,1fr))}
}

body .page-banner,body .valley-dashboard .panorama {
 border:1px solid var(--ridge);border-radius:var(--radius);box-shadow:var(--panel-depth);overflow:hidden
}
body .page-banner{
 background:linear-gradient(8deg,#211a12f7 0%,#271c128c 34%,transparent 72%),var(--page-scene,none) center 48%/cover #433825
}
body .valley-dashboard .panorama {
 background:linear-gradient(0deg,#211a12ed 2%,transparent 63%),url('./overview-nebel.webp?v=44') 38% center/cover #433825
}
body .page-banner h1,body .valley-dashboard .ptext h1 {
 font-family:var(--game-font);color:#fff1d2;font-weight:900;letter-spacing:-.045em;text-shadow:0 2px 4px #251b0e
}
body .page-banner #pageContext{color:#f5e1bd}
@media(min-width:850px){
 body .page-banner:not(.page-banner-compact){
  background:linear-gradient(90deg,#3b3023 8%,#3b3023e8 28%,transparent 72%),
   linear-gradient(0deg,#2c2118b0,transparent 58%),var(--page-scene,none) right 35%/72% auto no-repeat #3b3023
 }
}
body .page-banner-compact{background:var(--panel-face)}
body .heading-for-assistive-tech{border:0;box-shadow:none;padding:0;margin:0}
body .valley-dashboard .ptext p{border-radius:var(--radius-small);border-color:#997951;background:#30251be8;color:#ffe6bd}
body .valley-dashboard .ptext h1{left:.62rem}
body :is(.panel,.dashboard-panel,.talent,.dungeon-roster details,.dungeon-steps li,.battle-board,.game-dialog),
body .tab:not(#Tal) :is(.panel,.talent,.dungeon-roster details,.dungeon-steps li,.battle-board),
body #globalWorkControls .panel,body #healingSetup .panel {
 border:1px solid var(--border);border-radius:var(--radius);background:var(--panel-face);color:var(--text);
 box-shadow:var(--panel-depth)
}
body #Tal .place[data-project="mill"]{
 background:linear-gradient(90deg,#30251aee,#30251aab 65%,#30251a52),
  url('./activity-scene-mill.webp?v=58') center/cover #30251a
}
body .dashboard-panel h2,body .game-dialog .dialog-heading{border-color:#80674488}
body .dashboard-panel h2,body .overview-work-main h3,body .overview-need strong {
 font-family:var(--game-font);color:#fff0d6;letter-spacing:-.025em
}
body .dashboard-panel h2{padding-bottom:.37rem;margin-bottom:.5rem}
body #Tal .valley-dashboard {
 grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);
 grid-template-areas:"land land land" "order character needs";
 align-items:start;gap:.65rem;margin-top:.85rem
}
body #Tal .panorama {
 width:100%;height:clamp(11rem,28vw,23rem);min-height:0;aspect-ratio:auto;background-position:center,center 45%
}
body #Tal .ptext h1{
 left:clamp(.85rem,2.4vw,2rem);bottom:clamp(2.6rem,6vw,4.1rem);
 font-size:clamp(1.7rem,4.8vw,4rem)
}
body #Tal .ptext p{
 left:clamp(.85rem,2.4vw,2rem);right:auto;bottom:clamp(.6rem,1.5vw,1.3rem);
 font-size:clamp(.72rem,1.4vw,.94rem)
}
body #Tal .valley-dashboard>.dashboard-panel{
 padding:.63rem .72rem;height:100%;
 background:linear-gradient(148deg,#3b3226,#30291f);box-shadow:inset 0 1px #fde0a51c
}
body #Tal .valley-dashboard>.dashboard-panel h2{
 font-size:clamp(.87rem,2vw,1.05rem);margin:0 0 .45rem;padding:0;border:0;text-align:left;background:none
}
body #Tal .valley-dashboard>.overview-character{
 position:relative;display:block;min-height:clamp(9.2rem,14vw,13.4rem);padding:0;
 overflow:hidden;isolation:isolate
}
body #Tal .overview-character::after{content:none}
body #Tal .valley-dashboard>.overview-character h2{
 position:absolute;z-index:1;top:.58rem;left:.67rem;margin:0;
 color:#fff0d4;text-shadow:0 1px 5px #1a1109
}
body #dashboardCharacter{position:absolute;inset:0;display:block;height:auto;min-height:0}
body .overview-character .overview-portrait-link{
 position:absolute;inset:0;display:flex;justify-content:start;align-items:end;
 width:100%;height:100%;text-align:left;padding:.62rem .67rem
}
body .overview-portrait-link::after{
 background:linear-gradient(0deg,#24190ff2,transparent 58%),
  linear-gradient(180deg,#24190fad,transparent 25%)
}
body .overview-character .overview-live-avatar{
 position:absolute;inset:0;z-index:-2;width:100%;padding:0;border-radius:0
}
body .overview-character .overview-live-avatar .paperdoll{width:100%;height:100%;filter:none}
body .overview-live-avatar .role-portrait img{object-fit:cover;object-position:center top}
body .overview-character .overview-character-meta{
 align-self:end;justify-items:start;gap:.12rem;color:#fff0d4;font-size:clamp(.76rem,1.45vw,.99rem);
 overflow-wrap:anywhere;line-height:1.28;text-shadow:0 1px 4px #1a1109
}
body #Tal .overview-character-meta small{display:block;color:#ffdfb4;font-size:.76rem}
body #Tal #dashboardWork{display:flex;flex-wrap:wrap;align-items:center;gap:.38rem .55rem}
body #Tal #dashboardWork>.overview-work-main{flex:1 1 11rem}
body #Tal .overview-work-main h3{margin:0;font-size:clamp(.94rem,2vw,1.18rem)}
body #Tal .overview-work-main p{margin:.16rem 0;font-size:.81rem;line-height:1.35}
body #Tal .overview-work-main>.icon,body #Tal .overview-work-main>.piece-icon{width:2.05rem;height:2.05rem;object-fit:contain}
body #Tal #dashboardWork>button{margin:0;font-size:.8rem;padding:.36rem .58rem}
body #Tal .overview-need-label{font-size:.76rem}
body #Tal .overview-need progress{margin:.18rem 0 .31rem;height:.53rem}
body #Tal .valley-dashboard .provision-panel{
 margin:.42rem 0 0;padding:.12rem .45rem;border:1px solid var(--border);
 border-radius:var(--radius-small);background:var(--button-face);box-shadow:none
}
body #Tal .valley-dashboard .provision-panel[open]{padding:.4rem .55rem}
body #Tal .valley-dashboard .provision-panel summary{font-size:.78rem}
@media(max-width:760px){
 body #Tal .valley-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"land land" "order order" "character needs"}
 body #Tal .valley-dashboard:has(#dashboardProvisionControls[open]){grid-template-areas:"land land" "order order" "character character" "needs needs"}
}
@media(max-width:620px){
 body header .top nav button,body header .top nav button:nth-child(n+5){min-height:2.75rem}
 body header .top nav img{width:1.3rem;height:1.3rem}
 body #Tal .panorama{height:clamp(10.3rem,44vw,14rem)}
}
body :is(.valley-shortcut,.activity-entry.activity-scene,.dungeon-hero,.jobs .card,.map){
 border-color:var(--ridge);border-radius:var(--radius);box-shadow:var(--panel-depth);overflow:hidden
}
body .valley-shortcut,
body .activity-entry.activity-scene {
 background-image:linear-gradient(0deg,#261b11fa 0%,#251c13ba 27%,transparent 83%),var(--scene,var(--activity-scene));
 color:#fff1d2
}
body .activity-entry.activity-scene b,body .valley-shortcut b{font-family:var(--game-font);font-weight:850}
body .activity-entry.activity-scene small{color:#f4dfbb}
body .activity-entry.activity-scene{padding:.8rem;min-height:clamp(6.7rem,17vw,10rem)}
body .valley-shortcut{padding:.55rem .65rem}
body .valley-shortcut:hover,body .activity-entry.activity-scene:hover{border-color:var(--gold)}
body .valley-chapter summary{font-family:var(--game-font);font-weight:850}
body .tab:not(#Tal) :is(.playerhead,.prep,.class-summary,.combat-stats,.costline,.blue-foot,.battle-damage>div,.battle-allies li),
body :is(.activity-metrics>div,.crafting-status,.clan-contract li,.clan-section li,.provision-grid>section) {
 background-color:var(--surface-dark);border-color:var(--border);border-radius:var(--radius-small)
}
body .tab:not(#Tal) :is(.group-party,.clan-section,.recipe-ingredients) {
 background:var(--panel-face);border-color:var(--border);border-radius:var(--radius-small)
}
body .tab:not(#Tal) .battle-board {
 background:linear-gradient(#2c211783,#292119 75%),var(--battle-scene) center/cover #33271c
}
body .battle-side,body .tab:not(#Tal) .battle-healing{
 border-radius:var(--radius-small);border-color:var(--ridge);background-color:var(--surface-dark)
}
body .battle-side.enemy{border-color:#b17b62}
body .tab:not(#Tal) .dungeon-hero{border-color:var(--ridge);border-radius:var(--radius)}
body .dungeon-hero::before{background:linear-gradient(8deg,#241a10ed,transparent 76%)}
body .battle-art::after{background:linear-gradient(0deg,#251b13 0%,#251b1399 32%,transparent 72%)}
body :is(.activity-state,.battle-rating,.dungeon-run-head>span,.up-next,.tab:not(#Tal) .rank-track .earned) {
 background:#3c412b;border-color:#78845a;color:#e3edcc;border-radius:var(--radius-small)
}
body :is(.activity-state.activity-paused,.battle-hard){background:#542d21;border-color:#b47755;color:#ffe2bd}

body :is(.sub,.gold,.action,.route-choice,.body-slot,.item-choice,.portrait-option,.target-list button),
body .tab:not(#Tal) :is(.dungeon-choice,.branches button,.class-options button,.item-choice,.target-list button,.route-choice,.slot-grid button),
body .game-dialog :is(.target-list button,.portrait-option){
 border:1px solid var(--ridge);border-radius:var(--radius-small);background:var(--button-face);
 color:var(--text);box-shadow:var(--button-depth);font-family:var(--game-font)
}
body .tab:not(#Tal) button.dungeon-choice{
 min-height:5.2rem;align-content:end;
 background:linear-gradient(90deg,#342619fa,#3426196e 68%,#34261944),
  var(--dungeon-card,url('./dungeon-silver.webp?v=11')) center/cover #30261b
}
body .dungeon-choice[data-cave="ravine"]{--dungeon-card:url('./dungeon-ravine.webp?v=11')}
body .dungeon-choice[data-cave="frost"]{--dungeon-card:url('./dungeon-frost.webp?v=11')}
body .dungeon-choice[data-cave="bellTower"]{--dungeon-card:url('./dungeon-bellTower.webp?v=70')}
body .dungeon-choice[data-cave="nebel"]{--dungeon-card:url('./dungeon-nebel.webp?v=11')}
body .tab:not(#Tal) .dungeon-choice[aria-pressed=true]{
 background:linear-gradient(90deg,#46311bf5,#46311b70 68%,#46311b38),
  var(--dungeon-card,url('./dungeon-silver.webp?v=11')) center/cover #3c2b1d;
 border-color:#ffd08c;box-shadow:inset 0 0 0 1px #e6aa66,0 2px 0 #794e2e
}
body .dungeon-choice :is(b,small){color:#fff1d2;text-shadow:0 1px 3px #24170c}
body .activity-workbench .resource-pick,body .recipe-tabs button{
 border:1px solid var(--ridge);border-radius:var(--radius-small);background:var(--button-face);
 color:var(--text);box-shadow:var(--button-depth)
}
body .recipe-tabs button[aria-pressed=true]{border-color:#e4b780;color:#ffe1ab}
body :is(.resource-action,.resource-current>span,.resource-next){color:#f3d9b2}
body :is(.sub,.gold,.action){font-weight:800;min-height:2.75rem}
body :is(.gold,.action):not(:disabled){background:linear-gradient(156deg,#ffe2a5,#dfa163 86%);border-color:#f4ce90;color:#362214;box-shadow:inset 0 1px #fff2ca,0 3px 0 #72482b}
body .tab:not(#Tal) :is([aria-pressed=true],.craft-running),body .game-dialog :is(.target-list .current,[aria-pressed=true]){
 background:linear-gradient(150deg,#625134,#423422);border-color:#f1bd76;color:#fff4d8;box-shadow:inset 0 1px #f4c98555,0 2px 0 #8e6034
}
body :is(.sub,.gold,.action,.dungeon-choice,.route-choice,.body-slot,.item-choice,.portrait-option):disabled {
 color:#d5c7aa;background:#332e25;box-shadow:none;border-color:#66563c;opacity:.72
}
body button:not(:disabled):active{transform:translateY(1px)}
body :is(button,input,select,summary):focus-visible{outline:2px solid #ffd08c;outline-offset:3px}
body :is(select,input:not([type=hidden],[type=checkbox],[type=radio],[type=range],[type=file])){
 color:var(--text);background:#29231a;border:1px solid #8a7050;border-radius:var(--radius-small);
 box-shadow:inset 0 1px 3px #17140e;min-width:0
}
body select{color-scheme:dark;min-height:2.75rem}
body :is(details.panel,#healingSetup details)>summary{color:#f7d8a4;font-weight:800}
body details.provision-panel:not([open])>summary{min-height:2.6rem;align-content:center}
body #Tal .valley-dashboard{gap:.65rem}
body #globalWorkControls>details{padding:.45rem .7rem}
body footer{color:var(--muted);gap:.45rem .8rem}
body footer button{color:#ffe0a9}
body :is(progress,.xpbar){
 accent-color:#edb272;border:1px solid #987549;border-radius:2rem;overflow:hidden;background:#1f1b15
}
body progress::-webkit-progress-bar{background:#1f1b15;border-radius:2rem}
body progress::-webkit-progress-value{background:linear-gradient(#f9d999,#d89553);border-radius:2rem}
body progress::-moz-progress-bar{background:linear-gradient(#f9d999,#d89553);border-radius:2rem}
body :is(.overview-need.thirst,.thirst,.battle-side.enemy) progress{accent-color:#7bb5c3}
body :is(.overview-need.thirst,.thirst) progress::-webkit-progress-value{background:linear-gradient(#b2d8de,#629ba7)}
body :is(.overview-need.thirst,.thirst) progress::-moz-progress-bar{background:linear-gradient(#b2d8de,#629ba7)}
body .battle-side.enemy progress::-webkit-progress-value{background:linear-gradient(#f4b998,#bd7658)}
body .battle-side.enemy progress::-moz-progress-bar{background:linear-gradient(#f4b998,#bd7658)}

#Rucksack .inventory-categories{gap:.65rem;margin:.75rem 0}
body #Rucksack .inventory-categories button.inventory-tile{
 display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;
 min-height:clamp(6.6rem,17vw,9rem);padding:.55rem .65rem;overflow:hidden;
 border:1px solid #8a714d;border-radius:var(--radius);
 background:linear-gradient(0deg,#261b13f7 0%,#261b13ab 28%,transparent 73%),var(--inventory-scene) center/cover #433526;
 color:#fff1d7;box-shadow:var(--panel-depth);text-shadow:0 2px 3px #1e140c
}
#Rucksack .inventory-tile[data-inventory-group="wood"]{--inventory-scene:url('./inventory-wood.webp?v=62')}
#Rucksack .inventory-tile[data-inventory-group="ore"]{--inventory-scene:url('./inventory-ore.webp?v=62')}
#Rucksack .inventory-tile[data-inventory-group="nature"]{--inventory-scene:url('./inventory-nature.webp?v=62')}
#Rucksack .inventory-tile[data-inventory-group="hunt"]{--inventory-scene:url('./inventory-hunt.webp?v=62')}
#Rucksack .inventory-tile[data-inventory-group="crafted"]{--inventory-scene:url('./inventory-crafted.webp?v=62')}
#Rucksack .inventory-tile[data-inventory-group="provisions"]{--inventory-scene:url('./inventory-provisions.webp?v=62')}
#Rucksack .inventory-tile[data-inventory-group="supplies"]{--inventory-scene:url('./inventory-supplies.webp?v=62')}
#Rucksack .inventory-tile[data-inventory-group="currency"]{--inventory-scene:url('./inventory-currency.webp?v=62')}
#Rucksack .inventory-tile>span{
 align-self:flex-end;border-radius:1rem;background:#23190fed;color:#ffe3b2;padding:.12rem .45rem;
 font-size:.72rem;font-variant-numeric:tabular-nums;white-space:nowrap
}
#Rucksack .inventory-tile b{font-size:clamp(.85rem,3.8vw,1.02rem);line-height:1.25;overflow-wrap:anywhere}
#Rucksack .inventory-categories .inventory-tile:hover{border-color:#ffd08c}
body #Rucksack.tab .inventory-items{
 border:1px solid var(--border);border-radius:var(--radius-small);background:#30291f;margin:.64rem 0;padding:0
}
body #Rucksack.tab .inventory-items li{
 display:grid;grid-template-columns:2rem minmax(0,1fr) auto;gap:.5rem;align-items:center;
 border:0;border-radius:0;margin:0;padding:.38rem .55rem;background:none;color:var(--text);min-height:2.75rem
}
body #Rucksack.tab .inventory-items li+li{border-top:1px solid var(--border)}
body #Rucksack.tab .inventory-items .inventory-empty{color:var(--muted)}
body #Rucksack .inventory-items strong{color:var(--gold);font-variant-numeric:tabular-nums;text-align:right}
body #Rucksack .inventory-items .inventory-empty strong{color:var(--muted)}
body #Rucksack .inventory-items .icon{height:2rem;width:2rem;object-fit:contain}

body #Charakter .character-grid .paper-stage{
 height:clamp(275px,56vw,425px);background:#342c22;border:1px solid var(--ridge);border-radius:var(--radius);
 box-shadow:var(--panel-depth)
}
body #Charakter .portrait-scene{inset:0;background:#342c22}
body #Charakter .portrait-scene::after{
 background:linear-gradient(0deg,#1d140de8 0%,#1d140d8c 34%,transparent 67%)
}
body #Charakter .paper-stage .role-portrait img{object-position:center top}
body #Charakter .portrait-caption{top:auto;bottom:1.05rem;left:1rem;right:1rem;max-width:23rem}
body #Charakter .portrait-caption h2{font-size:clamp(1.3rem,5vw,2.2rem);overflow-wrap:anywhere}
body #Charakter .portrait-level{font-size:clamp(.85rem,3.5vw,1.05rem);margin:.36rem 0 .58rem}
body #Charakter .portrait-caption .xpbar{min-width:0;width:min(100%,13rem);height:.55rem}
body #Charakter .equipped-panel{margin-top:.7rem}
body #Charakter .equipped-panel .worn-title{margin:0 0 .65rem}
body #Charakter .bonuses{color:#f2d3a2;font-size:.86rem}
body #Charakter .character-class-link{margin-top:.2rem}
body #Charakter .slot-grid{gap:.52rem}
body #Charakter .body-slot{
 min-width:0;min-height:5rem;grid-template-columns:auto minmax(0,1fr);align-content:center;
 align-items:center;justify-items:start;text-align:left;gap:.32rem;padding:.4rem;
 overflow-wrap:anywhere
}
body #Charakter .body-slot .piece-icon{width:clamp(1.6rem,6.6vw,2.9rem);height:clamp(1.6rem,6.6vw,2.9rem)}
body #Charakter .body-slot small{color:var(--muted)}
body #Charakter .set-preview{
 position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--ridge);border-radius:var(--radius-small);
 background:#352b21;margin:.7rem 0;padding:.85rem;min-height:10rem;align-items:end
}
body #Charakter .set-preview>.role-portrait{
 position:absolute;z-index:-2;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0
}
body #Charakter .set-preview>.role-portrait img{object-position:center top}
body #Charakter .set-preview::after{
 content:"";position:absolute;inset:0;z-index:-1;
 background:linear-gradient(0deg,#251c14f2,#251c1478 48%,transparent 83%)
}
body #Charakter .set-preview h3{margin:.16rem 0;color:#ffe3b4}
body #Charakter .set-preview small{color:#f1d8b2}
body #Charakter .set-preview p{color:#ffe5bd}
body #Charakter .item-choice{gap:.45rem;padding:.55rem}
body #Charakter .item-choice small{color:var(--muted)}
body #Charakter .item-choice em{color:var(--gold)}
@media(max-width:1100px){
 body #Charakter .slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 body .game-dialog{padding:.85rem}
}
body .game-dialog:is(#targets,#portraitDialog,#classDialog,#saveDialog) {
 background:linear-gradient(#33271b9e,#342b21 9rem),var(--dialog-scene) center top/100% auto no-repeat #342b21;
 border-color:#a3865d;border-radius:1.15rem;box-shadow:var(--panel-depth),0 1rem 3rem #141009bd
}
body .game-dialog h2{font-family:var(--game-font);color:#fff0d4}
body .game-dialog p{color:#eddbc0}
body .game-dialog::backdrop{background:#16110bcb}

body #Charakter :is(.body-slot,.item-choice).equipment-card {
 position:relative;isolation:isolate;overflow:hidden;
 display:flex;flex-direction:column;justify-content:end;align-items:stretch;
 min-height:7.6rem;gap:0;padding:2.9rem .58rem .54rem;
 background:#392e22;text-align:left;color:#fff4dc;
 box-shadow:var(--button-depth)
}
body #Charakter .body-slot.equipment-card{min-height:6.25rem}
.equipment-card .equipment-card-art{
 position:absolute;inset:0;z-index:-2;width:100%;height:100%;
 object-fit:cover;object-position:center 42%;border-radius:inherit
}
.equipment-card-art:is([src^="./gear-axe."],[src^="./gear-hammer."],[src^="./gear-runestaff."]){
 object-position:20% 42%
}
.equipment-card::after {
 position:absolute;inset:0;z-index:-1;content:"";pointer-events:none;
 background:linear-gradient(0deg,#211710f5 0%,#211710da 29%,#21171091 58%,transparent 84%)
}
.equipment-card .equipment-card-copy {
 display:block;text-shadow:0 1px 3px #1a110b;overflow-wrap:anywhere
}
body #Charakter .equipment-card .equipment-card-copy small{color:#f4dfbb;line-height:1.28}
body #Charakter .equipment-card .equipment-card-copy b{line-height:1.2}
body #Charakter .equipment-card .equipment-card-copy em{color:#ffe0a6}
body #Charakter .equipment-card[aria-pressed=true]{
 border-color:#ffd08c;box-shadow:0 0 0 1px #e8ba74,0 2px 0 #744822
}
body #Charakter .equipment-card[aria-pressed=true]::after{
 box-shadow:inset 0 0 0 1px #ffe0aa85
}
body #Charakter .equipment-card:disabled{opacity:1;border-color:#6a5a43;box-shadow:none}
body #Charakter .equipment-card:disabled .equipment-card-art,
body #Charakter .equipment-card-empty .equipment-card-art{filter:saturate(.6) brightness(.78)}
body #Charakter .equipment-card:disabled .equipment-card-copy b{color:#e7dac0}

.scene-card {
 position:relative;isolation:isolate;overflow:hidden;min-width:0;
 border-radius:var(--radius-small);color:var(--text);text-shadow:0 1px 3px #20140e
}
body main .scene-card::before {
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 width:auto;height:auto;margin:0;
 background:linear-gradient(0deg,#24190ff7,#24190fb8 29%,#24190f45 63%,transparent 91%),
 var(--card-art) var(--card-position,center 43%)/cover no-repeat
}
body main .scene-card :is(h2,h3,h4,b){color:#fff4dc;overflow-wrap:anywhere}
body main .scene-card :is(small,p){color:#f4dfbb;overflow-wrap:anywhere}
body main .scene-option {
 display:flex;flex-direction:column;justify-content:end;align-items:flex-start;
 gap:.12rem;min-height:clamp(5.5rem,15vw,8.5rem);padding:.65rem .75rem;text-align:left
}
body main button.scene-option:hover,
body main button.scene-option[aria-pressed=true],
body main .scene-card[aria-current=step]{border-color:#ffd08c}
body main button.scene-option[aria-pressed=true],
body main .scene-card[aria-current=step]{box-shadow:0 0 0 1px #e8ba74,0 2px 0 #744822}
.activity-switcher{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.6rem),1fr))}
.activity-switcher .activities-back{grid-column:1/-1;justify-self:start}
body main .activity-switcher .scene-option{min-height:4.7rem}
body main .activity-entry.scene-option{min-height:clamp(6.6rem,17vw,9.7rem)}
.scene-heading,.scene-profile {
 display:flex;flex-direction:column;justify-content:end;align-items:stretch;
 min-height:7rem;gap:.15rem;padding:.8rem;margin-bottom:.65rem;
 border:1px solid var(--ridge);background:#352b21
}
body main .scene-heading :is(h2,h3,h4,p),body main .scene-profile :is(h2,h3,p){margin:0}
.scene-profile {
 --card-position:center 21%;
 min-height:clamp(12rem,29vw,17rem)
}
.scene-profile>div{flex:none}
.scene-profile .xpbar{width:min(100%,22rem);margin:.35rem 0 0}
#Talente .tree>.scene-heading{min-height:8.5rem}
#Talente .tree>.scene-heading p{font-size:.92em}
body main .class-portrait-option{--card-position:center 20%;min-height:clamp(6rem,14vw,10rem)}
.enemy-preview:has(>.scene-heading){display:block}
.enemy-preview>.scene-heading{min-height:clamp(8rem,21vw,12rem)}
body main .dungeon-roster summary.scene-option {
 flex-direction:row;align-items:end;justify-content:space-between;
 min-height:clamp(6.7rem,18vw,10rem)
}
body main .dungeon-steps li.scene-heading{min-height:5rem;margin:0}

body main .provision-grid>section {
 padding:clamp(.45rem,2vw,.8rem);min-width:0;
 background:var(--panel-face);border:1px solid var(--ridge);border-radius:var(--radius)
}
.provision-items {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem
}
body main button.provision-item {
 display:flex;flex-direction:column;justify-content:end;align-items:flex-start;
 position:relative;isolation:isolate;overflow:hidden;
 min-width:0;min-height:6.25rem;padding:3.2rem .48rem .45rem;
 background:radial-gradient(ellipse at 60% 19%,#70563b,#3e3022 57%,#292017);
 color:#fff1d2;text-align:left;overflow-wrap:anywhere;line-height:1.24
}
.provision-item .provision-art {
 width:100%;height:4.55rem;position:absolute;inset:0 0 auto;z-index:-1;
 object-fit:contain;object-position:center top
}
.provision-item::after {
 position:absolute;inset:0;z-index:-1;content:"";pointer-events:none;
 background:linear-gradient(0deg,#281d14 0%,#281d14df 26%,transparent 72%)
}
.provision-item small{font-size:.77rem;color:#f2d9b2}
body main button.provision-item:disabled {
 opacity:1;color:#e3d3b9;border-color:#756047;box-shadow:none
}
.provision-item:disabled .provision-art{filter:saturate(.62) brightness(.77)}
body main form.provision-form {
 display:grid;grid-template-columns:minmax(0,1fr) minmax(3.75rem,25%);
 gap:.55rem;align-items:end
}
body main .provision-form :is(select,input[type=number]) {
 width:100%;min-width:0;padding:.48rem .35rem;min-height:2.55rem
}
body main .provision-form .provision-fallback {
 grid-column:1/-1;display:flex;align-items:center;gap:.45rem;min-height:2rem;
 font-size:.86rem
}
.provision-fallback input{flex:none}
.provision-form button{grid-column:1/-1;justify-self:start}
.provision-actions{padding-top:.55rem;border-top:1px solid var(--border)}
body #Tal .provision-items{grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr))}
body #Tal .provision-grid .provision-form{grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),1fr))}

body #Klassen .forge-option{margin-block:0 .6rem}
body #Klassen .combat-classes :is(.forge-option,.weapon-upgrade) .recipe-ingredients{margin-bottom:.55rem}
body #Klassen #veteranTemper .sub{margin:.45rem .45rem 0 0}
body main .activity-workbench .resource-pick.scene-card {
 min-height:7.25rem;align-items:end;padding:.7rem;column-gap:.7rem
}
body main .resource-pick .resource-action {
 padding:.25rem .4rem;color:#ffe1a7;border:1px solid #ca9869;border-radius:.45rem;background:#3d2c20
}
.resource-next{font-size:.82rem;padding:.23rem .15rem 0}
body main .progress-summary.scene-card {
 min-height:5.7rem;align-items:end;background:#392c21;border-color:var(--ridge);
 box-shadow:var(--button-depth)
}
body main .progress-list{background:#33271c;gap:.35rem;padding:.35rem}
body main .progress-row.scene-card {
 grid-template-columns:minmax(0,1fr) auto;align-items:end;min-height:4.7rem;
 background:#372b20;border:1px solid var(--ridge)
}

.provision-kitchen{margin-top:.7rem}
.provision-recipe{padding-top:4rem}
.provision-recipe .provision-recipe-art{
 position:absolute;right:.45rem;top:.2rem;width:5rem;height:5rem;
 object-fit:contain;filter:drop-shadow(0 3px 6px #23160e)
}

body .page-banner:not(.page-banner-compact):not(.heading-for-assistive-tech) {
 min-height:clamp(4.9rem,11vw,7.25rem)
}
.compact-disclosure{margin-block:.65rem}
.compact-disclosure>summary{cursor:pointer;font-weight:800;color:#f7d8a4}
.compact-disclosure[open]>summary{margin-bottom:.55rem}

@media(max-width:580px){
 .activity-metrics:has(>div:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
 .activity-metrics>div{padding:.44rem}
}

#returnReport .inventory-items{list-style:none;padding:0;margin:.45rem 0}
#returnReport li{display:flex;align-items:center;gap:.45rem;padding:.28rem .3rem}
#returnReport li+li{border-top:1px solid var(--border)}
#returnReport li img{width:1.55rem;height:1.55rem;object-fit:contain}
#returnReport li b{margin-left:auto;color:var(--gold)}
#returnReport button{margin:.35rem .45rem .1rem 0}

.tierlager-link{margin:.35rem 0 .7rem}
.companion-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.65rem}
.companion-grid .panel{min-width:0;margin:0}
.companion-heading{display:flex;align-items:center;gap:.65rem;margin-bottom:.6rem}
.companion-heading h3{margin:0 0 .18rem}
.companion-art{
 display:block;flex:none;width:4rem;height:4rem;border-radius:.65rem;border:1px solid var(--ridge);
 background:url('./companions.webp?v=74') var(--sprite-x) var(--sprite-y)/400% 300% no-repeat
}
.companion-grid progress{width:100%}
.companion-grid [aria-pressed=true]{border-color:#e4b780;color:#ffe1ab}

.taming-goals{list-style:none;padding:0;margin:.6rem 0}
.taming-goals li{display:grid;grid-template-columns:1fr auto;gap:.22rem .45rem;margin-bottom:.6rem}
.taming-goals progress{grid-column:1/-1}

.companion-journal-list{list-style:none;padding:0;margin:.65rem 0}
.companion-journal-list li+li{margin-top:.25rem}

.account-dialog{max-width:min(100% - 1.5rem,27rem)}
.account-form{display:grid;gap:.75rem;margin:.75rem 0}
.account-form>label,.account-dialog #accountCodePanel label{display:grid;gap:.3rem}
.account-form fieldset{margin:0;padding:0;border:0}
.account-portraits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.account-portraits label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.45rem;border:1px solid var(--line,#796447);border-radius:.5rem;padding:.45rem;cursor:pointer}
.account-portraits label:has(input:checked){border-color:#e4b780}
.account-portraits img{width:100%;height:4.5rem;object-fit:cover;object-position:center 25%;border-radius:.35rem}
.account-portraits span{grid-column:2}
.account-form input:not([type=radio]),#accountRecoveryValue{box-sizing:border-box;width:100%;min-width:0}
