@keyframes notifyRise {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notifyDrop {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 100px;
    }
    100% {
        opacity: 0;
        transform: translateY(16px) scale(.92);
        max-height: 0;
        margin-bottom: -10px;
        padding: 0;
    }
}

@keyframes notifyRing {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 100; }
}

@keyframes notifyAmountPulse {
    0%, 100% { color: #00c2ff; }
    50% { color: #00b24b; }
}

#win-notifications-container {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
}

.win-notification {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 12px;
    background: var(--1w-surface, #141b2d);
    border: 1px solid rgba(0, 150, 255, .25);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45),
                0 0 24px rgba(0, 150, 255, .08);
    min-width: 300px;
    max-width: 340px;
    pointer-events: auto;
    opacity: 0;
    overflow: hidden;
    animation: notifyRise .5s cubic-bezier(.22, 1.2, .36, 1) forwards;
}

.win-notification.hiding {
    animation: notifyDrop .35s ease forwards;
}

.win-notification__timer {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.win-notification__timer svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.win-notification__timer circle {
    fill: none;
    stroke-width: 2.5;
}

.win-notification__timer .ring-bg {
    stroke: rgba(255, 255, 255, .1);
}

.win-notification__timer .ring-fg {
    stroke: var(--1w-cyan, #00c2ff);
    stroke-dasharray: 100;
    animation: notifyRing 4s linear forwards;
}

.win-notification__tag {
    position: absolute;
    top: 0;
    left: 12px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--1w-cyan, #00c2ff);
    background: rgba(0, 150, 255, .15);
    padding: 2px 8px;
    border-radius: 0 0 6px 6px;
}

.win-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    padding-top: 8px;
    padding-right: 24px;
}

.win-link:hover .win-amount {
    animation: notifyAmountPulse 1s ease infinite;
}

.win-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(0, 150, 255, .4);
    flex-shrink: 0;
    transition: border-color .2s, transform .2s;
}

.win-link:hover .win-avatar {
    border-color: var(--1w-cyan, #00c2ff);
    transform: scale(1.04);
}

.win-content { flex: 1; min-width: 0; }

.win-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    line-height: 1.35;
    margin-bottom: 2px;
}

.win-name {
    color: #fff;
    font-weight: 700;
}

.win-amount {
    color: var(--1w-cyan, #00c2ff);
    font-weight: 800;
    font-size: 14px;
}

.win-game {
    font-size: 10px;
    color: var(--1w-text-muted, #8b9cb3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.win-close {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .35);
    font-size: 16px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .2s;
    z-index: 2;
}

.win-close:hover { color: #fff; }

@media (max-width: 768px) {
    #win-notifications-container {
        left: 10px;
        right: 10px;
        bottom: 90px;
        max-width: none;
    }

    .win-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .win-avatar { width: 38px; height: 38px; }
    .win-text { font-size: 12px; }
    .win-amount { font-size: 13px; }
}
