/* The sign-up page of the space where « Jouer » brings a visitor (template/espace/inscription.php, 2026-10-16): the
   games wait above the form, five drawings of the lobby on little glass tiles, fanned like cards on the table. They
   come in one after the other, then float a little, each in its own time, while their drawings move as in the lobby
   (static/css/espace.css). Only transforms and opacity, in a box of fixed height: nothing around them moves. */
.esp-welcome {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 96px;
  margin: 0 0 10px;
  pointer-events: none;
}

.esp-welcome__game {
  --tilt: 0deg;
  --lift: 0px;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 66px;
  height: 66px;
  margin: 0 -4px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  box-shadow: 0 14px 30px rgba(10, 2, 18, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  rotate: var(--tilt);
  translate: 0 var(--lift);
}

.esp-welcome__game:nth-child(1) { --tilt: -14deg; --lift: 12px; }
.esp-welcome__game:nth-child(2) { --tilt: -7deg; --lift: 0px; }
.esp-welcome__game:nth-child(3) { --tilt: 0deg; --lift: -6px; z-index: 1; }
.esp-welcome__game:nth-child(4) { --tilt: 7deg; --lift: 0px; }
.esp-welcome__game:nth-child(5) { --tilt: 14deg; --lift: 12px; }

/* The drawings of the lobby are drawn from their left edge: here, each one has its width, to sit in the middle. */
.esp-welcome .esp-art--aov { width: 49px; }
.esp-welcome .esp-art--wyr { width: 52px; }
.esp-welcome .esp-art--wheel { width: 40px; }

@media (prefers-reduced-motion: no-preference) {
  .esp-welcome__game {
    animation:
      esp-welcome-deal .55s cubic-bezier(.2, .9, .3, 1.2) both,
      esp-welcome-float 5.6s ease-in-out .7s infinite;
  }

  .esp-welcome__game:nth-child(2) { animation-delay: .07s, 1.6s; }
  .esp-welcome__game:nth-child(3) { animation-delay: .14s, .9s; }
  .esp-welcome__game:nth-child(4) { animation-delay: .21s, 2.2s; }
  .esp-welcome__game:nth-child(5) { animation-delay: .28s, 1.3s; }
}

@keyframes esp-welcome-deal {
  from { opacity: 0; scale: .55; }
  to { opacity: 1; scale: 1; }
}

@keyframes esp-welcome-float {
  0%, 100% { translate: 0 var(--lift); }
  50% { translate: 0 calc(var(--lift) - 7px); }
}
