/* Il sito della lobby Snapwin Games (decisione 0047): la lobby a tutta pagina, e prima di lei lo stemma
   sul blu del disco, i colori della lobby (lobby/stile.css: --sw-blu, --sw-guanto, --sw-corallo-scuro). */
:root {
  color-scheme: dark;
  --blu: #0b1672;
  --blu-notte: #050b45;
  --guanto: #ece6ee;
  --corallo: #d22f2b;
  --turchese: #12efee;
}

html,
body {
  margin: 0;
  height: 100%;
  background: radial-gradient(120% 90% at 50% 38%, #1e2fa6 0%, var(--blu) 55%, var(--blu-notte) 100%) fixed var(--blu);
  color: var(--guanto);
  font: 500 1rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.sito {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.sito iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.stato {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
}

.stato[hidden] {
  display: none;
}

.stato__stemma {
  width: clamp(5rem, 22vmin, 8rem);
  height: auto;
  filter: drop-shadow(0 0.6rem 1.4rem rgb(5 11 69 / 0.6));
  animation: respiro 1.6s ease-in-out infinite;
}

.is-errore .stato__stemma {
  animation: none;
  opacity: 0.7;
}

.stato__frase {
  margin: 0;
  max-width: 26rem;
  font-size: 1.0625rem;
  text-wrap: balance;
}

.stato__riprova {
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--corallo);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}

.stato__riprova:hover {
  background: #b8241f;
}

.stato__riprova:active {
  transform: scale(0.97);
}

.stato__riprova:focus-visible {
  outline: 2px solid var(--turchese);
  outline-offset: 3px;
}

@keyframes respiro {
  50% {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stato__stemma {
    animation: none;
  }

  .stato__riprova {
    transition: none;
  }
}
