/* 8-bit Duck Hunt Animation Keyframes */
@keyframes duck-fly {
  0%,
  100% {
    transform: translateX(-100vw) translateY(0);
  }
  50% {
    transform: translateX(100vw) translateY(-30px);
  }
}

@keyframes pixel-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0);
  }
}

@keyframes crosshair-scan {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(10deg);
    opacity: 0;
  }
}

@keyframes slot-spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes retro-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

@keyframes wheel-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pixel Art Grid Background */
.pixel-bg {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Retro CRT Effect */
.crt-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

/* Duck Hunt Sky Gradient */
.duck-hunt-sky {
  background: linear-gradient(180deg, #0a1428 0%, #1a2942 50%, #2a3f5f 100%);
}

/* 8-bit Button Style */
.btn-8bit {
  position: relative;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3), inset -2px -2px 0 rgba(0, 0, 0, 0.2), inset 2px 2px 0
    rgba(255, 255, 255, 0.2);
  transition: all 0.1s;
}

.btn-8bit:hover {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3), inset -1px -1px 0 rgba(0, 0, 0, 0.2), inset 1px 1px 0
    rgba(255, 255, 255, 0.2);
  transform: translate(2px, 2px);
}

.btn-8bit:active {
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3), inset -1px -1px 0 rgba(0, 0, 0, 0.3);
  transform: translate(3px, 3px);
}

/* Pixel Border */
.pixel-border {
  border: 4px solid;
  border-image: repeating-linear-gradient(45deg, currentColor, currentColor 10px, transparent 10px, transparent 20px) 1;
}

/* Glowing Text Effect */
.glow-text {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4), 0 0
    40px rgba(255, 215, 0, 0.2);
}

/* Game Card Hover */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

/* Retro Scanlines */
.scanlines {
  position: relative;
  overflow: hidden;
}

.scanlines::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

/* Prose Styling for Readability */
.prose {
  color: #e0e7ff;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #ffd700;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.prose p {
  margin-bottom: 1.25rem;
}

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

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

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

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

.prose a:hover {
  color: #ffed4e;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Marquee Animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Pixel Pulse Animation */
.pixel-pulse {
  animation: pixel-pulse 2s ease-in-out infinite;
}

/* Mobile Menu Overlay */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

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

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

::-webkit-scrollbar-track {
  background: #0a1428;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 6px;
  border: 2px solid #0a1428;
}

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

/* Betting Table Styles */
.bet-win {
  color: #10b981;
  font-weight: 600;
}

.bet-loss {
  color: #ef4444;
  font-weight: 600;
}

/* Wheel Widget */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 8px solid #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #ffd700;
  z-index: 10;
}

/* Retro Alert */
.alert-retro {
  border: 4px solid #ffd700;
  background: rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
}

.alert-retro::before {
  content: "⚠";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  animation: retro-blink 1s infinite;
}

/* 3D Transform Cards */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}
