/* Shared base for every page: full-screen, no scrolling, no zoom, no text selection */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Home button shown in every game */
.home {
  position: fixed;
  z-index: 50;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-size: 28px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
}

.home:active {
  transform: scale(0.92);
}
