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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

h1 {
    color: #fff;
    text-align: center;
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

.info-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item label {
    display: block;
    color: #b0b0ff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-item div {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.next-piece {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.next-piece label {
    display: block;
    color: #b0b0ff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#nextCanvas {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    width: 100%;
    height: auto;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instructions h3 {
    color: #b0b0ff;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.instructions p {
    color: #e0e0ff;
    font-size: 12px;
    margin: 5px 0;
    font-family: 'Courier New', monospace;
}

.game-board {
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    background: #000;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    image-rendering: pixelated;
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        gap: 20px;
    }

    h1 {
        font-size: 36px;
    }

    .game-info {
        min-width: auto;
    }
}
