.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-primary {
  --tw-gradient-from: var(--color-primary);
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(37, 99, 235, 0));
}
.to-secondary {
  --tw-gradient-to: var(--color-secondary);
}
.from-accent {
  --tw-gradient-from: var(--color-accent);
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(245, 158, 11, 0));
}
.to-primary {
  --tw-gradient-to: var(--color-primary);
}
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}
.text-transparent {
  color: transparent;
}

/* -------------------------------------------------------------
   Tailwind v3 “slate” palette compatibility for Tailwind v2.2.19
   (do not remove — required for bg-slate-*, text-slate-*, etc.)
------------------------------------------------------------- */

/* Background colors */
.bg-slate-800 {
  background-color: #1e293b;
}
.bg-slate-900 {
  background-color: #0f172a;
}
.bg-slate-800\/50 {
  background-color: rgba(30, 41, 59, 0.5);
}
.bg-slate-900\/30 {
  background-color: rgba(15, 23, 42, 0.3);
}

/* Text colors */
.text-slate-200 {
  color: #e2e8f0;
}
.text-slate-300 {
  color: #cbd5e1;
}
.text-slate-400 {
  color: #94a3b8;
}

/* Border colors */
.border-slate-700 {
  border-color: #334155;
}

/* Gradient stops */
.from-slate-900 {
  --tw-gradient-from: #0f172a;
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(15, 23, 42, 0));
}
.to-gray-900 {
  --tw-gradient-to: #111827;
}

/* -------------------------------------------------------------
   Global behaviour
------------------------------------------------------------- */
html,
body {
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* -------------------------------------------------------------
   Key-frame animations  (all originals preserved)
------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* duplicate kept intentionally – both definitions included */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* fancy radial spin on hero bg */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes spin-slow {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Tailwind-style custom animation helpers */
.animate-float-slow {
  animation: float 6s ease-in-out infinite;
}
.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}
.animate-pulse-slow {
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* -------------------------------------------------------------
   Hero section & background effects
------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-size: 200% 200%;
  animation: fadeInUp 1s ease, gradientBG 15s ease infinite;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
  animation: spin-slow 60s linear infinite;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(245,158,11,0.1)" d="M0,100 L100,100 L100,0 Q50,50 0,0 Z"/><path fill="rgba(37,99,235,0.05)" d="M0,0 L0,100 L100,100 Q50,70 0,0 Z"/></svg>')
    no-repeat;
  background-size: 100% 100%;
  background-position: bottom;
  opacity: 0.5;
  z-index: 0;
}

/* -------------------------------------------------------------
   Game cards
------------------------------------------------------------- */
.game-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(245, 158, 11, 0) 100%
  );
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: #f59e0b;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.game-card:hover::before {
  transform: translateY(0);
}

/* animation delays kept */
.game-card:nth-child(1) {
  animation-delay: 0.1s;
}
.game-card:nth-child(2) {
  animation-delay: 0.2s;
}
.game-card:nth-child(3) {
  animation-delay: 0.3s;
}
.game-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* -------------------------------------------------------------
   Trust badges & testimonials
------------------------------------------------------------- */
.trust-badge {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.trust-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: #f59e0b;
}
.trust-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(245, 158, 11, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.trust-badge:hover::after {
  opacity: 1;
}

.testimonial-card {
  background: #1e293b;
  border: 1px solid #334155;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------------------
   CTA button glow
------------------------------------------------------------- */
.cta-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}
.cta-gradient::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite ease-in-out;
}
@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* -------------------------------------------------------------
   Modal fixes
------------------------------------------------------------- */
#authModal,
#gameModal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------------------
   Tailwind v3 utilities ported to v2.2.19
   (feel free to extend—just follow the pattern)
------------------------------------------------------------- */
.w-90vw {
  width: 90vw;
}
.max-w-1400 {
  max-width: 1400px;
}
.blur-effect {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.bg-black\/70 {
  background-color: rgba(0, 0, 0, 0.7);
}
.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 16 : 9 aspect-ratio helper */
.aspect-video {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.aspect-video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.aspect-video > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Simple fade-scale for auth modal */
@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-fadeScale {
  animation: fadeScale 0.3s ease-out both;
}

/* Optional quick-spin */
@keyframes spinQuick {
  to {
    transform: rotate(360deg);
  }
}
.animate-spinQuick {
  animation: spinQuick 0.5s linear infinite;
}

/* -------------------------------------------------------------
   CSS variables for easy theme tweaks
------------------------------------------------------------- */
:root {
  --color-primary: #2563eb;
  --color-secondary: #15803d;
  --color-accent: #f59e0b;
  --color-dark: #1e293b;
}
.bg-primary {
  background-color: var(--color-primary);
}
.bg-secondary {
  background-color: var(--color-secondary);
}
.text-accent {
  color: var(--color-accent);
}
.font-poppins {
  font-family: "Poppins", sans-serif;
}

/* -------------------------------------------------------------
   Utility helpers
------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hover-animation {
  transition: all 0.3s ease-in-out;
}
.hover-animation:hover {
  transform: scale(1.05);
}
.bg-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Footer links */
.footer-links a:hover {
  color: var(--color-accent);
}

/* Content / privacy sections */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}
.privacy-section {
  background: #1e293b;
  border: 1px solid #334155;
}
iframe {
  border: none;
  width: 100%;
  height: 80vh;
}
