/* 强制包含的首页媒体查询 - Dù đây là trang nội dung, quy tắc đầu ra yêu cầu phải có các khối này */
@media (max-width: 1023px) {
  .page-cockfighting__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-cockfighting__hero-brand,
  .page-cockfighting__hero-jackpot {
    display: none !important;
  }
  .page-cockfighting__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-cockfighting__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-topbar,
  .page-cockfighting__game-trial-bottombar {
    display: none !important;
  }
  .page-cockfighting__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-cockfighting__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-cockfighting__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-cockfighting__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-cockfighting__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-cockfighting__hero-brand,
  .page-cockfighting__hero-jackpot,
  .page-cockfighting__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-cockfighting__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cockfighting__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-cockfighting__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Placeholder for other PC modules not present on this inner page */
  .page-cockfighting__promo-strip-track,
  .page-cockfighting__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 16px auto;
    padding: 0 16px;
  }
  .page-cockfighting__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .page-cockfighting__hot-games-name,
  .page-cockfighting__hot-games-rtp,
  .page-cockfighting__hot-games-desc {
    display: block;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* 移动端图片适配强制要求 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__grid-3-cols {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* 移动端按钮响应式适配要求 */
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting 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-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__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;
    display: flex;
    flex-direction: column;
  }
  /* Placeholder for homepage promo-strip, hot-games, brand-intro, winner-ticker, etc. */
  .page-cockfighting__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for 2 cols on mobile */
    overflow-x: hidden;
    gap: 10px;
  }
  .page-cockfighting__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .page-cockfighting__hot-games-name,
  .page-cockfighting__hot-games-rtp,
  .page-cockfighting__hot-games-desc {
    display: none;
  }
  .page-cockfighting__card {
    padding: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 24px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 15px; }
}

/* General Styles for page-cockfighting */
.page-cockfighting {
  background: #0D0E12; /* Custom Background Color */
  color: #FFF3E6; /* Custom Text Main Color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: #0D0E12;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-cockfighting__hero-content {
  text-align: center;
  padding: 0 20px;
}

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

.page-cockfighting__intro-text {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #17191F;
  color: #FFA53A;
  text-decoration: none;
  border: 1px solid #A84F0C;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
}

.page-cockfighting__btn-secondary:hover {
  background: #2a2e38;
  color: #FFF3E6;
}

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section.page-cockfighting__dark-bg {
  background: #0D0E12;
  color: #FFF3E6;
}

.page-cockfighting__section.page-cockfighting__light-bg {
  background: #17191F;
  color: #FFF3E6;
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFA53A;
  margin-bottom: 30px;
}

.page-cockfighting__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background: #17191F; /* Card BG */
  color: #FFF3E6;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border Color */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFA53A;
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  font-size: 15px;
  line-height: 1.7;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background: #0D0E12;
  color: #FFF3E6;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid #A84F0C;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__step-text {
  font-size: 15px;
  margin-bottom: 15px;
}

.page-cockfighting__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-cockfighting__tip-item {
  background: #17191F;
  color: #FFF3E6;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #FFA53A;
  font-size: 16px;
}

.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-cockfighting__feature-item {
  background: #17191F;
  color: #FFF3E6;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #FFA53A;
  font-size: 16px;
}

.page-cockfighting__cta-section {
  padding: 80px 0;
  background: #0D0E12;
  text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #FFF3E6;
}

/* FAQ Styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
}
details.page-cockfighting__faq-item summary.page-cockfighting__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: #FFF3E6;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #2a2e38;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12;
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
  text-align: left;
}

/* Hidden class for JS */
.is-hidden {
  display: none !important;
}

/* Placeholder for reward modal if it were present */
.page-cockfighting__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-cockfighting__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.page-cockfighting__reward-modal-content {
  background: #17191F;
  color: #FFF3E6;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.page-cockfighting__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFF3E6;
  cursor: pointer;
}
.page-cockfighting__reward-modal-close:hover {
  color: #FFA53A;
}