/* Joy's loading screen, after the content-approval system's intro: a ticker of mono capitals runs
   through a thin strip, the part already loaded turns ink with a hairline at its edge, then "Joy"
   appears in Brier and the screen fades away. It sits over Lando's page-transition layer
   (.transition-w), whose Rive animation and "Load Joy" button are hidden; see joy-loader.js. */

.joy-loader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fcfcfa;
  color: #282c20;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.54s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.54s;
}
.joy-loader.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.joy-loader.is-gone { display: none; }
.joy-loader.is-quick { transition-duration: 0.38s; }

.joy-loader__center { position: relative; display: grid; place-items: center; width: min(560px, 74vw); height: 128px; }
.joy-loader__progress,
.joy-loader__brand { position: absolute; inset: 0; display: grid; place-items: center; }

.joy-loader__progress { top: 47px; bottom: auto; height: 34px; overflow: hidden; color: rgba(40, 44, 32, 0.22); }
.joy-loader__track { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; }
.joy-loader__track--fill { width: 0; color: #282c20; border-right: 1px solid currentColor; }
.joy-loader__ticker {
  display: flex; width: max-content; height: 100%; align-items: center;
  animation: joy-loader-ticker 1.45s linear infinite;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; line-height: 1;
}
.joy-loader__ticker span { flex: none; }
@keyframes joy-loader-ticker { to { transform: translateX(-50%); } }

.joy-loader__brand { opacity: 0; font: 700 84px/1 Brier, Georgia, serif; letter-spacing: -0.01em; }
.joy-loader.is-brand .joy-loader__progress { visibility: hidden; }
.joy-loader.is-brand .joy-loader__brand { animation: joy-loader-brand 160ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes joy-loader-brand { from { opacity: 0; transform: scale(0.965); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .joy-loader__center { width: min(320px, 78vw); height: 104px; }
  .joy-loader__progress { top: 38px; height: 28px; }
  .joy-loader__ticker { font-size: 10px; letter-spacing: 0.14em; }
  .joy-loader__brand { font-size: 64px; }
}

/* Lando's own loader stays as the timing source, but nothing of it shows */
html.joy-loader-on .transition-w { background-color: #fcfcfa !important; filter: none !important; }
html.joy-loader-on .transition-w .transition-rive,
html.joy-loader-on .transition-w .transition-btn { visibility: hidden !important; }
