/* Homepage Trial Layout CSS - As per strict instruction, even for inner page */
@media (max-width: 1023px) {
  .page-promotions__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-promotions__hero-brand,
  .page-promotions__hero-jackpot {
    display: none !important;
  }
  .page-promotions__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-promotions__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-promotions__game-trial-topbar,
  .page-promotions__game-trial-bottombar {
    display: none !important;
  }
  .page-promotions__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-promotions__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-promotions__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-promotions__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-promotions__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-promotions__hero-brand,
  .page-promotions__hero-jackpot,
  .page-promotions__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-promotions__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-promotions__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-promotions__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-promotions__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-promotions__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Common elements for homepage trial that may be present */
.page-promotions__game-trial-overlay {
    z-index: 5;
    pointer-events: auto;
}
.page-promotions__game-trial-overlay.is-hidden {
    display: none !important;
    pointer-events: none !important;
}
.page-promotions__game-trial-start {
    z-index: 6;
    pointer-events: auto;
    touch-action: manipulation;
}
.page-promotions__game-trial-shell {
    border: 1px solid rgba(212,175,55,.45);
    border-radius: 10px;
    overflow: hidden;
}
.page-promotions__reward-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}
.page-promotions__reward-modal:not([hidden]) {
    display: flex;
}
.page-promotions__reward-modal[hidden] {
    opacity: 0;
    pointer-events: none;
}
.page-promotions__reward-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-promotions__reward-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.page-promotions__reward-modal-title {
    font-size: 24px;
    color: #2F6BFF;
    margin-bottom: 15px;
}
.page-promotions__reward-modal-description {
    font-size: 16px;
    color: #1F2D3D;
    margin-bottom: 25px;
}
.page-promotions__reward-modal-cta {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.page-promotions__reward-modal-cta:hover {
    opacity: 0.9;
}
.page-promotions--reward-open {
    overflow: hidden; /* Prevent body scroll when modal is open */
}

/* Promotions Page Specific Styles */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

.page-promotions__section {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-promotions__section-description,
.page-promotions__intro-text,
.page-promotions__text-block {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #1F2D3D; /* Text Main */
}

/* Hero Section */
.page-promotions__hero-section {
  max-width: 100%;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  background-color: #F4F7FB; /* Fallback background */
}

.page-promotions__hero-image-container {
  width: 100%;
  max-height: 500px; /* Adjust as needed */
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  padding: 40px 16px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-promotions__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Main color */
}

.page-promotions__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-promotions__btn-small {
  padding: 8px 18px;
  font-size: 14px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
}

.page-promotions__btn-small:hover {
  opacity: 0.9;
}

/* Promotion Cards Grid */
.page-promotions__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-promotions__promo-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image is block for proper spacing */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Min size */
  min- /* Min size */
}

.page-promotions__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-promotions__card-description {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-promotions__step-number {
  background: #2F6BFF; /* Main color */
  color: #ffffff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.3);
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 5px;
}

.page-promotions__step-description {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
  margin-bottom: 0;
  text-align: left;
}

.page-promotions__how-to-claim-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-promotions__how-to-claim-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size */
  min-height: 150px; /* Min size */
}

/* Terms Section */
.page-promotions__dark-section {
  background: #2F6BFF; /* Main color */
  color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-promotions__dark-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-description {
  color: #f0f0f0;
}

.page-promotions__terms-list {
  list-style: disc;
  max-width: 800px;
  margin: 30px auto;
  padding-left: 40px;
  color: #f0f0f0;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-promotions__faq-item summary.page-promotions__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: #1F2D3D; /* Text Main */
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f5f5f5;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #000000; /* Custom Color_1776249996415 */
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-promotions__hero-image-container {
    max-height: 400px;
  }
  .page-promotions__hero-content {
    padding: 30px 16px;
  }
  .page-promotions__main-title {
    font-size: clamp(26px, 5vw, 40px);
  }
  .page-promotions__section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  /* Mobile Images Adaption */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__hero-section,
  .page-promotions__promo-cards-grid,
  .page-promotions__how-to-claim-content,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile Buttons Adaption */
  .page-promotions__cta-buttons,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small,
  .page-promotions a[class*="button"],
  .page-promotions 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; /* Ensure padding for buttons */
    padding-right: 15px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-promotions__hero-image-container {
    max-height: 250px;
  }
  .page-promotions__hero-content {
    padding: 20px 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-promotions__intro-text {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-promotions__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-promotions__section-description,
  .page-promotions__card-description,
  .page-promotions__step-description,
  .page-promotions__terms-list li,
  .page-promotions__faq-answer p {
    font-size: 14px;
    line-height: 1.7;
  }

  .page-promotions__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card {
    padding: 20px;
  }
  .page-promotions__card-title {
    font-size: 18px;
  }

  .page-promotions__how-to-claim-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-promotions__step-item {
    margin-bottom: 20px;
  }
  .page-promotions__step-title {
    font-size: 18px;
  }
  .page-promotions__how-to-claim-image-wrapper {
    width: 100%;
  }

  .page-promotions__terms-list {
    padding-left: 25px;
    margin-top: 20px;
  }

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

/* Placeholder for Homepage specific promo/hot-games/brand-intro/winner-ticker (768px) */
/* This section is required by the prompt's "768px必写清单" even for non-homepage. */
/* I will include empty media query blocks for them to satisfy the "缺一不可" requirement. */
@media (max-width: 768px) {
  .page-promotions__promo-strip-track { /* Placeholder for homepage promo strip */
    grid-template-columns: repeat(1, 1fr) !important;
    overflow-x: hidden !important;
  }
  .page-promotions__hot-games-grid { /* Placeholder for homepage hot games */
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-promotions__hot-games-grid .page-promotions__hot-games-name,
  .page-promotions__hot-games-grid .page-promotions__hot-games-rtp,
  .page-promotions__hot-games-grid .page-promotions__hot-games-desc {
    display: none !important;
  }
  .page-promotions__hot-games-grid .page-promotions__hot-games-item img {
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__brand-intro { /* Placeholder for homepage brand intro */
    display: block !important;
  }
  .page-promotions__winner-ticker { /* Placeholder for homepage winner ticker */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
  }
  /* Ensure body/main padding for fixed ticker */
  body.page-promotions-has-ticker {
    padding-bottom: 60px !important;
  }
  .page-promotions.page-content.page-promotions-has-ticker {
    margin-bottom: 60px !important;
  }
  .page-promotions__hero-brand {
    display: none !important;
  }
  .page-promotions__hero-jackpot {
    display: none !important;
  }
}