
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html {
    touch-action: none;
    -webkit-text-size-adjust: 100%;
  }
  body {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    touch-action: none;
  }
  #gameWrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: none;
  }
  #ui {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    pointer-events: none;
    z-index: 10;
  }
  .ui-block {
    background: rgba(0,0,0,0.7);
    border: 1px solid #0ff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: clamp(10px, 2vw, 14px);
    color: #0ff;
    text-shadow: 0 0 8px #0ff;
    letter-spacing: 1px;
  }
  #mobileControls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: none;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px 20px 44px;
    pointer-events: none;
    z-index: 20;
  }
  .mBtn {
    width: clamp(55px,14vw,75px);
    height: clamp(55px,14vw,75px);
    border-radius: 50%;
    border: 2px solid #0ff;
    background: rgba(0,255,255,0.15);
    color: #0ff;
    font-size: clamp(18px,5vw,26px);
    display: flex; align-items: center; justify-content: center;
    pointer-events: all;
    cursor: pointer;
    text-shadow: 0 0 8px #0ff;
    box-shadow: 0 0 12px #0ff4;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mBtn:active { background: rgba(0,255,255,0.35); }
  #moveGroup { display: flex; gap: 8px; }
  @media (pointer: coarse) {
    #mobileControls { display: flex; }
  }

