/* Graffiti Trade Shop (owner artwork, 2026-11-24). Everything over the artwork is placed in % of the 1672 × 941 image,
   so it stays on the slots at every size. */
@font-face{font-family:CCMarker;src:url('assets/fonts/PermanentMarker-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
#tradeShopScene{margin:28px auto;max-width:1280px;color:#fff}
#tradeShopScene[hidden]{display:none}
.trade-shop-heading{margin:0 0 8px}
.trade-shop-intro{margin:0 0 12px;font-size:15px;line-height:1.5;color:#e4dfea}
.trade-shop-intro[hidden]{display:none}
.trade-shop-swipe{display:none;margin:0 0 8px;font-size:13px;color:#c8c0cf}
.trade-shop-frame{position:relative;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:2px solid #ff2ca8;border-radius:10px;background:#09090b}
.trade-shop-scene{position:relative;width:100%;aspect-ratio:1672/941;container-type:inline-size}
.trade-shop-art{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;-webkit-user-drag:none;pointer-events:none}
.shop-slot,.shop-mat-drop,.shop-arrow,.shop-name-bar{position:absolute;box-sizing:border-box}
.shop-slot{}
.case-slot{padding:0;background:transparent;border:0;cursor:default}
.case-slot.drop-ready{cursor:pointer;outline:2px dashed #ffd21c;outline-offset:2px}
.shop-slot.drop-over,.shop-mat-drop.drop-over{outline:3px solid #16dcff;outline-offset:2px}
.shop-mat-drop{border-radius:12px}
/* Cards lie in their slots in the artwork's perspective and fill them (JS sets each card's transform from the slot
   corners). The whole card is always shown; the centred preview shows it flat. */
.shop-card,.case-drop-button{position:absolute;left:0;top:0;width:100px;height:100px;transform-origin:0 0}
.shop-card{padding:0;margin:0;border:0;background:transparent;cursor:grab;display:block;border-radius:36px;touch-action:manipulation;width:600px;height:600px}
.shop-card img{width:100%;height:100%;object-fit:fill;display:block;border-radius:36px}
.shop-card:hover img{box-shadow:0 0 0 24px #16dcff}
.shop-card[aria-pressed="true"] img{box-shadow:0 0 0 30px #ffd21c}
.shop-card:focus-visible{outline:18px solid #16dcff;outline-offset:12px}
.shop-card.dragging{opacity:.4}
.shop-arrow{padding:0;border:0;border-radius:18%;background:transparent;cursor:pointer}
.shop-arrow:hover:not(:disabled),.shop-arrow:focus-visible{box-shadow:0 0 0 3px #ffd21c inset}
.shop-arrow:disabled{cursor:default;background:rgba(9,9,11,.55)}
.shop-arrow[hidden]{display:none}
/* Shop name bar along the bottom of the counter. */
.shop-name-bar{display:flex;align-items:center;justify-content:center}
.shop-name-button{width:100%;height:100%;padding:0 3%;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;overflow:hidden}
.shop-name-button[hidden]{display:none}
.shop-name-button:hover,.shop-name-button:focus-visible{box-shadow:0 0 0 3px #ffd21c inset}
.shop-name-text{font:400 2.6cqw/1.1 CCMarker,Impact,sans-serif;letter-spacing:.04em;white-space:nowrap;text-shadow:.15cqw .15cqw 0 #000,.3cqw .3cqw 0 #ff2ca8}
.shop-name-button.unnamed .shop-name-text,.unnamed>.shop-name-text{font-size:1.6cqw;color:#ffd21c;text-shadow:none}
.shop-name-form{display:flex;gap:.6cqw;width:94%;align-items:center}
.shop-name-form input{flex:1;min-width:0;height:3.4cqw;min-height:32px;padding:0 1cqw;border:2px solid #ffd21c;background:#09090b;color:#fff;font:400 max(14px,1.6cqw) CCMarker,Impact,sans-serif}
.shop-name-form button{min-height:32px;white-space:nowrap}
/* Selected-card actions, under the shop. */
.trade-shop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0}
.trade-shop-actions[hidden]{display:none}
.trade-shop-actions button{min-height:44px}
.trade-shop-selected{font-weight:800;color:#ffd21c;margin-right:4px}
.trade-shop-status{min-height:1.4em;margin:8px 0 0;font-size:14px}
/* Hover/focus preview: the whole card, centred above the shop. It never takes the pointer, so leaving the card closes it. */
.shop-card-preview{position:fixed;inset:0;z-index:9500;display:flex;align-items:center;justify-content:center;pointer-events:none}
.shop-card-preview[hidden]{display:none}
.shop-card-preview img{max-width:min(78vw,480px);max-height:82vh;width:auto;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 0 0 3px #ffd21c,0 18px 60px rgba(0,0,0,.85)}
/* Touch preview: same centred card, with an obvious close button and the card's actions. */
.shop-card-dialog{max-width:min(94vw,520px);max-height:94dvh;padding:18px 16px 16px;border:2px solid #ff2ca8;border-radius:14px;background:#17141d;color:#fff;text-align:center;overflow:auto}
.shop-card-dialog::backdrop{background:rgba(0,0,0,.82)}
.shop-card-dialog img{display:block;margin:0 auto;max-width:100%;max-height:62dvh;width:auto;height:auto;object-fit:contain;border-radius:12px}
.shop-card-dialog-close{position:sticky;top:0;float:right;width:48px;height:48px;margin:-6px -4px 0 8px;border:0;background:#ffd21c;color:#111;font-size:30px;line-height:1;cursor:pointer;z-index:1}
.shop-card-dialog-title{margin:12px 0 10px;font-weight:800}
.shop-card-dialog-actions{display:grid;gap:8px}
.shop-card-dialog-actions button{min-height:48px}

@media (prefers-reduced-motion:reduce){.shop-card img{transition:none}}
.case-drop-button{padding:0;border:0;background:rgba(255,210,28,.18);cursor:pointer;border-radius:6px}.case-drop-button:hover,.case-drop-button:focus-visible{background:rgba(255,210,28,.35);outline:2px solid #ffd21c}
/* Buttons in the selected-card bar and the touch preview, in the game's sign style. */
.trade-shop-actions button,.shop-card-dialog-actions button,.shop-name-form button{min-height:44px;padding:8px 14px;border:2px solid #ffd21c;border-radius:3px 10px 2px 8px;background:#131019;color:#ffd21c;font:900 14px/1.2 system-ui,sans-serif;letter-spacing:.05em;cursor:pointer;box-shadow:4px 4px 0 #ff2ca8}
.trade-shop-actions button:hover:not(:disabled),.shop-card-dialog-actions button:hover:not(:disabled){background:#ffd21c;color:#111}
.trade-shop-actions button:disabled,.shop-card-dialog-actions button:disabled{opacity:.45;cursor:not-allowed}
.shop-name-form button[type=submit]{background:#ffd21c;color:#111}
/* Control bar above the shop: PUBLIC / PRIVATE on the left, SAVE on the right (owner, 2026-11-24). */
.trade-shop-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 12px}
.trade-shop-controls-left,.trade-shop-controls-right{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.shop-save{min-height:46px;padding:8px 20px;border-radius:3px 12px 2px 9px;font:400 20px/1 CCMarker,Impact,sans-serif;letter-spacing:.04em;cursor:pointer}
.shop-visibility{display:inline-flex;border:2px solid #fff;border-radius:3px 12px 2px 9px;overflow:hidden;box-shadow:4px 4px 0 #ff2ca8}
.shop-visibility-option{min-height:46px;padding:8px 18px;border:0;background:#131019;color:#9a93a3;font:400 20px/1 CCMarker,Impact,sans-serif;letter-spacing:.04em;cursor:pointer}
.shop-visibility-option+.shop-visibility-option{border-left:2px solid #fff}
.shop-visibility-option[data-value=private].on{background:#16dcff;color:#111}
.shop-visibility-option[data-value=public].on{background:#32cc78;color:#111}
.shop-visibility-option:focus-visible{outline:3px solid #ffd21c;outline-offset:-4px}
.shop-visibility-note{font-size:14px;color:#e4dfea;max-width:42ch}
.shop-save{border:2px solid #111;background:#ffd21c;color:#111;box-shadow:4px 4px 0 #ff2ca8}
.shop-save:disabled{opacity:.45;cursor:default;box-shadow:none}
.shop-save:not(:disabled):hover{transform:translate(-1px,-1px)}
.shop-save:focus-visible{outline:3px solid #fff;outline-offset:3px}
.shop-unsaved{font-weight:800;color:#ffd21c}
.shop-unsaved[hidden]{display:none}
/* Who each glass case is for, on the glass. */
.shop-case-label{position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 2%;border:2px solid #111;border-radius:4px;background:#ffd21c;color:#111;
 font:400 1.45cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.05em;white-space:nowrap;transform:rotate(-2deg);box-shadow:.2cqw .2cqw 0 #ff2ca8;pointer-events:none}
/* Players I pick. */
.trade-shop-picks{margin:16px 0 0;padding:14px 16px;border:2px solid #16dcff;border-radius:10px;background:#131019}
.trade-shop-picks[hidden]{display:none}
.trade-shop-picks h3{margin:0 0 4px;font:400 20px/1.1 CCMarker,Impact,sans-serif;color:#16dcff}
.trade-shop-pick-help{margin:0 0 10px;font-size:14px;color:#e4dfea}
.trade-shop-pick-form{display:flex;flex-wrap:wrap;gap:8px}
.trade-shop-pick-form input{flex:1 1 200px;min-width:0;min-height:44px;padding:0 12px;border:2px solid #16dcff;background:#09090b;color:#fff;font-size:16px}
.trade-shop-pick-form button{min-height:44px;padding:8px 14px;border:2px solid #16dcff;background:#16dcff;color:#111;font:900 14px system-ui,sans-serif;cursor:pointer}
.trade-shop-pick-list{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0}
.trade-shop-pick{display:flex;align-items:center;gap:6px;padding:4px 4px 4px 12px;border:1px solid #16dcff;border-radius:999px;font-weight:800}
.trade-shop-pick button{width:36px;height:36px;border:0;border-radius:50%;background:#28232e;color:#fff;font-size:20px;cursor:pointer}
.trade-shop-pick-empty{color:#c8c0cf;font-size:14px}
@media (max-width:760px){.shop-case-label{font-size:2.2cqw}}
/* Phones: PUBLIC/PRIVATE stays left and SAVE stays right on one row; the note drops under the switch. */
@media (max-width:760px){
 .trade-shop-controls{flex-wrap:nowrap;align-items:flex-start}
 .trade-shop-controls-left{min-width:0;flex:1 1 auto}
 .trade-shop-controls-right{flex:0 0 auto;flex-direction:column;align-items:flex-end;gap:4px}
 .shop-visibility-note{flex-basis:100%;font-size:13px}
 .shop-unsaved{font-size:12px;order:2}
}
/* Visitor view on the shop page. */
.trade-shop-visitor{margin:0 0 18px}
.trade-shop-visitor .shop-name-bar{pointer-events:none}
.trade-shop-visitor .shop-name-text{display:block}
.shop-card-hidden{cursor:default;background:#09090b;border-radius:6px;display:flex}
.shop-card-hidden img{object-fit:contain;padding:12%;box-sizing:border-box;opacity:.9}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
/* TRADE (left of the shop name) and SAVE (right of it), as stickers on the counter (owner, 2026-11-24). */
.shop-side-button{position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border:.2cqw solid #111;border-radius:.4cqw 1.1cqw .3cqw .9cqw;
 font:400 2.6cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.05em;text-decoration:none;cursor:pointer;box-shadow:.35cqw .35cqw 0 #ff2ca8;transform:rotate(-2deg)}
.shop-trade{background:#16dcff;color:#111}
.shop-save.shop-side-button{background:#ffd21c;color:#111;min-height:0;transform:rotate(2deg)}
.shop-side-button:hover:not(:disabled){filter:brightness(1.1)}
.shop-side-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.shop-side-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}

/* Pink graffiti arrows on the shop's edges (phones): slide to PUBLIC, the cards, or PRIVATE. */
.trade-shop-framewrap{position:relative}
.shop-pan{position:absolute;top:58%;z-index:5;display:flex;flex-direction:column;align-items:center;gap:2px;width:84px;padding:4px 2px;border:0;background:transparent;cursor:pointer;transform:translateY(-50%);filter:drop-shadow(0 3px 6px rgba(0,0,0,.8))}
.shop-pan[hidden]{display:none}
.shop-pan svg{width:72px;height:48px;display:block}
.shop-pan-left{left:4px}
.shop-pan-right{right:4px}
.shop-pan-right svg{transform:scaleX(-1)}
.shop-pan-label{padding:2px 6px;background:#111;color:#ff2ca8;border:2px solid #ff2ca8;border-radius:4px;font:400 13px/1 CCMarker,Impact,sans-serif;letter-spacing:.05em}
.shop-pan:focus-visible{outline:3px solid #fff;outline-offset:2px}
.shop-pan-hot svg{transform:scale(1.18)}.shop-pan-right.shop-pan-hot svg{transform:scaleX(-1) scale(1.18)}
@media (prefers-reduced-motion:no-preference){.shop-pan svg{animation:shop-pan-nudge 1.6s ease-in-out infinite}.shop-pan-right svg{animation-name:shop-pan-nudge-r}}
@keyframes shop-pan-nudge{50%{translate:-5px 0}}
@keyframes shop-pan-nudge-r{50%{translate:5px 0}}
/* Mat and glass-case cards are 600 px squares scaled into their slots (see fit() in trade-shop-scene.js), so the sizes above are 6× what shows. */
/* Dragging with a finger: cards take the touch, and a copy follows the finger. */
.shop-card{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.shop-drag-ghost{position:fixed;z-index:9600;width:72px;height:auto;margin:-60px 0 0 -36px;border-radius:6px;pointer-events:none;box-shadow:0 0 0 3px #ffd21c,0 10px 24px rgba(0,0,0,.7);opacity:.92}
.trade-shop-visitor .shop-card{touch-action:manipulation}
/* Deck Builder scene (owner artwork, 2026-11-24). Shares the shop's frame, preview, dialog and pink arrows. */
#deckBuilderScene{margin:0 auto 24px;max-width:1280px}
#deckBuilderScene[hidden]{display:none}
.db-box,.db-hotspot,.db-arrow{position:absolute;box-sizing:border-box;padding:0;border:0;background:transparent;cursor:pointer;border-radius:10px}
.db-box:hover,.db-box:focus-visible,.db-hotspot:hover,.db-hotspot:focus-visible,.db-arrow:hover:not(:disabled),.db-arrow:focus-visible{outline:3px solid #ffd21c;outline-offset:2px}
/* Starter boxes you don't own go grey. */
.db-box-locked{backdrop-filter:grayscale(1) brightness(.6);-webkit-backdrop-filter:grayscale(1) brightness(.6);cursor:not-allowed}
.db-arrow{border-radius:50%}.db-arrow:disabled{cursor:default;background:rgba(9,9,11,.5)}
.db-bar{position:absolute;display:flex;align-items:center;justify-content:space-between;gap:1%;box-sizing:border-box;padding:0 1%}
.db-type-name{flex:1;text-align:center;font:400 2.1cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.06em;color:#ffd21c;text-shadow:.15cqw .15cqw 0 #000;white-space:nowrap;overflow:hidden}
.db-type-step{width:6%;height:80%;border:.15cqw solid #ffd21c;border-radius:.6cqw;background:#131019;color:#ffd21c;font-size:1.4cqw;cursor:pointer}
.db-type-step:disabled{opacity:.4;cursor:default}
.db-type-step:focus-visible{outline:3px solid #fff}
.db-register{position:absolute;display:flex;gap:1%;box-sizing:border-box}
.db-register input{flex:1;min-width:0;box-sizing:border-box;height:100%;padding:0 2%;border:.25cqw solid #111;border-radius:.6cqw;background:#ffd21c;color:#111;
 font:400 2cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.08em;box-shadow:.3cqw .3cqw 0 #ff2ca8}
.db-register input::placeholder{color:#111;opacity:1;text-align:center}
.db-register input:focus{outline:3px solid #16dcff}
.db-register-go{width:14%;border:.25cqw solid #111;border-radius:.6cqw;background:#16dcff;color:#111;font:400 2cqw/1 CCMarker,Impact,sans-serif;cursor:pointer;box-shadow:.3cqw .3cqw 0 #ff2ca8}
.db-upgrade{background:#ffd21c;color:#111;transform:rotate(-3deg);font-size:2.2cqw}

.db-pack{position:absolute;pointer-events:none;filter:drop-shadow(.3cqw .4cqw .4cqw rgba(0,0,0,.65));transform-origin:50% 90%}
.db-register{z-index:2}.db-pack-over{z-index:3}

/* Boom box and comic covers on the Deck Builder shelf. */
.db-hotspot-caption{position:absolute;left:0;right:0;bottom:0;padding:3px 1px;background:#131019ed;color:#ffd21c;font:900 clamp(9px,1cqw,16px)/1.2 system-ui,sans-serif;border-radius:3px}
.db-media-dialog{box-sizing:border-box;width:min(94vw,560px);max-height:94dvh;overflow:auto;padding:20px;border:2px solid #ff2ca8;border-radius:14px;background:#17141d;color:#fff;font:16px/1.4 system-ui,sans-serif}
.db-media-dialog::backdrop{background:#000d}
.db-media-dialog h2{margin:0 48px 16px 0;color:#ffd21c;font-size:1.3rem}
.db-media-close{position:absolute;right:6px;top:6px;width:44px;height:44px;border:0;border-radius:5px;background:#ffd21c;color:#111;font-size:30px;cursor:pointer}
.db-music-label{display:block;margin:14px 0 6px;font-weight:800;color:#ffd21c}
.db-media-dialog input,.db-media-dialog select{display:block;box-sizing:border-box;width:100%;min-height:44px;font:inherit;color:#fff;background:#25212c;border:1px solid #aaa;border-radius:5px;padding:6px}
.db-media-dialog input::file-selector-button,.db-music-clear{min-height:44px;padding:8px;border:1px solid #ffd21c;border-radius:5px;background:#131019;color:#ffd21c;font-weight:800;cursor:pointer}
.db-media-dialog audio{display:block;width:100%;margin-top:16px}
.db-music-clear:disabled{opacity:.45;cursor:default}
.db-media-dialog :focus-visible{outline:3px solid #16dcff;outline-offset:2px}
.db-comic-dialog{width:min(94vw,520px)}
.db-comic-picture{position:relative;overflow:hidden;margin:auto;width:min(100%,calc((94dvh - 190px) * 2 / 3));aspect-ratio:2 / 3;background:#131019;border-radius:8px}
.db-comic-picture img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.db-comic-buy{display:block;margin:14px auto 0;padding:12px 14px;border-radius:6px;background:#ffd21c;color:#111;font:400 clamp(16px,2.2vw,22px)/1.15 CCMarker,Impact,sans-serif;letter-spacing:.04em;text-align:center;text-decoration:none;box-shadow:4px 4px 0 #ff2ca8}
.db-comic-buy:hover,.db-comic-buy:focus-visible{background:#16dcff}
@media(max-height:500px) and (orientation:landscape){
 .db-music-dialog{width:min(94vw,700px);padding:14px}
 .db-music-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 14px}
 .db-music-dialog h2{grid-column:1/-1;margin:0 48px 0 0;font-size:1.1rem}
 .db-music-dialog>p:first-of-type{grid-column:1/-1;margin:0;font-size:13px}
 .db-music-dialog .db-music-label{grid-row:3;margin:0;font-size:13px}
 .db-music-dialog label[for="dbMusicFiles"]{grid-column:1}
 .db-music-dialog label[for="dbMusicPlaylist"]{grid-column:2}
 .db-music-dialog input{grid-column:1;grid-row:4}
 .db-music-dialog select{grid-column:2;grid-row:4}
 .db-music-dialog audio{grid-column:1/-1;margin:0}
 .db-music-status{margin:0;font-size:12px;overflow-wrap:anywhere}
 .db-music-clear{justify-self:end}
}
/* Whole picture on every screen (owner, 2026-11-24): the Trade Shop and Deck Builder always show the full artwork,
   sized to fit the screen's height too. Phones held upright are asked to turn sideways instead of scrolling. */
.trade-shop-framewrap{max-width:calc((100dvh - 24px) * 1672 / 941);margin-inline:auto}
.trade-shop-swipe{display:none!important}
@media (orientation:portrait) and (max-width:760px){
 .trade-shop-framewrap{min-height:220px;border:2px dashed #ff2ca8;border-radius:12px;background:#0d0b11}
 .trade-shop-framewrap>*{visibility:hidden}
 .trade-shop-framewrap::before{content:"↻  TURN YOUR PHONE SIDEWAYS";position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;
  font:400 26px/1.2 CCMarker,Impact,sans-serif;letter-spacing:.04em;color:#ff2ca8;text-shadow:2px 2px 0 #000}
}
/* Card preview dialog: close button in the corner (never pushes the card off-centre); on short sideways screens the
   card sits left of its buttons so everything fits. */
.shop-card-dialog{position:fixed}
.shop-card-dialog-close{position:absolute;float:none;top:6px;right:6px;margin:0}
.shop-card-dialog img{margin-top:40px}
@media (max-height:500px) and (orientation:landscape){
 .shop-card-dialog{max-width:94vw;display:none;grid-template-columns:auto minmax(160px,240px);align-items:center;gap:16px;padding:12px 56px 12px 12px}
 .shop-card-dialog[open]{display:grid}
 .shop-card-dialog img{margin:0;max-height:calc(100dvh - 48px)}
 .shop-card-dialog-title{grid-column:2;grid-row:1;align-self:end;margin:0}
 .shop-card-dialog-actions{grid-column:2;grid-row:2;align-self:start}
 .shop-card-dialog img{grid-row:1 / span 2}
}

.db-trade-destination{display:block;min-height:44px;margin:12px auto;border:2px dashed #ffd21c;border-radius:8px;padding:10px 20px;background:#17141d;color:#ffd21c;font-weight:900}
/* Short screens (phones held sideways): the cover fills the height, with the buy link beside it. */
@media (max-height:500px){
 .db-comic-dialog[open]{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;gap:6px 18px;width:min(94vw,640px);padding:12px 16px;align-items:center}
 .db-comic-dialog h2{grid-column:2;grid-row:1;margin:0 40px 0 0;font-size:1rem}
 .db-comic-dialog .db-comic-picture{grid-column:1;grid-row:1 / span 2;width:calc((94dvh - 30px) * 2 / 3);margin:0}
 .db-comic-dialog .db-comic-buy{grid-column:2;grid-row:2;align-self:start;margin:0 48px 0 0;font-size:18px}
}
/* MY COMICS under the comic shelf: owned digital issues in a scrolling drop-down. */
.db-comic-menu{position:absolute;z-index:6}
.db-comic-toggle{display:block;width:100%;height:100%;padding:0 6%;border:.25cqw solid #111;border-radius:.6cqw;background:#ff2ca8;color:#fff;font:400 2cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.06em;box-shadow:.3cqw .3cqw 0 #111;cursor:pointer}
.db-comic-toggle:focus-visible{outline:3px solid #16dcff;outline-offset:2px}
.db-comic-list{position:absolute;left:0;right:0;top:calc(100% + 4px);max-height:min(46cqw,60dvh);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:6px;list-style:none;background:#17141dee;border:2px solid #ff2ca8;border-radius:8px;box-shadow:0 10px 24px #000a;display:grid;gap:6px}
.db-comic-list[hidden]{display:none}
.db-comic-issue{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:4px 8px;border:1px solid #ffd21c55;border-radius:6px;background:#131019;color:#ffd21c;font:400 18px/1 CCMarker,Impact,sans-serif;letter-spacing:.05em;text-align:left;cursor:pointer}
.db-comic-issue:hover,.db-comic-issue:focus-visible{background:#ffd21c;color:#111}
.db-comic-issue img{width:40px;height:60px;object-fit:cover;border-radius:3px;flex-shrink:0}
.db-comic-owned{margin:14px 0 0;color:#ffd21c;font-weight:800;text-align:center}
@media (max-height:500px){.db-comic-dialog .db-comic-owned{grid-column:2;grid-row:2;align-self:start;margin:0 48px 0 0}}
/* Neon OPEN / CLOSED sign on the shop wall (owner, 2026-11-25): lit when open, dark tubes when closed; tap to switch. */
.shop-neon{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center;padding:0;border:.35cqw solid #3a2a33;border-radius:1.2cqw;background:#120b10e6;cursor:pointer;
 font:400 4.4cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.12em;color:#5b4552;text-shadow:none;box-shadow:inset 0 0 1cqw #000c,0 .4cqw 1cqw #0009}
.shop-neon.on{color:#fff2fb;border-color:#ff3cac;text-shadow:0 0 .3cqw #fff,0 0 .9cqw #ff3cac,0 0 1.8cqw #ff3cac,0 0 3cqw #ff1f8f;
 box-shadow:0 0 .8cqw #ff3cac,0 0 2.4cqw #ff3cac88,inset 0 0 1.2cqw #ff3cac66;animation:shop-neon-hum 4s infinite}
.shop-neon:focus-visible{outline:3px solid #16dcff;outline-offset:3px}
@keyframes shop-neon-hum{0%,92%,100%{opacity:1}93%{opacity:.55}94%{opacity:1}96%{opacity:.75}}
@media (prefers-reduced-motion:reduce){.shop-neon.on{animation:none}}
/* WHO CAN SEE? above the PRIVATE sign opens the picked-players box as a pop-up (owner, 2026-11-25). */
.shop-who-sees{position:absolute;z-index:6;padding:0;border:.25cqw solid #111;border-radius:.6cqw;background:#16dcff;color:#111;font:400 1.6cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.04em;box-shadow:.3cqw .3cqw 0 #ff2ca8;cursor:pointer}
.shop-who-sees:focus-visible{outline:3px solid #ffd21c;outline-offset:2px}
dialog.trade-shop-picks{width:min(92vw,560px);max-height:90dvh;overflow:auto;margin:auto;color:#fff}
dialog.trade-shop-picks::backdrop{background:#000a}
.trade-shop-picks-close{float:right;min-width:40px;min-height:40px;border:2px solid #16dcff;border-radius:8px;background:#0b0a0f;color:#16dcff;font:900 20px/1 system-ui;cursor:pointer}
.shop-who-sees{white-space:nowrap;font-size:1.45cqw}
.shop-neon{font-size:2.8cqw;letter-spacing:.06em;white-space:nowrap;overflow:hidden}
/* WHO CAN SEE? pops up above its button; the picked players scroll. */
dialog.trade-shop-picks{position:fixed;top:auto;right:auto;margin:0;z-index:9000;display:none;flex-direction:column;overflow:hidden;box-shadow:0 -6px 24px #000c}
dialog.trade-shop-picks[open]{display:flex}
dialog.trade-shop-picks .trade-shop-pick-list{flex:1 1 auto;min-height:0;max-height:34dvh;overflow-y:auto;overscroll-behavior:contain}
/* The shop fits the full page (owner, 2026-11-25), like the Deck Builder room. */
#tradeShopScene{max-width:none;margin-inline:auto}
@media (min-height:600px){#tradeShopScene .trade-shop-framewrap,#shopScene .trade-shop-framewrap{width:100%;max-width:calc((100dvh - 140px) * 1672 / 941);margin-inline:auto}}
body:has(#tradeShopScene:not([hidden])) main,body:has(#shopScene:not([hidden])) main{max-width:none;padding-inline:16px}
/* Holder's gamer tag: yellow with a blue outline; the shop name keeps its colour. */
.shop-name-holder{color:#ffd21c;text-shadow:.12cqw .12cqw 0 #0b4fd6,-.12cqw .12cqw 0 #0b4fd6,.12cqw -.12cqw 0 #0b4fd6,-.12cqw -.12cqw 0 #0b4fd6,.25cqw .25cqw 0 #16dcff}
.shop-find-list .shop-name-holder{text-shadow:1px 1px 0 #0b4fd6,-1px 1px 0 #0b4fd6,1px -1px 0 #0b4fd6,-1px -1px 0 #0b4fd6}
/* FIND A SHOP, top left by the lamp and cans. */
.shop-find{position:absolute;z-index:7}
.shop-find-toggle{display:block;width:100%;height:100%;padding:0 6%;border:.25cqw solid #111;border-radius:.6cqw;background:#ffd21c;color:#111;font:400 1.7cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.04em;white-space:nowrap;box-shadow:.3cqw .3cqw 0 #16dcff;cursor:pointer}
.shop-find-toggle:focus-visible{outline:3px solid #16dcff;outline-offset:2px}
.shop-find-panel{position:absolute;left:0;top:calc(100% + 6px);width:max(100%,min(360px,80vw));padding:8px;border:2px solid #16dcff;border-radius:10px;background:#131019f2;box-shadow:0 10px 24px #000c}
.shop-find-panel[hidden]{display:none}
.shop-find-panel input{display:block;box-sizing:border-box;width:100%;min-height:40px;padding:6px 10px;border:1px solid #16dcff;border-radius:6px;background:#0b0a0f;color:#fff;font:600 15px system-ui,sans-serif}
.shop-find-note{margin:6px 2px 0;color:#c8c0cf;font:600 13px system-ui,sans-serif}
.shop-find-note[hidden]{display:none}
.shop-find-list{list-style:none;margin:6px 0 0;padding:0;max-height:min(40cqw,46dvh);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:4px}
.shop-find-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:6px;background:#1d1824}
.shop-find-list a{color:#fff;font:400 16px/1.2 CCMarker,Impact,sans-serif;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-find-list a:hover,.shop-find-list a:focus-visible{text-decoration:underline}
.shop-find-state{flex:none;padding:2px 8px;border-radius:10px;font:900 11px/1.4 system-ui,sans-serif}
.shop-find-state.open{background:#1fd17a;color:#08130c}.shop-find-state.closed{background:#4b4452;color:#eee}
/* Motor Head's walkthrough plays under the shop; highlighted shop buttons keep their place in the picture. */
.shop-guide-dock{max-width:calc((100dvh - 140px) * 1672 / 941);margin:10px auto 0}
.shop-guide-dock .page-guide.page-guide-docked{max-width:none;margin:0}
.trade-shop-scene .shop-side-button.page-guide-spot{position:absolute;z-index:8}
/* STARTING AT price under each glass-case card (owner, 2026-11-25). */
.case-slot{overflow:visible}
.case-price{position:absolute;left:-6%;right:-6%;bottom:-24%;z-index:4;padding:.25cqw .2cqw;border-radius:.4cqw;background:#ffd21c;color:#111;font:900 .78cqw/1.1 system-ui,sans-serif;text-align:center;letter-spacing:.02em;box-shadow:0 .15cqw .4cqw #000a;pointer-events:none}
.case-price.missing{background:#e0263b;color:#fff}
.shop-price-dialog{width:min(92vw,420px);padding:18px;border:2px solid #ffd21c;border-radius:12px;background:#17141d;color:#fff}
.shop-price-dialog::backdrop{background:#000a}
.shop-price-dialog h3{margin:0 0 6px;font:400 24px/1 CCMarker,Impact,sans-serif;color:#ffd21c}
.shop-price-note{margin:0 0 12px;font-size:14px;color:#ddd}
.shop-price-row{display:grid;grid-template-columns:80px auto 1fr;align-items:center;gap:8px;font:900 20px system-ui}
.shop-price-row select{min-height:44px;padding:6px;border:1px solid #ffd21c;border-radius:6px;background:#0b0a0f;color:#fff;font:700 16px system-ui}
.shop-price-buttons{display:flex;gap:8px;margin-top:14px}
.case-price{top:104%;bottom:auto;left:-10%;right:-10%;padding:.18cqw .1cqw;font-size:.68cqw;line-height:1.05}
.case-price-button{pointer-events:auto;cursor:pointer;border:0;font-family:system-ui,sans-serif}
.case-price-button:hover,.case-price-button:focus-visible{outline:.2cqw solid #16dcff;outline-offset:.1cqw}
/* Mixed starting price rows: [count] × [type] (×), + ADD ANOTHER TYPE, running total of 10. */
.shop-price-rows{display:grid;gap:8px}
.shop-price-row{grid-template-columns:72px auto 1fr 40px}
.shop-price-remove{min-width:40px;min-height:40px;border:1px solid #ff2ca8;border-radius:6px;background:#0b0a0f;color:#ff2ca8;font:900 18px/1 system-ui;cursor:pointer}
.shop-price-remove[hidden]{visibility:hidden;display:block}
.shop-price-add{margin-top:10px;min-height:40px}
.shop-price-add:disabled,.shop-price-buttons .trade-primary:disabled{opacity:.45}
.shop-price-total{margin:8px 0 0;font:800 14px system-ui;color:#ffd21c}
.shop-price-total.over{color:#ff5a6e}
.case-price{white-space:normal}
/* STARTING AT on the enlarged card, and TRADE FOR THIS CARD (owner, 2026-11-25). */
.card-price-line{display:block;margin:8px auto 0;padding:4px 12px;width:max-content;max-width:100%;border-radius:6px;background:#ffd21c;color:#111;font:900 15px/1.25 system-ui,sans-serif;letter-spacing:.03em;text-align:center}
.card-price-line[hidden]{display:none}
.shop-card-preview .card-price-line{font-size:18px;box-shadow:0 6px 18px #000a}
.trade-for-button{min-height:48px;padding:10px 18px;border:2px solid #111;border-radius:8px;background:#16dcff;color:#111;font:400 20px/1 CCMarker,Impact,sans-serif;letter-spacing:.04em;box-shadow:4px 4px 0 #ff2ca8;cursor:pointer}
.trade-shop-scene~.shop-card-preview,.shop-card-preview{flex-direction:column;gap:8px}
/* Another player's shop: the enlarged card has a big TRADE beside it (owner, 2026-11-25). */
.shop-card-dialog.with-trade{max-width:min(96vw,860px);display:none;grid-template-columns:auto minmax(150px,230px);align-items:center;gap:18px;padding:14px 62px 14px 14px}
.shop-card-dialog.with-trade[open]{display:grid}
.shop-card-dialog.with-trade img{grid-row:1 / span 2;margin:0;max-height:calc(100dvh - 60px)}
.shop-card-dialog.with-trade .shop-card-dialog-title{grid-column:2;grid-row:1;align-self:end;margin:0}
.shop-card-dialog.with-trade .shop-card-dialog-actions{grid-column:2;grid-row:2;align-self:start}
.shop-card-dialog.with-trade .trade-for-button{min-height:72px;padding:14px 18px;font-size:clamp(34px,5vw,58px);letter-spacing:.06em;color:#ffd21c;background:#1b1a1f;border:3px solid #111;
  -webkit-text-stroke:1px #000;text-shadow:3px 3px 0 #c4161c,0 0 12px #ff6a00;box-shadow:0 0 0 3px #16dcff,6px 6px 0 #ff2ca8;transform:rotate(-3deg)}
.shop-card-dialog.with-trade .trade-for-button:hover,.shop-card-dialog.with-trade .trade-for-button:focus-visible{background:#2a2930;outline:3px solid #ffd21c;outline-offset:4px}
@media (max-width:560px) and (orientation:portrait){
 .shop-card-dialog.with-trade{grid-template-columns:1fr;padding:56px 12px 12px}
 .shop-card-dialog.with-trade img{grid-row:1;max-height:56dvh}
 .shop-card-dialog.with-trade .shop-card-dialog-title{grid-column:1;grid-row:2}
 .shop-card-dialog.with-trade .shop-card-dialog-actions{grid-column:1;grid-row:3}
}
/* Each empty spot on your own mat: the DECK BUILDER box, laid into the spot in the mat's perspective like a card
   (JS sets the transform from the slot corners), a link to bring cards over (owner, 2026-11-25). */
.mat-go-builder{position:absolute;left:0;top:0;display:block;width:100px;height:100px;transform-origin:0 0;opacity:.9}
.mat-go-builder img{width:100%;height:100%;object-fit:fill;display:block;border-radius:5px}
.mat-go-builder:hover,.mat-go-builder:focus-visible{opacity:1;filter:brightness(1.15)}
.mat-go-builder:hover img,.mat-go-builder:focus-visible img{box-shadow:0 0 0 4px #ffd21c}
.mat-go-builder:focus-visible{outline:none}
/* × in the top-right corner of each card on your own mat: back to the Deck Builder (owner, 2026-11-25). */
.mat-card-back{position:absolute;top:-.6cqw;right:-.4cqw;z-index:6;display:flex;align-items:center;justify-content:center;width:max(22px,2.2cqw);height:max(22px,2.2cqw);padding:0;border:.15cqw solid #111;border-radius:50%;
  background:#d82c57;color:#fff;font:700 max(15px,1.6cqw)/1 system-ui,sans-serif;cursor:pointer;box-shadow:0 .15cqw .3cqw #000a}
.mat-card-back:hover,.mat-card-back:focus-visible{background:#ff3d6e;outline:.2cqw solid #ffd21c;outline-offset:.1cqw}
@media(pointer:coarse){.mat-card-back{width:max(30px,2.6cqw);height:max(30px,2.6cqw)}}
/* Quieter × (owner, 2026-11-25): small and dark until you point at it. */
.mat-card-back{width:max(18px,1.6cqw);height:max(18px,1.6cqw);top:-.3cqw;right:-.2cqw;border:1px solid #ffffff40;background:#0d0b11b3;color:#d8d2c8;font-size:max(12px,1.1cqw);box-shadow:none;opacity:.75}
.mat-card-back:hover,.mat-card-back:focus-visible{opacity:1;background:#d82c57;color:#fff}
@media(pointer:coarse){.mat-card-back{width:max(26px,2.2cqw);height:max(26px,2.2cqw)}}
/* Mat size and + UPGRADE (owner, 2026-11-25). */
.shop-mat-count{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center;border:.2cqw solid #111;border-radius:.6cqw;background:#0d0b11d9;color:#fff4d8;font:400 1.5cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.04em;white-space:nowrap;pointer-events:none}
.shop-mat-upgrade{position:absolute;z-index:5;padding:0;border:.2cqw solid #111;border-radius:.6cqw;background:#ffd21c;color:#111;font:400 1.6cqw/1 CCMarker,Impact,sans-serif;letter-spacing:.04em;cursor:pointer;box-shadow:.25cqw .25cqw 0 #ff2ca8;white-space:nowrap}
.shop-mat-upgrade:hover,.shop-mat-upgrade:focus-visible{outline:.25cqw solid #16dcff;outline-offset:.15cqw}
.shop-upgrade-dialog{width:min(94vw,640px);max-height:90dvh;padding:18px 16px 16px;border:2px solid #ff2ca8;border-radius:14px;background:#17141d;color:#fff;overflow:auto;box-shadow:0 18px 60px #000d}
.shop-upgrade-dialog::backdrop{background:rgba(0,0,0,.78)}
.shop-upgrade-dialog h2{margin:0 52px 6px 0;color:#ffd21c;font:400 28px/1.1 CCMarker,Impact,sans-serif;letter-spacing:.04em;text-shadow:2px 2px 0 #c4161c}
.shop-upgrade-close{position:absolute;top:10px;right:10px;width:44px;height:44px;border:0;border-radius:8px;background:#ffd21c;color:#111;font:700 30px/1 system-ui,sans-serif;cursor:pointer}
.shop-upgrade-close:hover,.shop-upgrade-close:focus-visible{outline:3px solid #16dcff;outline-offset:2px}
.shop-upgrade-note{margin:0 0 12px;color:#d8d2c8;font:600 14px/1.35 system-ui,sans-serif}
.shop-upgrade-deck{margin:0 0 14px;padding:12px;border:1px solid #ffffff2a;border-radius:10px;background:#0f0d13}
.shop-upgrade-deck h3{margin:0;font:400 20px/1.1 CCMarker,Impact,sans-serif;color:#5ff0ff}
.shop-upgrade-size{margin:4px 0 10px;color:#fff;font:800 14px/1 system-ui,sans-serif}
.shop-upgrade-option{display:grid;gap:3px;width:100%;margin:0 0 8px;padding:10px 12px;border:2px solid #ffd21c;border-radius:4px 10px 3px 8px;background:#131019;color:#fff;text-align:left;cursor:pointer;font:600 14px/1.3 system-ui,sans-serif;box-shadow:3px 3px 0 #ff2ca8}
.shop-upgrade-option strong{color:#ffd21c;font:400 18px/1.1 CCMarker,Impact,sans-serif;letter-spacing:.04em}
.shop-upgrade-option:hover:not(:disabled),.shop-upgrade-option:focus-visible{background:#221d2b;outline:2px solid #16dcff}
.shop-upgrade-option:disabled{opacity:.5;cursor:not-allowed}
.shop-upgrade-pay{color:#7dffb0;font-weight:800}
.shop-upgrade-status{margin:4px 0 0;color:#ffd21c;font-weight:800}
