.shop-surface { --shop-ink:#171717; --shop-paper:#f4f1e8; color:var(--shop-ink); font-family:'DM Sans',Arial,sans-serif; letter-spacing:0; }
.shop-surface *, .shop-dialog * { box-sizing:border-box; letter-spacing:0; }
.shop-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:22px 0; border-block:1px solid currentColor; }
.shop-wallet { font-size:22px; font-variant-numeric:tabular-nums; }
.shop-surface button, .shop-dialog button { font:700 15px 'DM Sans',Arial,sans-serif; border:1px solid #171717; border-radius:3px; padding:12px 16px; min-height:44px; cursor:pointer; background:#171717; color:#f4f1e8; box-shadow:none; }
.shop-surface button:disabled, .shop-dialog button:disabled { cursor:default; opacity:.55; }
.shop-surface button:focus-visible,.shop-dialog button:focus-visible,.shop-dialog input:focus-visible { outline:3px solid #1764b1; outline-offset:4px; }
.shop-surface .shop-voucher { background:#9d7fe8; color:#171717; }
.shop-status { margin:12px 0; font-size:14px; }
.shop-status:empty { margin:0; }
.shop-stock { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:24px; padding:30px 0; }
.shop-surface .shop-product { display:flex; flex-direction:column; align-items:stretch; min-width:0; padding:0; border:0; border-bottom:1px solid #aaa09c; border-radius:0; background:transparent; color:inherit; text-align:left; }
.shop-surface .shop-product:hover:not(:disabled) .shop-product-price { background:#a81e59; color:#fff; }
.shop-product > img { display:block; position:static; inset:auto; width:100%; height:170px; object-fit:contain; padding:8px 4px 18px; filter:none; background:none; }
.shop-product-info { display:flex; flex-direction:column; align-items:flex-start; gap:9px; width:100%; flex:1; }
.shop-product-name { font-size:16px; line-height:1.3; overflow-wrap:anywhere; }
.shop-rarity { display:inline-block; padding:4px 8px; color:#fff; font-size:11px; font-weight:700; border:1px solid #171717; border-radius:3px; box-shadow:2px 2px 0 #171717; }
.shop-product-type { font-size:12px; text-transform:capitalize; }
.shop-sale { font-size:12px; font-weight:700; color:#a81e59; }
.shop-product-price { display:block; width:100%; margin-top:auto; padding:13px 0; font-size:15px; }
.shop-empty { grid-column:1/-1; padding:20px 0; }
.shop-tabs { display:flex; gap:24px; overflow-x:auto; border-bottom:1px solid #aaa09c; margin-top:24px; }
.shop-surface .shop-tabs button { background:transparent; color:inherit; border:0; border-bottom:3px solid transparent; border-radius:0; padding:14px 4px; }
.shop-surface .shop-tabs [aria-selected=true] { border-color:#a81e59; }
.shop-dialog { width:min(480px,calc(100% - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:28px; border:2px solid #171717; border-radius:5px; background:#f4f1e8; color:#171717; box-shadow:6px 6px 0 #171717; font-family:'DM Sans',Arial,sans-serif; }
.shop-dialog::backdrop { background:#171717a6; }
.shop-dialog h2 { font-size:26px; line-height:1.2; margin:12px 35px 18px 0; overflow-wrap:anywhere; }
.shop-dialog .shop-dialog-close { position:absolute; right:6px; top:6px; background:transparent; color:#171717; border:0; padding:0; width:44px; font-size:28px; }
.shop-dialog-detail > img { position:static; display:block; width:100%; height:190px; object-fit:contain; margin-bottom:20px; }
.shop-dialog p { font-size:15px; line-height:1.5; }
.shop-dialog-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.shop-dialog-actions button:first-child { background:#a81e59; color:white; }
.shop-dialog-feedback { color:#8d254e; }
.shop-quantity { display:flex; align-items:center; gap:20px; margin-top:18px; }
.shop-quantity input { font:inherit; width:90px; min-height:44px; padding:8px; border:1px solid #171717; background:white; color:#171717; }
html body.jd-play #magic-shop-entry-section { display:block; padding:60px 8%; background:#f4f1e8; color:#171717; }
.shop-section-heading { display:flex; align-items:center; justify-content:space-between; gap:30px; margin-bottom:30px; }
.shop-section-heading > img { position:static; width:150px; height:210px; object-fit:contain; align-self:flex-end; }
.jd-play #magic-shop-entry-section h2 { color:#171717; font-size:80px; }
.shop-section-heading a, .shop-page-links a { color:inherit; text-decoration:underline; text-underline-offset:5px; font-size:15px; }
html body.jd-shop { background:#f4f1e8; color:#171717; }
html body.jd-shop #magic-shop-page { display:block; width:100% !important; max-width:none !important; margin:0; padding:0; border:0; border-radius:0; background:#f4f1e8; box-shadow:none; }
.shop-page-heading { background:#f85ca9; padding:28px 8%; display:flex; justify-content:space-between; gap:24px; align-items:center; }
.shop-page-heading h1 { font:400 80px/1 'Anton',Impact,sans-serif; margin:18px 0 0; }
.shop-page-heading > img { width:150px; height:190px; object-fit:contain; }
.shop-page-links { display:flex; flex-wrap:wrap; gap:24px; }
#full-shop { padding:28px 8% 60px; }
#full-shop .shop-stock { grid-template-columns:repeat(auto-fill,minmax(185px,1fr)); }
@media(max-width:760px) {
    html body.jd-play #magic-shop-entry-section { padding:38px 7%; }
    .jd-play #magic-shop-entry-section h2 { font-size:54px; }
    .shop-section-heading { gap:12px; align-items:flex-start; }
    .shop-section-heading > img { width:86px; height:135px; }
    .shop-stock, #full-shop .shop-stock { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
    .shop-product > img { height:135px; }
    .shop-product-name { font-size:14px; }
    .shop-toolbar { align-items:flex-start; flex-direction:column; }
    .shop-page-heading { padding:30px 7%; gap:8px; }
    .shop-page-heading h1 { font-size:55px; }
    .shop-page-heading > img { width:85px; height:160px; }
    #full-shop { padding:24px 7% 40px; }
    .shop-tabs { gap:6px; }
    .shop-surface .shop-tabs button { flex:1; padding-inline:2px; font-size:14px; }
}
