/* ── Help button ─────────────────────────────────────────────────────────── */

.help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #8b7355;   /* bronze */
    color: #faf6f0 !important;   /* antique white — overrides global span/div rule */
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(93, 78, 55, 0.25);
    transition: all 0.3s ease;
    margin-left: 8px;
    vertical-align: middle;
    padding: 0;
}

.help-button:hover {
    background-color: #5d4e37;  /* bark */
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(93, 78, 55, 0.35);
}

.help-button:active {
    transform: scale(0.95);
}

/* ── Help / info modal overlay ───────────────────────────────────────────── */

.help-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 78, 55, 0.45);
    backdrop-filter: blur(2px);
}

.help-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e8dcc8;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(93, 78, 55, 0.25);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-modal h3 {
    margin-top: 0;
    color: #5d4e37;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.help-modal p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #8b7355;
}

.help-modal ul {
    margin: 0;
    padding-left: 20px;
}

.help-modal li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #8b7355;
}

/* ── Modal close button ──────────────────────────────────────────────────── */

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #c4a882;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-button:hover {
    color: #5d4e37;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .help-modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
}
