/* Abertura animada do ecra de boas-vindas (V516/V517). So transform e opacity fora dos canvas. */

/* Com a abertura ativa, o poster e as brasas antigas ficam de fora (MENU_ABERTURA = "nenhuma" volta a eles). */
.welcome--abertura .welcome__poster,
.welcome--abertura .welcome__bg,
.welcome--abertura .welcome__embers {
  display: none;
}

.abertura {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #1a0c06 0%, #0a0504 55%, #040302 100%);
  pointer-events: none;
}

.abertura canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.abertura__ola {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  margin: 0;
  padding-left: 0.42em;
  color: #eadcb8;
  font-family: var(--serif);
  font-size: clamp(15px, 2.1vw, 22px);
  letter-spacing: 0.42em;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  pointer-events: none;
}

/* A frase aparece depois do logo; sem animacao (reduced-motion) fica logo visivel. */
.abertura__ola.is-intro {
  animation: abertura-ola 1.4s ease 2.4s backwards;
}

@keyframes abertura-ola {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
