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

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

.game-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 150px;
}

.side-panel h3 {
    font-size: 14px;
    color: #00d4ff;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 2px;
}

.hold-box,
.next-box,
.score-box,
.level-box,
.lines-box,
.controls-info {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #00d4ff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.hold-box canvas,
.next-box canvas {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.score-box p,
.level-box p,
.lines-box p {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px #00d4ff;
}

.controls-info {
    font-size: 11px;
    text-align: left;
}

.controls-info p {
    margin: 5px 0;
    color: #aaa;
}

.controls-info .key {
    display: inline-block;
    background: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    margin-right: 5px;
    min-width: 45px;
    text-align: center;
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.main-board {
    position: relative;
}

#gameCanvas {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #00d4ff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    font-size: 36px;
    color: #ff4757;
    text-shadow: 0 0 20px #ff4757;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

#pauseOverlay h2 {
    color: #00d4ff;
    text-shadow: 0 0 20px #00d4ff;
}

.overlay p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ccc;
}

.overlay button {
    padding: 12px 30px;
    font-size: 16px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.overlay button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

#gameCanvas {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }

    .side-panel {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .side-panel.left {
        order: 2;
    }

    .main-board {
        order: 1;
    }

    .side-panel.right {
        order: 3;
    }

    .controls-info {
        display: none;
    }
}
