/* The Shop (board #88; v5 for Dodd's "making the shop feel more like a proper shop section"). Markup: shop.js. Needs
   pass.css first (tokens, the reward card, buttons). A game item shop in the IRIS world:
     - one featured hero: the VIP pass on a gilt plate, the words left, its showpieces fanned like a hand of cards right;
     - then clean category rows (Skins, Card backs, Membership and packs), each a heading with one short hint and a grid
       of same-size item tiles;
     - each tile: the item standing in its own rarity aura under a light from above, on a soft floor shadow, with a
       band along the bottom for its name, its rarity and its price chip. Hover lifts it into the light and leans it
       toward the pointer; a skin's "Try it on" shows on hover or focus (always on touch).
   Sizes follow the desk's density tokens (style.css :root) so the Shop sits at the same scale as every other page. */
.shop { --tile-gap: clamp(14px, 1.4vw, 22px); display: grid; gap: clamp(40px, 4.4vh, 60px); width: 100%; max-width: 1320px; min-width: 0; margin: 0 auto; padding-bottom: 64px; }

/* ---------- title ---------- */
.sh-head { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.sh-head h1 { margin: 0; font: 400 var(--fs-page, clamp(36px, 3.3vw, 56px))/1 var(--bp-serif); letter-spacing: -.016em; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.sh-back { order: -1; min-height: 40px; padding: 0 15px 0 10px; }
.sh-back svg { width: 18px; height: 18px; }

/* ---------- a category row: the heading and its one hint on one line, the grid under it ---------- */
.sh-sec { display: grid; gap: 18px; min-width: 0; }
.sh-sec-head { position: relative; isolation: isolate; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.sh-h { margin: 0; font: 400 var(--fs-h2, clamp(22px, 1.8vw, 28px))/1.1 var(--bp-serif); letter-spacing: -.01em; }
.sh-sec-head p { margin: 0; font: 400 15.5px/1.4 var(--bp-sans); color: var(--bp-ink3); }
/* the headings can land on the bright statue behind the desk: a soft dark pool keeps them readable */
.sh-sec-head::after { content: ""; position: absolute; left: -40px; top: 50%; z-index: -1; width: min(640px, 100%); height: calc(100% + 36px); transform: translateY(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 4, 5, .72), rgba(6, 4, 5, .4) 60%, transparent); }
.sh-sec-head :is(h2, p) { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 16px rgba(0, 0, 0, .7); }

/* ---------- prices: one gilt chip; "Coming soon" is a quiet one, active is green ---------- */
.sh-price { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font: 600 15px/1 var(--bp-sans); color: #1c1306; background: var(--bp-gilt); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .6), 0 4px 12px rgba(0, 0, 0, .35); }
.sh-price.is-soon { font-weight: 500; font-size: 13.5px; color: var(--bp-ink2); background: rgba(6, 4, 5, .6); box-shadow: inset 0 0 0 1px var(--bp-line-hi); }
.sh-price.is-on { color: var(--t-hero, #8fdcae); background: rgba(10, 30, 20, .6); box-shadow: inset 0 0 0 1px rgba(143, 220, 174, .45); }
.sh-price svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the grid: the same tile size in every row ---------- */
.sh-grid { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--tile-gap); }

/* ---------- an item tile ---------- */
.sh-item { --tx: 0; --ty: 0; --lift: 0px; position: relative; isolation: isolate; display: grid; grid-template-rows: minmax(0, 1fr) auto; aspect-ratio: 5 / 7; min-width: 0; border-radius: var(--r-lg, 12px); overflow: hidden;
  background: radial-gradient(80% 56% at 50% 38%, color-mix(in oklab, var(--rc) calc(14% + var(--glow) * 55%), transparent), transparent 74%),
    linear-gradient(180deg, color-mix(in oklab, var(--rc) 13%, #181314), #0a0708 90%);
  /* its own aura: a soft halo of its rarity round the whole tile, so items read apart (rarer = wider) */
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rc) calc(26% + var(--glow) * 70%), transparent), inset 0 1px 0 rgba(255, 238, 214, .07), 0 14px 30px rgba(0, 0, 0, .45),
    0 0 calc(22px + var(--halo)) -8px color-mix(in oklab, var(--rc) calc(22% + var(--glow) * 55%), transparent);
  transform: translateY(var(--lift)); transition: transform 220ms var(--bp-out), box-shadow 220ms ease; }
.sh-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bp-dots); opacity: .8; pointer-events: none; } /* the print halftone */
.sh-item::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, color-mix(in oklab, var(--rc) 30%, transparent), var(--rc) 22%, var(--rc) 78%, color-mix(in oklab, var(--rc) 30%, transparent)); box-shadow: 0 0 16px var(--rc); opacity: .85; } /* the rarity edge */
.sh-stage { position: relative; display: grid; place-items: center; min-height: 0; perspective: 900px; }
.sh-light { position: absolute; left: 50%; top: -24px; bottom: 18%; width: 78%; transform: translateX(-50%); pointer-events: none; z-index: -1; opacity: .75; transition: opacity 220ms ease;
  background: radial-gradient(50% 80% at 50% 0%, color-mix(in oklab, var(--rc) 32%, rgba(255, 238, 210, .18)), transparent 75%);
  -webkit-mask: radial-gradient(60% 100% at 50% 0%, #000 40%, transparent 85%); mask: radial-gradient(60% 100% at 50% 0%, #000 40%, transparent 85%); }
.sh-card { position: relative; z-index: 1; transform: translateY(4px) rotateY(calc(var(--tx) * 14deg)) rotateX(calc(var(--ty) * -9deg)); transition: transform 260ms var(--bp-out); }
/* the item itself, large, the way the Inventory shows it (pass.js art(); the scale --s sizes it) */
.sh-art { --s: 1.72; display: grid; place-items: center; width: 150px; height: 172px; }
.sh-art .rw-art:not(.rw-meeting) { width: 100%; height: 100%; }
.sh-art.rk-back { --s: 1.86; }
.sh-art.rk-pack { --s: 1.8; }
.sh-art :is(.cb-card, .rw-pk) { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .7)) drop-shadow(0 0 24px color-mix(in oklab, var(--rc) 36%, transparent)); }
.sh-art .rw-plate i { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sw) 50%, rgba(236, 228, 216, .14)), inset 0 1px 0 rgba(255, 238, 214, .1), 0 14px 22px rgba(0, 0, 0, .6), 0 0 30px -6px var(--sw); }
.sh-floor { position: absolute; left: 50%; bottom: 6%; width: 64%; height: 14px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.sh-band { display: grid; gap: 8px; padding: 12px 14px 14px; background: linear-gradient(180deg, rgba(6, 4, 5, .1), rgba(6, 4, 5, .72));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--rc) 24%, rgba(236, 228, 216, .06)); }
.sh-band h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 19px/1.2 var(--bp-serif); color: var(--bp-bone); }
.sh-buyrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.sh-kind { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.3 var(--bp-sans); color: color-mix(in oklab, var(--rc) 88%, var(--bp-bone)); }
.sh-kind i { width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.sh-buy { min-height: 36px; padding: 0 12px; font-size: 14.5px; }
.sh-plan .sh-kind { font-weight: 500; color: var(--bp-ink2); }
.sh-acts { position: absolute; top: 10px; right: 10px; z-index: 2; opacity: 0; transform: translateY(-3px); transition: opacity 160ms ease, transform 180ms var(--bp-out); }
.sh-item:is(:hover, :focus-within) .sh-acts, .sh-item.is-trying .sh-acts { opacity: 1; transform: none; }
@media (hover: none) { .sh-acts { opacity: 1; transform: none; } }
.sh-try { min-height: 32px; padding: 0 11px 0 9px; gap: 6px; font-size: 13.5px; background: rgba(6, 4, 5, .78); }
.sh-try svg { width: 15px; height: 15px; }
.sh-item.is-trying { box-shadow: inset 0 0 0 1.5px var(--bp-gold), 0 0 0 1px rgba(240, 200, 112, .3), 0 14px 30px rgba(0, 0, 0, .45), 0 0 30px -8px var(--bp-gold); }
@media (hover: hover) and (pointer: fine) {
  .sh-item:hover { --lift: -5px; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rc) 66%, transparent), 0 24px 44px rgba(0, 0, 0, .55), 0 0 calc(34px + var(--halo)) -8px var(--rc); }
  .sh-item:hover .sh-light { opacity: 1; }
  .sh-item:hover .sh-card { transform: translateY(0) scale(1.05) rotateY(calc(var(--tx) * 14deg)) rotateX(calc(var(--ty) * -9deg)); }
}

/* membership plans: a tile of the same size whose picture is its price */
.sh-plan { --rc: var(--t-mortal, #cfc6bb); --glow: .1; --halo: 0px; }
.sh-plan.is-best { --rc: var(--t-titan, #f0c870); --glow: .32; --halo: 14px; }
.sh-plan-price { display: grid; justify-items: center; gap: 6px; margin: 0; text-align: center; }
.sh-plan-price b { font: 400 clamp(44px, 3.6vw, 58px)/1 var(--bp-serif); letter-spacing: -.02em; color: var(--bp-bone); font-variant-numeric: lining-nums; }
.sh-plan.is-best .sh-plan-price b { color: #f6dc94; text-shadow: 0 0 22px rgba(240, 200, 112, .3); }
.sh-plan-price span { font: 400 15px/1.2 var(--bp-sans); color: var(--bp-ink2); }
.sh-flag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(28, 19, 6, .82); box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .55); font: 600 13.5px/1 var(--bp-sans); color: #f6dfa6; }

/* ---------- the featured hero: the VIP pass ---------- */
.sh-vip { --tx: 0; --ty: 0; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 32px; align-items: center; min-height: clamp(300px, 38vh, 420px);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3.4vw, 52px); border-radius: 16px; overflow: hidden;
  background: radial-gradient(55% 90% at 76% 50%, rgba(240, 200, 112, .18), transparent 70%), var(--bp-dots), linear-gradient(160deg, rgba(36, 27, 17, .95), rgba(10, 8, 7, .97) 66%);
  box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .48), inset 0 0 0 8px rgba(8, 6, 7, .5), inset 0 0 0 9px rgba(240, 200, 112, .14), 0 24px 50px rgba(0, 0, 0, .5), 0 0 60px -22px rgba(240, 200, 112, .4); }
.sh-vip-beam { position: absolute; right: 12%; top: -30%; width: 38%; height: 130%; z-index: -1; pointer-events: none; /* a light falling on the cards */
  background: radial-gradient(50% 70% at 50% 0%, rgba(255, 238, 210, .18), transparent 70%); clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); filter: blur(10px); }
.sh-vip-text { display: grid; justify-items: start; gap: 12px; min-width: 0; max-width: 560px; }
.sh-vip-text .bp-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font: 600 14px/1.2 var(--bp-sans); color: var(--bp-gold); }
.sh-vip-text .bp-kicker span { padding-left: 12px; box-shadow: inset 1px 0 0 var(--bp-line-hi); font-weight: 500; color: var(--bp-ink2); }
.sh-vip h3 { margin: 0; font: 400 clamp(34px, 3.2vw, 50px)/1.04 var(--bp-serif); letter-spacing: -.012em; text-shadow: 0 2px 20px rgba(0, 0, 0, .55); }
.sh-vip-line { margin: 0; max-width: 42ch; font: 400 16px/1.5 var(--bp-sans); color: var(--bp-ink2); }
.sh-holds { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; padding: 0; list-style: none; }
.sh-holds li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 999px; font: 500 14px/1.2 var(--bp-sans); color: var(--bp-ink2);
  background: rgba(6, 4, 5, .45); box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .22); }
.sh-holds b { font: 400 16px/1 var(--bp-serif); color: #f6dc94; font-variant-numeric: lining-nums; }
.sh-vip-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sh-vip-buy .bp-btn { min-height: 48px; min-width: 190px; font-size: 16px; }
.sh-fan { position: relative; align-self: stretch; min-height: 280px; --rw-w: 172px; --rw-h: 232px; perspective: 1000px; }
.sh-fan-card { position: absolute; left: 58%; top: 50%; margin: -116px 0 0 -86px; transform-origin: 50% 120%; z-index: calc(var(--i) + 1); /* a hand of cards: each over the last */
  transform: rotate(calc((var(--i) - 1) * 13deg)) translateX(calc((var(--i) - 1) * 56px)) rotateY(calc(var(--tx) * 12deg)); transition: transform 420ms var(--bp-out); }
.sh-fan-card:not(:last-child) :is(.rw-foot, .rw-back small) { visibility: hidden; } /* only the front card speaks */
.sh-fan-card .rw { --s: 1.54; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rc) 60%, transparent), 0 18px 34px rgba(0, 0, 0, .6), 0 0 30px -8px var(--rc); }
@media (hover: hover) and (pointer: fine) { .sh-vip:hover .sh-fan-card { transform: rotate(calc((var(--i) - 1) * 16deg)) translateX(calc((var(--i) - 1) * 70px)) translateY(-8px) rotateY(calc(var(--tx) * 12deg)); } }
.shop.is-enter .sh-fan-card { animation: sh-deal 640ms calc(200ms + var(--i) * 90ms) var(--bp-out) backwards; }
@keyframes sh-deal { from { opacity: 0; transform: translateY(30px) rotate(0deg); } }

/* the fitting bar: you're trying a skin on. It sits right under the title and sticks to the top as you browse */
.sh-trying { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; gap: 14px; margin: -20px 0 -14px; padding: 10px 10px 10px 16px;
  border-radius: var(--r-lg, 12px); background: radial-gradient(40% 160% at 0% 50%, rgba(240, 200, 112, .08), transparent 70%), rgba(12, 9, 10, .96);
  box-shadow: inset 0 0 0 1px var(--bp-line-hi), inset 0 1px 0 rgba(255, 238, 214, .07), 0 16px 40px rgba(0, 0, 0, .55); font: 400 15.5px/1.4 var(--bp-sans); color: var(--bp-ink2);
  animation: sh-bar 320ms var(--bp-out) both; }
.sh-trying[hidden] { display: none; }
.sh-trying > span:not(.sh-swatch) { flex: 1; min-width: 0; }
.sh-trying b { color: var(--bp-bone); font-weight: 600; }
.sh-trying .bp-btn { flex: none; min-height: 40px; }
.sh-swatch { flex: none; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, color-mix(in oklab, var(--sw) 55%, #fff), var(--sw) 45%, color-mix(in oklab, var(--sw) 50%, #000)); box-shadow: 0 0 12px color-mix(in oklab, var(--sw) 50%, transparent); }
@keyframes sh-bar { from { opacity: 0; transform: translateY(-10px); } }

/* entrance: the sections rise in order, once; the tiles of each row follow by a beat (capped) */
.shop.is-enter > * { animation: sh-in 420ms var(--bp-out) both; }
.shop.is-enter > :nth-child(3) { animation-delay: 50ms; }
.shop.is-enter > :nth-child(4) { animation-delay: 110ms; }
.shop.is-enter > :nth-child(n + 5) { animation-delay: 160ms; }
.shop.is-enter .sh-grid > .sh-item { animation: sh-in 440ms calc(160ms + var(--n, 0) * 40ms) var(--bp-out) backwards; }
.shop.is-enter .sh-grid > .sh-item:nth-child(2) { --n: 1; } .shop.is-enter .sh-grid > .sh-item:nth-child(3) { --n: 2; }
.shop.is-enter .sh-grid > .sh-item:nth-child(4) { --n: 3; } .shop.is-enter .sh-grid > .sh-item:nth-child(n + 5) { --n: 4; }
@keyframes sh-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- sizes: bigger screens get a larger item, narrower ones fewer columns ---------- */
@container (min-width: 1240px) {
  .sh-art { --s: 1.92; width: 168px; height: 192px; }
  .sh-art.rk-back { --s: 2.06; } .sh-art.rk-pack { --s: 2; }
  .sh-band h3 { font-size: 21px; }
}
@container (max-width: 1060px) { .sh-grid { --cols: 4; } }
@container (max-width: 860px) {
  .sh-vip { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sh-fan { order: -1; min-height: 230px; --rw-w: 128px; --rw-h: 172px; }
  .sh-fan-card { left: 50%; margin: -86px 0 0 -64px; }
  .sh-fan-card .rw { --s: 1.14; }
  .sh-grid { --cols: 3; }
}
@container (max-width: 620px) {
  .shop { gap: 32px; }
  .sh-head h1 { font-size: 40px; }
  .sh-vip { padding: 22px 18px; }
  .sh-vip-buy .bp-btn { width: 100%; }
  .sh-grid { --cols: 2; --tile-gap: 12px; }
  .sh-art { --s: 1.3; width: 112px; height: 130px; }
  .sh-art.rk-back { --s: 1.4; } .sh-art.rk-pack { --s: 1.36; }
  .sh-band { padding: 10px 12px 12px; gap: 6px; }
  .sh-buyrow { flex-wrap: wrap; gap: 6px; }
  .sh-band h3 { font-size: 17px; }
  .sh-acts { top: 8px; right: 8px; }
  .sh-try { min-height: 30px; padding: 0 9px; }
  .sh-try span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the eye alone; the words stay for screen readers */
  .sh-plan-price b { font-size: 40px; }
  .sh-trying { top: 10px; flex-wrap: wrap; margin: -10px 0 -6px; }
  .sh-trying > span:not(.sh-swatch) { flex-basis: calc(100% - 38px); }
  .sh-trying .bp-btn { flex: 1; }
}
/* ---------- Hours (board #115, hours.js + hours.css): the balance, the bundles, prices in Hours ---------- */
.sh-head .hr-chip { align-self: center; min-height: 44px; padding-right: 16px; translate: 0 4px; }
.sh-head .hr-chip .hr-coin { width: 24px; height: 24px; }
.sh-head .hr-chip-n { font-size: 22px; }
/* a price in Hours: the gilt chip, pressable; first press asks ("Buy for 30?"), the second buys */
button.sh-price { border: 0; cursor: pointer; transition: transform 140ms var(--bp-out), box-shadow 180ms ease, filter 180ms ease; }
.sh-price.is-hours { gap: 6px; padding: 4px 12px 4px 5px; }
.sh-price.is-hours .hr-coin { width: 20px; height: 20px; }
.sh-price.is-hours b { font: 600 16px/1 var(--bp-sans); font-variant-numeric: tabular-nums; }
.sh-price.is-hours span { font-weight: 500; font-size: 14px; }
button.sh-price:active { transform: scale(.96); }
button.sh-price:focus-visible { outline: 2px solid var(--bp-gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { button.sh-price:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .6), 0 4px 14px rgba(0, 0, 0, .4), 0 0 18px -4px rgba(240, 200, 112, .7); } }
.sh-price.is-armed { color: #1c1306; background: linear-gradient(180deg, #fff0bf, #f0c870 60%, #c99a45); box-shadow: 0 0 0 2px rgba(10, 8, 7, .9), 0 0 0 3.5px #f6dc94, 0 0 26px -2px rgba(240, 200, 112, .8); animation: sh-arm 1.1s ease-in-out infinite; }
@keyframes sh-arm { 50% { box-shadow: 0 0 0 2px rgba(10, 8, 7, .9), 0 0 0 3.5px #f6dc94, 0 0 34px 0 rgba(240, 200, 112, .95); } }
.sh-price.is-frozen, .sh-buy.is-frozen { filter: grayscale(.85) brightness(.8); }
.is-deny { animation: sh-deny 260ms cubic-bezier(.36, .07, .19, .97); }
@keyframes sh-deny { 20% { translate: -5px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
/* an item you bought: "Yours", and a gold flash once */
.sh-item.is-mine::after { background: linear-gradient(90deg, transparent, #f6dc94 22%, #f6dc94 78%, transparent); box-shadow: 0 0 16px #f0c870; }
.sh-item.is-bought { animation: sh-bought 900ms var(--bp-out); }
@keyframes sh-bought { 25% { box-shadow: inset 0 0 0 2px #f6dc94, 0 0 46px -4px rgba(240, 200, 112, .9); } }

/* the Get Hours row: the test-mode tag beside the hint */
.sh-testnote { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font: 600 12.5px/1 var(--bp-sans); letter-spacing: .06em; text-transform: uppercase; color: #f6dfa6; background: rgba(28, 19, 6, .82); box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .45); }
.sh-bundle .sh-band h3 { display: flex; align-items: baseline; gap: 7px; }
.sh-bundle .sh-band h3 b { font: 400 30px/1 var(--bp-serif); color: #f6dc94; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.sh-bundle .sh-kind { font-weight: 500; color: var(--bp-ink2); }
.sh-usd { flex: none; font: 600 16px/1 var(--bp-sans); color: var(--bp-bone); font-variant-numeric: tabular-nums; }
.sh-buy.is-test { gap: 8px; }
.sh-testtag { padding: 3px 6px; border-radius: 5px; font: 700 12.5px/1 var(--bp-sans); letter-spacing: .08em; text-transform: uppercase; color: #f6dfa6; background: rgba(6, 4, 5, .55); box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .55); }
.sh-buy.is-gold .sh-testtag { color: #1c1306; background: rgba(255, 246, 220, .5); box-shadow: inset 0 0 0 1px rgba(28, 19, 6, .4); }
/* the hoard: coins piled higher each bundle (a stand-in until Codex's bundle-1..5 land: an <img class="sh-hoard-art">) */
.sh-bundle { grid-template-columns: minmax(0, 1fr); }
.sh-hoard { --c: 42px; position: relative; width: min(calc(var(--c) * 5.2), 100%); height: calc(var(--c) * .62 * var(--rows) + var(--c) * .7); transform: translateY(6px); }
.sh-hoard span { position: absolute; left: 50%; bottom: 0; width: var(--c); height: var(--c); transform: translate(calc(-50% + var(--x) * var(--c) * .86), calc(var(--y) * var(--c) * -.6)) rotate(var(--r, 0deg));
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.sh-hoard .hr-coin { width: 100%; height: 100%; filter: none; }
.sh-hoard-art { width: 86%; max-height: 92%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .65)); }
@media (hover: hover) and (pointer: fine) { .sh-bundle:hover .sh-hoard { transform: translateY(2px) scale(1.04); } }
.sh-hoard { transition: transform 260ms var(--bp-out); }
/* frozen: the balance stays on show, nothing can be spent */
.sh-frozen { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r-lg, 12px); font: 400 15.5px/1.45 var(--bp-sans); color: #cfe2ef;
  background: radial-gradient(40% 160% at 0% 50%, rgba(150, 190, 220, .14), transparent 70%), rgba(10, 11, 14, .9); box-shadow: inset 0 0 0 1px rgba(160, 196, 224, .4); }
.sh-frozen > span { flex: 1; min-width: 0; }
.sh-frozen b { color: #eef5fa; }
.sh-frozen svg, .sh-toast svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sh-frozen .bp-btn { flex: none; min-height: 40px; }
/* what just happened: a note that rises at the bottom of the screen and goes after a few seconds */
.sh-toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; display: flex; align-items: center; gap: 12px; max-width: min(620px, calc(100vw - 32px)); padding: 10px 12px 10px 14px; border-radius: 14px;
  font: 400 15.5px/1.4 var(--bp-sans); color: var(--bp-ink2); background: rgba(12, 9, 10, .97); box-shadow: inset 0 0 0 1px rgba(240, 200, 112, .45), 0 18px 44px rgba(0, 0, 0, .6);
  transform: translateX(-50%); animation: sh-toast 300ms var(--bp-out) both; }
.sh-toast[hidden] { display: none; }
.sh-toast b { color: var(--bp-bone); font-weight: 600; }
.sh-toast .hr-coin { width: 24px; height: 24px; }
.sh-toast svg:not(.hr-coin) { color: var(--t-hero, #8fdcae); }
.sh-toast.is-frozen { color: #cfe2ef; box-shadow: inset 0 0 0 1px rgba(160, 196, 224, .45), 0 18px 44px rgba(0, 0, 0, .6); }
.sh-toast.is-frozen svg { color: #cfe2ef; }
.sh-toast .bp-btn { flex: none; min-height: 36px; }
@keyframes sh-toast { from { opacity: 0; transform: translate(-50%, 10px); } }
@container (max-width: 620px) {
  .sh-head .hr-chip { min-height: 40px; }
  .sh-hoard { --c: 32px; }
  .sh-bundle .sh-band h3 b { font-size: 24px; }
  .sh-frozen { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-price.is-armed, .is-deny, .sh-item.is-bought, .sh-toast { animation: none; }
  .shop.is-enter > *, .shop.is-enter .sh-fan-card, .shop.is-enter .sh-grid > .sh-item, .sh-trying { animation: none; }
  .sh-fan-card, .sh-item, .sh-card, .sh-acts { transition: none; }
}
