:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --bg-color: #0A0A0A;
  --card-bg-color: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --glow-color: #FFD36B;
}

.page-cockfighting {
  background-color: var(--bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-cockfighting a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-cockfighting a:hover {
  text-decoration: underline;
}

.page-cockfighting__main-title,
.page-cockfighting__section-title {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px; /* Small top padding for first section */
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 50px;
}

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-cockfighting__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E0E0E0;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--bg-color);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-cockfighting__content-grid.--reversed {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__image-block {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  color: #E0E0E0;
}

.page-cockfighting__list li strong {
  color: var(--secondary-color);
}

/* FAQ styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}

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;
}

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: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  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: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 5px 5px;
  color: #E0E0E0;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

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

/* Boilerplate for homepage trial - max-width: 1023px */
@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;
  }
}

/* Boilerplate for homepage trial - min-width: 1024px */
@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;
  }
  .page-cockfighting__promo-strip {
    margin-top: 16px;
  }
}

/* Mobile Adaptations (max-width: 768px) */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
  }

  .page-cockfighting__main-title {
    font-size: 2rem;
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-cockfighting__hero-section {
    padding: 20px 15px;
    gap: 20px;
  }

  .page-cockfighting__description {
    font-size: 1rem;
    padding: 0 10px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .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__section {
    padding: 30px 15px;
  }

  .page-cockfighting__content-grid {
    flex-direction: column;
    gap: 25px;
  }

  .page-cockfighting__content-grid.--reversed {
    flex-direction: column;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    min-width: unset;
    width: 100%;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-cockfighting__faq-qtext {
    font-size: 1rem;
  }

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

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

  /* Placeholder for homepage specific elements, ensuring no missing blocks */
  .page-cockfighting__promo-strip-track { /* Example for promo-strip */
    grid-template-columns: repeat(2, 1fr) !important; /* Adjust to 2 columns for mobile */
    overflow-x: hidden;
  }
  .page-cockfighting__hot-games-grid { /* Example for hot-games */
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-cockfighting__brand-intro { /* Example for brand-intro */
    display: block;
  }
  .page-cockfighting__winner-ticker { /* Example for winner-ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  .page-cockfighting__reward-modal-close { /* Example for modal close button */
    font-size: 20px;
  }
}

/* General modal/overlay styles (from boilerplate) */
.page-cockfighting__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-cockfighting__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-cockfighting__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-cockfighting__game-trial-shell{
  border:1px solid var(--border-color);
  border-radius:10px;
  overflow:hidden;
}
.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;
}
.page-cockfighting__reward-modal-content {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.page-cockfighting__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: var(--text-main-color);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 5px;
}
.page-cockfighting__reward-modal-close:hover {
  color: var(--secondary-color);
}
.page-cockfighting--reward-open {
  overflow: hidden;
}