:root {
  --ink: #8fe3ff;
  --bg: #04121f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--ink);
}

#app {
  position: fixed;
  inset: 0 0 22px 0;
  display: block;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

#rotate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 18, 31, 0.96);
  text-align: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#rotate[hidden] {
  display: none;
}

.rotate-icon {
  font-size: 64px;
  display: block;
  animation: spin 2.4s ease-in-out infinite;
}

@keyframes spin {
  0%,
  40% {
    transform: rotate(0deg);
  }
  60%,
  100% {
    transform: rotate(90deg);
  }
}

#credit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #4a8fb0;
  background: linear-gradient(180deg, rgba(4, 18, 31, 0), rgba(4, 18, 31, 0.9));
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 30;
  pointer-events: none;
}
