/* A little fall into the same orange valley as the game. No external fonts. */
#boot {
  --boot-ink: #294d53; --boot-paper: #fffdf4; --boot-orange: #ff980b;
  position: fixed; z-index: 2000; top: 0; right: 0; bottom: 0; left: 0;
  overflow-y: auto; overflow-x: hidden; color: var(--boot-ink); background: #fffdf4;
  background: linear-gradient(180deg, #e3f4eb 0%, #fffdf4 60%, #fff3d6 100%);
  font: 14px/1.65 'Microsoft YaHei', 'PingFang SC', sans-serif;
  text-align: center; padding: 16px 24px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
#boot[hidden], #boot [hidden] { display: none !important; }
#boot:not([hidden]) ~ #app { visibility: hidden; }
#boot *, #boot *::before, #boot *::after { box-sizing: border-box; }
#boot::before, #boot::after {
  content: ''; position: fixed; pointer-events: none; z-index: -1;
  width: 50vw; height: 34vh; bottom: -21vh; border-radius: 50%; background: #ffb336;
}
#boot::before { left: -15vw; transform: rotate(15deg); }
#boot::after { right: -15vw; transform: rotate(-15deg); background: #d4e5c1; }
#boot .boot-card { width: 100%; max-width: 440px; min-height: 100%; margin: auto; display: flex; flex-direction: column; justify-content: center; }
#boot .boot-art { position: relative; z-index: 0; flex: 0 0 auto; height: 340px; height: min(43vh, 340px); min-height: 160px; margin: 0 -12px 12px; }
#boot .boot-faller { position: absolute; width: 25%; top: 29%; left: 0; --boot-tilt: -22deg; }
#boot .boot-faller::before {
  content: ''; position: absolute; z-index: -1; height: 190%; width: 68%; left: 16%; bottom: 60%;
  background: linear-gradient(0deg, #f9bba5, transparent); border-radius: 0 0 30px 30px;
  transform: rotate(var(--boot-tilt, 0deg)); transform-origin: center bottom;
}
#boot .boot-faller .boot-avatar { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: hidden; transform: rotate(var(--boot-tilt, 0deg)); animation: boot-drift 3.8s ease-in-out infinite; }
#boot .boot-faller.sky { width: 24%; left: auto; right: 0; top: 15%; --boot-tilt: 18deg; }
#boot .boot-faller.sky::before { background: linear-gradient(0deg, #bdeff3, transparent); }
#boot .boot-faller.sky .boot-avatar { animation-delay: -.9s; }
#boot .boot-faller.sun { width: 43%; left: 29%; top: 36%; --boot-tilt: 9deg; }
#boot .boot-faller.sun::before { height: 170%; background: linear-gradient(0deg, #b7dfdf, transparent); }
#boot .boot-faller.sun .boot-avatar { animation-delay: -1.9s; }
#boot .mantou { filter: drop-shadow(0 1px 1px #91aaa9); }
#boot .boot-faller.leaf { width: 18%; left: 45%; top: 2%; --boot-tilt: -10deg; }
#boot .boot-faller.leaf::before { background: linear-gradient(0deg, #d3e6b7, transparent); }
#boot .boot-faller.leaf .boot-avatar { animation-delay: -2.6s; }
#boot .boot-faller.fox { width: 19%; left: 13%; top: 0; --boot-tilt: -16deg; }
#boot .boot-faller.fox::before { background: linear-gradient(0deg, #ffdbb5, transparent); }
#boot .boot-faller.fox .boot-avatar { animation-delay: -1.3s; }
#boot .boot-faller.cat { width: 21%; left: 1%; top: 66%; --boot-tilt: -18deg; }
#boot .boot-faller.cat::before { height: 140%; background: linear-gradient(0deg, #f8e6b4, transparent); }
#boot .boot-faller.cat .boot-avatar { animation-delay: -.4s; }
#boot .boot-faller.penguin { width: 22%; left: auto; right: 0; top: 61%; --boot-tilt: 17deg; }
#boot .boot-faller.penguin::before { height: 140%; background: linear-gradient(0deg, #c6d8ed, transparent); }
#boot .boot-faller.penguin .boot-avatar { animation-delay: -3.1s; }
#boot .boot-spark { position: absolute; color: #fff; font-size: 44px; line-height: 1; text-shadow: 0 2px #e4e9cd; }
#boot .boot-spark.a { left: 30%; top: 22%; font-size: 26px; }
#boot .boot-spark.b { right: 0; top: 43%; font-size: 30px; }
#boot .boot-spark.c { left: 25%; bottom: 2%; font-size: 25px; color: #ffca65; }
#boot .boot-logo { display: block; width: 78%; max-width: 310px; height: auto; margin: 0 auto 14px; }
#boot h1 { font-size: 18px; font-weight: 700; margin: 0 0 5px; }
#boot p { margin: 6px 0; }
#boot #bootStage { min-height: 24px; font-size: 12px; color: #5b786d; }
#boot .boot-progress-area { margin: 18px 0 0; }
#boot .boot-progress { height: 23px; padding: 3px; border: 2px solid #397878; border-radius: 10px; background: #d6e7df; box-shadow: inset 0 2px 3px #b7d0c3; overflow: hidden; }
#boot #bootFill { display: block; width: 0; height: 100%; background: #6ed7d7; border-radius: 5px; box-shadow: inset 0 3px #adf0e9; transition: width .2s ease; }
#boot .boot-progress-caption { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: #5b786d; }
#boot #bootPercent { font-variant-numeric: tabular-nums; font-weight: bold; }
#boot .boot-support { margin: 12px 0 0; font-size: 12px; }
#boot .boot-version { font-size: 10px; color: #738578; }
#boot .boot-actions { display: flex; flex-wrap: wrap; justify-content: center; margin: 10px -4px 0; }
#boot .boot-actions a, #boot button {
  display: inline-block; min-height: 44px; padding: 10px 15px; margin: 4px; border: 1px solid #9eb7a2;
  border-radius: 14px; color: #294d53; background: #fffdf4; font: inherit; text-decoration: none; cursor: pointer;
}
#boot #bootRetry { background: #ff980b; color: #fff; border-color: #ff980b; font-weight: bold; }
#boot button:disabled { opacity: .5; cursor: default; }
#boot a:focus, #boot button:focus, #boot summary:focus, #boot textarea:focus { outline: 3px solid #d68e21; outline-offset: 3px; }
#boot #bootError { color: #885135; font-size: 13px; }
#boot #bootSlow { color: #76603c; }
#boot details { text-align: left; margin-top: 8px; }
#boot summary { min-height: 44px; padding: 10px 0; cursor: pointer; text-align: center; }
#boot .boot-diagnostics-body { padding: 12px; background: #edf1e5; border-radius: 14px; }
#boot .boot-diagnostics-body a { color: #396963; padding: 10px 4px; }
#boot textarea { display: block; width: 100%; min-height: 180px; max-height: 300px; resize: vertical; border: 1px solid #b4c6b7; border-radius: 8px; padding: 10px; background: #fffdf4; color: #294d53; font: 11px/1.6 Consolas, monospace; white-space: pre-wrap; overflow-wrap: break-word; -webkit-user-select: text; user-select: text; }
#boot .boot-copy-status { min-height: 20px; }
#boot[data-mode="error"] .boot-art, #boot[data-mode="help"] .boot-art { height: 145px; min-height: 145px; max-width: 250px; width: 100%; margin: 0 auto 12px; }
#boot[data-mode="error"] .boot-logo, #boot[data-mode="help"] .boot-logo { max-width: 200px; }
#boot[data-mode="error"] .boot-faller.sun, #boot[data-mode="help"] .boot-faller.sun { width: 35%; top: 30%; left: 32%; }
#boot[data-mode="error"] h1 { font-size: 24px; }
#boot[data-mode="error"] .boot-progress-area, #boot[data-mode="help"] .boot-progress-area { display: none; }
#boot[data-mode="error"] .boot-extra, #boot[data-mode="help"] .boot-extra { display: none; }
#boot[data-mode="error"] .boot-avatar, #boot[data-mode="help"] .boot-avatar { animation: none; }
@keyframes boot-drift { 0%, 100% { transform: translateY(-7px) rotate(calc(var(--boot-tilt, 0deg) - 5deg)); } 50% { transform: translateY(7px) rotate(calc(var(--boot-tilt, 0deg) + 5deg)); } }
@media (max-height: 600px) and (orientation: landscape) {
  #boot .boot-card { display: grid; max-width: 740px; grid-template-columns: 34% minmax(0, 1fr); grid-template-areas: 'art title' 'art stage' 'art progress' 'logo support'; column-gap: 24px; align-content: center; align-items: center; }
  #boot .boot-art { grid-area: art; height: 155px; min-height: 155px; width: 100%; margin: 0; }
  #boot .boot-faller.sun { width: 38%; top: 30%; }
  #boot .boot-logo { grid-area: logo; max-width: 190px; width: 95%; margin: 0 auto; }
  #boot h1 { grid-area: title; }
  #boot #bootStage { grid-area: stage; }
  #boot .boot-progress-area { grid-area: progress; margin-top: 8px; }
  #boot .boot-support { grid-area: support; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { #boot .boot-faller .boot-avatar { animation: none; } #boot #bootFill { transition: none; } }
