/* قوانين اللعبة — homepage chrome companion. Homepage/rules pages only. */

.hp-rules-page .Body {
    width: 95%;
    max-width: 980px;
    margin: 28px auto 50px;
    text-align: center;
    overflow-x: hidden;
}

.hp-rules-intro {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    padding: 26px 24px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(198, 146, 0, .25), inset 0 1px 0 rgba(255, 215, 0, .15);
    border: 1px solid rgba(198, 146, 0, .2);
    color: #e8dcc8;
    text-align: right;
    line-height: 1.9;
}

.hp-rules-intro h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #c69200, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-rules-intro p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hp-rules-updated {
    margin: 16px 0 0;
    color: #ffd700;
    font-weight: 700;
    font-size: 14px;
}

.hp-rules-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(198, 146, 0, .4);
    color: #ffd700;
    font-size: 12px;
    font-weight: 700;
}

.hp-rules-page h3.hp-rules-title,
.hp-rules-page h3.HHL {
    margin: 28px 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #ffd700 !important;
    -webkit-text-fill-color: #ffd700;
    background: none;
    border: 0;
    position: relative;
}

.hp-rules-page h3.hp-rules-title::after,
.hp-rules-page h3.HHL::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c69200, #ffd700, #c69200);
    margin: 8px auto 0;
    border-radius: 5px;
}

.hp-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    text-align: right;
}

.hp-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px 16px 14px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(198, 146, 0, .28);
    border-radius: 12px 4px 12px 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 215, 0, .08);
    color: #d4c5a0;
    min-width: 0;
}

.hp-rule-n {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(198, 146, 0, .7);
    border-radius: 50%;
    color: #ffd700;
    font-weight: 800;
    background: rgba(198, 146, 0, .1);
}

.hp-rule p {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hp-rule-lead {
    margin: 0 0 12px;
    padding: 14px 16px;
    text-align: right;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(198, 146, 0, .22);
    border-radius: 10px;
    color: #d4c5a0 !important;
    font-size: 14px;
    line-height: 1.85;
}

.hp-rule-sub {
    display: block;
    margin: 0 0 6px;
    color: #ffd700 !important;
    font-weight: 800;
    font-size: 14px;
}

.hp-rules-note {
    margin-top: 18px;
    font-size: 13px;
    color: #b8aa8e;
}

.hp-rules-note a {
    color: #ffd700;
}

html.homepage-theme-light .hp-rules-note {
    color: #000000 !important;
}

html.homepage-theme-light .hp-rules-intro,
html.homepage-theme-light .hp-rule,
html.homepage-theme-light .hp-rule-lead {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

html.homepage-theme-light .hp-rule p,
html.homepage-theme-dark .hp-rule p,
html.homepage-theme-light .hp-scene .hp-rule-lead,
html.homepage-theme-dark .hp-scene .hp-rule-lead {
    color: #d4c5a0 !important;
}

@media (max-width: 768px) {
    .hp-rules-intro h1 {
        font-size: 22px;
    }

    .hp-rule {
        gap: 10px;
        padding: 14px 12px;
    }

    .hp-rules-page .hp-brand {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hp-rules-page .hp-brand-col,
    .hp-rules-page .hp-brand-bar {
        text-align: center;
    }

    .hp-rules-page .hp-brand-bar {
        flex-direction: column;
        gap: 10px;
    }
}

.hp-rules-page .hp-brand {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 22px;
    margin: 18px 0 0;
    padding: 26px 20px 20px;
    text-align: right;
    background: linear-gradient(180deg, #141b2a 0%, #0b111a 100%);
    border: 1px solid rgba(198, 146, 0, .28);
    border-radius: 14px 4px 14px 4px;
}

.hp-rules-page .hp-brand-id {
    text-align: center;
}

.hp-rules-page .hp-brand-id img {
    display: block;
    width: 128px;
    height: auto;
    margin: 0 auto 10px;
}

.hp-rules-page .hp-brand-tag {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #e8dcc8;
    font-weight: 600;
}

.hp-rules-page .hp-brand-col h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #ffd700;
}

.hp-rules-page .hp-brand-col a {
    display: block;
    margin: 6px 0;
    color: #d4c5a0;
    text-decoration: none;
    font-size: 13px;
}

.hp-rules-page .hp-brand-col a:hover {
    color: #ffd700;
}

.hp-rules-page .hp-brand-col a.Sign {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    background: linear-gradient(45deg, #ffb300, #ff6f00);
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
}

.hp-rules-page .hp-contact-item {
    margin: 10px 0 0;
}

.hp-rules-page .hp-contact-label {
    display: block;
    margin: 0 0 2px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.hp-rules-page .hp-brand-contact a {
    margin: 0;
}

.hp-rules-page .hp-brand-contact a[href^="mailto:"] {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.hp-rules-page .hp-brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 4px;
    padding: 12px 8px 0;
    border-top: 1px solid rgba(198, 146, 0, .22);
    color: #b8aa8e;
    font-size: 12px;
}

.hp-rules-page .hp-brand-cr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
}

html.homepage-theme-light .hp-rules-page .hp-brand-bar,
html.homepage-theme-light .hp-rules-page .hp-brand-bar > span,
html.homepage-theme-light .hp-rules-page .hp-brand-cr,
html.homepage-theme-light .hp-rules-page .hp-brand-cr-txt,
html.homepage-theme-light .hp-rules-page .hp-brand-cr-txt bdi {
    color: #000 !important;
}

.hp-rules-page .hp-brand-cr img {
    height: 42px;
    width: auto;
}

.hp-rules-page .hp-brand-cr-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}
