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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#gameContainer {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    pointer-events: none;
}

#scoreDisplay {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

#powerMeter {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 30px;
    background: rgba(0,0,0,0.3);
    border: 3px solid #fff;
    border-radius: 15px;
    overflow: hidden;
    display: none;
}

#powerBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #4CAF50, #FFEB3B, #FF5722);
    transition: width 0.1s ease;
}

#startButton, #restartButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    pointer-events: all;
    transition: all 0.3s ease;
}

#startButton:hover, #restartButton:hover {
    background: #45a049;
    transform: translate(-50%, -50%) scale(1.05);
}

#startButton:active, #restartButton:active {
    transform: translate(-50%, -50%) scale(0.95);
}