/* Base styles for dark theme */
.page-index {
  background-color: #1a1a2e; /* Dark background, assuming var(--accent-color) is dark */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 16px; /* Added padding for consistency */
  box-sizing: border-box;
}

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

.page-index__view-more {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}
.page-index__view-more:hover {
  color: #ffd54f;
}

/* Common button styles */
.page-index a[class*="button"],
.page-index a[class*="btn"],
.page-index button[class*="button"],
.page-index button[class*="btn"] {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Module 0/1: Home Hero Section */
.page-index__home-hero {
  padding: 10px 12px 16px; /* Default padding for mobile */
  box-sizing: border-box;
}

.page-index__hero-brand-title {
  font-size: clamp(1.1rem, 5vw, 1.5rem); /* Adjusted for mobile default */
  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;
  text-align: center; /* Centered on mobile */
}
.page-index__hero-brand-lead {
  color: rgba(255,255,255,.88);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px;
  text-align: center; /* Centered on mobile */
}
.page-index__hero-brand-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centered on mobile */
  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-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.page-index__hero-jackpot-amount {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Adjusted for mobile default */
  font-weight: 800;
  color: #ffd54f;
  margin: 8px 0;
  line-height: 1.2;
}
.page-index__hero-jackpot-gift {
  font-size: 0.8rem;
  color: #c62828; /* Red for gift */
  margin: 0;
}

/* Module 1.1: Game Trial Shell */
.page-index__game-trial {
  max-width: 720px; /* Default max-width for mobile */
  margin: 0 auto;
  padding: 0 0 16px;
  box-sizing: border-box;
}
.page-index__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
  background: #0a1628;
}
.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: rgba(255,255,255,.8);
}
.page-index__game-trial-label {
  font-weight: 700;
  color: #ffd54f;
}
.page-index__game-trial-top-jackpot {
  color: #ffd54f;
  font-weight: 700;
}
.page-index__game-trial-top-promo {
  padding: 4px 10px; border-radius: 6px;
  background: linear-gradient(90deg, #7b1fa2, #9c27b0);
  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;
  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); color: #1a1a1a; font-weight: 700;
  box-shadow: 0 0 20px rgba(255,193,7,.45);
}

/* 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;
}
.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);
}