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

html {
  height: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
}

.app-shell {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.game-wrapper {
  position: relative;
  width: min(
    100%,
    720px,
    calc(
      (100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 720 / 1280
    )
  );
  aspect-ratio: 720 / 1280;
  max-height: calc(
    100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  overflow: hidden;
  touch-action: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    #4357ad 0%,
    #465bb0 20%,
    #4c65b7 40%,
    #506aba 60%,
    #536ebd 80%,
    #5672c0 100%
  );
  touch-action: none;
}
