@font-face {
  font-family: 'Studio Loading';
  src: url('/fonts/studio-host-grotesk-latin-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Studio Loading';
  src: url('/fonts/studio-host-grotesk-latin-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Studio Display';
  src: url('/fonts/studio-lexend-deca-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

html,
body,
#root {
  min-height: 100%;
}
body {
  margin: 0;
  background: #1c1815;
}
.studio-loading {
  --splash-ink: #fff;
  --splash-dark: #0a1115;
  --splash-amber: #ffb700;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 32px;
  background: #1c1815;
  color: var(--splash-ink);
  font-family: 'Studio Loading', 'Host Grotesk', 'Avenir Next', sans-serif;
  font-weight: 600;
  line-height: 1.35;
  color-scheme: dark;
}
.studio-loading *,
.studio-loading *::before,
.studio-loading *::after {
  box-sizing: border-box;
}
.studio-loading__window {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(1040px, 100%);
  min-height: 360px;
  aspect-ratio: 931 / 621;
  overflow: hidden;
  background: var(--splash-dark);
}
.studio-loading__art {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 66.7025%;
  height: 149.9195%;
  transform: translate(-50%, -50%) rotate(-90deg);
  background: url('/images/studio-light-trails.webp') center / cover no-repeat;
}
.studio-loading__brand {
  --brand-unit: 1cqw;
  position: absolute;
  top: 17.9%;
  left: 2.36%;
  display: flex;
  align-items: center;
  gap: calc(2.68 * var(--brand-unit));
}
/* Preserve the exact Figma vectors, luminance mask and transforms. */
.studio-loading__symbol {
  position: relative;
  width: calc(14.0475 * var(--brand-unit));
  height: calc(13.3826 * var(--brand-unit));
  flex: none;
}
.studio-loading__symbol-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(13.3826 * var(--brand-unit));
  height: calc(14.0475 * var(--brand-unit));
  transform: translate(-50%, -50%) rotate(-90deg);
}
.studio-loading__symbol-art {
  position: absolute;
  left: calc(1.65263 * var(--brand-unit));
  top: calc(1.98754 * var(--brand-unit));
  width: calc(9.69671 * var(--brand-unit));
  height: calc(10.73978 * var(--brand-unit));
  transform: scaleX(-1);
  mask-image: url('/images/studio-figma-symbol-mask.svg');
  mask-mode: luminance;
  mask-repeat: no-repeat;
  mask-size: calc(13.3826 * var(--brand-unit)) calc(14.0475 * var(--brand-unit));
  /* Centre le contre-masque noir sur l'étoile blanche exportée de Figma. */
  mask-position: calc(-1.84266 * var(--brand-unit)) calc(-1.65386 * var(--brand-unit));
}
.studio-loading__wordmark {
  position: relative;
  width: calc(11.7798 * var(--brand-unit));
  height: calc(2.41676 * var(--brand-unit));
}
.studio-loading__wordmark > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
}
.studio-loading__dot {
  position: absolute;
  left: 76.47%;
  top: -17.2%;
  width: 7.295%;
  height: 35.556%;
}
.studio-loading__title {
  margin: calc(0.7 * var(--brand-unit)) 0 0;
  font-family: 'Studio Display', 'Lexend Deca', sans-serif;
  font-size: calc(6.19194 * var(--brand-unit));
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.studio-loading__state {
  position: absolute;
  top: 66.67%;
  left: 0;
  width: 37%;
}
.studio-loading__status {
  margin: 0;
  padding-left: 5.26cqw;
  font-size: clamp(11px, 1.34cqw, 14px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.studio-loading__progress {
  height: 2px;
  overflow: hidden;
  margin-top: 1.8cqw;
  background: rgb(255 255 255 / 48%);
}
.studio-loading__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: var(--splash-amber);
  transition: transform 180ms ease-out;
}
.studio-loading__help {
  margin: 16px 0 0;
  padding-left: 5.26cqw;
  font-size: 16px;
  font-weight: 400;
}
.studio-loading__retry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px 0 0 5.26cqw;
  color: var(--splash-ink);
  font-size: 16px;
  text-underline-offset: 4px;
}
.studio-loading__retry:hover {
  color: var(--splash-amber);
}
.studio-loading__retry:focus-visible {
  outline: 2px solid var(--splash-amber);
  outline-offset: 4px;
}
.studio-loading [hidden] {
  display: none;
}
.studio-loading[data-failed] .studio-loading__progress {
  display: none;
}
.studio-loading__window:has(.studio-loading__help:not([hidden])) {
  min-height: 640px;
}
.studio-loading__window:has(.studio-loading__help:not([hidden])) .studio-loading__state {
  top: auto;
  bottom: 100px;
}
.studio-loading ::selection {
  background: var(--splash-amber);
  color: var(--splash-dark);
}
.studio-loading__footer {
  position: absolute;
  left: 5.26%;
  bottom: 2.4%;
  width: 42%;
  font-size: clamp(9px, 1.074cqw, 11px);
  line-height: 1.35;
}
.studio-loading__footer p {
  margin: 0;
}
@media (max-width: 600px) {
  .studio-loading {
    padding: 20px;
  }
  .studio-loading__window {
    min-height: max(560px, min(680px, calc(100svh - 40px)));
    aspect-ratio: auto;
  }
  .studio-loading__art {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background-image:
      linear-gradient(180deg, transparent 36%, rgb(10 17 21 / 88%) 78%),
      url('/images/studio-light-trails.webp');
    background-position:
      center,
      center 65%;
  }
  .studio-loading__brand {
    --brand-unit: 6px;
    top: 12%;
    left: 16px;
    gap: 16px;
  }
  .studio-loading__state {
    top: auto;
    bottom: 25%;
    width: min(90%, 344px);
  }
  .studio-loading__status,
  .studio-loading__help {
    padding-left: 28px;
  }
  .studio-loading__status {
    font-size: 12px;
  }
  .studio-loading__progress {
    margin-top: 18px;
  }
  .studio-loading__retry {
    margin-left: 28px;
  }
  .studio-loading__footer {
    left: 28px;
    right: 28px;
    bottom: 24px;
    width: auto;
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .studio-loading__brand {
    --brand-unit: 5.3px;
    left: 12px;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-loading__progress span {
    transition: none;
  }
}

.studio-loading-fallback {
  display: grid;
  min-height: 100svh;
  place-items: center;
  color: rgb(255 255 255 / 58%);
}
.studio-loading-fallback__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 999px;
  animation: studio-loading-fallback-spin 700ms linear infinite;
}
@keyframes studio-loading-fallback-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-loading-fallback__spinner {
    animation: none;
  }
}
