
.shop-modal .shop-panel{width:min(1440px,96vw);height:94dvh;max-height:94dvh;border-radius:24px}
.shop-modal .shop-content{padding:24px 30px}.shop-modal .shop-product-grid{grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}
.shop-modal .shop-product h3{font-size:20px;line-height:1.2}.shop-modal .shop-product p{font-size:13px;line-height:1.5}.shop-modal .shop-product__type{font-size:10px}.shop-modal .shop-product__body{padding:17px;align-items:start;flex-wrap:wrap}.shop-modal .shop-buy{margin-left:auto;font-size:13px}

.shop-membership-perks{font-size:14px;line-height:1.5}.shop-product,.theme-pack,.sticker-pack,.tile-skins-choice{position:relative}
.subscription-access-crown{position:absolute;z-index:6;top:8px;left:8px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff3c9;box-shadow:0 2px 7px #65491033;color:#a8700c;cursor:help}.subscription-access-crown svg{width:24px;height:24px;fill:#f9cc54;stroke:#9d6c13;stroke-width:2;stroke-linejoin:round}.subscription-access-tooltip{position:fixed;z-index:2147483647;pointer-events:none;width:max-content;max-width:calc(100vw - 16px);box-sizing:border-box;padding:8px 11px;background:#273347;color:white;border-radius:8px;font:12px/1.4 Inter,sans-serif;box-shadow:0 4px 14px #0003}
@media(max-width:600px){.shop-modal .shop-content{padding:14px}.shop-modal .shop-panel{width:98vw;height:97dvh;max-height:97dvh}.shop-modal .shop-product-grid{grid-template-columns:1fr}}

.shop-featured-section{margin:28px 0 34px}.shop-featured-section>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.shop-featured-section h2{margin:0;font-size:24px;letter-spacing:-.035em}.shop-featured-section header p{margin:4px 0 0;color:var(--muted);font-size:13px}.shop-featured-section header button{flex:none;padding:9px 13px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);color:var(--text);cursor:pointer;font-weight:650}.shop-modal .shop-featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-featured-grid .shop-product__preview{height:175px}
@media(max-width:650px){.shop-modal .shop-featured-grid{grid-template-columns:1fr}.shop-featured-section h2{font-size:20px}}

.membership-monthly-coins{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;white-space:nowrap}.membership-monthly-coins img{width:23px;height:23px;object-fit:contain}.membership-monthly-coins strong{color:#bd850c;font-weight:850;text-shadow:0 1px 0 #fff2b366}

.shop-modal .shop-banner__slide{transform:none}.shop-modal .shop-banner__slide img{object-fit:contain;object-position:center}

.shop-product[tabindex]{cursor:pointer}.shop-product[tabindex]:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
.shop-product-popup{position:absolute;inset:0;z-index:15;display:grid;place-items:center;padding:24px;background:#17203377;backdrop-filter:blur(5px)}.shop-product-popup__panel{position:relative;width:min(620px,100%);max-height:100%;overflow:auto;border-radius:22px;background:var(--surface-solid);box-shadow:0 20px 70px #0004}.shop-product-popup__close{position:absolute;z-index:9;top:12px;right:12px;width:34px;height:34px;border:1px solid var(--border);border-radius:10px;background:var(--surface-solid);color:var(--text);font-size:24px;cursor:pointer}.shop-product-popup .shop-product{border:0;border-radius:0;transform:none!important;box-shadow:none!important;cursor:default}.shop-product-popup .shop-product__preview{height:260px}.shop-product-popup .shop-product__body{padding:24px;gap:20px}.shop-product-popup .shop-product__body>div{flex:1;min-width:200px}.shop-product-popup .shop-product h3{font-size:28px}.shop-product-popup .shop-product p{font-size:15px}.shop-product-popup .shop-buy{height:44px;font-size:16px}@media(max-width:600px){.shop-product-popup{padding:12px}.shop-product-popup .shop-product__preview{height:190px}}

/* Leave a glimpse of the shop below while keeping the complete artwork visible. */
.shop-modal .shop-banner{width:min(100%,clamp(314px,51.4286dvh,686px));height:auto;aspect-ratio:1200 / 420;margin:0 auto 18px;background:#eee7fa}
.shop-modal .shop-membership-grid{margin:0 0 18px;gap:14px}
.shop-modal .shop-membership-card,.shop-modal .shop-redeem-card{padding:16px}
.shop-modal .shop-membership-perks{font-size:12px;line-height:1.35;gap:7px;margin:12px 0}
.shop-modal .shop-membership-card__foot{margin-top:10px}
@media(min-width:761px){.shop-modal .shop-membership-grid{grid-template-columns:minmax(0,2fr) minmax(240px,1fr)}}

.shop-modal .shop-category-grid{gap:16px}
.shop-modal .shop-category{min-height:235px;aspect-ratio:1.12;padding:20px}
.shop-modal .shop-category__art{left:16px;right:16px;top:12px;width:auto;height:calc(100% - 98px)}
.shop-modal .shop-category__art>i{width:96px;height:96px;border-radius:20px}
.shop-modal .shop-category__art--stickers b{font-size:76px}
.shop-modal .shop-category__art--cursors img{width:88px;height:88px}
.shop-modal .shop-category__art--cursors img:first-child{image-rendering:pixelated;transform:translate(-53px,7px) rotate(-11deg)}
.shop-modal .shop-category__art--cursors img:last-child{transform:translate(53px,7px) rotate(12deg)}
.shop-modal .shop-category__art--tiles{gap:5px}
.shop-modal .shop-category__tile-skin{width:52px;height:78px;flex-basis:52px}
.shop-modal .shop-category__copy{max-width:calc(100% - 24px)}
.shop-modal .shop-category__copy strong{font-size:20px}
.shop-modal .shop-category__copy em{font-size:11px}
@media(max-width:520px){.shop-modal .shop-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-modal .shop-category{min-height:195px;padding:12px}.shop-modal .shop-category__art{left:4px;right:4px;height:105px}.shop-modal .shop-category__art>i{width:62px;height:62px}.shop-modal .shop-category__art--stickers b{font-size:50px}.shop-modal .shop-category__art--cursors img{width:57px;height:57px}.shop-modal .shop-category__art--cursors img:first-child{transform:translate(-30px,7px) rotate(-11deg)}.shop-modal .shop-category__art--cursors img:last-child{transform:translate(30px,7px) rotate(12deg)}.shop-modal .shop-category__tile-skin{width:29px;height:54px;flex-basis:29px}.shop-modal .shop-category__copy strong{font-size:16px}.shop-modal .shop-category__copy em{font-size:10px}.shop-modal .shop-category__arrow{width:22px;height:22px;right:8px;bottom:12px;font-size:14px}}

.shop-modal .shop-category{min-width:0;width:100%}@media(max-width:520px){.shop-modal .shop-category{aspect-ratio:auto}.shop-modal .shop-category__art--tiles{gap:1px}.shop-modal .shop-category__copy{max-width:calc(100% - 14px)}}
/* Keep collection artwork separated and cursor sprites at their native size. */
.shop-modal .shop-category__art--stickers b:nth-child(1){transform:translate(-72px,12px) rotate(-12deg)}
.shop-modal .shop-category__art--stickers b:nth-child(2){transform:translate(0,-15px) rotate(6deg)}
.shop-modal .shop-category__art--stickers b:nth-child(3){transform:translate(72px,12px) rotate(14deg)}
.shop-modal .shop-category__art--cursors{display:grid;grid-template-columns:repeat(4,32px);grid-template-rows:repeat(2,32px);gap:22px 24px;align-content:center;justify-content:center}
.shop-modal .shop-category__art--cursors img:nth-child(n){position:static;width:32px;height:32px;transform:none;filter:none;image-rendering:auto}
.shop-modal .shop-category__art--cursors img.is-pixel-art{image-rendering:pixelated}
.shop-modal .shop-category__tile-skin{width:64px;height:108px;flex-basis:64px}
.shop-modal .shop-category__tile-skin--magnifier>.classic-magnifier-art{transform:translate(-50%,-50%) scale(.48)}
.shop-modal .shop-category__tile-skin--tv>.tile-skin-art{transform:translate(-50%,-50%) scale(.52)}
.shop-modal .shop-category__tile-skin--clipboard>.tile-skin-art{transform:translate(-50%,-50%) scale(.62)}
.shop-modal .shop-category__tile-skin--calendar>.tile-skin-art{transform:translate(-50%,-50%) scale(.57)}
@media(max-width:1100px){.shop-modal .shop-category__art--tiles{gap:2px}.shop-modal .shop-category__tile-skin{width:48px;flex-basis:48px;height:90px}}
@media(max-width:520px){.shop-modal .shop-category__art--stickers b{font-size:43px}.shop-modal .shop-category__art--stickers b:nth-child(1){transform:translate(-44px,10px) rotate(-12deg)}.shop-modal .shop-category__art--stickers b:nth-child(2){transform:translate(0,-10px) rotate(6deg)}.shop-modal .shop-category__art--stickers b:nth-child(3){transform:translate(44px,10px) rotate(14deg)}.shop-modal .shop-category__art--cursors{gap:14px 5px}.shop-modal .shop-category__art--tiles{display:grid;grid-template-columns:repeat(2,58px);gap:3px}.shop-modal .shop-category__tile-skin{width:58px;height:46px}.shop-modal .shop-category__tile-skin:nth-child(n){transform:none}.shop-modal .shop-category__tile-skin>.tile-skin-art,.shop-modal .shop-category__tile-skin>.classic-magnifier-art{transform:translate(-50%,-50%) scale(.3)}}

/* A crown is local to its cosmetic, never a page-level overlay. */
:has(>.subscription-access-crown){isolation:isolate}
.subscription-access-crown{z-index:2}
.theme-pack__chevron{font-size:0!important;width:18px;height:18px;display:grid;place-items:center}
.theme-pack__chevron:before{content:'';display:block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);border-radius:1px}
