/* Tesla Flip — full-screen canvas, mobile-first.
 * Safe-area insets are exposed as CSS variables so game.js can read them. */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  color-scheme: dark;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #241a4d;           /* matches the top of the sky gradient */
  overflow: hidden;
  overscroll-behavior: none;     /* no pull-to-refresh / scroll chaining */
  -webkit-text-size-adjust: 100%;
}

body {
  position: fixed;               /* kills iOS rubber-band scrolling */
  inset: 0;
  touch-action: none;            /* no browser pan/zoom/double-tap-zoom gestures */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-family: system-ui, sans-serif;
}

#game {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
  outline: none;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: 600 18px/1.4 system-ui, sans-serif;
  padding: 24px;
  text-align: center;
}
