.account-skeleton { display: none; }

/* The server sends this layer before any scripts arrive. A CSS deadline restores
   the real form even if the script that would dismiss the loader never runs. */
@media screen and (scripting: enabled) {
  body { --account-loading-deadline: 7s; }
  .account-skeleton {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    display: grid;
    pointer-events: none;
    background: var(--account-background);
  }
  .account-skeleton:not([data-ready]) {
    animation: hide-account-skeleton var(--account-loading-deadline) step-end forwards;
  }
  .account-skeleton:not([data-ready]) + .shell {
    animation: show-account-form var(--account-loading-deadline) step-end both;
  }
  .account-skeleton[data-ready] { opacity: 0; visibility: hidden; }
}

@keyframes hide-account-skeleton { to { visibility: hidden; } }
@keyframes show-account-form { from { visibility: hidden; } to { visibility: visible; } }

.skeleton-block {
  border-radius: .45rem;
  background: #f2b99520;
}

.skeleton-brand { display: inline-flex; align-items: center; gap: .6rem; height: var(--account-brand-icon-size); }
.skeleton-brand > :first-child { width: var(--account-brand-icon-size); height: 100%; }
.skeleton-brand > :last-child { width: 7.1rem; height: .85rem; }
.skeleton-title { width: 85%; height: clamp(2rem, 3.5vw, 3.9rem); margin-bottom: 1.15rem; }
[data-registration-skeleton] .skeleton-title { width: 66%; }
.skeleton-intro { width: 69%; height: .8rem; margin-bottom: 2.65rem; }
.skeleton-label { width: 25%; height: .66rem; margin-bottom: .62rem; }
.skeleton-input { height: 3.2rem; border-radius: .6rem; }
.skeleton-submit { background-color: #f2b99536; }
.skeleton-link { width: 56%; height: .75rem; }

.skeleton-art {
  grid-area: art;
  display: grid;
  place-items: center;
  container-type: size;
  min-height: 36rem;
  background: radial-gradient(ellipse at center, #d4865220, transparent 58%);
}

/* Fit the 5.504-unit outline inside the same camera bounds as bell-view.js.
   The small offset and stretch account for the first frame's perspective. */
.skeleton-bell {
  display: block;
  width: min(94.1%, 129.5cqh);
  transform: translateX(.9%) scaleY(1.035);
}
.skeleton-bell-fill { fill: #f2b99520; }
.skeleton-bell-details { fill: #f2b99515; }

@media (max-width: 760px) {
  .skeleton-intro { margin-bottom: 1.7rem; }
  .skeleton-art { min-height: var(--account-bell-height); }
}

@media (prefers-reduced-motion: no-preference) {
  .account-skeleton { transition: opacity 280ms ease, visibility 280ms; }
  .account-skeleton:not([data-ready]) .skeleton-block {
    background-image: linear-gradient(100deg, transparent 40%, #ffd4b271 50%, transparent 60%);
    background-repeat: no-repeat;
    background-size: 240% 100%;
    animation: account-shimmer 1.4s linear 5;
  }
  .account-skeleton:not([data-ready]) .skeleton-bell-shimmer {
    animation: bell-profile-shimmer 1.4s linear 5;
  }
}

@keyframes account-shimmer {
  from { background-position: 83% 0; }
  85%, to { background-position: 8% 0; }
}
@keyframes bell-profile-shimmer {
  from { transform: translateX(270px); }
  85%, to { transform: translateX(1180px); }
}
