.page-game-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6);
    background-color: var(--background, #08160F);
}

.page-game-rules__section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1400px;
}

.page-game-rules__dark-section {
    background-color: var(--background, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-game-rules__content-area {
    background-color: transparent;
    color: var(--text-main, #F2FFF6);
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

.page-game-rules__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 80px;
    overflow: hidden;
}

.page-game-rules__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-game-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.page-game-rules__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--text-main, #F2FFF6);
    padding: 20px;
}

.page-game-rules__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--gold, #F2C14E);
}

.page-game-rules__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-main, #F2FFF6);
}

.page-game-rules__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--gold, #F2C14E);
}

.page-game-rules__sub-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-game-rules p {
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-game-rules__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
}

.page-game-rules__list li {
    margin-bottom: 10px;
    color: var(--text-main, #F2FFF6);
}

.page-game-rules__list--white li {
    color: var(--text-main, #F2FFF6);
}

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

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

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

.page-game-rules__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-game-rules__btn-secondary {
    background: transparent;
    color: var(--gold, #F2C14E);
    border: 2px solid var(--gold, #F2C14E);
}

.page-game-rules__btn-secondary:hover {
    background: var(--gold, #F2C14E);
    color: var(--background, #08160F);
    box-shadow: 0 0 15px var(--gold, #F2C14E);
}

.page-game-rules__btn-link {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    margin-top: 20px;
}

.page-game-rules__btn-link:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-game-rules__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-game-rules__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-game-rules__content-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-game-rules__text-content {
    flex: 1;
    min-width: 300px;
}

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

.page-game-rules__game-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main, #F2FFF6);
    border: 1px solid var(--border, #2E7A4E);
}

.page-game-rules__game-card .page-game-rules__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-game-rules__game-card .page-game-rules__card-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--gold, #F2C14E);
}

.page-game-rules__game-card .page-game-rules__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-game-rules__game-card .page-game-rules__card-title a:hover {
    text-decoration: underline;
}

.page-game-rules__game-card .page-game-rules__card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    width: 100%;
}

.page-game-rules__game-card .page-game-rules__card-list li {
    margin-bottom: 8px;
    color: var(--text-secondary, #A7D9B8);
}

.page-game-rules__faq-section {
    padding-bottom: 80px;
}

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

.page-game-rules__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-game-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    list-style: none;
}

.page-game-rules__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-rules__faq-item summary {
    list-style: none;
}

.page-game-rules__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-game-rules__faq-qtext {
    flex-grow: 1;
    color: var(--text-main, #F2FFF6);
}

.page-game-rules__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

.page-game-rules__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
}

.page-game-rules__faq-answer p {
    margin-bottom: 0;
    color: var(--text-secondary, #A7D9B8);
}

.page-game-rules a {
    color: var(--gold, #F2C14E);
    text-decoration: none;
}

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

@media (max-width: 1024px) {
    .page-game-rules__hero-content {
        max-width: 700px;
    }
    .page-game-rules__image-text-block {
        flex-direction: column;
        text-align: center;
    }
    .page-game-rules__image-text-block--reverse {
        flex-direction: column;
    }
    .page-game-rules__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-game-rules__section {
        padding: 40px 15px;
    }
    .page-game-rules__hero-section {
        padding: 10px 15px 60px;
    }
    .page-game-rules__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-game-rules__description {
        font-size: 1rem;
    }
    .page-game-rules__section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
    .page-game-rules__sub-title {
        font-size: 1.3rem;
    }
    .page-game-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-rules__btn-primary,
    .page-game-rules__btn-secondary,
    .page-game-rules__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-game-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-rules__section,
    .page-game-rules__card,
    .page-game-rules__container,
    .page-game-rules__cta-buttons,
    .page-game-rules__button-group,
    .page-game-rules__btn-container,
    .page-game-rules__video-section,
    .page-game-rules__video-container,
    .page-game-rules__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-game-rules__video-section {
        padding-top: 10px !important;
    }
    .page-game-rules__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }
    .page-game-rules__faq-answer {
        padding: 0 15px 15px;
    }
}