body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffafbd, #c9ffee);
    font-family: 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
}

.game-container {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    width: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#tetris {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
}

.score-container {
    font-size: 24px;
    color: #444;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.control-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.control-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.control-btn:active {
    transform: scale(0.95);
}

.pause-btn.paused {
    background: linear-gradient(45deg, #4A90E2, #67B26F);
}

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

.start-btn {
    font-size: 24px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #4A90E2, #67B26F);
}

.touch-controls {
    margin-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
}

.touch-row {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 0 10px;
}

.touch-row .control-btn {
    flex: 1;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    min-width: 60px;
}

.touch-row .control-btn:last-child {
    background: linear-gradient(45deg, #4A90E2, #67B26F);
}

@media (max-width: 430px) {
    .game-container {
        width: 100%;
        padding: 10px;
        border-radius: 0;
    }
    
    #tetris {
        width: 300px;
        height: 600px;
    }
}