/* Adventure rewards and the permanent rare-card collection. */
.wallet-button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:74px;height:30px;padding:0 10px;border:1px solid #d4b76466;border-radius:16px;background:linear-gradient(130deg,#b7a04920,#d2ae4510);color:#f1d995;cursor:pointer;transition:border-color .18s,background .18s}
.wallet-button:hover{border-color:#efd489;background:#d4b56428}
.wallet-button strong{font:700 12px/1 var(--ui);font-variant-numeric:tabular-nums}
.coin-symbol{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;border:1px solid #dac07c95;background:radial-gradient(circle at 35% 25%,#efca754a,#9d692418);color:#f8dc8c;font-size:13px;box-shadow:inset 0 0 0 2px #a7802919}
.wallet-label{color:#c0b079;font-family:var(--cn);font-size:8px}
.shop-link-button>span{color:#e0c47a;margin-right:3px}
.stage-reward{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:12px;padding:12px 16px;border:1px solid #c8b06b35;border-radius:9px;background:linear-gradient(100deg,#b9994218,#b9994205);color:#c8bf9c;font-size:11px;line-height:1.7}
.stage-reward strong,.stage-reward b{color:#f0d68b;font-weight:600}
.stage-reward small{color:#a8ac94;font-size:10px}
.stage-reward:empty{display:none}
.result-coins{display:flex;flex-direction:column;align-items:center;gap:5px;padding:15px 10px;margin-top:14px;border:1px solid #d7bd7247;border-radius:9px;background:radial-gradient(ellipse at 50% 0%,#ceb25e24,#b49a4009);color:#d2c7a1;font-size:11px;line-height:1.7}
.result-coins:empty{display:none}
.result-coins strong,.result-coins b{color:#f6d98c;font:700 25px/1.5 var(--ui)}
.result-coins small{color:#aaaF94;font-size:10px}
.result-card{max-height:calc(100dvh - 30px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#aa98614d transparent}
.shop-overlay{position:fixed;inset:0;z-index:60;display:none;place-items:center;padding:24px;background:#060e0bed;backdrop-filter:blur(14px);font-family:var(--cn)}
.shop-overlay.open{display:grid}
.shop-dialog{position:relative;width:min(980px,100%);max-height:calc(100dvh - 48px);overflow:auto;padding:30px;border:1px solid #d4be7970;border-radius:20px;background:radial-gradient(ellipse at 7% 0%,#48654162,transparent 42%),radial-gradient(ellipse at 100% 80%,#6860391c,transparent 46%),linear-gradient(140deg,#19291f,#111d16 75%);box-shadow:0 30px 100px #000d,inset 0 0 0 4px #d6ca8e06;scrollbar-width:thin;scrollbar-color:#aa98614d transparent;animation:modal-in .28s cubic-bezier(.2,.8,.2,1)}
.shop-header{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin-bottom:22px}
.shop-heading{min-width:0}
.shop-eyebrow{font:600 9px/1.5 var(--ui);letter-spacing:2px;color:#c3b078}
.shop-heading h2{margin:9px 0 9px;font-size:26px;line-height:1.5;font-weight:600;color:#f2ead4;letter-spacing:.4px}
.shop-heading p{max-width:590px;margin:0;font-size:11px;line-height:1.9;color:#a9b19a}
.shop-close{flex:none;height:35px;margin-top:5px;font-size:10px;background:#0d17104d;white-space:nowrap}
.shop-close>span{margin-left:10px;color:#c7b47c;font-size:13px}
.shop-wallet-banner{display:flex;align-items:center;gap:15px;position:relative;min-height:100px;overflow:hidden;margin-bottom:18px;padding:21px 24px;border:1px solid #d0b66e60;border-radius:12px;background:radial-gradient(ellipse at 17% 30%,#c2a34622,transparent 65%),linear-gradient(105deg,#3b4326c9,#273822c9 55%,#1d2f208c);box-shadow:inset 0 1px #e8cf8d12}
.shop-wallet-banner:after{content:"";position:absolute;inset:0;background-image:radial-gradient(#e8d28e55 .6px,transparent .6px);background-size:17px 17px;mask-image:linear-gradient(90deg,transparent,#000);opacity:.25;pointer-events:none}
.shop-wallet-icon{flex:none;width:46px;height:46px;border:1px solid #e0c680aa;border-radius:50%;display:grid;place-items:center;font-size:29px;color:#ffe39b;background:radial-gradient(circle at 30% 22%,#a18e3966,#b193381c 60%);box-shadow:0 0 30px #dac0681c,inset 0 0 0 4px #ddc4850e}
.shop-wallet-banner>div:nth-child(2){display:grid;gap:6px;min-width:80px}
.shop-wallet-banner>div:nth-child(2)>span{font-size:10px;color:#c2b57f;letter-spacing:1px}
.shop-wallet-banner strong{color:#fae3a3;font:700 30px/1 var(--ui);font-variant-numeric:tabular-nums}
.shop-wallet-banner>p{position:relative;z-index:1;margin:0 65px 0 auto;text-align:right;font-size:11px;line-height:1.9;color:#a5b294}
.shop-wallet-banner>p>b{color:#d4d3ac;font-weight:400}
.shop-banner-star{position:absolute;right:23px;top:8px;color:#e5d1954d;font-size:68px;line-height:1;transform:rotate(12deg)}
.shop-notice{padding:11px 14px;margin:0 0 18px;border-radius:8px;border:1px solid #a3c18555;background:#73945b1c;color:#d3e9b5;font-size:11px;line-height:1.8}
.shop-notice:empty{display:none}
.shop-notice.error{background:#b67b4920;border-color:#d9a07155;color:#f0c6a0}
.shop-notice.success{background:#73945b1c;border-color:#a3c18555;color:#d3e9b5}
.shop-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.shop-section-heading h3{margin:0;color:#e2e4ce;font-weight:500;font-size:13px;letter-spacing:.3px}
.shop-section-heading>span{font-size:9px;color:#9ea78c}
.shop-loadout-hint{margin:0 0 11px;color:#8f9f85;font-size:10px;line-height:1.8}
.shop-loadout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:26px}
.shop-slot{display:flex;align-items:center;gap:12px;position:relative;min-width:0;min-height:71px;padding:12px 15px;border:1px solid #a9c68d57;border-radius:10px;background:linear-gradient(110deg,#7893561a,#78935607);color:#c0ccac;font-size:11px}
.shop-slot.empty{border-style:dashed;border-color:#8a9e7340;background:#07120b30;color:#7f9475}
.shop-slot-art{flex:none;position:relative;display:grid;place-items:center;width:42px;height:42px;font-size:28px;border-radius:50%;background:radial-gradient(circle,#a5bb7540,transparent 70%)}
.shop-slot-copy{display:grid;gap:4px;min-width:0;flex:1}
.shop-slot-copy strong{font-size:12px;color:#d9e4c4;font-weight:500}
.shop-slot-copy small{font-size:9px;color:#92a385;line-height:1.6}
.shop-slot.empty strong{color:#91a485}
.shop-remove{flex:none;margin-left:auto;padding:6px 8px;border:1px solid #b7c19626;border-radius:5px;background:#14211499;color:#aab19c;font-size:9px;cursor:pointer}
.shop-remove:hover{border-color:#c8bd81;color:#e2d7ad}
.shop-catalog>.shop-section-heading{margin-bottom:14px}
.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.shop-card{--accent:#bdb279;position:relative;min-width:0;display:flex;flex-direction:column;overflow:hidden;padding:15px;border:1px solid color-mix(in srgb,var(--accent) 45%,#73856722);border-radius:12px;background:radial-gradient(ellipse at 50% 18%,color-mix(in srgb,var(--accent) 19%,transparent),transparent 55%),linear-gradient(150deg,#223225,#132016 85%);box-shadow:0 5px 18px #0003;transition:border-color .2s,box-shadow .2s}
.shop-card:before{content:"";position:absolute;inset:4px;border:1px solid #dfd5a710;border-radius:8px;pointer-events:none}
.shop-card:hover{border-color:color-mix(in srgb,var(--accent) 85%,#dace9c);box-shadow:0 8px 22px #0004,0 0 22px color-mix(in srgb,var(--accent) 7%,transparent)}
.shop-card.owned{border-color:#a3bc826b}
.shop-card.equipped{border-color:#d4ca83;box-shadow:0 0 0 1px #d4ca8325,0 0 20px #d4ca8310}
.shop-card-head{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px}
.shop-rarity{color:color-mix(in srgb,var(--accent) 70%,#fff);font-size:8px;letter-spacing:1px;text-transform:uppercase}
.shop-price{display:inline-flex;align-items:center;gap:4px;font:600 12px/1.6 var(--ui);font-variant-numeric:tabular-nums;color:#ead393;white-space:nowrap}
.shop-art{position:relative;align-self:center;display:grid;place-items:center;flex:none;width:130px;height:125px;margin:5px auto 4px;font-size:68px;line-height:1;background:radial-gradient(ellipse at 50% 65%,color-mix(in srgb,var(--accent) 20%,transparent),transparent 66%)}
.shop-art.artwork-frame>img{inset:-4%;width:108%;height:108%;filter:drop-shadow(0 8px 7px #0008)}
.shop-card h3{position:relative;z-index:3;margin:4px 0 4px;text-align:center;color:#f0e9ce;font-size:17px;line-height:1.6;font-weight:600}
.shop-kind{text-align:center;color:color-mix(in srgb,var(--accent) 65%,#abb89f);font-size:9px;line-height:1.6;margin:0 0 13px}
.shop-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:12px}
.shop-stats>span{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 7px;border:1px solid #b8ba9025;border-radius:5px;background:#09130d40;color:#b9c7a8;font-size:9px;line-height:1.5}
.shop-stats strong,.shop-stats b{font-size:12px;color:#e7d8a5;font-weight:600}
.shop-move{margin:0;padding:10px 0 0;border-top:1px solid #c8c4901a;color:#c4cfb2;font-size:10px;line-height:1.9}
.shop-move strong,.shop-move b{color:#e0dbad;font-weight:500}
.shop-combo{flex:1;margin:5px 0 14px;color:#929f84;font-size:9px;line-height:1.9;min-height:34px}
.shop-combo strong,.shop-combo b{font-weight:500;color:#c9bd88}
.shop-card-actions{position:relative;z-index:3;display:flex;gap:7px;margin-top:auto}
.shop-card-actions>button{flex:1;min-width:0;min-height:36px;padding:7px 8px;border:1px solid #d7bd7987;border-radius:6px;background:linear-gradient(120deg,#b59b4530,#d0b76914);color:#eee0af;font-family:var(--cn);font-size:10px;cursor:pointer;transition:background .18s,border-color .18s}
.shop-card-actions>button:hover{border-color:#f0d994;background:#bca55235}
.shop-card-actions>.shop-equip{border-color:#a2bb8270;background:#94b97018;color:#cce2b5}
.shop-card-actions>.shop-equip:hover{border-color:#bcd39b;background:#94b97028}
.shop-card-actions>button:disabled{opacity:.48;cursor:not-allowed;background:#5e715617;border-color:#8a977a3d;color:#b3b99f}
.shop-card.equipped .shop-equip{border-color:#cbbd766c;color:#e3d697;background:#bba95718}
.shop-rules{display:flex;gap:11px;margin-top:23px;padding:18px;border:1px solid #b4b08226;border-radius:9px;background:#09130c35}
.shop-rules-icon{flex:none;width:23px;padding-top:2px;color:#cebc7d;font-size:19px;text-align:center}
.shop-rules strong{font-weight:500;color:#bdc5a7;font-size:10px;line-height:1.7}
.shop-rules p{margin:5px 0 7px;font-size:10px;line-height:1.9;color:#94a187}
.shop-rules small{font-size:9px;color:#72846c;line-height:1.8;display:block}
.shop-dialog button:focus-visible,.wallet-button:focus-visible,.shop-link-button:focus-visible{outline:2px solid #f2d98e;outline-offset:3px}
@media(max-width:1100px){.top-actions{gap:12px}}
@media(max-width:700px){
 .shop-overlay{padding:13px}.shop-dialog{padding:22px 18px;max-height:calc(100dvh - 26px);border-radius:14px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-header{gap:15px;margin-bottom:17px}.shop-heading h2{font-size:22px;margin-top:8px}.shop-eyebrow{font-size:7px;letter-spacing:1.2px}.shop-heading p{font-size:10px}.shop-close{padding:0 10px;font-size:9px}.shop-close>span{margin-left:5px}.shop-wallet-banner{padding:18px;min-height:88px}.shop-wallet-banner>p{font-size:9px;margin-right:44px}.shop-banner-star{right:13px;top:15px;font-size:55px}.shop-wallet-banner strong{font-size:26px}.shop-card{padding:14px}.shop-slot{padding:11px 12px;gap:8px}.shop-slot-art{width:34px;height:34px;font-size:24px}.shop-slot-copy strong{font-size:11px}.shop-slot-copy small{font-size:8px}.shop-remove{padding:5px;font-size:8px}.shop-rules{padding:14px;gap:8px}.stage-reward{font-size:10px;padding:11px 13px}.stage-reward small{font-size:9px}
}
@media(max-width:560px){.top-actions{gap:7px}.wallet-button{min-width:55px;height:27px;padding:0 7px;gap:4px}.wallet-button strong{font-size:11px}.wallet-label{display:none}.coin-symbol{width:15px;height:15px;font-size:11px}.top-actions .profile-button{display:none}.difficulty-actions{flex-wrap:wrap}.difficulty-actions #difficultyShopBtn{flex:1}.difficulty-actions #closeDifficultyBtn{flex:1}.difficulty-actions #startGameBtn{flex-basis:100%}}
@media(max-width:480px){
 .shop-dialog{padding:20px 16px}.shop-header{flex-wrap:wrap;gap:12px}.shop-heading h2{font-size:22px}.shop-close{margin:0;width:100%;height:35px;text-align:center}.shop-heading p{font-size:10px}.shop-grid{grid-template-columns:minmax(0,1fr);gap:14px}.shop-card{padding:18px 20px}.shop-art{width:160px;height:135px;margin-top:8px}.shop-rarity{font-size:9px}.shop-price{font-size:13px}.shop-card h3{font-size:20px}.shop-kind{font-size:10px;margin-bottom:13px}.shop-stats>span{padding:5px 9px;font-size:10px}.shop-move{font-size:11px}.shop-combo{font-size:10px;min-height:0;margin-bottom:15px}.shop-card-actions>button{min-height:40px;font-size:11px}.shop-wallet-banner{padding:17px 14px;gap:11px;min-height:85px}.shop-wallet-icon{width:37px;height:37px;font-size:25px}.shop-wallet-banner>div:nth-child(2){min-width:52px}.shop-wallet-banner>div:nth-child(2)>span{font-size:9px}.shop-wallet-banner strong{font-size:26px}.shop-wallet-banner>p{margin-right:0;font-size:8px}.shop-banner-star{display:none}.shop-loadout{grid-template-columns:1fr;gap:8px;margin-bottom:22px}.shop-slot{min-height:65px;padding:11px 14px;gap:12px}.shop-slot-art{width:38px;height:38px;font-size:27px}.shop-slot-copy strong{font-size:12px}.shop-slot-copy small{font-size:9px}.shop-remove{padding:6px 9px;font-size:9px}.shop-section-heading h3{font-size:12px}.shop-section-heading>span{font-size:8px}.shop-notice{font-size:10px}.shop-rules p{font-size:9px}.shop-rules small{font-size:8px}.stage-reward{gap:5px 12px}.stage-actions #stageShopBtn{flex-basis:100%;order:3}.result-coins{padding:12px}.result-coins strong,.result-coins b{font-size:23px}.result-card .modal-primary{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.shop-dialog{animation:none}.shop-card,.shop-card-actions>button,.wallet-button{transition:none}}

.shop-move{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.shop-done{display:block;width:100%;margin-top:18px;min-height:40px}.wallet-button:disabled{opacity:.5;cursor:not-allowed}
