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

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

#game-container {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1000;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    pointer-events: auto;
}

.score {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#pause-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

#pause-btn:hover {
    transform: scale(1.1);
}

#pause-btn:active {
    transform: scale(0.95);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .top-bar {
        padding: 15px;
    }
    
    .score {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    #pause-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}
