.page-game-rules {
    font-family: Arial, sans-serif;
    color: #1F2D3D;
    background-color: #F4F7FB;
    line-height: 1.6;
}

.page-game-rules__hero-section {
    position: relative;
    margin-bottom: 20px;
    padding-top: 10px; /* Small top padding, body handles main header offset */
}

.page-game-rules__hero-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.page-game-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-game-rules__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    max-width: 90%;
    z-index: 2;
}

.page-game-rules__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-game-rules__intro-description {
    font-size: clamp(1em, 1.8vw, 1.2em);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-game-rules__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid #2F6BFF;
}

.page-game-rules__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-game-rules__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-game-rules__btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.page-game-rules__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-game-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-game-rules__section-title {
    font-size: 2.5em;
    color: #2F6BFF;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-game-rules__overview p,
.page-game-rules__general-rules p,
.page-game-rules__responsible-gaming p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #1F2D3D;
}

.page-game-rules__content-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.page-game-rules__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-game-rules__text-block {
    flex: 1;
    color: #1F2D3D;
}

.page-game-rules__text-block h3 {
    font-size: 1.8em;
    color: #2F6BFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-rules__text-block ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.page-game-rules__text-block ul li {
    margin-bottom: 8px;
    color: #1F2D3D;
}

.page-game-rules__text-block ul li strong {
    color: #000000;
}

.page-game-rules__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-game-rules__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-game-rules__game-category {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-game-rules__game-category h3 {
    font-size: 2em;
    color: #000000;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.page-game-rules__faq-section {
    background-color: #F4F7FB;
    padding: 60px 0;
}

details.page-game-rules__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #D6E2FF;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

details.page-game-rules__faq-item summary.page-game-rules__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-game-rules__faq-item summary.page-game-rules__faq-question::-webkit-details-marker {
    display: none;
}

details.page-game-rules__faq-item summary.page-game-rules__faq-question:hover {
    background: #f5f5f5;
}

.page-game-rules__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #1F2D3D;
}

.page-game-rules__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #2F6BFF;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-game-rules__faq-item .page-game-rules__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #1F2D3D;
}

.page-game-rules__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* General image responsive styles */
.page-game-rules img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile-specific styles */
@media (max-width: 1023px) {
  .page-game-rules__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-game-rules__hero-brand,
  .page-game-rules__hero-jackpot {
    display: none !important;
  }
  .page-game-rules__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-game-rules__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-game-rules__game-trial-topbar,
  .page-game-rules__game-trial-bottombar {
    display: none !important;
  }
  .page-game-rules__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-game-rules__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-game-rules__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-game-rules__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-game-rules__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-game-rules__hero-brand,
  .page-game-rules__hero-jackpot,
  .page-game-rules__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-game-rules__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-game-rules__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-game-rules__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-game-rules__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-game-rules__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
    .page-game-rules__hero-section {
        padding-top: 0;
    }
    .page-game-rules__hero-content {
        position: static;
        transform: none;
        padding: 20px 15px;
        background: rgba(0, 0, 0, 0.6);
        margin-top: -5px; /* Adjust to cover slight gap */
        border-radius: 0 0 8px 8px;
    }
    .page-game-rules__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .page-game-rules__intro-description {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    .page-game-rules__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-game-rules__btn-primary,
    .page-game-rules__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .page-game-rules__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-game-rules__content-grid {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    .page-game-rules__content-grid--reverse {
        flex-direction: column;
    }
    .page-game-rules__image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-game-rules__overview p,
    .page-game-rules__general-rules p,
    .page-game-rules__responsible-gaming p,
    .page-game-rules__text-block ul li,
    .page-game-rules__faq-answer p {
        font-size: 0.95em;
    }
    .page-game-rules__text-block h3 {
        font-size: 1.5em;
    }
    .page-game-rules__game-category {
        padding: 20px;
        margin-bottom: 20px;
    }
    .page-game-rules__game-category h3 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    /* FAQ mobile */
    details.page-game-rules__faq-item summary.page-game-rules__faq-question {
        padding: 15px;
    }
    .page-game-rules__faq-qtext {
        font-size: 1em;
    }
    .page-game-rules__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-game-rules__faq-item .page-game-rules__faq-answer {
        padding: 0 15px 15px;
    }

    /* Generic image and container rules for mobile */
    .page-game-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-rules__section,
    .page-game-rules__card,
    .page-game-rules__container,
    .page-game-rules__image-wrapper,
    .page-game-rules__game-category {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Placeholder for homepage-specific mobile CSS (as per "缺一不可" rule) */
    .page-game-rules__promo-strip-track { /* Not present in this page's HTML, but required by prompt */
        grid-template-columns: repeat(1, 1fr) !important; /* Example responsive rule */
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
    }
    .page-game-rules__hot-games-grid { /* Not present in this page's HTML, but required by prompt */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
    }
    .page-game-rules__brand-intro { /* Not present in this page's HTML, but required by prompt */
        display: block !important;
        padding: 20px 15px !important;
    }
    .page-game-rules__winner-ticker { /* Not present in this page's HTML, but required by prompt */
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        box-sizing: border-box !important;
        padding: 10px 15px !important;
    }
    body {
        padding-bottom: 60px; /* Adjust body padding for fixed winner ticker */
    }
}