.shop-welcome{padding:5px 2px 22px}.shop-kicker{display:flex;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:.09em;font-weight:800;color:#c0cdb9}.shop-kicker b{padding:3px 8px;background:#384c39;border:1px solid #70815b;border-radius:6px;color:#e4d39d;letter-spacing:0}.shop-welcome h3{font-size:clamp(24px,5vw,30px);line-height:1.2;margin:14px 0 10px;color:#f2edce}.shop-welcome p{font-size:14px;color:#bbcebf}.shop-tier{display:inline-block;background:#2c493e;border-radius:12px;padding:5px 10px;margin-top:12px;font-size:12px;color:#d1e5bc}.premium-offer{position:relative;overflow:hidden;border:1px solid #c8adf5;border-radius:23px;padding:23px 20px;background:linear-gradient(145deg,#3a3656,#252b44 70%);box-shadow:inset 0 1px #e7d8ff55}.premium-offer .shop-kicker{color:#d7c1ff}.shop-orbit{position:absolute;right:25px;top:40px;font-size:65px;color:#dbc28c;text-shadow:0 0 24px #d0b1ff44;transform:rotate(10deg);animation:shopFloat 5s ease-in-out infinite}.shop-price{font-size:43px;font-weight:800;color:#fff5d8;margin:12px 0 8px;position:relative}.shop-price small{font-size:13px;color:#d4c7db;font-weight:500}.premium-offer p{font-size:14px;color:#e4d9ef}.premium-offer ul{padding-left:19px;line-height:1.8;font-size:14px;color:#e1d7e8;margin:16px 0 20px}.shop-disclosure{display:block;margin-top:12px;line-height:1.5;font-size:12px;color:#d1c7db}.plan-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 28px}.plan-comparison>div{border:1px solid #617869;border-radius:14px;padding:13px;background:#263e33}.plan-comparison strong,.plan-comparison span,.plan-comparison small{display:block}.plan-comparison span{font-size:13px;color:#d0e6b3;margin:6px 0}.plan-comparison small{font-size:12px;color:#bfcec2;line-height:1.5}.shop-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.shop-section-heading h3{font-size:19px}.shop-section-heading span{font-size:11px;color:#bdd8bf}.cosmetic-grid{display:grid;gap:14px;margin:16px 0 20px}.cosmetic-card{border:1px solid #68827666;border-radius:18px;padding:16px;background:#253b35}.cosmetic-preview{display:flex;align-items:center;gap:16px;min-height:94px;background:radial-gradient(ellipse at 20% 70%,color-mix(in srgb,var(--cosmetic) 15%,transparent),transparent 70%);margin-bottom:12px}.cosmetic-frame{width:78px;height:78px;border:3px double var(--cosmetic);border-radius:18px;padding:4px;position:relative;transform:rotate(-3deg)}.cosmetic-frame:before,.cosmetic-frame:after{content:'✦';position:absolute;color:var(--cosmetic);font-size:17px;top:-12px;right:-8px}.cosmetic-frame:after{top:auto;right:auto;bottom:-11px;left:-8px}.cosmetic-frame svg{width:100%;height:100%;border-radius:11px}.cosmetic-name{color:var(--cosmetic);border:1px solid var(--cosmetic);border-radius:6px;padding:6px 9px;font-size:12px;font-weight:800;background:#152c2b}.cosmetic-card h4{font-size:17px;color:#f2e8c8}.cosmetic-card p{font-size:13px;line-height:1.55;color:#bdcdbf;margin:7px 0 14px}.ad-offer{display:flex;gap:13px;padding:18px;border:1px dashed #95ba9855;border-radius:18px;background:#294438;margin-top:20px}.ad-offer>span{font-size:30px;color:#c5d9a8}.ad-offer h3{font-size:17px}.ad-offer p{font-size:13px;margin:7px 0 12px;color:#c2d1c6}.ad-offer small{display:block;font-size:12px;line-height:1.5;margin-top:10px;color:#aebfb4}.shop-utilities{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.shop-beta-note{font-size:12px;line-height:1.7;color:#b6c5b9}.premium-quest-link{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #a68abb66;border-radius:14px;padding:14px;margin:14px 0;background:#443a5555;color:#dfcdf3;font-size:13px}.premium-quest-link strong{display:block;margin-bottom:4px}.player-profile[data-cosmetic]{border:2px solid var(--profile-cosmetic)!important}.player-profile[data-cosmetic]:before{content:'✦';position:absolute;top:-8px;left:-3px;color:var(--profile-cosmetic);font-size:14px}.player-name-tag.has-cosmetic{border-color:var(--profile-cosmetic);color:var(--profile-cosmetic)}
/* Keep the portrait nameplates legible when the parchment theme recolors card text. */
.realm-panel .cosmetic-card .cosmetic-name{color:var(--cosmetic);background:#152c2b;border-color:var(--cosmetic);font-size:clamp(13px,3.5vw,15px);line-height:1.4;min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left}
.cosmetic-preview .cosmetic-frame{flex:0 0 78px}
@keyframes shopFloat{50%{transform:translateY(-4px) rotate(-4deg)}}
[data-graphics=low] .shop-orbit{animation:none;text-shadow:none}@media(prefers-reduced-motion:reduce){.shop-orbit{animation:none}}

/* The merchant's payment window stays outside the periodically refreshed game drawer. */
.store-checkout{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:22px;border:2px solid #b69a58;background:#fffdf6;color:#204d60;box-shadow:0 12px 40px #102f3b40;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;font-family:Nunito,system-ui,sans-serif}
.store-checkout[open]{animation:checkoutEnter .18s ease-out}
.store-checkout::backdrop{background:#143c4cbb}
.checkout-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d8ceb4;padding-bottom:14px;margin-bottom:14px}
.checkout-heading>div{min-width:0}.checkout-heading h2{font-family:'Baloo 2',Nunito,sans-serif;font-size:clamp(23px,5.8vw,30px);line-height:1.15;color:#204d60;margin:5px 0 0;overflow-wrap:anywhere}
.checkout-kicker{display:block;color:#577184;font-size:10px;font-weight:800;letter-spacing:.09em}
.checkout-heading .close-control{flex:0 0 42px;width:42px;height:42px;min-height:42px;display:grid;place-items:center;background:#fff0e9;color:#b63936;border:1px solid #e4aba0;border-radius:6px}
.checkout-heading .close-control svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}
.checkout-summary{display:flex;align-items:baseline;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}.checkout-summary strong{font-size:19px;color:#204d60}.checkout-summary span{max-width:310px;font-size:12px;line-height:1.45;color:#536776}
.checkout-test{font-size:12px;color:#6c5225;background:#fff0ca;padding:8px 10px;border-left:3px solid #ca9e40;margin:10px 0}
.checkout-message{font-size:13px;line-height:1.5;color:#526779;margin:12px 0}.checkout-message[data-state=error]{color:#a42e2e}.checkout-message[data-state=success]{color:#26744d;font-weight:800}
.checkout-form{min-height:120px;background:#fff;border-radius:4px}.checkout-form[hidden]{display:none}.store-checkout [hidden]{display:none!important}
.checkout-footnote{font-size:11px;line-height:1.5;color:#5c6e79;margin:16px 0 0}.checkout-footnote a{color:#225f83;text-decoration:underline}
body.checkout-open{overflow:hidden}.store-checkout .btn{margin-top:10px}
@keyframes checkoutEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:420px){.store-checkout{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px;scrollbar-gutter:auto}.checkout-summary{gap:5px}.checkout-summary span{max-width:100%}.checkout-kicker{font-size:9px}}
@media(prefers-reduced-motion:reduce){.store-checkout[open]{animation:none}}
.coin-chest-offer{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px 14px;align-items:center;margin:0 0 20px;padding:14px;background:#eee3c9;border:1px solid #cdb88c;border-left:4px solid #a3854a;box-shadow:inset 0 1px #fff8e6}
.coin-chest-art{width:112px;height:108px;overflow:hidden;display:flex;align-items:center;justify-content:center}.coin-chest-art svg{width:128px;max-width:none;height:122px;animation:none!important}.coin-chest-art *{animation:none!important}
body .coin-chest-copy>small{display:block;color:#5b6547;font-size:9px;letter-spacing:.1em;font-weight:900}body .coin-chest-copy h3{color:#203c43;font-family:Georgia,serif;font-size:clamp(19px,4.7vw,24px);line-height:1.1;margin:5px 0 7px}body .coin-chest-copy p{color:#40534f;font-size:13px;line-height:1.35;margin:0 0 7px}.coin-chest-balance{color:#70541b;font-size:12px;font-weight:900}
.coin-chest-buy{grid-column:1/-1;width:100%}.coin-chest-offer>.text-button,.coin-chest-shortfall{grid-column:1/-1;justify-self:center}.coin-chest-offer>.text-button{min-height:32px;color:#315969;font-size:13px}.coin-chest-shortfall{font-size:12px;color:#5f6052;text-align:center}
@media(max-width:370px){.coin-chest-offer{grid-template-columns:82px minmax(0,1fr);padding:10px;gap:8px}.coin-chest-art{width:82px;height:100px}.coin-chest-art svg{width:106px}.coin-chest-copy h3{font-size:19px}}
