/* Premium experiment layer — easy rollback: remove this stylesheet and premium-extras.js */
:root {
  --px-blue: #1688ff;
  --px-cyan: #58e6ff;
  --px-gold: #d9b65d;
  --px-dark: #071426;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 30%),
    rgba(45, 155, 255, 0.12),
    transparent 68%
  );
  transition: opacity 0.2s;
}
.px-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: linear-gradient(135deg, #f6f3eb, #fff);
  display: grid;
  place-items: center;
  transition:
    opacity 0.45s,
    visibility 0.45s;
}
.dark .px-loader {
  background: linear-gradient(135deg, #030b16, #0b1b31);
}
.px-loader.hide {
  opacity: 0;
  visibility: hidden;
}
.px-loader-box {
  text-align: center;
}
.px-loader-logo {
  width: 110px;
  filter: drop-shadow(0 12px 28px rgba(0, 128, 255, 0.3));
  animation: pxPulse 1.1s infinite alternate;
}
.px-loader-track {
  width: 220px;
  height: 7px;
  border-radius: 9px;
  background: rgba(40, 130, 220, 0.15);
  overflow: hidden;
  margin: 20px auto 9px;
}
.px-loader-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--px-blue),
    var(--px-cyan),
    var(--px-gold)
  );
  animation: pxLoad 1s ease forwards;
}
.px-loader small {
  letter-spacing: 0.22em;
  font-weight: 800;
  color: #5f7891;
}
@keyframes pxLoad {
  to {
    width: 100%;
  }
}
@keyframes pxPulse {
  to {
    transform: translateY(-4px) scale(1.03);
  }
}
.mega-menu {
  border: 1px solid rgba(84, 179, 255, 0.25) !important;
  box-shadow: 0 30px 80px rgba(5, 35, 72, 0.28) !important;
  backdrop-filter: blur(22px);
}
.mega-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
}
.mega-item {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 18px !important;
  border-radius: 18px !important;
}
.mega-item::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(
    110deg,
    transparent 42%,
    rgba(255, 255, 255, 0.35),
    transparent 58%
  );
  transform: translateX(-55%) rotate(12deg);
  transition: 0.7s;
}
.mega-item:hover::before {
  transform: translateX(55%) rotate(12deg);
}
.mega-item::after {
  content: attr(data-icon);
  position: absolute;
  right: 13px;
  bottom: 8px;
  font-size: 30px;
  opacity: 0.22;
}
.game-card {
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(81, 205, 255, 0.85),
    transparent 35%,
    rgba(255, 215, 91, 0.7)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}
.game-card:hover::after {
  opacity: 1;
}
.game-card:hover {
  box-shadow: 0 24px 55px rgba(11, 112, 230, 0.24) !important;
}
.game-cover::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    110deg,
    transparent 43%,
    rgba(255, 255, 255, 0.38),
    transparent 57%
  );
  transform: translateX(-65%) rotate(13deg);
  transition: 0.75s;
  pointer-events: none;
}
.game-card:hover .game-cover::after {
  transform: translateX(65%) rotate(13deg);
}
.px-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(4, 20, 38, 0.64);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.px-heart.active {
  color: #ff5d83;
  background: rgba(255, 255, 255, 0.92);
}
.px-recent {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 9000;
  width: 310px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(70, 161, 245, 0.22);
  box-shadow: 0 25px 65px rgba(4, 35, 70, 0.23);
  backdrop-filter: blur(20px);
  transform: translateX(calc(100% + 40px));
  transition: 0.4s;
}
.dark .px-recent {
  background: rgba(7, 20, 38, 0.92);
  color: #fff;
}
.px-recent.show {
  transform: none;
}
.px-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.px-recent-head button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
.px-recent-list {
  display: grid;
  gap: 8px;
}
.px-recent-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px;
  border-radius: 12px;
  background: rgba(28, 130, 235, 0.07);
}
.px-recent-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}
.px-recent-toggle {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 8999;
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  background: linear-gradient(135deg, #c89b3c, #35d8ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(0, 121, 255, 0.35);
  cursor: pointer;
}
.footer.premium-footer {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 26px;
  align-items: start;
  padding: 34px !important;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(
    135deg,
    rgba(9, 50, 91, 0.96),
    rgba(5, 20, 40, 0.98)
  );
  color: #e9e1d2 !important;
}
.premium-footer img {
  width: min(230px, 100%);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
.premium-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}
.premium-footer a,
.premium-footer p {
  display: block;
  color: #b8ad9a;
  text-decoration: none;
  margin: 7px 0;
}
.premium-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.premium-footer-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(115, 204, 255, 0.25);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.premium-footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #958b7a;
}
@media (max-width: 800px) {
  .mega-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .px-recent {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
  }
  .px-recent-toggle {
    bottom: 82px;
    right: 12px;
  }
  .premium-footer {
    grid-template-columns: 1fr 1fr !important;
  }
  .premium-footer > div:first-child {
    grid-column: 1/-1;
  }
  .premium-footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .px-loader-logo {
    width: 90px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .game-cover::after,
  .mega-item::before,
  .px-loader-logo {
    animation: none !important;
    transition: none !important;
  }
}

/* Premium refinement v2 */
body::after {
  background: radial-gradient(
    105px circle at var(--mx, 50%) var(--my, 30%),
    rgba(45, 155, 255, 0.09),
    transparent 72%
  );
  filter: blur(2px);
}
.px-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f6f3eb 0%, #ffffff 52%, #e8f8ff 100%);
}
body.dark .px-loader {
  background: linear-gradient(135deg, #082445 0%, #0b4e86 52%, #08345f 100%);
}
.px-loader-box {
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  transform: none !important;
}
.px-loader-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}
body.dark .px-loader small {
  color: #d7efff;
}
body.dark .px-loader-track {
  background: rgba(255, 255, 255, 0.18);
}

.footer.premium-footer {
  margin: 34px 4px 4px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(125, 201, 255, 0.38) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(226, 246, 255, 0.96)
  ) !important;
  color: #173a60 !important;
  box-shadow:
    0 20px 48px rgba(16, 92, 154, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  overflow: hidden;
  position: relative;
}
.footer.premium-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 86% 15%,
      rgba(39, 192, 255, 0.2),
      transparent 31%
    ),
    radial-gradient(circle at 10% 90%, rgba(34, 125, 255, 0.1), transparent 34%);
}
.footer.premium-footer > * {
  position: relative;
  z-index: 1;
}
.premium-footer img {
  filter: brightness(0) !important;
}
.premium-footer h4 {
  color: #10365e !important;
}
.premium-footer a,
.premium-footer p {
  color: #587694 !important;
}
.premium-footer-badges span {
  color: #1769a9;
  border-color: rgba(30, 145, 225, 0.24);
  background: rgba(255, 255, 255, 0.52);
}
.premium-footer-bottom {
  border-top-color: rgba(31, 126, 203, 0.15) !important;
  color: #6a86a2 !important;
}
body.dark .footer.premium-footer {
  background: linear-gradient(
    135deg,
    rgba(9, 50, 91, 0.98),
    rgba(5, 20, 40, 0.99)
  ) !important;
  color: #e9e1d2 !important;
  border-color: rgba(90, 190, 255, 0.22) !important;
  box-shadow:
    0 22px 55px rgba(0, 10, 25, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
body.dark .premium-footer img {
  filter: brightness(0) invert(1) !important;
}

/* Uploaded SLOTXO brand lockup: preserve its original colors and wide ratio. */
.px-loader-logo {
  width: min(280px, 76vw) !important;
  max-height: 84px;
  object-fit: contain;
}
.premium-footer img,
body.dark .premium-footer img {
  width: min(230px, 100%);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
}
body.dark .premium-footer h4 {
  color: #fff !important;
}
body.dark .premium-footer a,
body.dark .premium-footer p {
  color: #b8ad9a !important;
}
body.dark .premium-footer-badges span {
  color: #e9e1d2;
  border-color: rgba(115, 204, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}
body.dark .premium-footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  color: #958b7a !important;
}

@media (max-width: 800px) {
  .footer.premium-footer {
    margin: 24px 0 82px !important;
    border-radius: 24px !important;
  }
  .px-loader-logo {
    width: 100px;
  }
}

/* Premium polish v3 */
:root {
  --radius-hero: 28px;
  --radius-panel: 28px;
  --radius-card: 22px;
  --shadow-soft-polish: 0 16px 38px rgba(17, 84, 139, 0.1);
  --shadow-dark-polish: 0 18px 44px rgba(0, 0, 0, 0.22);
}
html {
  scroll-behavior: smooth;
}
body::after {
  background: radial-gradient(
    72px circle at var(--mx, 50%) var(--my, 30%),
    rgba(45, 155, 255, 0.065),
    transparent 74%
  );
  filter: blur(1px);
  opacity: 0.78;
}
/* Loader: solid surface color, matching the site background */
.px-loader {
  background: #f6f3eb !important;
  background-image: none !important;
}
body.dark .px-loader {
  background: #171717 !important;
  background-image: none !important;
}
.px-loader-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}
.px-loader-logo {
  filter: drop-shadow(0 10px 24px rgba(18, 132, 230, 0.22));
}
body.dark .px-loader-logo {
  filter: drop-shadow(0 10px 28px rgba(61, 202, 255, 0.2));
}

/* Footer: same visual language and surface as the sidebar */
.footer.premium-footer {
  margin: 34px 0 4px !important;
  border-radius: var(--radius-panel) !important;
  padding: 30px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  color: #264b6e !important;
  box-shadow: var(--shadow-soft-polish) !important;
  backdrop-filter: blur(24px);
}
.footer.premium-footer::before {
  display: none !important;
}
.premium-footer img {
  filter: none !important;
}
.premium-footer h4 {
  color: #173e63 !important;
}
.premium-footer a,
.premium-footer p {
  color: #68829a !important;
}
.premium-footer a {
  transition:
    color 0.28s ease,
    transform 0.28s ease;
}
.premium-footer a:hover {
  color: #c89b3c !important;
  transform: translateX(2px);
}
.premium-footer-badges span {
  color: #2872a8 !important;
  border-color: rgba(32, 135, 210, 0.18) !important;
  background: rgba(255, 255, 255, 0.48) !important;
}
.premium-footer-bottom {
  border-top-color: rgba(40, 126, 191, 0.12) !important;
  color: #718aa2 !important;
}
body.dark .footer.premium-footer {
  background: rgba(7, 27, 50, 0.82) !important;
  background-image: none !important;
  border-color: rgba(120, 210, 255, 0.12) !important;
  color: #e9e1d2 !important;
  box-shadow:
    var(--shadow-dark-polish),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}
body.dark .premium-footer img {
  filter: brightness(0) invert(1) !important;
}
body.dark .premium-footer h4 {
  color: #f0f9ff !important;
}
body.dark .premium-footer a,
body.dark .premium-footer p {
  color: #9db7ce !important;
}
body.dark .premium-footer a:hover {
  color: #62d7ff !important;
}
body.dark .premium-footer-badges span {
  color: #ccecff !important;
  border-color: rgba(108, 202, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}
body.dark .premium-footer-bottom {
  border-top-color: rgba(112, 201, 255, 0.1) !important;
  color: #89a6bf !important;
}

/* Unified polish */
.hero,
.page-hero,
.sidebar,
.footer.premium-footer {
  border-radius: var(--radius-hero);
}
.game-card,
.trending-card,
.contact-card,
.form-card,
.seo-content {
  border-radius: var(--radius-card);
}
.game-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.008) !important;
  box-shadow: 0 18px 42px rgba(11, 112, 230, 0.16) !important;
}
.game-cover img {
  opacity: 0;
  transition:
    opacity 0.45s ease,
    transform 0.55s ease;
}
.game-cover img.px-img-ready {
  opacity: 1;
}

/* Gentle reveal */
.px-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.px-reveal.px-visible {
  opacity: 1;
  transform: none;
}

/* Back to top */
.px-back-top {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 8998;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(65, 159, 235, 0.22);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: #c89b3c;
  box-shadow: 0 12px 28px rgba(15, 90, 150, 0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.3s;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}
.px-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
body.dark .px-back-top {
  background: rgba(7, 27, 50, 0.88);
  color: #6bdcff;
  border-color: rgba(105, 204, 255, 0.15);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

@media (max-width: 800px) {
  .footer.premium-footer {
    margin: 24px 0 90px !important;
    border-radius: 24px !important;
    padding: 24px !important;
  }
  .px-back-top {
    right: 14px;
    bottom: 138px;
    width: 40px;
    height: 40px;
  }
  body::after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .px-reveal,
  .game-cover img,
  .game-card,
  .px-back-top {
    transition: none !important;
  }
}
