/* Before the script runs: the brand scene (design/mobile 13-splash), drawn by the web view itself so the first frame
   is already the game and there is no white flash and no second splash (Capacitor's own splash lasts 0 ms).
   main.tsx removes #splash on the first render.
   A file of its own because production's policy allows no inline style (deploy/Caddyfile). */
html {
  background: #07080b;
}
#splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px calc(env(safe-area-inset-bottom, 0px) + 40px);
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.15) 0, rgba(7, 8, 11, 0) 30%, rgba(7, 8, 11, 0.2) 55%, #07080b 78%),
    url('/brand/splash-scene.webp') center top / cover no-repeat #07080b;
  color: #f5f6f8;
  text-align: center;
}
#splash img {
  width: 56px;
  height: 56px;
}
#splash .splash-word {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 44px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}
#splash .splash-load {
  position: relative;
  width: 140px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: #1f232c;
  overflow: hidden;
}
/* The bar sweeps while the game loads: one moving thing, the only one. */
#splash .splash-load::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  border-radius: 2px;
  background: #38caff;
  animation: splash-sweep 1.3s ease-in-out infinite alternate;
}
@keyframes splash-sweep {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(122%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #splash .splash-load::after {
    animation: none;
    width: 55%;
  }
}
