/* ── Help page global overrides ───────────────────────────────────────── */
    html { background: #1a1033; }
    body {
        background: linear-gradient(180deg, #1a1033 0%, #0f1f3d 50%, #1a1033 100%);
        min-height: 100dvh;
    }

    .help-page {
        --brand-purple: #825fff;
        --brand-blue:   #7bcefe;
        --brand-pink:   #ff6b9d;
        --brand-gold:   #ffd700;
        --bg-dark:      #1a1033;
        --bg-card:      rgba(255,255,255,0.06);
        --bg-card-solid: rgba(255,255,255,0.10);
        --text-main:    #ffffff;
        --text-muted:   rgba(255,255,255,0.55);
        --radius:       14px;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 1.5rem 3rem;
        color: var(--text-main);
        font-family: 'Segoe UI', system-ui, sans-serif;
        line-height: 1.6;
    }

    /* ── Back link ─────────────────────────────────────────────────────────── */
    .help-back {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        display: inline-block;
        transition: color 0.2s;
    }
    .help-back:hover { color: var(--brand-purple); }

    /* ── Hero ──────────────────────────────────────────────────────────────── */
    .help-hero {
        text-align: center;
        padding: 4rem 0 3rem;
    }
    .help-hero .help-back {
        margin-bottom: 1.5rem;
    }
    .help-title {
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 900;
        letter-spacing: -1px;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .help-subtitle {
        color: var(--text-muted);
        font-size: 1.1rem;
        max-width: 500px;
        margin: 0 auto;
    }

    /* ── Table of Contents ─────────────────────────────────────────────────── */
    .help-toc {
        background: var(--bg-card);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: var(--radius);
        padding: 1.5rem 2rem;
        margin-bottom: 3rem;
    }
    .help-toc__title {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text-muted);
        margin-bottom: 0.75rem;
    }
    .help-toc__list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }
    .help-toc__list a {
        color: var(--brand-blue);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: color 0.2s;
    }
    .help-toc__list a:hover { color: var(--brand-purple); }
    .help-toc__sublist {
        list-style: none;
        padding-left: 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        margin: 0.2rem 0 0.2rem;
    }
    .help-toc__sublist a {
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* ── Sections ──────────────────────────────────────────────────────────── */
    .help-section {
        margin-bottom: 3rem;
    }
    .help-section__title {
        font-size: 1.75rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid rgba(130,95,255,0.3);
    }
    .help-section__desc {
        color: var(--text-muted);
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* ── Cards ─────────────────────────────────────────────────────────────── */
    .help-card {
        background: var(--bg-card);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: var(--radius);
        padding: 1.5rem 2rem;
    }

    /* ── Steps list ────────────────────────────────────────────────────────── */
    .help-steps {
        list-style: none;
        counter-reset: step;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .help-steps li {
        counter-increment: step;
        padding-left: 2.5rem;
        position: relative;
        font-size: 0.95rem;
    }
    .help-steps li::before {
        content: counter(step);
        position: absolute;
        left: 0;
        top: 0;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 800;
        flex-shrink: 0;
    }
    .help-steps li strong { color: var(--brand-blue); }
    .help-steps li em { color: var(--brand-purple); font-style: normal; font-weight: 700; }
    .help-tip {
        margin-top: 1rem;
        padding: 0.75rem 1rem;
        background: rgba(130,95,255,0.12);
        border-radius: var(--radius);
        font-size: 0.9rem;
        color: var(--text-muted);
    }
    .help-tip strong { color: var(--text-main); }

    /* ── Mode / Mini-game entries ──────────────────────────────────────────── */
    .help-mode {
        background: var(--bg-card);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: var(--radius);
        padding: 1.25rem 1.5rem;
        margin-bottom: 1rem;
        transition: border-color 0.2s;
        scroll-margin-top: 1rem;
    }
    .help-mode:hover {
        border-color: rgba(130,95,255,0.25);
    }
    .help-mode__header {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .help-mode__icon {
        font-size: 2rem;
        line-height: 1;
        flex-shrink: 0;
    }
    .help-mode__name {
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0;
    }
    .help-mode__badge {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        background: rgba(255,255,255,0.08);
        border-radius: 99px;
        padding: 0.15em 0.7em;
        color: var(--text-muted);
        margin-top: 0.1rem;
    }
    .help-mode__desc {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }
    .help-mode__details {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    .help-mode__details li {
        font-size: 0.88rem;
        padding-left: 1.25rem;
        position: relative;
        color: rgba(255,255,255,0.8);
    }
    .help-mode__details li::before {
        content: "·";
        position: absolute;
        left: 0.35rem;
        color: var(--brand-purple);
        font-weight: 800;
    }

    /* ── Footer ────────────────────────────────────────────────────────────── */
    .help-footer {
        text-align: center;
        padding: 2rem 0 1rem;
        border-top: 1px solid rgba(255,255,255,0.06);
        color: var(--text-muted);
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .help-footer .help-back { align-self: center; }

    /* ── Responsive ────────────────────────────────────────────────────────── */
    @media (max-width: 600px) {
        .help-page { padding: 0 1rem 2rem; }
        .help-hero { padding: 2.5rem 0 2rem; }
        .help-card { padding: 1.25rem 1.25rem; }
        .help-mode { padding: 1rem 1.1rem; }
        .help-toc { padding: 1rem 1.25rem; }
        .help-steps li { font-size: 0.9rem; }
    }