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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 1200px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    font-size: 3em;
    color: #4facfe;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
}

.game-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
}

.info-panel {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-panel h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-panel .score,
.info-panel .level,
.info-panel .lines {
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#nextCanvas {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.controls-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #4facfe;
}

.controls-info h2 {
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.controls-info ul {
    list-style: none;
    color: #333;
}

.controls-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}

.controls-info li:last-child {
    border-bottom: none;
}

.btn-start,
.btn-reset {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-start:hover,
.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.btn-start:active,
.btn-reset:active {
    transform: translateY(0);
}

.game-board-wrapper {
    position: relative;
    background: #1a1a2e;
    border-radius: 15px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#gameBoard {
    display: block;
    background: #0f0f1e;
    border: 3px solid #4facfe;
    border-radius: 10px;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    display: none;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-over.show {
    display: block;
}

.game-over h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.game-over p {
    font-size: 1.5em;
    color: #fff;
}

.game-over span {
    color: #ffd93d;
    font-weight: bold;
}

@media (max-width: 768px) {
    .game-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        width: 100%;
        max-width: 300px;
    }
    
    #gameBoard {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

