/* Base Styles */
.page-index {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
  padding-bottom: 48px; /* For winner ticker */
}

.page-index__section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin: 32px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-index__view-more {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  background: rgba(46, 122, 78, 0.3); /* Deep Green transparent */
  padding: 6px 12px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.page-index__view-more:hover {
  background: rgba(46, 122, 78, 0.5);
}

/* Home Hero Section - PC Layout (>=1024px) */
@media (min-width: 1024px) {
  .page-index__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
    background: transparent;
    border: none;
  }
  .page-index__hero-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    border: none;
    background: transparent;
    padding: 0;
    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: #A7D9B8; /* Text Secondary */
    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: #A7D9B8; /* Text Secondary */
  }
  .page-index__hero-brand-trust-icon {
    color: #F2C14E; /* Gold */
  }
  .page-index__hero-jackpot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 300px;
    max-height: 300px;
    box-sizing: border-box;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 16px 12px;
    background: #11271B; /* Card BG */
    overflow: hidden;
  }
  .page-index__hero-jackpot-label {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  .page-index__hero-jackpot-amount {
    font-size: clamp(1rem, 1.6vw, 1.45rem);
    font-weight: 800;
    color: #F2C14E; /* Gold */
    margin: 8px 0;
    line-height: 1.2;
  }
  .page-index__hero-jackpot-gift {
    font-size: 0.75rem;
    color: #57E38D; /* Glow */
    margin-top: 8px;
  }
  .page-index__hero-jackpot-claim {
    display: block;
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: 8px;
    background: #c62828 !important; /* 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;
  }
  .page-index__game-trial {
    max-width: none !important;
    width: 100%;
    height: 300px;
    max-height: 300px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .page-index__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-index__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-index__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    background: #11271B; /* Card BG */
  }
}

/* Home Hero Section - Mobile/Tablet Layout (<=1023px) */
@media (max-width: 1023px) {
  .page-index__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    padding: 10px 12px 16px;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .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 {
    display: flex;
    flex-direction: column;
    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%;
    flex: none !important;
    aspect-ratio: 1024 / 768;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-index__game-trial-frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-index__game-trial-overlay {
    position: absolute;
    inset: 0;
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-index__game-trial-start {
    position: relative;
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
}

/* Game Trial Shell & Overlay */
.page-index__game-trial-shell {
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  background: #11271B; /* 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: #F2FFF6;
}
.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;
  transition: opacity 0.3s ease;
}
.page-index__game-trial-top-promo:hover {
  opacity: 0.8;
}
.page-index__game-trial-viewport { position: relative; width: 100%; isolation: isolate; }
.page-index__game-trial-frame {
  display: block; width: 100%; border: none; background: #11271B; /* Card BG */
  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: #A7D9B8; /* Text Secondary */
}
.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, #ffe082, #ff9800); color: #1a1a1a; font-weight: 700;
  box-shadow: 0 0 20px rgba(255,193,7,.45);
  transition: transform 0.2s ease;
}
.page-index__game-trial-start:hover {
  transform: scale(1.05);
}

/* 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 #F2C14E; /* Gold */
  background: #11271B; /* Card BG */
  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;
  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 {
  color: #F2FFF6; /* Text Main */
  font-size: 1.1rem;
  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;
  transition: transform 0.2s ease;
}
.page-index__reward-modal-claim {
  background: linear-gradient(180deg, #ffe082, #ffb300); color: #1a1a1a;
}
.page-index__reward-modal-retry {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #F2C14E; /* Gold */
}
.page-index__reward-modal-claim:hover,
.page-index__reward-modal-retry:hover {
  transform: translateY(-2px);
}

/* 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 #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 8px 4px;
  background: #11271B; /* Card BG */
  box-sizing: border-box;
}
.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: #F2C14E; /* Gold */
}
.page-index__promo-card-line {
  margin: 0 0 2px;
  font-size: clamp(0.5rem, 2.2vw, 0.62rem);
  color: #A7D9B8; /* Text Secondary */
  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, #2AD16F 0%, #13994A 100%); /* Button Green */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.5rem, 2.2vw, 0.65rem);
  text-align: center;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}
.page-index__promo-card-btn:hover {
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .page-index__promo-strip {
    max-width: 1280px; margin: 0 auto; padding: 0 16px 24px;
  }
  .page-index__promo-strip-track {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    overflow-x: hidden; padding: 0;
  }
  .page-index__promo-card {
    flex: none; flex-direction: row; align-items: center; text-align: left;
    gap: 10px; padding: 14px 12px;
  }
  .page-index__promo-card-media {
    flex: 0 0 38%; max-width: 38%;
  }
  .page-index__promo-card-media img {
    max-width: 100%;
    max-height: none;
    margin: 0;
  }
  .page-index__promo-card-body {
    flex: 1; min-width: 0;
  }
  .page-index__promo-card-title {
    font-size: 0.85rem;
  }
  .page-index__promo-card-line {
    font-size: 0.72rem;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .page-index__promo-card-btn {
    display: inline-block;
    width: auto;
    margin-top: 10px; padding: 8px 14px; font-size: 0.7rem;
  }
}

/* Hot Games */
.page-index__hot-games {
  padding: 0 16px 24px;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-index__hot-games-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.page-index__hot-games-item {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  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, 0.3);
}
.page-index__hot-games-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .page-index__hot-games-name,
  .page-index__hot-games-rtp,
  .page-index__hot-games-desc { display: none; }
  .page-index__hot-games-item {
    border: none;
    padding-bottom: 0;
    background: transparent;
  }
}

@media (min-width: 1024px) {
  .page-index__hot-games {
    max-width: 1280px; margin: 0 auto; padding: 0 16px 32px;
  }
  .page-index__hot-games-grid {
    max-width: none; grid-template-columns: repeat(6, 1fr); gap: 12px;
  }
  .page-index__hot-games-item {
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px; overflow: hidden;
    padding-bottom: 10px; text-decoration: none; color: inherit; text-align: center;
    background: #11271B; /* Card BG */
  }
  .page-index__hot-games-item img {
    width: 100%; display: block;
    border-bottom: 1px solid #1E3A2A; /* Divider */
    border-radius: 0;
  }
  .page-index__hot-games-name {
    font-size: 0.85rem; margin: 8px 8px 0; text-align: center; color: #F2C14E; /* Gold */ font-weight: 700;
  }
  .page-index__hot-games-rtp {
    display: block; font-size: 0.75rem; color: #57E38D; /* Glow */ margin: 4px 8px; text-align: center;
  }
  .page-index__hot-games-desc {
    font-size: 0.7rem; margin: 0 8px; opacity: 0.85; text-align: center; line-height: 1.4;
    color: #A7D9B8; /* Text Secondary */
  }
}

/* Brand Intro (Mobile Only) */
.page-index__brand-intro {
  padding: 0 16px 24px;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-index__brand-intro h2 {
  margin-top: 40px;
}
.page-index__brand-intro p {
  margin-bottom: 16px;
  color: #A7D9B8; /* Text Secondary */
}
.page-index__brand-intro-features {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.page-index__brand-intro-features li {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 12px 15px;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-index__brand-intro-features li::before {
  content: '✓';
  color: #57E38D; /* Glow */
  font-weight: bold;
  font-size: 1.2em;
}

@media (min-width: 769px) {
  .page-index__brand-intro { display: none; }
}

/* Winner Ticker */
.page-index__winner-ticker {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(90deg, #c62828, #e53935); /* Red gradient */
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.page-index__winner-ticker-track {
  display: inline-block;
  animation: ticker-scroll 20s linear infinite;
}
.page-index__winner-ticker-track:hover {
  animation-play-state: paused;
}
.page-index__winner-ticker-item {
  display: inline-block;
  margin-right: 30px;
  color: #fff;
  font-size: 0.85rem;
  padding: 0 10px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .page-index__winner-ticker-track {
    animation: none;
    white-space: normal;
    text-align: center;
  }
  .page-index__winner-ticker-item:not(.is-active) { display: none; }
}

/* General Mobile Responsiveness (<=768px) */
@media (max-width: 768px) {
  .page-index__section-title {
    font-size: 1.4rem;
    margin: 24px 0 18px;
  }
  .page-index__view-more {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  
  /* Images */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Containers */
  .page-index__home-hero,
  .page-index__promo-strip,
  .page-index__hot-games,
  .page-index__brand-intro {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Buttons */
  .page-index__hero-jackpot-claim,
  .page-index__promo-card-btn,
  .page-index__game-trial-start,
  .page-index__reward-modal-claim,
  .page-index__reward-modal-retry,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 12px;
    padding-right: 12px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}