/*
 * The first screen, plain HTML in index.html: it shows while the scripts load and start, before
 * React draws the loading screen over it. Without it the WebView shows an empty black page for
 * a second or more on a slow phone. A stylesheet of its own, not inline styles, so a page with a
 * strict Content-Security-Policy shows it too.
 */
html,
body {
  margin: 0;
  height: 100%;
  background: #14110c;
}

.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  color: #fbf3df;
  font-family: system-ui, sans-serif;
  text-align: center;
  background: radial-gradient(ellipse at 50% 42%, #2c2416 0%, #14110c 62%);
}

/* A mushroom of light, breathing. */
.boot-cap {
  width: 64px;
  height: 34px;
  border-radius: 64px 64px 10px 10px;
  background: radial-gradient(ellipse at 40% 30%, #ffd9a0, #c98a3a 70%);
  box-shadow: 0 0 34px rgba(255, 176, 74, 0.55);
  animation: boot-breathe 1.8s ease-in-out infinite;
}

.boot-cap::after {
  content: '';
  display: block;
  width: 22px;
  height: 26px;
  margin: 32px auto 0;
  border-radius: 6px 6px 10px 10px;
  background: #f3e6c8;
}

.boot-title {
  margin: 26px 0 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.boot-bar {
  width: min(240px, 60vw);
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #ffb04a, #9ccc5e);
  animation: boot-slide 1.4s ease-in-out infinite;
}

/* Only if the game has not started after a long while: what to do about it. */
.boot-hint {
  max-width: 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #cdbf9f;
  opacity: 0;
  animation: boot-show 0.6s ease-out 25s forwards;
}

@keyframes boot-breathe {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 48px rgba(255, 176, 74, 0.75);
  }
}

@keyframes boot-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

@keyframes boot-show {
  to {
    opacity: 1;
  }
}
