
.shop-button {
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 2px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%),
    linear-gradient(180deg, var(--go-light), var(--go) 60%, var(--go-dark));
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 8px rgba(47, 212, 122, 0.6);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 #054018;
}

.shop-button:active {
  transform: scale(0.92);
}

.app .shop-button {
  position: relative;
  isolation: isolate;
  border: 0;
  background: none;
  box-shadow: none;
}

.app .shop-button::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 50%),
    linear-gradient(180deg, var(--go-light), var(--go) 60%, var(--go-dark));
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 6px rgba(47, 212, 122, 0.6);
  pointer-events: none;
}

.shop-panel .sheet-title {
  font-size: 1.45rem;
}

.shop-x {
  position: absolute;
  top: -14px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--wheel-skip-fill-top), var(--violet) 55%, var(--wheel-skip-fill-bottom));
  box-shadow: 0 0 0 2px var(--gold-light), 0 0 0 4px var(--gold-deep), 0 3px 6px rgba(0, 0, 0, 0.6);
  transition: transform 80ms ease;
}

.shop-x svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.4;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 0 var(--wheel-skip-lip));
}

.shop-x:active {
  transform: scale(0.94);
}

.shop-perk {
  position: absolute;
  top: calc(var(--safe-top) + 19px);
  right: 76px;
  z-index: 3;
  display: grid;
  justify-items: end;
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
  pointer-events: none;
}

.shop-perk[hidden] { display: none; }
.shop-perk-name { font-size: 12px; color: var(--muted); }
.shop-perk-bonus { font-size: var(--type-key); color: var(--gold-light); font-variant-numeric: tabular-nums; }

.shop-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 -6px;
  padding: 4px 6px 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.pack-list {
  flex: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0 2px;
}

.pack-card {
  position: relative;
  min-width: 0;
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 8px 8px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 26% at 50% 50%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--violet), var(--lacquer) 55%, var(--sheet-base));
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 10px rgba(255, 212, 90, 0.35), 0 0 8px rgba(255, 212, 90, 0.45);
  font-family: var(--display);
  text-align: center;
  transition: transform 80ms ease;
}

.pack:active {
  transform: scale(0.97);
}

.pack-art {
  position: relative;
  display: block;
  flex: none;
  width: 122px;
  aspect-ratio: 1;
  margin-bottom: -36px;
  overflow: hidden;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45));
}

.pack-art img {
  position: absolute;
  width: 300%;
  height: 200%;
  max-width: none;
}

.pack-art::before,
.pack-art::after {
  content: "✦";
  position: absolute;
  z-index: 1;
  color: var(--gold-light);
  font-family: var(--display);
  line-height: 1;
  text-shadow: 0 0 4px var(--gold);
}

.pack-art::before {
  top: 30%;
  left: 6%;
  font-size: 0.8rem;
}

.pack-art::after {
  top: 18%;
  right: 12%;
  font-size: 0.6rem;
}

.pack-ribbon {
  position: relative;
  z-index: 1;
  display: block;
  width: 88%;
  padding: 3px 14px 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px 0 #000;
}

.pack-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--gold-light), var(--gold-dark)) top / 100% 1px no-repeat,
    linear-gradient(180deg, var(--gold-light), var(--gold-dark)) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 50%),
    linear-gradient(180deg, var(--lacquer-light), var(--violet) 55%, var(--lacquer));
  clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
}

.pack-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
}

.pack-coin.credits-coin {
  width: 20px;
  height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.pack-coins {
  min-width: 0;
  max-width: calc(100% - 25px);
  overflow: hidden;
  color: var(--gold-light);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 #000, 0 2px 3px rgba(0, 0, 0, 0.7);
}

.pack-points {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 0 #000;
}

.pack-points.reach {
  color: var(--gold);
}

.pack-price {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 36px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--gold-bevel);
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--gold-deep);
  color: var(--gold-ink);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pack-tag {
  --tag-neon: var(--neon-pink);
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 6px;
  width: min-content;
  padding: 3px 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--red-dark), var(--navy-deep));
  border: 2px solid var(--tag-neon);
  box-shadow: 0 0 6px var(--tag-neon), inset 0 0 5px var(--tag-neon);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 0 4px var(--tag-neon), 0 1px 0 #000;
  transform: rotate(-8deg);
}

.pack-tag::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 18px;
  height: 9px;
  margin-left: -9px;
  background: var(--tag-neon);
  clip-path: polygon(0 100%, 0 20%, 27% 62%, 50% 0, 73% 62%, 100% 20%, 100% 100%);
}

.pack-tag.tag-best-value {
  --tag-neon: var(--sapphire);
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
}

.pack-tag.flash {
  --tag-neon: var(--ruby);
}

.pack-tag[hidden] {
  display: none;
}

.pack-tag.flash .pack-tag-text,
.pack-tag-best {
  white-space: nowrap;
}

.pack-tag-best {
  display: block;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid var(--sapphire);
  color: var(--text);
  text-shadow: 0 0 4px var(--sapphire), 0 1px 0 #000;
}

.pack-tag-best[hidden] {
  display: none;
}

.pack-info {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 1px 0 #000;
  transition: transform 80ms ease;
}

.pack-info::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--wheel-skip-fill-top), var(--violet) 55%, var(--wheel-skip-fill-bottom));
  box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 0 3px var(--gold-deep), 0 2px 3px rgba(0, 0, 0, 0.6);
}

.pack-info:active {
  transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
  .pack,
  .pack-info,
  .shop-x {
    transition: none;
  }
}

.shop-coin-mark:empty {
  background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.shop-coin-mark {
  width: 64px;
  height: 64px;
}


