/* Reset and Base */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Custom Animations */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(220, 0, 0, 0.8);
  }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utility Classes */
.shadow-glow {
  box-shadow: 0 0 20px rgba(220, 0, 0, 0.5);
}

.cta-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.game-card {
  animation: fade-in-up 0.6s ease-out;
}

.bet-row {
  animation: slide-in 0.5s ease-out;
}

.category-btn:hover {
  box-shadow: 0 0 30px rgba(220, 0, 0, 0.6);
}

/* Transitions */
#wheel {
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Prose Styling for Readability */
.prose-custom {
  font-size: 1rem;
  line-height: 1.75;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  color: #fff;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose-custom h1 {
  font-size: 2.25em;
}

.prose-custom h2 {
  font-size: 1.875em;
}

.prose-custom h3 {
  font-size: 1.5em;
}

.prose-custom p {
  margin-bottom: 1.25em;
}

.prose-custom ul,
.prose-custom ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}

.prose-custom li {
  margin-bottom: 0.5em;
}

.prose-custom a {
  color: #dc0000;
  text-decoration: none;
  transition: color 0.2s;
}

.prose-custom a:hover {
  color: #ff0000;
  text-decoration: underline;
}

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

.prose-custom code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
  color: #ffd700;
}

.prose-custom blockquote {
  border-left: 4px solid #dc0000;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #d1d5db;
  font-style: italic;
}

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

.prose-custom th,
.prose-custom td {
  padding: 0.75em;
  border: 1px solid #404040;
  text-align: left;
}

.prose-custom th {
  background: #2a2a2a;
  font-weight: 700;
  color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .prose-custom {
    font-size: 0.95rem;
  }

  .prose-custom h1 {
    font-size: 1.875em;
  }

  .prose-custom h2 {
    font-size: 1.5em;
  }

  .prose-custom h3 {
    font-size: 1.25em;
  }
}

/* Custom Gradient Backgrounds */
.bg-pattern-octagon {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(220, 0, 0, 0.05) 35px,
    rgba(220, 0, 0, 0.05) 70px
  );
}

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

/* Focus Styles */
button:focus,
a:focus {
  outline: 2px solid #dc0000;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: #dc0000;
  color: #fff;
}
