
.rules-page {
    background: var(--bg-primary);
}
.rules-hero {
    position: relative;
    padding: 65px 0;
    background: radial-gradient(ellipse at 50% 100%, #382013 0%, #20130e 50%, #170e0a 100%);
    border-bottom: 1px solid #56351f;
}
.rules-hero .section-heading {
    margin: 0 auto;
    max-width: 800px;
}
.rules-hero .section-heading > span {
    display: block;
    margin-bottom: 15px;
    color: #ffad45;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}
.rules-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 900;
}
.rules-hero .section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #d3bfb0;
    font-size: 16px;
    line-height: 1.8;
}
.rules-community {
    padding: 65px 0 75px;
}
.rules-community .section-heading {
    margin-bottom: 30px;
}
.rules-community .section-heading h2,
.rules-moderation .section-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 3vw, 38px);
}
.rules-community .section-heading p,
.rules-moderation .section-heading p {
    color: #cbb8a8;
    font-size: 15px;
}
.rules-community .grid {
    gap: 20px;
}
.rules-community .card,
.rules-moderation .card {
    background: linear-gradient(145deg, #2a1a10, #1a100c);
    border: 1px solid #614026;
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.rules-community .card:hover,
.rules-moderation .card:hover {
    border-color: #dc8b37;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}
.rules-community .card-content,
.rules-moderation .card-content {
    padding: 26px 28px;
}
.rules-card-icon,
.rules-moderation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    background: linear-gradient(145deg, #553016, #352013);
    border: 1px solid #945929;
    border-radius: 10px;
    color: #ffb347;
    font-size: 21px;
}
.rules-community .card h3,
.rules-moderation .card h3 {
    margin-bottom: 12px;
    color: #fff3e7;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}
.rules-community .card p,
.rules-moderation .card p {
    margin: 0;
    color: #cdb9aa;
    font-size: 14px;
    line-height: 1.8;
}
.rules-moderation {
    padding: 70px 0 80px;
    background: linear-gradient(180deg, #21140e, #170e0b);
    border-top: 1px solid #422919;
    border-bottom: 1px solid #422919;
}
.rules-moderation .section-heading {
    margin-bottom: 35px;
}
.rules-moderation .section-heading > span {
    display: block;
    margin-bottom: 12px;
    color: #ffad45;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}
.rules-moderation .section-heading p {
    margin-left: auto;
    margin-right: auto;
}
.rules-moderation .grid {
    gap: 20px;
}
.rules-moderation .card {
    height: 100%;
}
.rules-moderation-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #633019, #3b1d13);
    border-color: #a65a30;
    color: #ffae59;
    font-size: 23px;
}
.rules-bottom {
    padding: 75px 0 85px;
    background: radial-gradient(ellipse at 50% 100%, #302014, #110b08 75%);
}
.rules-bottom-content {
    max-width: 700px;
    margin: 0 auto;
}
.rules-bottom-content h2 {
    margin-bottom: 15px;
    font-size: clamp(28px, 3.5vw, 40px);
}
.rules-bottom-content p {
    max-width: 550px;
    margin: 0 auto 28px;
    color: #cbb8a8;
    font-size: 15px;
    line-height: 1.8;
}
.rules-bottom-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.rules-bottom-buttons .btn {
    min-height: 48px;
    padding: 12px 24px;
}
.rules-page a:focus-visible {
    outline: 2px solid #ffc16a;
    outline-offset: 4px;
}
@media (max-width: 900px) {
    .rules-hero {
        padding: 55px 0;
    }
    .rules-community,
    .rules-moderation {
        padding: 55px 0;
    }
    .rules-moderation .grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .rules-hero {
        padding: 45px 0;
    }
    .rules-hero .section-heading > span,
    .rules-moderation .section-heading > span {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .rules-hero .section-heading p {
        font-size: 14px;
    }
    .rules-community,
    .rules-moderation {
        padding: 45px 0;
    }
    .rules-community .card-content,
    .rules-moderation .card-content {
        padding: 22px;
    }
    .rules-community .card h3,
    .rules-moderation .card h3 {
        font-size: 18px;
    }
    .rules-bottom {
        padding: 55px 0;
    }
    .rules-bottom-buttons {
        flex-direction: column;
    }
    .rules-bottom-buttons .btn {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rules-community .card,
    .rules-moderation .card {
        transition: none;
    }
    .rules-community .card:hover,
    .rules-moderation .card:hover {
        transform: none;
    }
}
