html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #050b16;
  color: #e8eef8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#game canvas {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}

#safe-probe {
  position: fixed;
  pointer-events: none;
  visibility: hidden;
  padding-top: 0;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  padding-bottom: 0;
  padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}

#loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050b16;
  transition: opacity 0.35s ease;
}

#loader.gone {
  opacity: 0;
  pointer-events: none;
}

.loader-sign {
  width: 92vw;
  max-width: 520px;
  padding: 28px 28px 24px;
  background: #1c2839;
  border: 2px solid #0b1320;
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.45);
  text-align: center;
}

.loader-sign h1 {
  margin: 18px 0 8px;
  font-family: "Arial Narrow", Impact, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

@media (min-width: 400px) {
  .loader-sign h1 { font-size: 9vw; }
}

@media (min-width: 712px) {
  .loader-sign h1 { font-size: 64px; }
}

.loader-sign p {
  margin: 0 0 18px;
  color: #2fe6e6;
  font-weight: 700;
}

.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    #f2c230 0,
    #f2c230 12px,
    #10151d 12px,
    #10151d 24px
  );
}
