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

@keyframes winOddsOut {
    0% {
        opacity: 1;
        transform: translateY(0);
        max-height: 120px;
    }
    100% {
        opacity: 0;
        transform: translateY(16px);
        max-height: 0;
        margin-top: -10px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@keyframes winOddsTick {
    from { width: 100%; }
    to { width: 0%; }
}

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

.win-notification {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 36px 14px 12px;
    background: linear-gradient(120deg, #111c2e 0%, #18263c 100%);
    border: 1px solid rgba(0, 150, 255, .3);
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    min-width: 290px;
    max-width: 340px;
    pointer-events: auto;
    opacity: 0;
    overflow: hidden;
    animation: winOddsIn .4s cubic-bezier(.22, 1.1, .36, 1) forwards;
}

.win-notification.hiding {
    animation: winOddsOut .3s ease forwards;
}

.win-notification__tick {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #0096ff, #1ecb7a);
    animation: winOddsTick 4s linear forwards;
}

.win-notification__coef {
    position: absolute;
    top: 8px;
    right: 34px;
    font-size: 10px;
    font-weight: 900;
    color: var(--ol-up, #1ecb7a);
    background: rgba(30, 203, 122, .12);
    border: 1px solid rgba(30, 203, 122, .35);
    padding: 2px 6px;
    border-radius: 2px;
    font-variant-numeric: tabular-nums;
}

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

.win-avatar {
    width: 44px;
    height: 44px;
    border-radius: 3px;
    object-fit: cover;
    border: 2px solid rgba(0, 150, 255, .4);
    flex-shrink: 0;
}

.win-link:hover .win-avatar {
    border-color: var(--ol-blue-bright, #33adff);
}

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

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

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

.win-amount {
    color: var(--ol-up, #1ecb7a);
    font-weight: 900;
    font-size: 14px;
}

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

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

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

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

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

    .win-avatar { width: 40px; height: 40px; }
    .win-text { font-size: 12px; }
}
