/* Garde du premier affichage : si un module ne se charge pas, le CSS s'ouvre de lui-même. */
body.intro-playing { overflow: auto; }
body.intro-playing .shell { visibility: hidden; animation: haely-launch-fail-open 0s 6500ms forwards; }
body.intro-playing #intro { display: flex; background: var(--color-surface); animation: haely-launch-fail-hide 0s 6500ms forwards; }
@keyframes haely-launch-fail-open { to { visibility: visible; } }
@keyframes haely-launch-fail-hide { to { visibility: hidden; } }
#intro { display: none; pointer-events: none; }
#intro.haely-launch-intro { display: flex; background: transparent; pointer-events: none; }
body.haely-launch-playing { overflow: auto; }
.logo img { aspect-ratio: 507.348913 / 176.244743; }
.haely-launch-curtain { position: absolute; inset: 0; background: var(--color-surface); pointer-events: none; }
.haely-launch-intro .intro-word {
  z-index: 1;
  transform: translate3d(-4px,-32px,0);
  transform-origin: center;
  will-change: transform, opacity;
}
.shell header .logo { position: relative; display: block; flex: none; align-self: flex-start; }
.haely-launch-running:not(.haely-launch-docked) .shell header .logo > img { opacity: 0; }
.haely-launch-running:not(.haely-launch-page-revealed) #content { visibility: hidden; }
.haely-launch-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.haely-launch-shine-band {
  display: block;
  position: absolute;
  left: 0;
  top: -100%;
  width: 60%;
  height: 300%;
  --shine-warm: color-mix(in srgb, var(--color-zone-mains-pieds) 50%, var(--color-surface));
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--color-surface) 45%, transparent) 25%, color-mix(in srgb, var(--shine-warm) 95%, transparent) 44%, var(--color-surface) 50%, color-mix(in srgb, var(--shine-warm) 95%, transparent) 56%, color-mix(in srgb, var(--color-surface) 45%, transparent) 75%, transparent 100%);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  body.intro-playing, body.haely-launch-playing { overflow: auto; }
  body.intro-playing .shell { visibility: visible; animation: none; }
  body.intro-playing #intro { display: none; animation: none; }
  #intro.haely-launch-intro, .haely-launch-shine { display: none; }
  .haely-launch-running:not(.haely-launch-docked) .shell header .logo > img { opacity: 1; }
  .haely-launch-running:not(.haely-launch-page-revealed) #content { visibility: visible; }
}
