:root{--shop-paper:oklch(.19 .028 163);--shop-card:oklch(.25 .033 159);--shop-good:oklch(.87 .091 153);--shop-danger:oklch(.84 .092 32);--shop-edge:color-mix(in oklab,var(--gold) 24%,transparent);--shop-backdrop:oklch(.11 .019 159 / .82);--google-bg:#131314;--google-border:#8e918f;--google-ink:#e3e3e3}
html[data-shop-table]::before{content:'';position:fixed;inset:0;background:var(--shop-table-image) center/cover no-repeat;pointer-events:none;z-index:0}
html[data-shop-table] body{position:relative}
@media(orientation:portrait){html[data-shop-table]::before{inset:auto;top:50%;left:50%;width:100dvh;height:100vw;transform:translate(-50%,-50%) rotate(90deg)}}
.welcome .shop-launch{position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:auto;background:var(--panel);color:var(--ink);padding:5px 10px;min-height:40px;gap:6px}
.shop-launch img,.shop-title img{width:23px;height:23px;object-fit:contain;flex:none}.shop-menu-btn{display:flex;align-items:center;justify-content:center;gap:8px}.shop-menu-btn img{width:21px;height:21px}
#table-shop{width:min(1050px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;overscroll-behavior:contain;border:1px solid var(--shop-edge);border-radius:8px;color:var(--ink);background:var(--shop-paper);box-shadow:0 18px 64px var(--shade)}
#table-shop::backdrop{background:var(--shop-backdrop);backdrop-filter:blur(7px)}
.shop-head{position:sticky;top:0;z-index:2;margin:0;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--shop-paper);border-bottom:1px solid var(--shop-edge)}
.shop-title,.shop-tools{display:flex;align-items:center;gap:10px}.shop-title h2{margin:0;color:var(--gold);font:800 27px/1.1 Fraunces,Georgia,serif}.shop-title img{width:31px;height:31px}.shop-close{font-size:24px;line-height:1}.shop-content{padding:14px 20px 22px}.shop-wallet{color:var(--gold);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.shop-account-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:39px;color:var(--mut);font-size:13px}.shop-account-bar p{margin:0}.shop-link{margin:0;width:auto;min-height:36px;flex:none;padding:6px 10px;border-radius:6px}.shop-status:empty{display:none}.shop-status{margin:8px 0;color:var(--gold);font-size:13px}.shop-status[data-error]{color:var(--shop-danger)}
.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px}.shop-item{display:flex;flex-direction:column;min-width:0;border:1px solid var(--shop-edge);border-radius:8px;overflow:hidden;background:var(--shop-card)}.shop-photo{display:block;position:relative;width:100%;margin:0;padding:0;border:0;background:var(--panel);color:var(--ink);text-align:left;aspect-ratio:16/9}.shop-photo img,.shop-large img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}.shop-photo:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}.shop-photo > span{position:absolute;bottom:6px;right:6px;border-radius:4px;padding:3px 6px;background:var(--shop-backdrop);font-size:11px}.shop-details{padding:9px;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:4px}.shop-details h3{font:800 17px/1.15 Fraunces,Georgia,serif;margin:0;overflow-wrap:anywhere}.shop-details p{margin:0}.shop-price{color:var(--gold);font-size:13px;white-space:nowrap}.shop-state{color:var(--shop-good);font-size:11px;font-weight:700;min-height:15px}.shop-action{margin-top:auto;padding:7px 4px;font-size:12px;min-height:36px;border-radius:6px;box-shadow:none}.shop-action:disabled{opacity:.65;cursor:default;transform:none;box-shadow:none}.shop-action:focus-visible,.shop-link:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.shop-large,.shop-auth{max-width:700px;margin:0 auto}.shop-large img{border-radius:8px;border:1px solid var(--shop-edge);margin:12px 0}.shop-large h3{font:800 24px Fraunces,Georgia,serif;margin:0}.shop-large .shop-action{max-width:210px;margin-top:8px}.shop-buy-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.shop-auth{max-width:360px}.shop-auth h3{font:800 22px Fraunces,Georgia,serif;margin:10px 0}.shop-auth label{display:block;margin:10px 0 0}.shop-auth input{margin-top:3px}.shop-auth .btn,.shop-auth .tool{min-height:42px;border-radius:6px;box-shadow:none}.shop-auth .tool{width:100%;margin-top:10px;font-size:14px;gap:10px}.shop-auth .tool svg{width:18px;height:18px;stroke:none}.shop-auth .shop-google{background:var(--google-bg);border-color:var(--google-border);color:var(--google-ink);font-weight:500}.shop-auth .shop-apple{padding:0;border:0;background:transparent;box-shadow:none}.shop-auth .shop-apple img{display:block;width:100%;height:auto;min-height:42px;border-radius:6px}.shop-auth .shop-apple:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media(max-width:730px){.shop-title h2{font-size:23px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-head{padding:10px 12px}.shop-content{padding:10px 12px 18px}}
@media(orientation:landscape) and (max-height:600px){.shop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.shop-head{padding:7px 12px}.shop-large img{max-height:48dvh;object-fit:contain}}
@media(max-width:360px){.shop-title h2{font-size:20px}.shop-title,.shop-tools{gap:5px}.shop-title img{width:24px;height:24px}.shop-wallet{font-size:13px}.shop-grid{gap:7px}}
.shop-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:365px;margin-bottom:6px}
.shop-coin-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-top:18px}
.shop-coin-head h3{margin:0;font:800 23px/1.15 Fraunces,Georgia,serif;color:var(--ink)}.shop-coin-head p{margin:0;color:var(--mut);font-size:12px}
.shop-coins{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-coin-pack{padding:14px;gap:8px}.shop-coin-pack[data-featured]{border-color:var(--gold);background:color-mix(in oklab,var(--shop-card) 88%,var(--gold));box-shadow:inset 0 0 0 1px var(--gold)}
.shop-coin-mark{min-height:29px;display:flex;align-items:center;justify-content:space-between;gap:4px}.shop-coin-mark span{color:var(--felt2);background:var(--gold);padding:4px 6px;border-radius:4px;font-size:10px;line-height:1.1;font-weight:800;text-align:center}.shop-coin-icon{width:32px;height:26px;flex:none;stroke:var(--gold);stroke-width:1.6;fill:var(--shop-paper)}
.shop-coin-pack h4{margin:0;font:800 25px/1.1 Fraunces,Georgia,serif;color:var(--ink);font-variant-numeric:tabular-nums}.shop-coin-pack h4 small{font:600 13px/1.1 'Instrument Sans',sans-serif;color:var(--mut);white-space:nowrap}.shop-coin-price{margin:0;color:var(--gold);font-weight:700;font-variant-numeric:tabular-nums}
@media (max-width:600px){.shop-coins{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-coin-pack{padding:10px}.shop-coin-pack h4{font-size:21px}}
.shop-categories .tool[aria-pressed=true]{background:var(--gold);border-color:var(--gold);color:var(--felt2);font-weight:700}
.deck-art{--deck-back:url(/img/back.jpg);--deck-face:var(--card);--deck-ink:var(--blk);--deck-red:var(--red);--deck-edge:var(--welcome-card-border);--deck-stage:var(--felt2);background:radial-gradient(ellipse at 50% 80%,var(--deck-stage),var(--shop-paper));display:grid;place-items:center;overflow:hidden;aspect-ratio:16/10;container-type:inline-size}
[data-shop-deck=gilded-ace],.deck-art[data-deck=gilded-ace]{--deck-back:url(/img/decks/gilded-ace.svg);--deck-face:linear-gradient(150deg,#2a2323,#111113);--deck-ink:#ffe1a4;--deck-red:#ff9690;--deck-edge:#b48548;--deck-stage:#564023}
[data-shop-deck=crimson-bloom],.deck-art[data-deck=crimson-bloom]{--deck-back:url(/img/decks/crimson-bloom.svg);--deck-face:linear-gradient(150deg,#fff4e5,#f8d8d7);--deck-ink:#4a1933;--deck-red:#99183f;--deck-edge:#be6782;--deck-stage:#662445}
[data-shop-deck=neon-circuit],.deck-art[data-deck=neon-circuit]{--deck-back:url(/img/decks/neon-circuit.svg);--deck-face:linear-gradient(150deg,#25294d,#131628);--deck-ink:#81ffe1;--deck-red:#ff9dea;--deck-edge:#46b3ab;--deck-stage:#2d3268}
[data-shop-deck=glacier-foil],.deck-art[data-deck=glacier-foil]{--deck-back:url(/img/decks/glacier-foil.svg);--deck-face:linear-gradient(150deg,#f4fcff,#c0e6f4);--deck-ink:#173b64;--deck-red:#971e53;--deck-edge:#719cc5;--deck-stage:#365a81}
[data-shop-deck=jade-dragon],.deck-art[data-deck=jade-dragon]{--deck-back:url(/img/decks/jade-dragon.svg);--deck-face:linear-gradient(150deg,#e6f9e5,#a6dac1);--deck-ink:#123b33;--deck-red:#8a2832;--deck-edge:#418c75;--deck-stage:#25483d}
[data-shop-deck=moonlit-observatory],.deck-art[data-deck=moonlit-observatory]{--deck-back:url(/img/decks/moonlit-observatory.svg);--deck-face:linear-gradient(150deg,#312446,#19162d);--deck-ink:#fff1ca;--deck-red:#ffb2d1;--deck-edge:#aa89c5;--deck-stage:#4d365d}
[data-shop-deck=pop-art],.deck-art[data-deck=pop-art]{--deck-back:url(/img/decks/pop-art.svg);--deck-face:linear-gradient(150deg,#fff8d0,#ffdc56);--deck-ink:#212137;--deck-red:#a31252;--deck-edge:#282337;--deck-stage:#5d285e}
[data-shop-deck=desert-mosaic],.deck-art[data-deck=desert-mosaic]{--deck-back:url(/img/decks/desert-mosaic.svg);--deck-face:linear-gradient(150deg,#fff5de,#efbb92);--deck-ink:#3f2524;--deck-red:#861f31;--deck-edge:#b15b4b;--deck-stage:#6a3427}
[data-shop-deck=deep-sea],.deck-art[data-deck=deep-sea]{--deck-back:url(/img/decks/deep-sea.svg);--deck-face:linear-gradient(150deg,#153f4a,#092431);--deck-ink:#b5f5e9;--deck-red:#ffaaa0;--deck-edge:#499a9f;--deck-stage:#234457}
[data-shop-deck=diamond-royale],.deck-art[data-deck=diamond-royale]{--deck-back:url(/img/decks/diamond-royale.svg);--deck-face:linear-gradient(150deg,#ffffff,#dbe7f2);--deck-ink:#1d2a3c;--deck-red:#a3123a;--deck-edge:#9fb6cc;--deck-stage:#5b6f86}
[data-shop-deck=gold-bullion],.deck-art[data-deck=gold-bullion]{--deck-back:url(/img/decks/gold-bullion.svg);--deck-face:linear-gradient(150deg,#fff6d8,#f0cf7c);--deck-ink:#3b2606;--deck-red:#8f1424;--deck-edge:#b8871f;--deck-stage:#6a4a12}
[data-shop-deck=platinum-crest],.deck-art[data-deck=platinum-crest]{--deck-back:url(/img/decks/platinum-crest.svg);--deck-face:linear-gradient(150deg,#f7f8fa,#cfd4db);--deck-ink:#22262d;--deck-red:#9b1b30;--deck-edge:#8d96a3;--deck-stage:#3d434c}
[data-shop-deck=ruby-empire],.deck-art[data-deck=ruby-empire]{--deck-back:url(/img/decks/ruby-empire.svg);--deck-face:linear-gradient(150deg,#2c0710,#14030a);--deck-ink:#ffd98a;--deck-red:#ff6b82;--deck-edge:#c9973f;--deck-stage:#5a0d1c}
[data-shop-deck=black-diamond],.deck-art[data-deck=black-diamond]{--deck-back:url(/img/decks/black-diamond.svg);--deck-face:linear-gradient(150deg,#17171b,#050506);--deck-ink:#f3e3b5;--deck-red:#ff8f8f;--deck-edge:#d9b46a;--deck-stage:#2a2a30}
.deck-spread{display:flex;align-items:center;justify-content:center;isolation:isolate;padding-bottom:7%;width:100%}
.deck-sample{position:relative;display:block;flex:none;width:min(31%,122px);aspect-ratio:5/7;border:1px solid var(--deck-edge);border-radius:6px;box-shadow:0 5px 12px var(--shade);overflow:hidden}
.deck-face{background:var(--deck-face);color:var(--deck-ink);transform:rotate(-15deg) translateY(9%);margin-right:-8%;font:800 min(9cqi,31px)/.85 Fraunces,Georgia,serif}
.deck-face.red{color:var(--deck-red);transform:rotate(-3deg);margin-right:-6%}
.deck-face b{position:absolute;top:6%;left:8%;font:inherit;display:grid;gap:2px}.deck-face b:last-child{top:auto;left:auto;bottom:6%;right:8%;transform:rotate(180deg)}.deck-face small{font-size:.7em}.deck-face i{position:absolute;inset:0;display:grid;place-items:center;font:normal 2.1em/1 Georgia,serif}
.deck-back{background:var(--deck-back) center/cover;transform:rotate(12deg) translateY(7%)}
.shop-photo:has(.deck-art){aspect-ratio:16/10}.shop-large .deck-art{margin:12px 0;border:1px solid var(--shop-edge);border-radius:8px;max-height:50dvh}

html:is([data-shop-deck=gilded-ace],[data-shop-deck=neon-circuit],[data-shop-deck=moonlit-observatory],[data-shop-deck=deep-sea],[data-shop-deck=ruby-empire],[data-shop-deck=black-diamond]) .c u{color:var(--deck-red);background:color-mix(in oklab,var(--deck-red) 16%,transparent)}
@media (orientation:landscape) and (max-height:600px){
  .shop-large:has(.deck-art){display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,1fr);grid-template-rows:auto repeat(3,min-content);gap:6px 18px;align-content:start}
  .shop-large:has(.deck-art) .shop-link{grid-column:1/-1;justify-self:start}
  .shop-large .deck-art{grid-row:2/5;margin:0;width:100%;height:clamp(104px,37dvh,180px);aspect-ratio:auto}
  .shop-large .deck-art .deck-sample{max-width:72px}.shop-large .deck-art .deck-spread{padding-bottom:0}.shop-large .deck-art .deck-face{font-size:20px}
}
