.hint-flash-messages[hidden] {
    display: none;
}

.hint-flash-messages {
    position: fixed;
    top: 88px;
    right: 16px;
    z-index: 3000;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
}

.hint-flash-message {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--fg);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}

.hint-flash-message__text {
    font-size: 13px;
    line-height: 1.35;
}

.hint-flash-message__close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hint-flash-message__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--fg);
}

.hint-flash-message--success {
    border-color: rgba(16, 185, 129, 0.45);
}

.hint-flash-message--error,
.hint-flash-message--danger {
    border-color: rgba(220, 38, 38, 0.5);
}

.hint-flash-message--warning {
    border-color: rgba(245, 158, 11, 0.55);
}

.hint-credits-alert__link {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    color: var(--accent, #f59e0b);
    text-decoration: underline;
}
