body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #8bc6ec 0%, #9599e2 100%);
    color: #333;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#game-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 25px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.game-title {
    color: #4a6bdf;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.score-label {
    font-weight: 600;
    margin-right: 5px;
}

#score, #bestScore {
    font-weight: 700;
    color: #4a6bdf;
}

.canvas-container {
    position: relative;
    margin: 0 auto 20px;
    max-width: 450px;
}

#gameCanvas {
    width: 100%;
    border: 5px solid #4a6bdf;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

button {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
}

#playButton, #restart-button {
    background-color: #4a6bdf;
    color: white;
}

#pauseButton {
    background-color: #f5a742;
    color: white;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rule-container {
    background-color: #f0f4ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rule-container h3 {
    margin-top: 0;
    color: #4a6bdf;
}

.badges-container {
    background-color: #f0f4ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badges-container h3 {
    margin-top: 0;
    color: #4a6bdf;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.badge {
    background-color: #e6e6e6;
    border-radius: 10px;
    padding: 10px;
    width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge.unlocked {
    background-color: #4a6bdf;
    color: white;
    opacity: 1;
    box-shadow: 0 4px 10px rgba(74, 107, 223, 0.3);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.badge-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.badge-desc {
    font-size: 0.8rem;
}

#notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background-color: #4a6bdf;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: right 0.5s ease;
    z-index: 1000;
}

#notification.show {
    right: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

#notification-icon {
    font-size: 2rem;
}

#notification-text {
    margin: 0;
    font-weight: 600;
}

#countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 700;
    color: #4a6bdf;
    z-index: 10;
    text-shadow: 0 0 10px white;
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: white;
    z-index: 10;
}

#game-over h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

#game-over p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Punto de score - animación */
.point-animation {
    position: absolute;
    font-weight: bold;
    font-size: 1.5rem;
    animation: pointFadeUp 1s ease-out forwards;
    z-index: 5;
}

.point-positive {
    color: #4CAF50;
}

.point-negative {
    color: #F44336;
}

@keyframes pointFadeUp {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #game-container {
        padding: 15px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .score-container {
        font-size: 1rem;
    }
    
    .badges-grid {
        gap: 10px;
    }
    
    .badge {
        width: 100px;
        padding: 8px;
    }
    
    .badge-icon {
        font-size: 1.5rem;
    }
    
    .badge-desc {
        font-size: 0.7rem;
    }
    
    #countdown {
        font-size: 4rem;
    }
}