#ctv-loading {
  position: absolute;
  inset: 0;
  z-index: 88;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: clamp(38px, 10dvh, 120px) 25px clamp(24px, 7dvh, 72px);
  background: #07536c url('./brand/landing-catch.webp') center 61% / cover no-repeat;
  color: #f3fdff;
}

#ctv-loading[hidden] { display: none; }

#ctv-loading:not([hidden]) ~ #ctv-account-open { visibility: hidden; }

#ctv-loading-logo {
  display: block;
  width: min(76vw, 420px);
  max-height: 24dvh;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px #063440a8);
}

.ctv-loading-progress {
  box-sizing: border-box;
  width: min(100%, 360px);
  padding: 12px 15px;
  border: 1px solid #8bd3e35c;
  border-radius: 12px;
  background: #062c40e8;
  font: 600 13px/1.3 system-ui, sans-serif;
}

.ctv-loading-progress label { display: flex; justify-content: space-between; gap: 12px; }
.ctv-loading-progress output { color: #aef3e9; font-variant-numeric: tabular-nums; }

.ctv-loading-progress progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 7px;
  margin-top: 9px;
  border: 0;
  border-radius: 6px;
  background: #0b4960;
  color: #87f3d8;
  overflow: hidden;
}

.ctv-loading-progress progress::-webkit-progress-bar { background: #0b4960; }
.ctv-loading-progress progress::-webkit-progress-value { background: linear-gradient(90deg,#3eccd6,#c5ffae); }
.ctv-loading-progress progress::-moz-progress-bar { background: linear-gradient(90deg,#3eccd6,#c5ffae); }

@media (min-aspect-ratio: 5/4) {
  #ctv-loading {
    align-items: flex-start;
    justify-content: center;
    gap: clamp(22px, 8dvh, 68px);
    padding: 24px 6vw;
    background-image:
      linear-gradient(90deg, #073b52a8, transparent 58%),
      url('./brand/landing-catch-wide.webp');
    background-position: center;
  }

  #ctv-loading-logo { width: min(35vw, 460px); }
  .ctv-loading-progress { width: min(35vw, 360px); }
}
