.page-game-rules {
    font-family: 'Arial', sans-serif;
    color: #FFF5E1; /* Text Main */
    line-height: 1.6;
    background-color: #B71C1C; /* Background */
}

.page-game-rules__hero-section {
    padding-top: 10px; /* Small top padding as body padding-top is handled by shared.css */
    position: relative;
    overflow: hidden;
    color: #FFF5E1;
    text-align: center;
    padding-bottom: 40px;
}

.page-game-rules__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-game-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-game-rules__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-game-rules__main-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-game-rules__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

.page-game-rules__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    max-width: 100%; /* Essential for responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-rules__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
    color: #333333; /* Dark text for contrast on gold */
}

.page-game-rules__btn-primary:hover {
    background: linear-gradient(180deg, #FFE082 0%, #FFC107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-rules__btn-secondary {
    background-color: #C91F17; /* Main Color */
    color: #ffffff; /* White text for contrast on red */
    border: 2px solid #F2B544; /* Border color */
}

.page-game-rules__btn-secondary:hover {
    background-color: #E53935; /* Auxiliary Color */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-rules__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

.page-game-rules__section {
    padding: 60px 0;
}

.page-game-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-game-rules__container--center {
    text-align: center;
}

.page-game-rules__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFF5E1; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-game-rules__section-description {
    font-size: 18px;
    color: #FFF5E1; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-rules__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-game-rules__text-block {
    flex: 1;
    color: #FFF5E1; /* Text Main */
}

.page-game-rules__text-block p {
    margin-bottom: 20px;
    font-size: 17px;
}

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

.page-game-rules__text-block li {
    margin-bottom: 10px;
    font-size: 17px;
}

.page-game-rules__text-block strong {
    color: #FFCC66; /* Glow */
}

.page-game-rules__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-rules__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

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

.page-game-rules__game-card {
    background-color: #D32F2F; /* Card BG */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF5E1; /* Text Main */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-rules__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-game-rules__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-game-rules__card-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFCC66; /* Glow */
    margin-bottom: 15px;
}

.page-game-rules__card-text {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-rules__card-link {
    display: inline-block;
    color: #F4D34D; /* Gold */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid #F4D34D;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-game-rules__card-link:hover {
    color: #FFD86A;
    border-color: #FFD86A;
}

/* FAQ styles */
details.page-game-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
}
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: #7A0E0E; /* Deep Red */
}
.page-game-rules__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Text Main */
}
.page-game-rules__faq-toggle {
  font-size: 28px; /* Slightly larger for visibility */
  font-weight: bold;
  color: #FFCC66; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Slightly larger */
  height: 32px; /* Ensure square */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
details.page-game-rules__faq-item .page-game-rules__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
}
.page-game-rules__faq-answer p {
    margin-bottom: 15px;
}
.page-game-rules__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-game-rules__cta-final {
    padding: 80px 0;
    background-color: #C91F17; /* Main Color */
    color: #FFF5E1;
}

.page-game-rules__cta-final .page-game-rules__section-title {
    color: #FFF5E1;
}

.page-game-rules__cta-final .page-game-rules__section-description {
    color: #FFF5E1;
    margin-bottom: 40px;
}

/* Responsive styles for 1024px */
@media (max-width: 1024px) {
    .page-game-rules__main-title {
        font-size: 38px;
    }
    .page-game-rules__intro-text {
        font-size: 17px;
    }
    .page-game-rules__section-title {
        font-size: 32px;
    }
    .page-game-rules__btn-primary,
    .page-game-rules__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-game-rules__btn-large {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-game-rules__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-game-rules__content-wrapper--reversed {
        flex-direction: column; /* Keep column for reversed on smaller screens */
    }
    .page-game-rules__image-block {
        order: -1; /* Image above text on mobile */
    }
}

/* Responsive styles for 768px */
@media (max-width: 768px) {
    /* Hero Section */
    .page-game-rules__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }
    .page-game-rules__main-title {
        font-size: 30px !important;
        margin-bottom: 15px;
    }
    .page-game-rules__intro-text {
        font-size: 16px !important;
        margin-bottom: 25px;
    }
    .page-game-rules__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-rules__btn-primary,
    .page-game-rules__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-rules__btn-large {
        padding: 15px 20px !important;
        font-size: 18px !important;
    }

    /* General Section */
    .page-game-rules__section {
        padding: 40px 0;
    }
    .page-game-rules__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-game-rules__section-title {
        font-size: 26px !important;
        margin-bottom: 30px;
    }
    .page-game-rules__section-description {
        font-size: 16px !important;
        margin-bottom: 25px;
    }
    .page-game-rules__content-wrapper {
        gap: 25px;
    }
    .page-game-rules__text-block p,
    .page-game-rules__text-block li {
        font-size: 15px !important;
    }

    /* Images */
    .page-game-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-game-rules__hero-image {
        min-height: 250px !important;
    }
    .page-game-rules__card-image {
        min-width: 200px !important;
        min-height: 150px !important;
    }

    /* Game Grid */
    .page-game-rules__game-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    .page-game-rules__game-card {
        padding: 20px;
    }
    .page-game-rules__card-title {
        font-size: 20px;
    }
    .page-game-rules__card-text {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-game-rules__faq-item summary.page-game-rules__faq-question {
        padding: 15px !important;
    }
    .page-game-rules__faq-qtext {
        font-size: 16px !important;
    }
    .page-game-rules__faq-toggle {
        font-size: 24px !important;
        width: 28px !important;
        height: 28px !important;
    }
    details.page-game-rules__faq-item .page-game-rules__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 15px !important;
    }

    /* Final CTA Section */
    .page-game-rules__cta-final {
        padding: 50px 0;
    }
}