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

        body, html {
            width: 100%;
            height: 100%;
            overflow: hidden;
            background: #020208;
            font-family: 'Consolas', 'Courier New', monospace;
            color: #fff;
        }

        /* 📺 Feste Arcade-Bühne: 960×720 ist die Design-Grundlage.
           Auf größeren Displays wird die gesamte Bühne proportional vergrößert. */
        #game-stage {
            --stage-scale: 1;
            position: absolute;
            left: 50%;
            top: 50%;
            width: 960px;
            height: 720px;
            overflow: hidden;
            transform: translate(-50%, -50%) scale(var(--stage-scale));
            transform-origin: center center;
            background: #020208;
        }

        #canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* CRT Arcade Screen Filter */
        .crt::after {
            content: " ";
            display: block;
            position: absolute;
            top: 0; left: 0; bottom: 0; right: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
            z-index: 5;
            background-size: 100% 3px;
            pointer-events: none;
        }

        /* Zurück-Link */
        .back-btn {
            position: absolute;
            top: 14px;
            left: 14px;
            z-index: 30;
            text-decoration: none;
        }

        /* Arcade Game HUD Top Bar */
        #game-ui {
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 14px;
            font-size: 0.88rem;
            color: #00ffcc;
            z-index: 20;
            background: rgba(5, 10, 25, 0.85);
            padding: 6px 14px;
            border-radius: 10px;
            border: 1px solid rgba(0, 255, 204, 0.4);
            box-shadow: 0 0 15px rgba(0, 255, 204, 0.25);
        }

        .hud-stat {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .stat-val {
            color: #ff007f;
            font-weight: bold;
        }

        /* Buttons */
        .hud {
            position: absolute;
            z-index: 15;
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .hud-bottom {
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            flex-wrap: wrap;
            justify-content: center;
        }

        .volume-controls {
            position: absolute;
            left: 12px;
            bottom: 8px;
            z-index: 16;
            display: flex;
            gap: 12px;
            padding: 8px 10px;
            background: rgba(5, 8, 20, 0.86);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 8px;
            color: #8fe9e6;
            font: 10px/1.2 monospace;
            letter-spacing: 0.08em;
        }

        .volume-control {
            display: grid;
            grid-template-columns: auto 72px 24px;
            align-items: center;
            gap: 5px;
        }

        .volume-slider {
            width: 72px;
            height: 22px;
            overflow: visible;
            touch-action: none;
            cursor: pointer;
        }

        .volume-slider .track { stroke: rgba(180, 220, 220, 0.35); stroke-width: 3; }
        .volume-slider .fill { stroke: #00e5c7; stroke-width: 3; }
        .volume-slider .thumb {
            fill: #e6f5ef;
            stroke: #00e5c7;
            stroke-width: 2;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
        }

        .volume-value {
            color: #f3b53f;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        .btn {
            background: rgba(10, 20, 40, 0.65);
            border: 1px solid rgba(0, 255, 255, 0.3);
            color: #00ffff;
            padding: 8px 16px;
            font-family: inherit;
            font-size: 0.82rem;
            letter-spacing: 1.2px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.15s ease;
        }

        .btn:hover {
            background: rgba(0, 255, 255, 0.25);
            border-color: #00ffff;
            color: #fff;
            transform: translateY(-2px);
        }

        .btn.invaders-btn {
            border-color: #00ff66;
            color: #00ff66;
            font-weight: bold;
        }

        .btn.invaders-btn:hover {
            background: rgba(0, 255, 102, 0.3);
            color: #fff;
            border-color: #39ff14;
        }

        #hint {
            position: absolute;
            bottom: 102px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.72rem;
            color: rgba(255, 255, 255, 0.45);
            letter-spacing: 2px;
            z-index: 10;
            pointer-events: none;
            text-align: center;
            transition: opacity 0.2s ease;
        }

        /* Game Over Modal */
        #game-modal {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(10, 12, 30, 0.95);
            border: 2px solid #ff007f;
            padding: 25px 45px;
            border-radius: 16px;
            box-shadow: 0 0 35px rgba(255, 0, 127, 0.5);
            z-index: 50;
            text-align: center;
            display: none;
        }

        #game-modal h2 {
            font-size: 2.2rem;
            color: #ff007f;
            margin-bottom: 12px;
        }

        #game-modal p {
            margin-bottom: 18px;
            font-size: 1rem;
            color: #00ffff;
        }

        /* 📺 Sprachcomputer-Untertitel: komischer Font, jeder Buchstabe verwackelt */
        #speech-caption {
            position: absolute;
            bottom: 132px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 45;
            pointer-events: none;
            font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
            font-weight: 700;
            font-size: 1.25rem;
            letter-spacing: 0.06em;
            white-space: nowrap;
            max-width: 94%;
            overflow: hidden;
            text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 14px rgba(255, 200, 60, 0.5);
            opacity: 0;
            transition: opacity 0.35s ease;
        }

        #speech-caption.show {
            opacity: 1;
            animation: caption-bob 0.45s ease-in-out infinite alternate;
        }

        #speech-caption span {
            display: inline-block;
            transition: transform 0.4s ease;
        }

        @keyframes caption-bob {
            from { margin-bottom: 0; }
            to { margin-bottom: 7px; }
        }

        /* ⏸️ Pause-Overlay: Welt steht, Canvas friert als letztes Bild ein */
        #pause-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(5, 8, 20, 0.82);
            border: 2px solid #00ffff;
            padding: 22px 50px;
            border-radius: 14px;
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
            z-index: 48;
            text-align: center;
            display: none;
        }

        #pause-overlay h2 {
            font-size: 2rem;
            color: #00ffff;
            margin-bottom: 8px;
            letter-spacing: 0.15em;
        }

        #pause-overlay p {
            color: #8a8a8e;
            font-size: 0.85rem;
        }

        /* 🚦 Startscreen: kurzer Countdown, bevor die erste Salve losgeht */
        #start-overlay {
            position: absolute;
            inset: 0;
            z-index: 55;
            display: none;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        #start-overlay.show { display: flex; }

        .start-card {
            min-width: 360px;
            padding: 25px 34px 20px;
            text-align: center;
            color: #e8fff9;
            background: rgba(3, 8, 20, 0.9);
            border: 1px solid rgba(0, 255, 204, 0.65);
            box-shadow: 0 0 26px rgba(0, 255, 204, 0.18), inset 0 0 18px rgba(0, 255, 204, 0.05);
            pointer-events: none;
        }

        .start-kicker {
            margin-bottom: 12px;
            color: #8a8a8e;
            font-size: 0.68rem;
            letter-spacing: 0.22em;
        }

        #start-prompt, #start-warning {
            color: #00ffcc;
            font-size: 1.18rem;
            letter-spacing: 0.12em;
        }

        #start-warning { color: #ffb347; }

        #start-count {
            min-height: 64px;
            margin: 8px 0;
            color: #ff4f9a;
            font-size: 3.4rem;
            font-weight: bold;
            line-height: 1.1;
            text-shadow: 0 0 18px rgba(255, 79, 154, 0.4);
        }

        .difficulty-picker {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin: 10px auto 12px;
            pointer-events: auto;
        }

        .difficulty-picker span {
            min-width: 145px;
            color: #8a8a8e;
            font-size: 0.72rem;
            letter-spacing: 0.1em;
        }

        .difficulty-picker strong { color: #ff007f; }
        .start-card small { color: #737b88; font-size: 0.68rem; }

        @media (max-width: 768px) {
            #game-ui {
                font-size: 0.8rem;
                gap: 10px;
                padding: 5px 12px;
            }
            .btn {
                padding: 5px 10px;
                font-size: 0.72rem;
            }
            .back-btn {
                top: auto;
                bottom: 60px;
                left: 10px;
            }
            .volume-controls {
                left: 8px;
                bottom: 8px;
                gap: 7px;
                padding: 5px 7px;
            }
            .hud-bottom { bottom: 12px; }
            #hint { bottom: 102px; }
            .volume-control { grid-template-columns: auto 74px 25px; gap: 3px; }
            .volume-slider { width: 74px; }
            .start-card { min-width: 0; width: min(92%, 380px); padding: 20px 14px 16px; }
            #start-prompt, #start-warning { font-size: 0.95rem; }
        }
    
