/* =====================================================
   BitGuruz Casino — Custom CSS
   Theme: Island Nexus (Turquoise & Gold, Futuristic)
   ===================================================== */

/* ---- Reset & Base ---- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  word-break: break-word;
}

table,
table th,
table td {
  word-break: normal;
  overflow-wrap: normal;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: #050E1A;
  color: #E8F8F8;
  overflow-x: hidden;
  min-height: 100vh;
  max-width: 100%;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

/* Wide children must not stretch grid/flex parents past the viewport */
.grid > *,
.flex > * {
  min-width: 0;
}

[class*="max-w-site"] {
  min-width: 0;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #081828;
}
::-webkit-scrollbar-thumb {
  background: #00C8C8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFD700;
}

/* ---- Table Overflow Utility ---- */
.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ---- Prose Casino ---- */
.prose-casino {
  color: #E8F8F8;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  color: #FFD700;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; }
.prose-casino h3 { font-size: 1.3rem; }

.prose-casino p {
  margin-bottom: 1em;
  color: #7ABFBF;
}

.prose-casino a {
  color: #00C8C8;
  text-decoration: underline;
  transition: color 0.2s;
}
.prose-casino a:hover {
  color: #FFD700;
}

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
  color: #7ABFBF;
}

.prose-casino li {
  margin-bottom: 0.4em;
}

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

.prose-casino em {
  color: #00E5FF;
}

.prose-casino blockquote {
  border-left: 4px solid #00C8C8;
  padding-left: 1em;
  color: #7ABFBF;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino code {
  background: #0B2030;
  color: #00E5FF;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose-casino pre {
  background: #0B2030;
  border: 1px solid #0F3050;
  border-radius: 8px;
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1em;
}

.prose-casino hr {
  border-color: #0F3050;
  margin: 2em 0;
}

/* Horizontal scroll for wide tables on narrow screens */
.prose-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  contain: inline-size;
}

.prose-table-scroll table {
  width: max-content;
  margin-top: 0;
  margin-bottom: 0;
  border-collapse: collapse;
}

.prose-table-scroll table th,
.prose-table-scroll table td {
  white-space: nowrap;
  padding: 0.75rem 1rem;
}

.prose-table-scroll table th:first-child,
.prose-table-scroll table td:first-child {
  white-space: normal;
  min-width: 8.5rem;
}

.prose-table-scroll.table-payments table {
  min-width: 42rem;
}

.prose-table-scroll.table-compact table {
  min-width: 28rem;
}

/* Payments table — full-width layout on desktop */
@media (min-width: 768px) {
  .prose-table-scroll.table-payments {
    overflow-x: visible;
    contain: none;
  }

  .prose-table-scroll.table-payments table.payments-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
  }

  .payments-table thead th {
    background: #081828;
    color: #00C8C8;
    font-weight: 700;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #0F3050;
    white-space: normal;
  }

  .payments-table thead th:first-child {
    text-align: left;
    width: 22%;
  }

  .payments-table tbody td {
    padding: 1rem 1.25rem;
    text-align: center;
    vertical-align: middle;
    border-top: 1px solid #0F3050;
    white-space: normal;
  }

  .payments-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #E8F8F8;
  }

  .payments-table tbody tr:hover td {
    background: rgba(11, 32, 48, 0.85);
  }

  .payments-table tbody tr:nth-child(even) td {
    background: rgba(8, 24, 40, 0.45);
  }

  .payments-table tbody tr:nth-child(even):hover td {
    background: rgba(11, 32, 48, 0.85);
  }
}

.prose-casino .prose-table-scroll {
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: 0.875rem;
}

.prose-casino table thead th {
  background: #081828;
  color: #00C8C8;
  font-weight: 700;
  padding: 0.6em 1em;
  text-align: left;
  border-bottom: 2px solid #0F3050;
}

.prose-casino table tbody td {
  padding: 0.5em 1em;
  border-bottom: 1px solid #0F3050;
  color: #7ABFBF;
}

.prose-casino table tbody tr:hover {
  background: #0B2030;
}

/* Prose (Tailwind prose overrides for dark theme) */
.prose.prose-invert {
  color: #7ABFBF;
}
.prose.prose-invert h1,
.prose.prose-invert h2,
.prose.prose-invert h3,
.prose.prose-invert h4 {
  color: #FFD700;
}
.prose.prose-invert a {
  color: #00C8C8;
}
.prose.prose-invert strong {
  color: #E8F8F8;
}
.prose.prose-invert code {
  color: #00E5FF;
  background: #0B2030;
}
.prose.prose-invert blockquote {
  border-left-color: #00C8C8;
  color: #7ABFBF;
}
.prose.prose-invert thead th {
  color: #00C8C8;
}
.prose.prose-invert td, .prose.prose-invert th {
  border-color: #0F3050;
}
.prose.prose-invert table {
  border-color: #0F3050;
}

/* ---- Glow Effects ---- */
.glow-gold {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), 0 0 60px rgba(255, 215, 0, 0.1);
}

.glow-primary {
  box-shadow: 0 0 20px rgba(0, 200, 200, 0.3), 0 0 40px rgba(0, 200, 200, 0.1);
}

.glow-text-gold {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ---- Data Stream Animation (Hero Background FX) ---- */
.data-stream {
  position: absolute;
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #00C8C8, transparent);
  border-radius: 2px;
  animation: dataFlow 4s infinite linear;
  opacity: 0.4;
}

.data-stream-1 {
  left: 15%;
  top: -120px;
  animation-duration: 4s;
  animation-delay: 0s;
}
.data-stream-2 {
  left: 50%;
  top: -120px;
  animation-duration: 6s;
  animation-delay: 1.5s;
  background: linear-gradient(to bottom, transparent, #FFD700, transparent);
  opacity: 0.3;
}
.data-stream-3 {
  left: 80%;
  top: -120px;
  animation-duration: 5s;
  animation-delay: 0.8s;
}

@keyframes dataFlow {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(calc(100vh + 200px));
    opacity: 0;
  }
}

/* ---- Parallax Hero ---- */
#hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* ---- CTA Buttons ---- */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.cta-primary:hover::before {
  left: 100%;
}

/* ---- Game Cards ---- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 200, 200, 0.2);
}

/* ---- Promo Cards ---- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 200, 200, 0.15);
}

/* ---- Step Cards ---- */
.step-card {
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
}

/* ---- Word Cloud ---- */
.word-cloud {
  line-height: 1.8;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.wc-tag {
  display: inline-block;
  color: #7ABFBF;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s, text-shadow 0.2s;
  cursor: default;
}

.wc-tag:hover {
  color: #00C8C8;
  text-shadow: 0 0 8px rgba(0,200,200,0.5);
}

.wc-sm  { font-size: 0.75rem; }
.wc-md  { font-size: 0.9rem; }
.wc-lg  { font-size: 1.1rem; color: #E8F8F8; }
.wc-xl  { font-size: 1.3rem; color: #FFD700; font-weight: 800; }

/* ---- Marquee Strip ---- */
.marquee-strip {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  animation: marqueeScroll 30s linear infinite;
  display: inline-flex;
  gap: 2rem;
  width: max-content;
  max-width: none;
  will-change: transform;
}

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

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

/* ---- FAQ ---- */
.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  color: #E8F8F8;
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: #00C8C8;
}

.faq-answer {
  border-top: 1px solid #0F3050;
}

.faq-item {
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #00C8C8;
}

/* ---- Header Sticky ---- */
#site-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(8, 24, 40, 0.97);
}

/* ---- Burger Lines ---- */
#burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- SVG Pattern Background ---- */
.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C8C8' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-hex-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23FFD700' fill-opacity='0.03' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Ocean Wave Divider ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider .shape-fill {
  fill: #050E1A;
}

/* ---- Gradient Borders ---- */
.gradient-border {
  position: relative;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #00C8C8, #FFD700, #00C8C8);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ---- Neon Pulse Animation ---- */
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 5px #00C8C8, 0 0 10px #00C8C8, 0 0 20px #00C8C8;
  }
  50% {
    box-shadow: 0 0 10px #00C8C8, 0 0 25px #00C8C8, 0 0 50px #00C8C8;
  }
}

.neon-pulse {
  animation: neonPulse 2.5s ease-in-out infinite;
}

/* ---- Float Animation ---- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.float-anim {
  animation: floatY 4s ease-in-out infinite;
}

/* ---- Shimmer Effect ---- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(90deg, #FFD700 0%, #fff 40%, #00C8C8 60%, #FFD700 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ---- Grid Ocean Pattern ---- */
.ocean-grid {
  background-image:
    linear-gradient(rgba(0,200,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,200,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- Responsive Utilities ---- */
@media (max-width: 640px) {
  .prose-table-scroll table th,
  .prose-table-scroll table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  .prose-table-scroll.table-payments table {
    min-width: 36rem;
  }

  .prose-table-scroll.table-compact table {
    min-width: 22rem;
  }

  #hero .cta-primary,
  #hero .cta-secondary {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .game-card {
    font-size: 0.75rem;
  }
  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.3rem; }
  .prose-casino h3 { font-size: 1.1rem; }
}

@media (max-width: 1024px) {
  #hero {
    background-attachment: scroll;
  }
}

/* ---- Selection Color ---- */
::selection {
  background: rgba(0, 200, 200, 0.3);
  color: #E8F8F8;
}

/* ---- Focus Styles ---- */
*:focus-visible {
  outline: 2px solid #00C8C8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Utility Classes ---- */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00C8C8, #00E5FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-gradient {
  border-image: linear-gradient(135deg, #00C8C8, #FFD700) 1;
}

/* ---- Island Tropical Accent Dots ---- */
.tropical-dots {
  background-image: radial-gradient(circle, rgba(0,200,200,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}