/* board-shop.css: the gold shop and the pack odds sheet (src/shop.js), and the gold counter that opens the shop
   (quick-board.js goldCounter). Owned by the game-shop lane, 2026-10-15 (the apps; Eric: "get this ready for
   production"). The look is dev/captures/ART_DIRECTION.md's: an ink outline on every frame (--ol), a light top bevel, a
   dark bottom lip, a hard offset shadow, fills as vertical gradients lighter at the top; saturated colour, not cream;
   one hero (the biggest pile glints now and then); buttons are objects (gold for a purchase with money, green for one
   with gold, blue for looking). The coins are the game's coin (board.css .bd-coin), drawn as piles by shop.js. Layers:
   the shop 28 (over the Road 12, under the coins that fly into it, 30), the odds sheet 48 (over the pack, 45). */

/* ---- the gold counter as the shop's door (the apps only): the Road's counter, a green "+" on its end ---- */
.bd .bd-shopbtn { position: relative; padding: 0 30px 0 10px; color: #fff; font-family: var(--font); cursor: pointer;
  background: linear-gradient(180deg, #4a4072, #2f2852); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 3px 0 rgba(10, 6, 30, 0.45); }
.bd .bd-shopbtn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2); }
.kbd .bd .bd-shopbtn:focus-visible { outline: 3px solid #ffe36b; outline-offset: 2px; }
.bd-shopplus { position: absolute; right: -6px; top: 50%; width: 26px; height: 26px; margin-top: -13px; display: grid; place-items: center; font-style: normal;
  font-size: 22px; font-weight: 800; line-height: 1; color: #fff; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill;
  border: 3px solid var(--ol); border-radius: 9px; background: linear-gradient(180deg, #b4ef7d, #5cc23a);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(20, 60, 10, 0.3), 0 2px 0 rgba(10, 6, 30, 0.45); }

/* ---- the shop ---- */
.sh-ov { position: absolute; inset: 0; z-index: 28; display: grid; place-items: center; padding: 12px; background: rgba(16, 11, 30, 0.84); pointer-events: auto; }
.sh-card { position: relative; width: min(520px, 100%); max-height: 100%; display: flex; flex-direction: column; color: #fff;
  border: 4px solid var(--ol); border-radius: 26px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 14px, rgba(255, 255, 255, 0) 14px 28px), linear-gradient(180deg, #5b4dca 0%, #4436a6 34%, #342984 100%);
  box-shadow: inset 0 -6px 0 rgba(10, 6, 30, 0.3), 0 8px 0 rgba(8, 5, 20, 0.6); animation: shIn 0.28s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes shIn { from { transform: scale(0.9); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } to { transform: none; } }
.sh-card button, .sh-oddscard button { font-family: var(--font); cursor: pointer; }
.sh-card button:disabled, .sh-oddscard button:disabled { cursor: default; }
/* the header ribbon: gold, SHOP in display type, the gold you have on a dark pill, close */
.sh-head { position: relative; z-index: 2; flex: none; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 60px 2px 18px;
  border-bottom: 4px solid var(--ol); border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #ffe98f 0%, #ffc93d 52%, #e3961c 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), inset 0 -5px 0 rgba(120, 60, 0, 0.25), 0 3px 0 rgba(10, 6, 30, 0.35); }
.sh-title { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: 1px; -webkit-text-stroke: 8px var(--ol);
  text-shadow: 0 4px 0 rgba(10, 6, 30, 0.4); }
.sh-gold { flex: none; height: 38px; padding: 0 14px 0 8px; border: 3px solid var(--ol); border-radius: 19px; color: #fff; font-size: 22px;
  background: linear-gradient(180deg, #4a4072, #2f2852); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 3px 0 rgba(10, 6, 30, 0.45); }
.sh-gold .bd-coin { width: 24px; height: 24px; }
.sh-card .sh-x, .sh-oddscard .sh-x { position: absolute; right: 10px; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -22px; padding: 0 0 3px; display: grid; place-items: center;
  border: 3px solid var(--ol); border-radius: 13px; background: linear-gradient(180deg, #ff9d8c 0%, #f2554a 50%, #d63a36 100%); color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 rgba(90, 10, 10, 0.35), 0 3px 0 rgba(10, 6, 30, 0.45);
  font-size: 22px; font-weight: 800; line-height: 1; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.sh-card .sh-x:active, .sh-oddscard .sh-x:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55); }
.sh-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 18px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }

/* the pack for sale with gold: the baked pack tilted out of its slot, what it holds, Odds ⓘ, its price on green */
.sh-pack { position: relative; flex: none; display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 8px 12px 8px 86px;
  border: 4px solid var(--ol); border-radius: 20px; background: linear-gradient(180deg, #8e74f2 0%, #6a4fd6 55%, #5238b4 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -5px 0 rgba(20, 10, 60, 0.3), 0 5px 0 rgba(8, 5, 20, 0.45); }
.sh-pack[hidden] { display: none; }
.sh-packart { position: absolute; left: 10px; bottom: 4px; width: 72px; height: 104px; transform: rotate(-8deg); filter: drop-shadow(3px 5px 0 rgba(8, 5, 20, 0.5)); pointer-events: none; }
.sh-packart img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sh-packt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.05; }
.sh-packt b { font-size: 26px; font-weight: 800; -webkit-text-stroke: 6px var(--ol); }
.sh-packt small { font-size: 15px; font-weight: 800; color: #e5dcff; -webkit-text-stroke: 3px var(--ol); paint-order: stroke fill; }
.sh-packbuy { flex: none; height: 50px; min-width: 104px; padding: 0 14px 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 4px solid var(--ol); border-radius: 16px; color: #fff; background: linear-gradient(180deg, #c8f79a 0%, #8fe06a 45%, #4fae38 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(20, 70, 10, 0.32), 0 5px 0 rgba(10, 6, 30, 0.45); }
.sh-packbuy b { font-size: 24px; font-weight: 800; -webkit-text-stroke: 6px var(--ol); paint-order: stroke fill; }
.sh-packbuy .bd-coin { width: 24px; height: 24px; }
.sh-packbuy:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 1px 0 rgba(10, 6, 30, 0.45); }
.sh-packbuy.short { background: linear-gradient(180deg, #9b91b4, #6b6083); filter: saturate(0.6); }

/* Odds ⓘ: a blue pill (looking), on the pack offers here and on Upgrades */
.bd .sh-oddsbtn { flex: none; height: 34px; padding: 0 6px 0 12px; display: inline-flex; align-items: center; gap: 6px; color: #fff;
  font-family: var(--font); font-size: 16px; font-weight: 800; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; cursor: pointer;
  border: 3px solid var(--ol); border-radius: 17px; background: linear-gradient(180deg, #a9d2ff 0%, #6aa2f2 50%, #4a7fdc 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(10, 30, 90, 0.3), 0 3px 0 rgba(10, 6, 30, 0.45); }
.bd .sh-oddsbtn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.sh-ii { width: 20px; height: 20px; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; line-height: 1; color: #fff;
  -webkit-text-stroke: 0; background: #2f2a5e; border: 2px solid var(--ol); border-radius: 50%; }

/* Upgrades' pack offer with its Odds ⓘ under it (quick-board.js drawUpgrades) */
.bd-packoffer { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }

.sh-ghead { margin: 4px 0 -2px; padding: 0 4px; font-size: 22px; font-weight: 800; line-height: 1.1; color: #ffe08a; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(20, 14, 34, 0.45); }

/* the bundles: a tile each, blue and lit from behind, its pile large on a stage, the gold in display type, the store's
   price on a gold button; the last (the biggest pile) is the hero: a gold rim and a glint across it now and then */
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.sh-tile { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 8px 10px; overflow: hidden;
  border: 4px solid var(--ol); border-radius: 20px;
  background: radial-gradient(120% 80% at 50% 38%, #b4dcff 0%, #74aaf7 46%, #4a74dc 82%, #3a5cc0 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -5px 0 rgba(10, 20, 70, 0.28), 0 6px 0 rgba(20, 14, 34, 0.45); }
.sh-tile.hero { background: radial-gradient(120% 80% at 50% 38%, #fff3c4 0%, #ffd56a 30%, #7fb0f7 62%, #4a74dc 86%, #3a5cc0 100%);
  box-shadow: inset 0 0 0 3px #ffd34d, inset 0 6px 0 rgba(255, 255, 255, 0.4), inset 0 -6px 0 rgba(10, 20, 70, 0.3), 0 6px 0 rgba(20, 14, 34, 0.45); }
.sh-tile.hero::after { content: ""; position: absolute; inset: -20% -60%; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 58%);
  transform: translateX(-70%); animation: shGlint 6s 1.2s ease-in-out infinite; }
@keyframes shGlint { 0% { transform: translateX(-70%); } 14%, 100% { transform: translateX(70%); } }
.sh-name { position: relative; z-index: 2; align-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 16px; font-weight: 800; line-height: 1.2; color: #fff; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; }
.sh-stage { position: relative; display: block; height: 0; padding-bottom: 65%; }
.sh-stage > i { position: absolute; display: block; pointer-events: none; }
.sh-rays { left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, rgba(255, 255, 255, 0.22) 0deg 9deg, rgba(255, 255, 255, 0) 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%); mask: radial-gradient(circle, #000 0 18%, transparent 62%); }
.sh-floor { left: 18%; right: 18%; bottom: 0; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 10, 50, 0.45), rgba(16, 10, 50, 0)); }
.sh-heap { position: absolute; inset: 0; z-index: 1; display: block; }
/* the pile: an <img> of the tier's drawing since 2026-10-16 (shop.js heapImg), a canvas in a DOM that cannot encode
   one; never a long-press image menu or a drag (iOS, Android) */
.sh-heapcv { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.sh-amt { position: relative; z-index: 2; align-self: center; display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 30px; font-weight: 800; line-height: 1;
  -webkit-text-stroke: 7px var(--ol); text-shadow: 0 3px 0 rgba(10, 6, 30, 0.4); }
.sh-amt .bd-coin { width: 26px; height: 26px; border-width: 3px; }
.sh-tile.hero .sh-amt { font-size: 34px; }
/* the price: the store's string on a gold button (a purchase with money) */
.sh-buy { position: relative; z-index: 2; height: 50px; margin-top: 4px; padding: 0 8px 4px; border: 4px solid var(--ol); border-radius: 15px; color: #fff;
  font-size: 23px; font-weight: 800; line-height: 1; white-space: nowrap; -webkit-text-stroke: 6px var(--ol); paint-order: stroke fill;
  background: linear-gradient(180deg, #fff3b0 0%, #ffd34d 45%, #f0a92a 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 0 rgba(150, 80, 0, 0.35), 0 5px 0 rgba(10, 6, 30, 0.45); }
.sh-buy:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(10, 6, 30, 0.45); }
.sh-buy:disabled { filter: saturate(0.35) brightness(0.92); }
.sh-buy.wait { filter: none; animation: shWait 0.9s ease-in-out infinite; }
@keyframes shWait { 50% { opacity: 0.55; } }
/* a purchase that did not go through, or waits for approval: one line under the tiles */
.sh-line { display: none; align-self: center; max-width: 100%; padding: 6px 14px; text-align: center; font-size: 16px; font-weight: 800; line-height: 1.25; color: #3b3350;
  border: 3px solid var(--ol); border-radius: 14px; background: linear-gradient(180deg, #fffdf6, #efe8ff); box-shadow: 0 3px 0 rgba(10, 6, 30, 0.45); }
.sh-line.on { display: block; }
/* the store did not answer: plain */
.sh-unavail { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; text-align: center;
  border: 3px dashed rgba(255, 255, 255, 0.35); border-radius: 18px; }
.sh-unavail b { font-size: 20px; font-weight: 800; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.sh-retry { height: 40px; padding: 0 18px 3px; border: 3px solid var(--ol); border-radius: 14px; color: #fff; font-size: 18px; font-weight: 800; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill;
  background: linear-gradient(180deg, #a9d2ff 0%, #6aa2f2 50%, #4a7fdc 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -4px 0 rgba(10, 30, 90, 0.3), 0 3px 0 rgba(10, 6, 30, 0.45); }

/* ---- the odds sheet: a blue ribbon (looking), each rarity on its own colour, the numbers big ---- */
.sh-oddsov { position: absolute; inset: 0; z-index: 48; display: grid; place-items: center; padding: 12px; background: rgba(16, 11, 30, 0.84); pointer-events: auto; }
.sh-oddscard { position: relative; width: min(500px, 100%); max-height: 100%; display: flex; flex-direction: column; color: #fff; border: 4px solid var(--ol); border-radius: 26px;
  background: linear-gradient(180deg, #4b3fb4 0%, #3a2f94 40%, #2c2374 100%); box-shadow: inset 0 -6px 0 rgba(10, 6, 30, 0.3), 0 8px 0 rgba(8, 5, 20, 0.6);
  animation: shIn 0.24s cubic-bezier(.2, 1.4, .4, 1) both; }
.sh-head.sh-oddshead { height: 58px; background: linear-gradient(180deg, #a9d2ff 0%, #6aa2f2 52%, #3f72d6 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), inset 0 -5px 0 rgba(10, 30, 90, 0.3), 0 3px 0 rgba(10, 6, 30, 0.35); }
.sh-oddshead .sh-title { font-size: 32px; }
.sh-oddsbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 18px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }
.sh-osec { display: flex; flex-direction: column; gap: 6px; }
.sh-ohead { margin: 0 0 2px; padding: 0 2px; font-size: 19px; font-weight: 800; line-height: 1.1; color: #ffe08a; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.sh-orow { display: grid; grid-template-columns: 112px 62px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px 6px 6px;
  border: 3px solid var(--ol); border-radius: 13px; background: linear-gradient(180deg, #31296b 0%, #251e55 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 0 -4px 0 rgba(0, 0, 0, 0.28), 0 3px 0 rgba(8, 5, 20, 0.45); }
.sh-olab { min-width: 0; padding: 3px 8px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 15px; font-weight: 800; line-height: 1.15;
  color: #fff; -webkit-text-stroke: 4px var(--ol); paint-order: stroke fill; border: 2px solid var(--ol); border-radius: 9px;
  background: linear-gradient(180deg, #8d82b8, #5d5388); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4); }
/* a row of words (no odds): the label and the line side by side */
.sh-orow.k-text { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.sh-orow.k-text .sh-olab, .sh-orow.k-pct:not([class*=" r-"]) .sh-olab { white-space: normal; }
.sh-orow.r-common .sh-olab { background: linear-gradient(180deg, #8fc0ff, #4a7fdc); }
.sh-orow.r-rare .sh-olab { background: linear-gradient(180deg, #e4edf7, #9fb6d8 55%, #7f97bd); }
.sh-orow.r-holo .sh-olab { background: linear-gradient(100deg, #ff8fb1, #ffd56a 25%, #9df29a 50%, #8fd0ff 75%, #c79bff); }
.sh-orow.r-ultra .sh-olab { background: linear-gradient(180deg, #fff3b0, #ffd34d 50%, #e2a52a); }
.sh-orow.r-ghost .sh-olab { background: linear-gradient(180deg, #c9fbff, #8ad8f0 45%, #9a7cf0); }
.sh-opct { font-size: 22px; font-weight: 800; line-height: 1; text-align: right; color: #fff; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.sh-onote { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.25; color: #ddd6f7; }

/* a wide frame: the shop is a little wider and its four bundles stand in one row */
.bd.wide .sh-card { width: min(940px, 100%); }
.bd.wide .sh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  .sh-card, .sh-oddscard, .sh-tile.hero::after, .sh-buy.wait { animation: none; }
  .sh-tile.hero::after { display: none; }
}
