/* ===== GAME OVER SCREEN - MODERN MOBILE DESIGN ===== */
.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-over.show {
    display: flex;
    animation: curtainFall 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(118,75,162,0.95));
    backdrop-filter: blur(10px);
}

.game-over-modal {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(20px);
    padding: 0;
    width: 100%;
    overflow: hidden;
    transform: translateY(-100vh) scale(1.1);
    animation: modalCurtainFall 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.game-over-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, rgba(255,107,107,0.2), rgba(238,90,36,0.1));
}

.game-over-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: iconBounce 0.8s ease 0.5s both;
}

.game-over-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin: 0 0 10px 0;
    animation: titleGlow 0.8s ease 0.7s both;
}

.game-over-subtitle {
    font-size: 1.1em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
    animation: subtitleFade 0.6s ease 0.9s both;
}

.final-score-section {
    padding: 30px;
    text-align: center;
}

.score-card {
    background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(238,90,36,0.1));
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,107,107,0.3);
    animation: scoreCardSlide 0.8s ease 1.1s both;
}

.score-label {
    font-size: 0.9em;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.score-number {
    font-size: 3.5em;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0,255,136,0.5);
    line-height: 1;
    margin-bottom: 15px;
    animation: scoreCountUp 1s ease 1.3s both;
}

.score-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.star {
    font-size: 2em;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.star.active {
    opacity: 1;
    filter: grayscale(0%);
    animation: starPop 0.5s ease both;
}

.game-over-actions {
    padding: 20px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: buttonSlideUp 0.6s ease both;
}

.primary-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 8px 20px rgba(255,107,107,0.4);
    animation-delay: 1.5s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255,107,107,0.6);
}

.secondary-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.3);
    animation-delay: 1.7s;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
}

.btn-icon {
    font-size: 1.2em;
}

.btn-text {
    font-size: 1em;
}