/* General styles */
.page-index {
  font-family: Arial, sans-serif;
  color: #FFF1E8; /* Text Main */
  background: #140C0C; /* Background */
  line-height: 1.6;
}

.page-index__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 16px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin: 0;
}

.page-index__view-more-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}
.page-index__view-more-btn:hover {
  opacity: 0.9;
}

/* Module 0: __home-hero */
.page-index__home-hero {
  padding: 10px 16px 24px; /* Default for mobile/tablet */
  box-sizing: border-box;
}

.page-index__hero-brand-title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe082, #ff9800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 12px;
}

.page-index__hero-brand-lead {
  color: rgba(255,255,255,.88);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

.page-index__hero-brand-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-index__hero-brand-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,.8);
}

.page-index__hero-jackpot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 12px;
  padding: 16px 12px;
  background: #2A1212; /* Card BG */
  overflow: hidden;
}

.page-index__hero-jackpot-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  margin: 0;
}

.page-index__hero-jackpot-amount {
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 800;
  color: #F3C54D; /* Gold */
  margin: 8px 0;
  line-height: 1.2;
}

.page-index__hero-jackpot-gift {
  font-size: 0.75rem;
  color: rgba(255,255,255,.85);
  margin: 0;
}

.page-index__hero-jackpot-claim {
  display: block;
  margin-top: 16px;
  padding: 14px 12px;
  border-radius: 8px;
  background: #c62828 !important; /* Deep Red CTA */
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.page-index__hero-jackpot-claim:hover {
  background: #e53935 !important;
}

/* Module 1: __game-trial */
.page-index__game-trial {
  max-width: 720px; /* Default for mobile/tablet */
  margin: 0 auto;
  padding: 0 0 16px;
  box-sizing: border-box;
}

.page-index__game-trial-shell {
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  background: #2A1212; /* Card BG */
}

.page-index__game-trial-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.75rem;
  background: rgba(0,0,0,.35);
  color: #FFF1E8;
}

.page-index__game-trial-top-promo {
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #7b1fa2, #9c27b0); /* Purple gradient */
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.page-index__game-trial-top-promo:hover {
  opacity: 0.9;
}

.page-index__game-trial-viewport {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.page-index__game-trial-frame {
  display: block;
  width: 100%;
  border: none;
  background: #1a1a2e; /* Dark background for game */
  position: relative;
  z-index: 1;
}

.page-index__game-trial-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.7rem;
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.75);
}

.page-index__game-trial-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  pointer-events: auto;
}

.page-index__game-trial-overlay.is-hidden {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.page-index__game-trial-start {
  position: relative;
  z-index: 6;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #ffd54f, #ff9800); /* Gold gradient */
  color: #1a1a1a;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255,193,7,.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-index__game-trial-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(255,193,7,.6);
}

/* Module 1.3: __reward-modal */
.page-index__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-index__reward-modal[hidden] {
  display: none;
}
.page-index__reward-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.page-index__reward-modal-card {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 360px;
  padding: 28px 20px;
  border-radius: 20px;
  border: 2px solid #F3C54D; /* Gold border */
  background: #2A1212; /* Card BG */
  text-align: center;
  box-shadow: 0 5px 30px rgba(0,0,0,.5);
}
.page-index__reward-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background-color 0.2s ease;
}
.page-index__reward-modal-close:hover {
  background: rgba(255,255,255,.22);
}
.page-index__reward-modal-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe082, #ff9800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px;
}
.page-index__reward-modal-subtitle {
  font-size: 1rem;
  color: #FFF1E8;
  margin: 0 0 20px;
}
.page-index__reward-modal-claim,
.page-index__reward-modal-retry {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.page-index__reward-modal-claim {
  background: linear-gradient(180deg, #ffe082, #ffb300); /* Gold gradient */
  color: #1a1a1a;
}
.page-index__reward-modal-claim:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.page-index__reward-modal-retry {
  background: #2a2218;
  color: #fff;
  border: 1px solid #F3C54D; /* Gold border */
}
.page-index__reward-modal-retry:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Module 2: __promo-strip */
.page-index__promo-strip {
  position: relative;
  z-index: 1;
  margin-top: 16px; /* Important: no negative margin */
  margin-bottom: 0;
  box-sizing: border-box;
}
.page-index__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Mobile 4 columns */
  gap: 6px;
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding: 0 8px 12px;
  box-sizing: border-box;
}
.page-index__promo-card {
  display: flex;
  flex-direction: column; /* Mobile: top-image-bottom-text */
  align-items: center;
  text-align: center;
  min-width: 0;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 8px 4px;
  background: #2A1212; /* Card BG */
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-index__promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,.4);
}
.page-index__promo-card-media {
  width: 100%;
  margin-bottom: 6px;
}
.page-index__promo-card-media img {
  width: 100%;
  max-width: 100%;
   /* Mobile image height constraint */
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.page-index__promo-card-title {
  margin: 0 0 4px;
  font-size: clamp(0.55rem, 2.8vw, 0.72rem); /* Mobile font size clamp */
  line-height: 1.2;
  font-weight: 700;
  color: #F3C54D; /* Gold */
}
.page-index__promo-card-line {
  margin: 0 0 2px;
  font-size: clamp(0.5rem, 2.2vw, 0.62rem); /* Mobile font size clamp */
  color: rgba(255,255,255,.82);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-index__promo-card-btn {
  display: block;
  width: 100%; /* Mobile button full width */
  margin-top: 6px;
  padding: 5px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.5rem, 2.2vw, 0.65rem); /* Mobile font size clamp */
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  transition: opacity 0.2s ease;
}
.page-index__promo-card-btn:hover {
  opacity: 0.9;
}

/* Module 3: __hot-games */
.page-index__hot-games {
  padding-bottom: 32px; /* Default for mobile/tablet */
}
.page-index__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile 2 columns */
  gap: 12px;
  max-width: 720px; /* Mobile max width */
  margin: 0 auto;
  padding: 0 16px;
}
.page-index__hot-games-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-index__hot-games-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,.4);
}
.page-index__hot-games-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

/* Module 4: __brand-intro */
.page-index__brand-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 24px;
  box-sizing: border-box;
}
.page-index__brand-intro-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  text-align: center;
}
.page-index__brand-intro p {
  margin-bottom: 15px;
  color: #FFF1E8;
  font-size: 0.9rem;
  line-height: 1.7;
}
.page-index__brand-intro-trust {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.page-index__brand-intro-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 0.85rem;
}
.page-index__brand-intro-trust-icon {
  color: #4CAF50; /* Green checkmark */
  font-size: 1.2rem;
}

/* Module 5: __winner-ticker */
.page-index__winner-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100; /* Below reward modal */
  height: 48px;
  background: linear-gradient(90deg, #C61F1F, #E53030); /* Main/Auxiliary Red */
  color: #FFF1E8;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,.3);
}
.page-index__winner-ticker-track {
  display: flex;
  width: max-content; /* Allow content to be wider than viewport */
  animation: scroll-left 20s linear infinite;
  padding: 0 100vw; /* Ensure continuous loop */
}
.page-index__winner-ticker-track:hover {
  animation-play-state: paused;
}
.page-index__winner-ticker-item {
  flex-shrink: 0;
  padding: 0 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  display: none; /* Hidden by default, JS will activate */
}
.page-index__winner-ticker-item.is-active {
  display: block; /* For JS ticker, one active at a time */
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Scroll half of the content width */
}
/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .page-index__winner-ticker-track {
    animation: none;
    justify-content: center;
  }
  .page-index__winner-ticker-item {
    display: block;
    padding: 0 10px;
  }
}

/* Body padding for winner ticker */
body {
  padding-bottom: 48px; /* Space for fixed winner ticker */
}

/* --- RESPONSIVE CSS BLOCKS (VERBATIM FROM PROMPT) --- */

/* A. @media (max-width: 1023px) - Mobile/Tablet specific for Hero */
@media (max-width: 1023px) {
  .page-index__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 10px 12px 16px; /* Added padding for smaller screens */
  }
  .page-index__hero-brand,
  .page-index__hero-jackpot {
    display: none !important;
  }
  .page-index__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-index__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-index__game-trial-topbar,
  .page-index__game-trial-bottombar {
    display: none !important;
  }
  .page-index__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
}