/* Bulle de notification */

.notify {
    --n: var(--hc);
    position: fixed;
    z-index: 60;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--n) 50%, transparent);
    background: color-mix(in srgb, var(--n) 12%, var(--bg-2));
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75);
    color: var(--text);
    animation: notify-in 0.35s var(--ease);
    gap: 16px;
    max-width: min(500px, calc(100vw - 32px));
    padding: 18px 16px 18px 20px;
    border-radius: 16px;
}

.notify.is-hp {
    --n: var(--hp);
}

.notify.is-peak {
    --n: var(--peak);
}

.notify-dot {
    flex: none;
    border-radius: 50%;
    background: var(--n);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--n) 22%, transparent);
    width: 18px;
    height: 18px;
}

.notify-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.notify-text strong {
    font-weight: 650;
    font-size: 1.12rem;
}

.notify-text span {
    color: var(--text-2);
    font-size: 0.9rem;
}

.notify-close {
    flex: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.notify-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

@keyframes notify-in {
    from { opacity: 0; transform: translateY(12px); }
}

.notify.is-base {
    --n: var(--blue);
}

@media (max-width: 480px) {
    .notify {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
