.rules-page {
    padding: clamp(3rem, 7vw, 6rem) 0 5rem;
}

.rules-hero {
    max-width: 820px;
    margin-bottom: 2rem;
}

.rules-eyebrow {
    color: #54dec5;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.rules-hero h1 {
    margin: .6rem 0 1rem;
    font-family: Oxanium, sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
}

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

.rules-hero p,
.rule-card p,
.rules-help p {
    color: #c4d4dd;
    line-height: 1.65;
}

.rules-index {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 1.5rem;
}

.rules-index a {
    padding: .55rem .9rem;
    border: 1px solid rgba(117, 211, 213, .28);
    border-radius: 999px;
    background: rgba(7, 31, 43, .8);
    color: #e0f5f3;
    font-size: .88rem;
    text-decoration: none;
}

.rules-index a:hover,
.rules-index a:focus-visible {
    border-color: #54dec5;
    color: #fff;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.rule-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(117, 211, 213, .2);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(10, 42, 53, .95), rgba(8, 24, 39, .95));
    scroll-margin-top: 2rem;
}

.rule-number {
    color: #54dec5;
    font-family: Oxanium, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.rule-card h2,
.rules-help h2 {
    margin: 0 0 .65rem;
    font-family: Oxanium, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.rule-card p,
.rules-help p {
    margin-bottom: 0;
}

.rules-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(84, 222, 197, .4);
    border-radius: 16px;
    background: rgba(8, 55, 58, .7);
}

.rules-help .btn {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

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