body {
    margin: 0;
    padding: 0;
    background-color: #1a1a2e;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border-radius: 8px;
}

/* Mobile controls overlay */
#mobile-controls {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    /* Let clicks pass through to game canvas if needed, but buttons need events */
    z-index: 10;
}

.control-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    user-select: none;
    touch-action: manipulation;
}

.control-btn:active {
    background: rgba(255, 255, 255, 0.4);
}

#btn-left {
    bottom: 20px;
    left: 20px;
}

#btn-right {
    bottom: 20px;
    left: 100px;
}

#btn-down {
    bottom: 20px;
    right: 100px;
}

#btn-rotate {
    bottom: 20px;
    right: 20px;
}

#btn-drop {
    bottom: 90px;
    right: 60px;
    width: 50px;
    height: 50px;
    font-size: 18px;
}

@media (max-width: 768px) {
    #mobile-controls {
        display: block;
    }
}