/* Base styles and color palette */
:root {
  --page-index-primary-color: #11A84E;
  --page-index-secondary-color: #22C768;
  --page-index-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-index-card-bg: #11271B;
  --page-index-bg: #08160F;
  --page-index-text-main: #F2FFF6;
  --page-index-text-secondary: #A7D9B8;
  --page-index-border-color: #2E7A4E;
  --page-index-glow-color: #57E38D;
  --page-index-gold-color: #F2C14E;
  --page-index-divider-color: #1E3A2A;
  --page-index-deep-green: #0A4B2C;
  --page-index-red-cta: #c62828; /* Specific red for jackpot claim */
}

.page-index {
  color: var(--page-index-text-main);
  background: var(--page-index-bg);
}

.page-index__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--page-index-gold-color);
  margin: 0;
}

.page-index__view-more {
  color: var(--page-index-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.page-index__view-more:hover {
  color: var(--page-index-gold-color);
}

/* General image and button responsive styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index a[class*="button"],
.page-index a[class*="btn"],
.page-index button[class*="button"],
.page-index button[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Reward Modal Base Styles */
.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: var(--page-index-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: 1.8rem; font-weight: 800; margin: 0 0 8px;
  background: linear-gradient(180deg, #ffe082, #ff9800);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-index__reward-modal-subtitle {
  font-size: 1rem; color: var(--page-index-text-secondary); 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;
}
.page-index__reward-modal-claim {
  background: linear-gradient(180deg, #ffe082, #ffb300); color: #1a1a1a; font-weight: 700;
}
.page-index__reward-modal-retry {
  background: #2a2218; color: #fff; border: 1px solid #d4af37;
}

/* Winner Ticker Base Styles */
.page-index__winner-ticker {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(90deg, #c62828, #d32f2f, #c62828);
  color: #fff; padding: 8px 0; overflow: hidden;
  font-size: 0.8rem; text-align: center;
  height: 48px; display: flex; align-items: center;
}
.page-index__winner-ticker-track {
  display: flex; animation: ticker-scroll 15s linear infinite;
}
.page-index__winner-ticker-item {
  white-space: nowrap; padding: 0 15px;
  flex-shrink: 0; display: none;
}
.page-index__winner-ticker-item.is-active {
  display: block;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Homepage Hero Section */
.page-index__home-hero {
  padding: 10px 12px 16px;
  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-brand-trust-icon {
  color: var(--page-index-gold-color);
}

.page-index__game-trial {
  max-width: 720px; 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;
  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: var(--page-index-text-main);
}
.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);
}

.page-index__hero-jackpot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 12px;
  padding: 16px 12px;
  background: #120c06;
  color: var(--page-index-text-main);
}
.page-index__hero-jackpot-label {
  font-size: 0.8rem; color: var(--page-index-text-secondary); margin: 0 0 4px;
}
.page-index__hero-jackpot-amount {
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 800;
  color: #ffd54f;
  margin: 8px 0;
  line-height: 1.2;
}
.page-index__hero-jackpot-gift {
  font-size: 0.75rem; color: var(--page-index-text-secondary); margin: 0;
}
.page-index__hero-jackpot-gift span {
  color: var(--page-index-gold-color);
}
.page-index__hero-jackpot-claim {
  display: block;
  margin-top: 16px;
  padding: 14px 12px;
  border-radius: 8px;
  background: var(--page-index-red-cta) !important;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

/* 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);
  border-radius: 10px;
  padding: 8px 4px;
  background: #1a1208;
  box-sizing: border-box;
  color: var(--page-index-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;
}