/* Reference geometry: 941px design canvas. cqw preserves each block's proportions. */
:root{--ink:#251d13;--paper:#f5e7c9;--teal:#087b86;--gold:#c79742}
html{background:#0b2427}body{font-family:Georgia,'Times New Roman',serif;background:linear-gradient(#061d2360,#05161790),url('assets/webp/light-v2/cabin.webp?v=9c5e07704a08') center/cover fixed;color:var(--ink)}
.app{width:min(100%,470px);margin:0 auto!important;padding:0;min-height:100dvh;display:flex;flex-direction:column;container-type:inline-size;background:url('assets/webp/light-v2/scenes/01-scarab-stage-2.webp?v=101cb11e9827') center top/100% auto;box-shadow:0 0 65px #0008;border:0}
.brand{height:18cqw;flex-shrink:0;position:relative;padding:0;justify-content:center;gap:0}.brand a{height:100%;flex:0 1 64%;display:flex;justify-content:center}.brand img{width:100%;height:100%;object-fit:contain}.gear{position:absolute;right:4%;top:24%;width:9cqw;height:9cqw;border-radius:50%;border:1px solid #bb9957;background:#123e45;box-shadow:0 1px 3px #0008}.gear svg{width:5.5cqw;height:5.5cqw}.demo-badge{position:absolute;left:4%;top:25%;font:700 1.7cqw Arial;opacity:.65}
.balance,.balance.parchment{width:78%;height:11cqw;min-height:0;flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) 26% 26%;gap:2%;margin:0 auto 3cqw;padding:.8cqw 1.5cqw;border:1px solid #c6a56c;border-image:none;border-radius:4cqw;background:#f6ebd5;box-shadow:inset 0 0 0 2px #fff5,0 1px 3px #0008}.balance:before{display:none}.balance-number{min-width:0;gap:1.4cqw}.balance-number img{width:8cqw;height:8cqw;flex-shrink:0}.balance-number strong{font:700 6.5cqw/1 Georgia,serif;letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}.small-action{min-width:0;min-height:0;height:100%;padding:.5cqw;gap:1cqw;font:700 3.3cqw/1 Georgia,serif;border-radius:2.5cqw;white-space:nowrap}.small-action svg{width:3.8cqw;height:3.8cqw;flex-shrink:0}
#content{flex:1;min-height:0;outline:none}.tab-page{padding:0 0 2cqw;animation:none}.parchment{border:3.5cqw solid transparent;border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 38 45 38 45 stretch;border-radius:0;background:#f5e7cb;background-clip:padding-box;box-shadow:none;padding:0 1cqw}.parchment:before,.parchment:after{display:none}
.page-heading{width:68%;margin:2cqw auto 1.8cqw;padding:0 1cqw;text-align:center}.page-heading h1{font:700 8.5cqw/1 Georgia,serif;margin:0 0 .8cqw}.page-heading p{font:700 3.7cqw/1.1 Georgia,serif;color:#473d2a;margin:0}.section-heading{font:700 4cqw/1.1 Georgia,serif;justify-content:center;gap:2cqw;width:70%;margin:2.5cqw auto;color:#fff0cb;text-align:center;white-space:nowrap}
.primary{min-width:0;min-height:0;padding:1.5cqw 2cqw;border:1px solid #e4be71;border-radius:3cqw;background:radial-gradient(ellipse at 60% 0,#20b7c478,transparent 70%),linear-gradient(125deg,#118e9a,#064c58 70%);box-shadow:inset 0 0 0 2px #04343a,inset 0 0 0 3px #e3be7066,0 1px 0 #795224,0 2px 4px #0005;gap:2cqw}.primary strong{font:700 4.4cqw/1.08 Georgia,serif;letter-spacing:0;white-space:nowrap;text-wrap:initial;overflow-wrap:normal}.primary small{font:3.2cqw/1.2 Arial,sans-serif;margin-top:1.1cqw}.primary svg{width:5cqw;height:5cqw;flex-shrink:0}.primary:disabled,.mini-btn:disabled{opacity:.7;cursor:default}
.progress-track{height:2.8cqw}.mini-btn{min-height:0;min-width:0;max-width:100%;padding:1cqw;border:1.7cqw solid transparent;border-image:url('assets/webp/light-v2/ui/button-frame.webp?v=dbca62c82ddd') 20 21 20 21 fill stretch;background:none;box-shadow:none;border-radius:0;font:700 3.6cqw/1.05 Georgia,serif;white-space:nowrap;overflow-wrap:normal}.mini-btn.done{border-image:none;border:1px solid #b5a46e;border-radius:2cqw;background:#e8e7ca;color:#597143;padding:2cqw 1cqw}
/* Task rows retain the reference's illustration / description / action columns. */
.task-card{width:92%;min-height:21cqw;margin:0 auto 1.5cqw;padding:0;display:grid;grid-template-columns:25% minmax(0,1fr) 27%;align-items:center;gap:1.8cqw}.task-art{width:100%;height:auto;background:none;display:block}.task-art img{display:block;width:100%;aspect-ratio:1.18;object-fit:contain;mix-blend-mode:multiply}.task-main{min-width:0}.task-main h3{font:700 3.9cqw/1.08 Georgia,serif;white-space:normal;overflow-wrap:normal;margin:0 0 1.5cqw}.task-main p{font:3.2cqw/1.1 Georgia,serif;color:#766247;margin:0 0 1.3cqw}.task-card:not(.partner-card) .task-main p{display:none}.task-progress{gap:1cqw;flex-direction:column-reverse;align-items:stretch}.task-progress .progress-track{width:100%;height:2.6cqw;min-width:0}.task-progress small{font:700 3.3cqw/1 Georgia,serif}.task-right{gap:1.5cqw;min-width:0;width:100%;align-items:stretch}.reward{justify-content:center;font:700 4.5cqw/1 Georgia,serif;gap:1cqw}.reward img{width:6cqw;height:6cqw;object-fit:contain}.partner-card .task-main p{margin-bottom:0}.task-tip{font:2cqw/1.4 Arial,sans-serif;margin:1cqw 4%;gap:1cqw}.task-tip svg{width:2.7cqw;height:2.7cqw}
/* Wallet: narrow main panel, shallow connection card, three visible history rows. */
.wallet-card{width:84.5%;padding:0 1cqw 1cqw;margin:0 auto 1.8cqw}.wallet-card h1{font:700 5.8cqw/1.05 Georgia,serif;text-align:center;margin:0 0 1.8cqw}.wallet-layout{display:grid;grid-template-columns:minmax(0,1fr) 46%;gap:1cqw;align-items:center;min-height:30cqw}.wallet-amounts{min-width:0}.wallet-amounts .label{font:700 3.9cqw/1.1 Georgia,serif;padding-left:10.5cqw;white-space:nowrap}.wallet-coin-line{gap:1.5cqw;margin:1cqw 0 2cqw}.wallet-coin-line img{width:10cqw;height:10cqw;object-fit:contain;flex-shrink:0}.wallet-coin-line strong{font:700 9cqw/1 Georgia,serif;letter-spacing:-.04em;white-space:nowrap;font-variant-numeric:tabular-nums}.wallet-art{width:100%;height:30cqw;max-height:none;object-fit:contain}.gram-line{padding-top:1.7cqw;gap:2cqw}.gram-line>div{min-width:0}.gram-line strong{display:block;font:700 5.8cqw/1.1 Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap}.gram-line small{font:700 3.1cqw/1 Georgia,serif;margin-bottom:1cqw}.gram-icon{width:9cqw;height:9cqw;font-size:6cqw;flex-shrink:0}.wallet-actions{gap:2cqw;margin-top:1.5cqw}.wallet-actions .primary{flex:1;height:10cqw;padding:1.5cqw 1cqw;gap:1.5cqw;border-radius:3cqw}.wallet-actions .primary strong{font-size:4.3cqw;text-transform:none;white-space:nowrap}.wallet-actions svg{width:5cqw;height:5cqw}
.connect-card{width:84.5%;min-height:17cqw;margin:0 auto 1.6cqw;padding:0 1cqw;display:grid;grid-template-columns:minmax(0,1fr) 37%;grid-template-rows:auto auto;gap:.5cqw 1cqw;align-items:center}.connect-card>div{display:contents}.connect-card>svg{grid-column:1;grid-row:2;width:5.5cqw;height:5.5cqw;margin-left:3cqw;align-self:center}.connect-card h2{grid-column:1;grid-row:1;font:700 3.9cqw/1.1 Georgia,serif;white-space:nowrap;margin:0}.connect-card p{grid-column:1;grid-row:2;padding-left:10cqw;font:3.2cqw/1.2 Georgia,serif;margin:0}.connect-card .mini-btn{grid-column:2;grid-row:1/3;width:100%;min-width:0;min-height:9cqw;font-size:3.7cqw}
.history-card{width:84.5%;padding:0 1cqw 1cqw;margin:0 auto;min-height:0}.history-card h2{font:700 4.8cqw/1.1 Georgia,serif;margin:0 0 1.6cqw}.filters{gap:1.8cqw;margin-bottom:1.5cqw}.filters button{min-height:6cqw;min-width:0;padding:1cqw .5cqw;border-radius:4cqw;font:700 3cqw/1 Georgia,serif;white-space:nowrap}.history-entries{max-height:29cqw;overflow:auto;scrollbar-width:thin;scrollbar-color:#ad8d52 transparent;overscroll-behavior:contain}.history-row{display:grid;grid-template-columns:7cqw minmax(0,1fr) auto;gap:1.8cqw;min-height:9.5cqw;padding:1.1cqw .5cqw;background:none}.history-main{min-width:0}.history-main strong{font:700 3.2cqw/1.15 Georgia,serif;white-space:normal;overflow-wrap:normal}.history-main small{font:2.2cqw/1.2 Arial,sans-serif}.history-amount{font:700 3.9cqw/1 Georgia,serif;max-width:24cqw;white-space:normal;overflow-wrap:anywhere;text-align:right;font-variant-numeric:tabular-nums}.history-icon{display:flex;align-items:center;justify-content:center}.history-icon svg{width:5.8cqw;height:5.8cqw}.demo-rate{font:2cqw/1.3 Arial,sans-serif;margin:1cqw 5%}
/* Friends follow the reference's medallions, invite panel, two stats, compact list. */
.friends-art{display:block;width:55%;height:26cqw;margin:0 auto;object-fit:contain}.invite-card{width:94%;padding:0 1cqw 1cqw;margin:0 auto 1cqw}.invite-card h2{font:700 5cqw/1.05 Georgia,serif;text-align:center;margin:0 0 1.4cqw}.link-box{gap:2cqw;margin-bottom:1.5cqw;align-items:stretch}.link-box input{min-width:0;flex:1;font:3cqw/1.1 Georgia,serif;padding:1.5cqw 2cqw;background:#fff7e755;border-radius:2cqw;color:#685738;box-shadow:none}.copy-btn{flex:none;width:29%;min-height:7cqw;display:flex;gap:1cqw;align-items:center;justify-content:center;background:linear-gradient(#1495a2,#065461);color:#f4e3bb;border:1px solid #b58e46;border-radius:2cqw;font:700 3.1cqw/1 Georgia,serif}.copy-btn svg{width:3.3cqw;height:3.3cqw}.invite-card .primary{height:10cqw;padding:1cqw 2cqw}.invite-card .primary strong{font-size:4.5cqw}.stats-grid{width:94%;gap:1.7cqw;margin:0 auto 1cqw}.stat-card{min-height:14cqw;min-width:0;padding:0;gap:2cqw}.stat-card>div{min-width:0}.stat-card small{font:700 3.6cqw/1.1 Georgia,serif;white-space:nowrap}.stat-card strong{font:700 6.6cqw/1 Georgia,serif;display:block;margin-top:1cqw;font-variant-numeric:tabular-nums}.stat-card>svg,.stat-card>img{width:9cqw;height:9cqw;object-fit:contain;flex-shrink:0}.friends-list{width:94%;padding:0 1cqw 1cqw;margin:0 auto;min-height:0}.friends-list h2{font:700 5cqw/1.1 Georgia,serif;text-align:center;margin:0 0 1cqw}.friend-row{padding:1.5cqw 1cqw;gap:3cqw;min-height:10cqw}.friend-row>div:nth-child(2){flex:1;min-width:0}.friend-row strong{font:700 3.7cqw/1.15 Georgia,serif}.friend-row small{font:3cqw/1.1 Georgia,serif;margin-top:.8cqw}.avatar{flex-shrink:0;width:8.5cqw;height:8.5cqw;font-size:5cqw}.friend-row svg{width:3cqw}.empty-state{font:3.2cqw/1.5 Georgia,serif;padding:3cqw 1cqw;background:none}.empty-state svg{width:5cqw;height:5cqw}.subtle-button{font:2.2cqw/1.3 Arial,sans-serif;margin:1cqw auto;color:#e5d5b5}
.navigation{position:sticky;bottom:0;z-index:6;flex-shrink:0;width:100%;margin:0;padding:.8cqw .5cqw max(1.3cqw,env(safe-area-inset-bottom));border:1px solid #d1a254;border-radius:6cqw 6cqw 0 0;background:#f3e4c8;box-shadow:inset 0 0 0 2px #fff3,0 -2px 7px #0006}.navigation button{min-height:17cqw;padding:1cqw 0 1.5cqw;gap:1cqw;font:700 3.5cqw/1 Georgia,serif}.navigation button+button{border-left-color:#c6aa7160;border-radius:0}.navigation button.active{border-radius:4cqw}.navigation img{width:10.5cqw;height:10.5cqw;object-fit:contain;mix-blend-mode:multiply;filter:none}.navigation button.active:after{height:1cqw;bottom:1cqw}.navigation b{width:2.4cqw;height:2.4cqw;right:23%;top:.5cqw}.local-note{flex-shrink:0;font:1.5cqw/1 Arial,sans-serif;letter-spacing:.15cqw;padding:1cqw;background:#0d2c30;color:#d5ceb9}
/* Full photo remains behind independently laid-out excavation controls. */
.app:has(.excavation-scene){position:relative;isolation:isolate;min-height:177.7cqw;height:100dvh;background:#13383b;overflow:hidden}.app:has(.excavation-scene) #content{display:flex;position:static;min-height:0}.app:has(.excavation-scene) .tab-page{display:flex;flex-direction:column;width:100%;min-height:0;padding-bottom:7cqw}.excavation-scene{flex:1;position:static;isolation:auto;min-height:35cqw;aspect-ratio:auto;margin:0;background:none;pointer-events:none;overflow:visible}.scene-backdrop{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:50% 42%;border:0;border-radius:0;box-shadow:none;pointer-events:none;user-select:none}.find-progress{flex-shrink:0;width:78%;margin:0 auto 2.5cqw;padding:0 2cqw 1cqw}.find-progress h2{font:700 5cqw/1.1 Georgia,serif;margin:0 0 1.5cqw;overflow-wrap:normal}.progress-label{font:700 3.3cqw/1.1 Georgia,serif;margin-bottom:1.3cqw}.find-progress .progress-track{height:2.8cqw}.excavation-action{flex-shrink:0;width:92%;margin:0 auto}.excavation-action .primary{min-height:18cqw;border-radius:8cqw;padding:2cqw 3cqw;gap:3cqw}.excavation-action .primary strong{font-size:4.5cqw}.primary .play-medallion{width:13cqw;height:13cqw;border:1px solid #e4c17b;box-shadow:inset 0 0 0 2px #a57a35,inset 0 0 0 3px #ffdf9950,0 1px 3px #0008}.play-medallion svg{width:6cqw;height:6cqw}.scene-footnote,.discovery-status{display:none}.app:has(.excavation-scene) .navigation{position:relative;bottom:auto}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Each frame uses its own reference crop. Only border slices render; the bitmap
   interiors (including any original data) are never painted. HTML fills the clean paper. */
.wallet-card,.connect-card,.history-card,.task-card,.invite-card,.stat-card,.friends-list{background:#f5e7cb;background-clip:padding-box}
.wallet-card{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 45 45 35 45 stretch;border-width:4.6cqw 4.3cqw 3.7cqw}.wallet-art{mix-blend-mode:multiply}
.connect-card{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 27 30 30 30 stretch;border-width:2.8cqw 3.2cqw 3.2cqw}
.history-card{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 27 33 30 33 stretch;border-width:2.9cqw 3.5cqw 3.2cqw}
.task-card{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 23 25 28 30 stretch;border-width:2.5cqw 2.7cqw 3cqw 3.2cqw}
.invite-card{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 18 30 30 30 stretch;border-width:2cqw 3.2cqw 3.2cqw}
.stat-card{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 22 30 28 30 stretch;border-width:2.4cqw 3.2cqw 3cqw}
.friends-list{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 27 30 30 30 stretch;border-width:2.9cqw 3.2cqw 3.2cqw}
.task-progress .progress-track{flex:none}
.app:has(.excavation-scene){min-height:min(177.7vw,835px)}
/* Keep the whole ornamental corners inside each slice, rather than stretching a cut corner. */
.page-heading,.find-progress{border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 60 110 50 110 stretch;border-width:3.5cqw 7cqw 3cqw}
.empty-state svg{margin:0 auto 1cqw}
.brand a{flex-basis:38%;height:92%}.wallet-art{mix-blend-mode:normal}.friends-art{width:53%;height:26cqw}
.excavation-action .primary{aspect-ratio:880/189;min-height:0;padding:1cqw 3cqw 1cqw 25%;border:0;border-radius:8cqw;background:url('assets/webp/light-v2/ui/excavation-button.webp?v=8c83552b79df') center/100% 100% no-repeat;box-shadow:none;gap:0}.excavation-action .play-medallion{display:none}.excavation-action .primary strong{font-size:4.4cqw}.excavation-action .primary small{font-size:2.8cqw}
/* Border crops end beyond all reference content, preventing baked row/icon fragments. */
.wallet-card{border-image-slice:45 45 20 45;border-bottom-width:2.1cqw}
.history-card{border-image-slice:27 33 18 33;border-bottom-width:1.9cqw}
.task-card{border-image-slice:23 25 15 30;border-bottom-width:1.6cqw}
.invite-card{border-image-slice:18 30 15 30;border-bottom-width:1.6cqw}
.stat-card{border-image-slice:22 30 15 30;border-bottom-width:1.6cqw}
.friends-list{border-image-slice:27 30 12 30;border-bottom-width:1.3cqw}
.page-heading{border-left-width:5cqw;border-right-width:5cqw}.page-heading p{font-size:3.4cqw;white-space:nowrap}
.empty-state{padding:1cqw;line-height:1.3}.empty-state svg{width:4cqw;height:4cqw}
.history-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:3.1cqw}
.history-main small{display:block}
.navigation img{mix-blend-mode:normal}
/* Artifact shop: reference paper, brass borders and teal actions, live inventory. */
.navigation button{font-size:3cqw;min-height:16cqw}.navigation img{width:8.8cqw;height:8.8cqw}.navigation b{right:17%}
.shop-page .page-heading{width:76%;margin-bottom:2.5cqw}
.shop-overview{width:92%;display:grid;grid-template-columns:1fr 1fr;gap:3cqw;margin:0 auto 3cqw;padding:2.5cqw 4cqw;border:1px solid #b78e48;border-radius:3cqw;background:linear-gradient(115deg,#073c43,#0c5357);box-shadow:inset 0 0 0 2px #f3d28c15,0 2px 6px #0006;color:#fff0cd}
.shop-overview>div+div{border-left:1px solid #ddba7450;padding-left:4cqw}.shop-overview span{display:block;font:3cqw/1.2 Georgia,serif;color:#d6c4a0}.shop-overview strong{display:flex;align-items:center;gap:1cqw;margin-top:1.1cqw;font:700 4.4cqw/1.1 Georgia,serif;white-space:nowrap}.shop-overview img{width:4.5cqw;height:4.5cqw;object-fit:contain}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5cqw;width:92%;margin:0 auto}
.shop-card{min-width:0;margin:0;padding:0;background:#f5e7cb;background-clip:padding-box;border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 45 45 20 45 stretch;border-width:3.5cqw 2.4cqw 2cqw;display:flex;flex-direction:column}
.shop-art{position:relative;margin:-.6cqw -.4cqw 0;overflow:hidden;border:1px solid #a47a3f;border-radius:1.8cqw;background:#4a3422}.shop-art>img{display:block;width:100%;aspect-ratio:1.18;object-fit:cover;object-position:center 45%}.shop-card-unavailable .shop-art>img{filter:saturate(.35) brightness(.67)}
.shop-stock{position:absolute;bottom:1.1cqw;left:1.1cqw;right:1.1cqw;padding:1.1cqw .7cqw;background:#30271d;border:1px solid #b4955750;border-radius:1.3cqw;color:#efdfbd;font:700 2.6cqw/1.1 Georgia,serif;text-align:center}.shop-stock.in-stock{background:#07545a;border-color:#c4ac66;color:#fff0c5}
.shop-card-body{padding:2cqw 1cqw 1cqw;display:flex;flex-direction:column;flex:1;min-width:0}.shop-card h2{min-height:8cqw;font:700 4cqw/1.05 Georgia,serif;margin:0 0 1cqw}.shop-card p{min-height:6.4cqw;margin:0 0 1cqw;font:2.65cqw/1.2 Georgia,serif;color:#786143}
.shop-price{display:flex;align-items:center;gap:1cqw;margin:auto 0 1.8cqw}.shop-price img{width:5.7cqw;height:5.7cqw;object-fit:contain}.shop-price strong{font:700 5cqw/1 Georgia,serif}.shop-price>span{font:2.5cqw/1 Georgia,serif;color:#92764e;margin-left:auto}
.shop-sell{width:100%;min-height:8cqw;font-size:3.7cqw}.shop-excavate{min-height:8cqw;padding:1cqw 0;border:1px solid #b59a68;border-radius:2cqw;background:#eee1c5;color:#695736;display:flex;align-items:center;justify-content:center;gap:1cqw;font:700 3.3cqw/1 Georgia,serif}.shop-excavate svg{width:3.5cqw;height:3.5cqw}.shop-note{font:2.8cqw/1.4 Georgia,serif;color:#f1dfbc;text-align:center;margin:3cqw 5% 1cqw;text-shadow:0 1px 2px #000}
.sale-image{display:block;width:100%;height:170px;object-fit:cover;object-position:center 45%;border:2px solid #a27b3f;border-radius:12px;margin:16px 0}.sale-name{font:700 23px/1.1 Georgia,serif;margin:0 0 7px}.sale-material{font:13px/1.3 Georgia,serif;color:#806b45;margin:0}.sale-total{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #c6aa70;margin-top:17px;padding:14px 0;font-size:14px}.sale-total strong{display:flex;align-items:center;gap:8px;font:700 28px Georgia,serif;color:#07565c}.sale-total img{width:32px;height:32px;object-fit:contain}.sale-cancel{display:block;width:100%;border:0;background:transparent;color:#71603e;font:700 13px/1.2 Georgia,serif;padding:14px 0 0;text-align:center}
dialog{container-type:inline-size}#modal-body .primary{min-height:46px;padding:12px 14px;border-radius:14px}#modal-body .primary strong{font:700 18px/1.15 Georgia,serif;white-space:normal}#modal-body .primary small{font-size:12px}
/* One continuous paper-and-frame asset: transparent outside, no separate center patch.
   Nine-slice stretches only edges/center; the outer corners keep their alpha. */
.parchment:not(.balance){background:none;border-image:url('assets/webp/light-v2/ui/panel-seamless.webp?v=b7eed420157e') 32% 15% 26% 15% fill stretch}
.task-art img{mix-blend-mode:normal}
.loading-panel{width:84%;margin:9cqw auto;text-align:center;padding:6cqw 4cqw;border:1px solid #d0aa65;border-radius:4cqw;color:#f8e6bf;background:#103e43eb;font:4cqw/1.4 Georgia,serif}.loading-panel button{display:block;margin:4cqw auto 0}.welcome-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}.reserve-label{margin:2cqw 0 0;font:3cqw/1.2 Georgia,serif;color:#856b3c}
.language-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;font:700 16px Georgia,serif;padding:8px 0 15px}.language-setting select{max-width:65%;padding:7px 10px;border:1px solid #b39557;border-radius:8px;background:#fff4dc;color:#314b47;font:14px Arial,sans-serif}.promo-input{font-size:18px;text-transform:uppercase}.balance-number strong,.history-amount,.shop-price strong,.sale-total strong,.wallet-coin-line strong{unicode-bidi:isolate;direction:ltr}[dir=rtl] .connect-card p{padding-left:0;padding-right:10cqw}[dir=rtl] .connect-card>svg{margin-left:0;margin-right:3cqw}[dir=rtl] .shop-overview>div+div{border-left:0;border-right:1px solid #ddba7450;padding-left:0;padding-right:4cqw}
.telegram-launch{display:block;margin-top:16px;color:#ffe6a8;font-weight:bold}

/* Excavation: action, standalone progress, then a reserved Adsgram Task row. */
.app:has(.excavation-scene) .tab-page{padding-bottom:3cqw}
.excavation-progress{flex-shrink:0;width:84%;margin:2.5cqw auto 0;color:#fff0cd;text-shadow:0 1px 3px #000,0 1px 8px #000b}
.excavation-progress .progress-label{display:flex;justify-content:space-between;gap:2cqw;margin:0 0 1.3cqw;font:700 3.3cqw/1.2 Georgia,serif}
.excavation-progress .progress-track{height:2.8cqw;border:1px solid #d8b36c;background:#142c2cdb;box-shadow:0 1px 4px #0007}
.adsgram-slot{flex-shrink:0;width:92%;margin:3cqw auto 0;padding:0;min-width:0}
/* Match the existing task cards, including their continuous paper frame. */
.adsgram-slot .adsgram-task-placement{width:100%;min-height:20cqw;margin:0;padding:0;display:grid;grid-template-columns:25% minmax(0,1fr);align-items:center;gap:1.8cqw;border-width:2.5cqw 2.7cqw 1.6cqw 3.2cqw;border-radius:0;background:none;box-shadow:none;color:var(--ink);text-shadow:none}
.adsgram-task-placement .task-main h3{margin:0;font:700 3.9cqw/1.15 Georgia,serif}
.adsgram-task-placement .task-art img{aspect-ratio:1.18;object-fit:contain}
.adsgram-slot adsgram-task{display:block;width:100%;min-width:0;--adsgram-task-font-size:13px;--adsgram-task-icon-size:42px;--adsgram-task-button-width:80px;--adsgram-task-icon-border-radius:10px}

/* Keep the approved image button and add tactile feedback above its artwork. */
.excavation-action .primary{position:relative;isolation:isolate;overflow:hidden;transition:transform 140ms ease,filter 140ms ease;touch-action:manipulation}
.excavation-action .primary:active,.excavation-action .primary.is-watching{transform:translateY(.65cqw) scale(.98);filter:brightness(.82) saturate(1.15)}
.excavation-action .primary.is-watching{opacity:1;cursor:progress}
.excavation-action .primary::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:0;background:linear-gradient(90deg,#fff2d31c 0 var(--ad-elapsed,0%),transparent var(--ad-elapsed,0%) 100%);box-shadow:inset 0 1.2cqw 2.5cqw #001b2870;transition:opacity 140ms ease}
.excavation-action .primary.is-watching::after{opacity:1}
@media(prefers-reduced-motion:reduce){.excavation-action .primary,.excavation-action .primary::after{transition:none}}

/* Individual illuminated collectibles, fully separate from excavation photography. */
.shop-art{background:radial-gradient(ellipse at 50% 46%,#145a60 0,#0b333a 56%,#061e26 100%);aspect-ratio:1/1.12;display:grid;place-items:center;padding:1.5cqw 1cqw 6cqw}
.shop-art>img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;object-position:center;filter:drop-shadow(0 1cqw 1.8cqw #02131790)}
.shop-card-unavailable .shop-art>img{filter:saturate(.78) brightness(.9);opacity:.9}
.sale-image,.discovery-image{object-fit:contain;background:radial-gradient(ellipse,#145a60,#061e26);padding:12px}
