/* Estilos específicos de Tetris */

.game-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 200px;
}

.info-panel,
.next-piece-panel,
.game-controls-panel {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.info-panel h3,
.next-piece-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#score {
    color: var(--primary-color);
}

#level {
    color: #10b981;
}

.next-piece-panel {
    text-align: center;
}

#next-canvas {
    background: var(--background);
    border: 2px solid var(--surface-light);
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.game-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.game-board-container {
    position: relative;
}

#game-canvas {
    background: #000;
    border: 4px solid var(--surface-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: block;
}

.game-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    display: none;
    z-index: 10;
}

.game-status.show {
    display: block;
}

.game-status.win {
    border: 2px solid var(--success);
}

.game-status.lose {
    border: 2px solid var(--danger);
}

.controls-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 100%;
        max-width: 400px;
    }

    .game-controls-panel {
        flex-direction: row;
        justify-content: center;
    }

    #game-canvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

