/* Okénko „hod šipkou“ (bullseye) – používá se na přihlášení i na zápisu zápasu */
.dart-score-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10000;
    animation: dartScoreAppear 0.3s ease-out forwards;
}

.dart-score-notification.fade-out {
    animation: dartScoreFadeOut 0.3s ease-out forwards;
}

@keyframes dartScoreAppear {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes dartScoreFadeOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

.dart-score-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 250px;
}

.dart-score-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: dartScoreSpin 0.5s ease-out;
}

@keyframes dartScoreSpin {
    0% { transform: rotate(0deg) scale(0); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.dart-score-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: dartScoreNumberPop 0.5s ease-out;
}

.dart-score-number.high-score {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: dartScoreNumberPop 0.5s ease-out, dartScoreGlow 1s ease-in-out infinite alternate;
}

@keyframes dartScoreNumberPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dartScoreGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

.dart-score-label {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

.dart-score-label.player-name-red {
    color: #ff6b6b;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

@media (max-width: 575px) {
    .dart-score-content {
        padding: 2rem 2.5rem;
        min-width: 200px;
    }
    
    .dart-score-icon {
        font-size: 2.5rem;
    }
    
    .dart-score-number {
        font-size: 3rem;
    }
    
    .dart-score-label {
        font-size: 1rem;
    }
}

/* Negativní efekt (nízké skóre) */
.dart-score-content.negative {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.dart-score-number.low-score {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: dartScoreNumberPop 0.5s ease-out, dartScoreShake 0.5s ease-in-out;
}

@keyframes dartScoreShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Létající ikony šipek a terčů při skóre nad 160 */
.dart-flying-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.dart-flying-icon {
    position: fixed;
    pointer-events: none;
    opacity: 0.85;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    animation: dartFly linear forwards;
}

.dart-flying-icon i {
    display: block;
}

@keyframes dartFly {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(var(--dart-fly-dx, 50vw), var(--dart-fly-dy, 50vh)) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}
