/* Customer preview palette from the supplied index. */
html:has(body.preview-index),
body.preview-index,
body.preview-index * {
  scrollbar-width: none;
}
html:has(body.preview-index)::-webkit-scrollbar,
body.preview-index::-webkit-scrollbar,
body.preview-index ::-webkit-scrollbar {
  display: none;
}

body.preview-index {
  --bg: #070712;
  --surface: #101126;
  --surface2: #151630;
  --panel: var(--surface);
  --panel2: var(--surface2);
  --text: #f7f6ff;
  --soft: #d2d0e8;
  --muted: #a19fbd;
  --line: #a9adf53a;
  --border: var(--line);
  --violet: #9674ff;
  --purple: #6951e4;
  --accent: #b6a0ff;
  --purple-light: var(--accent);
  --preview-surface: linear-gradient(145deg, var(--surface2), var(--surface));
  --preview-action: linear-gradient(125deg, #c6b6ff, var(--violet));
  --preview-input: #0c0d20;
  color: var(--text);
  background-color: var(--bg);
  color-scheme: dark;
}

body.preview-index::before {
  background: radial-gradient(ellipse at 72% 14%, #43338e38, transparent 57%),
    radial-gradient(ellipse at 4% 70%, #48358126, transparent 52%), #080815;
  opacity: 1;
  mask-image: none;
}

.preview-index > .cosmic-sky {
  opacity: .95;
  --star-drift-x: 58px;
  --star-drift-y: -82px;
}
.preview-index > .cosmic-sky .shooting-stars { display: none; }
.preview-index > .cosmic-sky .dust-dot,
.preview-index > .cosmic-sky .dust-dot:nth-child(7n) {
  background: #e2d8ff;
  box-shadow: 0 0 6px 1px #b69fff90, 0 0 12px #9674ff75;
  animation: preview-star-twinkle 10s linear infinite alternate;
}
.preview-index > .cosmic-sky .dust-dot:nth-child(even) { animation-direction: alternate-reverse; }
@keyframes preview-star-twinkle {
  0% { transform: translate(0, 0); opacity: .24; }
  36% { transform: translate(calc(var(--star-drift-x) * .5), calc(var(--star-drift-y) * .3)); opacity: .88; }
  70% { transform: translate(calc(var(--star-drift-x) * .82), calc(var(--star-drift-y) * .65)); opacity: .36; }
  100% { transform: translate(var(--star-drift-x), var(--star-drift-y)); opacity: .73; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-index > .cosmic-sky {
    --star-drift-x: 40px;
    --star-drift-y: -58px;
  }
}

body.preview-index :is(.footer, .navbar, .site-header, .preview-local-note),
body.preview-index.cosmic-ui > :is(header, footer) {
  background: #0c0c1d;
  border-color: var(--line);
  color: var(--soft);
}
body.preview-index :is(.footer p, .footer small, .footer .brand strong, header nav a, .game-info > span,
  .section-head p, .section-heading p, .hero-copy p, .hero-copy p strong, .hero-copy .preview-hero-trust,
  .security-home, .security-home strong, .faq-intro, .support-intro, .support-footnote, .agent-label,
  .rp-hint, .rp-privacy, .payment-sandbox-note, .player-check-status, .modal > p, .modal-label,
  .player-id-label, .review-form label, .modal label, .support-card label, .rp-fields label) {
  color: var(--soft);
}
body.preview-index .brand-name { color: var(--text); font-size: 1rem; }
body.preview-index .brand-name b { color: var(--accent); }
body.preview-index :is(.tiny-star, .eyebrow, .hero-overline, .game-arrow, .preview-review-total,
  .preview-spotlight h2 span, .preview-final-cta h2 span, .preview-tracking h1 span, .section-head h2 span,
  .ff-podium-heading h2 span, .security-home > span, .preview-hero-scroll, .preview-step-grid article > span) {
  color: var(--accent);
}
body.preview-index .preview-hero .hero-overline { display: inline-flex; align-items: center; gap: 8px; }
body.preview-index .preview-hero .hero-overline::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--violet);
}
body.preview-index .preview-hero .hero-overline .tiny-star { margin: 0; color: #a280ff; }
body.preview-index .preview-hero h1 { color: var(--text); }
body.preview-index .preview-hero h1 span {
  background: linear-gradient(100deg, #f6a7ff, #aa8cff 48%, #a280ff);
  background-clip: text;
  color: transparent;
}
body.preview-index .preview-hero h1 i { color: var(--violet); }
body.preview-index .preview-hero .hero-copy > p { max-width: 56ch; color: var(--muted); }

body.preview-index :is(.preview-final-cta, .preview-spotlight) {
  background: radial-gradient(ellipse at 38% 0%, #3d2b6e, #211b42 64%, #17162e);
  border-color: var(--line);
}
body.preview-index :is(.home-recent, .ticker-card, .recent-topup, .security-home,
  .faq-item, .social-card, .bottom-banner, .modal, .modal-card, .modal-product, .modal-info-box,
  .product-card, .product-art, .promo-notice, .rp-note,
  .cart-panel, .site-menu-panel, .swom-panel, .rp-sheet, .robux-preview, .topup-complete,
  .sw-account-card:not(.sw-account-review), .monthly-podium-notice, .support-choice, .agent-button,
  .checkout-account-tip, .preview-checkout-recap, .demo-payment-dialog, .demo-payment-recap,
  .review-feed, .review-form, .preview-customer-panel, .account-notice, .account-order-row) {
  background: var(--preview-surface);
  border-color: var(--line);
  color: var(--text);
}
body.preview-index #productGrid :is(.product-card, .product-art) {
  background: var(--preview-surface);
  border-color: var(--line);
}
body.preview-index :is(.ticker-mark, .recent-topup-icon, .modal-symbol, .agent-avatar, .contact-avatar,
  .category, .catalog-pill, .product-tag, .game-arrow, .player-check-button, .contact-option, .rp-secondary,
  .sw-account-change, .icon-button, .site-menu-toggle, .floating-support, .swom-fab, .modal-close,
  .robux-close, .rp-close, .icon-close, .support-choice.selected, .agent-button.selected, .password-toggle),
body.preview-index.preview-store:is(.cosmic-ui, .cosmic-store) :is(.button.secondary, button.secondary, .secondary-cta) {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--soft);
  box-shadow: none;
}
body.preview-index:is(.preview-store, .is-catalog-preview) :is(.button.primary, .primary-cta, .buy-button,
  .rp-primary, .category.active, #preview-alias-form button, #continueOrder, #paymentSubmit, .support-send),
body.preview-index.preview-customer :is(#review-form button[type=submit], #resume-purchase) {
  background: var(--preview-action);
  border-color: #c7b8ff7a;
  color: #100b24;
  box-shadow: none;
}
body.preview-index :is(input:not([type=checkbox]):not([type=radio]), textarea, select, .search-box) {
  background: var(--preview-input);
  border-color: var(--line);
  color: var(--text);
}
body.preview-index :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
body.preview-index :is(input, button, a, select, textarea, summary):focus-visible { outline-color: var(--violet); }
body.preview-index input[type=checkbox] { accent-color: var(--violet); }

/* Compact game entries, with the square game art beside the description. */
body.preview-index #universos .game-card {
  border-color: var(--line);
  background: linear-gradient(120deg, #30263f, var(--surface));
}
body.preview-index #universos .game-rb {
  --glow: #5046a0;
  background: linear-gradient(120deg, #26254a, var(--surface));
}
body.preview-index #universos .game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px #2a1a5955;
}
body.preview-index #universos .game-icon { background: var(--surface2); }
body.preview-index #universos .game-info > span { line-height: 1.4; }
body.preview-index #universos .game-arrow { background: #f0eaff16; }
@media (max-width: 530px) {
  body.preview-index #universos .game-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-content: center;
    gap: 8px 14px;
    padding: 15px;
  }
  body.preview-index #universos .game-icon { grid-row: span 2; width: 66px; height: 66px; border-radius: 16px; }
  body.preview-index #universos .game-arrow { grid-column: 2; justify-self: end; }
}
body.preview-index #catalogo .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 12px;
}
body.preview-index #catalogo .section-heading p { max-width: 60ch; margin-inline: auto; }
body.preview-index .footer { padding-inline: clamp(18px, 6vw, 100px); }
body.preview-index .footer small { padding-inline-end: 7.5rem; }

/* Checkout review and simulated payment. */
body.preview-index :is(.order-summary-modal, .rp-sheet, .demo-payment-dialog) {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 80px #030416b3;
}
.preview-index .preview-checkout-recap {
  margin-block: 16px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.preview-index .preview-checkout-recap .order-summary-total:last-child { border-bottom: 0; }
body.preview-index .demo-payment-dialog {
  width: min(480px, calc(100% - 28px));
  padding: clamp(18px, 4vw, 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
}
.preview-index .demo-payment-dialog::backdrop { background: #05040bd9; }
.preview-index .demo-payment-dialog h2 { font-size: clamp(24px, 5vw, 33px); margin: 8px 0; }
.preview-index .demo-payment-dialog p { margin: 8px 0; color: var(--soft); }
.preview-index .demo-payment-recap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-block: 18px;
}
.preview-index .demo-payment-recap > div { display: grid; gap: 4px; }
.preview-index .demo-payment-recap small, .preview-index #demoPaymentStatus { color: var(--soft); font-size: .8rem; }
.preview-index #demoPaymentAmount { font-size: 1.3rem; }
.preview-index .demo-payment-actions { display: grid; gap: 9px; margin-top: 16px; }
.demo-safety-toast {
  position: fixed;
  z-index: 2147483647;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 14px 20px;
  border: 1px solid #a9adf53a;
  border-radius: 14px;
  background: #151630;
  color: #f7f6ff;
}
@media (max-width: 720px) {
  body.preview-index .footer small { padding-inline-end: 0; padding-bottom: 50px; }
}
