/* ── How-to-Play toggle button — right side, above chat toggle ── */
.htp-toggle-btn {
    position: fixed;
    top: calc(50% - 48px);
    right: 26px;
    z-index: 70;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface), #1a0f2e);
    color: var(--text);
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
}

.htp-toggle-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ── Modal content ── */
.htp-modal-box {
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
}

.htp-modal-box::-webkit-scrollbar { width: 5px; }
.htp-modal-box::-webkit-scrollbar-track { background: transparent; }
.htp-modal-box::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.htp-content {
    text-align: left;
}

.htp-section {
    margin-bottom: 20px;
}

.htp-section:last-child {
    margin-bottom: 0;
}

.htp-section-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.1rem;
    color: var(--teal);
    margin: 0 0 8px;
}

.htp-section p {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.htp-steps {
    padding-left: 1.2rem;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.8;
}

.htp-steps li {
    margin-bottom: 4px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .htp-toggle-btn {
        top: auto;
        bottom: 70px;
        right: 14px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .htp-modal-box {
        padding: 24px;
        max-height: 85vh;
    }
}
