﻿.rules-page {
    background: #fbf7ef;
    color: #65452e;
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

    .rules-page .text-muted {
        color: #78634e !important
    }

.rules-hero {
    background: linear-gradient(135deg,#f1e3cd,#fbf7ef);
    border-bottom: 1px solid #d8c3a2
}

.rules-kicker, .rules-label {
    font-size: .78rem;
    letter-spacing: .13em;
    font-weight: 800;
    color: #99713e;
    text-transform: uppercase
}

.rules-accent {
    color: #a88755
}

.rules-intro, .rules-section-subtitle {
    color: #78634e;
    max-width: 720px;
    line-height: 1.75
}

.rules-hero-dice {
    display: flex;
    justify-content: center;
    gap: 17px;
    font-size: 2.7rem;
    color: #a88755
}

.rules-stat {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 7px;
    padding: 1.7rem;
    background: #fffaf2;
    border: 1px solid #dfcdb1;
    border-radius: 14px
}

    .rules-stat i {
        font-size: 1.65rem;
        color: #a88755
    }

    .rules-stat strong {
        font-size: 2.6rem;
        line-height: 1.15
    }

    .rules-stat span {
        color: #78634e
    }

.rules-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem
}

    .rules-nav a {
        background: #f0e2cc;
        border: 1px solid #d8c3a2;
        border-radius: 8px;
        color: #65452e;
        padding: .55rem .9rem;
        text-decoration: none;
        font-weight: 600;
        font-size: .88rem
    }

        .rules-nav a:hover {
            background: #e4cfaf
        }

.rules-card {
    padding: 1.9rem;
    background: #fffaf2;
    border: 1px solid #dfcdb1;
    border-radius: 15px;
    box-shadow: 0 4px 15px #65452e0b;
    scroll-margin-top: 90px
}

.rules-card-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem
}

.rules-icon {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8d5b5;
    border-radius: 12px;
    color: #65452e;
    font-size: 1.25rem
}

.rules-card h2, .rules-card h3 {
    font-size: 1.35rem;
    font-weight: 750;
    margin: .25rem 0 0
}

.rules-card p, .rules-page section p {
    line-height: 1.75
}

.rules-card p {
    color: #78634e
}

.rules-card strong {
    color: #65452e
}

.rules-note {
    padding: 1rem 1.2rem;
    background: #f0e2cc;
    border-left: 3px solid #a88755;
    border-radius: 0 9px 9px 0;
    color: #65452e;
    line-height: 1.65
}

.rules-band {
    background: #f3e9d9;
    scroll-margin-top: 70px
}

.rules-page section[id] {
    scroll-margin-top: 70px
}

.rules-score-card {
    padding: 2rem;
    background: #fffaf2;
    border: 1px solid #dfcdb1;
    border-radius: 15px;
    text-align: center
}

.rules-score-multiplier {
    display: inline-block;
    color: #a88755;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3
}

.rules-score-card h3 {
    font-size: 1.4rem;
    font-weight: 750;
    margin: .65rem 0
}

.rules-score-card p {
    color: #78634e
}

.rules-example {
    background: #efe0c8;
    padding: .8rem;
    border-radius: 8px;
    color: #65452e
}

.rules-small-note {
    color: #78634e;
    font-size: .9rem
}

.rules-cube-strip {
    background: #e8d5b5;
    border: 1px solid #cfb186;
    border-radius: 13px;
    padding: 1.5rem;
    text-align: center
}

.rules-cube-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    margin-top: 1rem
}

    .rules-cube-values span {
        background: #65452e;
        color: #f4dfb5;
        border-radius: 7px;
        min-width: 40px;
        padding: .55rem
    }

    .rules-cube-values i {
        color: #a88755;
        font-size: .8rem
    }

.rules-crawford-display {
    display: flex;
    min-height: 285px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 13px;
    background: #e8d5b5;
    border: 1px solid #d4b991;
    border-radius: 18px;
    text-align: center
}

    .rules-crawford-display i {
        font-size: 3.7rem;
        color: #a88755
    }

    .rules-crawford-display div {
        font-size: 1.55rem;
        font-weight: 800
    }

    .rules-crawford-display span {
        color: #78634e
    }

.rules-finish {
    padding: 3rem 1.5rem;
    background: #e8d5b5;
    border: 1px solid #d4b991;
    border-radius: 18px
}

    .rules-finish > i {
        font-size: 2.6rem;
        color: #a88755
    }

    .rules-finish p {
        color: #78634e
    }

.rules-play-btn {
    background: #65452e;
    color: #f4dfb5;
    border: 1px solid #a88755;
    font-weight: 650
}

    .rules-play-btn:hover, .rules-play-btn:focus {
        background: #79563a;
        border-color: #a88755;
        color: #fff0cf
    }

/* MOBILE */
@media (max-width: 767.98px) {

    .rules-page .container {
        max-width: 100%;
    }

    .rules-page .row > * {
        min-width: 0;
    }

    .rules-hero h1 {
        font-size: 2.3rem;
        overflow-wrap: break-word;
    }

    .rules-card {
        padding: 1.3rem;
        min-width: 0;
        overflow-wrap: break-word;
    }

    .rules-score-card {
        padding: 1.5rem;
        min-width: 0;
    }

    .rules-card-heading {
        gap: .7rem;
        min-width: 0;
    }

    .rules-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .rules-card h2,
    .rules-card h3 {
        font-size: 1.17rem;
        overflow-wrap: break-word;
    }

    .rules-nav {
        max-width: 100%;
    }

    .rules-cube-strip {
        padding: 1rem;
        min-width: 0;
    }

    .rules-cube-values {
        gap: .4rem;
        max-width: 100%;
    }

        .rules-cube-values span {
            min-width: 34px;
            padding: .45rem;
        }

    .rules-crawford-display {
        min-height: 220px;
        padding: 1rem;
        min-width: 0;
    }

    .rules-finish {
        padding: 2rem 1rem;
        min-width: 0;
    }

    .rules-play-btn {
        max-width: 100%;
        white-space: normal;
    }
}
