/* ============================================================
   INNOBOT DEFENDER - ESTILO PRO
   Paleta de colores Innology Services
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: #0B090A;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    padding: 16px;
}

.game-wrapper {
    background: #161A1D;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), inset 0 0 30px rgba(186,24,27,0.1);
    border: 2px solid #B1A7A6;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 16px;
    background: rgba(11,9,10,0.8);
    border-radius: 16px;
    border: 1px solid #B1A7A6;
    color: #F5F3F4;
    font-size: 0.7rem;
    flex-wrap: wrap;
    gap: 8px;
}

.score-box, .lives-box, .level-box {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #D3D3D3;
}

.score-value, .level-value {
    color: #F5F3F4;
    font-size: 1.2rem;
}

.lives-box {
    color: #E5383B;
    font-size: 1.2rem;
}

.canvas-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

#board {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #0B090A;
    touch-action: none;
    cursor: pointer;
    border-radius: 16px;
    border: 2px solid #B1A7A6;
}

/* ===== OVERLAYS ===== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(11,9,10,0.92);
    backdrop-filter: blur(4px);
    color: #F5F3F4;
    z-index: 20;
    padding: 20px;
    border-radius: 16px;
    font-family: 'Press Start 2P', monospace;
}

.overlay h1 {
    font-size: 2.2rem;
    color: #BA181B;
    text-shadow: 0 0 40px rgba(186,24,27,0.5);
    margin-bottom: 8px;
}

.overlay p {
    color: #D3D3D3;
    font-size: 0.8rem;
    margin: 10px 0 20px;
}

.overlay .btn {
    background: #BA181B;
    border: 2px solid #B1A7A6;
    padding: 14px 40px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    color: #F5F3F4;
    cursor: pointer;
    transition: 0.3s;
    margin: 6px;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(186,24,27,0.4);
}

.overlay .btn:hover {
    transform: scale(1.05);
    background: #E5383B;
    box-shadow: 0 8px 30px rgba(186,24,27,0.7);
}

.overlay .btn-secondary {
    background: #B1A7A6;
    color: #0B090A;
    border: 2px solid #161A1D;
    box-shadow: none;
}

.controls-info-mobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    color: #B1A7A6;
    font-size: 0.5rem;
    text-align: center;
}

.controls-bar {
    display: none;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
    background: rgba(11,9,10,0.8);
    border-radius: 0 0 16px 16px;
    border: 1px solid #B1A7A6;
    border-top: none;
    margin-top: -2px;
}

.btn-control {
    background: #BA181B;
    border: 2px solid #B1A7A6;
    border-radius: 30px;
    padding: 10px 24px;
    color: #F5F3F4;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(186,24,27,0.3);
}

.btn-control:hover {
    background: #E5383B;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(186,24,27,0.5);
}

@media (max-width: 600px) {
    .game-wrapper { padding: 12px; }
    .game-header { flex-direction: column; align-items: center; gap: 6px; font-size: 0.6rem; }
    .overlay h1 { font-size: 1.6rem; }
    .overlay .btn { padding: 10px 20px; font-size: 0.7rem; min-width: 120px; }
    .btn-control { font-size: 0.5rem; padding: 6px 14px; }
}