:root {
  color-scheme: light;
  --sky-top: #51c4e8;
  --sky-middle: #168fc8;
  --sky-bottom: #0866a6;
  --white: #fff;
  --soft-white: rgba(255, 255, 255, .78);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, .2), transparent 32%),
    linear-gradient(160deg, var(--sky-top) 0%, var(--sky-middle) 48%, var(--sky-bottom) 100%);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent 55%, rgba(3, 61, 103, .22));
}

.clouds {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 220px;
  height: 62px;
  background: rgba(255, 255, 255, .24);
  border-radius: 999px;
  filter: blur(.2px);
  box-shadow: 0 18px 45px rgba(4, 77, 122, .08);
  animation: cloud-float 9s ease-in-out infinite alternate;
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 0;
  content: "";
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  left: 34px;
  width: 92px;
  height: 92px;
}

.cloud::after {
  right: 28px;
  width: 124px;
  height: 124px;
}

.cloud-one {
  top: 12%;
  left: -80px;
  opacity: .75;
}

.cloud-two {
  top: 25%;
  right: -105px;
  opacity: .5;
  transform: scale(.8);
  animation-delay: -3s;
}

.cloud-three {
  bottom: 18%;
  left: 4%;
  opacity: .28;
  transform: scale(1.25);
  animation-delay: -6s;
}

.cloud-four {
  right: 7%;
  bottom: 8%;
  opacity: .2;
  transform: scale(.65);
  animation-delay: -1.5s;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 24px 26px;
}

.challenge {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(500px, 100%);
  margin: 0;
  padding: 32px 0;
}

.cg-logo {
  display: block;
  width: min(290px, 72vw);
  height: auto;
  margin: 0 auto 34px;
  color: var(--white);
  fill: currentColor;
  filter: drop-shadow(0 8px 16px rgba(3, 66, 105, .18));
}

h1 {
  margin: 0 0 13px;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-shadow: 0 3px 12px rgba(3, 60, 97, .2);
}

#status {
  min-height: 26px;
  margin: 0;
  color: var(--soft-white);
  font-size: 1rem;
  line-height: 1.55;
}

.loader {
  display: block;
  width: 34px;
  height: 34px;
  margin: 24px auto 0;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: loader-spin .8s linear infinite;
}

.noscript-message {
  width: min(390px, 100%);
  margin: 24px auto 0;
  padding: 11px 15px;
  color: var(--white);
  font-size: .85rem;
  line-height: 1.45;
  background: rgba(6, 79, 120, .35);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
}

.page-footer {
  width: 100%;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 2px 8px rgba(3, 59, 95, .16);
}

.page-footer p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, .94);
  font-size: .92rem;
}

.page-footer strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.page-footer small {
  display: block;
  font-size: .72rem;
}

.request-id {
  margin-top: 5px;
  opacity: .66;
  overflow-wrap: anywhere;
}

.is-complete .loader {
  position: relative;
  animation: none;
  border-color: rgba(255, 255, 255, .4);
}

.is-complete .loader::after {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 12px;
  height: 7px;
  content: "";
  border-bottom: 3px solid var(--white);
  border-left: 3px solid var(--white);
  transform: rotate(-45deg);
}

.is-error .loader {
  display: none;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cloud-float {
  from {
    margin-top: -10px;
    margin-left: -14px;
  }

  to {
    margin-top: 12px;
    margin-left: 16px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 28px 18px 20px;
  }

  .challenge {
    padding: 24px 0;
  }

  .cg-logo {
    width: min(245px, 76vw);
    margin-bottom: 29px;
  }

  .cloud {
    transform: scale(.72);
  }

  .cloud-three {
    left: -60px;
  }

  .cloud-four {
    right: -80px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .page {
    padding-top: 22px;
  }

  .challenge {
    padding: 12px 0 24px;
  }

  .cg-logo {
    width: 205px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .loader {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .loader {
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}
