/* Shared “how to play” card — matches kids overlay panels */
.overlay:has(.overlay-stack) {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.overlay-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: min(100%, 340px);
}

.howto-card {
    background: #fffef7;
    border-radius: 20px;
    padding: 1.15rem 1.2rem 1.2rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid #a8d8ff;
    font-family: inherit;
}

.howto-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2980b9;
    text-align: center;
}

.howto-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.howto-list li {
    display: grid;
    grid-template-columns: 5.6rem 1fr;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.88rem;
    line-height: 1.25;
    color: #2c3e50;
}

.howto-keys {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: flex-end;
}

.howto-keys kbd {
    display: inline-block;
    min-width: 1.45rem;
    padding: 0.12rem 0.28rem;
    border-radius: 6px;
    background: #fff;
    border: 2px solid #b9d9f5;
    box-shadow: 0 2px 0 #8ebce8;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    color: #1a5276;
}

.howto-note {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #5d6d7e;
    text-align: center;
}
