/* Expedition frame. A shared grid, scale and material for every control. */
.quarry-page{--shell-ink:#493c29;--shell-muted:#968267;--shell-line:#caba9a;--shell-paper:#eee6d5;--shell-gold:#b28a49}
.quarry-page .topbar{border-bottom:0}
.quarry-page .page{padding-inline:clamp(10px,2.2vw,32px)}
.quarry-page .game-layout{border:0;background:none;box-shadow:none;overflow:visible}
.quarry-page .mine{padding:0;border:1px solid #bdad8d;border-radius:12px;overflow:hidden;background:var(--shell-paper);box-shadow:0 8px 26px #53402b0a}
.quarry-page .quarry-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;padding:15px 22px 13px;background:radial-gradient(ellipse at 10% 0%,#fff9e7a6,transparent 70%),linear-gradient(110deg,#eee5d3,#e8dfcb);border-bottom:1px solid #bca47b88;position:relative;color:var(--shell-ink)}
.quarry-page .quarry-head .mine-top{grid-column:1;grid-row:1;position:static;display:flex;align-items:center;min-height:48px;height:auto;padding:0;margin:0;border:0}
.quarry-page .quarry-head .era-stamp{display:flex;gap:12px;align-items:center;min-width:0}
.quarry-page .quarry-head #era-number{display:grid!important;place-items:center;flex:0 0 38px;width:38px;height:41px;border:1px solid #c5ad7e;border-radius:12px 9px 13px 9px;background:linear-gradient(145deg,#f5e6c4,#e3cca0);box-shadow:inset 0 1px #fff8e5,0 2px 0 #c6af8533;color:#907144;font:24px/1 Quarry,Impact,sans-serif;letter-spacing:0}
.quarry-page .quarry-head .era-stamp h2{font:clamp(22px,2.5vw,31px)/1.1 Quarry,Impact,sans-serif!important;letter-spacing:.015em;text-transform:none;margin:0;color:var(--shell-ink);white-space:normal}
.quarry-page .quarry-head .era-stamp small,.quarry-page .quarry-head .wisdom{display:none}
.quarry-page .quarry-head .resource-line{grid-column:2;grid-row:1;display:flex;position:static;align-items:center;margin:0;padding:0;border:0;min-width:0}
.quarry-page .quarry-head .balance-open{display:flex;align-items:center;justify-content:flex-end;gap:10px;position:relative;border:1px solid #cdb98e88;border-radius:14px;background:linear-gradient(130deg,#fff8e6a6,#e7d8b877);padding:7px 10px;min-height:48px;box-shadow:inset 0 1px #fffaefaa;color:var(--shell-ink);transition:background-color .16s,translate .12s}
.quarry-page .balance-open:hover{background-color:#e8d5ad}.quarry-page .balance-open:active{translate:0 1px}
.token-medallion{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:1px solid #a8884e;border-radius:50%;background:radial-gradient(circle at 36% 25%,#f2d798,#c6a264 65%,#a28147);box-shadow:inset 0 0 0 2px #edd4a066,0 2px 3px #5d442421}
.token-medallion img{width:22px;height:22px;filter:sepia(.6) saturate(.65);opacity:.85}
.token-value{display:grid;gap:1px;justify-items:end}.quarry-page .token-value small{font:10px/1 'Avenir Next','Trebuchet MS',sans-serif!important;text-transform:uppercase;letter-spacing:.075em;color:#927b58}
.quarry-page .quarry-head #balance{font:600 clamp(23px,2.6vw,32px)/1.08 'Avenir Next','Trebuchet MS',sans-serif!important;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--shell-ink)}
.token-arrow{font:20px/1 Georgia,serif;color:#b49a6f;margin-left:2px}
.quarry-page .quarry-head #age-trail{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:auto minmax(30px,1fr) auto;align-items:center;gap:12px;position:relative;width:100%;min-height:24px;padding:0;margin:0;border:0;background:none;box-shadow:none;color:#8d7854;letter-spacing:0}
.quarry-page .quarry-head #age-trail>img,.quarry-page .quarry-head #age-trail small{display:none}
.quarry-page .quarry-head #age-trail>span{grid-column:1;display:flex;align-items:center;gap:6px;min-width:0}
.quarry-page .quarry-head #age-trail>span:before{content:'↗';font:15px/1 'Trebuchet MS',sans-serif;color:#b5945b}
.quarry-page .quarry-head #age-trail b{font:500 12px/1.2 'Avenir Next','Trebuchet MS',sans-serif;letter-spacing:.01em}
.quarry-page .quarry-head #age-trail>strong{grid-column:3;grid-row:1;max-width:none;margin:0;padding-left:18px;background:url('./assets/interface/pickaxe.webp') left center/14px 17px no-repeat;font:500 12px/1.2 'Avenir Next','Trebuchet MS',sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
.quarry-page .quarry-head #age-trail>i{grid-column:2;grid-row:1;position:static;width:100%;height:3px;border-radius:3px;background:#c6b18b40;overflow:hidden;box-shadow:inset 0 1px #9a815b10}
.quarry-page .quarry-head #age-trail em{height:100%;border-radius:3px;background:linear-gradient(90deg,#9c7443,#cfaa66);transition:width .22s ease-out}
.quarry-page .scene{margin:0;height:clamp(330px,calc(100svh - 268px),820px);border:0;border-radius:0}
.quarry-page .scene .location-sign{top:17px;left:20px;max-width:calc(100% - 40px);width:auto;z-index:7;display:grid;gap:7px;pointer-events:none}
.quarry-page .location-sign .site-heading{display:flex;align-items:center;flex-wrap:nowrap;gap:11px;max-width:none;width:fit-content;padding:7px 10px 7px 12px;border:1px solid #e6d5aa33;border-radius:11px 7px 12px 7px;background:#352d21b0;backdrop-filter:blur(12px);box-shadow:0 3px 12px #241e161c;text-shadow:none}
.quarry-page .location-sign #location-name{font:clamp(18px,1.8vw,25px)/1.15 Quarry,Impact,sans-serif;letter-spacing:.015em;color:#f6ecd3;white-space:normal}
.quarry-page .location-sign .site-marks{display:flex;align-items:center;gap:4px;flex:none}
.quarry-page .location-sign .site-marks i{display:grid;place-items:center;width:23px;height:25px;border:1px solid #e8d4a744;border-radius:7px;background:#f5e5b210;opacity:.65;box-shadow:none;transform:none}
.quarry-page .location-sign .site-marks i[data-complete=true]{opacity:1;background:#c39a52;border-color:#ffe7b5;color:#fff3d4}
.quarry-page .location-sign .site-marks svg{width:15px;height:17px}
.quarry-page .location-sign .site-stops{margin:0 0 0 12px;gap:5px}
.quarry-page .quarry-console{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) 78px;gap:18px;align-items:center;max-width:none;width:100%;box-sizing:border-box;margin:0;padding:14px 22px 13px;background:linear-gradient(105deg,#eee5d2,#e8deca);border-top:1px solid #fff2d0;min-height:84px}
.quarry-page .quarry-console>.dig-controls,.quarry-page .quarry-console>.sound-strip{display:none!important}
.quarry-page .quarry-console>#vein-progress{display:block;position:absolute;left:22px;right:22px;top:0;width:auto;height:2px;background:#a9926633;border-radius:0;opacity:1}
.quarry-page .quarry-console>#vein-progress>span{background:#b29b6c;border-radius:0;transition:width .15s ease-out}
.quarry-page .quarry-console>#sound{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:64px;min-width:0;min-height:55px;height:55px;padding:5px 6px;box-sizing:border-box;border:1px solid #c5ae7f80;border-radius:13px;background:#f8edd566;box-shadow:inset 0 1px #fff6e4aa;color:#947744;transition:background-color .16s,translate .12s}
.quarry-page .quarry-console>#sound .radio-mark{width:23px;height:23px;flex:none;display:block;opacity:1}
.quarry-page .quarry-console>#sound b{display:block!important;font:500 10px/1.1 'Avenir Next','Trebuchet MS',sans-serif!important;color:inherit;letter-spacing:0;text-transform:none;white-space:nowrap}
.quarry-page .quarry-console>#sound[aria-pressed=true]{color:#92622e;background:#e5cea050;border-color:#b79a6680}
.quarry-page .quarry-console>#sound:active,.quarry-page .quarry-dock button:active{translate:0 1px}
.quarry-page .quarry-console>.rhythm-lane{grid-column:2;grid-row:1;display:grid;grid-template-columns:70px minmax(0,1fr);grid-template-rows:30px 12px;align-items:center;gap:5px 8px;min-width:0;min-height:0;height:47px;padding:0;margin:0;border:0}
.quarry-page .quarry-console .rhythm-road{grid-column:1/-1;grid-row:1;height:30px;min-width:0;opacity:1;visibility:visible;background:linear-gradient(transparent 47%,#b59b6b42 48%,#b59b6b42 53%,transparent 54%)}
.quarry-page .quarry-console .rhythm-road b{width:16px;height:16px;top:6px;background:#f4e7c6;border-color:#b99a5c;border-radius:5px;box-shadow:0 1px 4px #7c5c3010}
.quarry-page .quarry-console .rhythm-road i{width:8px;height:8px;top:11px;background:#ae8c4f;box-shadow:inset 0 1px #edd5a4;opacity:.9}
.quarry-page .quarry-console .combo-stones{grid-column:1;grid-row:2;display:flex;align-items:center;gap:3px;height:10px;visibility:visible;opacity:1}
.quarry-page .quarry-console .combo-stones i{width:5px;height:5px;min-width:0;border-radius:2px;background:#bca98266;box-shadow:none;transition:background-color .1s,height .1s}
.quarry-page .quarry-console .combo-stones i[data-filled=true]{height:8px;background:#be7c3a;box-shadow:inset 0 1px #f5d497}
.quarry-page .quarry-console #rhythm-charge{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.quarry-page .quarry-console #rhythm-feedback{grid-column:2;grid-row:2;position:static;left:auto;top:auto;z-index:auto;transform:none;background:none;padding:0;border:0;border-radius:0;box-shadow:none;text-align:right;font:500 11px/1 'Avenir Next','Trebuchet MS',sans-serif;letter-spacing:0;min-width:0;min-height:11px;white-space:nowrap;color:#9b7748}
.quarry-page .quarry-console>.quarry-dock{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;align-self:center;gap:0;min-width:0;padding:0;margin:0;background:none;border:0;position:static}
.quarry-page .quarry-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:78px;min-width:0;min-height:55px;height:55px;padding:4px 8px;box-sizing:border-box;border:1px solid #9d7d46;border-radius:13px;background:linear-gradient(130deg,#d5b273,#bf9959);box-shadow:inset 0 1px #fae1ad88,0 2px 3px #76542612;color:#5a4225;transition:translate .12s,filter .15s}
.quarry-page .quarry-dock .dock-object{display:block;width:27px;height:29px;margin:0;transform:none}.quarry-page .quarry-dock .dock-object img{display:block;width:27px;height:29px;max-height:29px;object-fit:contain;filter:drop-shadow(0 1px 1px #6c4b2b22)}
.quarry-page .quarry-dock .dock-label{font:17px/1 Quarry,Impact,sans-serif;letter-spacing:.02em;margin:0}
.quarry-page .quarry-dock .has-update:after{width:6px;height:6px;right:8px;top:8px;border:2px solid #f1dfba;background:#a35e33;box-shadow:none}
.quarry-page .workshop-dialog .workshop-head{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:16px;min-height:56px;padding-bottom:16px;margin-bottom:0;border-bottom:1px solid #c9b38c66}
.quarry-page .workshop-dialog .workshop-heading{display:flex;align-items:center;gap:10px}.quarry-page .workshop-dialog .workshop-heading h2{font-size:29px;line-height:1.1;margin:0}.quarry-page .workshop-dialog .workshop-heading img{width:29px;height:34px;object-fit:contain}
.quarry-page .workshop-dialog .workshop-purse{display:flex;align-items:center;justify-content:center;gap:7px;margin:0}.quarry-page .workshop-dialog .workshop-purse b{font:600 20px/1 'Avenir Next','Trebuchet MS',sans-serif;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.quarry-page .workshop-dialog .workshop-purse img{width:23px;height:28px;object-fit:contain}
.quarry-page .workshop-dialog .dialog-close{position:static;display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;padding:0;margin:0;border:1px solid #c7b28a88;border-radius:13px;background:#e9dbbf70;box-shadow:inset 0 1px #fff4de77;font:25px/1 'Trebuchet MS',sans-serif;color:#8d734b}
.quarry-page .workshop-dialog .tabs{position:relative;top:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:4px;margin:12px 0 17px;padding:4px;border:1px solid #c9b38c66;border-radius:12px;background:#d9c7a222;overflow:hidden}
.quarry-page .workshop-dialog .tabs button{display:grid;place-items:center;min-height:42px;height:42px;margin:0;padding:6px 8px;border:0;border-radius:8px;font:19px/1 Quarry,Impact,sans-serif;white-space:nowrap;background:none;box-shadow:none;transform:none;color:#9a8058}
.quarry-page .workshop-dialog .tabs button[aria-selected=true]{background:#e1cea9;color:#604728;box-shadow:0 1px 3px #72512a12,inset 0 1px #fff0ce88}.quarry-page .workshop-dialog .tabs button:after{display:none}
.quarry-page .bench-back{min-height:38px;padding:7px 13px;border-radius:11px;font-size:15px;box-shadow:none}
.quarry-page .bench-buy,.quarry-page .rock-shelf button{border-radius:11px;box-shadow:inset 0 1px #fff2cf77,0 2px 0 #ad8c5433}
.quarry-page .rock-shelf h3{font-size:22px;line-height:1.15;min-height:2.3em;display:grid;place-items:center}
.quarry-page footer{font:10px/1.3 'Trebuchet MS',sans-serif;color:#a59578;border:0;padding-block:10px}.quarry-page footer>span:first-child{font:10px/1.3 'Trebuchet MS',sans-serif;letter-spacing:.04em}
@media(max-width:600px){.quarry-page .quarry-head{padding:12px 14px 11px;gap:8px 12px}.quarry-page .quarry-head .era-stamp{gap:9px}.quarry-page .quarry-head .era-stamp h2{font-size:23px!important}.quarry-page .quarry-head #era-number{flex-basis:31px;width:31px;height:35px;font-size:21px;border-radius:10px}.quarry-page .quarry-head .balance-open{gap:7px;padding:6px 8px;border-radius:12px;min-height:45px}.quarry-page .quarry-head #balance{font-size:24px!important}.token-medallion{width:25px;height:25px;flex-basis:25px}.token-medallion img{width:19px;height:19px}.token-arrow{display:none}.quarry-page .token-value small{font-size:8px!important}.quarry-page .quarry-head #age-trail{gap:9px;min-height:21px}.quarry-page .quarry-head #age-trail b,.quarry-page .quarry-head #age-trail>strong{font-size:11px}.quarry-page .quarry-console{grid-template-columns:57px minmax(0,1fr) 65px;gap:12px;padding:12px 14px 11px;min-height:78px}.quarry-page .quarry-console>#vein-progress{left:14px;right:14px}.quarry-page .quarry-console>#sound{width:57px;height:53px;min-height:53px}.quarry-page .quarry-dock button{width:65px;height:53px;min-height:53px}.quarry-page .quarry-console>.rhythm-lane{grid-template-columns:58px minmax(0,1fr);gap:5px}.quarry-page .quarry-console .combo-stones{gap:2px}.quarry-page .quarry-console .combo-stones i{width:4px}.quarry-page .scene .location-sign{left:14px;top:14px;max-width:calc(100% - 28px);gap:6px}.quarry-page .location-sign .site-heading{gap:9px;padding:6px 8px 6px 10px}.quarry-page .location-sign #location-name{font-size:21px}.quarry-page .location-sign .site-marks i{width:20px;height:22px}.quarry-page .location-sign .site-marks svg{width:13px;height:15px}.quarry-page .workshop-dialog .tabs button{font-size:18px}.quarry-page .workshop-dialog .workshop-head{gap:10px}.quarry-page .scene{height:clamp(330px,calc(100svh - 252px),700px)}}
@media(max-width:360px){.quarry-page .quarry-head .era-stamp h2{font-size:20px!important}.quarry-page .quarry-head #balance{font-size:21px!important}.token-medallion{display:none}.quarry-page .quarry-head{column-gap:8px}.quarry-page .quarry-console{gap:9px;padding-inline:11px}.quarry-page .quarry-console #rhythm-feedback{font-size:9px}.quarry-page .location-sign #location-name{font-size:18px}.quarry-page .location-sign .site-marks{gap:3px}.quarry-page .workshop-dialog .tabs button{font-size:16px}}
@media(prefers-reduced-motion:reduce){.quarry-page .quarry-head #age-trail em,.quarry-page .quarry-console .combo-stones i,.quarry-page .quarry-console>#vein-progress>span{transition:none}}
@media(prefers-reduced-transparency:reduce){.quarry-page .location-sign .site-heading{background:#40372b;backdrop-filter:none}}
/* Remove legacy absolute-purse limits now that the header owns its columns. */
.quarry-page .quarry-head .resource-line{width:auto;max-width:none;justify-self:end;flex:none}
.quarry-page .quarry-head .balance-open{flex:none;width:auto;white-space:nowrap}
.quarry-page .token-value{flex:none;min-width:max-content}
.quarry-page .quarry-head #balance{white-space:nowrap;overflow-wrap:normal;word-break:normal;min-width:max-content}
.quarry-page .top-actions{display:flex;align-items:center;gap:9px}
.quarry-page .top-actions button{height:40px;min-height:40px;padding:7px 11px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.quarry-page .scene .visitor-effect{left:20px;right:auto;top:78px;bottom:auto;max-width:205px}
@media(max-width:600px){.quarry-page .scene{height:clamp(330px,calc(100svh - 280px),700px)}.quarry-page .scene .visitor-effect{left:14px;top:69px}.quarry-page .top-actions button{padding-inline:8px}.quarry-page .top-actions{gap:6px}}
@media(max-width:400px){.quarry-page .topbar .brand{font-size:19px;gap:6px}.quarry-page .topbar .brand img{width:20px;height:20px}.quarry-page .top-actions .owner-playtest{display:none}.quarry-page .top-actions #help{width:32px;min-width:32px;font-size:0;padding:0}.quarry-page .top-actions #help:after{content:'?';font:20px/1 Quarry,Impact,sans-serif}.quarry-page #connect-wallet{max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}}
.quarry-page .topbar .network{display:none}.quarry-page .top-actions{flex-wrap:nowrap;flex:none}.quarry-page .top-actions .genesis-link{display:inline-flex;align-items:center;min-height:40px;line-height:1}
@media(max-width:740px){.quarry-page .top-actions .genesis-link{display:none}}
@media(max-width:400px){.quarry-page .topbar{gap:8px;flex-wrap:nowrap}.quarry-page .topbar .brand{font-size:18px!important;flex:0 1 auto;min-width:0}.quarry-page .top-actions #help{font-size:0!important}.quarry-page .top-actions #help:after{font-size:20px!important}.quarry-page .top-actions #connect-wallet{font-size:11px!important;padding:8px!important}}
@media(max-width:360px){.quarry-page .topbar .brand img{display:none}.quarry-page .topbar .brand{font-size:18px!important}.quarry-page .top-actions{gap:4px}}

.quarry-page .workshop-dialog .workshop-purse:before{content:'';display:block;width:23px;height:23px;border:1px solid #b39358;border-radius:50%;background:url('./assets/favicon.svg') center/16px 16px no-repeat,radial-gradient(circle at 35% 25%,#f2d99d,#c2a063);box-shadow:inset 0 0 0 2px #f0daa166}.quarry-page .camp-home .camp-heading h3{font-size:29px;line-height:1.1}.quarry-page .camp-home .camp-heading{align-items:center}.quarry-page .camp-home .camp-facilities{margin-top:12px}.quarry-page .camp-build{border-width:1px;box-shadow:inset 0 1px #fff0d377,0 2px 0 #b79b6933}.quarry-page .camp-facility{padding-block:14px}.quarry-page .camp-home .camp-auto{margin-top:17px;margin-bottom:12px}

.quarry-page .haul-hero{padding:20px 18px;margin:4px 0 18px;border:1px solid #ccb68c66;border-radius:16px;background:radial-gradient(ellipse at 10% 50%,#e3c99550,transparent 70%)}.quarry-page .haul-hero #wallet-available{font:600 clamp(28px,5vw,43px)/1.1 'Avenir Next','Trebuchet MS',sans-serif!important;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#5e482e}.quarry-page .haul-hero .eyebrow{font-size:10px!important;margin-bottom:7px}.quarry-page .haul-hero>img{width:78px;height:85px;object-fit:contain}.quarry-page .haul-hero>div>span{font:10px/1.3 'Trebuchet MS',sans-serif;color:#978363;letter-spacing:.03em}.quarry-page .wallet-actions .cave-action{min-height:64px}.quarry-page .wallet-actions .cave-action-title{font-size:22px}
/* Tab switches keep the same window and the same close-button position. */
.quarry-page .workshop-dialog{box-sizing:border-box;height:min(780px,calc(100svh - 28px));max-height:calc(100svh - 28px)}
.quarry-page .workshop-dialog .workshop-head{position:sticky;top:0;z-index:16;box-sizing:border-box;height:72px;min-height:72px;padding-block:13px 14px;background:var(--surface)}
.quarry-page .workshop-dialog .tabs{position:sticky;top:72px;z-index:15;min-height:52px;margin-top:0;background:#e9dfca}
@media(max-width:650px){.quarry-page .workshop-dialog{height:calc(100svh - 20px);max-height:calc(100svh - 20px)}}

/* Keyboard focus follows the play area, never the scaled illustration. */
.quarry-page .scene .art-button:focus-visible{outline:none}
.quarry-page .scene:has(.art-button:focus-visible){outline:2px solid #e6c38588;outline-offset:-4px}
