/* The game page: a full-window canvas and a loading screen in the account's colors. */

html,
body,
#canvas {
  margin: 0;
  padding: 0;
  border: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #f6f1e9;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#canvas {
  display: block;
}

#canvas:focus {
  outline: none;
}

#status {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: #f6f1e9;
  color: #1d1b2e;
  font: 800 18px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}

#status-logo {
  width: min(70vw, 360px);
  height: auto;
}

#status-progress {
  width: min(70vw, 320px);
  height: 14px;
  accent-color: #e9a23b;
}

#status-back {
  display: none;
  color: #1d1b2e;
}

#status.failed #status-progress {
  display: none;
}

#status.failed #status-back {
  display: inline;
}
