#help-button {
    position: fixed;
    top: 3rem;
    left: 3rem;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: rgba(221, 220, 220, 0.6);
    font-size: 2rem;
    cursor: pointer;
    text-align: center;
    z-index: 1001;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#help-button:hover {
    background: rgba(44, 44, 44, 0.3);
    color: rgba(231, 231, 231, 0.6);
}

#help-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    max-width: 650px;
    background: rgba(0, 0, 0, 0.91);
    border: 2px solid rgba(56, 5, 5, 0.37);
    border-radius: 0.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
    z-index: 1002;
    opacity: 0;
    transform-origin: top left;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

#help-tooltip.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

#close-tooltip {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(221, 220, 220, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
}

#close-tooltip:hover {
    color: rgb(221, 220, 220);
}

#disclaimer {
    list-style: none;
    font-size: 1rem;
    margin-top: 1.5rem;
    text-shadow: rgba(0, 0, 0, 0.48) 2px 1px;
    text-align: center;
    color: var(--title-color);
}

.tooltip-content, .tooltip-title, .tooltip-content li {
    color: rgb(204, 204, 204);
    font-family: "Times New Roman", serif;
    font-size: 1.65rem;
}

.tooltip-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tooltip-content p {
    margin-bottom: 1rem;
}

.tooltip-content li {
    margin-bottom: 0.75rem;
}

.tooltip-content li span {
    font-family: serif;
    color: #bd2222;
}

#help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#help-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

@media screen and (max-width: 600px) {
    #help-button {
        top: 1rem;
        left: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    #help-tooltip {
        width: 85%;
        padding: 1.5rem;
    }

    .tooltip-content, .tooltip-content li {
        font-size: 1.1rem;
        margin: 0.4rem;
    }

    .tooltip-title {
        font-size: 1.6rem;
    }

    #close-tooltip {
        font-size: 2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    #disclaimer {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
    #help-button {
        top: 0.75rem;
        left: 0.75rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.3rem;
    }

    #help-tooltip {
        width: 80%;
        max-width: 500px;
        padding: 1.25rem;
    }

    .tooltip-content, .tooltip-content li {
        font-size: 0.9rem;
        margin: 0.3rem;
    }

    .tooltip-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    #close-tooltip {
        font-size: 1.75rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    #disclaimer {
        font-size: 0.7rem;
    }
}