@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

        body {
            margin: 0;
            padding: 0;
            background-color: #202028;
            overflow: hidden;
            font-family: 'Press Start 2P', cursive;
            user-select: none;
            -webkit-user-select: none;
        }

        #game-container {
            position: relative;
            width: 100vw;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        canvas {
            background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
        }

        /* UI Layer */
        #ui-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .hud-panel {
            padding: 15px;
            display: flex;
            justify-content: space-between;
            color: #fff;
            text-shadow: 2px 2px 0 #000;
            font-size: 12px;
            pointer-events: none;
        }

        .controls {
            padding: 10px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            align-items: center;
            pointer-events: auto;
            border-top: 2px solid #555;
        }

        .control-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 100px;
        }

        label {
            color: #ddd;
            font-size: 10px;
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        input[type="range"] {
            width: 120px;
            height: 15px;
            accent-color: #e74c3c;
            cursor: pointer;
        }

        button#fire-btn {
            background: #e74c3c;
            border: 4px solid #c0392b;
            color: white;
            font-family: 'Press Start 2P', cursive;
            font-size: 16px;
            padding: 15px 30px;
            cursor: pointer;
            transition: transform 0.1s;
            border-radius: 8px;
            box-shadow: 0 6px 0 #962d22;
        }

        button#fire-btn:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #962d22;
        }

        button#fire-btn:disabled {
            background: #7f8c8d;
            border-color: #555;
            box-shadow: none;
            cursor: not-allowed;
            transform: translateY(4px);
        }

        #message-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 10;
        }

        #message-text {
            font-size: 40px;
            color: #f1c40f;
            text-shadow: 4px 4px 0 #d35400, -2px -2px 0 #000;
            margin-bottom: 20px;
        }

        #restart-btn {
            pointer-events: auto;
            background: #2ecc71;
            border: 4px solid #27ae60;
            color: white;
            font-family: 'Press Start 2P', cursive;
            padding: 15px;
            cursor: pointer;
            display: none; 
            box-shadow: 0 6px 0 #1e8449;
        }
        
        #restart-btn:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #1e8449;
        }

        .stat-box {
            background: rgba(0,0,0,0.5);
            padding: 8px;
            border-radius: 4px;
            border: 2px solid #fff;
        }

        .wind-arrow {
            display: inline-block;
            transition: transform 0.5s;
        }

        /* Mobile adjustments */
        @media (max-width: 600px) {
            .controls { gap: 5px; padding: 5px; }
            input[type="range"] { width: 80px; }
            button#fire-btn { padding: 10px 15px; font-size: 12px; }
            .hud-panel { font-size: 10px; padding: 8px; }
        }
