/* Loading screen for /jugar/, shown while the Flutter engine downloads.
   Uses the game's own art from its build (assets/lib/assets/…). */
html,
body {
  margin: 0;
  height: 100%;
  background: #0d1713;
}
#reino-splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
  box-sizing: border-box;
  color: #f0e6cc;
  font-family: Georgia, 'Times New Roman', serif;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.55), rgba(13, 23, 19, 0.9)),
    url('assets/lib/assets/gradient-green.png') center / cover no-repeat,
    #0d1713;
  transition: opacity 0.35s ease;
}
#reino-splash.is-done {
  opacity: 0;
  pointer-events: none;
}
#reino-splash .crown {
  width: min(34vw, 150px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
  animation: reino-bob 2.4s ease-in-out infinite;
}
#reino-splash .title {
  width: min(78vw, 360px);
  height: auto;
  margin-top: -8px;
}
#reino-splash .bar {
  width: min(60vw, 220px);
  height: 4px;
  overflow: hidden;
  background: rgba(240, 212, 138, 0.18);
  border-radius: 2px;
}
#reino-splash .bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: #f0d48a;
  border-radius: 2px;
  animation: reino-load 1.2s ease-in-out infinite;
}
#reino-splash .status {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
}
#reino-splash .back {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 16px;
  color: #c9b98f;
  font-size: 14px;
  text-decoration: none;
}
#reino-splash .back:hover {
  color: #f0d48a;
}
#reino-splash.is-error .bar {
  display: none;
}
@keyframes reino-bob {
  50% { transform: translateY(-6px); }
}
@keyframes reino-load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  #reino-splash .crown,
  #reino-splash .bar::after {
    animation: none;
  }
}

