/*! © 2026 LogosVox. All rights reserved. Copying, modifying or redistributing this code is not permitted. https://games.logosvox.com/terms */

        /* The shared top bar (lv-shell) floats over the canvas: what sat at the top moves below it. */
        #hud-top-right { top: calc(var(--lv-shell-h, 0px) + 12px) !important; }
    

        body { margin: 0; overflow: hidden; background-color: #050505; font-family: 'Segoe UI', Roboto, sans-serif; user-select: none; }
        
        /* UI Design */
        #ui-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 400px;
            padding: 30px;
            border-radius: 16px;
            background: rgba(20, 20, 20, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 60px rgba(0, 0, 0, 1);
            color: #e0e0e0;
            z-index: 100;
            text-align: center;
            display: none;
        }

        h2 { margin: 0 0 20px 0; font-weight: 800; letter-spacing: 2px; font-size: 2rem; text-transform: uppercase; color: #ff4444; text-shadow: 0 0 15px rgba(255,0,0,0.6); }
        h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin: 15px 0 10px; opacity: 0.7; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }

        .control-group { margin-bottom: 15px; text-align: left; }
        label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; font-weight: 600; color: #ccc; }
        
        input[type=range] { 
            width: 100%; appearance: none; background: rgba(255,255,255,0.15); height: 6px; border-radius: 3px; outline: none; cursor: pointer;
        }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none; width: 18px; height: 18px; background: #ffaa00; border-radius: 50%; transition: transform 0.1s; border: 2px solid #1a1a1a;
        }
        input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }

        .btn-full { width: 100%; margin-top: 10px; }
        
        button {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #ddd;
            padding: 14px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
        }
        button:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
        button.primary { background: #ffaa00; color: #1a0a0a; border: none; }
        button.primary:hover { background: #ffbb33; transform: scale(1.02); }

        /* HUD Elements */
        #hud-top-right {
            position: absolute; top: 20px; right: 20px;
            display: flex; flex-direction: column; align-items: flex-end;
            pointer-events: none;
        }

        #minimap-container {
            width: 160px; height: 160px;
            border-radius: 50%;
            border: 3px solid rgba(255,255,255,0.15);
            background: rgba(0,0,0,0.6);
            overflow: hidden;
            margin-bottom: 10px;
            backdrop-filter: blur(8px);
            position: relative;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
        }
        #minimap { width: 100%; height: 100%; }

        #score-box {
            font-size: 1.8rem; font-weight: 900; color: #ffaa00;
            text-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
            font-family: 'Courier New', Courier, monospace;
        }

        #health-container {
            position: absolute; bottom: 30px; left: 30px; width: 320px;
            pointer-events: none;
        }
        #health-label { color: #ff4444; font-weight: 900; font-size: 1.4rem; margin-bottom: 5px; text-shadow: 2px 2px 0px black; letter-spacing: 2px; }
        #health-bar-bg { width: 100%; height: 24px; background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.2); border-radius: 12px; overflow: hidden; }
        #health-bar-fill { width: 100%; height: 100%; background: linear-gradient(90deg, #aa0000, #ff4444); transition: width 0.2s cubic-bezier(0.4, 1, 0.7, 0.9); }

        #controls-hint {
            position: absolute; bottom: 30px; right: 30px; color: rgba(255,255,255,0.5); font-size: 0.9rem; pointer-events: none; text-align: right;
        }

        #start-screen {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at center, #1a0a0a 0%, #000000 100%);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            z-index: 200; color: white;
        }
        #start-btn { 
            padding: 18px 60px; font-size: 1.4rem; background: #ff4444; color: white; border: none; 
            border-radius: 50px; font-weight: bold; cursor: pointer; box-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
            margin-top: 30px; transition: transform 0.2s, box-shadow 0.2s;
        }
        #start-btn:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(255, 50, 50, 0.5); background: #ff5555; }

        #crosshair {
            position: absolute; top: 50%; left: 50%; width: 20px; height: 20px;
            transform: translate(-50%, -50%); pointer-events: none; z-index: 5; opacity: 0.8;
        }
        .crosshair-line { position: absolute; background: rgba(255,255,255,0.9); box-shadow: 0 0 4px rgba(0,0,0,0.5); }
        .h-line { width: 24px; height: 2px; top: 9px; left: -2px; }
        .v-line { width: 2px; height: 24px; top: -2px; left: 9px; }

        #game-over {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(40, 0, 0, 0.9); display: none;
            flex-direction: column; align-items: center; justify-content: center;
            z-index: 300; color: white;
        }
    