﻿/* =========================
   RULES (TargetFan vibe)
   scoped: .tf-rules
========================= */

.tf-rules {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 14px 46px;
    position: relative;
}

    .tf-rules::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 76px;
        transform: translateX(-50%);
        width: min(1200px, calc(100% - 28px));
        height: 420px;
        background: radial-gradient(circle at 18% 18%, rgba(212,175,55,.12), transparent 55%), radial-gradient(circle at 82% 26%, rgba(255,255,255,.06), transparent 58%);
        opacity: .9;
        pointer-events: none;
        z-index: 0;
    }

    .tf-rules > * {
        position: relative;
        z-index: 1;
    }

.tf-rules-card {
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(18,21,27,.74), rgba(18,21,27,.56));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 22px 80px rgba(0,0,0,.55);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

    .tf-rules-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 28px;
        padding: 1px;
        background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(255,255,255,.06), rgba(212,175,55,.12));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        opacity: .9;
        z-index: 0;
    }

.tf-rules-head {
    padding: 6px 6px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 14px;
}

.tf-rules-title {
    margin: 10px 0 6px;
    font-weight: 950;
    letter-spacing: .2px;
    color: #fff;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.05;
}

.tf-rules-sub {
    margin: 0;
    color: rgba(229,231,235,.72);
    max-width: 820px;
    line-height: 1.55;
    font-size: 14px;
}

.tf-rules-content {
    position: relative;
    z-index: 1;
}

.tf-rules-chapter {
    margin: 18px 0 10px;
    font-weight: 950;
    color: var(--tf-gold);
    letter-spacing: .2px;
    font-size: 18px;
}

.tf-rule-group {
    border-radius: 20px;
    padding: 12px;
    background: rgba(11,13,16,.35);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 12px;
}

.tf-rule {
    position: relative;
    padding: 10px 12px 10px 44px;
    border-radius: 16px;
    color: rgba(229,231,235,.82);
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    line-height: 1.5;
}

    .tf-rule + .tf-rule {
        margin-top: 10px;
    }

    .tf-rule::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        border-radius: 10px;
        background: rgba(18,21,27,.60);
        border: 1px solid rgba(255,255,255,.10);
    }

    .tf-rule.ok::after,
    .tf-rule.bad::after,
    .tf-rule.info::after {
        position: absolute;
        left: 19px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 950;
        font-size: 12px;
    }

    .tf-rule.ok::after {
        content: "✔";
        color: rgba(245,231,185,.95);
    }

    .tf-rule.bad::after {
        content: "✖";
        color: rgba(255,220,220,.92);
    }

    .tf-rule.info::after {
        content: "i";
        color: rgba(229,231,235,.78);
    }

    .tf-rule:hover {
        background: rgba(212,175,55,.06);
        border-color: rgba(212,175,55,.16);
    }

    .tf-rule b {
        color: rgba(245,231,185,.95);
    }

.tf-rule-num {
    display: inline-block;
    min-width: 26px;
    color: var(--tf-gold-soft);
    font-weight: 950;
}

.tf-rules-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(229,231,235,.65);
    font-style: italic;
    line-height: 1.6;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 992px) {
    .tf-rules-card {
        padding: 18px;
        border-radius: 22px;
    }

        .tf-rules-card::before {
            border-radius: 22px;
        }

    .tf-rules-chapter {
        font-size: 16px;
    }

    .tf-rule {
        padding-left: 44px;
    }
}
