/* ==========================================================================
   MARSBAHIS — CRIMSON SPORTSBOOK & BETTING DESIGN SYSTEM
   Atmosphere: Deep Obsidian Crimson, Stadium Red Glow, Live Betting Terminal
   Theme: Mars Red & High-Stakes Sportsbook
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700;800&display=swap');

:root {
  /* Deep Obsidian Crimson Surfaces */
  --ink-base: #080506;
  --ink-surface: #0f090b;
  --ink-card: #150d10;
  --ink-card-hover: #1c1115;
  --ink-elevated: #241419;

  /* Mars Crimson Borders */
  --crimson-border: rgba(239, 68, 68, 0.16);
  --crimson-border-hover: rgba(239, 68, 68, 0.35);
  --crimson-border-active: rgba(239, 68, 68, 0.6);

  /* Typography */
  --text-main: #ffffff;
  --text-rose: #fca5a5;
  --text-muted: #9c7881;
  --text-dim: #6b5057;

  /* Crimson Brand Palette */
  --mars-red: #ef4444;
  --mars-red-dark: #dc2626;
  --mars-red-deep: #991b1b;
  --mars-glow: rgba(239, 68, 68, 0.3);

  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--ink-base);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ink-base);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ================= 1. STADIUM RED AMBIENT ATMOSPHERE ================= */
.ambient-bg {
  position: fixed;
  inset: 0;
  background-color: var(--ink-base);
  background-image: 
    radial-gradient(85% 60% at 50% -10%, rgba(220, 38, 38, 0.25) 0%, transparent 65%),
    radial-gradient(75% 50% at 85% 100%, rgba(185, 28, 28, 0.18) 0%, transparent 60%),
    radial-gradient(55% 45% at 15% 60%, rgba(239, 68, 68, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-red1 {
  position: absolute;
  top: -18%;
  left: 20%;
  width: 650px;
  height: 550px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(85px);
  animation: calmFloat1 18s ease-in-out infinite alternate;
}

.ambient-glow-red2 {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 550px;
  height: 480px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.16) 0%, rgba(153, 27, 27, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(95px);
  animation: calmFloat2 22s ease-in-out infinite alternate;
}

@keyframes calmFloat1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(50px, -30px) scale(1.12); opacity: 0.95; }
  100% { transform: translate(-30px, 40px) scale(0.95); opacity: 0.75; }
}

@keyframes calmFloat2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-40px, 30px) scale(1.14); opacity: 0.85; }
  100% { transform: translate(30px, -20px) scale(0.92); opacity: 0.65; }
}

/* ================= 2. CRIMSON BUTTONS ================= */
.btn-crimson-primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.35rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms var(--ease-smooth);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(254, 202, 202, 0.4);
}

.btn-crimson-primary:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.6), 0 4px 12px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.btn-crimson-secondary {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--crimson-border);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms var(--ease-smooth);
}

.btn-crimson-secondary:hover {
  background-color: rgba(239, 68, 68, 0.16);
  border-color: var(--crimson-border-hover);
  color: #ffffff;
  transform: translateY(-1.5px);
}

/* ================= 3. CARDS & BENTO ================= */
.crimson-card {
  background-color: var(--ink-card);
  border: 1px solid var(--crimson-border);
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 300ms var(--ease-smooth),
              border-color 300ms var(--ease-smooth),
              box-shadow 300ms var(--ease-smooth);
}

.crimson-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.35), transparent);
  pointer-events: none;
}

.crimson-card:hover {
  border-color: var(--crimson-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(220, 38, 38, 0.25);
}

/* ================= 4. PERSPECTIVE COCKPIT TERMINAL ================= */
.hero-perspective-wrap {
  perspective: 1800px;
}

.hero-dashboard-terminal {
  transform: rotateX(15deg) translateY(-20px);
  transform-origin: 50% 0%;
  transition: transform 600ms var(--ease-smooth), box-shadow 600ms var(--ease-smooth);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--crimson-border), 0 0 40px -10px rgba(239, 68, 68, 0.25);
  border-radius: 1.25rem;
  background-color: #0d0709;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero-perspective-wrap {
    perspective: none;
  }
  .hero-dashboard-terminal {
    transform: none !important;
  }
}

@media (min-width: 1025px) {
  .hero-dashboard-terminal:hover {
    transform: rotateX(7deg) translateY(-10px);
    box-shadow: 0 50px 140px -20px rgba(0, 0, 0, 0.95), 0 0 50px -5px rgba(239, 68, 68, 0.35);
  }
}

/* ================= 5. LIVE SPORTSBOOK ODDS BUTTONS ================= */
.odds-btn {
  background: #100a0d;
  border: 1px solid var(--crimson-border);
  border-radius: 0.75rem;
  padding: 0.625rem;
  text-align: center;
  cursor: pointer;
  transition: all 180ms var(--ease-smooth);
}

.odds-btn:hover {
  background: #1c0e12;
  border-color: var(--crimson-border-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.odds-btn.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.35) 100%);
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* ================= 6. AVIATOR HUD SCREEN ================= */
.aviator-hud {
  background: radial-gradient(circle at 50% 100%, #200d12 0%, #0c0608 100%);
  border: 1px solid var(--crimson-border);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(239, 68, 68, 0.2);
}

/* ================= 7. ROULETTE WHEEL (CRIMSON CASINO) ================= */
.wheel-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .wheel-wrapper {
    width: 310px;
    height: 310px;
  }
}

.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid #ef4444;
  z-index: 20;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px #ef4444);
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  background: radial-gradient(circle, #dc2626 0%, #991b1b 70%, #450a0a 100%);
  border: 2px solid #fecaca;
  border-radius: 50%;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth);
}

.wheel-hub:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 35px rgba(239, 68, 68, 1);
}

/* Range Slider */
input[type=range].slider-clean {
  -webkit-appearance: none;
  width: 100%;
  background: #241419;
  border-radius: 9999px;
  height: 6px;
  outline: none;
  border: 1px solid var(--crimson-border);
}

input[type=range].slider-clean::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ef4444;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px #ef4444, 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: transform 150ms var(--ease-smooth);
}

input[type=range].slider-clean::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-smooth), transform 700ms var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }

/* Marquee Ticker */
@keyframes tickerRun {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-marquee {
  display: flex;
  width: max-content;
  animation: tickerRun 45s linear infinite;
}

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

/* Modals */
.modal-backdrop {
  opacity: 0;
  transition: opacity 300ms var(--ease-smooth);
}

.modal-backdrop.active {
  opacity: 1;
}

.modal-content {
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 300ms var(--ease-smooth), transform 300ms var(--ease-smooth);
}

.modal-backdrop.active .modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

details summary::-webkit-details-marker {
  display: none;
}
details summary i {
  transition: transform 250ms var(--ease-smooth);
}
details[open] summary i {
  transform: rotate(180deg);
}

/* ================= 8. DELUXE CASINO GAME CARDS & ANIMATIONS ================= */
.game-card-deluxe {
  background: #12090c;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  transition: transform 320ms var(--ease-smooth),
              border-color 320ms var(--ease-smooth),
              box-shadow 320ms var(--ease-smooth);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.game-card-deluxe:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(239, 68, 68, 0.65);
}

.game-card-deluxe.aura-bonanza:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(244, 63, 94, 0.35);
}

.game-card-deluxe.aura-olympus:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(234, 179, 8, 0.35);
}

.game-card-deluxe.aura-aviator:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.45);
}

.game-card-deluxe.aura-crazy:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.35);
}

.game-card-deluxe.aura-rulet:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(220, 38, 38, 0.45);
}

.game-card-deluxe.aura-bass:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(6, 182, 212, 0.35);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.95rem;
  background: #18090d;
}

.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease-smooth), filter 550ms var(--ease-smooth);
  will-change: transform;
}

.game-card-deluxe:hover .game-thumb-img {
  transform: scale(1.1);
  filter: contrast(1.05) brightness(1.08);
}

/* Light Sheen Sweep Across Card */
.shine-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-smooth);
  pointer-events: none;
  z-index: 10;
}

.game-card-deluxe:hover .shine-sweep {
  transform: translateX(120%);
}

/* Play Now Hover Overlay */
.game-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 6, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 280ms var(--ease-smooth);
  z-index: 15;
}

.game-card-deluxe:hover .game-play-overlay {
  opacity: 1;
}

.play-circle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  border: 2px solid rgba(254, 202, 202, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.85);
  transform: scale(0.85);
  transition: transform 250ms var(--ease-smooth);
}

.game-card-deluxe:hover .play-circle-btn {
  transform: scale(1);
}

.play-circle-btn:hover {
  transform: scale(1.15);
}

/* Badges */
.game-badge-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 12;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.game-provider-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 12;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes badgePulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.pulse-badge {
  animation: badgePulseSoft 2s ease-in-out infinite;
}

/* ================= 9. LIVE & UPCOMING MATCH SWITCHER STYLES ================= */
.match-mode-tab {
  cursor: pointer;
}

.match-mode-tab.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(185, 28, 28, 0.6) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.match-pill-item {
  background: #14080b;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #a0a6b2;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 10px;
  transition: all 180ms var(--ease-smooth);
}

.match-pill-item:hover {
  background: #1e0d12;
  border-color: rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

.match-pill-item.active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.stake-pill-btn {
  cursor: pointer;
  transition: all 150ms var(--ease-smooth);
}

.stake-pill-btn.active {
  background: rgba(239, 68, 68, 0.4) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


