.store-page {
  --store-hanging: url('/icons/store-hanging.png');
  --store-panel: linear-gradient(#4d4943b3, #423d38b3);
  --store-gold: linear-gradient(100deg, #d6af75, #f9e4b9 50%, #dab57e);
  background: var(--store-hanging) center top / 100% auto no-repeat,
    url('/icons/store-backdrop.png') center / cover no-repeat #302820;
}

.store-page.is-premium { --store-hanging: url('/icons/store-premium-hanging.png'); }
.store-scroll { flex: 1; min-height: 0; }
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  max-width: 520px;
  margin-inline: auto;
  padding: 0 16px 0 4px;
}
.store-toolbar .icon-button { background: transparent; }
.store-balance {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid #ffffff4d;
  border-radius: 40px;
  background: #0005;
  color: #fff;
  font-size: .75rem;
}
.store-balance:empty { display: none; }
.store-content { max-width: 520px; padding: 14px 16px 24px; margin-inline: auto; }
.store-gold-title {
  color: #f4cb7c;
  font: 600 italic 2rem/1.2 var(--heading);
  text-shadow: 0 1px 6px #ecb34352;
}
.store-banner,
.store-premium-banner.is-active {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: grid;
  padding: 7px 15px 15px;
  border: 1px solid #cead78cc;
  border-radius: 16px;
  background: url('/icons/store-banner-orbit.png') left top / 74px 72px no-repeat,
    linear-gradient(135deg, #463b32, #292624);
  color: #fff;
  text-align: start;
}
.store-banner::before,
.store-banner::after,
.store-premium-banner.is-active::before,
.store-premium-banner.is-active::after,
.store-benefits-panel::before,
.store-benefits-panel::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 29px;
  background: url('/icons/store-banner-corner.svg') no-repeat center / contain;
  pointer-events: none;
}
.store-banner::before,
.store-premium-banner.is-active::before { inset: auto auto 4px 4px; }
.store-banner::after,
.store-premium-banner.is-active::after { inset: 4px 4px auto auto; rotate: 180deg; }
.store-premium-banner {
  min-height: 40px;
  justify-self: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
}
.store-premium-banner.is-active {
  min-height: 90px;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-content: center;
  padding: 10px 16px;
}
.store-current-plan { grid-row: 2; color: #e0d2b9; font-size: .8125rem; }
.store-banner-details {
  grid-area: 1 / 2 / 3 / 3;
  align-self: center;
  color: #e0c9a2;
  font-size: .8125rem;
}
.store-gold-button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d4b0797a;
  border-radius: 12px;
  background: var(--store-gold);
  color: #302216;
  font-size: .9375rem;
  font-weight: 700;
}
.store-banner-action { margin-top: 12px; }
.store-benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-banner .store-benefits { gap: 2px; }
.store-benefit {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #fff;
  font-size: .75rem;
  line-height: 1.5;
}
.store-banner .store-benefit { min-height: 40px; }
.store-benefit-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #ffffff1a;
  background: #0002;
}
.store-benefit-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 4px;
  color: #f4dbab;
  font-size: .875rem;
  text-align: end;
}
.store-benefit-value small { color: #ddd1bf; font-size: .75rem; }
.store-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 11px;
  margin-top: 31px;
}
.store-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 184px;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  background: var(--store-panel);
  text-align: center;
}
.store-product.is-popular { background: linear-gradient(100deg, #ecb34333, #f5cd8033), var(--store-panel); }
.store-product-art { display: grid; place-items: center; width: 100%; height: 77px; }
.store-product-art .picture { width: min(72px, 100%); aspect-ratio: 1; background: transparent; }
.store-product-art .picture img { object-fit: contain; }
.store-product h2 { margin: 0; padding: 0 4px; color: #fff; font-size: 1.25rem; font-weight: 500; overflow-wrap: anywhere; }
.store-product-bonus { color: #e8c58c; font-size: .625rem; line-height: 1.45; }
.store-product-bonus > span { display: flex; justify-content: center; align-items: center; gap: 2px; }
.store-product-bonus > span:last-child { font-size: .75rem; }
.store-product-price {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 35px;
  margin-top: auto;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(90deg, #f4cbd9, #e1e3ed);
  color: #42343a;
  font-size: .875rem;
}
.product-badge {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 50%;
  width: max-content;
  max-width: calc(100% - 2px);
  transform: translate(-50%, -50%);
  padding: 2px clamp(5px, 2vw, 16px);
  border-radius: 999px;
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.is-popular .product-badge { background: linear-gradient(90deg, #ff9838, #ff3384); }
.is-new_user .product-badge { background: linear-gradient(90deg, #2992b8, #d52be4); }
.is-best_value .product-badge { border: 1px solid #ffd416; background: linear-gradient(90deg, #514400, #000, #514400); color: #ffd416; }

.is-premium .store-toolbar { flex-wrap: wrap; }
.store-membership-title {
  flex: 0 0 100%;
  margin: 14px 0 0 12px;
  padding: 0 4px;
  font-size: clamp(1.9rem, 9.7vw, 2.5rem);
  text-align: center;
  background: url('/icons/store-title-ornament.png') calc(50% - 99px) center / 74px auto no-repeat;
}
.store-membership-description {
  max-width: 340px;
  margin: 4px auto 6px;
  padding-inline: 24px;
  color: #fff9;
  text-align: center;
  font-size: .875rem;
  line-height: 1.45;
}
.store-benefits-panel {
  position: relative;
  padding: 18px 16px;
  border: 1px solid #d7bc8e4d;
  border-radius: 16px;
  background: var(--store-panel);
}
.store-benefits-panel::before,
.store-benefits-panel::after {
  width: 40px;
  height: 31px;
  background-image: url('/icons/store-premium-corner.png');
}
.store-benefits-panel::before { inset: 5px auto auto 5px; }
.store-benefits-panel::after { inset: auto 5px 5px auto; rotate: 180deg; }
.store-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 4.5vh, 40px);
}
.store-plan:only-child { grid-column: 1 / -1; }
.store-plan {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 100px;
  padding: 10px clamp(10px, 4vw, 20px);
  border: 1px solid #d7bc8e4d;
  border-radius: 16px;
  background: var(--store-panel);
  color: #fff;
  text-align: start;
  font-size: .875rem;
}
.store-plan[aria-pressed='true'] { border-color: #cbae7d; box-shadow: inset 0 0 0 1px #cbae7d; background: linear-gradient(90deg, #ecb3431a, #f5cd801a); }
.store-plan strong { font-size: 1.5rem; line-height: 1.45; }
.store-plan small { color: #fff9; font-size: .75rem; }
.store-subscribe { width: 100%; min-height: 52px; margin-top: 24px; border-radius: 16px; }
.store-subscribe:disabled { opacity: .73; cursor: default; }
.store-loading-banner { height: 248px; border-radius: 16px; }
.is-premium .store-loading-banner { height: 350px; }
.store-product .skeleton-product-icon { margin: 22px 0 12px; }
