/* Z98 split from index.html — order matters: files are linked in this sequence. */
  :root{
    --bg:#0c1108; --ink:#eaf2dc; --muted:#93a37e;
    --green:#8cbf3f; --amber:#e7b54a; --steel:#9bb0c0; --danger:#e0603a; --hp:#5fd06a;
    --panel:rgba(16,22,12,.86); --line:rgba(255,255,255,.10);
    --font:'Saira Condensed','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
  }
  *{margin:0;padding:0;box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
  html,body{width:100%;height:100%;overflow:hidden;background:var(--bg);font-family:var(--font);color:var(--ink);
    -webkit-tap-highlight-color:transparent;touch-action:none;overscroll-behavior:none;}
  /* Fullscreen layers use the VISIBLE height (--appH), never the layout viewport: on a phone with the
     URL bar showing those differ by 50–120px, which is exactly what pushed the buttons off-screen. */
  /* The canvas stays on the (stable) layout viewport on purpose: iOS resizes the visible viewport on every
     frame of a toolbar slide, and re-allocating the WebGL + bloom render targets that often is the flicker.
     UI layers below follow --appH so no control ever hides behind the browser chrome. */
  #app,#app > canvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none;}   /* the GAME canvas fills the viewport (buffer set via setSize(...,false)) · Z120 only that one: the rule used to pin every UI canvas (level previews, deploy map) to the top of the screen */
  canvas{display:block;}
  /* desktop aiming reticle — a NATIVE cursor (hardware-smooth, follows the pointer 1:1; bigger + bolder than default).
     Native cursor = no lag during the render loop, and the OS keeps it inside the window automatically. */
  body:not(.touch) #app,body:not(.touch) canvas{cursor:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g fill='none' stroke-linecap='round'><circle cx='20' cy='20' r='13' stroke='%23000' stroke-width='5'/><path d='M20 2.5v8M20 29.5v8M2.5 20h8M29.5 20h8' stroke='%23000' stroke-width='5'/><circle cx='20' cy='20' r='13' stroke='%23ffce4a' stroke-width='2.4'/><path d='M20 2.5v8M20 29.5v8M2.5 20h8M29.5 20h8' stroke='%23ffce4a' stroke-width='2.4'/></g><circle cx='20' cy='20' r='2.6' fill='%23000'/><circle cx='20' cy='20' r='1.5' fill='%23fff'/></svg>") 20 20,crosshair;}

