/* El arranque con el escudo (static/arranque.js), en el móvil y en el ordenador. Solo se anima la transformación y la opacidad (lo
   que mueve la tarjeta gráfica), para que no dé tirones en un teléfono. El escudo, 263 × 399 px: nítido hasta 3x a 130 px de ancho. */
.arranque {
  --arranque-fondo: #0a0a0a;
  --arranque-centro: #1c1810;
  --arranque-oro: rgba(214, 162, 46, .24);
  --arranque-luz: rgba(255, 248, 226, .85);
  --arranque-curva: cubic-bezier(.16, 1, .3, 1);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 80% at 50% 46%, var(--arranque-centro) 0%, var(--arranque-fondo) 62%);
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.arranque > * { grid-area: 1 / 1; }
.arranque__halo {
  width: clamp(240px, 64vmin, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--arranque-oro) 0%, transparent 66%);
  animation: arranque-halo 1.4s var(--arranque-curva) backwards;
}
.arranque__escudo {
  position: relative;
  overflow: hidden;
  width: clamp(104px, 26vmin, 150px);
  aspect-ratio: 263 / 399;
  background: url("escudo-arranque.png") center / contain no-repeat;
  -webkit-mask: url("escudo-arranque.png") center / contain no-repeat;   /* el brillo, solo dentro del escudo */
  mask: url("escudo-arranque.png") center / contain no-repeat;
  animation: arranque-escudo .7s var(--arranque-curva) backwards;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.arranque__brillo {
  position: absolute;
  inset: -20% -80%;
  background: linear-gradient(105deg, transparent 38%, var(--arranque-luz) 50%, transparent 62%);
  transform: translateX(-60%);
  animation: arranque-brillo 1.4s cubic-bezier(.45, 0, .25, 1) .3s forwards;   /* 1,4 s: un brillo que se ve pasar, no un destello (Ibon, 24-nov) */
}
.arranque--sale { opacity: 0; pointer-events: none; }
.arranque--salta { transition-duration: .15s; }   /* al tocar o pulsar una tecla: se va enseguida */
.arranque--sale .arranque__escudo { transform: scale(1.06); }

@keyframes arranque-escudo { from { opacity: 0; transform: translateY(12px) scale(.9); } }
@keyframes arranque-halo { from { opacity: 0; transform: scale(.55); } }
@keyframes arranque-brillo { to { transform: translateX(60%); } }
