/* Continuous scene light: warm sun, penumbra, moonlight, then soft dawn. */
.quarry-page .scene[data-smooth-light=true] .world-backdrop{filter:brightness(var(--light-brightness,1)) saturate(var(--light-saturation,1));transition:opacity 1.1s ease,filter .8s linear}
.quarry-page .scene[data-smooth-light=true] .mining-world{filter:brightness(var(--light-foreground,1));transition:filter .8s linear}
.quarry-page .scene[data-smooth-light=true] .world-shade{background:linear-gradient(calc(115deg + var(--light-direction,.5)*70deg),transparent 18%,rgb(17 29 49 / var(--light-shadow,.03)) 100%);transition:background .8s linear}
.quarry-page .scene[data-smooth-light=true] .world-light{opacity:1;background:none;mix-blend-mode:soft-light}
.scene[data-smooth-light=true] .world-light::before,.scene[data-smooth-light=true] .world-light::after{content:'';position:absolute;inset:0;transition:opacity .8s linear;pointer-events:none}
.scene[data-smooth-light=true] .world-light::before{background:linear-gradient(120deg,#ffc381,transparent 72%);opacity:var(--light-warm,.1)}
.scene[data-smooth-light=true] .world-light::after{background:linear-gradient(145deg,#aec9ec,transparent 74%);opacity:var(--light-night,0)}
.quarry-page .scene[data-smooth-light=true] .night-stars{opacity:var(--light-night,0);transition:opacity .8s linear}
.combo-crest{transition:color .3s ease,filter .3s ease;isolation:isolate}
.combo-crest b{transition:font-size .25s ease,color .25s ease}
.combo-crest[data-tier="1"] b{font-size:56px;color:#ffd59a}
.combo-crest[data-tier="2"] b{font-size:60px;color:#ffd181}
.combo-crest[data-tier="3"] b{font-size:63px;color:#ffe1a0}
.combo-crest[data-tier="4"] b{font-size:63px;color:#fff0c1}
.combo-crest::before{content:'';position:absolute;z-index:-1;right:-8px;top:4px;width:90px;height:80px;opacity:0;background:radial-gradient(ellipse at 65% 70%,#ff9d4044,transparent 65%);transition:opacity .35s ease}
.combo-crest[data-tier="1"]::before,.combo-crest[data-tier="2"]::before,.combo-crest[data-tier="3"]::before{opacity:1}
.combo-crest[data-tier="3"]{filter:drop-shadow(0 2px 2px #24190f) drop-shadow(0 0 7px #ef7d3633)}
.combo-crest[data-tier="4"]{filter:drop-shadow(0 2px 2px #24190f) drop-shadow(0 0 9px #ef963866)}
.combo-crest[data-tier="4"]::before{opacity:1}
.equipment-supply,.craft-collar,.craft-charm{pointer-events:none}
.equipment-supply{filter:drop-shadow(1px 2px 1px #2b201941)}
@media(max-width:740px){.combo-crest[data-tier="1"] b{font-size:40px}.combo-crest[data-tier="2"] b{font-size:42px}.combo-crest[data-tier="3"] b{font-size:44px}}
@media(max-width:740px){.combo-crest[data-tier="4"] b{font-size:44px}}
@media(prefers-reduced-motion:reduce){.combo-crest b,.combo-crest::before{transition:none}}
.workshop-dialog .starter-item{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px 18px;align-items:center;min-height:180px;padding:8px 0 20px}
.workshop-dialog #equipped-object[hidden]{display:none!important}
.equipment-stage{grid-column:1;grid-row:1 / span 2;width:140px;height:176px;border-radius:38% 42% 30% 35%;background:radial-gradient(ellipse at 55% 70%,#dfceaa77,transparent 68%);pointer-events:none}
.equipment-stage .rig-canvas{width:100%;height:100%;display:block;overflow:visible}.equipment-stage .rig-rock{display:none}
.workshop-dialog .starter-copy{grid-column:2;grid-row:1;align-self:end}.workshop-dialog .starter-copy h3{font-size:29px}
.workshop-dialog .starter-item #starter-buy{grid-column:2;grid-row:2;align-self:start;min-height:62px;width:100%;max-width:280px}
.workshop-dialog .starter-item #starter-buy .cave-action-title{font-size:23px}.workshop-dialog .starter-item #starter-buy .cave-action-detail{display:none}
.workshop-dialog .starter-item #starter-buy .cave-action-copy{display:block}
.workshop-dialog .starter-item #starter-buy .cave-action-detail{display:none!important}
.workshop-dialog .upgrade-art>svg{width:74px;height:90px;overflow:visible}
.look-sections{display:flex;gap:8px;margin:2px 0 18px;padding:4px;background:#dccbab44;border-radius:14px}
.look-sections button{flex:1;min-width:0;min-height:42px;border:0;border-radius:10px;background:none;color:#927651;font:21px/1.2 Quarry,Impact,sans-serif;padding:7px 4px}
.look-sections button[aria-selected=true]{background:#eee1c3;color:#5f482b;box-shadow:0 2px 0 #bca47d}
.outfit-closet[hidden],.cosmetic-shelf[hidden]{display:none!important}
.cosmetic-fitting{display:grid;justify-items:center;padding:14px 18px 24px;background:radial-gradient(ellipse at 50% 45%,#e2d0ab77,transparent 70%);border-bottom:1px solid #cfbd97}
.cosmetic-art{height:246px;max-width:100%;width:330px;display:grid;place-items:center}
.cosmetic-art>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 2px #4c392022)}
.cosmetic-art>svg{width:210px;height:230px;overflow:visible}
.cosmetic-fitting h3{font:30px/1.1 Quarry,Impact,sans-serif;text-align:center;margin:6px 0 18px}
.cosmetic-fitting .cave-action{width:min(300px,100%);min-height:76px}.cosmetic-fitting .cave-action-title{font-size:26px}
.cosmetic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.cosmetic-grid button{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:start;gap:8px;padding:12px 8px;border:1px solid #d5bf95;border-bottom-width:4px;border-radius:16px;background:#ecdfc3;color:#5d482f}
.cosmetic-grid button[aria-pressed=true]{border-color:#9d733b;background:#f4e5be;box-shadow:inset 0 0 0 1px #d6bc87}
.cosmetic-grid img,.cosmetic-grid svg{height:98px;width:100%;object-fit:contain;overflow:visible}
.cosmetic-grid strong{font:20px/1.08 Quarry,Impact,sans-serif;overflow-wrap:break-word;text-align:center}.cosmetic-grid small{font:11px/1.4 Arial,sans-serif;color:#8d7350;text-align:center;margin-top:auto}
@media(max-width:650px){
 .workshop-dialog .starter-item{grid-template-columns:114px minmax(0,1fr);gap:8px 12px;min-height:162px}.equipment-stage{width:114px;height:158px}
 .workshop-dialog .starter-copy h3{font-size:25px}.workshop-dialog .starter-item #starter-buy{grid-column:2;min-height:58px;margin:0}.workshop-dialog .starter-item #starter-buy .cave-action-title{font-size:21px}
 .workshop-dialog .upgrade-art>svg{width:58px;height:76px}
 .cosmetic-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.cosmetic-grid img,.cosmetic-grid svg{height:106px}.cosmetic-grid strong{font-size:20px}
 .cosmetic-art{height:224px}.cosmetic-fitting{padding:8px 10px 18px}.cosmetic-fitting h3{font-size:27px}.look-sections button{font-size:19px}
}
.combo-crest{display:grid;grid-template-columns:auto auto;column-gap:7px;align-items:center}
.combo-crest small{grid-column:1/-1;grid-row:1;text-align:right;margin-bottom:2px}
.combo-crest b{grid-column:2;grid-row:2;margin-top:0}
.combo-flame{position:static;grid-column:1;grid-row:2;align-self:center;justify-self:end;width:23px;height:31px;opacity:0;transform-origin:50% 90%;transition:opacity .3s ease;overflow:visible}
.combo-crest[data-tier="1"] .combo-flame,.combo-crest[data-tier="2"] .combo-flame,.combo-crest[data-tier="3"] .combo-flame{opacity:1;transform:scale(calc(.94 + var(--tool-fire-pulse,0)*.12))}
.combo-crest[data-tier="4"] .combo-flame{opacity:1;transform:scale(calc(.94 + var(--tool-fire-pulse,0)*.12))}
@media(max-width:740px){.combo-flame{width:18px;height:24px}.combo-crest{top:18px;column-gap:5px}}
.workshop-dialog .equipment-stage{position:relative;overflow:hidden}
.workshop-dialog .equipment-stage .rig-canvas{position:static!important;inset:auto!important;transform:none!important;width:100%;height:100%;max-width:none}
.cosmetic-fitting,#outfit-fitting{scroll-margin-top:145px}
.scene[data-smooth-light=true] .visitor-sprite{filter:drop-shadow(0 5px 3px #141d1d54) brightness(var(--light-foreground,1));transition:filter .8s linear}
.look-sections button{min-height:44px}
/* Bound replaced artwork inside the fitting, including narrow grid tracks. */
.cosmetic-fitting{grid-template-columns:minmax(0,1fr);min-width:0}
.cosmetic-art{display:block;width:100%;max-width:330px;min-width:0}
.cosmetic-art>img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
.cosmetic-art>svg{display:block;margin-inline:auto;height:100%;max-height:100%;max-width:100%}
.workshop-dialog .look-sections{position:sticky;top:124px;z-index:5;background:var(--surface);box-shadow:0 5px 0 var(--surface)}
.cosmetic-fitting,#outfit-fitting{scroll-margin-top:185px}
.workbench-trail{margin:-4px 0 18px;border-bottom:1px solid #d5c3a0;padding:0 0 12px}
.workbench-trail summary{font:18px/1.3 Quarry,Impact,sans-serif;color:#8a6a40;cursor:pointer;padding:8px 4px;min-height:40px}
.workbench-milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:6px 0 10px}
.upgrade-next{display:block;font:11px/1.35 Arial,sans-serif!important;color:#8c7452;margin-top:6px;letter-spacing:0}
.upgrade-next[hidden]{display:none!important}
.nft-selected .mint-status[hidden]{display:none!important}
.workshop-dialog .upgrade-art>svg{filter:drop-shadow(0 3px 1px #63421f22)}
.workshop-dialog .upgrade[data-gear-stage="7"]{border-color:#b78d48;background:#eee0bd}
.workbench-milestones button{display:grid;justify-items:center;min-width:0;gap:4px;background:#eadebf77;border:1px solid #d4bd95;border-radius:14px;padding:8px;color:#705330}
.workbench-milestones svg{width:100%;height:100px;max-width:120px;display:block}.workbench-milestones strong{font:21px/1.2 Quarry,Impact,sans-serif}
.workbench-milestones button[aria-pressed=true]{border-color:#9d753e;background:#ead6a6}
.workbench-current{border:1px solid #bda37c;background:#efe2c6;color:#6c5131;font:18px Quarry,Impact,sans-serif;border-radius:10px;min-height:44px;padding:8px 18px}
.equipment-preview-label{position:absolute;bottom:2px;left:0;right:0;text-align:center;font:10px/1.4 Arial,sans-serif;letter-spacing:.04em;color:#684c2a;background:#ede0beec;border:1px solid #c7ae80;border-radius:7px;padding:3px 0}
@media(max-width:400px){.workbench-milestones{gap:7px}.workbench-milestones svg{height:78px}.workbench-milestones strong{font-size:19px}}
@media(max-width:400px){
 .workshop-dialog .starter-item{min-height:0;gap:8px 12px}
 .workshop-dialog .equipment-stage{grid-row:1;height:148px}
 .workshop-dialog .starter-copy{align-self:center}
 .workshop-dialog .starter-item #starter-buy{grid-column:1 / -1;grid-row:2;max-width:none;min-height:60px}
}
