@keyframes score-toast-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.score-toast {
    position: fixed;
    top: 110px;
    left: 24px;
    z-index: 200;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 14px 18px;
    min-width: 220px;
    max-width: 280px;
    transform: translateX(calc(-100% - 48px));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.score-toast.visible {
    transform: translateX(0);
}

.score-toast__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.score-toast__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
    animation: score-toast-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.score-toast__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.06em;
}

.score-toast__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.score-toast__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.score-toast__nickname {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-toast__game {
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-toast__score {
    flex-shrink: 0;
    background: linear-gradient(to bottom right, #ff637f, #f32e64);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 10px 0 rgb(243 46 100 / .3);
    white-space: nowrap;
}

body.headerpadding-sh .score-toast {top: 180px;}

@media (max-width: 765px) {
    .score-toast {top: 70px;left: 16px;max-width: calc(100vw - 32px);}
    body.headerpadding-sh .score-toast {top: 120px;}
}
