/* ====================================================================== */
/* RULES PAGE — PREMIUM (loads after home.css)                            */
/* ====================================================================== */

.rules-body {
    background: radial-gradient(circle at top, #0c1428, #020617 65%);
}

.rules-main {
    flex: 1;
    width: 100%;
}

/* ----- Hero ----- */
.rules-hero {
    position: relative;
    padding: 28px 40px 18px;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(245, 165, 36, 0.1);
}

.rules-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.28;
    pointer-events: none;
}

.rules-hero-glow-a {
    width: 280px;
    height: 280px;
    background: #f5a524;
    top: -60px;
    left: 10%;
}

.rules-hero-glow-b {
    width: 220px;
    height: 220px;
    background: #22c55e;
    bottom: -45px;
    right: 12%;
    opacity: 0.18;
}

.rules-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.rules-hero .hero-eyebrow {
    margin-bottom: 8px;
    padding: 4px 12px;
    font-size: 10px;
    display: inline-block;
}

.rules-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.rules-hero h1 span {
    color: #f5a524;
}

.rules-hero-lead {
    margin: 0 0 6px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.rules-hero-note {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
}

/* ----- Status bar ----- */
.rules-results-bar {
    display: flex;
    justify-content: center;
    padding: 12px 40px 4px;
}

.rules-results-count {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

/* ----- Content ----- */
.rules-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rules-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rules-card:hover {
    border-color: rgba(245, 165, 36, 0.15);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.rules-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 900;
    color: #93c5fd;
    line-height: 1.3;
}

.rules-card ul {
    padding-left: 20px;
    margin: 0;
}

.rules-card li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.65;
}

.rules-card li:last-child {
    margin-bottom: 0;
}

.rules-example {
    margin-top: 18px;
    padding: 16px 18px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-left: 3px solid #f5a524;
    border-radius: 12px;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

.rules-card-rg {
    border-color: rgba(34, 197, 94, 0.15);
}

.rules-card-rg h2 {
    color: #86efac;
}

.rules-help {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.rules-help p {
    margin: 0 0 8px;
}

.rules-help a {
    color: #f5a524;
    text-decoration: none;
    font-weight: 700;
}

.rules-help a:hover {
    text-decoration: underline;
}

.rules-help-note {
    margin-top: 12px !important;
    font-size: 12px;
    color: #64748b;
}

.rules-rg-strip {
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .rules-hero {
        padding: 24px 20px 16px;
    }

    .rules-hero-glow {
        opacity: 0.18;
    }

    .rules-results-bar,
    .rules-container,
    .rules-rg-strip {
        padding-left: 20px;
        padding-right: 20px;
    }

    .rules-card {
        padding: 22px 20px;
    }
}

/* Tournament Top Bar (shared component) */
.tournament-top-bar {
    background: linear-gradient(90deg, #1a1a1a 0%, #3d0b0b 50%, #1a1a1a 100%);
    border-bottom: 2px solid #ff4e50;
    color: #fff;
    padding: 10px 0;
    font-family: sans-serif;
    position: relative;
    z-index: 1000;
}

.t-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.t-badge {
    background: #ff4e50;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    animation: blink 1s infinite;
}

.t-text {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.t-text strong {
    color: #f9d423;
}

.t-cta {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.t-cta:hover {
    background: #ff4e50;
    color: #fff;
    transform: scale(1.05);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .t-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .t-text {
        font-size: 12px;
    }
}
