/* === Custom Animations & Keyframes === */

@keyframes snowfall {
  0% {
    transform: translateY(-10vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(100px);
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 71, 154, 0.5), 0 0 40px rgba(255, 71, 154, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 71, 154, 0.8), 0 0 60px rgba(255, 71, 154, 0.5);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* === Snow Effect === */
.snow {
  position: fixed;
  top: -10vh;
  left: 0;
  width: 100%;
  height: 110vh;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: snowfall linear infinite;
}

.snowflake:nth-child(1) {
  left: 5%;
  animation-duration: 12s;
  animation-delay: 0s;
}
.snowflake:nth-child(2) {
  left: 15%;
  animation-duration: 15s;
  animation-delay: 2s;
}
.snowflake:nth-child(3) {
  left: 25%;
  animation-duration: 10s;
  animation-delay: 4s;
}
.snowflake:nth-child(4) {
  left: 35%;
  animation-duration: 13s;
  animation-delay: 1s;
}
.snowflake:nth-child(5) {
  left: 45%;
  animation-duration: 11s;
  animation-delay: 3s;
}
.snowflake:nth-child(6) {
  left: 55%;
  animation-duration: 14s;
  animation-delay: 5s;
}
.snowflake:nth-child(7) {
  left: 65%;
  animation-duration: 12s;
  animation-delay: 2s;
}
.snowflake:nth-child(8) {
  left: 75%;
  animation-duration: 16s;
  animation-delay: 0s;
}
.snowflake:nth-child(9) {
  left: 85%;
  animation-duration: 13s;
  animation-delay: 4s;
}
.snowflake:nth-child(10) {
  left: 95%;
  animation-duration: 11s;
  animation-delay: 1s;
}

/* === Utility Classes === */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #091228;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff479a, #ff6b9d);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff479a;
}

/* === Prose Styling === */
.prose {
  max-width: 65ch;
  color: rgba(255, 255, 255, 0.9);
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.prose a {
  color: #ff479a;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #ff6b9d;
}

.prose strong {
  font-weight: 600;
  color: #fff;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose th {
  background: rgba(255, 71, 154, 0.1);
  font-weight: 600;
  color: #fff;
}

/* === Glass Effect === */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Custom Buttons === */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s;
}

.btn-3d:hover {
  transform: translateY(-2px);
}

.btn-3d:active {
  transform: translateY(0);
}

/* === Grid Hover Effects === */
.game-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 71, 154, 0.3);
}

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}
