/* 强制写入：首页试玩布局 CSS (max-width: 1023px) */
@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;
  }
}

/* 强制写入：首页试玩布局 CSS (min-width: 1024px) */
@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__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;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-promotions__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.page-promotions__reward-modal-content {
  background-color: #17191F;
  color: #FFF3E6;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.page-promotions__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #FFF3E6;
  font-size: 24px;
  cursor: pointer;
}
.page-promotions__reward-modal h3 {
  color: #FFB04D;
  margin-bottom: 15px;
}
.page-promotions__reward-modal p {
  margin-bottom: 25px;
  line-height: 1.6;
}

/* --- Page-specific styles for promotions.html --- */

/* Body background and text color based on theme */
body {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-promotions {
  color: #FFF3E6;
  background-color: #0D0E12;
}

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFB04D;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-promotions__section-description {
  font-size: 18px;
  color: #FFF3E6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(13,14,18,1) 0%, rgba(25,27,34,1) 100%);
}

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

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

.page-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #FFB04D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 18px;
  color: #FFF3E6;
  line-height: 1.7;
  margin-bottom: 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 25px rgba(0, 0, 0, 0.5);
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-promotions__btn-secondary {
  background: transparent;
  color: #FFB04D;
  border: 2px solid #A84F0C;
  box-shadow: none;
}

.page-promotions__btn-secondary:hover {
  background: rgba(255, 176, 77, 0.1);
  color: #FFF3E6;
  border-color: #FFB04D;
}

/* Current Promotions Section */
.page-promotions__current-promos {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-promotions__promo-card {
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #FFF3E6;
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 16px;
  color: #FFF3E6;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Bonus Types Section */
.page-promotions__dark-section {
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  color: #FFF3E6;
  padding: 60px 0;
}

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

.page-promotions__bonus-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__bonus-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid #FFB04D;
}

.page-promotions__bonus-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-promotions__bonus-text {
  font-size: 15px;
  color: #FFF3E6;
  line-height: 1.6;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-promotions__claim-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-promotions__step-item {
  background-color: #17191F;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-top: 60px;
}

.page-promotions__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  border: 3px solid #0D0E12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 15px;
  color: #FFF3E6;
  line-height: 1.6;
}

.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Responsible Gaming Section */
.page-promotions__responsible-gaming {
  padding: 60px 0;
  background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%);
  color: #FFF3E6;
}

.page-promotions__responsible-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-promotions__responsible-image {
  flex: 1;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__responsible-text {
  flex: 2;
  text-align: left;
}

.page-promotions__responsible-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background-color: #17191F;
  color: #FFF3E6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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-color: rgba(255, 176, 77, 0.05);
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(168, 79, 12, 0.5);
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #FFF3E6;
}

/* --- Responsive styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* General image and container adaptation */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-section .page-promotions__container {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__hero-content {
    text-align: center;
  }

  .page-promotions__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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;
    padding-right: 15px;
  }

  .page-promotions__cta-wrapper {
    padding: 0 15px;
  }

  .page-promotions__section-title {
    font-size: 28px;
    padding-top: 30px;
  }

  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-content {
    padding: 20px;
  }

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__bonus-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__bonus-item {
    padding: 25px;
  }

  .page-promotions__bonus-icon {
    width: 100px;
    height: 100px;
  }

  .page-promotions__claim-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__step-item {
    padding-top: 50px;
  }

  .page-promotions__step-number {
    width: 45px;
    height: 45px;
    font-size: 20px;
    top: -22px;
  }

  .page-promotions__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-promotions__responsible-image {
    max-width: 100%;
  }

  .page-promotions__responsible-text p {
    font-size: 15px;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-qtext {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 22px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }
}