.cf-first-load {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60000;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  color: #fff8dc;
  background: #050806;
  font-family: inherit;
}

.cf-first-load-required .cf-first-load {
  display: grid;
}

.cf-first-load-card {
  position: relative;
  width: min(100vw, 420px);
  height: min(100dvh, 932px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  padding: 28px 18px max(30px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(1, 8, 12, .04) 34%, rgba(2, 8, 8, .9) 82%, #020706 100%),
    url('/assets/loading-DuZtJujH.png') center / cover no-repeat;
  box-shadow: 0 0 42px rgba(0, 0, 0, .82);
}

.cf-first-load-content {
  width: 100%;
  padding: 16px 15px 14px;
  border: 1px solid rgba(255, 222, 139, .58);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 48, 37, .9), rgba(6, 19, 15, .96));
  backdrop-filter: blur(7px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .44), inset 0 1px rgba(255, 255, 255, .14);
}

.cf-first-load-title {
  margin: 0 0 5px;
  color: #ffe59c;
  text-align: center;
  text-shadow: 0 2px 3px #000;
  font-size: 22px;
  font-weight: 1000;
}

.cf-first-load-subtitle {
  margin: 0 0 13px;
  color: #e5f4e7;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.cf-first-load-progress {
  height: 16px;
  overflow: hidden;
  border: 2px solid rgba(5, 16, 10, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .38);
}

.cf-first-load-progress i {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c9d45, #72e865 58%, #e7f784);
  transition: width .15s ease-out;
  box-shadow: 0 0 12px rgba(119, 246, 105, .58);
}

.cf-first-load-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .52) 45%, transparent 72%);
  animation: cf-first-load-shine 1.3s linear infinite;
  transform: translateX(-100%);
}

@keyframes cf-first-load-shine {
  to { transform: translateX(100%); }
}

.cf-first-load-metrics {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  color: #fff7ce;
  text-align: center;
  font-size: clamp(11px, 3.2vw, 14px);
  font-weight: 1000;
  line-height: 1.35;
}

.cf-first-load-metrics span:not(:last-child)::after {
  content: " ·";
  color: rgba(255, 231, 166, .55);
}

.cf-first-load-status {
  min-height: 18px;
  margin-top: 6px;
  color: #bfe9c6;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.cf-first-load-retry {
  display: none;
  min-width: 150px;
  margin: 12px auto 0;
  padding: 9px 16px;
  border: 1px solid #ffe79b;
  border-radius: 12px;
  color: #3e250a;
  background: linear-gradient(#ffe99a, #efad36);
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 4px #7b4815;
}

.cf-first-load.is-error .cf-first-load-status {
  color: #ffd0cb;
}

.cf-first-load.is-error .cf-first-load-retry {
  display: block;
}

@media (max-width: 480px) {
  .cf-first-load-card {
    width: 100vw;
    height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-first-load-progress i,
  .cf-first-load-progress i::after {
    transition: none;
    animation: none;
  }
}
