.help-trigger
{
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #b0b5c1;
    font: inherit;
    line-height: 1.6;
    cursor: pointer;
    transition: color 160ms ease;
}

.help-trigger:hover
{
    color: #ffffff;
}

.help-modal-open
{
    overflow: hidden;
}

.help-dialog
{
    width: min(400px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100vh - 48px);
    max-height: calc(100svh - 48px);
    margin: auto;
    padding: 28px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #32353c;
    border-radius: 10px;
    background: #1b1d21;
    color: #f4f5f7;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font: inherit;
    text-align: left;
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    transition: opacity 220ms ease, transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.help-dialog::backdrop
{
    background: rgba(10, 11, 15, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(0.7);
    backdrop-filter: blur(14px) saturate(0.7);
    opacity: 0;
    transition: opacity 240ms ease;
}

.help-dialog.is-open
{
    opacity: 1;
    transform: translateY(0) scale(1);
}

.help-dialog.is-open::backdrop
{
    opacity: 1;
}

.help-dialog h2
{
    margin: 0 0 14px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

.help-dialog p
{
    margin: 0;
    color: #b0b5c1;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.help-dialog-done
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #5865f2;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.help-dialog-done svg
{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.help-dialog-done:hover
{
    background: #4752c4;
}

.help-dialog-done:active
{
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce)
{
    .help-dialog,
    .help-dialog::backdrop,
    .help-dialog-done
    {
        transition: none;
        transform: none;
    }
}
