*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #1c1b18;
  overflow: hidden;
  position: fixed;
  inset: 0;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", "Comic Neue",
    "Segoe Print", cursive, sans-serif;
}

#frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: radial-gradient(ellipse at 50% 40%, #2a2924 0%, #1c1b18 70%);
}

#game {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  touch-action: none;
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
  box-shadow:
    0 0 0 3px #111,
    0 18px 50px rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  background: #f3ebd8;
}

#rotate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #1c1b18;
  color: #d7c9a6;
  text-align: center;
  font-size: 28px;
  line-height: 1.25;
}

#rotate.show {
  display: flex;
}

#rotate p {
  margin: 0;
  max-width: 22rem;
}
