/* ===== Base / Hero ===== */
.page-index { background: #08160F; color: #F2FFF6; }
.page-index__brand-intro-module { max-width: 1280px; margin: 0 auto; padding: 10px 16px 8px; box-sizing: border-box; }
.page-index__brand-intro-title { font-weight: 800; line-height: 1.25; margin: 0 0 10px; color: #F2C14E; max-width: 900px; }
.page-index__brand-intro-lead { color: #A7D9B8; line-height: 1.6; margin: 0; font-size: 0.95rem; max-width: 900px; }

.page-index__home-hero { display: block; padding: 10px 12px 16px; max-width: 100%; height: auto; overflow-x: hidden; box-sizing: border-box; }
.page-index__hero-brand, .page-index__hero-jackpot { display: none; }
.page-index__game-trial { width: 100%; max-width: 100%; height: auto; overflow: hidden; margin: 0 auto; padding: 0 0 12px; box-sizing: border-box; }
.page-index__game-trial-shell { display: flex; flex-direction: column; height: auto; width: 100%; max-width: 100%; overflow: hidden; box-sizing: border-box; border: 1px solid #2E7A4E; border-radius: 10px; background: #0A4B2C; }
.page-index__game-trial-topbar, .page-index__game-trial-bottombar { display: none; }
.page-index__game-trial-viewport { position: relative; width: 100%; aspect-ratio: 1024/768; min-height: 240px; overflow: hidden; box-sizing: border-box; }
.page-index__game-trial-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-width: 100%; border: none; z-index: 1; overflow: hidden; background: #11271B; }
.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, #2AD16F 0%, #13994A 100%); color: #F2FFF6; font-weight: 700; box-shadow: 0 0 20px rgba(87,227,141,.45); }

/* ===== Offer / CTA ===== */
.page-index__offer-section { max-width: 1280px; margin: 0 auto; padding: 16px; box-sizing: border-box; }
.page-index__offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.page-index__offer-card { background: #11271B; border: 1px solid #2E7A4E; border-radius: 12px; padding: 16px 12px; text-align: center; box-sizing: border-box; }
.page-index__offer-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(242,193,78,.16); color: #F2C14E; font-size: 0.7rem; font-weight: 700; margin-bottom: 8px; }
.page-index__offer-number { margin: 0 0 6px; font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 800; color: #57E38D; line-height: 1.25; }
.page-index__offer-label { margin: 0; color: #A7D9B8; font-size: 0.85rem; }
.page-index__offer-categories { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-index__offer-category { padding: 6px 14px; border-radius: 999px; border: 1px solid #2E7A4E; background: #11271B; color: #F2FFF6; font-size: 0.82rem; }
.page-index__cta-section { max-width: 1280px; margin: 0 auto; padding: 8px 16px 24px; box-sizing: border-box; }
.page-index__cta-container { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
.page-index__cta-btn { flex: 1 1 240px; max-width: 100%; box-sizing: border-box; display: block; text-align: center; padding: 14px 18px; border-radius: 10px; text-decoration: none; font-weight: 800; white-space: normal; word-wrap: break-word; line-height: 1.35; }
.page-index__cta-btn--register { background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); color: #F2FFF6; box-shadow: 0 0 18px rgba(87,227,141,.35); }
.page-index__cta-btn--login { background: #11271B; color: #F2C14E; border: 2px solid #F2C14E; }

/* ===== Promo strip ===== */
.page-index__promo-strip { position: relative; z-index: 1; margin-top: 16px; 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-radius: 10px; padding: 8px 4px; background: #11271B; 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.6rem, 2.8vw, 0.75rem); line-height: 1.2; font-weight: 700; color: #F2C14E; }
.page-index__promo-card-line { margin: 0 0 2px; font-size: clamp(0.55rem, 2.2vw, 0.66rem); color: #A7D9B8; line-height: 1.25; }
.page-index__promo-card-btn { display: block; width: 100%; margin-top: 6px; padding: 6px 4px; border-radius: 999px; background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); color: #F2FFF6; text-decoration: none; font-weight: 700; font-size: clamp(0.55rem, 2.2vw, 0.68rem); text-align: center; box-sizing: border-box; }

/* ===== Hot games ===== */
.page-index__hot-games { max-width: 1280px; margin: 0 auto; padding: 0 16px 32px; box-sizing: border-box; }
.page-index__hot-games-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-index__hot-games-title { margin: 0; color: #F2FFF6; font-weight: 800; }
.page-index__hot-games-more { color: #57E38D; text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.page-index__hot-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 720px; margin: 0 auto; }
.page-index__hot-games-item { display: block; text-decoration: none; color: inherit; border: 1px solid #2E7A4E; border-radius: 10px; overflow: hidden; background: #11271B; }
.page-index__hot-games-item img { width: 100%; height: auto; display: block; }
.page-index__hot-games-name, .page-index__hot-games-rtp, .page-index__hot-games-desc { display: none; }

/* ===== Brand intro ===== */
.page-index__brand-intro { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; box-sizing: border-box; }
.page-index__brand-intro-heading { color: #F2C14E; font-weight: 800; margin: 0 0 12px; }
.page-index__brand-intro-text { color: #A7D9B8; line-height: 1.7; margin: 0 0 12px; font-size: 0.95rem; }
.page-index__brand-intro-trust { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.page-index__brand-intro-trust li { background: #11271B; border: 1px solid #2E7A4E; border-radius: 8px; padding: 10px 12px; color: #F2FFF6; font-size: 0.85rem; }

/* ===== 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; background: #11271B; text-align: center; box-sizing: border-box; }
.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: #F2FFF6; font-size: 22px; line-height: 1; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.page-index__reward-modal-brand { margin: 0 0 8px; font-weight: 800; background: linear-gradient(180deg, #F2C14E, #F2C14E); -webkit-background-clip: text; background-clip: text; color: #F2C14E; }
.page-index__reward-modal-subtitle { color: #A7D9B8; margin: 0 0 14px; line-height: 1.5; }
.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, #2AD16F 0%, #13994A 100%); color: #F2FFF6; font-weight: 700; }
.page-index__reward-modal-retry { background: #0A4B2C; color: #F2FFF6; border: 1px solid #2E7A4E; }

/* ===== Winner ticker ===== */
.page-index__winner-ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: #0A4B2C; border-top: 1px solid #F2C14E; color: #F2FFF6; font-size: 0.8rem; padding: 8px 12px; text-align: center; box-sizing: border-box; }
.page-index__winner-ticker-item { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-index__winner-ticker-item.is-active { display: block; }
.page-content { padding-bottom: 48px; }

/* ===== Tablet / Mobile 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; }
  .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; }
  .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 { z-index: 5 !important; pointer-events: auto !important; }
  .page-index__game-trial-start { z-index: 6 !important; pointer-events: auto !important; touch-action: manipulation; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .page-index img { max-width: 100% !important; height: auto !important; }
  .page-index__offer-grid { grid-template-columns: 1fr; }
  .page-index__cta-container { flex-direction: column; }
  .page-index__cta-btn { width: 100% !important; max-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__promo-strip-track { grid-template-columns: repeat(4, 1fr); overflow-x: hidden; }
  .page-index__hot-games-grid { grid-template-columns: repeat(2, 1fr); }
  .page-index__hot-games-name, .page-index__hot-games-rtp, .page-index__hot-games-desc { display: none; }
  .page-index__brand-intro { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; box-sizing: border-box; }
  .page-index__brand-intro-trust { grid-template-columns: 1fr; }
}

/* ===== Desktop (>=1024) ===== */
@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; color: #F2C14E; margin: 0 0 12px; }
  .page-index__hero-brand-lead { color: #A7D9B8; 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: #F2FFF6; }
  .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 #F2C14E; border-radius: 12px; padding: 16px 12px; background: #11271B; overflow: hidden; }
  .page-index__hero-jackpot-label { color: #A7D9B8; margin: 0; font-size: 0.85rem; }
  .page-index__hero-jackpot-amount { font-size: clamp(1rem, 1.6vw, 1.45rem); font-weight: 800; color: #F2C14E; margin: 8px 0; line-height: 1.2; }
  .page-index__hero-jackpot-gift { color: #F2FFF6; font-size: 0.8rem; margin: 0; }
  .page-index__hero-jackpot-claim { display: block; margin-top: 16px; padding: 14px 12px; border-radius: 8px; background: #c62828 !important; color: #fff !important; text-decoration: none; font-weight: 700; }
  .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-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-promo { padding: 4px 10px; border-radius: 6px; background: linear-gradient(90deg, #0A4B2C, #13994A); color: #F2FFF6; text-decoration: none; font-size: 0.7rem; white-space: nowrap; }
  .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; }
  .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; }
  .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; }
  .page-index__promo-card-btn { display: inline-block; width: auto; margin-top: 10px; padding: 8px 14px; font-size: 0.7rem; }
  .page-index__hot-games-grid { max-width: none; grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .page-index__hot-games-item { border: 1px solid rgba(242,193,78,.35); border-radius: 10px; overflow: hidden; padding-bottom: 10px; text-decoration: none; color: inherit; text-align: center; }
  .page-index__hot-games-item img { width: 100%; display: block; }
  .page-index__hot-games-name { display: block; font-size: 0.85rem; margin: 8px 8px 0; text-align: center; color: #F2C14E; font-weight: 700; }
  .page-index__hot-games-rtp { display: block; font-size: 0.75rem; color: #57E38D; margin: 4px 8px; text-align: center; }
  .page-index__hot-games-desc { display: block; font-size: 0.7rem; margin: 0 8px; color: #A7D9B8; text-align: center; line-height: 1.4; }
  .page-index__brand-intro { display: none; }
}