/* Homepage Trial Layout CSS (Mandatory for JSON output, as per instructions) */
@media (max-width: 1023px) {
  .page-download__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-download__hero-brand,
  .page-download__hero-jackpot {
    display: none !important;
  }
  .page-download__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-download__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-download__game-trial-topbar,
  .page-download__game-trial-bottombar {
    display: none !important;
  }
  .page-download__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-download__game-trial-frame {
    position: absolute;
    inset: 0;
    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-download__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-download__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}
@media (min-width: 1024px) {
  .page-download__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;
  }
  .page-download__hero-brand,
  .page-download__hero-jackpot,
  .page-download__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-download__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-download__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-download__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-download__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-download__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* General Styles for Download Page */
.page-download {
  background: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-download__hero-section {
  padding: 80px 0 50px;
  text-align: center;
  background: #08160F;
  position: relative;
  overflow: hidden;
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-download__main-title {
  font-size: 44px;
  font-weight: 700;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6;
  border: none;
}

.page-download__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background: #1E3A2A; /* Custom Divider for a slightly different button look */
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Custom Border */
}

.page-download__btn-secondary:hover {
  background: #2E7A4E;
  transform: translateY(-2px);
}

.page-download__hero-image-wrapper {
  margin-top: 40px;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Custom Gold */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 50px;
}

.page-download__why-download-section,
.page-download__guide-section,
.page-download__features-app-section,
.page-download__faq-section,
.page-download__final-cta-section {
  padding: 60px 0;
}

.page-download__dark-section {
  background: #11271B; /* Custom Card BG */
}

.page-download__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-download__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-download__text-block {
  flex: 1;
  min-width: 300px;
}

.page-download__text-block p {
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-download__feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-download__feature-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #2AD16F; /* Bright green checkmark */
  font-weight: bold;
}

.page-download__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-download__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__guide-item {
  background: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__guide-heading {
  font-size: 24px;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
}

.page-download__guide-item p {
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-download__qr-code-wrapper {
  margin: 20px auto;
  max-width: 200px;
}

.page-download__qr-code {
  max-width: 100%;
  height: auto;
  display: block;
  border: 5px solid #F2FFF6;
  border-radius: 5px;
}

/* FAQ Styles */
details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Custom Border */
  overflow: hidden;
  background: #11271B; /* Custom Card BG */
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #1E3A2A; /* Custom Divider for hover */
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Custom Text Main */
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Custom Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #08160F; /* Custom Background */
  border-radius: 0 0 5px 5px;
}
details.page-download__faq-item .page-download__faq-answer p {
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 38px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__hero-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 60px 0 30px;
  }
  .page-download__main-title {
    font-size: 32px;
  }
  .page-download__hero-description {
    font-size: 15px;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-download__why-download-section,
  .page-download__guide-section,
  .page-download__features-app-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 40px 0;
  }
  .page-download__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-download__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__text-block,
  .page-download__image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__guide-item {
    padding: 25px;
  }
  .page-download__guide-heading {
    font-size: 20px;
  }
  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-qtext {
    font-size: 16px;
  }
  .page-download__faq-toggle {
    font-size: 20px;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }
  .page-download__container {
    padding: 0 10px;
  }
}

/* Mobile specific for promo/hot-games etc. (Mandatory for JSON output, as per instructions) */
@media (max-width: 768px) {
  .page-download__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-download__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Placeholder for brand-intro, winner-ticker, etc. as per instructions */
  /* .page-download__brand-intro { display: block; } */
  /* .page-download__winner-ticker { position: fixed; bottom: 0; width: 100%; } */
  /* body { padding-bottom: 50px; } /* Adjust based on ticker height */
}

/* Reward Modal styles (Mandatory for JSON output, as per instructions) */
.page-download__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-download__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-download__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-download__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-download__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.page-download__reward-modal[hidden] {
  display: none;
}
.page-download__reward-modal-content {
  background: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.page-download__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #A7D9B8; /* Custom Text Secondary */
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}
.page-download__reward-modal-close:hover {
  color: #F2FFF6;
}
.page-download__reward-modal-title {
  font-size: 28px;
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 15px;
}
.page-download__reward-modal-text {
  font-size: 16px;
  margin-bottom: 20px;
}
.page-download__reward-modal-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
}
.page-download__reward-modal-button:hover {
  opacity: 0.9;
}