        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: #111;
            color: #fff;
            overflow: hidden;
            overscroll-behavior: none; /* no pull-to-refresh / rubber-banding while playing */
        }

        #game-canvas {
            display: block;
            width: 100vw;
            height: 100vh;
            /* the virtual joystick drives the touch gestures itself; the
               browser must not scroll/zoom on them */
            touch-action: none;
            -webkit-touch-callout: none; /* no long-press callout while holding the stick */
        }

        .player-healthbar-inner {
            width: 100%;
            height: 100%;
            background-color: #58d858;
        }

        .enemy-healthbar-inner {
            width: 100%;
            height: 100%;
            background-color: #c0392b;
        }

        body.in-game #settings-gear { right: calc(66px + env(safe-area-inset-right, 0px)); }

        body.in-game #settings-menu { right: 66px; }

        /* aim mode + auto-cast indicators (small pills in panel titles) */
        .aim-indicator {
            float: right;
            font-size: 9px;
            font-weight: normal;
            text-transform: none;
            letter-spacing: 0;
            color: #9ad0ff;
            border: 1px solid #3a4a5a;
            border-radius: 3px;
            padding: 1px 6px;
        }

        /* ------------------------------------- boss / mini-boss health bar */
        .boss-healthbar {
            width: 140px;
            height: 10px;
            border: 1px solid #000;
            border-radius: 3px;
            box-shadow: 0 0 8px rgba(255, 80, 80, 0.9);
        }

        .boss-healthbar .enemy-healthbar-inner {
            background-color: #c62828;
            /* segments every 1000 HP: the gradient is set per enemy by JS
               (backgroundImage with a px period = 1000 / max_hp * bar width) */
        }

        .boss-hp-text {
            position: absolute;
            transform: translate(-50%, -100%);
            font-size: 12px;
            font-weight: bold;
            color: #ffd7d7;
            text-shadow: 0 0 3px #000;
            white-space: nowrap;
            z-index: 11;
        }

        .elite-glow-label {
            color: #ffd54a;
        }
