:root {
            --game-scale: 1;
            --game-scene-scale: 1;
            --game-header-overlay-top: 132px;
            --game-sidewalk-base: 220px;
            --game-skyline-gap: 150px;
            --game-walls-gap: 190px;
            --game-sidewalk-drop: -15px;
            --game-walls-base-height: 460px;
            --game-skyline-base-height: 700px;
            --game-sidewalk-height: calc(var(--game-scene-scale) * var(--game-sidewalk-base));
            --game-walls-height: calc(var(--game-scene-scale) * var(--game-walls-base-height));
            --game-skyline-height: calc(var(--game-scene-scale) * var(--game-skyline-base-height));
            --sidewalk-image: none;
        }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background-color: #111;
            color: #f4f4f4;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow: hidden;
        }

        .game-shell {
            position: relative;
            width: calc(100vw / var(--game-scale));
            height: calc(100vh / var(--game-scale));
            transform: scale(var(--game-scale));
            transform-origin: top;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            overflow: hidden;
        }

        .header {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px clamp(150px, 20vw, 240px) 20px;
            box-sizing: border-box;
            background-color: #1d1d1d;
            position: sticky;
            top: 0;
            flex-direction: column;
            gap: 10px;
        }

        .scoreboard {
            position: absolute;
            top: 12px;
            left: 16px;
            display: grid;
            gap: 3px;
            font-family: 'Courier New', Courier, monospace;
            font-size: clamp(36px, calc(2.3625rem / var(--game-scale)), 2.3625rem);
            line-height: 1.2;
            text-align: left;
        }

        .scoreboard > * {
            display: block;
            margin: 0;
        }

        .header-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            width: 100%;
            min-width: 0;
        }

        .header-status-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .header-utilities {
            position: absolute;
            top: 12px;
            right: 16px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            gap: 8px;
            z-index: 9;
        }

        .header-dev-buttons {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-wrap: nowrap;
        }

        .dev-scheme-picker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 0 12px;
            min-height: 44px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 12px;
            background: rgba(8, 10, 12, 0.92);
            box-shadow: 0 2px 0 #1a1a1a, 0 6px 20px rgba(0, 0, 0, 0.34);
        }

        .dev-scheme-picker-label {
            color: rgba(255, 255, 255, 0.68);
            font: 700 11px/1 "Courier New", monospace;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .dev-scheme-picker-select {
            min-width: 88px;
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 8px;
            background: rgba(18, 20, 24, 0.96);
            color: #f4f4f4;
            font: 700 12px/1.2 "Courier New", monospace;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 8px 28px 8px 10px;
            cursor: pointer;
        }

        .dev-scheme-picker-select:hover,
        .dev-scheme-picker-select:focus-visible {
            border-color: rgba(255, 255, 255, 0.48);
            outline: none;
        }

        .header-icon-buttons {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
        }

        .header-esc-hint {
            color: rgba(255, 255, 255, 0.62);
            font: 700 12px/1.2 "Courier New", monospace;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            white-space: nowrap;
            align-self: center;
        }

        .header-icon-button {
            position: relative;
            width: 52px;
            height: 52px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.24);
            border-radius: 12px;
            background: rgba(8, 10, 12, 0.92);
            color: #f4f4f4;
            cursor: pointer;
            box-shadow: 0 2px 0 #1a1a1a, 0 6px 20px rgba(0, 0, 0, 0.4);
            transition: transform 0.1s ease-in-out, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .header-icon-button::before,
        .header-icon-button::after {
            content: '';
            position: absolute;
            inset: 6px;
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 10px;
            pointer-events: none;
        }

        .header-icon-button::before {
            transform: rotate(-2deg);
        }

        .header-icon-button::after {
            transform: rotate(1.8deg);
        }

        .header-icon-button:hover,
        .header-icon-button:focus-visible {
            background: rgba(12, 14, 17, 0.98);
            border-color: rgba(255, 255, 255, 0.96);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 20px rgba(0, 0, 0, 0.44);
            outline: none;
        }

        .header-icon-button:active {
            transform: scale(0.96);
        }

        .header-icon-button.is-muted {
            border-color: rgba(255, 122, 122, 0.42);
            color: #ffb3b3;
        }

        .header-icon-button.is-muted::before,
        .header-icon-button.is-muted::after {
            border-color: rgba(255, 122, 122, 0.28);
        }

        .header-icon {
            position: relative;
            z-index: 1;
            font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
            font-size: 1.35rem;
            line-height: 1;
        }

        .header-icon-alert {
            position: absolute;
            top: 7px;
            right: 7px;
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #f04b4b;
            box-shadow: 0 0 0 2px rgba(8, 10, 12, 0.92);
            z-index: 2;
            pointer-events: none;
        }

        .lives-counter {
            font-family: 'Courier New', Courier, monospace;
            font-size: clamp(36px, calc(2.3625rem / var(--game-scale)), 2.3625rem);
            line-height: 1.2;
            text-align: left;
        }

        .eyebat-dev-counter {
            display: inline-block;
            margin-left: 0.42em;
            color: rgba(244, 244, 244, 0.82);
            font-size: 0.8em;
            letter-spacing: 0.04em;
            white-space: nowrap;
        }

        #kill-count {
            color: #ff3b3b;
            font-family: 'Courier New', Courier, monospace;
            font-size: clamp(36px, calc(2.3625rem / var(--game-scale)), 2.3625rem);
            line-height: 1.1;
            text-align: center;
        }

        #high-score {
            color: #ff7043;
        }

        #lives-counter {
            color: #66ffcc;
        }

        .hidden {
            display: none !important;
        }

        .start-button,
        .pause-button,
        .dev-button {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            border-radius: 10px;
            color: #fff;
            padding: 12px 32px;
            font-size: 1.1rem;
            font-family: 'Courier New', Courier, monospace;
            letter-spacing: 2px;
            text-transform: uppercase;
            cursor: pointer;
            box-shadow: 0 2px 0 #1a1a1a, 0 6px 20px rgba(0, 0, 0, 0.4);
            transition: transform 0.1s ease-in-out, background 0.18s ease, box-shadow 0.18s ease;
            background: transparent;
        }

        .pause-button-label,
        .pause-button-gear {
            position: relative;
            z-index: 1;
        }

        .pause-button-divider {
            position: relative;
            z-index: 1;
            width: 1px;
            align-self: stretch;
            min-height: 20px;
            background: rgba(255, 255, 255, 0.42);
        }

        .pause-button-gear {
            font-size: 1.2em;
            line-height: 1;
        }

        .start-button::before,
        .start-button::after,
        .pause-button::before,
        .pause-button::after,
        .dev-button::before,
        .dev-button::after {
            content: '';
            position: absolute;
            inset: 6px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-radius: 12px;
            pointer-events: none;
        }

        .start-button::before,
        .pause-button::before,
        .dev-button::before {
            transform: rotate(-2deg);
        }

        .start-button::after,
        .pause-button::after,
        .dev-button::after {
            transform: rotate(1.8deg);
        }

        .start-button:active,
        .pause-button:active,
        .dev-button:active {
            transform: scale(0.96);
        }

        .start-button:hover,
        .start-button:focus-visible,
        .pause-button:hover,
        .pause-button:focus-visible,
        .dev-button:hover,
        .dev-button:focus-visible {
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 2px 0 #1a1a1a, 0 6px 20px rgba(0, 0, 0, 0.44);
            outline: none;
        }

        .start-button:hover::before,
        .start-button:hover::after,
        .start-button:focus-visible::before,
        .start-button:focus-visible::after,
        .pause-button:hover::before,
        .pause-button:hover::after,
        .pause-button:focus-visible::before,
        .pause-button:focus-visible::after,
        .dev-button:hover::before,
        .dev-button:hover::after,
        .dev-button:focus-visible::before,
        .dev-button:focus-visible::after {
            border-color: rgba(255, 255, 255, 0.96);
        }

        .header-dev-buttons .dev-button {
            padding: 10px 18px;
            min-height: 52px;
            font-size: 0.92rem;
            letter-spacing: 0.12em;
            white-space: nowrap;
        }

        .timer {
            text-align: center;
            font-family: 'Courier New', Courier, monospace;
            letter-spacing: 4px;
            font-size: clamp(16px, calc(1.4rem / var(--game-scale)), 1.4rem);
        }

        .cultist-field {
            position: relative;
            padding: 0 20px 60px;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            overflow: hidden;
            flex: 1;
            width: 100%;
        }

        .weapon-hud {
            position: absolute;
            top: 14px;
            left: 16px;
            z-index: 7;
            display: grid;
            gap: 8px;
            min-width: min(320px, calc(100% - 32px));
            max-width: min(360px, calc(100% - 32px));
            padding: 12px 14px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            background: linear-gradient(180deg, rgba(8, 10, 12, 0.9), rgba(8, 10, 12, 0.76));
            box-shadow: 0 12px 22px rgba(0, 0, 0, 0.32);
            pointer-events: none;
        }

        .weapon-hud-help {
            color: rgba(255, 255, 255, 0.72);
            font: 700 12px/1.2 "Courier New", monospace;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        .weapon-hud-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 6px;
        }

        .weapon-hud-item {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) minmax(4ch, auto) auto;
            align-items: center;
            gap: 10px;
            font: 700 13px/1.2 "Courier New", monospace;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(244, 244, 244, 0.84);
        }

        .weapon-hud-key {
            min-width: 3ch;
            color: rgba(255, 255, 255, 0.58);
            text-align: left;
        }

        .weapon-hud-label {
            min-width: 0;
        }

        .weapon-hud-item.is-active {
            color: #ffd166;
        }

        .weapon-hud-item.is-unknown {
            color: rgba(255, 255, 255, 0.42);
        }

        .weapon-hud-item.is-out .weapon-hud-label {
            text-decoration: line-through;
            text-decoration-thickness: 2px;
        }

        .weapon-hud-item.is-out {
            color: rgba(255, 179, 179, 0.7);
        }

        .weapon-hud-status {
            min-width: 4ch;
            text-align: right;
            color: inherit;
        }

        .weapon-hud-arrow {
            min-width: 1ch;
            color: #ffd166;
            text-align: right;
            visibility: hidden;
        }

        .weapon-hud-item.is-active .weapon-hud-arrow {
            visibility: visible;
        }

        .foreground {
            position: absolute;
            inset: auto 0 0 0;
            bottom: calc(var(--game-scene-scale) * var(--game-sidewalk-drop));
            height: var(--game-sidewalk-height);
            background-image: var(--sidewalk-image, none);
            background-repeat: repeat-x;
            background-size: auto 100%;
            background-position: var(--fg-offset, 0px) 100%;
            z-index: 0;
            pointer-events: none;
        }
        .skyline-layer {
            position: absolute;
            bottom: calc(var(--game-sidewalk-height) + (var(--game-scene-scale) * var(--game-skyline-gap)));
            left: 0;
            right: 0;
            top: auto;
            height: var(--game-skyline-height);
            z-index: -5;
            overflow: visible;
            pointer-events: none;
            --skyline-tile-width: 620px;
        }

        .skyline-layer .skyline-tile {
            position: absolute;
            bottom: 0;
            display: block;
            width: var(--skyline-tile-width, 620px);
            height: auto;
            object-fit: cover;
            transform: translateX(0);
            pointer-events: none;
        }

        .foreground-back {
            z-index: -1;
            height: var(--game-walls-height);
            bottom: calc(var(--game-sidewalk-height) - (var(--game-scene-scale) * var(--game-walls-gap)));
            position: absolute;
            left: 0;
            right: 0;
            overflow: visible;
            background: none;
            pointer-events: none;
            --wall-overlap: -6px;
            --wall-tile-width: 520px;
        }

        .foreground-back .wall-tile {
            position: absolute;
            bottom: 0;
            display: block;
            width: var(--wall-tile-width, 520px);
            max-width: none;
            height: auto;
            max-height: none;
            object-fit: cover;
            pointer-events: none;
            transform: translateX(0);
            opacity: 1;
            filter: brightness(0.75);
        }

        .cultist {
            position: absolute;
            bottom: var(--entity-bottom, 40px);
            width: auto;
            height: var(--entity-height, 250px);
            transform-origin: bottom center;
            transform: translateX(-50%) scaleX(var(--display-direction, 1)) scale(var(--spawn-scale, 1));
            filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
            animation: materialize 0.4s ease-out forwards;
            --spawn-scale: 1;
            --direction: 1;
            --display-direction: 1;
            z-index: 1;
        }

        .cultist.cultist-dead {
            height: auto;
            width: var(--entity-dead-width, 300px);
        }

        .cultist.cultist-lurker-fading {
            animation: cultistLurkerFade var(--cultist-lurker-fade-duration, 700ms) ease-out forwards;
        }

        .bullet {
            position: absolute;
            width: 17px;
            transform: translate(-50%, -50%) scaleX(var(--direction, 1));
            pointer-events: none;
            z-index: 2;
        }

        .zombie,
        .lurker,
        .anklebiter {
            position: absolute;
            bottom: var(--entity-bottom, 40px);
            width: auto;
            transform-origin: bottom center;
            transform: translateX(-50%) scaleX(var(--z-direction, 1));
            pointer-events: none;
            z-index: 1;
            filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
        }

        .zombie {
            height: var(--entity-height, 250px);
        }

        .lurker {
            height: var(--entity-height, 500px);
            opacity: 0.85;
        }

        .anklebiter {
            bottom: var(--entity-bottom, 45px);
            height: var(--entity-height, 110px);
            z-index: 2;
        }

        .eyebat {
            position: absolute;
            width: auto;
            height: var(--entity-height, 100px);
            transform: translateX(-50%) scaleX(var(--z-direction, 1));
            bottom: var(--entity-bottom, 590px);
            pointer-events: none;
            z-index: 0;
            filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
        }

        .revive-sequence-entity {
            position: absolute;
            left: 0;
            bottom: 0;
            width: auto;
            pointer-events: none;
            z-index: 4;
            transform: translateX(-50%);
            filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
        }

        .revive-sequence-rider {
            z-index: 4;
        }

        .revive-sequence-eyebat {
            z-index: 3;
        }

        .zombie.zombie-dead {
            width: auto;
            height: var(--entity-dead-height, 210px);
        }

        .lurker.lurker-dead {
            height: var(--entity-dead-height, 420px);
        }

        .anklebiter.anklebiter-dead {
            height: var(--entity-dead-height, 150px);
        }

        @keyframes materialize {
            from {
                opacity: 0;
                transform: translateX(-50%) scaleX(var(--direction, 1)) scale(0.8);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) scaleX(var(--direction, 1)) scale(var(--spawn-scale, 1));
            }
        }

        @keyframes lurkerHitFlash {
            0% {
                filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
            }
            50% {
                filter: drop-shadow(0 6px 20px rgba(255, 0, 0, 0.8));
            }
            100% {
                filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
            }
        }

        @keyframes cultistLurkerFade {
            from {
                opacity: 1;
                transform: translateX(-50%) scaleX(var(--display-direction, 1)) scale(var(--spawn-scale, 1));
            }
            to {
                opacity: 0;
                transform: translateX(-50%) scaleX(var(--display-direction, 1)) scale(calc(var(--spawn-scale, 1) * 0.98));
            }
        }

        @keyframes lurkerFadeBack {
            from {
                transform: translateX(-50%) translateX(0px) scaleX(var(--z-direction, 1));
                opacity: 0.85;
            }
            to {
                transform: translateX(-50%) translateX(var(--lurker-death-backstep, -36px)) scaleX(var(--z-direction, 1));
                opacity: 0;
            }
        }

        .lurker-hit {
            animation: lurkerHitFlash 0.25s ease;
        }

        .lurker-dying {
            animation: lurkerFadeBack var(--lurker-death-duration, 550ms) ease-out forwards;
        }

        .death-menu,
        .main-menu,
        .settings-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
        }

        .death-menu {
            z-index: 5;
        }

        .main-menu-overlay,
        .settings-menu-overlay {
            position: absolute;
            inset: var(--game-header-overlay-top) 0 0;
            z-index: 6;
            pointer-events: auto;
        }

        .main-menu-overlay {
            z-index: 6;
            overflow: hidden;
        }

        .main-menu-overlay::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(4, 5, 7, 0.22), rgba(4, 5, 7, 0.72) 28%, rgba(4, 5, 7, 0.86)),
                radial-gradient(circle at 50% 12%, rgba(198, 42, 34, 0.12), transparent 40%);
            pointer-events: none;
        }

        .main-menu,
        .settings-menu {
            pointer-events: auto;
        }

        .main-menu {
            z-index: 6;
            width: min(320px, calc(100vw - 48px));
            padding: 22px 22px 20px;
            align-items: stretch;
            gap: 0;
        }

        .main-menu-content {
            margin-top: 22px;
        }

        .main-menu-auth-slot {
            position: relative;
            display: grid;
            justify-items: center;
            width: 100%;
        }

        .main-menu-auth-button {
            align-items: center;
            display: flex;
            justify-content: center;
            text-decoration: none;
            width: 100%;
        }

        .main-menu-account-wrap {
            position: relative;
            display: inline-flex;
            justify-content: center;
            min-width: var(--cult-os-header-control-size, 55px);
        }

        .main-menu-account-toggle {
            margin: 0 auto;
        }

        .main-menu-account-panel {
            top: calc(100% + 10px);
            left: 50%;
            transform: translate(-50%, -16px);
            font: 700 16px/1.2 "Courier New", Courier, monospace;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .main-menu-account-panel.is-open {
            transform: translate(-50%, 0);
        }

        .main-menu-account-panel .cult-os-header-panel-heading,
        .main-menu-account-panel .cult-os-header-menu-link,
        .main-menu-account-panel .cult-os-header-menu-button {
            font-family: "Courier New", Courier, monospace;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .main-menu-account-panel .cult-os-header-menu-button {
            display: block;
            width: 100%;
            padding: 8px 10px;
            border: 1px solid transparent;
            background: transparent;
            color: #f4f4f4;
            font: inherit;
            letter-spacing: inherit;
            text-align: left;
            text-transform: uppercase;
            cursor: pointer;
        }

        .main-menu-account-panel .cult-os-header-menu-button:hover,
        .main-menu-account-panel .cult-os-header-menu-button:focus-visible {
            transform: none;
            border-color: rgba(255, 255, 255, 0.24);
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
            outline: none;
        }

        .main-menu-auth-button.is-auth-required {
            border-color: rgba(240, 75, 75, 0.9);
            box-shadow: inset 0 0 0 1px rgba(240, 75, 75, 0.16);
        }

        .main-menu-auth-button.is-auth-required:hover,
        .main-menu-auth-button.is-auth-required:focus {
            background: rgba(240, 75, 75, 0.1);
            border-color: rgba(255, 118, 118, 0.96);
        }

        .main-menu-divider {
            height: 1px;
            margin: 18px 0 0;
            background: rgba(255, 255, 255, 0.12);
        }

        .settings-menu {
            width: min(420px, calc(100vw - 48px));
            max-height: calc(100vh - 48px);
            overflow-y: auto;
            padding: 16px 24px 40px;
            align-items: stretch;
            gap: 0;
            z-index: 7;
        }

        .main-menu-actions {
            display: grid;
            gap: 10px;
            margin-top: 18px;
        }

        .main-menu-actions .pause-menu-button,
        .main-menu-confirm-actions .pause-menu-button {
            width: 100%;
        }

        .main-menu-confirm {
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .main-menu-confirm-copy {
            margin: 0;
            color: rgba(255, 255, 255, 0.8);
            font: 12px/1.6 "Courier New", monospace;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .main-menu-confirm-actions {
            display: grid;
            gap: 10px;
            margin-top: 16px;
        }

        .settings-menu .pause-help {
            margin-top: 18px;
            max-width: none;
        }

        .settings-menu-actions {
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            margin-top: 22px;
        }

        .settings-menu-actions .pause-menu-button {
            min-width: 144px;
        }

        .death-menu-buttons {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-top: 4px;
        }

        .button-shortcut-anchor {
            position: relative;
            margin-bottom: 22px;
        }

        .button-shortcut-anchor::after {
            content: attr(data-shortcut);
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.54);
            font: 700 11px/1 "Courier New", monospace;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            white-space: nowrap;
            pointer-events: none;
        }

        .death-menu-buttons.is-single-action {
            justify-content: center;
        }

        #continue-button.is-revive-continue {
            min-width: 240px;
        }

        #death-scoreboard-button {
            align-self: center;
            min-width: 240px;
            padding-inline: 18px;
            font-size: 0.82rem;
            letter-spacing: 0.16em;
        }

        .death-revive-panel {
            display: flex;
            justify-content: center;
            margin-top: -2px;
        }

        .death-revive-lives {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 8px 18px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .death-revive-icon {
            width: 80px;
            height: auto;
            image-rendering: auto;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.38));
        }

        .death-revive-count {
            color: #f4f4f4;
            font: 700 18px/1 "Courier New", monospace;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .death-score-summary {
            width: 90%;
            padding: 12px 16px 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .death-scoreboard-preview {
            margin: 0;
        }

        .death-score-summary .noir-scoreboard-rank {
            color: rgba(255, 255, 255, 0.42);
        }

        .death-scoreboard-row-current {
            position: relative;
        }

        .death-scoreboard-row-current-break {
            position: relative;
            margin-top: 8px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.14);
        }

        .death-personal-best-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 12px;
            padding: 10px 0 0;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 10px;
            font: 700 14px/1.4 "Courier New", monospace;
            letter-spacing: 0.04em;
        }

        .death-personal-best-label {
            color: rgba(255, 255, 255, 0.62);
            font-size: 0.72rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        .death-personal-best-value {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #f4f4f4;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        .death-score-summary .noir-scoreboard-score.is-new-personal-best {
            display: inline-block;
            transform-origin: center;
            text-shadow: 0 0 14px rgba(255, 209, 102, 0.45);
            animation: deathScorePulseWobble 1.15s ease-in-out infinite;
        }

        .death-score-summary .death-round-highlight {
            display: inline-block;
            width: fit-content;
            max-width: 100%;
            transform-origin: 50% 50%;
            will-change: transform;
            animation:
                deathRoundHighlightPulse 1.08s ease-in-out infinite,
                deathCurrentScorePulse 1.08s ease-in-out infinite;
        }

        .death-score-summary .noir-scoreboard-name.death-round-highlight {
            justify-self: start;
        }

        .death-score-summary .noir-scoreboard-score.death-round-highlight {
            justify-self: end;
        }

        .death-score-summary .death-round-highlight.is-rainbow {
            animation:
                noirScoreboardRainbow 6s linear infinite,
                deathRoundHighlightPulse 1.08s ease-in-out infinite,
                deathCurrentScorePulse 1.08s ease-in-out infinite;
        }

        .death-score-summary .death-round-highlight.is-new-personal-best {
            animation:
                deathRoundHighlightPulse 1.08s ease-in-out infinite,
                deathScorePulseWobble 1.08s ease-in-out infinite;
        }

        .death-score-summary .death-round-highlight.is-rainbow.is-new-personal-best {
            animation:
                noirScoreboardRainbow 6s linear infinite,
                deathRoundHighlightPulse 1.08s ease-in-out infinite,
                deathScorePulseWobble 1.08s ease-in-out infinite;
        }

        .death-score-actions {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 12px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .death-score-status {
            min-height: 0;
            min-width: 0;
            color: rgba(255, 255, 255, 0.7);
            font-family: 'Courier New', Courier, monospace;
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            line-height: 1.5;
        }

        .death-score-status.is-error {
            color: #ff7a7a;
        }

        .death-score-status.is-success {
            color: #66ffcc;
        }

        .death-auth-prompt {
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        #death-auth-login-button[disabled] {
            opacity: 0.6;
            cursor: wait;
        }

        #death-auth-login-button {
            padding: 8px 16px;
            font-size: 12px;
            letter-spacing: 0.14em;
            white-space: nowrap;
        }

        .death-menu button,
        .pause-menu-button {
            padding: 10px 24px;
            font-family: 'Courier New', Courier, monospace;
            font-size: 1rem;
            font-weight: bold;
            letter-spacing: 2px;
            text-transform: uppercase;
            border: 2px solid #f4f4f4;
            background: transparent;
            color: #f4f4f4;
            cursor: pointer;
            transition: transform 0.1s ease-in-out, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .death-menu button:hover,
        .death-menu button:focus-visible,
        .pause-menu-button:hover,
        .pause-menu-button:focus-visible {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.96);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
            outline: none;
        }

        .pause-help {
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.95rem;
            line-height: 1.4;
            text-align: left;
            max-width: 340px;
        }

        .pause-help p {
            margin: 0 0 6px;
        }

        .pause-menu-actions {
            display: flex;
            justify-content: space-evenly;
            margin-top: 16px;
        }

        .pause-name-input {
            margin-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 0.95rem;
        }

        .pause-name-input-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .pause-name-input label {
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.8rem;
        }

        .pause-name-input label.is-attention-pulsing {
            animation: noirAttentionPulse 1.05s ease-in-out infinite;
        }

        .pause-name-input input {
            flex: 1 1 180px;
            min-width: 0;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: #f04b4b;
            padding: 6px 10px;
            font-family: 'Courier New', Courier, monospace;
            letter-spacing: 1px;
        }

        .pause-name-auth-button {
            flex: 0 0 auto;
            padding: 8px 12px;
            border: 1px solid rgba(240, 75, 75, 0.78);
            background: rgba(240, 75, 75, 0.06);
            color: #f04b4b;
            font: 700 11px/1 "Courier New", monospace;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            white-space: nowrap;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s, opacity 0.2s;
        }

        .pause-name-auth-button:hover,
        .pause-name-auth-button:focus {
            background: rgba(240, 75, 75, 0.14);
            border-color: rgba(255, 124, 124, 0.96);
            box-shadow: 0 0 0 1px rgba(240, 75, 75, 0.18);
            outline: none;
        }

        .pause-name-auth-button.is-secondary {
            padding: 0;
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: underline;
            text-underline-offset: 0.18em;
        }

        .pause-name-auth-button.is-secondary:hover,
        .pause-name-auth-button.is-secondary:focus {
            background: transparent;
            color: #f4f4f4;
        }

        .pause-name-auth-button:disabled {
            opacity: 0.62;
            cursor: wait;
        }

        .pause-volume-controls {
            margin-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            font-size: 0.95rem;
        }

        .pause-volume-controls label {
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.8rem;
        }

        .pause-volume-controls input[type="range"] {
            width: 100%;
            -webkit-appearance: none;
            appearance: none;
            height: 8px;
            background: repeating-linear-gradient(
                90deg,
                #777,
                #777 6px,
                #555 6px,
                #555 12px
            );
            border: 1px solid #999;
            border-radius: 6px;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
        }

        .pause-volume-controls input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #b0b0b0;
            border: 2px solid #444;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            cursor: pointer;
        }

        .pause-volume-controls input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #b0b0b0;
            border: 2px solid #444;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            cursor: pointer;
        }

        .pause-menu-button {
            align-self: center;
        }

        .pause-menu-button-secondary {
            border-color: rgba(255, 255, 255, 0.65);
            color: rgba(255, 255, 255, 0.92);
        }

        .death-comic {
            max-width: 100%;
            max-height: 360px;
            object-fit: contain;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        }

        .death-comic-wrapper {
            width: 100%;
            display: flex;
            justify-content: center;
            margin: 0;
        }

        @keyframes deathScorePulseWobble {
            0% {
                transform: scale(1) rotate(0deg);
            }
            50% {
                transform: scale(1.24) rotate(0.6deg);
            }
            100% {
                transform: scale(1) rotate(0deg);
            }
        }

        @keyframes deathCurrentScorePulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.22);
            }
            100% {
                transform: scale(1);
            }
        }

        @keyframes deathRoundHighlightPulse {
            0% {
                opacity: 0.82;
                text-shadow: 0 0 0 rgba(255, 255, 255, 0);
            }
            50% {
                opacity: 1;
                text-shadow: 0 0 16px rgba(255, 255, 255, 0.34);
            }
            100% {
                opacity: 0.82;
                text-shadow: 0 0 0 rgba(255, 255, 255, 0);
            }
        }

        @keyframes noirAttentionPulse {
            0% {
                opacity: 0.72;
                transform: scale(1);
                text-shadow: 0 0 0 rgba(240, 75, 75, 0);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
                text-shadow: 0 0 14px rgba(240, 75, 75, 0.42);
            }
            100% {
                opacity: 0.72;
                transform: scale(1);
                text-shadow: 0 0 0 rgba(240, 75, 75, 0);
            }
        }

        .talk-bubble {
            position: absolute;
            width: 160px;
            height: auto;
            transform: translate(-50%, -100%);
            z-index: 2;
            pointer-events: none;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
        }

        .ammo-crate {
            position: absolute;
            bottom: var(--entity-bottom, 40px);
            width: var(--entity-width, 220px);
            height: auto;
            transform: translateX(-50%);
            z-index: 1;
            pointer-events: none;
            filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
        }

        .pause-color-input {
            margin-top: 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 0.95rem;
        }

        .pause-color-input select {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: #f4f4f4;
            padding: 6px 10px;
            font-family: 'Courier New', Courier, monospace;
            letter-spacing: 1px;
        }

        .rainbow-text {
            animation: omniColorShift 12s linear infinite;
        }

        @keyframes omniColorShift {
            0% { color: #f04b4b; }
            8% { color: #ffd166; }
            16% { color: #66ffcc; }
            24% { color: #6fa8dc; }
            32% { color: #ff7aa2; }
            40% { color: #9b59b6; }
            48% { color: #7a1fff; }
            56% { color: #39ff14; }
            64% { color: #1abc9c; }
            72% { color: #ffd700; }
            80% { color: #c77dff; }
            88% { color: #ffb07c; }
            96% { color: #c0c0c0; }
            100% { color: #f04b4b; }
        }

        .player-name-tag {
            position: absolute;
            transform: translate(-50%, -100%);
            color: #f04b4b;
            font-family: 'Courier New', Courier, monospace;
            font-size: 1rem;
            font-weight: bold;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            pointer-events: none;
            white-space: nowrap;
            z-index: 2;
            background: rgba(0, 0, 0, 0.75);
            padding: 2px 10px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .player-weapon-tag {
            position: absolute;
            transform: translate(-50%, -100%);
            color: #ffffff;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.85rem;
            font-weight: bold;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            pointer-events: none;
            white-space: nowrap;
            z-index: 2;
            background: rgba(0, 0, 0, 0.75);
            padding: 2px 10px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .telephone-booth {
            position: absolute;
            bottom: var(--entity-bottom, 40px);
            width: var(--entity-width, 200px);
            height: auto;
            transform: translateX(-50%);
            z-index: 0;
            pointer-events: none;
            filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
        }

        .visually-hidden {
            border: 0;
            clip: rect(0 0 0 0);
            clip-path: inset(50%);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            white-space: nowrap;
            width: 1px;
        }

        .cta-outline,
        .cta-solid,
        .cta-outline-disabled,
        .cta-solid-disabled {
            appearance: none;
            cursor: pointer;
            display: inline-block;
            font: inherit;
            line-height: 1;
            text-decoration: none;
            text-transform: uppercase;
        }

        .cta-solid,
        .cta-solid-disabled {
            border: 1px solid #f04b4b;
            padding: 0.65rem 0.95rem;
        }

        .cta-solid {
            background: #f04b4b;
            color: #fff;
        }

        .cta-solid:hover,
        .cta-solid:focus {
            background: #ff6e67;
            border-color: #ff6e67;
            outline: none;
        }

        .cta-solid-disabled {
            background: #2a2a2a;
            border-color: #2a2a2a;
            color: #d8d8d8;
            cursor: not-allowed;
        }

        .cta-solid-disabled:hover,
        .cta-solid-disabled:focus {
            background: #2a2a2a;
            border-color: #2a2a2a;
            outline: none;
        }
