body {
    margin: 0;
    padding: 10px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-container {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.level {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
}

.target-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.target-bounces {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
}

.current-bounces {
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
}

#gameCanvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: #000;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 4/3;
    position: relative;
    z-index: 1;
}

.controls {
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 14px;
    min-width: 100px;
}

.btn:hover {
    transform: scale(1.05);
}

.instructions {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.status {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
}

.success { color: #2ed573; }
.fail { color: #ff4757; }
.playing { color: #74b9ff; }

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .game-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .game-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .target-info {
        justify-content: center;
    }
    
    .level, .target-bounces, .current-bounces {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .instructions {
        font-size: 12px;
    }
    
    .status {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 8px;
    }
    
    .level, .target-bounces, .current-bounces {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .instructions {
        font-size: 11px;
    }
}