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

  html, body {
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Share Tech Mono', monospace;
    color: #00ff9d;
    user-select: none;
  }

  #canvas-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #4a90e2 0%, #9ec5e8 60%, #f5e8d0 100%);
  }

  canvas {
    display: block;
    background: linear-gradient(180deg, #4a90e2 0%, #9ec5e8 60%, #f5e8d0 100%);
  }

  /* ===== HUD ===== */
  .hud {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 6px rgba(0, 255, 157, 0.8);
  }

  .hud-corner {
    position: absolute;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 30, 20, 0.6), rgba(0, 60, 40, 0.3));
    border: 1px solid rgba(0, 255, 157, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.15), inset 0 0 20px rgba(0, 255, 157, 0.05);
    backdrop-filter: blur(2px);
    min-width: 180px;
  }

  .hud-tl { top: 20px; left: 20px; clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
  .hud-tr { top: 20px; right: 20px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
  .hud-bl { bottom: 20px; left: 20px; clip-path: polygon(0 14px, 14px 0, 100% 0, 100% 100%, 0 100%); }
  .hud-br { bottom: 20px; right: 20px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }

  .hud-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(0, 255, 157, 0.6);
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
  }

  .hud-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #00ff9d;
    letter-spacing: 1px;
  }

  .hud-unit {
    font-size: 10px;
    color: rgba(0, 255, 157, 0.5);
    margin-left: 4px;
    letter-spacing: 1px;
  }

  .hud-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 8px;
    font-size: 12px;
  }

  .hud-row span:last-child {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #ffe940;
    text-shadow: 0 0 6px rgba(255, 233, 64, 0.6);
  }

  /* Center reticle */
  .reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
  }

  .reticle::before, .reticle::after {
    content: '';
    position: absolute;
    background: rgba(0, 255, 157, 0.7);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.8);
  }
  .reticle::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
  .reticle::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }

  .reticle-box {
    position: absolute;
    top: 50%; left: 50%;
    width: 30px; height: 30px;
    border: 1px solid rgba(0, 255, 157, 0.6);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
  }

  .reticle-dot {
    position: absolute;
    top: 50%; left: 50%;
    width: 3px; height: 3px;
    background: #00ff9d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #00ff9d;
  }

  /* Pitch ladder */
  .pitch-ladder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 1px;
    pointer-events: none;
  }

  .pitch-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: rgba(0, 255, 157, 0.5);
    box-shadow: 0 0 4px rgba(0, 255, 157, 0.5);
  }

  .pitch-line::before {
    content: attr(data-angle);
    position: absolute;
    left: -28px;
    top: -8px;
    font-size: 11px;
    color: rgba(0, 255, 157, 0.7);
  }

  .pitch-line::after {
    content: attr(data-angle);
    position: absolute;
    right: -28px;
    top: -8px;
    font-size: 11px;
    color: rgba(0, 255, 157, 0.7);
  }

  /* Compass strip */
  .compass {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 36px;
    background: linear-gradient(180deg, rgba(0, 30, 20, 0.7), rgba(0, 50, 35, 0.4));
    border: 1px solid rgba(0, 255, 157, 0.4);
    overflow: hidden;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  }

  .compass-track {
    position: absolute;
    top: 0;
    height: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #00ff9d;
    font-size: 13px;
    letter-spacing: 1px;
  }

  .compass-mark {
    display: inline-block;
    width: 40px;
    text-align: center;
  }

  .compass-center {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #ffe940;
    filter: drop-shadow(0 0 4px #ffe940);
  }

  /* Boot overlay */
  .boot {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s;
  }

  .boot.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .boot-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 64px;
    letter-spacing: 12px;
    color: #00ff9d;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.6), 0 0 40px rgba(0, 255, 157, 0.3);
    margin-bottom: 8px;
  }

  .boot-sub {
    font-size: 12px;
    letter-spacing: 6px;
    color: rgba(0, 255, 157, 0.5);
    margin-bottom: 60px;
    font-family: 'Orbitron', sans-serif;
  }

  .boot-controls {
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 24px 36px;
    background: rgba(0, 30, 20, 0.4);
    margin-bottom: 40px;
    max-width: 480px;
  }

  .boot-controls h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: #ffe940;
    margin-bottom: 14px;
    text-align: center;
  }

  .control-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 20px;
    font-size: 13px;
  }

  .control-grid kbd {
    display: inline-block;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.4);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    color: #00ff9d;
    font-size: 11px;
    min-width: 24px;
    text-align: center;
  }

  .control-grid span {
    color: rgba(0, 255, 157, 0.8);
    letter-spacing: 1px;
  }

  .boot-btn {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 4px;
    padding: 14px 42px;
    background: transparent;
    color: #00ff9d;
    border: 2px solid #00ff9d;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.6);
  }

  .boot-btn:hover {
    background: rgba(0, 255, 157, 0.15);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.6);
    transform: scale(1.04);
  }

  /* Warnings */
  .warning {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 6px;
    color: #ff3a3a;
    text-shadow: 0 0 12px #ff3a3a, 0 0 24px rgba(255, 58, 58, 0.6);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 8px 24px;
    border: 2px solid #ff3a3a;
    background: rgba(40, 0, 0, 0.6);
  }

  .warning.show { opacity: 1; animation: blink 0.5s infinite; }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* Crash screen */
  .crash {
    position: fixed;
    inset: 0;
    background: rgba(40, 0, 0, 0.85);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
  }

  .crash.show { opacity: 1; pointer-events: all; }

  .crash h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 80px;
    color: #ff3a3a;
    text-shadow: 0 0 30px #ff3a3a;
    letter-spacing: 12px;
    margin-bottom: 20px;
  }

  .crash p {
    font-size: 16px;
    color: rgba(255, 200, 200, 0.8);
    margin-bottom: 36px;
    letter-spacing: 3px;
  }

  .crash button {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 4px;
    padding: 14px 36px;
    background: transparent;
    color: #ff3a3a;
    border: 2px solid #ff3a3a;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 58, 58, 0.4);
  }

  .crash button:hover {
    background: rgba(255, 58, 58, 0.2);
  }

  /* Throttle bar */
  .throttle-bar {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 240px;
    background: rgba(0, 30, 20, 0.5);
    border: 1px solid rgba(0, 255, 157, 0.4);
  }

  .throttle-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, #00ff9d, #ffe940 80%, #ff8c1a 100%);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
    transition: height 0.1s;
  }

  .throttle-label {
    position: absolute;
    left: 40px;
    top: -20px;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(0, 255, 157, 0.6);
    font-family: 'Orbitron', sans-serif;
  }

  /* Roll indicator */
  .roll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    pointer-events: none;
  }

  .roll-indicator svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(0, 255, 157, 0.6));
  }

  .roll-indicator-needle {
    transform-origin: 80px 80px;
    transition: transform 0.05s;
  }
