/* How-to de taller y sala (botón ? en top bar + overlay con spotlight) */

.session-howto-fab {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--rtp-topbar-menu-border, var(--rtp-border));
    background: var(--rtp-topbar-chip-bg, var(--rtp-bg-panel));
    color: var(--rtp-topbar-chip-text, var(--rtp-brand-text));
    font-family: var(--rtp-font-brand);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--rtp-shadow-soft);
    transition: var(--rtp-transition-ui);
}

.session-howto-fab:hover,
.session-howto-fab:focus-visible {
    border-color: var(--rtp-brand-primary);
    color: var(--rtp-brand-primary);
    outline: none;
}

.session-howto-overlay {
    position: fixed;
    inset: 0;
    z-index: 19000;
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.58);
}

.session-howto-overlay.hidden,
.session-howto-overlay[hidden] {
    display: none !important;
}

.session-howto-overlay.is-spot {
    background: transparent;
}

/* Con el how-to abierto, los menús que el tour despliega no animan: el recorte se mide quieto. */
body.session-howto-open #coach-menu-content,
body.session-howto-open #topbar-players-menu {
    transition: none !important;
}

.session-howto-spot {
    position: fixed;
    z-index: 19001;
    border-radius: 12px;
    pointer-events: none;
    box-sizing: border-box;
}

.session-howto-spot.is-on {
    box-shadow:
        0 0 0 2px var(--rtp-brand-primary),
        0 0 0 9999px rgba(15, 23, 42, 0.72);
}

.session-howto-modal {
    position: fixed;
    z-index: 19002;
    width: min(22.5rem, calc(100vw - 20px));
    margin: 0;
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--rtp-border);
    background: var(--rtp-bg-panel);
    color: var(--rtp-brand-text);
    box-shadow: var(--rtp-shadow-soft);
    max-height: min(70vh, 480px);
    overflow-y: auto;
    pointer-events: auto;
}

.session-howto-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--rtp-brand-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.session-howto-close:hover,
.session-howto-close:focus-visible {
    color: var(--rtp-brand-text);
    outline: none;
}

.session-howto-kicker {
    margin: 0 2rem 0.35rem 0;
    font-family: var(--rtp-font-brand);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rtp-brand-primary);
}

.session-howto-title {
    margin: 0 2rem 0.45rem 0;
    font-family: var(--rtp-font-brand);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rtp-brand-text);
}

.session-howto-lead {
    margin: 0 0 0.9rem;
    font-family: var(--rtp-font-ui);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--rtp-brand-muted);
}

.session-howto-step-of {
    margin: 0 0 0.35rem;
    font-family: var(--rtp-font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rtp-brand-muted);
}

.session-howto-step-title {
    margin: 0 0 0.4rem;
    font-family: var(--rtp-font-brand);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rtp-brand-text);
}

.session-howto-step-body {
    margin: 0 0 0.95rem;
    font-family: var(--rtp-font-ui);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--rtp-brand-text);
}

.session-howto-dots {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1rem;
}

.session-howto-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--rtp-slate-700);
    cursor: pointer;
}

.session-howto-dot.is-active {
    background: var(--rtp-brand-primary);
}

.session-howto-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.session-howto-btn {
    appearance: none;
    border-radius: 0.375rem;
    padding: 0.45rem 0.85rem;
    font-family: var(--rtp-font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.session-howto-btn--ghost {
    border: 1px solid var(--rtp-border);
    background: transparent;
    color: var(--rtp-brand-muted);
}

.session-howto-btn--primary {
    border: 0;
    background: var(--rtp-brand-primary);
    color: var(--rtp-on-primary);
}

.session-howto-btn--primary:hover,
.session-howto-btn--ghost:hover {
    filter: brightness(1.08);
}

html:fullscreen .session-howto-overlay,
html:-webkit-full-screen .session-howto-overlay {
    z-index: 2147483645;
}

html:fullscreen .session-howto-spot,
html:-webkit-full-screen .session-howto-spot {
    z-index: 2147483646;
}

html:fullscreen .session-howto-modal,
html:-webkit-full-screen .session-howto-modal {
    z-index: 2147483647;
}
