* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #101015;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
  touch-action: none;
  overscroll-behavior: none;
}
body {
  height: 100dvh;
}
.mobile-game {
  width: var(--game-width, 100%);
  height: var(--game-height, 100dvh);
}
.mobile-game.ios-installed {
  /* The decorative page may extend beyond WebKit's reported touch viewport.
     Keep the interactive canvas at --game-height; never stretch its input. */
  height: 100vh;
  height: 100lvh;
  min-height: var(--game-height, 100dvh);
  background-image: url("StartGameUI/snowBg.png");
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.mobile-game body {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--game-width, 100%);
  height: var(--game-height, 100dvh);
  overflow: hidden;
}
.mobile-game #layaContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.mobile-game #loading {
  right: auto;
  bottom: auto;
  width: var(--game-width, 100%);
  height: var(--game-height, 100dvh);
}
#safe-area {
  position: fixed;
  visibility: hidden;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
#loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100;
  background: radial-gradient(
    ellipse at top,
    #343145 0,
    #171620 45%,
    #101015 85%
  );
}
.loading-content {
  width: min(360px, 100%);
  padding: 24px;
  text-align: center;
}
.loading-content img {
  border-radius: 24px;
  box-shadow: 0 12px 40px #0006;
}
h1 {
  font-size: 28px;
  margin: 24px 0;
}
#loading-status {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5c0cf;
}
button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 9px;
  padding: 14px 25px;
  background: #c5f57a;
  color: #142009;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
#loading-progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 3px;
  accent-color: #c5f57a;
}
#loading-progress::-webkit-progress-bar {
  background: #494353;
  border-radius: 3px;
}
#loading-progress::-webkit-progress-value {
  background: #c5f57a;
  border-radius: 3px;
}
#notice {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 14px 20px;
  background: #252433;
  border: 1px solid #615871;
  border-radius: 10px;
  max-width: 90vw;
  text-align: center;
  font-size: 14px;
}
#diagnostics {
  position: fixed;
  z-index: 500;
  left: 0;
  bottom: 0;
  max-height: 30vh;
  max-width: 100vw;
  overflow: auto;
  background: #000d;
  color: #fff;
  font: 11px monospace;
  white-space: pre-wrap;
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
canvas {
  touch-action: none;
}
#server-disconnected {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #101015f5;
}
#server-disconnected > div {
  width: min(460px, 100%);
  padding: 28px;
  background: #22212e;
  border: 1px solid #615871;
  border-radius: 14px;
  text-align: center;
}
#server-disconnected h2 {
  margin-top: 0;
  font-size: 22px;
}
#server-reconnect:disabled {
  cursor: wait;
  opacity: 0.7;
}

canvas {
  cursor: default;
}
@media (max-height: 600px) {
  .loading-content img {
    width: 64px;
    height: 64px;
  }
}
