/* Base styles for page-promotions */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF1E8;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-top: 20px;
  color: #FFF1E8;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button custom color */
  color: #140C0C; /* Dark text for light button */
  border: none;
}

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

.page-promotions__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold color */
  border: 2px solid #FFB04A;
}

.page-promotions__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C;
}

.page-promotions__center-btn {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

/* Hero Section */
.page-promotions__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #140C0C; /* Background */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-promotions__hero-section .page-promotions__container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-promotions__hero-content {
  flex: 1;
  text-align: left;
}

.page-promotions__main-title {
  font-size: 3.2em;
  font-weight: 800;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF1E8;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__why-choose-section,
.page-promotions__cta-final-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #2A1212; /* Card BG */
}

.page-promotions__content-image {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__promo-card {
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__card-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button custom color */
  color: #140C0C;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__card-btn:hover {
  opacity: 0.9;
}

/* Steps List */
.page-promotions__steps-list,
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-promotions__step-item,
.page-promotions__term-item {
  background-color: #2A1212; /* Card BG */
  border-left: 5px solid #F3C54D; /* Gold */
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #FFF1E8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-item strong {
  color: #FFB04A;
}

/* Advantage Grid */
.page-promotions__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__advantage-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__advantage-icon {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(243, 197, 77, 0.5)); /* Subtle glow for icons */
}

.page-promotions__advantage-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #FFB04A;
  margin-bottom: 10px;
}

.page-promotions__advantage-text {
  color: #FFF1E8;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #140C0C; /* Background */
  color: #FFF1E8;
}
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;
}
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: #2A1212; /* Card BG */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  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: #2A1212; /* Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  text-align: center;
}

.page-promotions__cta-final-section .page-promotions__cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

/* --- GLOBAL OVERRIDES AND MOBILE RESPONSIVENESS (AS PER INSTRUCTIONS) --- */
/* This section is included as per the "文件结构要求 (重要)" section, 
   even if the HTML content of this specific page does not use these elements. */

@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;
  }
  .page-promotions__promo-strip {
    margin-top: 16px;
  }
  .page-promotions__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
  }
  .page-promotions__promo-strip-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .page-promotions__promo-strip-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
  }
  .page-promotions__promo-strip-content {
    flex-grow: 1;
  }
  .page-promotions__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-promotions__hot-game-card {
    text-align: center;
  }
  .page-promotions__hot-game-name,
  .page-promotions__hot-game-rtp,
  .page-promotions__hot-game-desc {
    display: block;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section .page-promotions__container {
    flex-direction: column;
    text-align: center;
  }
  .page-promotions__main-title {
    font-size: 2.2em;
  }
  .page-promotions__intro-text {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    padding: 10px 15px;
  }
  .page-promotions__hero-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-promotions__content-image {
    max-width: 100%;
    margin: 30px auto;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card {
    padding: 20px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__card-description {
    font-size: 0.9em;
  }
  .page-promotions__card-btn {
    width: 100% !important;
    padding: 10px 15px;
  }

  .page-promotions__steps-list,
  .page-promotions__terms-list {
    margin-top: 30px;
  }
  .page-promotions__step-item,
  .page-promotions__term-item {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-promotions__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Mobile specific overrides for images and containers */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure multiple buttons wrap */
  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  /* Homepage specific 768px overrides (as per instruction) */
  .page-promotions__promo-strip-track{
    grid-template-columns:repeat(4,1fr);
    overflow-x:hidden;
  }
  .page-promotions__hot-games-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* Game trial overlay (global, as per instruction) */
.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;
}
.page-promotions__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #C61F1F;
  color: #FFF1E8;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 10001;
}