      :root {
        color-scheme: only light;
        --hud-bg: rgba(239, 239, 239, 0.92);
        --hud-border: rgba(52, 52, 52, 0.22);
        --hud-text: #1f1f1f;
        --hud-muted: #5a5a5a;
        --skill-bg: #e8e8e8;
        --skill-border: rgba(45, 45, 45, 0.24);
        --skill-text: #1f1f1f;
        --skill-muted: #4e4e4e;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: #f3f6f1;
        touch-action: none;
        overscroll-behavior: none;
      }

      canvas {
        touch-action: none;
      }

      .hud {
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 4;
        width: min(340px, calc(100vw - 28px));
        padding: 12px 14px 14px;
        border-radius: 16px;
        border: 1px solid var(--hud-border);
        background: var(--hud-bg);
        color: var(--hud-text);
        backdrop-filter: blur(6px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
      }

      .hud h1 {
        margin: 0 0 4px;
        font-size: 1.25rem;
        line-height: 1.05;
        letter-spacing: 0.04em;
        font-family: Georgia, "Times New Roman", serif;
      }

      .hud p {
        margin: 0 0 8px;
        font-size: 0.86rem;
        line-height: 1.35;
        color: var(--hud-muted);
        font-family: "Courier New", Courier, monospace;
      }

      .statline {
        font-size: 0.76rem;
        color: #2f4f3d;
        font-family: "Courier New", Courier, monospace;
      }

      .fpsline {
        margin-top: 6px;
        font-size: 0.74rem;
        color: #3f5d4a;
        font-family: "Courier New", Courier, monospace;
      }

      .netline {
        margin-top: 6px;
        font-size: 0.74rem;
        color: #405a4b;
        font-family: "Courier New", Courier, monospace;
      }

      .versionline {
        margin-top: 6px;
        font-size: 0.68rem;
        color: #6a7d70;
        font-family: "Courier New", Courier, monospace;
      }

      .joystick {
        position: fixed;
        left: 16px;
        bottom: 16px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: rgba(14, 35, 24, 0.45);
        border: 1px solid rgba(208, 247, 213, 0.28);
        backdrop-filter: blur(2px);
        z-index: 3;
        display: none;
      }

      .joystick-knob {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(216, 245, 221, 0.32);
        border: 1px solid rgba(216, 245, 221, 0.5);
        position: absolute;
        left: 32px;
        top: 32px;
      }

      @media (hover: none) and (pointer: coarse) {
        .joystick {
          display: block;
        }
      }

      .modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10;
        display: grid;
        place-items: center;
        background: rgba(5, 12, 9, 0.7);
      }

      .modal {
        width: min(92vw, 420px);
        border-radius: 16px;
        background: rgba(14, 29, 20, 0.92);
        border: 1px solid rgba(209, 246, 216, 0.28);
        color: #e2f3e6;
        padding: 18px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
      }

      #helpModal {
        width: min(94vw, 920px);
      }

      .help-columns {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 18px;
        margin: 14px 0 16px;
      }

      .help-section {
        min-width: 0;
      }

      .help-section h3 {
        margin: 0 0 8px;
        color: #c2f2cb;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .help-list {
        display: grid;
        gap: 8px;
        margin: 0;
      }

      .help-item {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: start;
        padding: 8px 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        font-size: 0.92rem;
      }

      .help-item strong {
        min-width: 92px;
        color: #c2f2cb;
      }

      .help-item span {
        color: #e9f8ec;
        text-align: left;
      }

      @media (max-width: 680px) {
        #helpModal {
          width: min(94vw, 560px);
          max-height: 90vh;
          overflow-y: auto;
        }

        .help-columns {
          grid-template-columns: 1fr;
          gap: 16px;
        }

        .help-item {
          display: grid;
          gap: 4px;
        }

        .help-item span {
          text-align: left;
        }
      }

      .config-list {
        display: grid;
        gap: 6px;
        margin: 12px 0 14px;
        max-height: 60vh;
        overflow: auto;
      }

      .config-entry {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        font-size: 0.9rem;
      }

      .config-entry strong {
        color: #c2f2cb;
      }

      .config-entry span {
        color: #e9f8ec;
        text-align: right;
        word-break: break-word;
      }

      #helpCloseButton,
      #configCloseButton {
        width: 100%;
        border: none;
        border-radius: 10px;
        padding: 10px 12px;
        background: #d8f1d8;
        color: #18331f;
        font-weight: 700;
        cursor: pointer;
      }

      .modal h2 {
        margin: 0 0 8px;
        font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
        letter-spacing: 0.06em;
        font-size: 1.05rem;
      }

      .modal p {
        margin: 0 0 12px;
        color: #b9d8c0;
        font-size: 0.9rem;
      }

      .modal input {
        width: 100%;
        border-radius: 10px;
        border: 1px solid rgba(209, 246, 216, 0.24);
        padding: 10px 12px;
        font-size: 0.95rem;
        color: #1f1f1f;
        background: rgba(255, 255, 255, 0.92);
        outline: none;
      }

      .modal input:focus {
        border-color: rgba(147, 245, 167, 0.7);
      }

      .modal button {
        margin-top: 12px;
        width: 100%;
        border-radius: 10px;
        border: 0;
        padding: 10px 12px;
        background: linear-gradient(120deg, #2c7d55, #58a56f);
        color: #0f2015;
        font-weight: 700;
        cursor: pointer;
      }

      .modal .error {
        margin-top: 8px;
        min-height: 1.2em;
        font-size: 0.82rem;
        color: #ffb2a9;
      }

      .hidden {
        display: none;
      }

      .players {
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 2;
        background: rgba(8, 20, 16, 0.78);
        border: 1px solid rgba(191, 255, 203, 0.28);
        border-radius: 14px;
        backdrop-filter: blur(4px);
        color: #d8f5dd;
        padding: 10px 12px;
        width: min(88vw, 250px);
      }

      .players h3 {
        margin: 0;
        font-size: 0.82rem;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: #b6dfc1;
        font-family: "Courier New", Courier, monospace;
      }

      .players ul {
        margin: 8px 0 0;
        padding: 0;
        list-style: none;
      }

      .players li {
        font-size: 0.82rem;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
      }

      .self {
        color: #9fd7ae;
      }

      .kill-feed {
        position: fixed;
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        min-width: 260px;
        max-width: min(92vw, 700px);
        text-align: center;
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid rgba(255, 225, 190, 0.46);
        background: rgba(26, 12, 8, 0.78);
        color: #ffd8bf;
        font-size: 0.9rem;
        font-family: "Courier New", Courier, monospace;
        letter-spacing: 0.01em;
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease;
      }

      .kill-feed.show {
        opacity: 1;
      }

      .skillbar {
        position: fixed;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        z-index: 4;
        display: flex;
        gap: 10px;
        pointer-events: none;
      }

      .skill {
        width: 78px;
        height: 78px;
        border-radius: 12px;
        border: 1px solid var(--skill-border);
        background: var(--skill-bg);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
        position: relative;
        overflow: hidden;
        color: var(--skill-text);
      }

      .skill-title {
        position: absolute;
        top: 8px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 11px;
        letter-spacing: 0.07em;
        color: var(--skill-text);
        font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
      }

      .skill-key {
        position: absolute;
        bottom: 7px;
        right: 7px;
        font-size: 11px;
        color: var(--skill-muted);
        font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
      }

      .skill-center {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-35%);
        text-align: center;
        font-size: 13px;
        color: var(--skill-text);
        font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
      }

      .skill-icon {
        font-size: 22px;
        line-height: 1;
      }

      .skill-counter {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 18px;
        color: var(--skill-text);
        font-weight: 700;
        text-shadow: none;
        font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
      }

      .skill-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 0%;
        will-change: height;
        transform: translateZ(0);
        transition: height 90ms linear;
        background: linear-gradient(180deg, rgba(80, 80, 80, 0.24), rgba(38, 38, 38, 0.84));
      }

      .skill.active {
        border-color: rgba(70, 70, 70, 0.6);
        box-shadow: 0 0 0 2px rgba(70, 70, 70, 0.18), 0 8px 24px rgba(0, 0, 0, 0.18);
      }
