/* Score Notification Popup Styling */

.score-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 3px solid #00d9ff;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
    min-width: 500px;
    max-width: 800px;
    width: auto;
    text-align: center;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Orbitron', sans-serif;
    max-height: 85vh;
    overflow-y: auto;
}

.score-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.score-notification.dethroned {
    border-color: #ffd700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #2a1a00 0%, #3a2a00 100%);
}

.score-notification.new-score {
    border-color: #00d9ff;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

.score-notification-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px currentColor;
}

.score-notification.dethroned .score-notification-title {
    font-size: 3rem;
    color: #ffd700;
    animation: pulse-gold 2s ease-in-out infinite;
}

.score-notification.new-score .score-notification-title {
    font-size: 2.5rem;
    color: #00d9ff;
}

.score-notification-content {
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 1.6;
    margin-top: 10px;
}

.score-notification-content strong {
    color: #00d9ff;
    font-weight: 700;
}

.score-notification.dethroned .score-notification-content strong {
    color: #ffd700;
}

/* Score table styling within notification */
.notification-score-table {
    margin-top: 20px;
    width: 100%;
}

.notification-score-table .hs_table {
    width: 100%;
    margin: 0 auto;
    background: #14285e;
    border: 2px solid #bb78ff;
    border-radius: 8px;
    font-family: 'Press Start 2P', monospace, 'Courier New', monospace;
    font-size: 0.9rem;
}

.notification-score-table .hs_table caption {
    background: #14285e;
    color: #20ff02;
    font-weight: bold;
    font-size: 2.5rem;
    padding: 12px;
    border-bottom: 2px solid #bb78ff;
    text-shadow: 0 0 4px #7ea8ff99, 0 0 6px #ff787899;
}

.notification-score-table .hs_table thead {
    background: #14285e;
}

.notification-score-table .hs_table thead th {
    color: #20ff02;
    padding: 10px;
    border-bottom: 2px solid #bb78ff;
    text-align: center;
}

.notification-score-table .hs_table tbody tr {
    border-bottom: 1px solid #bb78ff66;
}

.notification-score-table .hs_table tbody tr:nth-child(even) {
    background: rgba(187, 120, 255, 0.1);
}

.notification-score-table .hs_table tbody td {
    color: #20ff02;
    padding: 8px;
    text-align: center;
}

.notification-score-table .hs_table tbody tr:first-child td {
    font-weight: bold;
    font-size: 1.1em;
    color: #ffd700;
    text-shadow: 0 0 8px #ffd700;
}

@keyframes pulse-gold {
    0%, 100% {
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    }
    50% {
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700, 0 0 40px #ffd700;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .score-notification {
        min-width: 90%;
        max-width: 95%;
        padding: 15px 20px;
        top: 10px;
    }
    
    .score-notification-title {
        font-size: 2rem;
    }
    
    .score-notification.dethroned .score-notification-title {
        font-size: 2.5rem;
    }
    
    .score-notification.new-score .score-notification-title {
        font-size: 2rem;
    }
    
    .score-notification-content {
        font-size: 1.2rem;
    }

    .notification-score-table .hs_table {
        font-size: 0.7rem;
    }

    .notification-score-table .hs_table caption {
        font-size: 1.8rem;
        padding: 10px;
    }

    .notification-score-table .hs_table thead th,
    .notification-score-table .hs_table tbody td {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .score-notification {
        padding: 12px 15px;
    }
    
    .score-notification-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .score-notification.dethroned .score-notification-title {
        font-size: 2.2rem;
    }
    
    .score-notification.new-score .score-notification-title {
        font-size: 1.8rem;
    }
    
    .score-notification-content {
        font-size: 1.1rem;
    }

    .notification-score-table .hs_table caption {
        font-size: 1.5rem;
        padding: 8px;
    }
}
