.how-to-play {
    --how-play-ink: #10243d;
    --how-play-muted: #60728a;
    --how-play-line: rgba(36, 126, 181, 0.16);
    --how-play-blue: #2387ea;
    --how-play-cyan: #15b9d5;
    --how-play-teal: #10b79e;
    --how-play-soft: #f6fbff;
    --how-play-surface: #ffffff;
    --how-play-shadow: 0 18px 50px rgba(14, 71, 120, 0.12);
    --how-play-shadow-soft: 0 12px 32px rgba(17, 75, 126, 0.09);
    color: var(--how-play-ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--how-play-soft) 100%);
    margin: -1rem -15px 0;
    padding: 1rem 15px 4rem;
}

.how-to-play--memory {
    --how-play-blue: #8b5cf6;
    --how-play-cyan: #c084fc;
    --how-play-teal: #a855f7;
}

.how-to-play--color {
    --how-play-blue: #0891b2;
    --how-play-cyan: #22d3ee;
    --how-play-teal: #14b8a6;
}

.how-to-play--matrix {
    --how-play-blue: #2563eb;
    --how-play-cyan: #38bdf8;
    --how-play-teal: #0ea5e9;
}

.how-to-play--mirror {
    --how-play-blue: #ec4899;
    --how-play-cyan: #fb7185;
    --how-play-teal: #f43f5e;
}

.how-to-play a {
    color: inherit;
}

.how-to-play-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    color: var(--how-play-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}

.how-to-play-breadcrumbs a {
    color: var(--how-play-muted);
    text-decoration: none;
}

.how-to-play-breadcrumbs a:hover,
.how-to-play-breadcrumbs a:focus {
    color: var(--how-play-blue);
}

.how-to-play-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    padding: 1.5rem 15px 3rem;
}

.how-to-play-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
    background: rgba(21, 185, 213, 0.12);
    color: var(--how-play-teal);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.how-to-play-hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--how-play-ink);
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.how-to-play-hero p {
    max-width: 560px;
    margin: 1.2rem 0 0;
    color: var(--how-play-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.how-to-play-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 660px;
    margin-top: 1.5rem;
}

.how-to-play-facts span {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    border: 1px solid var(--how-play-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--how-play-ink);
    font-weight: 700;
    text-align: center;
    box-shadow: var(--how-play-shadow-soft);
}

.how-to-play-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.how-to-play-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 8px;
    padding: 0.85rem 1.2rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.how-to-play-btn:hover,
.how-to-play-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.how-to-play-btn-primary {
    border: 1px solid var(--how-play-blue);
    background: linear-gradient(135deg, var(--how-play-blue), var(--how-play-cyan));
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(35, 135, 234, 0.18);
}

.how-to-play-btn-primary:hover,
.how-to-play-btn-primary:focus {
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(35, 135, 234, 0.24);
}

.how-to-play-btn-secondary {
    border: 1px solid rgba(35, 135, 234, 0.28);
    background: #ffffff;
    color: var(--how-play-blue);
}

.how-to-play-hero-media {
    border: 1px solid var(--how-play-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: var(--how-play-shadow);
}

.how-to-play-hero-media--preview {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.how-to-play-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.how-to-play-preview-stack {
    display: flex;
    width: min(100%, 400px);
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.how-to-play-preview-caption {
    max-width: 20rem;
    margin: 0;
    color: #58708d;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.how-to-play-overview,
.how-to-play-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.how-to-play-card,
.how-to-play-step-card,
.how-to-play-related-card {
    border: 1px solid var(--how-play-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--how-play-shadow-soft);
}

.how-to-play-card {
    padding: 1.35rem;
}

.how-to-play-card h2,
.how-to-play-step-card h3,
.how-to-play-related h2 {
    margin: 0;
    color: var(--how-play-ink);
    font-weight: 800;
    letter-spacing: 0;
}

.how-to-play-card h2 {
    font-size: 1.2rem;
}

.how-to-play-card p,
.how-to-play-card li,
.how-to-play-step-card p,
.how-to-play-related-card span {
    color: var(--how-play-muted);
    line-height: 1.65;
}

.how-to-play-card p {
    margin: 0.75rem 0 0;
}

.how-to-play-card ul {
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
}

.how-to-play-check-list {
    list-style: none;
    padding-left: 0;
}

.how-to-play-check-list li::before {
    content: "✓";
    margin-right: 0.55rem;
    color: #16a34a;
    font-weight: 800;
}

.how-to-play-card-icon,
.how-to-play-heading-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(21, 185, 213, 0.12);
    color: var(--how-play-blue);
    font-weight: 900;
}

.how-to-play-section,
.how-to-play-info-grid,
.how-to-play-longform,
.how-to-play-variations,
.how-to-play-disclaimer,
.how-to-play-faq,
.how-to-play-related {
    margin-top: 3rem;
}

.how-to-play-longform {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.how-to-play-longform-section {
    padding: 1.5rem;
    border: 1px solid var(--how-play-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--how-play-shadow-soft);
}

.how-to-play-longform-section h2,
.how-to-play-variations h2,
.how-to-play-faq h2 {
    margin: 0;
    color: var(--how-play-ink);
    font-weight: 800;
    letter-spacing: 0;
}

.how-to-play-longform-section p,
.how-to-play-variations p,
.how-to-play-faq-item p {
    color: var(--how-play-muted);
    line-height: 1.68;
}

.how-to-play-longform-section p {
    margin: 0.85rem 0 0;
}

.how-to-play-variations {
    max-width: 1110px;
}

.how-to-play-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.how-to-play-chip-list li {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(35, 135, 234, 0.08);
    color: var(--how-play-ink);
    font-weight: 700;
}

.how-to-play-faq h2 {
    text-align: center;
}

.how-to-play-faq-list {
    display: grid;
    gap: 0.8rem;
    max-width: 880px;
    margin: 1.25rem auto 0;
}

.how-to-play-faq-item {
    border: 1px solid var(--how-play-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--how-play-shadow-soft);
}

.how-to-play-faq-item summary {
    cursor: pointer;
    padding: 1rem 1.1rem;
    color: var(--how-play-ink);
    font-weight: 800;
}

.how-to-play-faq-item p {
    margin: 0;
    padding: 0 1.1rem 1.1rem;
}

.how-to-play-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.how-to-play-section-heading h2 {
    margin: 0;
    color: var(--how-play-ink);
    font-weight: 800;
}

.how-to-play-heading-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0;
}

.how-to-play-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.how-to-play-step-card {
    min-height: 190px;
    padding: 1.2rem;
}

.how-to-play-step-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--how-play-blue);
    color: #ffffff;
    font-weight: 800;
}

.how-to-play-step-card h3 {
    font-size: 1.05rem;
}

.how-to-play-step-card p {
    margin: 0.7rem 0 0;
}

.how-to-play-disclaimer {
    border: 1px solid rgba(16, 183, 158, 0.24);
    border-radius: 8px;
    background: rgba(16, 183, 158, 0.08);
    padding: 1rem 1.25rem;
}

.how-to-play-disclaimer p {
    margin: 0;
    color: #245f60;
    line-height: 1.6;
}

.how-to-play-related {
    text-align: center;
}

.how-to-play-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
    text-align: left;
}

.how-to-play-related-card {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.how-to-play-related-card:hover,
.how-to-play-related-card:focus {
    color: var(--how-play-ink);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--how-play-shadow);
}

.how-to-play-related-card strong {
    color: var(--how-play-ink);
    font-weight: 800;
}

.how-to-play-related-card span:last-child {
    color: var(--how-play-blue);
    font-weight: 800;
}

@media (max-width: 991px) {
    .how-to-play-hero,
    .how-to-play-overview,
    .how-to-play-longform,
    .how-to-play-info-grid {
        grid-template-columns: 1fr;
    }

    .how-to-play-step-grid,
    .how-to-play-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .how-to-play {
        padding-bottom: 3rem;
    }

    .how-to-play-hero {
        gap: 1.5rem;
        padding-top: 0.5rem;
    }

    .how-to-play-hero h1 {
        font-size: 2.25rem;
    }

    .how-to-play-facts,
    .how-to-play-step-grid,
    .how-to-play-related-grid {
        grid-template-columns: 1fr;
    }

    .how-to-play-actions {
        flex-direction: column;
    }

    .how-to-play-btn {
        width: 100%;
    }
}
