*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

h1 {
  margin: 0;
  line-height: 0;
}

/* A logo cresce com a tela, mas sem passar de 560px nem de 60% da altura. */
img {
  display: block;
  width: min(78vw, 560px);
  height: auto;
  max-height: 60vh;
  max-height: 60dvh;
  object-fit: contain;
  animation: surgir 1.2s ease-out both;
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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