/* =========================================================
   GAME RULES — page-scoped CSS
   File: /home/mysticbloodsl/portal/public/css/game-rules.css

   Canon:
   - visual language aligned to Houses / Home / Welcome / New Player
   - no admin-style rigid panels
   - long-form readable rules page
   - strong hierarchy, sober atmosphere, clear sections
========================================================= */

body.mbp-game-rules-page{
    --mbp-rules-shell: 1060px;
    --mbp-rules-hero-col: 860px;
    --mbp-rules-text-col: 800px;
    --mbp-rules-grid-col: 980px;

    --mbp-rules-gold: rgba(230, 195, 105, 0.98);
    --mbp-rules-gold-soft: rgba(230, 195, 105, 0.84);
    --mbp-rules-text: rgba(235, 238, 246, 0.86);
    --mbp-rules-text-soft: rgba(235, 238, 246, 0.74);
    --mbp-rules-line: rgba(130, 130, 255, 0.14);

    --mbp-rules-channel: rgba(214, 183, 104, 0.92);
    --mbp-rules-conduct: rgba(155, 123, 255, 0.90);
    --mbp-rules-hierarchy: rgba(230, 195, 105, 0.90);
    --mbp-rules-law: rgba(191, 62, 47, 0.92);
}

body.mbp-game-rules-page main.mbp-main > .wrap{
    max-width: 1340px;
}

/* ---------------------------------------------------------
   PAGE
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-page{
    width: 100%;
    margin: 0 0 110px;
}

body.mbp-game-rules-page .mbp-rules-shell{
    max-width: var(--mbp-rules-shell);
    margin: 0 auto;
    padding: 92px 24px 0;
}

body.mbp-game-rules-page .mbp-rules-section{
    margin: 0 auto 88px;
}

body.mbp-game-rules-page .mbp-rules-section:last-child{
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-hero{
    max-width: var(--mbp-rules-hero-col);
    margin: 0 auto 76px;
    text-align: center;
}

body.mbp-game-rules-page .mbp-rules-kicker{
    margin: 0 0 12px;
    font-size: 0.62rem;
    line-height: 1.2;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.36);
}

body.mbp-game-rules-page .mbp-rules-title{
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(3rem, 5vw, 5.1rem);
    line-height: 0.95;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mbp-rules-gold);
    text-shadow:
        0 0 12px rgba(210, 165, 60, 0.08),
        0 0 26px rgba(210, 165, 60, 0.08);
}

body.mbp-game-rules-page .mbp-rules-subtitle{
    max-width: 780px;
    margin: 18px auto 0;
    font-family: "Cinzel", serif;
    font-size: clamp(1.14rem, 2vw, 1.78rem);
    line-height: 1.08;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mbp-rules-gold-soft);
}

body.mbp-game-rules-page .mbp-rules-lead{
    max-width: 760px;
    margin: 24px auto 0;
}

body.mbp-game-rules-page .mbp-rules-lead p{
    margin: 0 0 14px;
    color: var(--mbp-rules-text);
    font-size: 0.98rem;
    line-height: 1.76;
    text-align: center;
}

body.mbp-game-rules-page .mbp-rules-lead p:last-child{
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   GENERIC HEADERS
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-heading{
    max-width: var(--mbp-rules-text-col);
    margin: 0 auto 28px;
    text-align: center;
}

body.mbp-game-rules-page .mbp-rules-heading-title{
    margin: 0 0 12px;
    font-family: "Cinzel", serif;
    font-size: clamp(1.85rem, 2.8vw, 3rem);
    line-height: 1.04;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--mbp-rules-gold-soft);
}

body.mbp-game-rules-page .mbp-rules-heading-text{
    max-width: var(--mbp-rules-text-col);
    margin: 0 auto;
    color: var(--mbp-rules-text-soft);
    font-size: 0.95rem;
    line-height: 1.74;
    text-align: center;
}

body.mbp-game-rules-page .mbp-rules-section--channels .mbp-rules-heading-title{
    color: var(--mbp-rules-channel);
}

body.mbp-game-rules-page .mbp-rules-section--conduct .mbp-rules-heading-title{
    color: var(--mbp-rules-conduct);
}

body.mbp-game-rules-page .mbp-rules-section--hierarchy .mbp-rules-heading-title{
    color: var(--mbp-rules-hierarchy);
}

body.mbp-game-rules-page .mbp-rules-section--law .mbp-rules-heading-title,
body.mbp-game-rules-page .mbp-rules-section--tribunal .mbp-rules-heading-title{
    color: var(--mbp-rules-law);
}

/* ---------------------------------------------------------
   COPY
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-copy{
    max-width: var(--mbp-rules-text-col);
    margin: 0 auto;
}

body.mbp-game-rules-page .mbp-rules-copy p{
    margin: 0 0 16px;
    color: var(--mbp-rules-text);
    font-size: 0.97rem;
    line-height: 1.78;
    text-align: center;
}

body.mbp-game-rules-page .mbp-rules-copy p:last-child{
    margin-bottom: 0;
}

body.mbp-game-rules-page .mbp-rules-copy strong{
    color: rgba(244, 246, 252, 0.94);
    font-weight: 700;
}

body.mbp-game-rules-page .mbp-rules-copy a{
    color: var(--mbp-rules-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 195, 105, 0.28);
    transition:
        color .25s ease,
        border-color .25s ease,
        text-shadow .25s ease;
}

body.mbp-game-rules-page .mbp-rules-copy a:hover{
    color: rgba(255, 236, 181, 0.98);
    border-color: rgba(230, 195, 105, 0.55);
    text-shadow: 0 0 10px rgba(230, 195, 105, 0.22);
}

/* ---------------------------------------------------------
   CARDS / BLOCKS
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-grid{
    max-width: var(--mbp-rules-grid-col);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

body.mbp-game-rules-page .mbp-rules-grid--three{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.mbp-game-rules-page .mbp-rules-grid--two{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mbp-game-rules-page .mbp-rules-card{
    position: relative;
    background: rgba(9, 10, 18, 0.56);
    border: 1px solid rgba(130, 130, 255, 0.16);
    border-radius: 18px;
    padding: 24px 22px 20px;
    backdrop-filter: blur(5px);
    box-shadow: none;
    min-height: 100%;
}

body.mbp-game-rules-page .mbp-rules-card::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        320px 120px at 50% 0%,
        rgba(255,255,255,0.03),
        transparent 72%
    );
}

body.mbp-game-rules-page .mbp-rules-card-title{
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-family: "Cinzel", serif;
    font-size: 0.98rem;
    line-height: 1.26;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--mbp-rules-gold-soft);
}

body.mbp-game-rules-page .mbp-rules-card-text,
body.mbp-game-rules-page .mbp-rules-card p{
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: var(--mbp-rules-text);
    font-size: 0.92rem;
    line-height: 1.72;
    text-align: center;
}

body.mbp-game-rules-page .mbp-rules-card p:last-child{
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   LISTS
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-list{
    list-style: none;
    margin: 0;
    padding: 0;
}

body.mbp-game-rules-page .mbp-rules-list li{
    position: relative;
    margin: 0 0 10px;
    padding-left: 16px;
    color: var(--mbp-rules-text-soft);
    font-size: 0.91rem;
    line-height: 1.66;
    text-align: left;
}

body.mbp-game-rules-page .mbp-rules-list li:last-child{
    margin-bottom: 0;
}

body.mbp-game-rules-page .mbp-rules-list li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--mbp-rules-gold-soft);
    opacity: 0.9;
}

/* ---------------------------------------------------------
   ARTICLE / RULE ITEMS
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-article{
    max-width: 860px;
    margin: 0 auto 18px;
    padding: 20px 20px 18px;
    background: rgba(9, 10, 18, 0.48);
    border: 1px solid rgba(130, 130, 255, 0.12);
    border-radius: 16px;
}

body.mbp-game-rules-page .mbp-rules-article:last-child{
    margin-bottom: 0;
}

body.mbp-game-rules-page .mbp-rules-article-title{
    margin: 0 0 10px;
    font-family: "Cinzel", serif;
    font-size: 0.94rem;
    line-height: 1.28;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mbp-rules-gold-soft);
    text-align: left;
}

body.mbp-game-rules-page .mbp-rules-article p{
    margin: 0 0 12px;
    color: var(--mbp-rules-text);
    font-size: 0.93rem;
    line-height: 1.72;
    text-align: left;
}

body.mbp-game-rules-page .mbp-rules-article p:last-child{
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   CALLOUTS
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-callout{
    max-width: 780px;
    margin: 28px auto 0;
    padding: 18px 18px 16px;
    border: 1px solid rgba(191, 62, 47, 0.18);
    border-radius: 16px;
    background: rgba(18, 8, 10, 0.34);
    text-align: center;
}

body.mbp-game-rules-page .mbp-rules-callout-title{
    margin: 0 0 10px;
    font-family: "Cinzel", serif;
    font-size: 0.92rem;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mbp-rules-law);
}

body.mbp-game-rules-page .mbp-rules-callout p{
    margin: 0;
    color: var(--mbp-rules-text-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   FINAL ACTIONS
--------------------------------------------------------- */

body.mbp-game-rules-page .mbp-rules-actions{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

body.mbp-game-rules-page .mbp-rules-note{
    max-width: 760px;
    margin: 20px auto 0;
    color: var(--mbp-rules-text-soft);
    font-size: 0.90rem;
    line-height: 1.7;
    text-align: center;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 980px){
    body.mbp-game-rules-page .mbp-rules-shell{
        padding-top: 72px;
        padding-left: 18px;
        padding-right: 18px;
    }

    body.mbp-game-rules-page .mbp-rules-hero{
        margin-bottom: 60px;
    }

    body.mbp-game-rules-page .mbp-rules-section{
        margin-bottom: 68px;
    }

    body.mbp-game-rules-page .mbp-rules-grid--three,
    body.mbp-game-rules-page .mbp-rules-grid--two{
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 720px){
    body.mbp-game-rules-page .mbp-rules-shell{
        padding-top: 58px;
    }

    body.mbp-game-rules-page .mbp-rules-subtitle{
        margin-top: 14px;
        font-size: 1.2rem;
        letter-spacing: 0.08em;
    }

    body.mbp-game-rules-page .mbp-rules-heading-title{
        font-size: 1.74rem;
        letter-spacing: 0.08em;
    }

    body.mbp-game-rules-page .mbp-rules-copy p{
        font-size: 0.93rem;
        line-height: 1.72;
    }
}

@media (max-width: 560px){
    body.mbp-game-rules-page .mbp-rules-shell{
        padding-top: 48px;
        padding-left: 14px;
        padding-right: 14px;
    }

    body.mbp-game-rules-page .mbp-rules-page{
        margin-bottom: 74px;
    }

    body.mbp-game-rules-page .mbp-rules-title{
        font-size: 2.35rem;
    }

    body.mbp-game-rules-page .mbp-rules-subtitle{
        font-size: 1.04rem;
    }

    body.mbp-game-rules-page .mbp-rules-heading-title{
        font-size: 1.42rem;
    }

    body.mbp-game-rules-page .mbp-rules-section{
        margin-bottom: 52px;
    }

    body.mbp-game-rules-page .mbp-rules-card{
        padding: 20px 16px 18px;
    }

    body.mbp-game-rules-page .mbp-rules-article{
        padding: 16px 14px 14px;
    }

    body.mbp-game-rules-page .mbp-rules-actions{
        gap: 10px;
    }
}
