/* Currency artwork follows the catalog currency, including future games. */
.currency-tone-diamond {
  --currency-color: #5bd7ff;
}
.currency-tone-uc,
.currency-tone-coin,
.currency-tone-star {
  --currency-color: #ffd16c;
}
.currency-tone-gem,
.currency-tone-rp {
  --currency-color: #bc9aff;
}
.currency-tone-cp {
  --currency-color: #ff947c;
}
.currency-tone-vp {
  --currency-color: #ff728b;
}
.currency-tone-token {
  --currency-color: #73e3c6;
}
.theme-light .currency-tone-diamond {
  --currency-color: #087fa7;
}
.theme-light .currency-tone-uc,
.theme-light .currency-tone-coin,
.theme-light .currency-tone-star {
  --currency-color: #a56b08;
}
.theme-light .currency-tone-gem,
.theme-light .currency-tone-rp {
  --currency-color: #8053ca;
}
.theme-light .currency-tone-cp {
  --currency-color: #bc4c2c;
}
.theme-light .currency-tone-vp {
  --currency-color: #c33557;
}
.theme-light .currency-tone-token {
  --currency-color: #137d68;
}
.storefront .currency-emblem,
.storefront .currency-gem.currency-emblem {
  color: var(--currency-color);
  border-color: color-mix(in srgb, var(--currency-color) 31%, var(--ui-line));
  background:
    radial-gradient(
      ellipse at 25% 0,
      color-mix(in srgb, var(--currency-color) 16%, transparent),
      transparent 75%
    ),
    color-mix(in srgb, var(--currency-color) 6%, var(--ui-card));
}
.storefront .currency-art,
.storefront .summary-big-gem > .currency-art {
  color: var(--currency-color, inherit);
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.currency-art .currency-facet {
  fill: currentColor;
  fill-opacity: 0.19;
}
.currency-art .currency-facet-light {
  fill: currentColor;
  fill-opacity: 0.5;
  stroke: none;
}
.currency-art .currency-facet-dark {
  fill: currentColor;
  fill-opacity: 0.25;
  stroke: none;
}
.currency-art .currency-token-face {
  fill: currentColor;
  fill-opacity: 0.13;
}
.currency-art .currency-token-rim {
  opacity: 0.55;
  stroke-width: 1;
}
.currency-art .currency-token-glint {
  stroke-width: 2.2;
  opacity: 0.85;
}
.currency-art .currency-token-code {
  fill: currentColor;
  stroke: none;
  letter-spacing: -0.7px;
}
.storefront .summary-big-gem.currency-emblem {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  transform: rotate(-8deg);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--currency-color) 16%, transparent),
    0 8px 28px color-mix(in srgb, var(--currency-color) 11%, transparent);
}
.storefront .summary-big-gem > .currency-art {
  width: 54px;
  height: 54px;
  transform: rotate(8deg);
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--currency-color) 25%, transparent));
}
.storefront .summary-big-gem[hidden] {
  display: none !important;
}
.storefront .currency-gem.currency-emblem {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--currency-color) 12%, transparent);
}
.storefront .currency-gem.currency-emblem > .currency-art {
  width: 28px;
  height: 28px;
}
.storefront .currency-gem.currency-emblem:after {
  display: none;
}
.checkout-card-kicker > .currency-art {
  color: var(--currency-color);
}

/* Transparent product artwork is deliberately free of the old token tile. */
.currency-image {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  max-width: 100%;
}
.storefront .currency-emblem:has(> .currency-image) {
  background: none;
  border-color: transparent;
  box-shadow: none;
}
.storefront .currency-gem.currency-emblem:has(> .currency-image) {
  width: 48px;
  height: 44px;
  border: 0;
  background: none;
  box-shadow: none;
}
.storefront .currency-gem > .currency-image {
  width: 48px;
  height: 44px;
  max-width: none;
  filter: drop-shadow(0 2px 4px #00000020);
}
.storefront .quick-package-options[data-package-layout='grid'] .currency-gem:has(> .currency-image),
.storefront .quick-package-options[data-package-layout='grid'] .currency-gem > .currency-image {
  width: 68px;
  height: 56px;
}
.storefront .summary-big-gem.currency-emblem:has(> .currency-image) {
  width: 112px;
  height: 112px;
  transform: none;
  background: none;
  border: 0;
  box-shadow: none;
}
.storefront .summary-big-gem > .currency-image {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 5px 11px #daa94b19);
}
.storefront .checkout-pack-preview > .currency-image {
  width: 72px;
  height: 64px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.storefront .payment-order-symbol > .currency-image,
.storefront .receipt-game-icon > .currency-image {
  width: 100%;
  height: 100%;
}
@media (max-width: 540px) {
  .storefront .checkout-pack-preview > .currency-image {
    width: 62px;
    height: 58px;
  }
  .storefront .summary-big-gem.currency-emblem:has(> .currency-image),
  .storefront .summary-big-gem > .currency-image {
    width: 98px;
    height: 98px;
  }
}

/* A bright edge and occasional moving reflection, only on enabled payment CTAs. */
.storefront .btn.payment-cta {
  --pay-start: #087c58;
  --pay-end: #078367;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 20px;
  min-height: 44px;
  line-height: 1.25;
  background: linear-gradient(110deg, var(--pay-start), var(--pay-end)) !important;
  border: 1px solid #36d79f !important;
  color: #f3fff9 !important;
  font-weight: 650;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 1px #00342030;
  box-shadow:
    inset 0 1px 0 #a3ffd32e,
    0 3px 12px #00ca7b25,
    0 0 16px #00db8e18 !important;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    filter 0.2s;
}
.storefront .btn.payment-cta > span,
.storefront .btn.payment-cta > svg {
  position: relative;
  z-index: 1;
  color: inherit;
}
.storefront .btn.payment-cta:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #ffffff19, transparent 55%);
  pointer-events: none;
}
.storefront .btn.payment-cta:not(:disabled):after {
  content: '';
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -60%;
  width: 38%;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent,
    #ffffff08 15%,
    #ffffff3d 50%,
    #ffffff08 85%,
    transparent
  );
  transform: translateX(0) skewX(-20deg);
  animation: payment-shine 5.4s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
}
.storefront .btn.payment-cta:hover:not(:disabled) {
  background: linear-gradient(110deg, var(--pay-start), var(--pay-end)) !important;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #b8ffe83d,
    0 4px 16px #00ca7b32,
    0 0 20px #00db8e24 !important;
}
.storefront .btn.payment-cta:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
}
.storefront .btn.payment-cta:focus-visible {
  outline: 2px solid var(--ui-text);
  outline-offset: 4px;
}
.storefront .btn.payment-cta:disabled {
  box-shadow: none !important;
  filter: none;
  transform: none;
}
.theme-light .btn.payment-cta {
  box-shadow:
    inset 0 1px 0 #ffffff70,
    0 4px 15px color-mix(in srgb, var(--pay-start) 20%, transparent) !important;
}
@keyframes payment-shine {
  0%,
  18% {
    transform: translateX(0) skewX(-20deg);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  49% {
    transform: translateX(500%) skewX(-20deg);
    opacity: 0;
  }
  100% {
    transform: translateX(500%) skewX(-20deg);
    opacity: 0;
  }
}
@media (max-width: 540px) {
  .storefront .summary-big-gem.currency-emblem {
    width: 70px;
    height: 70px;
    border-radius: 21px;
  }
  .storefront .summary-big-gem > .currency-art {
    width: 47px;
    height: 47px;
  }
  .storefront .quick-summary > .payment-cta,
  .storefront .btn.checkout-pay-button.payment-cta {
    font-size: 12px;
  }
  .storefront .mobile-topup-bar > .payment-cta {
    font-size: 12px;
  }
  .storefront .mobile-topup-bar > .payment-cta {
    min-height: 44px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .btn.payment-cta {
    transition: none;
  }
  .storefront .btn.payment-cta:not(:disabled):after {
    animation: none;
    display: none;
  }
  .storefront .btn.payment-cta:hover:not(:disabled) {
    transform: none;
  }
}
