/* The shop's front page as shelves: rows you slide, each a different reason to look. Whole outfits are shown
   worn by the rider on tall cards; one outfit opens to a page with every piece listed. Scoped to the shop. */

#gamePanel[data-panel=store] .shop-shelf{margin:0 0 20px}
#gamePanel[data-panel=store] .shop-shelf>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 4px}
#gamePanel[data-panel=store] .shop-shelf h3{margin:3px 0 0;font:900 italic 38px/.9 var(--display);color:#fff;letter-spacing:.005em}
#gamePanel[data-panel=store] .shop-shelf .shop-kicker{font-size:10px;letter-spacing:.2em;color:#9ed5fe}
#gamePanel[data-panel=store] .shop-shelf[data-shelf=outfits] .shop-kicker{color:#9fe3ff}
#gamePanel[data-panel=store] .shop-shelf[data-shelf=top] .shop-kicker{color:#6abeff}
#gamePanel[data-panel=store] .shop-shelf[data-shelf=reach] .shop-kicker{color:#b8e0fe}
.shop-shelf-tools{display:flex;align-items:center;gap:6px;flex:none}
.shop-shelf-tools button{min-height:40px;border:1px solid #ffffff26;background:#ffffff0d;color:#fff;transition:background-color .2s,border-color .2s,transform .2s}
.shop-shelf-tools button[data-shelf-slide]{width:40px;padding:0;border-radius:12px;font:900 22px/1 var(--display)}
.shop-shelf-more{padding:0 14px;border-radius:999px;font:800 11px/1 var(--display);letter-spacing:.12em}
.shop-shelf-count{margin-right:6px;font:800 10px/1 var(--body);letter-spacing:.14em;color:#9fb1c3}
.shop-shelf-tools button:hover{background:#ffffff1f;border-color:#ffffff66}
.shop-shelf-tools button:active{transform:scale(.94)}

/* The row: padding gives a lifted card and its glow room inside the scroller. */
.shop-shelf-row{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(158px,17.1vw,208px);gap:12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:12px 40px 30px 2px;margin:0 -2px -14px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent)}
.shop-shelf-row::-webkit-scrollbar{display:none}
.shop-shelf-row>*{scroll-snap-align:start;min-width:0}
.shop-shelf[data-shelf=outfits] .shop-shelf-row{grid-auto-columns:clamp(196px,20.6vw,250px)}
#gamePanel[data-panel=store] .shop-shelf .gear-store-card{animation:shelf-in .5s cubic-bezier(.2,.75,.25,1) both;animation-delay:calc(var(--shop-index,0)*45ms)}
@keyframes shelf-in{from{opacity:.25;transform:translateX(26px)}to{opacity:1;transform:none}}

/* ---- a whole outfit ---- */
#gamePanel[data-panel=store] .gear-store-card.outfit-card>.gear-image{aspect-ratio:3/4;background:
  linear-gradient(180deg,transparent 62%,#0a1420 100%),
  radial-gradient(40% 5% at 50% 88%,#000000b0,transparent 70%),
  repeating-linear-gradient(115deg,#ffffff0b 0 2px,transparent 2px 22px),
  radial-gradient(90% 70% at 50% 30%,color-mix(in srgb,var(--outfit) 70%,#fff) 0%,color-mix(in srgb,var(--outfit) 55%,#0a1422) 36%,color-mix(in srgb,var(--outfit-accent) 24%,#0a1422) 70%,#0a1422 100%)}
#gamePanel[data-panel=store] .gear-store-card.outfit-card .gear-image>img{object-fit:cover;object-position:50% 40%}
.outfit-swatch{display:block;width:34%;aspect-ratio:1/1.9;border-radius:40% 40% 14% 14%;background:linear-gradient(180deg,var(--outfit) 0 44%,var(--outfit-accent) 44% 54%,var(--outfit) 54%);opacity:.5}
.outfit-flag{position:absolute;top:10px;right:10px;z-index:1;padding:6px 9px;border-radius:9px;background:var(--brand-blue);color:var(--brand-navy);font:900 italic 16px/1 var(--display);letter-spacing:.04em;rotate:3deg;box-shadow:0 6px 14px -4px #43a6ed}
.outfit-flag.is-owned{background:linear-gradient(135deg,#7fd6c8,#3aa693);color:#062019;box-shadow:0 6px 14px -4px #3aa693;rotate:0deg}
#gamePanel[data-panel=store] .gear-store-card .outfit-count{font:800 10px/1 var(--body);font-style:normal;letter-spacing:.14em;color:#9fb1c3}
#gamePanel[data-panel=store] .gear-store-card.outfit-card strong{font-size:24px}
#gamePanel[data-panel=store] .gear-store-grid.outfit-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.outfit-intro{margin:0 0 14px}
.outfit-intro p{margin:0;max-width:62ch;color:#b9c8d8;font:500 14px/1.5 var(--body)}
#gamePanel[data-panel=store] .outfit-intro .shop-section-title{margin:3px 0 8px}

/* ---- one outfit, opened ---- */
.outfit-pieces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 14px;padding:0;list-style:none}
.outfit-pieces button{display:flex;align-items:center;gap:9px;width:100%;min-height:58px;padding:5px 10px 5px 5px;border-radius:14px;border:1px solid #ffffff1f;background:#07121c99;color:#fff;text-align:left;transition:border-color .2s,transform .2s,background-color .2s}
.outfit-pieces button:hover{border-color:var(--rarity);transform:translateY(-2px);background:#0b1a28}
.outfit-pieces .gear-image{flex:none;width:48px;height:48px;aspect-ratio:auto;border-radius:10px;background:radial-gradient(80% 80% at 50% 45%,#31495c,#14232f)}
.outfit-pieces span:last-child{display:grid;gap:4px;min-width:0}
.outfit-pieces b{overflow:hidden;font:800 11px/1.1 var(--display);letter-spacing:.06em;text-overflow:ellipsis;white-space:nowrap}
.outfit-pieces small{font:800 10px/1 var(--body);letter-spacing:.1em;color:#b8e0fe}
.outfit-pieces .is-owned small{color:#7fd6c8}
#gamePanel[data-panel=store] .outfit-product .outfit-saving{margin:0 0 12px;color:#c7d6e4;font:500 13px/1.45 var(--body);letter-spacing:.01em;text-transform:none}
#gamePanel[data-panel=store] .outfit-product h3{font-size:clamp(38px,4.6vw,66px)}
#gamePanel[data-panel=store] .outfit-product .store-live-copy{padding-block:clamp(16px,2.6vh,30px)}
#gamePanel[data-panel=store] .outfit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#gamePanel[data-panel=store] .outfit-actions .shop-item-price{margin:0}
#gamePanel[data-panel=store] .outfit-actions .shop-item-price s{color:#9fb1c3;font-size:.72em}
/* A laptop screen is short: the outfit, its six pieces and the button all stay in view. */
@media(max-height:820px) and (min-width:761px){
  #gamePanel[data-panel=store] .outfit-product h3{font-size:clamp(34px,4vw,52px);margin-bottom:6px}
  #gamePanel[data-panel=store] .outfit-product .store-live-copy>p:not(.outfit-saving):not(.shop-notice){display:none}
  .outfit-pieces{margin:8px 0 10px;gap:6px}
  .outfit-pieces button{min-height:50px}
  .outfit-pieces .gear-image{width:40px;height:40px}
  #gamePanel[data-panel=store] .outfit-product .outfit-saving{margin-bottom:10px;font-size:12px}
  #gamePanel[data-panel=store] .outfit-product .shop-stage{min-height:0}
}

/* The headline deal asks for a bigger picture, so it can fill its tile. */
#gamePanel[data-panel=store] .deal-card.deal-headline .gear-image>img{object-fit:contain;-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 97%);mask-image:linear-gradient(180deg,#000 72%,transparent 97%)}

@media(max-width:760px){
  #gamePanel[data-panel=store] .shop-shelf h3{font-size:30px}
  .shop-shelf-tools button[data-shelf-slide],.shop-shelf-count{display:none}
  .shop-shelf-row{grid-auto-columns:44vw;gap:9px;padding-right:24px}
  .shop-shelf[data-shelf=outfits] .shop-shelf-row{grid-auto-columns:56vw}
  #gamePanel[data-panel=store] .gear-store-grid.outfit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .outfit-pieces{grid-template-columns:repeat(2,minmax(0,1fr))}
  .outfit-pieces b{white-space:normal}
}
@media(max-height:560px) and (orientation:landscape){
  .shop-shelf-row{grid-auto-columns:clamp(150px,22vw,190px)}
  .shop-shelf[data-shelf=outfits] .shop-shelf-row{grid-auto-columns:clamp(160px,24vw,210px)}
}
@media(pointer:coarse){.shop-shelf-tools button[data-shelf-slide]{display:none}}
body.reduced-motion #gamePanel[data-panel=store] .shop-shelf .gear-store-card{animation:none}
body.reduced-motion .shop-shelf-row{scroll-behavior:auto}
@media(prefers-reduced-motion:reduce){#gamePanel[data-panel=store] .shop-shelf .gear-store-card{animation:none}}
