/* General styles */
.page-index {
  color: #F3F8FF; /* Text Main */
  background: #08162B; /* Deep Navy from custom colors */
  padding-bottom: 48px; /* For winner ticker */
  box-sizing: border-box;
}

.page-index__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 16px; /* For PC max-width container */
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #F3F8FF; /* Text Main */
  margin: 0;
  font-weight: 700;
}

.page-index__view-more {
  color: #AFC4E8; /* Text Secondary */
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-index__view-more:hover {
  color: #1D5FD1; /* Auxiliary color */
}

/* Module 0/1: __home-hero */
.page-index__home-hero {
  background: #08162B; /* Deep Navy */
}

.page-index__hero-brand-trust-icon {
  color: #F2C14E; /* Gold */
  font-size: 1.1em;
  margin-right: 5px;
}

.page-index__hero-jackpot-label {
  color: #AFC4E8; /* Text Secondary */
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.page-index__hero-jackpot-gift {
  color: #AFC4E8; /* Text Secondary */
  font-size: 0.8rem;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.page-index__hero-jackpot-gift span {
  color: #F2C14E; /* Gold */
  font-size: 1.1em;
}

/* Module 1.1: __game-trial-shell */
.page-index__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45); /* Goldish border */
  border-radius: 10px;
  overflow: hidden;
  background: #0a1628; /* Dark background */
  box-sizing: border-box;
}
.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: #F3F8FF; /* Text Main */
}
.page-index__game-trial-top-jackpot {
  color: #F2C14E; /* Gold */
  font-weight: 700;
}
.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;
}
.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 */
  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 {
  max-width: 720px; margin: 0 auto; padding: 0 0 16px; box-sizing: border-box;
}
.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); /* Gold glow */
}

/* 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 #d4af37; background: #1a1208; text-align: center;
  color: #F3F8FF; /* Text Main */
}
.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;
}
.page-index__reward-modal-close:hover {
  background: rgba(255,255,255,.22);
}
.page-index__reward-modal-brand {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  background: linear-gradient(180deg, #ffe082, #ff9800); /* Gold gradient */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px;
}
.page-index__reward-modal-subtitle {
  font-size: 1rem;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 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;
}
.page-index__reward-modal-claim {
  background: linear-gradient(180deg, #ffe082, #ffb300); /* Gold gradient */
  color: #1a1a1a;
}
.page-index__reward-modal-retry {
  background: #2a2218; /* Dark background */
  color: #fff; border: 1px solid #d4af37; /* Gold border */
}

/* Module 2: __promo-strip */
.page-index__promo-strip {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  margin-bottom: 0;
  box-sizing: border-box;
}
.page-index__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow-x: hidden;
  padding: 0 8px 12px;
  box-sizing: border-box;
}
.page-index__promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  border: 1px solid rgba(212,175,55,.45); /* Goldish border */
  border-radius: 10px;
  padding: 8px 4px;
  background: #1a1208; /* Dark background */
  box-sizing: border-box;
  color: #F3F8FF; /* Text Main */
}
.page-index__promo-card-media {
  width: 100%;
  margin-bottom: 6px;
}
.page-index__promo-card-media img {
  width: 100%;
  max-width: 100%;
  
  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);
  line-height: 1.2;
  font-weight: 700;
  color: #ffd54f; /* Gold */
}
.page-index__promo-card-line {
  margin: 0 0 2px;
  font-size: clamp(0.5rem, 2.2vw, 0.62rem);
  color: rgba(255,255,255,.82);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-index__promo-card-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe082, #ffb300); /* Gold gradient */
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.5rem, 2.2vw, 0.65rem);
  text-align: center;
  box-sizing: border-box;
}

/* Module 3: __hot-games */
.page-index__hot-games {
  padding: 24px 0;
}
.page-index__hot-games-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  max-width: 720px; margin: 0 auto;
  padding: 0 16px; /* Match section header padding */
  box-sizing: border-box;
}
.page-index__hot-games-item {
  display: block; /* Ensure the whole card is clickable */
  text-decoration: none;
  color: inherit;
}
.page-index__hot-games-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Slight round corners */
  overflow: hidden;
}

/* Module 4: __brand-intro */
.page-index__brand-intro {
  padding: 24px 16px;
  color: #F3F8FF; /* Text Main */
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-index__brand-intro-title {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 16px;
  text-align: center;
}
.page-index__brand-intro p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1em;
  color: #AFC4E8; /* Text Secondary */
}
.page-index__brand-intro-trust {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}