/*
 * Page layout: the game component fills the whole window. The splash screen, the letterboxed
 * canvas and the "rotate your device" hint belong to the game shell (ExagonGameElement) and live
 * in its Shadow DOM; the CSS variables at the bottom of this file change their colors, and
 * `::part()` selectors (for example `roadmap-rumble-game::part(start)`) can style them further.
 */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #0f172a;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x pan-y;
}

body {
  height: 100vh;  /* fallback for older browsers */
  height: 100dvh; /* excludes the toolbars of mobile browsers */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
}

#game-container {
  width: 100%;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}

/* Shell theme: background, text, accent color of the Start button, splash font */
#game-container > * {
  --exagon-shell-bg: #0f172a;
  --exagon-shell-fg: #e2e8f0;
  --exagon-shell-accent: #fbbf24;
  --exagon-shell-font: system-ui, sans-serif;
}
