.ref-ctf-field {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-top: clamp(56px, 6vw, 92px);
}

.ref-ctf-poster {
  display: flex;
  min-height: clamp(470px, 37vw, 590px);
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 1.7vw, 24px);
  overflow: hidden;
  padding: clamp(42px, 5vw, 78px) clamp(20px, 4vw, 64px) clamp(34px, 4vw, 58px);
  background: #000;
}

.ref-ctf-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.9vw, 28px);
  width: 100%;
}

.ref-ctf-pill {
  display: inline-flex;
  min-height: clamp(58px, 5.5vw, 88px);
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 3.25vw, 54px);
  border-radius: 999px;
  color: #050505;
  font-family: var(--ref-display);
  font-size: clamp(24px, 3.15vw, 52px);
  font-weight: 750;
  
  line-height: 1.04;
  text-align: center;
  white-space: nowrap;
}

.ref-ctf-pill-cyan {
  background: #35c7d8;
}

.ref-ctf-pill-yellow {
  background: #f6cf63;
}

.ref-ctf-pill-green {
  background: #9ccc65;
}

.ref-ctf-pill-coral {
  background: #f27672;
}

.ref-ctf-pill-orange {
  background: #f6ad68;
}

.ref-ctf-pill-rainbow {
  background: #a786d2;
}

.ref-pixel-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(44px, 5vw, 76px);
  height: clamp(44px, 5vw, 76px);
  shape-rendering: crispEdges;
}

.ref-ctf-line-two .ref-pixel-terminal {
  width: clamp(44px, 4vw, 68px);
  height: clamp(40px, 3.8vw, 62px);
}

.ref-ctf-line-one {
  transform: translateX(1.2%);
}

.ref-ctf-line-two {
  transform: translateX(-1.4%);
}

.ref-ctf-line-three {
  transform: translateX(1.7%);
}

.ref-ctf-line-one .ref-ctf-pill-cyan {
  transform: rotate(-1deg);
}

.ref-ctf-line-one .ref-ctf-pill-yellow {
  transform: rotate(1deg);
}

.ref-ctf-line-two .ref-ctf-pill-green {
  transform: rotate(-1.2deg);
}

.ref-ctf-line-two .ref-ctf-pill-coral {
  transform: rotate(0.7deg);
}

.ref-ctf-line-two .ref-ctf-pill-rainbow {
  transform: rotate(-1deg);
}

.ref-ctf-line-three .ref-ctf-pill-orange {
  transform: rotate(-0.8deg);
}

.ref-ctf-line-three .ref-ctf-pill-cyan {
  transform: rotate(0.8deg);
}

.ref-ctf-poster.has-motion:not(.is-visible) .ref-ctf-line {
  opacity: 0;
  filter: blur(7px);
}

.ref-ctf-poster.is-visible .ref-ctf-line {
  animation: ref-ctf-line-reveal 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.ref-ctf-poster.is-visible .ref-ctf-line-one {
  animation-delay: 60ms;
}

.ref-ctf-poster.is-visible .ref-ctf-line-two {
  animation-delay: 180ms;
}

.ref-ctf-poster.is-visible .ref-ctf-line-three {
  animation-delay: 300ms;
}

.ref-ctf-poster.is-visible .ref-pixel-icon {
  animation: ref-ctf-icon-pop 520ms cubic-bezier(0.2, 0.8, 0.25, 1.1) both;
}

.ref-ctf-poster.is-visible .ref-ctf-line-one .ref-pixel-icon {
  animation-delay: 180ms;
}

.ref-ctf-poster.is-visible .ref-ctf-line-two .ref-pixel-icon {
  animation-delay: 300ms;
}

.ref-ctf-poster.is-visible .ref-ctf-line-three .ref-pixel-icon:first-child {
  animation-delay: 420ms;
}

.ref-ctf-poster.is-visible .ref-ctf-line-three .ref-pixel-icon:last-child {
  animation-delay: 500ms;
}

@keyframes ref-ctf-line-reveal {
  from {
    opacity: 0;
    filter: blur(7px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes ref-ctf-icon-pop {
  0% {
    opacity: 0;
    transform: scale(0.58) rotate(-8deg);
  }

  72% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.ref-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 999px) {
  .ref-ctf-field {
    width: calc(100% - 2 * var(--ref-gutter));
  }

  .ref-ctf-poster {
    min-height: 520px;
    padding-inline: 20px;
  }

  .ref-ctf-line {
    gap: 12px;
  }

  .ref-ctf-pill {
    padding-inline: clamp(18px, 2.8vw, 36px);
    font-size: clamp(22px, 4vw, 42px);
  }
}

@media (max-width: 767px) {
  .ref-ctf-field {
    width: calc(100% - 2 * var(--ref-gutter));
  }

  .ref-ctf-poster {
    min-height: 0;
    gap: 14px;
    padding: 52px 14px 28px;
  }

  .ref-ctf-line {
    flex-wrap: wrap;
    gap: 10px;
    transform: none;
  }

  .ref-ctf-pill {
    min-height: 54px;
    padding: 0 20px;
    font-size: clamp(25px, 8.5vw, 38px);
    white-space: normal;
  }

  .ref-ctf-line-one .ref-ctf-pill-cyan {
    order: 1;
  }

  .ref-ctf-line-one .ref-pixel-flag {
    order: 2;
  }

  .ref-ctf-line-one .ref-ctf-pill-yellow {
    order: 3;
  }

  .ref-ctf-line-two .ref-ctf-pill-rainbow {
    min-width: min(250px, 92%);
  }

  .ref-ctf-line-three .ref-ctf-pill-orange,
  .ref-ctf-line-three .ref-ctf-pill-cyan {
    min-width: min(260px, 92%);
  }

}

@media (prefers-reduced-motion: reduce) {
  .ref-ctf-poster.has-motion:not(.is-visible) .ref-ctf-line {
    opacity: 1;
    filter: none;
  }

  .ref-ctf-poster.is-visible .ref-ctf-line,
  .ref-ctf-poster.is-visible .ref-pixel-icon {
    animation: none;
  }
}

.ref-registration-copy a {
  color: var(--ref-orange);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ref-registration-copy a:hover {
  color: var(--ref-ink);
}

.ref-registration-copy .ref-registration-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 0.6em;
  margin-top: 30px;
  padding: 0 24px;
  border: 1px solid var(--ref-orange);
  border-radius: 999px;
  background: var(--ref-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ref-registration-copy .ref-registration-button:hover {
  background: transparent;
  color: var(--ref-orange);
  transform: translateY(-2px);
}
