/* RUNE PRESSURE - chrome-free full-bleed canvas shell.
   The canvas draws everything: arena, HUD, grimoire, title and game-over screens. */

:root {
  --ink: #07070d;
  --runeglow: #8fe3ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: #cfe8ff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* Kill every mobile foot-gun: no double-tap zoom, no scroll chaining, no
     long-press callout, no blue tap flash, no accidental text selection. */
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: fixed;
  inset: 0;
  /* Respect notches / dynamic islands / home indicator on iOS & Android. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

#stage {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

#boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a6d8c;
  pointer-events: none;
}

#boot[data-error='true'] {
  color: #ff6b81;
  white-space: pre-wrap;
  padding: 24px;
  text-align: center;
}
