html, body {
  margin: 0;
  width: 100%;
  height: 100%;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  overflow: hidden;
  background: #51c7ed;
  color: #38203f;
  font-family: "Microsoft YaHei", sans-serif;
}
#canvas {
  display: block;
  width: min(100vw, calc(100dvh * 390 / 844)) !important;
  height: min(100dvh, calc(100vw * 844 / 390)) !important;
  flex: none;
  border: 0;
  outline: none;
  touch-action: none;
}
#status {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #51c7ed;
  padding: 24px;
  box-sizing: border-box;
}
#status img {
  object-fit: contain;
}
#status p {
  margin: 0;
  text-align: center;
  line-height: 1.5;
}
#status-progress {
  width: min(280px, 80vw);
  height: 12px;
  accent-color: #e838a5;
}
#status-notice {
  max-width: 340px;
  overflow-wrap: anywhere;
}
#status-retry {
  background: #ffd64f;
  color: #38203f;
  border: 2px solid #38203f;
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 20px;
  font: inherit;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
