.page-cockfighting { font-family: 'Arial', sans-serif; color: #FFF1E8; background: #140C0C; line-height: 1.6; }
.page-cockfighting__container { max-width: 1200px; margin: 0 auto; padding: 20px 15px; box-sizing: border-box; }
.page-cockfighting__hero-section { position: relative; width: 100%; overflow: hidden; margin-bottom: 10px; padding-top: 10px; }
.page-cockfighting__hero-image { width: 100%; height: auto; display: block; object-fit: cover; max-height: 600px; }
.page-cockfighting__hero-content { text-align: center; padding: 20px; position: relative; z-index: 2; margin-top: -100px; background: linear-gradient(0deg, #140C0C 0%, rgba(20,12,12,0) 100%); padding-bottom: 40px; }
.page-cockfighting__main-title { font-weight: 700; color: #F3C54D; margin-bottom: 15px; line-height: 1.2; letter-spacing: -0.02em; max-width: 900px; margin-left: auto; margin-right: auto; }
.page-cockfighting__hero-description { font-size: 1.1em; color: #FFF1E8; max-width: 800px; margin: 0 auto 25px; }
.page-cockfighting__cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.page-cockfighting__btn-primary, .page-cockfighting__btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; white-space: nowrap; cursor: pointer; border: none; font-size: 1.05em; }
.page-cockfighting__btn-primary { background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); color: #140C0C; border: 2px solid transparent; }
.page-cockfighting__btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255,176,74,0.4); }
.page-cockfighting__btn-secondary { background: #6A1E1E; color: #FFF1E8; border: 2px solid #F3C54D; }
.page-cockfighting__btn-secondary:hover { transform: translateY(-2px); background: #7E0D0D; box-shadow: 0 4px 10px rgba(243,197,77,0.2); }
.page-cockfighting__btn-large { padding: 15px 40px; font-size: 1.15em; }

.page-cockfighting__section-title { font-size: 2.2em; font-weight: 700; color: #F3C54D; text-align: center; margin-bottom: 30px; padding-top: 40px; }
.page-cockfighting__text-block { font-size: 1.05em; color: #FFF1E8; margin-bottom: 20px; text-align: justify; }
.page-cockfighting__content-image { width: 100%; height: auto; display: block; margin: 30px auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); max-width: 800px; }

.page-cockfighting__introduction-section { background: #140C0C; padding-bottom: 40px; }
.page-cockfighting__why-choose-section { background: #2A1212; padding-bottom: 40px; }
.page-cockfighting__features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.page-cockfighting__feature-item { background: #2A1212; border: 1px solid #6A1E1E; border-radius: 10px; padding: 25px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.page-cockfighting__feature-image { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.page-cockfighting__feature-title { font-size: 1.5em; color: #F3C54D; margin-bottom: 10px; }
.page-cockfighting__feature-description { color: #FFF1E8; font-size: 0.95em; }

.page-cockfighting__bet-types-section { background: #140C0C; padding-bottom: 40px; }
.page-cockfighting__bet-list { list-style: none; padding: 0; margin-bottom: 30px; }
.page-cockfighting__bet-list li { background: #2A1212; border: 1px solid #6A1E1E; border-radius: 8px; padding: 15px 20px; margin-bottom: 10px; color: #FFF1E8; font-size: 1.05em; }
.page-cockfighting__bet-list li strong { color: #F3C54D; }

.page-cockfighting__how-to-play-section { background: #2A1212; padding-bottom: 40px; }
.page-cockfighting__steps-list { counter-reset: step-counter; list-style: none; padding: 0; margin-bottom: 30px; }
.page-cockfighting__steps-list li { position: relative; padding-left: 50px; margin-bottom: 25px; color: #FFF1E8; font-size: 1.05em; }
.page-cockfighting__steps-list li::before { content: counter(step-counter); counter-increment: step-counter; position: absolute; left: 0; top: 0; background: #F3C54D; color: #140C0C; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2em; }

.page-cockfighting__promotions-section { background: #140C0C; padding-bottom: 40px; }
.page-cockfighting__promo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.page-cockfighting__promo-card { background: #2A1212; border: 1px solid #6A1E1E; border-radius: 10px; padding: 25px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; flex-direction: column; align-items: center; }
.page-cockfighting__promo-image { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.page-cockfighting__promo-title { font-size: 1.4em; color: #F3C54D; margin-bottom: 10px; }
.page-cockfighting__promo-description { color: #FFF1E8; font-size: 0.95em; margin-bottom: 20px; flex-grow: 1; }
.page-cockfighting__mt-20 { margin-top: 20px; }

.page-cockfighting__faq-section { background: #2A1212; padding-bottom: 40px; }
details.page-cockfighting__faq-item { margin-bottom: 15px; border-radius: 5px; border: 1px solid #6A1E1E; overflow: hidden; background: #140C0C; }
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: #2A1212; }
.page-cockfighting__faq-qtext { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: left; color: #FFF1E8; }
.page-cockfighting__faq-toggle { font-size: 24px; font-weight: bold; color: #F3C54D; 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: #2A1212; border-radius: 0 0 5px 5px; color: #FFF1E8; }
.page-cockfighting__faq-answer p { margin: 0; }

.page-cockfighting__final-cta-section { background: #140C0C; padding-bottom: 40px; text-align: center; }

.page-cockfighting__keyword { color: #F3C54D; font-weight: bold; }

/* General image and button responsiveness */
.page-cockfighting img { max-width: 100%; height: auto; display: block; }
.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%; box-sizing: border-box; white-space: normal; word-wrap: break-word; }
.page-cockfighting__cta-buttons, .page-cockfighting__button-group, .page-cockfighting__btn-container { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }

/* Fixed header spacing - assuming shared.css handles body padding-top */
/* .page-cockfighting__hero-section { padding-top: 10px; } */ /* Handled by initial margin-bottom */

/* --- START: HOMEPAGE TRIAL LAYOUT CSS (AS PER STRICT INSTRUCTION, EVEN IF NOT HOMEPAGE) --- */
@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;
  }
}
/* --- END: HOMEPAGE TRIAL LAYOUT CSS --- */

/* --- START: MOBILE 768px SPECIFIC BLOCKS (AS PER STRICT INSTRUCTION) --- */
@media (max-width: 768px) {
  .page-cockfighting__hero-content { margin-top: -60px; padding-bottom: 20px; }
  .page-cockfighting__main-title { font-size: 1.8em; }
  .page-cockfighting__hero-description { font-size: 1em; }
  .page-cockfighting__cta-buttons { flex-direction: column; gap: 10px; }
  .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;
  }

  /* 1. 首屏试玩: Handled by 1023px block above. No need to repeat here. */

  /* 2. 优惠 __promo-strip: This page uses __promo-cards instead of __promo-strip-track */
  .page-cockfighting__promo-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-cockfighting__promo-card {
    flex-direction: column; /* Ensure vertical stack if not already */
    padding: 15px;
  }
  .page-cockfighting__promo-image { height: 150px; margin-bottom: 15px; }
  .page-cockfighting__promo-title { font-size: 1.2em; }
  .page-cockfighting__promo-description { font-size: 0.9em; }

  /* 3. 热门 __hot-games: This page does not explicitly have __hot-games */
  /* Placeholder for required block */
  .page-cockfighting__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .page-cockfighting__hot-games-item-name, .page-cockfighting__hot-games-item-rtp, .page-cockfighting__hot-games-item-desc {
    display: none;
  }
  .page-cockfighting__hot-games-image { width: 100%; height: auto; }

  /* 4. 品牌 __brand-intro: This page does not explicitly have __brand-intro as a separate section to show/hide. */
  /* Placeholder for required block */
  .page-cockfighting__brand-intro {
    display: block; /* If it were hidden on desktop, show on mobile */
    padding: 20px 15px;
  }

  /* 5. 中奖条 __winner-ticker: This page does not explicitly have __winner-ticker */
  /* Placeholder for required block */
  .page-cockfighting__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.8);
    padding: 8px 15px;
    box-sizing: border-box;
  }
  body, main {
    padding-bottom: 40px; /* Adjust if ticker is present */
  }

  /* 6. 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section, .page-cockfighting__card, .page-cockfighting__container, .page-cockfighting__promo-card, .page-cockfighting__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器: Already covered above with general button rules */
  
  /* 8. Other modules (FAQ) */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 15px; }
  .page-cockfighting__faq-answer { padding: 0 15px 15px; }

  .page-cockfighting__section-title { font-size: 1.8em; padding-top: 25px; }
  .page-cockfighting__feature-item { padding: 20px; }
  .page-cockfighting__feature-title { font-size: 1.3em; }
  .page-cockfighting__bet-list li { padding: 12px 15px; font-size: 1em; }
  .page-cockfighting__steps-list li { padding-left: 45px; font-size: 1em; }
  .page-cockfighting__steps-list li::before { width: 30px; height: 30px; font-size: 1.1em; }
}
/* --- END: MOBILE 768px SPECIFIC BLOCKS --- */

/* Overlay for game trial (if present) - copied from prompt */
.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 rgba(212,175,55,.45);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[hidden] { display: none !important; }
.page-cockfighting__reward-modal-content { background: #2A1212; padding: 30px; border-radius: 15px; text-align: center; max-width: 450px; width: 90%; box-shadow: 0 5px 20px rgba(0,0,0,0.5); position: relative; }
.page-cockfighting__reward-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 2em; color: #FFF1E8; cursor: pointer; line-height: 1; }
.page-cockfighting__reward-modal-title { color: #F3C54D; font-size: 2em; margin-bottom: 15px; }
.page-cockfighting__reward-modal-text { color: #FFF1E8; font-size: 1.1em; margin-bottom: 25px; }
.page-cockfighting__reward-modal-cta { background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); color: #140C0C; padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: bold; display: inline-block; }

/* Body background color from shared.css is var(--body-bg). Assuming it's dark based on #140C0C */
.page-cockfighting { color: #FFF1E8; } /* Text Main */
.page-cockfighting__card { background: #2A1212; color: #FFF1E8; border: 1px solid #6A1E1E; } /* Card BG */
.page-cockfighting__light-bg { background: #140C0C; color: #FFF1E8; } /* Background */
.page-cockfighting__dark-bg { background: #2A1212; color: #FFF1E8; } /* Card BG for sections */
.page-cockfighting p, .page-cockfighting li { color: #FFF1E8; }

/* WCAG AA contrast adjustments where needed */
.page-cockfighting__btn-primary { color: #140C0C; } /* Ensures dark text on light gradient */
.page-cockfighting__btn-secondary { color: #FFF1E8; } /* Ensures light text on Deep Red */