.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* Body background from shared.css */
}

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

.page-cockfighting__section {
  padding: 40px 0;
}

.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  max-width: 800px;
  padding: 0 16px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button custom color */
  color: #F3F8FF; /* Text Main */
  border: none;
}

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

.page-cockfighting__btn-secondary {
  background: #10233F; /* Card BG */
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold border */
}

.page-cockfighting__btn-secondary:hover {
  background: #F2C14E;
  color: #10233F;
  transform: translateY(-2px);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

.page-cockfighting__sub-title {
  font-size: 2em;
  color: #F2C14E; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting p {
  margin-bottom: 1em;
  color: #F3F8FF; /* Text Main */
}

.page-cockfighting a {
  color: #1D5FD1; /* Auxiliary color for links */
  text-decoration: underline;
}

.page-cockfighting a:hover {
  color: #2B73F6;
}

.page-cockfighting__list,
.page-cockfighting__steps-list,
.page-cockfighting__tips-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
}

.page-cockfighting__list li,
.page-cockfighting__steps-list li,
.page-cockfighting__tips-list li {
  margin-bottom: 10px;
}

.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-cockfighting__feature-card {
  background: #10233F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #244D84; /* Border custom color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-cockfighting__dark-section {
  background: #08162B; /* Deep Navy */
  padding: 60px 0;
  color: #F3F8FF;
}

/* Game Trial Specific Styles - Adapted from homepage template, using .page-cockfighting__home-hero for consistency with instructions */
.page-cockfighting__game-trial-section {
  padding: 40px 0;
  background: linear-gradient(180deg, #08162B 0%, #113B7A 100%);
}

.page-cockfighting__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__game-trial-topbar,
.page-cockfighting__game-trial-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #08162B; /* Deep Navy */
  color: #F3F8FF;
  font-size: 0.9em;
}

.page-cockfighting__game-trial-title {
  font-weight: bold;
  color: #F2C14E;
}

.page-cockfighting__game-trial-actions {
  display: flex;
  gap: 10px;
}

.page-cockfighting__game-trial-btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  background: #1D5FD1;
  color: #F3F8FF;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-cockfighting__game-trial-btn:hover {
  background: #2B73F6;
}

.page-cockfighting__game-trial-register {
  background: #F2C14E;
  color: #10233F;
}

.page-cockfighting__game-trial-register:hover {
  background: #e0b03e;
}

.page-cockfighting__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768; /* Crucial aspect ratio */
  overflow: hidden;
  background: #000;
}

.page-cockfighting__game-trial-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-cockfighting__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.page-cockfighting__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important;
  pointer-events: none !important;
}

.page-cockfighting__game-trial-start {
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: 700;
  background: linear-gradient(180deg, #F2C14E 0%, #D4A735 100%); /* Gold gradient */
  color: #10233F; /* Card BG */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-cockfighting__game-trial-start:hover {
  transform: scale(1.05);
}

.page-cockfighting__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 16px;
}

.page-cockfighting__reward-modal-content {
  background: #10233F; /* Card BG */
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  position: relative;
  border: 2px solid #F2C14E; /* Gold border */
  box-shadow: 0 0 25px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  color: #F2C14E; /* Gold */
  cursor: pointer;
}

.page-cockfighting__reward-modal-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-cockfighting__reward-modal-text {
  font-size: 1.2em;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 30px;
}

/* FAQ Styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border custom color */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-cockfighting__faq-item summary.page-cockfighting__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-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: #1B3357; /* Divider - slightly lighter dark */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
}

/* Responsive Styles */
@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;
    padding-bottom: 20px;
  }
  .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;
  }
  .page-cockfighting__hero-section {
    padding-bottom: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  /* The .page-cockfighting__home-hero styles from the template are included here. */
  /* For this specific page, the game trial section takes on these responsive characteristics for desktop. */
  .page-cockfighting__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%; /* This layout is from the homepage template */
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  /* The hero-brand and hero-jackpot are not used in this specific HTML, but the CSS template requires their presence for media queries */
  /* .page-cockfighting__hero-brand,
  .page-cockfighting__hero-jackpot, { height: 300px; max-height: 300px; overflow: hidden; box-sizing: border-box; } */
  .page-cockfighting__game-trial-section .page-cockfighting__game-trial-shell {
    max-width: none !important; /* Allow it to fill its grid column */
    width: 100%;
    margin: 0;
    padding: 0;
    height: 300px;
    max-height: 300px;
  }
  .page-cockfighting__game-trial-section .page-cockfighting__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-section .page-cockfighting__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cockfighting__game-trial-section .page-cockfighting__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  /* The template also specifies .page-cockfighting__hero-jackpot-claim and .page-cockfighting__promo-strip, which are not used in this page's HTML. */
  /* .page-cockfighting__hero-jackpot-claim { background: #c62828 !important; color: #fff !important; } */
  /* .page-cockfighting__promo-strip { margin-top: 16px; } */

  .page-cockfighting__hero-section {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 60px;
  }
  .page-cockfighting__hero-image-wrapper {
    flex: 1;
    margin-bottom: 0;
  }
  .page-cockfighting__hero-content {
    flex: 1;
    text-align: left;
    padding: 0;
  }
  .page-cockfighting__cta-buttons {
    justify-content: flex-start;
  }
  .page-cockfighting__feature-card {
    text-align: left;
  }
  .page-cockfighting__feature-icon {
    float: left;
    margin-right: 15px;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  /* General image and container responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__game-trial-section,
  .page-cockfighting__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Buttons responsiveness */
  .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: 0;
    padding-right: 0;
  }
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
  /* FAQ specific mobile */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 15px; }
  .page-cockfighting__faq-toggle { font-size: 24px; width: 24px; }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }

  /* No promo-strip, hot-games, brand-intro, winner-ticker sections as this is not homepage and they are not explicitly requested. */
  /* If they were, their specific 768px styles would be here. */
}

/* Ensure reward modal is hidden by default and only shown by JS */
.page-cockfighting__reward-modal[hidden] {
  display: none;
}

/* Body reward open state */
body.page-cockfighting--reward-open {
  overflow: hidden;
}