/* rtxplay.com - NVIDIA RTX & Cyberpunk Gaming Aesthetics */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #090c10;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #76b900;
}

/* RTX Glow Elements */
.rtx-glow-green {
  box-shadow: 0 0 25px rgba(118, 185, 0, 0.35);
}

.rtx-border-glow:hover {
  border-color: #76b900;
  box-shadow: 0 0 20px rgba(118, 185, 0, 0.25);
}

/* Game Card Glow & Hover Effects */
.steam-game-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.steam-game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px 2px rgba(118, 185, 0, 0.2);
  border-color: rgba(118, 185, 0, 0.5);
}

.steam-game-card:hover .steam-card-img {
  transform: scale(1.06);
}

.steam-card-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Play Mobile Button with RTX neon sweep */
.play-mobile-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.play-mobile-btn:hover {
  box-shadow: 0 0 25px rgba(118, 185, 0, 0.6);
  transform: translateY(-1px);
}

.play-mobile-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
}

.play-mobile-btn:hover::after {
  left: 100%;
}

/* Coin / Credit Badge Pulse */
@keyframes coinPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 10px 2px rgba(234, 179, 8, 0.6);
  }
}

.pulse-coin {
  animation: coinPulse 3s infinite ease-in-out;
}

/* Toast styling */
.toast-msg {
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Viewport & Modal Centering Fix */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

#playRedirectModal, #googleLoginModal {
  padding: 12px !important;
  box-sizing: border-box;
}

#playRedirectModal.hidden, #googleLoginModal.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  #playRedirectModal > div, #googleLoginModal > div {
    width: 100% !important;
    max-width: 95vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
