body {
    background-color: #202028;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

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

#canvas-container {
    position: relative;
    border: 2px solid #555;
    background: #000;
}

#tetris {
    display: block;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#message {
    font-size: 2rem;
    margin-bottom: 20px;
    display: none;
}

button {
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

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

.stat-box {
    background: #444;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #aaa;
}

#score {
    font-size: 1.5rem;
    font-weight: bold;
}

#next-piece {
    background: #000;
    border: 1px solid #555;
    display: block;
    margin: 0 auto;
}

#controls {
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
}

#controls p {
    margin: 5px 0;
}
