* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-title {
    text-align: center;
    font-size: 2.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.game-container {
    text-align: center;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    border: 2px solid #444;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    cursor: pointer;
    max-width: 100%;
    height: auto;
    width: 800px;
    max-height: 80vh;
}

.controls {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.9;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.controls p {
    margin: 8px 0;
    line-height: 1.4;
}

.controls strong {
    color: #4ecdc4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Estilos para las letras */
.lyrics-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: 'CustomFont', Arial, sans-serif;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* Responsive design */
@media (max-width: 900px) {
    body {
        padding: 10px;
    }
    
    .game-container {
        margin: 0;
    }
    
    .game-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    #gameCanvas {
        max-width: 100%;
        height: auto;
    }
    
    .controls {
        font-size: 11px;
        margin-top: 10px;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 5px;
    }
    
    .game-title {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .controls {
        font-size: 10px;
        margin-top: 8px;
        padding: 10px;
    }
    
    .controls p {
        margin: 6px 0;
    }
}

@media (max-height: 700px) {
    #gameCanvas {
        max-height: 70vh;
    }
    
    .game-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
}

/* Estilos específicos para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .controls {
        background: rgba(0,0,0,0.5);
        border: 2px solid #4ecdc4;
    }
    
    .controls p:last-child {
        color: #4ecdc4;
        font-weight: bold;
        margin-top: 10px;
    }
    
    #gameCanvas {
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
}
