/* Módulo de Input de Score (Modular) */
.score-modal-overlay {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark semi-transparent background */
    backdrop-filter: blur(8px);
    /* Effect blur */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    user-select: none;
}

.score-modal-content {
    background: #1e1e1e;
    /* Dark theme */
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    /* Neon subtle border */
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.score-modal-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.score-value {
    font-size: 3rem;
    color: #f1c40f;
    /* Gold for score */
    margin-bottom: 30px;
    display: block;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.score-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.score-input {
    background: #2c2c2c;
    border: 2px solid #555;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
    width: 80px;
    border-radius: 8px;
    outline: none;
    text-transform: uppercase;
    transition: all 0.2s;
}

.score-input:focus {
    border-color: #00e6e6;
    /* Neon Cyan */
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.3);
}

.score-submit-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #1e1e1e;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.score-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 206, 201, 0.4);
    filter: brightness(1.1);
}

.score-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 25px;
    /* Space below button */
    transition: all 0.2s;
    display: inline-block;
}

.score-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.score-error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    height: 1.2em;
    /* Reserve space */
    margin-top: 10px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
}

.score-error-msg.visible {
    opacity: 1;
}