* {
    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-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;
    width: 640px;
    height: 480px;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.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;
    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;
    }
}

/* Media query para orientación landscape en móviles */
@media screen and (orientation: landscape) and (max-height: 600px) {
    body {
        padding: 5px;
        min-height: 100vh;
    }
    
    .game-container {
        padding: 10px;
    }
    
    #gameCanvas {
        width: auto;
        height: 85vh;
        max-width: 90vw;
        max-height: 85vh;
    }
}

/* 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;
    }
}
