/* =================== BASE ===================
   Design tokens, reset and the stage.
   The stage is a fixed-size canvas (1920×1080 landscape, 1080×H portrait) that
   js/layout.js scales to the screen with `zoom`. Every px value in the game is a
   stage px. Portrait overrides sit next to the rule they change:
   #stage[data-layout="portrait"] … */
:root{
  --ink:#111114;
  --red:#e0483f;
  --green:#2f9e5b;
  --font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;height:100dvh;background:#000;overflow:hidden;overscroll-behavior:none}
body{display:flex;align-items:center;justify-content:center;font-family:var(--font);color:var(--ink);
  -webkit-font-smoothing:antialiased;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:none}
#probe{position:fixed;left:0;top:0;width:0;visibility:hidden;
  padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}

#stage{position:relative;flex:none;width:1920px;height:1080px;overflow:hidden;background:#fff;touch-action:none;
  --G:780px;--H:1080px;--safe-top:0px;--safe-bottom:0px}
#stage[data-layout="portrait"]{--G:calc(var(--H) * .74)}
.instant,.instant *{transition:none!important;animation:none!important}
.layer{position:absolute;inset:0}
.btn{cursor:pointer;touch-action:manipulation}
