/* ==========================================================================================================
   THE DAILY SHOP (docs/SHOP.md; the owner's picks 2026-11-14). Markup: web/index.html (#btn-shop, #btn-coins, #lobby-shop, #shop-time, #shop-coins, #shop-buy, #trophy-coins) and
   web/shop.js (the rail's sections and tiles). Every item is the Locker's own .lk-item (web/locker.js rewardTile, web/locker.css): this file only places them.
   1. tokens  2. the home's Shop plate and coin chip  3. the Shop's header chips  4. the view and the rail  5. the buy pop-up  6. the result card's coin chip
   7. a narrow window, a phone  8. reduced motion
   One slant (the UI's --cp-skew; the grids the Locker's slab, --lk-slab-skew, NOTES 367), pop-ups upright, no halftone, hue-shifted shading, numbers as figures.
   ========================================================================================================== */

/* ======================================================= 1. TOKENS ======================================================= */
:root{
  --sh-gap:1.75rem; --sh-sec-gap:3rem; --sh-lab-fs:1.55rem; --sh-lab-gap:.7rem;
  --sh-pad-x:var(--back-x,3.41rem); --sh-pad-y:2.6rem;      /* (2.6, owner 2026-11-15: a hovered tile tilts, scales 1.04 and pushes its drop out; 1.3 cut its price strip off at the bottom) the rail's own room round the tiles (the lift, the drop, the slant's reach): matched by a negative margin, so nothing clips */
  --sh-fade:3.2rem;      /* the soft edge where more waits */
  --sh-chip-h:3.5rem; --sh-chip-fs:1.5rem; --sh-chip-ic:1.85rem;
  --sh-face:var(--cp-panel); --sh-ink:var(--cp-ink); --sh-label:var(--cp-label); --sh-figure:var(--cp-cup-num); --sh-red:var(--cp-red);
  --sh-t-in:420ms; --sh-step:45ms; --sh-spring:cubic-bezier(.2,1.25,.4,1);
}

/* ======================================================= 2. THE HOME: the Shop plate, the coin chip ======================================================= */
/* the plate: the home's plate stack (ua-brawl.css .hp-plate) in the gold category colours; the bag filled gold, edged and dropped in its deep shade, the handle a deep stroke */
#lobby-home #btn-shop{--pc:var(--cp-gold);--pd:var(--cp-gold-deep);--pt:var(--cp-gold-tint)}
#lobby-home .hp-shop .sh-bag{fill:var(--pc,var(--cp-gold));stroke:var(--pd,var(--cp-gold-deep));stroke-width:2.2;stroke-linejoin:round}
#lobby-home .hp-shop .sh-handle{fill:none;stroke:var(--pd,var(--cp-gold-deep));stroke-width:2.2;stroke-linecap:round}
html:not([data-mobile]) #screen-lobby #lobby-home #btn-shop{position:relative;translate:none;border:0;background:none;box-shadow:none}
html:not([data-mobile]) #screen-lobby #lobby-home #btn-shop::before,html:not([data-mobile]) #screen-lobby #lobby-home #btn-shop::after{content:none;display:none}
#btn-shop.is-opening{cursor:progress} #btn-shop.is-opening .hp-ic{animation:lk-busy var(--lk-t-busy,320ms) var(--lk-snap,cubic-bezier(.2,.9,.25,1)) infinite alternate}      /* busy while the shop gets ready: the bag rattles, as the Locker's door */

/* the coin chip: a white slanted block (the UI's slant, the ink outline, the small drop: .btn's own face), the coin and the balance as a figure in the trophy count's type */
#btn-coins{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;height:4.25rem;min-width:0;margin:0;padding:0 1.25rem 0 1.05rem;z-index:3;cursor:pointer;
  --bf:var(--sh-face);color:var(--sh-figure);font-family:var(--font-display);font-weight:400;font-size:1.65rem;line-height:1;white-space:nowrap}
#btn-coins[hidden]{display:none}
#btn-coins .coin-ic{width:2.1rem;height:2.1rem}
#btn-coins .cc-ic,.sh-coins .cc-ic{display:inline-flex;flex:none}
#btn-coins .cc-n,.sh-coins .cc-n{font-weight:400;font-variant-numeric:tabular-nums}
#btn-coins.is-opening{cursor:progress} #btn-coins.is-opening .coin-ic{animation:lk-busy var(--lk-t-busy,320ms) var(--lk-snap,cubic-bezier(.2,.9,.25,1)) infinite alternate}
@media (hover:hover){ #btn-coins:hover{transform:translateY(-.2rem) rotate(-1.5deg) scale(1.04)} }
#btn-coins{transition:transform 200ms var(--sh-spring)}
.cc-n.is-pop{display:inline-block;animation:num-pop 450ms var(--ease-bounce,cubic-bezier(.2,1.6,.4,1))}
/* its place: right of the player card, centred on it (the card: ua-brawl.css, ua-home.css .pcard: 30 x 7.53rem at the gutter) */
@media (min-width:981px) and (min-aspect-ratio: 601/500){
  html:not([data-mobile]) #screen-lobby #lobby-home #btn-coins{position:absolute;left:calc(var(--hb-gut) + 30rem + 1.6rem);top:calc(var(--hb-top) + (7.53rem - 4.25rem) / 2)}
}
html[data-mobile] #btn-coins{display:none}      /* a phone: no chip (the balance is the Shop's header) */

/* ======================================================= 3. THE SHOP'S HEADER: the time left, the balance ======================================================= */
.sh-chip{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:.5rem;height:var(--sh-chip-h);padding:0 1.15rem 0 1rem;box-sizing:border-box;
  font-family:var(--font-display);font-weight:400;font-size:var(--sh-chip-fs);line-height:1;color:var(--sh-label);white-space:nowrap}
.sh-chip::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r,.375rem);background:var(--sh-face);transform:skewX(var(--cp-skew));box-shadow:inset 0 0 0 var(--cp-ol) var(--sh-ink), var(--cp-drop-sm)}
.sh-chip[hidden],#screen-lobby:not([data-view="shop"]) .menu-head > :is(.sh-chip,.sh-wallet){display:none}
.sh-wallet{display:inline-flex;align-items:center;gap:1.1rem}
.sh-wallet > .sh-chip{height:100%}
/* Reshuffle: the balance's chip as a button (the shuffle mark, the coin, the price as a figure); it lifts as the home's coin chip */
.sh-reroll{margin:0;border:0;background:none;cursor:pointer;color:var(--sh-figure);transition:transform 200ms var(--sh-spring)}
.sh-reroll .sh-shuffle{width:var(--sh-chip-ic);height:var(--sh-chip-ic);flex:none;fill:none;stroke:var(--sh-ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sh-reroll .coin-ic{width:calc(var(--sh-chip-ic) * .85);height:calc(var(--sh-chip-ic) * .85)} .sh-reroll .cc-ic{display:inline-flex;flex:none;margin-left:.2rem} .sh-reroll .cc-n{font-weight:400;font-variant-numeric:tabular-nums}
.sh-reroll.is-short{color:var(--sh-red)}
/* the two chips told apart (owner 2026-11-15, NOTES 527: "kinda indistinguishable ... add some sort of hierarchy indicator"): Reshuffle is a button, the cyan action face
   (as Buy / Equip) with its price on a small white tag inside it; the balance stays the plain white chip, the bigger figure: what you have reads first, what a press costs second */
.sh-reroll::before{background:var(--cp-main)}
.sh-reroll{padding:0 .45rem 0 .85rem;gap:.55rem}
.sh-reroll .sh-shuffle{stroke-width:2.8}
.sh-tag{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:.3rem;height:calc(100% - .9rem);padding:0 .7rem 0 .55rem;font-size:.78em}
.sh-tag::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r,.375rem);background:var(--cp-panel,#fff);transform:skewX(var(--cp-skew));box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--sh-ink)}
.sh-reroll .sh-tag .cc-ic{margin-left:0}
@media (hover:hover){ .sh-reroll:hover{transform:translateY(-.2rem) rotate(-1.5deg) scale(1.04)} }
.sh-reroll:focus-visible{outline:none} .sh-reroll:focus-visible::before{box-shadow:inset 0 0 0 var(--cp-ol) var(--sh-ink), 0 0 0 .22rem var(--cp-main)}
.sh-reroll.is-opening{cursor:progress} .sh-reroll.is-opening .sh-shuffle{animation:lk-busy var(--lk-t-busy,320ms) var(--lk-snap,cubic-bezier(.2,.9,.25,1)) infinite alternate}
.sh-time .sh-clock{width:var(--sh-chip-ic);height:var(--sh-chip-ic);flex:none;fill:none;stroke:var(--sh-ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sh-time .sh-clock circle{fill:var(--cp-sky-2)}
.sh-left{display:inline-flex;align-items:baseline;gap:.12rem;white-space:pre}
.sh-left b{font-weight:400;font-variant-numeric:tabular-nums} .sh-left small{font-size:.66em;color:var(--cp-text-2)} .sh-left small + b{margin-left:.38em}
.sh-coins{color:var(--sh-figure)} .sh-coins .coin-ic{width:var(--sh-chip-ic);height:var(--sh-chip-ic)}
@media (min-width:981px) and (min-aspect-ratio:6/5){
  html:not([data-mobile]) #screen-lobby[data-view="shop"] .menu-head > .sh-chip{position:absolute;top:calc(var(--vt) * .35 + var(--back-y));height:var(--back-h)}
  html:not([data-mobile]) #screen-lobby[data-view="shop"] .menu-head > .sh-time{left:calc(var(--back-x) + var(--back-w) + var(--title-gap) + var(--title-w, 10rem) + 1.4rem)}      /* after the title plate (ui.js sets --title-w), on Back's line */
  html:not([data-mobile]) #screen-lobby[data-view="shop"] .menu-head > .sh-wallet{position:absolute;top:calc(var(--vt) * .35 + var(--back-y));height:var(--back-h);right:var(--vr)}
}

/* ======================================================= 4. THE VIEW: one horizontal rail ======================================================= */
/* the sizes (NOTES 542, owner 2026-11-15: "the item shop is too big ... make the width of things skinnier so that you don't have to scroll as much ... I still want scrolling"):
   every tile one size, Featured's four (two rows of two) and Daily's six (two rows of three): five columns. A tile is --sh-tw wide and --sh-d tall, about .8 as wide as tall,
   sized so four and a half columns show (the last Daily column peeks: you scroll to see it); a short window keeps the height and lets the tile widen up to square */
#lobby-shop{--sh-w:max(7rem, calc((100vw - var(--sh-pad-x) - 3 * var(--sh-gap) - var(--sh-sec-gap)) / 4.5));--sh-d:max(8.75rem, min(calc((100vh - 17rem) / 2), calc(var(--sh-w) * 1.25)));
  --sh-tw:min(var(--sh-w), var(--sh-d));--sh-fh:calc(var(--sh-d) * 2 + var(--sh-gap));--sh-lean:calc(var(--sh-fh) * .0526);
  position:relative;width:100%;margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;animation:none}
#lobby-shop[hidden]{display:none}
.sh-rail{display:flex;align-items:flex-start;gap:var(--sh-sec-gap);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;
  padding:var(--sh-pad-y) var(--sh-pad-x);margin:calc(var(--sh-pad-y) * -1) 0;scroll-padding-inline:var(--sh-pad-x);cursor:grab;
  --fl:0px;--fr:0px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 var(--fl),#000 calc(100% - var(--fr)),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 var(--fl),#000 calc(100% - var(--fr)),transparent 100%)}
.sh-rail::-webkit-scrollbar{display:none}
.sh-rail.is-drag{cursor:grabbing;scroll-snap-type:none;user-select:none} .sh-rail.is-wheel{scroll-snap-type:none}      /* (NOTES 800) the wheel eases the rail itself, then lands on a column */ .sh-rail.is-drag .lk-item{pointer-events:none}
#lobby-shop.more-l .sh-rail{--fl:var(--sh-fade)} #lobby-shop.more-r .sh-rail{--fr:var(--sh-fade)}
.sh-sec{flex:none;display:flex;flex-direction:column;gap:var(--sh-lab-gap)}
.sh-lab{margin:0;padding-left:var(--sh-lean);font-family:var(--font-display);font-weight:400;font-size:var(--sh-lab-fs);line-height:1.1;color:#fff;letter-spacing:0;
  text-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--sh-ink)}      /* plain words in the display font (sentence case), white edged in ink so they read on the court; no plate */
/* each grid is ONE slanted slab (the Locker's catalogue, NOTES 367): sheared once, every tile set back upright and drawing its face on that slant: no staircase */
.sh-grid{display:grid;gap:var(--sh-gap);transform:skewX(var(--lk-slab-skew));--lk-skew:var(--lk-slab-skew);--lk-unslant:skewX(calc(var(--lk-slab-skew) * -1))}
.sh-feat .sh-grid{grid-auto-flow:column;grid-auto-columns:var(--sh-tw);grid-template-rows:var(--sh-fh)}      /* Featured's cards tall, as tall as Daily's two rows (owner 2026-11-15: "the featured cards stay like the bigger ones, same size as the daily gift") */
.sh-daily .sh-grid{grid-template-columns:repeat(3,var(--sh-tw));grid-template-rows:repeat(2,var(--sh-d))}
.sh-grid .lk-item{width:100%;height:100%;aspect-ratio:auto;scroll-snap-align:start}
.sh-grid .lk-item.is-opening{cursor:progress}
.lk-item[data-offer] .lk-item-face.sh-feat-pic > img{width:100%;height:100%;max-width:none;aspect-ratio:auto;object-fit:contain;object-position:50% 100%;transform:scale(1.32);transform-origin:50% 96%;clip-path:none}      /* Featured's whole kid fills the tall card, feet on its floor */
/* (NOTES 584) Featured zooms on the part sold: the clip is the panel's shape (its slant and corners), the zoom stands upright inside it and moves the part's height (--y, where it sits on the
   whole kid above) to the panel's middle, --z times bigger. The kid inside keeps the whole-kid framing above */
.sh-feat-pic > .sh-feat-clip{position:absolute;inset:0;overflow:hidden;border-radius:var(--lk-offer-in-r);transform:skewX(var(--lk-skew))}
.sh-feat-clip > .sh-feat-up{position:absolute;inset:0;transform:skewX(calc(var(--lk-skew) * -1))}
.sh-feat-up > .sh-feat-zoom{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;--y:60%;--z:1.6;transform-origin:50% var(--y);transform:translateY(calc(50% - var(--y))) scale(var(--z))}
.sh-feat-zoom > img{width:100%;height:100%;max-width:none;aspect-ratio:auto;object-fit:contain;object-position:50% 100%;transform:scale(1.32);transform-origin:50% 96%;clip-path:none}
/* (owner 2026-11-16: "these item zooms need to be refined", a Lace-up boot card with the shoes cut off at the panel's sides and the shorts crowding its top) each part whole
   inside the panel and no wider than it: the head and the whole hairstyle in the upper middle, the face close, the shirt and the shorts in the middle with what is next to them in view,
   the shoes low with the shorts above them (centred, a pair of shoes on the tall panel left its lower half empty). Tuned on the 1440 shop on the plain figure (web/shop.js DUMMY, framed from its shown meshes): a part at p% of the box lands at 50% + (p - y) x z */
.sh-feat-zoom[data-kind="hair"]{--y:39.6%;--z:1.45} .sh-feat-zoom[data-kind="hat"]{--y:38.6%;--z:1.45}
.sh-feat-zoom[data-kind="eyes"]{--y:41%;--z:1.8}
.sh-feat-zoom[data-kind="mouth"]{--y:45.5%;--z:1.95}
.sh-feat-zoom[data-kind="tee"],.sh-feat-zoom[data-kind="pat"]{--y:64.8%;--z:1.55}
.sh-feat-zoom[data-kind="pants"]{--y:76.9%;--z:1.6}
.sh-feat-zoom[data-kind="shoes"]{--y:83.6%;--z:1.32}
.lk-item[data-offer] .lk-item-face.sh-feat-pic > img.lk-trail-pic,.lk-item[data-offer] .lk-item-face > img.lk-trail-pic{align-self:center;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:50% 50%;transform:none;clip-path:none}      /* (owner 2026-11-16: "trail gets cutoff  fix this", a Daily trail card cut at its left edge) the whole picture, centred, never cropped: the baked tile already frames the ball and its trail */      /* a trail has no floor to stand on (owner 2026-11-16: "the trail image shows up at the bottom very awkwardly"): its picture sits in the middle of the card; (NOTES 584, owner: "trail gets cutoff in item shop") it fills the panel, the ball kept in view at the right, so the ribbon runs in from the panel's own edge rather than stopping mid-panel */
/* (owner 2026-11-16: "the trails on the big frame look badly formatted": cropped from the left, the ball up in the top half, spilling past the panel's slanted edge) Featured's tall card
   stands the trail on end: the picture turned so the ball flies up through the card and its trail streams down its length, scaled to fill it, and clipped to the panel's own slanted shape
   (the face's clip: the panel's parallelogram, the same skew and origin as locker.css's face ::before for a card with a kind line) */
.sh-feat .lk-item[data-offer="true"]:has(img:is(.lk-trail-pic,.sh-feat-trail)) .lk-item-face,.sh-daily .lk-item[data-offer="true"]:has(img.lk-trail-pic) .lk-item-face{--tf-y0:calc(50cqh - var(--lk-offer-pad-cq) - var(--lk-offer-name-h) - var(--lk-offer-kind-h) + .6cqw - var(--lk-offer-gap));
  --tf-h:calc(100cqh - 2 * var(--lk-offer-pad-cq) - var(--lk-offer-name-h) - var(--lk-offer-kind-h) + .6cqw - 2 * var(--lk-offer-gap) - var(--lk-offer-bar-h));--tf-t:tan(var(--lk-skew));
  clip-path:polygon(calc(0% - var(--tf-t) * var(--tf-y0)) 0,calc(100% - var(--tf-t) * var(--tf-y0)) 0,calc(100% + var(--tf-t) * (var(--tf-h) - var(--tf-y0))) 100%,calc(0% + var(--tf-t) * (var(--tf-h) - var(--tf-y0))) 100%)}
.sh-feat .lk-item[data-offer] .lk-item-face > img.lk-trail-pic{align-self:center;object-fit:contain;object-position:50% 50%}      /* (only until the tall picture is drawn) */
.lk-item[data-offer] .lk-item-face.sh-feat-pic.is-trail > img.sh-feat-trail{align-self:stretch;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:50% 50%;transform:none;clip-path:none}      /* the tall picture (web/shop.js featTrail), drawn at the card's shape: it fills the panel, clipped to its slant */
/* (owner 2026-11-16: "make the trail render in the item frame in the shop significantly larger. by like 60%") a Daily card's trail 1.6 times its whole picture; the
   face is clipped to the panel's slanted shape above (as Featured's), so what runs past it is cut by the frame alone */
.sh-daily .lk-item[data-offer] .lk-item-face > img.lk-trail-pic{transform:scale(1.6);transform-origin:64% 50%}      /* grown about a point toward the ball (each picture has it at the upper right), so the ball stays in the panel and the tail runs on past the frame */
/* (owner 2026-11-16: "the trail on the gift is not positioned the same as the feature one") a trail the daily gift gave: Featured's tall picture (web/shop.js featTrail into the gift's
   .sh-gift-zoom) in a box of a Featured panel's size and place (the gift card has no kind line, so its face starts that much higher: the box starts where Featured's face does), clipped
   to the panel's slant as Featured's face is (the same polygon, with the gift face's own top and height) */
.sh-gift-zoom.is-trail{--tf-y0:calc(50cqh - var(--lk-offer-pad-cq) - var(--lk-offer-name-h) - var(--lk-offer-gap));--tf-h:calc(100cqh - 2 * var(--lk-offer-pad-cq) - var(--lk-offer-name-h) - 2 * var(--lk-offer-gap) - var(--lk-offer-bar-h));
  --tf-t:tan(var(--lk-skew));clip-path:polygon(calc(0% - var(--tf-t) * var(--tf-y0)) 0,calc(100% - var(--tf-t) * var(--tf-y0)) 0,calc(100% + var(--tf-t) * (var(--tf-h) - var(--tf-y0))) 100%,calc(0% + var(--tf-t) * (var(--tf-h) - var(--tf-y0))) 100%)}
.sh-gift-zoom.is-trail > img.sh-feat-trail{position:absolute;left:0;right:0;bottom:0;top:calc(var(--lk-offer-kind-h) - .6cqw);width:100%;height:auto;max-width:none;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:50% 50%;transform:none;clip-path:none}
.lk-item[data-offer][data-kind="pat"] .lk-item-face > img,.lk-item[data-offer][data-kind="pat"] .lk-item-face.sh-feat-pic > img{align-self:center;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:50% 50%;transform:none;clip-path:none}      /* (NOTES 584, owner 2026-11-16: "wraps arent centered in the image") a pattern's roll (web/locker.js patternRoll) has no floor either: centred in its panel, on every offer card (Daily, Featured, the gift) */
/* the entrance: the tiles land one after another (the mode sheet's cards); none under reduced motion (section 8) */
#lobby-shop.is-in .sh-lab{animation:sh-lab-in var(--sh-t-in) var(--sh-spring) both}
#lobby-shop.is-in .sh-grid .lk-item{animation:sh-tile-in var(--sh-t-in) var(--sh-spring) both}
#lobby-shop.is-in .sh-feat .lk-item:nth-child(2){animation-delay:calc(var(--sh-step) * 1)}      /* left to right, one tall card at a time */
#lobby-shop.is-in .sh-feat .lk-item:nth-child(3){animation-delay:calc(var(--sh-step) * 2)} #lobby-shop.is-in .sh-feat .lk-item:nth-child(4){animation-delay:calc(var(--sh-step) * 3)}
#lobby-shop.is-in .sh-daily .sh-lab{animation-delay:calc(var(--sh-step) * 4)}
#lobby-shop.is-in .sh-daily .lk-item:nth-child(1){animation-delay:calc(var(--sh-step) * 4)} #lobby-shop.is-in .sh-daily .lk-item:nth-child(4){animation-delay:calc(var(--sh-step) * 5)}
#lobby-shop.is-in .sh-daily .lk-item:nth-child(2){animation-delay:calc(var(--sh-step) * 6)} #lobby-shop.is-in .sh-daily .lk-item:nth-child(5){animation-delay:calc(var(--sh-step) * 7)}
#lobby-shop.is-in .sh-daily .lk-item:nth-child(3){animation-delay:calc(var(--sh-step) * 8)} #lobby-shop.is-in .sh-daily .lk-item:nth-child(6){animation-delay:calc(var(--sh-step) * 9)}
@keyframes sh-tile-in{from{opacity:0;translate:2.2rem 0;scale:.94}}
@keyframes sh-lab-in{from{opacity:0;translate:1rem 0}}
/* the wide layout: the rail runs the window's width under the header (the views' right column, ua-views.css .menu-body, is the whole width here); the kid steps away (main.js) */
@media (min-width:981px) and (min-aspect-ratio:6/5){
  html:not([data-mobile]) #screen-lobby[data-view="shop"] .menu-body{left:0;right:0;width:auto;top:calc(var(--vt) * .35 + var(--back-y) + var(--back-h) + 1.2rem);bottom:calc(var(--vt) * .35 + 1.4rem);height:auto;padding:0;justify-content:center}
}

/* ======================================================= 5. THE BUY POP-UP (the game's upright pop-up: .info-sheet / .info-box, ua-views.css) ======================================================= */
.sh-buy .sh-buy-box{width:auto;min-width:min(36rem,100%);max-width:min(46rem,100%);grid-template-columns:15rem minmax(0,1fr);align-items:center;gap:2.2rem;padding:2.1rem 2.3rem 2.2rem 2.4rem}
.sh-buy-pic{width:15rem;aspect-ratio:1}
.sh-buy-pic:has(.lk-body-pic){aspect-ratio:3/4}      /* a face: the whole kid wearing it, as Fortnite's preview (owner 2026-11-15), a tall picture */
.sh-buy-pic .lk-item{display:block;width:100%;height:100%;cursor:default;--lk-skew:var(--cp-skew)}
.sh-reroll-art{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.sh-reroll-art::before{content:"";position:absolute;inset:6%;z-index:-1;border-radius:var(--lk-offer-in-r,.4rem);transform:skewX(var(--cp-skew));background:radial-gradient(70% 70% at 50% 40%,#fff 0%,var(--cp-sky-3) 58%,var(--cp-haze) 100%);box-shadow:inset 0 0 0 var(--cp-ol) var(--sh-ink), var(--cp-drop-sm)}
.sh-reroll-art .sh-shuffle{width:55%;height:55%;fill:none;stroke:var(--sh-ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sh-buy-side{display:flex;flex-direction:column;align-items:flex-start;gap:.85rem;min-width:0}
.sh-buy-tags{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin:0}
.sh-owned-tag{display:inline-flex;align-items:center;gap:.3em;font-family:var(--font-display);font-weight:400;font-size:1rem;line-height:1;color:var(--cp-deep)}
.sh-owned-tag[hidden]{display:none}
.sh-kind{position:relative;isolation:isolate;padding:.34rem .75rem .3rem .65rem;font-family:var(--font-display);font-weight:400;font-size:1rem;line-height:1;color:#fff;--rc:var(--lk-rarity-common)}
.sh-kind::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.3rem;background:var(--rc);transform:skewX(var(--cp-skew));box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--sh-ink), var(--cp-drop-sm)}
.sh-buy[data-rarity="rare"] .sh-kind{--rc:var(--lk-rarity-rare)} .sh-buy[data-rarity="epic"] .sh-kind{--rc:var(--lk-rarity-epic)} .sh-buy[data-rarity="legendary"] .sh-kind{--rc:var(--lk-rarity-legendary)} .sh-buy[data-rarity="mythic"] .sh-kind{--rc:var(--lk-rarity-mythic)} .sh-buy[data-rarity="exclusive"] .sh-kind{--rc:var(--lk-rarity-exclusive-fill);color:var(--sh-ink);}
.sh-buy .sh-buy-name{padding:0;font-size:2.3rem;overflow-wrap:anywhere}
.sh-price{height:3.4rem;padding:0 1.15rem 0 .9rem;font-size:2rem;color:var(--sh-figure)}
.sh-price .coin-ic{width:2.1rem;height:2.1rem;flex:none}
.sh-price .sh-price-n{font-weight:400;font-variant-numeric:tabular-nums}
.sh-price.is-short{color:var(--sh-red)}      /* short of coins: the figure red; Buy is off (never a sentence) */
.sh-price.is-owned{color:var(--cp-deep);font-size:1.45rem}
.sh-buy-btns{display:flex;flex-wrap:wrap;gap:1.1rem;margin:.6rem 0 0}
.sh-buy-btns .btn{height:3.9rem;min-width:9rem;padding:0 1.6rem;font-size:1.4rem}
.sh-buy-btns .sh-go{min-width:11rem}
.sh-buy-btns .sh-go[data-priced]{display:inline-flex;align-items:center;justify-content:center;gap:.7rem}      /* Buy with its price in it (owner 2026-11-15): the word, then the coin and the figure on a small white tag */
.sh-go-price{position:relative;display:inline-flex;align-items:center;gap:.35rem;padding:.22rem .6rem .22rem .3rem;font-size:.86em;line-height:1;color:var(--sh-figure);isolation:isolate}
.sh-go-price::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.35rem;background:#fff;transform:skewX(var(--cp-skew));box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--sh-ink)}
.sh-go-price .coin-ic{width:1.35em;height:1.35em;flex:none}
.sh-go-w{white-space:nowrap}      /* the word on one line, never stacked (owner 2026-11-15: Hold to buy wrapped to three lines) */
.sh-go-n{font-weight:400;font-variant-numeric:tabular-nums}
.sh-go.is-short .sh-go-price{color:var(--sh-red)}
.lk-item[data-offer] > .lk-offer-bar.lk-item-owned{gap:.35em} .sh-owned-ck{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}      /* an owned card's foot: a check, then Owned (owner 2026-11-15: "for the owned ones, ensure that you keep a check mark") */
.sh-buy-btns .btn[aria-disabled="true"]{--bf:var(--vw-off-face,var(--cp-off));--bo:var(--cp-off-2);color:var(--vw-off-label,var(--cp-text-3));cursor:not-allowed}
.sh-buy-btns .sh-go.is-worn{color:var(--vw-done-label,var(--cp-deep));cursor:default}
.sh-buy-btns .sh-go.is-opening{cursor:progress;animation:sh-busy 600ms ease-in-out infinite alternate}
@keyframes sh-busy{to{opacity:.72}}
/* hold to buy (web/shop.js, owner 2026-11-15): the armed Buy fills left to right in the ball's neon yellow while held (--hold 0..1), growing and shaking harder as it fills;
   full, it pops and the claim screen opens. The fill is on the face itself (the slanted ::before), under the highlight band, so it follows the slant */
:root{--sh-hold-fill:#E4FF3A}
#shop-buy .sh-go.is-hold{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
#shop-buy .sh-go.is-hold::before{background:linear-gradient(180deg,rgba(255,255,255,0) 12%,rgba(255,255,255,.42) 12% 30%,rgba(255,255,255,0) 30%),
  linear-gradient(90deg,var(--sh-hold-fill) 0 calc(var(--hold,0) * 100%),transparent calc(var(--hold,0) * 100%)),var(--bf)}
#shop-buy .sh-go.is-holding{scale:calc(1 + var(--hold,0) * .08);animation:sh-hold-shake 60ms linear infinite alternate}
#shop-buy .sh-go.is-full{animation:sh-hold-pop 360ms var(--sh-spring) both}
@keyframes sh-hold-shake{from{translate:calc(var(--hold,0) * -.18rem) 0;rotate:calc(var(--hold,0) * -1.4deg)}to{translate:calc(var(--hold,0) * .18rem) 0;rotate:calc(var(--hold,0) * 1.4deg)}}
@keyframes sh-hold-pop{0%{scale:1.16}100%{scale:1}}
/* (NOTES 539) the claim screen closes as a circle back into the button (claim.css .is-unwipe); the button, Equip by now, springs out of it */
#shop-buy .sh-go.is-claimed{animation:sh-claimed 520ms var(--sh-spring) both}
@keyframes sh-claimed{0%{scale:.55}100%{scale:1}}
@media (max-width:640px){
  .sh-buy .sh-buy-box{grid-template-columns:minmax(0,1fr);justify-items:center;gap:1.4rem;padding:1.6rem 1.4rem 1.8rem}
  .sh-buy-pic{width:min(13rem,60vw)}
  .sh-buy-side{align-items:center;text-align:center} .sh-buy-tags{justify-content:center}
  .sh-buy-btns{justify-content:center}
}

/* the item preview (owner 2026-11-15, NOTES 521): a whole screen. A desktop: no scrim, the rail out of sight, the menu kid on the left wearing the item (a drag over him turns him:
   .sh-buy-swivel), the pop-up's card a panel on the right with the item's colours; the header stays (its Back and Esc go back to the rail; web/shop.js). A phone: the pop-up, the
   whole kid drawn tall above the words */
#lobby-shop[data-pv] :is(.sh-rail,.sh-sec){visibility:hidden}
#lobby-shop[data-pv]{--sh-fade:0}
.sh-buy-swivel,.sh-buy-stage{display:none}
.sh-buy[data-full]:is([data-kid],[data-stage]){background:none;-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none;place-items:center end;padding:0 var(--vr,3.4rem) 0 0;z-index:30}
.sh-buy[data-full]:is([data-kid],[data-stage]) .sh-buy-box{pointer-events:auto;grid-template-columns:minmax(0,1fr);width:min(33rem,40vw);min-width:0;max-width:none;padding:2.2rem 4.4rem 2.4rem 2.8rem;margin-top:4rem}      /* more on the right: the slant pulls the bottom right corner in by ~1.4rem, so Buy sat on the edge (owner 2026-11-15, NOTES 526) */
.sh-buy[data-full]:is([data-kid],[data-stage]) .sh-buy-box::before{transform:skewX(var(--cp-skew))}      /* the panel at the one slant (owner 2026-11-15: "the window on the preview page isnt skewed"); its words stay upright */
.sh-buy[data-full]:is([data-kid],[data-stage]) .sh-buy-box.is-pv{animation:sh-pv-in 420ms cubic-bezier(.2,1.25,.4,1) both}
@keyframes sh-pv-in{from{opacity:0;transform:translateX(9rem)}60%{opacity:1}}
/* the way in and out (owner 2026-11-15: "theres no transition to the view screen in the shop"): the rail's cards slide off to the left as the kid walks back to the middle and the panel
   swings in from the right; Back runs it the other way */
#lobby-shop[data-pv-out] :is(.sh-rail,.sh-sec){animation:sh-rail-out 240ms cubic-bezier(.5,0,.8,.4) both;pointer-events:none}
#lobby-shop[data-pv-back] :is(.sh-rail,.sh-sec){animation:sh-rail-back 340ms cubic-bezier(.2,1.1,.4,1) both}
@keyframes sh-rail-out{to{opacity:0;transform:translateX(-7rem)}}
@keyframes sh-rail-back{from{opacity:0;transform:translateX(-7rem)}}
.sh-buy.is-pv-out .sh-buy-box{animation:sh-pv-out 200ms cubic-bezier(.5,0,.8,.4) both}
@keyframes sh-pv-out{to{opacity:0;transform:translateX(9rem)}}
.sh-buy[data-full]:is([data-kid],[data-stage]) .sh-buy-pic{display:none}
.sh-buy[data-full]:is([data-kid],[data-stage]) .sh-buy-name{font-size:2.8rem}
/* an effect trail (web/shop.js trailStage): no kid to dress, so the Locker's Trails stage flies it where he would stand (the swivel's box), its canvas wider than the box as the
   Locker's (--lk-trail-cv-*), so the trail's tail runs off the left edge and never stops at the canvas's */
.sh-buy[data-full][data-stage] .sh-buy-stage{display:block;position:absolute;left:0;top:14%;bottom:4%;width:calc(100% - min(33rem,40vw) - var(--vr,3.4rem) - 2rem);pointer-events:none;overflow:hidden}
.sh-buy-stage .sh-stage-cv{position:absolute;left:-40%;top:0;width:180%;height:100%;display:block}
.sh-buy[data-full][data-kid] .sh-buy-swivel[data-on="true"]{display:block;position:absolute;left:0;top:14%;bottom:4%;width:calc(100% - min(33rem,40vw) - var(--vr,3.4rem) - 2rem);pointer-events:auto;cursor:grab;touch-action:none}
.sh-buy[data-full][data-kid] .sh-buy-swivel[data-on="true"]:active{cursor:grabbing}
.sh-buy[data-full]:not([data-kid]):not([data-stage]) .sh-buy-pic{aspect-ratio:3/4;display:flex;align-items:center;justify-content:center}
.sh-buy[data-full]:not([data-kid]):not([data-stage]) .sh-buy-pic::before{content:"";position:absolute;inset:0;z-index:-1}
.sh-buy[data-full][data-trail]:not([data-stage]) .sh-buy-pic{aspect-ratio:1}      /* a phone: the trail's picture, square as its tile */
.sh-pv-img{width:100%;height:100%;object-fit:contain;display:block}
.sh-buy-cols{display:grid;gap:1rem;width:100%} .sh-buy-cols[hidden]{display:none}
.sh-pv-row{display:grid;gap:1rem}      /* clear of the picked swatch's outer ring (.44rem past its edge), so the label never touches it (owner 2026-11-15) */
.sh-pv-lab{font-family:var(--font-display);font-size:1rem;line-height:1;color:var(--cp-text-2)}
.sh-pv-sw{display:flex;flex-wrap:wrap;gap:.7rem;--lk-swatch:2.1rem}
.sh-pv-sw .lk-swatch[aria-checked="true"]{box-shadow:0 0 0 var(--lk-ol-thin,.14rem) var(--lk-ink,#1c3150), 0 0 0 .3rem #fff, 0 0 0 .44rem var(--lk-ink,#1c3150)}
.sh-buy[data-full] .sh-pv-sw{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));justify-items:center;gap:.7rem .2rem}      /* the colours in two even rows of 8 across the panel's width (owner 2026-11-15: "too much space on the right") */
/* (NOTES 997) a row with the Default swatch (a second colour): Default in a column of its own, down both lines, so its 16 colours stay two even lines of 8; the other rows
   leave that column empty, so every row's colours line up */
.sh-buy[data-full] .sh-buy-cols:has(.lk-swatch-default) .sh-pv-sw{grid-template-columns:var(--lk-swatch) repeat(8,minmax(0,1fr))}
.sh-buy[data-full] .sh-pv-sw > .lk-swatch-default{grid-column:1;grid-row:1 / span 2;align-self:center}
.sh-buy[data-full] .sh-buy-cols:has(.lk-swatch-default) .sh-pv-sw:not(:has(.lk-swatch-default)) > :nth-child(8n+1){grid-column-start:2}
.sh-buy[data-full] .sh-buy-btns{display:grid;grid-template-columns:auto 1fr;width:100%}      /* Back at its own width, Buy takes the rest (room for Hold to buy and the price on one line) */
.sh-buy[data-full] .sh-buy-btns .btn{min-width:0;width:100%}

/* ======================================================= 6. THE RESULT CARD: the match's coins in the trophy row ======================================================= */
.trophy-coins{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:.35rem;height:2.3rem;padding:0 .8rem 0 .6rem;font-family:var(--font-display);font-weight:400;font-size:1.25rem;line-height:1;color:var(--sh-figure)}
.trophy-coins::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r,.375rem);background:var(--sh-face);transform:skewX(var(--cp-skew));box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--sh-ink), var(--cp-drop-sm)}
.trophy-coins[hidden]{display:none}
.trophy-coins .coin-ic{width:1.5rem;height:1.5rem;flex:none}
.trophy-coins .tc-n{font-weight:400}

/* ======================================================= 7. A NARROW WINDOW, A PHONE ======================================================= */
/* a narrow or upright desktop window (the home stacks, ua-phone.css): the chip takes the card's row, at its end */
@media (max-width:980px), (max-aspect-ratio: 6/5){
  html:not([data-mobile]) #screen-lobby #lobby-home .home-top:has(#btn-coins:not([hidden])) .pcard{grid-column:1 / -3}
  html:not([data-mobile]) #screen-lobby #lobby-home #btn-coins{position:relative;left:auto;top:auto;grid-row:2;grid-column:-3 / -1;justify-self:end;align-self:center;height:3.5rem;font-size:1.4rem}
  html:not([data-mobile]) #screen-lobby[data-view="shop"] .menu-body{width:100%;padding-inline:0}
  html:not([data-mobile]) #lobby-shop{--sh-d:max(8rem, min(calc((100vh - 22rem) / 2), calc((100vw - 12.7rem) / 4.6)))}
  html:not([data-mobile]) #screen-lobby[data-view="shop"] .menu-head > .sh-wallet{margin-left:auto;margin-right:.5rem;height:var(--sh-chip-h)}      /* the balance (and Reshuffle) at the bar's right end */
}
/* a phone (NOTES 149): the Locker and the Shop share the row under the tiles; the plate keeps the Locker's own phone plate */
html[data-mobile] #lobby-home .tiles #btn-shop{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--lk-plate-w);height:var(--lk-plate-h);padding:0;margin:0;margin-top:.4rem;isolation:isolate;cursor:pointer;
  grid-column:2;justify-self:start;order:9;--bf:var(--lk-white);--bdx:var(--cp-drop-x);--bdy:var(--cp-drop-y);border:0;background:none;box-shadow:none}
html[data-mobile] #lobby-home .tiles #btn-shop::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--lk-r);background:var(--bf);transform:skewX(var(--lk-skew));box-shadow:inset 0 0 0 var(--lk-plate-ol) var(--lk-ink);height:auto;opacity:1;border:0;clip-path:none}
html[data-mobile] #lobby-home .tiles #btn-shop::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:var(--lk-r);background:var(--lk-ink);transform:translate(var(--bdx),var(--bdy)) skewX(var(--lk-skew));box-shadow:none;opacity:1;animation:none}
html[data-mobile] #lobby-home .tiles #btn-shop .ua-body,html[data-mobile] #lobby-home .tiles #btn-shop .cnt{display:contents}
html[data-mobile] #lobby-home .tiles #btn-shop :is(.hl,.drop,.face,.slash){display:none}
html[data-mobile] #lobby-home .tiles #btn-shop .hp-ic{width:var(--lk-plate-icon);height:var(--lk-plate-icon)}
html[data-mobile] #lobby-home .tiles #btn-shop:active{transform:var(--lk-press);--bdx:calc(var(--cp-drop-x) * .35);--bdy:calc(var(--cp-drop-y) * .35)}
/* the phone's Shop: the header's bar keeps Back and the title; the time and the balance sit in it; every tile 15rem by 18rem (NOTES 542: Featured is four like Daily's), one column at a time (snap mandatory) */
html[data-mobile] #lobby-shop{--sh-d:18rem;--sh-tw:15rem;--sh-fh:calc(var(--sh-d) * 2 + var(--sh-gap));--sh-gap:1.5rem;--sh-sec-gap:2.2rem;--sh-pad-x:1.6rem}
html[data-mobile] #lobby-shop .sh-rail{scroll-snap-type:x mandatory}
html[data-mobile] #screen-lobby[data-view="shop"] .menu-head{position:relative;overflow:visible}
html[data-mobile] #screen-lobby[data-view="shop"] .menu-head > :is(.sh-chip,.sh-wallet){position:absolute;top:calc(100% + .9rem);height:3.2rem;--sh-chip-ic:1.6rem;z-index:3} html[data-mobile] #screen-lobby[data-view="shop"] .menu-head :is(.sh-time,.sh-wallet > .sh-chip){font-size:1.35rem;padding:0 .9rem 0 .8rem} html[data-mobile] .sh-wallet{gap:.8rem}      /* a row of their own under the bar: the bar keeps Back and the title whole */
html[data-mobile] #screen-lobby[data-view="shop"] .menu-head > .sh-time{left:calc(var(--s-5,1.6rem) + .3rem)} html[data-mobile] #screen-lobby[data-view="shop"] .menu-head > .sh-wallet{right:calc(var(--s-5,1.6rem) + .3rem)}
html[data-mobile] #screen-lobby[data-view="shop"] .head-end{display:none}      /* (the count online and the account button: the Shop's bar holds its own two chips) */

/* ======================================================= 8. REDUCED MOTION ======================================================= */
@media (prefers-reduced-motion: reduce){
  #lobby-shop[data-pv-out] :is(.sh-rail,.sh-sec),#lobby-shop[data-pv-back] :is(.sh-rail,.sh-sec),.sh-buy .sh-buy-box.is-pv,.sh-buy.is-pv-out .sh-buy-box,
  #lobby-shop.is-in .sh-lab,#lobby-shop.is-in .sh-grid .lk-item,.cc-n.is-pop,.sh-buy-btns .sh-go.is-opening,#btn-shop.is-opening .hp-ic,#btn-coins.is-opening .coin-ic,.sh-reroll.is-opening .sh-shuffle{animation:none!important} #shop-buy .sh-go.is-holding,#shop-buy .sh-go.is-full{animation:none!important;scale:none}
  #btn-coins,#btn-coins:hover,.sh-reroll,.sh-reroll:hover{transform:none;transition:none}
}

/* ======================================================= 8. THE TOP BAR (NOTES 772, owner 2026-11-18) ======================================================= */
/* "This is a very awkward place to put the currency" (picked: the top-right bar) and "perhaps we get rid of the logo in the top right; we already see it on the court
   behind anyways": the wordmark leaves the home's top bar (kept for screen readers: it is the page's h1), and the coins sit in that bar, one block left of the plates
   (Connect, the inbox when it shows, Settings), a slim slanted pill; it still opens the Shop. The card keeps its whole row */
html:not([data-mobile]) #lobby-home .home-wm{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
@media (min-width:981px) and (min-aspect-ratio: 601/500){
  html:not([data-mobile]) #screen-lobby #lobby-home #btn-coins{left:auto;right:calc(var(--hb-gut) + var(--ib-step) * 2 + .3rem);top:var(--hb-top);height:4.25rem}
  html[data-inbox]:not([data-mobile]) #screen-lobby #lobby-home #btn-coins{right:calc(var(--hb-gut) + var(--ib-step) * 3 + .3rem)}
}
@media (max-width:980px), (max-aspect-ratio: 6/5){
  html:not([data-mobile]) #screen-lobby #lobby-home .home-top:has(#btn-coins:not([hidden])) .pcard{grid-column:1 / -1}
  html:not([data-mobile]) #screen-lobby #lobby-home #btn-coins{grid-row:1;grid-column:auto;grid-area:wm;justify-self:end}
}

/* (NOTES 871) the press-and-hold glyph on the armed Buy (web/shop.js holdIcon): a hand, its finger on a round button, upright in the slanted button, the label's colour;
   its ring fills with the hold (--hold); hidden when the Buy is a plain press (Sign in, short of coins, owned) */
.sh-go-hold{display:none;flex:none;width:1.6em;height:1.6em;margin:-.2em -.3rem -.2em -.2rem}
.sh-go-hold svg{display:block;width:100%;height:100%;overflow:visible}
#shop-buy .sh-go.is-hold .sh-go-hold{display:inline-block}
.sh-go-hold .sh-hold-track{opacity:.4}
.sh-go-hold .sh-hold-ring{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--hold,0))}
