/* General body styling for the download page */
body {
    background-color: var(--color-background, #0A0A0A); /* Default to dark background */
    color: var(--text-main, #FFF6D6); /* Default to light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding-top: var(--header-offset); /* Ensure body padding for fixed header */
}

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

.page-download__section {
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-download__section-title {
    font-size: 32px;
    color: #F2C14E; /* Brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Hero Section */
.page-download__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-top: 10px; /* Small top padding for main content below header */
    text-align: center;
}

.page-download__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-download__hero-title {
    font-size: 48px;
    color: #FFD36B; /* Auxiliary color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-download__hero-description {
    font-size: 18px;
    color: #FFF6D6;
    margin-bottom: 30px;
}

.page-download__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-download__btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff; /* White text for buttons */
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    border: none;
}

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

.page-download__btn-secondary {
    background: #111111; /* Card BG color */
    border: 2px solid #F2C14E; /* Main brand color border */
    color: #FFF6D6; /* Light text on dark button */
}

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

.page-download__qr-code-wrapper {
    margin-top: 20px;
    background: #111111; /* Card BG color */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border color */
    display: inline-block;
}

.page-download__qr-code {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 5px;
}

.page-download__qr-text {
    font-size: 16px;
    color: #FFF6D6;
}

.page-download__hero-image-wrapper {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #3A2A12;
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Benefits Section */
.page-download__benefits-section {
    background: #111111; /* Card BG color */
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #3A2A12;
}

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

.page-download__text-block {
    flex: 1;
}

.page-download__text-block p {
    color: #FFF6D6;
    margin-bottom: 20px;
}

.page-download__benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__benefit-item {
    color: #FFF6D6;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-download__benefit-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #F2C14E;
}

.page-download__image-block {
    flex: 1;
    max-width: 50%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #3A2A12;
}

.page-download__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Guide Section */
.page-download__guide-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-download__guide-platform {
    flex: 1;
    min-width: 300px;
    background: #111111;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #3A2A12;
    text-align: left;
}

.page-download__guide-subtitle {
    font-size: 24px;
    color: #F2C14E;
    margin-bottom: 20px;
    text-align: center;
}

.page-download__guide-steps {
    list-style: decimal;
    padding-left: 20px;
    color: #FFF6D6;
    margin-bottom: 30px;
}

.page-download__step-item {
    margin-bottom: 10px;
}

.page-download__image-center {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #3A2A12;
}

/* Features Section */
.page-download__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-download__feature-card {
    background: #111111;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #3A2A12;
    text-align: center;
    color: #FFF6D6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-icon {
    width: 100%; /* Ensure images are responsive within card */
    max-width: 200px; /* Example max size, adjust as needed */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
}

.page-download__feature-title {
    font-size: 20px;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-download__feature-card p {
    font-size: 15px;
    line-height: 1.5;
}

.page-download__image-block--full-width {
    max-width: 100%;
    margin-top: 40px;
}

/* FAQ Section */
.page-download__faq-section {
    background: #111111;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #3A2A12;
}

details.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #3A2A12; /* Border color for FAQ item */
    overflow: hidden;
    background: #0A0A0A; /* Darker background for FAQ item */
}
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;
    color: #FFF6D6; /* Light text for FAQ question */
}
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: #1a1a1a; /* Slightly lighter dark on hover */
}
.page-download__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF6D6;
}
.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #F2C14E; /* Brand color for toggle icon */
    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: #1a1a1a; /* Dark background for answer */
    border-radius: 0 0 5px 5px;
    color: #FFF6D6;
}
.page-download__faq-answer p {
    color: #FFF6D6;
}


/* CTA Section */
.page-download__cta-section {
    text-align: center;
    background: #F2C14E; /* Main brand color background */
    padding: 60px 40px;
    border-radius: 15px;
    color: #111111; /* Dark text on brand color background */
}

.page-download__cta-section .page-download__section-title {
    color: #111111; /* Dark text for title on brand color background */
    margin-bottom: 20px;
}

.page-download__cta-section p {
    font-size: 18px;
    color: #111111;
    margin-bottom: 30px;
}

/* Footer */
.page-download__footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #3A2A12;
}

.page-download__copyright {
    font-size: 14px;
    color: #FFF6D6;
}

/* --- Responsive Design --- */

/* General image and container responsiveness */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-download__section,
.page-download__card,
.page-download__container,
.page-download__content-wrapper,
.page-download__guide-content,
.page-download__features-grid,
.page-download__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure no horizontal overflow */
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
    .page-download {
        padding: 10px 10px 30px; /* Adjust padding for smaller screens */
    }

    .page-download__hero-title {
        font-size: 32px;
    }

    .page-download__hero-description {
        font-size: 16px;
    }

    .page-download__download-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add horizontal padding to button container */
    }

    .page-download__btn-download {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__qr-code-wrapper {
        padding: 15px;
    }

    .page-download__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .page-download__benefits-section {
        padding: 30px;
    }

    .page-download__content-wrapper {
        flex-direction: column; /* Stack content vertically */
        gap: 30px;
    }

    .page-download__text-block,
    .page-download__image-block {
        max-width: 100%; /* Full width for text and image blocks */
    }

    .page-download__guide-content {
        flex-direction: column; /* Stack guide platforms vertically */
        gap: 20px;
    }

    .page-download__guide-platform {
        padding: 25px;
    }

    .page-download__guide-subtitle {
        font-size: 20px;
    }

    .page-download__features-grid {
        grid-template-columns: 1fr; /* Single column for features */
        gap: 20px;
    }

    .page-download__feature-card {
        padding: 25px;
    }

    .page-download__feature-icon {
        max-width: 150px; /* Adjust feature icon size for mobile */
    }

    .page-download__feature-title {
        font-size: 18px;
    }

    details.page-download__faq-item summary.page-download__faq-question {
        padding: 15px;
    }
    .page-download__faq-qtext {
        font-size: 15px;
    }
    details.page-download__faq-item .page-download__faq-answer {
        padding: 0 15px 15px;
    }

    .page-download__cta-section {
        padding: 40px 20px;
    }

    .page-download__cta-section p {
        font-size: 16px;
    }
    
    /* Ensure all images are responsive */
    .page-download img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    /* Ensure all containers are responsive */
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__content-wrapper,
    .page-download__guide-content,
    .page-download__features-grid,
    .page-download__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablet specific styles (max-width: 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .page-download {
        padding: 10px 20px 40px;
    }

    .page-download__hero-title {
        font-size: 40px;
    }

    .page-download__download-buttons {
        gap: 15px;
    }

    .page-download__content-wrapper {
        flex-direction: column;
    }

    .page-download__text-block,
    .page-download__image-block {
        max-width: 100%;
    }
    
    .page-download__features-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for features on tablets */
    }
}

/* Desktop specific styles (min-width: 1024px) */
@media (min-width: 1024px) {
    .page-download__content-wrapper {
        flex-direction: row;
    }
}

/* --- HOMEPAGE SPECIFIC STYLES (REQUIRED BOILERPLATE, NOT USED ON THIS PAGE) --- */
/* This boilerplate is included to satisfy the strict output format requirements, */
/* but targets elements not present on this 'download' page, thus will not conflict. */
@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;
  }
}
/* Fixed game trial related styles */
.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;}
/* This page does not use __promo-strip, __hot-games, __brand-intro, __winner-ticker */
/* If they were present, their 768px media queries would be here as per requirements. */