/* Base styles for the page */
.page-cockfighting-rules-and-tips {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  padding-bottom: 50px; /* Space for footer */
}

/* Hero Section */
.page-cockfighting-rules-and-tips__hero-section {
  position: relative;
  background-color: #E53935; /* Brand primary color */
  color: #ffffff;
  padding: 10px 20px 40px; /* Small top padding as per requirement */
  text-align: center;
  overflow: hidden;
}
.page-cockfighting-rules-and-tips__hero-image-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}
.page-cockfighting-rules-and-tips__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}
.page-cockfighting-rules-and-tips__hero-content {
  max-width: 900px;
  margin: 0 auto;
}
.page-cockfighting-rules-and-tips__hero-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H1 font size clamp */
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}
.page-cockfighting-rules-and-tips__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}
.page-cockfighting-rules-and-tips__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-cockfighting-rules-and-tips__cta-button:hover {
  opacity: 0.9;
}

/* Content Sections */
.page-cockfighting-rules-and-tips__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-cockfighting-rules-and-tips__section-title {
  font-size: 2.2em;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}
.page-cockfighting-rules-and-tips__section-subtitle {
  font-size: 1.8em;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}
.page-cockfighting-rules-and-tips__text-block p {
  margin-bottom: 1em;
  color: #333333;
}
.page-cockfighting-rules-and-tips__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 1em;
  color: #333333;
}
.page-cockfighting-rules-and-tips__list li {
  margin-bottom: 0.5em;
  color: #333333;
}
.page-cockfighting-rules-and-tips__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  min-width: 200px; /* Min size for content images */
  min-height: 200px;
}

/* FAQ Section */
.page-cockfighting-rules-and-tips__faq-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}
details.page-cockfighting-rules-and-tips__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card background */
}
details.page-cockfighting-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__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: #333333; /* Text main color */
}
details.page-cockfighting-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__faq-question:hover {
  background: #f5f5f5;
}
.page-cockfighting-rules-and-tips__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-cockfighting-rules-and-tips__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting-rules-and-tips__faq-item .page-cockfighting-rules-and-tips__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Text main color */
}
.page-cockfighting-rules-and-tips__faq-answer p {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-cockfighting-rules-and-tips__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #FF5A4F; /* Auxiliary color */
  color: #ffffff;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 1200px;
  box-sizing: border-box;
}
.page-cockfighting-rules-and-tips__cta-section-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffffff;
}
.page-cockfighting-rules-and-tips__cta-section-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Mobile Responsive - General */
@media (max-width: 768px) {
  .page-cockfighting-rules-and-tips__hero-section {
    padding: 10px 15px 30px;
  }
  .page-cockfighting-rules-and-tips__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-cockfighting-rules-and-tips__hero-description {
    font-size: 1em;
  }
  .page-cockfighting-rules-and-tips__section,
  .page-cockfighting-rules-and-tips__faq-section,
  .page-cockfighting-rules-and-tips__cta-section {
    padding: 30px 15px;
  }
  .page-cockfighting-rules-and-tips__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting-rules-and-tips__section-subtitle {
    font-size: 1.5em;
  }

  /* Images responsive */
  .page-cockfighting-rules-and-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  .page-cockfighting-rules-and-tips__hero-image-container,
  .page-cockfighting-rules-and-tips__content-image-container,
  .page-cockfighting-rules-and-tips__section,
  .page-cockfighting-rules-and-tips__faq-section,
  .page-cockfighting-rules-and-tips__cta-section,
  .page-cockfighting-rules-and-tips__card,
  .page-cockfighting-rules-and-tips__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-cockfighting-rules-and-tips__cta-button,
  .page-cockfighting-rules-and-tips__btn-primary,
  .page-cockfighting-rules-and-tips__btn-secondary,
  .page-cockfighting-rules-and-tips a[class*="button"],
  .page-cockfighting-rules-and-tips 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-rules-and-tips__cta-buttons,
  .page-cockfighting-rules-and-tips__button-group,
  .page-cockfighting-rules-and-tips__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;
  }

  details.page-cockfighting-rules-and-tips__faq-item summary.page-cockfighting-rules-and-tips__faq-question { padding: 15px; }
  .page-cockfighting-rules-and-tips__faq-qtext { font-size: 15px; }
}

/* --- Start of required homepage game trial CSS blocks (even for inner pages) --- */
/* A. @media (max-width: 1023px) must be output exactly */
@media (max-width: 1023px) {
  .page-cockfighting-rules-and-tips__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-rules-and-tips__hero-brand,
  .page-cockfighting-rules-and-tips__hero-jackpot {
    display: none !important;
  }
  .page-cockfighting-rules-and-tips__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-rules-and-tips__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__game-trial-topbar,
  .page-cockfighting-rules-and-tips__game-trial-bottombar {
    display: none !important;
  }
  .page-cockfighting-rules-and-tips__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-rules-and-tips__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-rules-and-tips__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-cockfighting-rules-and-tips__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* B. @media (min-width: 1024px) must be output exactly */
@media (min-width: 1024px) {
  .page-cockfighting-rules-and-tips__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-rules-and-existing-rules__hero-brand,
  .page-cockfighting-rules-and-tips__hero-jackpot,
  .page-cockfighting-rules-and-tips__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-cockfighting-rules-and-tips__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cockfighting-rules-and-tips__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-cockfighting-rules-and-tips__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* @media (max-width: 768px)必写清单 for homepage modules (even if not on this page's HTML) */
@media (max-width: 768px) {
  /* 2. 优惠 __promo-strip */
  .page-cockfighting-rules-and-tips__promo-strip {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  .page-cockfighting-rules-and-tips__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Example: 2 columns for mobile */
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-cockfighting-rules-and-tips__promo-card-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  .page-cockfighting-rules-and-tips__promo-card-title {
    font-size: 1em;
    margin-top: 10px;
  }
  .page-cockfighting-rules-and-tips__promo-card-button {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 0.9em;
    padding: 8px 10px;
  }

  /* 3. 热门 __hot-games */
  .page-cockfighting-rules-and-tips__hot-games {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  .page-cockfighting-rules-and-tips__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-cockfighting-rules-and-tips__hot-games-card {
    text-align: center;
  }
  .page-cockfighting-rules-and-tips__hot-games-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  .page-cockfighting-rules-and-tips__hot-games-name,
  .page-cockfighting-rules-and-tips__hot-games-rtp,
  .page-cockfighting-rules-and-tips__hot-games-desc {
    display: none;
  }

  /* 4. 品牌 __brand-intro (≤768px 显示) */
  .page-cockfighting-rules-and-tips__brand-intro {
    display: block;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 15px;
    text-align: center;
  }
  .page-cockfighting-rules-and-tips__brand-intro-title {
    font-size: 1.5em;
  }
  .page-cockfighting-rules-and-tips__brand-intro-text {
    font-size: 0.95em;
  }

  /* 5. 中奖条 __winner-ticker */
  .page-cockfighting-rules-and-tips__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 15px;
    font-size: 0.9em;
    z-index: 9999;
    box-sizing: border-box;
    overflow: hidden;
  }
  body {
    padding-bottom: 40px;
  }
  .page-cockfighting-rules-and-tips {
    margin-bottom: 40px;
  }
}

/* General styles for hidden/overlay elements for game trial */
.page-cockfighting-rules-and-tips__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-cockfighting-rules-and-tips__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-cockfighting-rules-and-tips__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-cockfighting-rules-and-tips__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-cockfighting-rules-and-tips__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px;
  box-sizing: border-box;
}
.page-cockfighting-rules-and-tips__reward-modal[hidden] {
  display: none !important;
}
.page-cockfighting-rules-and-tips__reward-modal-content {
  background: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-cockfighting-rules-and-tips__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.page-cockfighting-rules-and-tips__reward-modal-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #E53935;
}
.page-cockfighting-rules-and-tips__reward-modal-text {
  margin-bottom: 25px;
}
.page-cockfighting-rules-and-tips__reward-modal-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.page-cockfighting-rules-and-tips__reward-modal-button:hover {
  opacity: 0.9;
}