/* In-app help: "?" FAB toggles hint bubbles anchored to
   [data-help] elements (base.js). The old overlay panel is gone. */

.help-toggle-btn[hidden] {
    display: none;
}

.help-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.help-toggle-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

body.help-mode .help-toggle-btn {
    background-color: var(--warning-color);
}

.help-bubble {
    position: absolute;
    z-index: 9997;
    max-width: 260px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    font-size: 0.82rem;
    line-height: 1.35;
    pointer-events: none;
}

/* Little arrow pointing up at the control the bubble describes. */
.help-bubble::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-color);
}

/* Dim the page a touch so the bubbles pop; controls stay visible. */
body.help-mode::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 9990;
    pointer-events: none;
}
