/* =============================================================
   DiceSpin Casino – Custom CSS
   Theme: Stahl Roll – Graphite + Electric Blue, Dark Metallic
   ============================================================= */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0d1117;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =============================================================
   TYPOGRAPHY / PROSE
   ============================================================= */

.prose-casino {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 1rem;
  max-width: 72ch;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #f9fafb;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-casino h1 { font-size: 2.25rem; }
.prose-casino h2 { font-size: 1.75rem; color: #60a5fa; }
.prose-casino h3 { font-size: 1.375rem; color: #93c5fd; }
.prose-casino h4 { font-size: 1.125rem; }

.prose-casino p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.prose-casino a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #93c5fd;
}

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

.prose-casino li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose-casino ul li::marker {
  color: #3b82f6;
}

.prose-casino ol li::marker {
  color: #3b82f6;
  font-weight: 700;
}

.prose-casino blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-casino strong {
  color: #f9fafb;
  font-weight: 700;
}

.prose-casino em {
  color: #bfdbfe;
}

.prose-casino hr {
  border-color: #374151;
  margin: 2rem 0;
}

.prose-casino code {
  background: #1f2937;
  color: #60a5fa;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* Table scroll wrapper mandatory classes */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* Tables within prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose-casino th {
  background: #1e3a5f;
  color: #60a5fa;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid #2563eb;
}

.prose-casino td {
  padding: 0.625rem 1rem;
  color: #d1d5db;
  border-bottom: 1px solid #374151;
}

.prose-casino tr:hover td {
  background: rgba(30, 58, 95, 0.3);
}

/* =============================================================
   MARQUEE / GAME STRIP ANIMATION
   ============================================================= */

.games-marquee {
  display: flex;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

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

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

/* =============================================================
   PARALLAX HERO
   ============================================================= */

.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .hero-parallax {
    background-attachment: scroll;
  }
}

/* =============================================================
   PROVIDER WORD CLOUD
   ============================================================= */

.provider-tag {
  color: #60a5fa;
  transition: color 0.2s, transform 0.2s;
  cursor: default;
  display: inline-block;
  line-height: 1.6;
}

.provider-tag:hover {
  color: #93c5fd;
  transform: scale(1.1);
}

/* =============================================================
   STICKY HEADER SCROLL EFFECT
   ============================================================= */

#site-header {
  transition: box-shadow 0.3s;
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.18);
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #3b82f6;
  transform: scale(1.04);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid #3b82f6;
  color: #60a5fa;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: scale(1.04);
}

/* =============================================================
   CARDS & SECTIONS
   ============================================================= */

.section-card {
  background: #1a2332;
  border-radius: 1rem;
  border: 1px solid #1e3a5f;
  transition: border-color 0.3s;
}

.section-card:hover {
  border-color: #3b82f6;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */

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

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease both;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s infinite;
}

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

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.15) 50%,
    transparent 100%
  );
  background-size: 800px 100%;
  animation: shimmer 2.5s infinite linear;
}

/* =============================================================
   SCROLLBAR
   ============================================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a2332;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* =============================================================
   RESPONSIVE HELPERS
   ============================================================= */

@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.75rem; }
  .prose-casino h2 { font-size: 1.4rem; }
  .prose-casino h3 { font-size: 1.2rem; }
}

/* =============================================================
   OVERFLOW TABLE FALLBACK
   ============================================================= */

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

table {
  word-break: normal;
}

td, th {
  word-break: break-word;
}

/* =============================================================
   HEADER BURGER ANIMATION
   ============================================================= */

#burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

#burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =============================================================
   FOCUS & ACCESSIBILITY
   ============================================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   HEADER SCROLL SCRIPT HELPER
   ============================================================= */
