/* MEGA ROBUX WEB V4.0.1 — Storefront Signature
   Visual refinement only: storefront cards, featured badge and quiet hero motion.
   No alteration to PIX maintenance, prices, account, or checkout logic.
*/

/* Quiet art movement limited to the main hero; the header, text and CTA stay still. */
html[data-theme] .market-hero .mr6-hero-brand-bg::before {
  animation: mr401-hero-drift 22s ease-in-out infinite alternate;
  transform-origin: 65% 40%;
  will-change: transform;
}
@keyframes mr401-hero-drift {
  from {transform: scale(1.015) translate3d(-.3%, .2%, 0);}
  to   {transform: scale(1.072) translate3d(.5%, -.4%, 0);}
}

/* The older theme layers used !important to force small Roblox symbols into pseudo-elements.
   This override restores the requested full-card artwork and puts the overlay,
   art accents and shimmer behind the actual package quantity and price. */
html[data-theme] .market-pricing .market-product-card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  background: url("assets/mega-robux-black-silver-banner-v426.webp") center / cover no-repeat !important;
  transform: scale(1.06) !important;
  pointer-events: none !important;
  z-index: 0;
}
html[data-theme] .market-pricing .market-product-card::after {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0;
}
html[data-theme="dark"] .market-pricing .market-product-card::after {
  background: linear-gradient(180deg, rgba(17, 17, 17,.78), rgba(17, 17, 17,.61) 48%, rgba(17, 17, 17,.87)) !important;
}
html[data-theme="light"] .market-pricing .market-product-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255,.83), rgba(252, 252, 252,.72) 48%, rgba(255, 255, 255,.92)) !important;
}
html[data-theme] .market-pricing .market-product-card > .card-art {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none;
  z-index: 1 !important;
}
html[data-theme] .market-pricing .market-product-card > .mr400-sheen {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none;
  z-index: 1 !important;
}
html[data-theme] .market-pricing .market-product-card > :not(.card-art):not(.mr400-sheen) {
  position: relative;
  z-index: 2;
}

/* Better balanced quantity cards. Kept restrained even with branding artwork. */
html[data-theme] .market-pricing .market-product-card {
  border-radius: 20px !important;
  display: flex;
  flex-direction: column;
  background-clip: padding-box;
  transition: transform .28s cubic-bezier(.2,.75,.2,1),
              box-shadow .3s ease, border-color .3s ease !important;
}
html[data-theme] .market-pricing .market-product-card .market-product-head,
html[data-theme] .market-pricing .market-product-card .amount,
html[data-theme] .market-pricing .market-product-card .market-product-price,
html[data-theme] .market-pricing .market-product-card .product-footnote,
html[data-theme] .market-pricing .market-product-card .product-buy {
  z-index: 2;
}
html[data-theme] .market-pricing .market-product-card .amount strong {
  font-variant-numeric: tabular-nums;
  text-wrap: nowrap;
}
html[data-theme] .market-pricing .market-product-card .market-product-price {
  margin-bottom: 16px !important;
  padding: 13px 14px !important;
}
html[data-theme] .market-pricing .market-product-card .product-buy {
  font-weight: 750 !important;
  letter-spacing: -.012em;
  border-radius: 12px !important;
  min-height: 47px !important;
}
html[data-theme] .market-pricing .market-product-card .product-footnote {
  justify-content: flex-start !important;
}
html[data-theme="dark"] .market-pricing .market-product-card {
  border-color: rgba(157, 157, 157,.27) !important;
  box-shadow: 0 12px 30px rgba(13, 13, 13,.22),
              inset 0 1px 0 rgba(212, 212, 212,.05) !important;
}
html[data-theme="light"] .market-pricing .market-product-card {
  border-color: rgba(157, 157, 157,.20) !important;
  box-shadow: 0 12px 30px rgba(67, 67, 67,.07),
              inset 0 1px 0 rgba(255, 255, 255,.60) !important;
}

/* Existing glass layers take the lead; enhance the glow during actual interaction. */
@media (hover:hover) {
  html[data-theme] .market-pricing .market-product-card:hover,
  html[data-theme] .market-pricing .market-product-card:focus-within {
    transform: translateY(-5px) !important;
  }
  html[data-theme="dark"] .market-pricing .market-product-card:hover,
  html[data-theme="dark"] .market-pricing .market-product-card:focus-within {
    border-color: rgba(173, 173, 173,.62) !important;
    box-shadow: 0 20px 45px rgba(17, 17, 17,.37),
                0 0 0 1px rgba(157, 157, 157,.16),
                0 0 26px rgba(157, 157, 157,.13) !important;
  }
  html[data-theme="light"] .market-pricing .market-product-card:hover,
  html[data-theme="light"] .market-pricing .market-product-card:focus-within {
    border-color: rgba(157, 157, 157,.46) !important;
    box-shadow: 0 18px 42px rgba(157, 157, 157,.13),
                0 0 0 1px rgba(157, 157, 157,.11) !important;
  }
}
html[data-theme] .market-pricing .market-product-card:focus-within {
  outline: 2px solid #aaaaaa;
  outline-offset: 3px;
}

/* Signature badge for the featured 1,000 Robux package (not a new promo claim). */
html[data-theme] .market-pricing .market-product-card.featured {
  border-width: 1.5px !important;
}
html[data-theme="dark"] .market-pricing .market-product-card.featured {
  border-color: rgba(183, 183, 183,.68) !important;
  box-shadow: 0 14px 38px rgba(14, 14, 14,.33),
              0 0 0 1px rgba(161, 161, 161,.21),
              0 0 33px rgba(157, 157, 157,.15) !important;
}
html[data-theme="light"] .market-pricing .market-product-card.featured {
  border-color: rgba(157, 157, 157,.51) !important;
  box-shadow: 0 14px 34px rgba(157, 157, 157,.13),
              0 0 0 1px rgba(157, 157, 157,.15) !important;
}
html[data-theme] .market-pricing .market-product-card .mr401-featured-seal {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: .045em !important;
}
html[data-theme] .market-pricing .mr401-seal-spark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255,.22);
  font-size: 12px;
  line-height: 1;
}
html[data-theme="dark"] .market-pricing .mr401-featured-seal {
  color: #f4f4f4 !important;
  border-color: rgba(195, 195, 195,.58) !important;
  background: linear-gradient(120deg,rgba(157, 157, 157,.94),rgba(63, 63, 63,.95)) !important;
  box-shadow: 0 5px 17px rgba(157, 157, 157,.25);
}
html[data-theme="light"] .market-pricing .mr401-featured-seal {
  color: #9d9d9d !important;
  border-color: rgba(157, 157, 157,.5) !important;
  background: linear-gradient(120deg,#f2f2f2,#ebebeb) !important;
  box-shadow: 0 5px 15px rgba(157, 157, 157,.11);
}
html[data-theme="light"] .market-pricing .mr401-seal-spark {background:rgba(157, 157, 157,.13);}
html[data-theme] .market-pricing .market-product-card.featured .market-product-price {
  border-color: rgba(167, 167, 167,.42) !important;
}

/* Keep suspended checkout unmistakably disabled during Pix maintenance. */
html.mr-pix-paused[data-theme] .market-pricing .market-product-card .product-buy:disabled {
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Mobile gets the same detailing without hover-based movement. */
@media(max-width:720px){
  html[data-theme] .market-pricing .market-product-card .amount strong {
    text-wrap: wrap;
  }
  html[data-theme] .market-pricing .market-product-card .mr401-featured-seal {
    font-size: 9px !important;
    padding: 6px 8px !important;
  }
  html[data-theme] .market-hero .mr6-hero-brand-bg::before {
    animation-duration: 28s;
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] .market-hero .mr6-hero-brand-bg::before {
    animation: none !important;
    will-change: auto;
  }
  html[data-theme] .market-pricing .market-product-card {
    transition: none !important;
    transform: none !important;
  }
  html[data-theme] .market-pricing .mr400-sheen::before { transition: none !important; }
}
