body {
    background:
        radial-gradient(circle at top left, rgba(35, 255, 242, 0.1), transparent 26%),
        radial-gradient(circle at top right, rgba(95, 145, 255, 0.1), transparent 24%),
        linear-gradient(180deg, #050608 0%, #080b10 42%, #050608 100%);
}

main {
    overflow: hidden;
}

.rules-page {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 20px 88px;
    color: var(--text-color);
}

.rules-page::before,
.rules-page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
}

.rules-page::before {
    top: 30px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: rgba(35, 255, 242, 0.18);
}

.rules-page::after {
    top: 160px;
    right: -20px;
    width: 260px;
    height: 260px;
    background: rgba(112, 92, 255, 0.14);
}

.rules-hero,
.rules-highlight,
.rules-card,
.rules-summary,
.rules-footer-note,
.rules-note-card,
.rules-stat {
    position: relative;
    z-index: 1;
}

.rules-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 26px;
    align-items: stretch;
}

.rules-hero__copy,
.rules-summary,
.rules-highlight,
.rules-card,
.rules-footer-note {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(17, 19, 25, 0.94) 0%, rgba(8, 10, 14, 0.98) 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.rules-hero__copy {
    padding: 42px;
    border-radius: 32px;
}

.rules-badge,
.rules-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(35, 255, 242, 0.32);
    background: rgba(35, 255, 242, 0.08);
    color: #a2fff4;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rules-hero__copy h1,
.rules-highlight__intro h2,
.rules-card h2,
.rules-footer-note h2,
.rules-note-card h3 {
    color: #fff;
}

.rules-hero__copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.rules-hero__description,
.rules-highlight__intro p,
.rules-note-card p,
.rules-list li,
.rules-warning-list li,
.rules-footer-note p,
.rules-stat span {
    color: rgba(217, 215, 225, 0.84);
    line-height: 1.72;
}

.rules-hero__description {
    max-width: 58ch;
    margin: 0;
    font-size: 1.14rem;
}

.rules-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.rules-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 15px 24px;
    border-radius: 16px;
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.rules-button--primary {
    background: linear-gradient(135deg, #23fff2 0%, #7bffe0 100%);
    color: #071116;
    box-shadow: 0 18px 48px rgba(35, 255, 242, 0.24);
}

.rules-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.rules-button:hover {
    transform: translateY(-2px);
}

.rules-button--secondary:hover {
    border-color: rgba(35, 255, 242, 0.45);
    color: var(--button-color);
}

.rules-summary {
    padding: 32px;
    border-radius: 28px;
}

.rules-summary__kicker {
    margin: 0 0 18px;
    color: rgba(217, 215, 225, 0.72);
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rules-summary__grid {
    display: grid;
    gap: 14px;
}

.rules-stat {
    padding: 18px 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-stat strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.3rem;
}

.rules-highlight {
    margin-top: 28px;
    padding: 34px;
    border-radius: 30px;
}

.rules-highlight__intro h2,
.rules-card h2,
.rules-footer-note h2 {
    margin: 14px 0 12px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.rules-highlight__intro p,
.rules-footer-note p {
    max-width: 72ch;
    margin: 0;
    font-size: 1.05rem;
}

.rules-highlight__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.rules-note-card {
    padding: 24px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-note-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.rules-note-card p {
    margin: 0;
    font-size: 0.98rem;
}

.rules-sections {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.rules-card {
    padding: 34px;
    border-radius: 30px;
}

.rules-card__header {
    margin-bottom: 22px;
}

.rules-list,
.rules-warning-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-list {
    display: grid;
    gap: 14px;
}

.rules-list--continued {
    margin-top: 20px;
}

.rules-list li,
.rules-warning-list li {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.02rem;
}

.rules-point {
    display: inline-block;
    min-width: 42px;
    margin-right: 4px;
    color: #9ffdf5;
    font-weight: 700;
}

.rules-warning-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.rules-warning-list li {
    position: relative;
    padding-left: 56px;
    background: linear-gradient(180deg, rgba(255, 116, 94, 0.08) 0%, rgba(255, 116, 94, 0.03) 100%);
    border-color: rgba(255, 116, 94, 0.18);
}

.rules-warning-list li::before {
    content: "!";
    position: absolute;
    top: 16px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8f70 0%, #ffcf7a 100%);
    color: #1f0b02;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 143, 112, 0.35);
}

.rules-footer-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 30px 32px;
    border-radius: 28px;
}

@media screen and (max-width: 1100px) {
    .rules-hero {
        grid-template-columns: 1fr;
    }

    .rules-highlight__cards {
        grid-template-columns: 1fr;
    }

    .rules-footer-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .rules-page {
        padding: 24px 14px 72px;
    }

    .rules-hero__copy,
    .rules-summary,
    .rules-highlight,
    .rules-card,
    .rules-footer-note {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .rules-hero__actions,
    .rules-footer-note {
        gap: 12px;
    }

    .rules-button {
        width: 100%;
        min-width: 0;
    }

    .rules-stat,
    .rules-note-card,
    .rules-list li,
    .rules-warning-list li {
        border-radius: 18px;
    }

    .rules-list li,
    .rules-warning-list li {
        padding: 16px;
        font-size: 0.98rem;
    }

    .rules-warning-list li {
        padding-left: 50px;
    }

    .rules-warning-list li::before {
        top: 14px;
        left: 16px;
    }
}

@media screen and (max-width: 500px) {
    .rules-hero__copy h1 {
        font-size: 1.9rem;
    }

    .rules-hero__description,
    .rules-highlight__intro p,
    .rules-footer-note p,
    .rules-stat span,
    .rules-note-card p,
    .rules-list li,
    .rules-warning-list li {
        font-size: 0.95rem;
        line-height: 1.62;
    }

    .rules-summary__kicker {
        font-size: 0.86rem;
    }

    .rules-point {
        display: block;
        margin-bottom: 6px;
    }
}
