/* A single, centered page for authentication, cloud reads and media preparation. */
body #coverScreen.is-loading {
  display: grid;
  place-items: safe center;
  align-content: safe center;
  box-sizing: border-box;
  padding: 1rem;
  overflow: auto;
  background: radial-gradient(ellipse at 12% 2%, #f9efd7 0, transparent 55%),
              radial-gradient(ellipse at 94% 86%, #d8e7d8 0, transparent 57%), #edf2e9;
}
#coverScreen.is-loading::after,
#coverScreen.is-loading > .login-card,
#studyLoading[hidden] { display: none; }
#studyLoading {
  width: min(100%, 29rem);
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  margin: auto;
  border: 1px solid #c3cbb4;
  border-radius: 22px;
  background: #fffdf6;
  color: #273e32;
  text-align: left;
  box-shadow: 0 3px 0 #c9cfbb, 0 18px 52px -18px #47604759;
}
.study-loading-scene {
  position: relative;
  isolation: isolate;
  height: clamp(125px, 23vh, 194px);
  overflow: hidden;
  background: #d7e4c1 url("./assets/loading-camp.webp") center 55% / cover no-repeat;
}
.study-loading-brand {
  position: absolute;
  top: 15px;
  left: 18px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 5px;
  color: #fffdf0;
  background: #273d29e8;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}
.study-loading-friends {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
}
.study-loading-friends img {
  display: block;
  width: auto;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px #51462947);
}
.study-loading-friends img + img { height: 68%; margin-left: -5px; }
.study-loading-body { padding: 24px 28px 20px; }
.study-loading-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#studyLoadText { margin: 0; color: #253c30; font-size: clamp(20px, 4.2vw, 26px); font-weight: 800; line-height: 1.35; outline: none; }
#studyLoadCount { flex-shrink: 0; color: #3d6048; font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 700; }
.study-loading-rail {
  position: relative;
  height: 16px;
  margin: 15px 0 10px;
  overflow: hidden;
  border: 1px solid #b3c2a8;
  border-radius: 20px;
  background: #e8eddd;
  box-shadow: inset 0 1px 3px #304c3414;
}
#studyLoadBar { display: block; width: 100%; height: 100%; margin: 0; border: 0; appearance: none; -webkit-appearance: none; background: transparent; }
#studyLoadBar::-webkit-progress-bar { background: transparent; }
#studyLoadBar::-webkit-progress-value { border-radius: 16px; background: linear-gradient(90deg,#4c8057,#83b26c); }
#studyLoadBar::-moz-progress-bar { border-radius: 16px; background: linear-gradient(90deg,#4c8057,#83b26c); }
.study-loading-rail.is-waiting progress { opacity: 0; }
.study-loading-rail.is-waiting::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(90deg,#4c8057,#83b26c);
  animation: study-wait 1.4s ease-in-out infinite alternate;
}
@keyframes study-wait { from { transform: translateX(12%); } to { transform: translateX(180%); } }
#studyLoadDetail { margin: 0; color: #536253; font-size: 14px; line-height: 1.5; }
.study-loading-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 12px 28px;
  border-top: 1px solid #e2e5d4;
  background: #f5f6eb;
  color: #626f61;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
}
.study-loading-steps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.study-loading-steps li::before {
  content: "";
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border: 1.5px solid #96a48e;
  border-radius: 50%;
}
.study-loading-steps .is-done::before { background: #609166; border-color: #609166; }
.study-loading-steps [aria-current] { color: #315f3e; font-weight: 750; }
.study-loading-steps [aria-current]::before { border: 3px solid #4c8057; background: #fffdf6; }
@media (max-height: 460px) {
  .study-loading-scene { height: 78px; }
  .study-loading-body { padding: 14px 20px; }
}
@media (max-width: 420px) {
  .study-loading-body { padding: 18px; }
  .study-loading-steps { padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .study-loading-rail.is-waiting::after { animation: none; left: 33%; }
}
