/* Shared boot/session loader. The source logo is reused without changing the asset. */
.csm-loading {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
  color: #152238;
  background: radial-gradient(ellipse at 50% 44%, #eef3fb 0, #f5f7fa 55%);
}

.csm-clapper {
  position: relative;
  display: block;
  flex: none;
  width: 128px;
  height: 128px;
  margin: 24px 0 22px;
}

.csm-clapper img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.csm-clapper .csm-clapper__arm { display: none; }

/* The 128px mark divides below its slate arm, at y=49; its hinge is x=15, y=48. */
@supports (clip-path: inset(0)) {
  .csm-clapper__body { clip-path: inset(38.28125% 0 0); }
  .csm-clapper .csm-clapper__arm {
    display: block;
    clip-path: inset(0 0 61.71875%);
    transform-origin: 11.71875% 37.5%;
    animation: csm-clapper-action 2.4s infinite;
    will-change: transform;
  }
}

.csm-loading__brand {
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.csm-loading .csm-loading__message {
  max-width: 300px;
  margin: 10px 0 0;
  color: #65758a;
  font-size: 13px;
  line-height: 1.7;
}

@keyframes csm-clapper-action {
  0%, 16%, 100% { transform: rotate(0deg); animation-timing-function: ease-in-out; }
  38%, 54% { transform: rotate(-22deg); animation-timing-function: cubic-bezier(.65, 0, 1, 1); }
  64%, 72%, 82% { transform: rotate(10deg); animation-timing-function: ease-out; }
  68% { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .csm-clapper .csm-clapper__arm {
    animation: none;
    transform: none;
    will-change: auto;
  }
}
