/* Thumb Arcade page shell. The game itself is drawn on the canvas; this only sizes it. */
html, body {
  margin: 0;
  height: 100%;
  background: #07060f;
  overscroll-behavior: none; /* no pull-to-refresh / rubber-banding while playing */
}

/* Fixed full-viewport stage. `inset: 0` tracks the dynamic viewport as mobile browser bars
   show/hide; the padding keeps the canvas clear of notches and the home indicator. */
#stage {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  /* subtle diagonal weave behind the canvas on wide (desktop) windows */
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 8px, transparent 8px 16px),
    radial-gradient(circle at 50% 40%, #1c1640, #07060f 70%);
  touch-action: none; /* taps go to the game: no scroll, pinch or double-tap zoom */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#fit {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* The backing store is an integer multiple of the 224px-wide game buffer (see core.js) and
   is scaled down slightly by the browser, which keeps pixels evenly sized. */
#screen {
  display: block;
  box-shadow: 0 0 0 2px #0a0a1c, 0 0 40px rgba(90, 80, 220, 0.35);
}

noscript {
  position: fixed;
  inset: auto 0 12px;
  text-align: center;
  color: #fff;
  font: 14px/1.4 system-ui, sans-serif;
}
