.how-to-play-page {
    --guide-ink: #20252b;
    --guide-text: #000000;
    --guide-muted: #000000;
    --guide-blue: #042bac;
    --guide-accent: #d94f00;
    --guide-paper: #f4f5f6;
    --guide-white: #ffffff;
    --guide-line: #c7ccd1;
    width: min(960px, calc(100% - 28px));
    margin: 24px auto 42px;
    overflow: hidden;
    color: var(--guide-text);
    background: var(--guide-paper);
    border: 1px solid var(--guide-ink);
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
}

.how-to-play-page::before {
    content: "PREDICTCLASH PLAYBOOK";
    display: block;
    padding: 9px 26px;
    color: #fff;
    background: var(--guide-ink);
    border-bottom: 3px solid var(--guide-accent);
    font-family: "Agency FB", Arial, sans-serif;
    font-size: 17px;
    letter-spacing: 2.4px;
}

.how-to-play-hero {
    height: auto;
    min-height: 0;
    padding: 30px 28px 28px;
    color: var(--guide-ink);
    text-align: left;
    background: #e5e7e9;
    border-bottom: 1px solid var(--guide-line);
}

.how-to-play-eyebrow,
.how-to-play-kicker {
    margin: 0 0 7px;
    color: var(--guide-accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.how-to-play-hero h1 {
    margin: 0;
    color: var(--guide-ink);
    font-family: "Agency FB", Arial, sans-serif;
    font-size: clamp(39px, 6vw, 54px);
    font-weight: normal;
    line-height: 1;
    letter-spacing: 0.3px;
}

.how-to-play-lead {
    max-width: 760px;
    margin: 13px 0 0;
    color: #000;
    font-size: 16px;
    line-height: 1.65;
}

.how-to-play-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.how-to-play-actions a,
.how-to-play-final-cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--guide-blue);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.how-to-play-primary,
.how-to-play-final-cta > a {
    color: #fff;
    background: var(--guide-blue);
}

.how-to-play-secondary {
    color: var(--guide-blue);
    background: transparent;
}

.how-to-play-actions a:hover,
.how-to-play-final-cta > a:hover {
    color: #fff;
    background: var(--guide-ink);
    border-color: var(--guide-ink);
}

.how-to-play-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--guide-line);
}

.how-to-play-jump a {
    padding: 4px 10px;
    color: var(--guide-blue);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.how-to-play-jump a + a {
    border-left: 1px solid var(--guide-line);
}

.how-to-play-jump a:hover {
    color: var(--guide-accent);
    text-decoration: underline;
}

.how-to-play-section {
    scroll-margin-top: 85px;
    padding: 34px 28px;
    border-bottom: 1px solid var(--guide-line);
}

.how-to-play-section-heading {
    max-width: 760px;
    margin-bottom: 19px;
}

.how-to-play-section-heading h2,
.how-to-play-final-cta h2 {
    margin: 0;
    padding-left: 11px;
    color: var(--guide-ink);
    border-left: 4px solid var(--guide-blue);
    font-family: "Agency FB", Arial, sans-serif;
    font-size: clamp(27px, 4vw, 34px);
    font-weight: normal;
    line-height: 1.08;
    letter-spacing: 0.4px;
}

.how-to-play-section-heading > p:last-child,
.how-to-play-body-copy {
    margin: 10px 0 0;
    color: var(--guide-muted);
    font-size: 15px;
    line-height: 1.65;
}

.how-to-play-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-to-play-steps li {
    display: flex;
    gap: 13px;
    padding: 16px 0;
    border-top: 1px solid var(--guide-line);
}

.how-to-play-step-number {
    display: inline-flex;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: #fff;
    background: var(--guide-blue);
    font-size: 14px;
    font-weight: 900;
}

.how-to-play-steps h3,
.how-to-play-rule-card h3,
.how-to-play-rules-list h3 {
    margin: 0 0 5px;
    color: var(--guide-ink);
    font-size: 16px;
}

.how-to-play-steps p,
.how-to-play-rule-card p,
.how-to-play-rules-list p {
    margin: 0;
    color: var(--guide-muted);
    font-size: 14px;
    line-height: 1.55;
}

.how-to-play-note,
.how-to-play-legal-note {
    margin-top: 16px;
    padding: 13px 15px;
    color: #000;
    background: #fff;
    border: 1px solid var(--guide-line);
    border-left: 4px solid var(--guide-blue);
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.6;
}

.how-to-play-score-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--guide-line);
    border-radius: 3px;
}

.how-to-play-score-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    text-align: left;
}

.how-to-play-score-table th,
.how-to-play-score-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #dfe2e5;
    font-size: 14px;
}

.how-to-play-score-table thead th {
    color: #fff;
    background: var(--guide-ink);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.how-to-play-score-table tbody tr:last-child th,
.how-to-play-score-table tbody tr:last-child td {
    border-bottom: 0;
}

.how-to-play-score-table tbody tr:nth-child(even) {
    background: #f3f4f5;
}

.score-positive { color: #087747; font-weight: 800; }
.score-negative { color: #bd2535; font-weight: 800; }
.score-neutral { color: var(--guide-muted); font-weight: 800; }

.how-to-play-rule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.how-to-play-rule-card {
    padding: 15px;
    background: #e8ebef;
    border-top: 3px solid var(--guide-blue);
}

.how-to-play-ranking {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ranking-rule;
}

.how-to-play-ranking li {
    display: grid;
    grid-template-columns: 31px minmax(180px, 0.55fr) 1fr;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--guide-line);
    counter-increment: ranking-rule;
}

.how-to-play-ranking li::before {
    content: counter(ranking-rule);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: var(--guide-blue);
    background: #fff;
    border: 1px solid var(--guide-blue);
    font-size: 13px;
    font-weight: 900;
}

.how-to-play-ranking strong { color: var(--guide-ink); }

.how-to-play-ranking span {
    color: var(--guide-muted);
    font-size: 14px;
    line-height: 1.5;
}

.how-to-play-rules-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.how-to-play-rules-list section {
    padding: 15px 0;
    border-top: 1px solid var(--guide-line);
}

.how-to-play-legal-note a {
    color: var(--guide-blue);
    font-weight: 800;
}

.how-to-play-faq {
    background: #fff;
    border: 1px solid var(--guide-line);
}

.how-to-play-faq details + details {
    border-top: 1px solid var(--guide-line);
}

.how-to-play-faq summary {
    padding: 14px 16px;
    color: var(--guide-ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.how-to-play-faq details[open] summary {
    color: var(--guide-blue);
    background: #f0f2f4;
    border-bottom: 1px solid var(--guide-line);
}

.how-to-play-faq details p {
    margin: 0;
    padding: 14px 16px;
    color: var(--guide-muted);
    font-size: 14px;
    line-height: 1.6;
}

.how-to-play-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 28px;
    color: #fff;
    background: var(--guide-ink);
}

.how-to-play-final-cta .how-to-play-kicker {
    color: var(--guide-accent);
}

.how-to-play-final-cta h2 {
    color: #fff;
    border-left-color: var(--guide-accent);
}

.how-to-play-final-cta p:last-child {
    margin: 7px 0 0;
    color: #cdd1d5;
    font-size: 14px;
}

.how-to-play-final-cta > a {
    flex: 0 0 auto;
    background: var(--guide-blue);
    border-color: #7893ef;
}

@media (max-width: 720px) {
    .how-to-play-page {
        width: min(100% - 14px, 960px);
        margin-top: 12px;
        border-radius: 5px;
    }

    .how-to-play-page::before {
        padding: 8px 17px;
        font-size: 15px;
    }

    .how-to-play-hero,
    .how-to-play-section,
    .how-to-play-final-cta {
        padding-right: 18px;
        padding-left: 18px;
    }

    .how-to-play-steps,
    .how-to-play-rule-grid,
    .how-to-play-rules-list {
        grid-template-columns: 1fr;
    }

    .how-to-play-ranking li {
        grid-template-columns: 31px 1fr;
        gap: 5px 10px;
    }

    .how-to-play-ranking span {
        grid-column: 2;
    }

    .how-to-play-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .how-to-play-actions {
        flex-direction: column;
    }

    .how-to-play-actions a,
    .how-to-play-final-cta > a {
        width: 100%;
    }

    .how-to-play-jump {
        padding-right: 8px;
        padding-left: 8px;
    }

    .how-to-play-jump a {
        padding-right: 8px;
        padding-left: 8px;
    }
}
