/* The quarry is the screen. The bench and closet open only when needed. */
.page{max-width:1640px;padding-inline:clamp(18px,3.5vw,60px)}
.topbar{height:70px}.game-heading{padding:23px 0 20px}.game-heading h1{font-size:52px}.game-heading .eyebrow{font-size:9px}.game-heading .save-state{font-size:12px;line-height:1.6}
.game-layout{display:block;border-top:2px solid var(--ink)}
.mine{padding:21px 24px 18px;overflow:visible;background:var(--surface)}
.mine-top{height:53px;padding-right:44%;margin-bottom:15px}.era-stamp>span{font-size:43px}.era-stamp h2{font-size:14px}.wisdom{display:none}
.resource-line{position:absolute;right:24px;top:21px;margin:0;gap:24px;min-width:260px;justify-content:flex-end}.resource-line>div:first-child{flex:none}.resource-line>div>small{font-size:8px}#balance{font-size:43px;line-height:1.1}.rates{padding-left:20px;min-width:76px}.rates>span{font-size:21px}
.scene{height:clamp(370px,51vw,600px);padding:0;margin:0 -24px;overflow:hidden;background:#d2bd96;isolation:isolate;border-block:1px solid #8d816252}
.world-backdrop{position:absolute;inset:0;background-size:cover;background-position:center 53%;z-index:-3;transition:filter 1.6s ease}
.world-shade{position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(180deg,#1b221b2e,transparent 26%,transparent 70%,#211e2420);transition:background 1.6s}
.scene-sky{z-index:-1}.scene .celestial{display:none}.scene .night-stars{left:20%;right:10%;top:17px;z-index:-1}.scene.night{background:#233b4a}.scene.night .world-backdrop{filter:brightness(.47) saturate(.67) hue-rotate(9deg)}.scene.night .world-shade{background:#12243947}.scene.night .mining-world{filter:brightness(.78) saturate(.83)}
.location-sign{position:absolute;left:25px;top:24px;z-index:3;display:flex;flex-direction:column;align-items:flex-start;pointer-events:none;color:#fff6de;text-shadow:0 1px 8px #1d201eb3}
.location-sign .eyebrow{font-size:8px;color:#fff3d8c9;margin-bottom:9px;letter-spacing:1.4px}.location-sign strong{font:clamp(27px,3vw,43px)/1 Quarry,Impact,sans-serif;letter-spacing:-.4px;font-weight:400}.location-sign>span:last-child{font:italic 13px/1.6 Georgia,serif;margin-top:7px}
.scene .day-night{top:18px;right:20px;color:#fff5d8;font:10px 'Courier New',monospace;background:#292f27a8;backdrop-filter:blur(8px);padding:12px 14px;min-height:44px;border:1px solid #fff8e837;z-index:4;letter-spacing:.6px}
.scene .art-button{position:absolute;bottom:5%;left:50%;transform:translateX(-50%);width:min(70%,780px);max-width:none;aspect-ratio:1.5;margin:0;z-index:2;filter:drop-shadow(0 12px 6px #25221738);touch-action:manipulation;outline-offset:-4px}
.scene .art-button:active:enabled{filter:drop-shadow(0 12px 6px #25221738) brightness(1.04)}.scene .art-button:disabled{cursor:default}.scene .mining-world{clip-path:none!important}.scene .specimen{right:20px;bottom:17px;z-index:3;font-size:9px;color:#fff6df;letter-spacing:.5px;text-shadow:0 1px 6px #30271eb0}
.scene .particles{z-index:4}.scene .hit-number{left:40%;top:48%;color:#fff4cd;text-shadow:0 2px 5px #3f31279c;font-size:32px}.scene .dust-bit{left:42%;top:66%}
.world-visitor{position:absolute;top:19%;left:0;width:72px;height:52px;pointer-events:none;z-index:1;opacity:0;filter:drop-shadow(0 1px 1px #17262020)}.world-visitor svg{height:100%;width:100%;overflow:visible}.visitor-wing{transform-origin:50px 36px;animation:world-wing .5s ease-in-out infinite alternate}.world-visitor[data-species=eagle]{width:95px}.world-visitor[data-species=owl]{width:67px}.world-visitor[data-species=satellite]{width:52px;top:15%}.world-visitor[data-species=drone]{width:62px}
@keyframes world-wing{from{transform:scaleY(.72)}to{transform:scaleY(1)}}
.quarry-dock{display:flex;border-bottom:1px solid var(--line);gap:0;justify-content:center;margin:0 -24px;background:var(--surface)}.quarry-dock button{display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-right:1px solid var(--line);background:none;padding:15px 25px;min-height:55px;font-size:12px}.quarry-dock button:last-child{border:0}.quarry-dock button:hover{background:#e6dfd0}.quarry-dock button:active{background:#dcd2bf}.quarry-dock .icon{width:20px;height:20px}.dock-symbol{font:23px/1 Georgia,serif;color:var(--accent);width:20px;text-align:center}
.vein-work{margin:17px 0 0;padding:0;border:0}.vein-work>div:first-child{margin-bottom:8px}.vein-work p{display:none}.mine-bottom{max-width:730px;margin:16px auto 0}.bonk-button{height:59px;font-size:13px}.under-bonk{margin:9px 0 6px}.status{text-align:center;font-size:11px;margin:9px 0 10px;min-height:18px}.wallet-actions{max-width:480px;margin:0 auto}.wallet-actions button{font-size:11px;padding:10px 13px}.daily-line{max-width:730px;margin:13px auto 0}
.workshop-dialog{width:min(620px,calc(100% - 36px));max-height:calc(100dvh - 50px);padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);box-shadow:0 18px 70px #25201547}.workshop-dialog .workshop{border:0;padding:16px 30px 30px;background:var(--surface)}.workshop-dialog .workshop-head{padding-right:10px}.workshop-head h2{font:32px/1 Quarry,Impact,sans-serif}.workshop-dialog .tabs{gap:0;justify-content:space-between;position:sticky;top:0;background:var(--surface);z-index:4;margin-top:22px}.workshop-dialog .tabs button{font-size:13px;padding:12px 6px;min-height:44px}.sheet-handle{height:25px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab}.sheet-handle::after{content:'';width:36px;height:3px;border-radius:3px;background:var(--line)}.sheet-handle:active{cursor:grabbing}.workshop-dialog .dialog-close{font-size:30px;right:9px;top:2px;width:44px;height:44px;z-index:5;color:var(--ink)}
.workshop .starter-item{grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:15px;padding:12px 0}.starter-object{min-height:73px;background:none}.starter-object>svg{width:44px;height:64px}.starter-copy h3{font-size:22px;margin-bottom:4px}.starter-copy .eyebrow{font-size:7px}.starter-copy #starter-description{display:none}.starter-price{margin:0}.starter-price span{font-size:9px}.starter-item #starter-buy{grid-column:auto;font-size:9px;letter-spacing:0;padding:12px;min-height:44px;max-width:105px}.panel-intro{font:italic 14px/1.6 Georgia,serif;margin:20px 0 15px}.workshop .upgrade{min-height:83px}.workshop .tool-note{max-width:none}.workshop .next-era{margin-top:20px}
.wardrobe-heading{margin:26px 0 20px}.wardrobe-heading h3{font:36px/1 Quarry,Impact,sans-serif;margin:8px 0 12px}.wardrobe-heading>p:last-child{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.outfit-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.outfit-card{border:1px solid var(--line);min-width:0;padding-bottom:11px}.outfit-card.equipped{border-color:var(--accent)}.outfit-preview{position:relative;aspect-ratio:1.03;background-size:cover;background-position:center;overflow:hidden}.outfit-character{position:absolute;width:165%;aspect-ratio:1.5;left:-66%;bottom:-5%}.outfit-card h4{font:20px/1.05 Quarry,Impact,sans-serif;font-weight:400;padding:0 10px;margin:14px 0 9px;min-height:42px}.outfit-note{display:block;font:7px/1.5 'Courier New',monospace;padding:0 10px;min-height:24px;color:var(--muted)}.outfit-card button{min-height:44px;border:0;border-top:1px solid var(--line);background:none;width:calc(100% - 16px);margin:10px 8px 0;padding:12px 0 0;font-size:9px;color:var(--accent)}.outfit-card button:disabled{color:var(--muted)}.miner-clothes{position:absolute;inset:0;width:100%;height:100%;background-size:400% 400%;background-repeat:no-repeat;z-index:0;pointer-events:none}.miner-body{z-index:0}.miner-clothes{z-index:1}.held-tool{z-index:2}.miner-hands{z-index:3}
.era-thumbnail{position:relative;aspect-ratio:1.5;background-size:cover;background-position:center;overflow:hidden;margin:18px 0 10px}.era-thumbnail .portrait{margin:0;width:100%;height:100%;position:absolute;inset:0;aspect-ratio:auto}.era-card .era-tag{top:3px}.era-card.locked .portrait{opacity:.92;filter:none}.era-card.locked .era-thumbnail{filter:saturate(.7)}.era-card strong{font-size:13px}.era-cards{gap:20px}.evolution-strip{margin-top:30px}.founders{padding:24px 0}.founders h2{font-size:29px}
#evolution-dialog{width:min(760px,calc(100% - 30px));max-height:calc(100dvh - 32px);overflow:auto;padding:26px}.era-preview-world{position:relative;aspect-ratio:1.9;background-size:cover;background-position:center;overflow:hidden}.era-preview-world #dialog-portrait{position:absolute;bottom:3%;left:17%;margin:0;width:67%;aspect-ratio:1.5}.era-preview-world>span{position:absolute;top:14px;left:16px;color:#fff5d9;font:24px Quarry,Impact,sans-serif;text-shadow:0 2px 6px #3d332a}.era-preview-world #dialog-portrait[hidden]{display:none!important}#era-preview-detail{margin:14px 0 8px;font:italic 13px/1.6 Georgia,serif}.era-preview-world[hidden]{display:none}
@media(min-width:1000px){.mine-bottom{position:relative}.bonk-button{max-width:440px;margin:auto}.wallet-actions{position:absolute;bottom:46px;right:24px;width:235px}.wallet-actions button{padding:9px;font-size:10px}.daily-line{max-width:none}.under-bonk{max-width:440px;margin:9px auto 6px}.energy-track{max-width:440px;margin:auto}.mine .status{margin-bottom:0}.mine{padding-bottom:22px}.founders p:not(.eyebrow){font-size:11px}.scene{height:clamp(370px,44vw,580px)}}
@media(max-width:740px){.page{padding-inline:14px}.topbar{min-height:58px;height:58px;flex-wrap:nowrap;padding:0;gap:9px}.brand{font-size:23px;flex-basis:auto;gap:6px}.brand img{width:23px;height:23px}.network{display:none}.top-actions{width:auto;margin-left:auto;gap:8px}.top-actions #sound,.top-actions .genesis-link,.top-actions #help{display:none}.top-actions .wallet-connect{font-size:9px!important;padding:10px 8px!important;min-height:38px}.game-heading{padding:18px 0 13px;display:flex;gap:10px;align-items:flex-end}.game-heading h1{font-size:36px;letter-spacing:-.5px}.game-heading .eyebrow{font-size:7px;letter-spacing:.6px;margin-bottom:7px}.game-heading .save-state{font-size:0;max-width:150px}.game-heading .save-state>span{font-size:9px;line-height:1.5;margin:0;text-align:right}.season-bar{font-size:7px;padding:9px 0;align-items:center}.season-bar>span{gap:5px}.season-bar #season-left{font-size:7px;margin-left:10px}.season-bar button{font-size:8px;min-height:32px;max-width:none}.mine{padding:14px 13px 15px}.mine-top{height:48px;padding-right:50%;margin-bottom:13px}.era-stamp{gap:7px}.era-stamp>span{font-size:32px}.era-stamp small{font-size:7px}.era-stamp h2{font-size:11px;white-space:nowrap}.resource-line{right:13px;top:15px;min-width:0;gap:10px;max-width:50%;flex-wrap:nowrap}#balance{font-size:30px}.resource-line>div>small{font-size:6px;letter-spacing:.4px}.rates{min-width:48px;padding-left:10px}.rates>span{font-size:16px}.rates>small{font-size:6px!important;margin-top:4px}.scene{margin:0 -13px;height:clamp(300px,81vw,420px);border:0}.world-backdrop{background-position:center}.scene .art-button{width:105%;bottom:6%;max-width:none}.location-sign{left:15px;top:18px}.location-sign .eyebrow{font-size:6px;letter-spacing:.7px;margin-bottom:8px}.location-sign strong{font-size:28px}.location-sign>span:last-child{font-size:11px}.scene .day-night{font-size:8px;top:15px;right:12px;padding:9px 10px;min-height:38px}.scene .specimen{bottom:11px;right:12px;font-size:6px;letter-spacing:.3px}.scene .hit-number{left:35%;top:51%;font-size:27px}.scene .dust-bit{left:35%;top:67%}.world-visitor{top:26%;width:45px;height:33px}.world-visitor[data-species=eagle]{width:60px}.quarry-dock{margin:0 -13px;justify-content:stretch}.quarry-dock button{flex:1;padding:10px 3px;gap:5px;min-width:0;min-height:57px;flex-direction:column;font-size:9px;border-right:0}.quarry-dock .icon{width:20px;height:20px}.quarry-dock .dock-symbol{font-size:21px}.vein-work{margin-top:13px}.vein-work>div:first-child{gap:7px;margin-bottom:7px}.vein-work .eyebrow{font-size:7px}.vein-work strong{font-size:10px}.vein-work #vein-progress-label{font-size:8px}.mine-bottom{margin-top:12px}.bonk-button{height:55px;font-size:12px;gap:10px}.under-bonk{font-size:9px;margin:8px 0 6px}.under-bonk>span:last-child{font-size:7px}.mine .status{font-size:10px;min-height:16px;margin:7px 0 10px}.wallet-actions button{font-size:10px;padding:10px}.daily-line{font-size:8px}.daily-line button{font-size:8px}.workshop-dialog{width:100%;max-width:none;max-height:87dvh;margin:auto 0 0;border-bottom:0;border-inline:0;border-top:2px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.workshop-dialog .workshop{padding:9px 20px 24px}.sheet-handle{height:29px}.workshop-head h2{font-size:29px}.workshop-head>span{font-size:7px}.workshop-dialog .tabs{margin-top:13px}.workshop-dialog .tabs button{font-size:12px;padding:12px 2px}.starter-item #starter-buy{max-width:84px;font-size:8px;padding:10px 7px}.starter-copy h3{font-size:23px}.starter-price span{font-size:8px}.workshop .starter-item{gap:10px;grid-template-columns:45px minmax(0,1fr) auto}.outfit-options{gap:8px}.outfit-card h4{font-size:19px;padding-inline:8px}.outfit-note{font-size:6px;padding-inline:8px}.outfit-card button{font-size:8px;line-height:1.5}.outfit-preview{aspect-ratio:.85}.outfit-character{width:210%;left:-103%}.wardrobe-heading h3{font-size:33px}.wardrobe-heading>p:last-child{font-size:12px}.era-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.era-card strong{font-size:12px}.era-thumbnail{margin:19px 0 8px}.era-card small{font-size:9px}.founders{display:none}.section-label h2{font-size:17px}.evolution-strip{margin:28px 0}.encounter h3{font-size:23px}.encounter p:not(.eyebrow){font-size:11px}.check-actions button{width:44px;height:44px}.collection-dialog .nft-finishes button{position:relative;width:24px;height:24px;margin:5px}.collection-dialog .nft-finishes button::after{content:'';position:absolute;inset:-10px}.collection-dialog .nft-families button{min-height:44px}.collection-dialog .nft-design span{font-size:11px}.era-preview-world{aspect-ratio:1.35}.era-preview-world #dialog-portrait{width:100%;left:0;bottom:2%}.era-preview-world>span{font-size:22px}#evolution-dialog{padding:24px 18px}.expedition{margin-top:25px}}
@media(max-width:370px){.brand{font-size:20px}.brand img{width:21px;height:21px}.top-actions .wallet-connect{font-size:8px!important;padding:9px 6px!important}.rates{display:none}.resource-line{max-width:44%}#balance{font-size:29px}.location-sign strong{font-size:25px}.scene .day-night{font-size:7px}.outfit-card h4{font-size:17px}.workshop-dialog .workshop{padding-inline:15px}}
@media(prefers-reduced-motion:reduce){.world-visitor{display:none}.world-ambient i{animation:none;display:none}.world-backdrop{transition:none}.visitor-wing{animation:none}.workshop-dialog{transform:none!important}}
@media(prefers-reduced-transparency:reduce){.scene .day-night{backdrop-filter:none;background:#30382e}}
.location-sign{max-width:72%}.location-sign strong{max-width:100%}
@media(max-width:740px){.location-sign{max-width:68%}}
.encounter{max-width:650px;margin:12px auto 0;padding:10px 0;gap:18px}.encounter>.crocodile{width:95px}.encounter .eyebrow{margin:0 0 6px}.encounter h3{font-size:25px}.encounter #check-sequence{font-size:19px;gap:10px;margin:9px 0}.encounter .check-actions{margin-bottom:6px}.encounter .check-actions button{width:44px;height:44px}
@media(max-width:740px){.encounter{gap:10px}.encounter>.crocodile{width:65px}.encounter h3{font-size:23px}.encounter .eyebrow{font-size:7px}.encounter p:not(.eyebrow){font-size:10px}}

/* Fit a complete, padded rig inside every scene; no oversized atlas window. */
.scene .art-button{width:94%;height:calc(100% - 82px);max-width:900px;aspect-ratio:auto;bottom:4%;}
@media(max-width:740px){.scene{height:clamp(340px,88vw,450px)}.scene .art-button{width:98%;height:calc(100% - 84px);bottom:4%}}
.era-thumbnail .portrait{inset:5%;width:90%;height:90%;clip-path:none}
.outfit-preview{aspect-ratio:.88}.outfit-character{width:100%;height:100%;left:0;bottom:0;aspect-ratio:auto}
.era-preview-world #dialog-portrait{width:90%;height:80%;bottom:3%;left:5%;aspect-ratio:auto;clip-path:none}

/* Four tactile stops per age, with no extra control competing with the rock. */
.scene .location-sign .world-stages{display:flex;gap:6px;align-items:center;margin-top:12px;height:7px;pointer-events:none}
.world-stages i{display:block;width:7px;height:5px;border-radius:48% 42% 46% 39%;background:#fff2cf2e;box-shadow:inset 0 1px #fff8e33d,0 1px 2px #26201f40;transition:background .7s,transform .7s}
.world-stages i:nth-child(even){transform:rotate(-13deg)}.world-stages i[data-passed=true]{background:#e9c88dab}.world-stages i[data-current=true]{background:#fff0c7;transform:scale(1.26);box-shadow:0 0 8px #e9c88d69,inset 0 1px #fff}
.scene[data-landscape-shift] .world-backdrop{will-change:transform,opacity}
@media(max-width:740px){.scene .location-sign .world-stages{margin-top:9px;gap:5px}.world-stages i{width:6px;height:4px}}
@media(prefers-reduced-motion:reduce){.world-stages i{transition:none}}
