* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-box {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.game-container {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

#gameCanvas {
    border: 4px solid #333;
    border-radius: 15px;
    background: linear-gradient(180deg, #87CEEB 0%, #98FB98 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    cursor: crosshair;
}

.aim-line {
    position: absolute;
    background: rgba(255,255,255,0.7);
    height: 2px;
    transform-origin: center bottom;
    pointer-events: none;
    display: none;
}

.next-bubble {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.bubble-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-top: 5px;
    border: 2px solid #333;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(45deg, #FF5722, #E64A19);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

.powerups {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.powerup-item {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.game-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 2em;
    font-weight: bold;
    display: none;
    z-index: 1000;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-wrapper {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .game-info {
        gap: 10px;
    }
    
    .info-box {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}