/**
 * SCBL - Thank You block.
 *
 * Arcade confirmation layout from the provided standalone HTML, adapted to
 * theme colors, global fonts, and the 404/contact background treatment.
 */

.thank-you {
  --thank-you-ink: var(--color-indigo-950);
  --thank-you-purple: var(--color-indigo-600);
  --thank-you-purple-2: var(--color-indigo-500);
  --thank-you-purple-glow: var(--color-indigo-400);
  --thank-you-orange: var(--color-orange-500);
  --thank-you-orange-dark: var(--color-orange-600);
  --thank-you-orange-glow: var(--color-orange-300);
  --thank-you-neon: var(--color-indigo-200);
  --thank-you-cyan: #5fe9d9;
  --thank-you-grid: rgba(155, 107, 224, 0.18);
  --thank-you-header-pull: calc(2 * clamp(1rem, 3vw, 2.5rem) + 7rem);
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  box-sizing: border-box;
  min-height: clamp(36rem, 82vh, 52rem);
  padding-block: clamp(2rem, 4.25vw, 4rem) clamp(4.5rem, 8vw, 7rem);
  padding-left: 15rem;
  padding-right: 15rem;
  background: var(--thank-you-ink);
  color: var(--color-white);
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 5;
}

.thank-you::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(-1 * var(--thank-you-header-pull));
  bottom: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 28% 16%,
      rgba(95, 47, 157, 0.52),
      transparent 30rem
    ),
    radial-gradient(
      circle at 74% 18%,
      rgba(255, 77, 0, 0.42),
      transparent 32rem
    ),
    var(--thank-you-ink);
  pointer-events: none;

}

.thank-you__floor {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: clip;
  pointer-events: none;
}

.thank-you__floor::before {
  content: "";
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 190%;
  height: 42%;
  transform: translateX(-50%) perspective(620px) rotateX(62deg);
  transform-origin: top center;
  background-image:
    linear-gradient(var(--thank-you-grid) 2px, transparent 2px),
    linear-gradient(90deg, var(--thank-you-grid) 2px, transparent 2px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, black 22%, transparent 100%);
  animation: thank-you-grid-shift 8s linear infinite;
}

.thank-you__spot,
.thank-you__ball {
  position: absolute;
  pointer-events: none;
}

.thank-you__spot {
  z-index: 1;
  width: 37.5rem;
  height: 37.5rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.thank-you__spot--one {
  top: -12.5rem;
  left: 5%;
  background: var(--thank-you-purple);
  animation: thank-you-float-one 12s ease-in-out infinite;
}

.thank-you__spot--two {
  top: -6.25rem;
  right: 5%;
  background: var(--thank-you-orange);
  animation: thank-you-float-two 14s ease-in-out infinite;
}

.thank-you__ball {
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    var(--thank-you-orange-glow),
    var(--thank-you-orange) 60%,
    #b83400 100%
  );
  box-shadow:
    0 0 2.5rem rgba(255, 77, 0, 0.6),
    inset -0.5rem -0.5rem 1rem rgba(0, 0, 0, 0.4);
}

.thank-you__ball::before,
.thank-you__ball::after,
.thank-you__swish-ball::before,
.thank-you__swish-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
}

.thank-you__ball::before,
.thank-you__swish-ball::before {
  clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
}

.thank-you__ball::after,
.thank-you__swish-ball::after {
  clip-path: polygon(50% 0, 51% 0, 51% 100%, 50% 100%);
}

.thank-you__ball--one {
  top: 22%;
  left: 4%;
  width: 3.75rem;
  height: 3.75rem;
  animation: thank-you-bounce-one 5s ease-in-out infinite;
}

.thank-you__ball--two {
  top: 65%;
  right: 5%;
  width: 5.625rem;
  height: 5.625rem;
  animation: thank-you-bounce-two 7s ease-in-out infinite;
}

.thank-you__stage {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-right: 15rem;
  padding-left: 15rem;
}

.thank-you__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  border: 2px solid var(--thank-you-purple-glow);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow:
    0 0 0 1px rgba(155, 107, 224, 0.2),
    0 0 3.75rem rgba(95, 47, 157, 0.4);
  padding: clamp(4rem, 7vw, 5rem) clamp(1.75rem, 6vw, 3.75rem)
    clamp(3rem, 6vw, 4.375rem);
  text-align: center;
  box-sizing: border-box;
}

.thank-you__corner {
  position: absolute;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--thank-you-orange);
}

.thank-you__corner--tl {
  top: -3px;
  left: -3px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 1.25rem;
}

.thank-you__corner--tr {
  top: -3px;
  right: -3px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 1.25rem;
}

.thank-you__corner--bl {
  bottom: -3px;
  left: -3px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 1.25rem;
}

.thank-you__corner--br {
  right: -3px;
  bottom: -3px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 1.25rem;
}

.thank-you__hud {
  position: absolute;
  top: -1rem;
  right: clamp(2rem, 7vw, 3.75rem);
  left: clamp(2rem, 7vw, 3.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 4;
}

.thank-you__tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thank-you__tag,
.thank-you__timer {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  text-transform: uppercase;
  color: var(--color-white);
}

.thank-you__tag {
  min-height: 2rem;
  padding: 0.35rem 0.875rem;
  background: var(--thank-you-orange);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.32);
}

.thank-you__tag--accent {
  background: var(--thank-you-purple-2);
}

.thank-you__timer {
  gap: 0.5rem;
  min-height: 2rem;
  border: 2px solid var(--thank-you-orange);
  background: var(--thank-you-ink);
  color: var(--thank-you-orange);
  padding: 0.25rem 0.875rem;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.thank-you__timer-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--thank-you-orange);
  box-shadow: 0 0 0.5rem var(--thank-you-orange);
  animation: thank-you-blink 1s steps(2) infinite;
}

.thank-you__hoop {
  position: relative;
  width: 12.5rem;
  height: 13.75rem;
  margin: 0 auto 2rem;
}

.thank-you__backboard {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12.5rem;
  height: 6.875rem;
  transform: translateX(-50%);
  border: 4px solid var(--thank-you-ink);
  border-radius: 0.5rem;
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-indigo-50) 100%
  );
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.4);
}

.thank-you__backboard::before {
  content: "";
  position: absolute;
  inset: 0.875rem 3.125rem;
  border: 3px solid var(--thank-you-orange);
  border-radius: 0.25rem;
}

.thank-you__backboard::after {
  content: "";
  position: absolute;
  top: 1.625rem;
  left: 50%;
  width: 3.125rem;
  height: 1.875rem;
  transform: translateX(-50%);
  border: 3px solid var(--thank-you-orange);
  border-top: 0;
}

.thank-you__rim {
  position: absolute;
  top: 6.25rem;
  left: 50%;
  z-index: 3;
  width: 5rem;
  height: 1rem;
  transform: translateX(-50%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: var(--thank-you-orange);
  box-shadow: 0 0 1.25rem rgba(255, 77, 0, 0.6);
}

.thank-you__rim::before {
  content: "";
  position: absolute;
  top: -0.25rem;
  left: 0;
  right: 0;
  height: 0.375rem;
  border-radius: 0.25rem;
  background: var(--thank-you-orange);
}

.thank-you__net {
  position: absolute;
  top: 7.25rem;
  left: 50%;
  z-index: 3;
  width: 4.375rem;
  height: 3.125rem;
  transform: translateX(-50%);
  color: var(--color-white);
}

.thank-you__net svg {
  width: 100%;
  height: 100%;
  transform-origin: top center;
  animation: thank-you-net-swoosh 2.4s ease-in-out infinite;
}

.thank-you__swish-ball {
  position: absolute;
  top: -3.75rem;
  left: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: -1.375rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    var(--thank-you-orange-glow),
    var(--thank-you-orange) 60%,
    #b83400 100%
  );
  box-shadow:
    0 0 1.875rem rgba(255, 77, 0, 0.7),
    inset -0.375rem -0.375rem 0.75rem rgba(0, 0, 0, 0.4);
  animation: thank-you-swish 2.4s cubic-bezier(0.4, 0.05, 0.6, 1.05) infinite;
}

.thank-you__eyebrow {
  margin: 0 0 0.875rem;
  color: var(--thank-you-orange);
  text-shadow: 0 0 0.5rem rgba(255, 77, 0, 0.35);
}

.thank-you__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.5rem;
  color: var(--color-white);
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  text-transform: uppercase;
  text-shadow:
    0.08em 0.08em 0 var(--thank-you-orange),
    0.16em 0.16em 0 var(--thank-you-ink);
}

.thank-you__title-highlight {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  color: var(--color-white);
}

.thank-you__screen {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.25rem;
  width: min(100%, 30rem);
  margin: 0 auto 2.25rem;
  border: 3px solid var(--thank-you-ink);
  border-radius: 0.75rem;
  background:
    linear-gradient(rgba(95, 233, 217, 0.06) 50%, transparent 50%), #0a1f3a;
  background-size: 100% 5px;
  box-shadow:
    inset 0 0 1.875rem rgba(0, 255, 200, 0.1),
    0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  padding: 0.875rem 1.25rem;
  color: var(--thank-you-cyan);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 0.375rem var(--thank-you-cyan);
}

.thank-you__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}

.thank-you__screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: thank-you-scan 4s linear infinite;
}

.thank-you__screen > * {
  position: relative;
  z-index: 1;
}

.thank-you__screen strong {
  color: var(--color-white);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.12em;
  text-shadow: 0 0 0.5rem var(--thank-you-neon);
}

.thank-you__screen-orange {
  color: var(--thank-you-orange-glow);
  text-shadow: 0 0 0.375rem var(--thank-you-orange-glow);
}

.thank-you__description {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.thank-you__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.thank-you__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 3px solid var(--thank-you-ink);
  border-radius: 0.75rem;
  padding: 1rem 1.75rem;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
}

.thank-you__cta--primary {
  background: linear-gradient(
    180deg,
    var(--thank-you-orange) 0%,
    var(--thank-you-orange-dark) 100%
  );
  box-shadow:
    0 0.375rem 0 var(--thank-you-ink),
    0 0.75rem 1.5rem rgba(255, 77, 0, 0.4);
}

.thank-you__cta--secondary {
  background: linear-gradient(180deg, var(--color-white) 0%, #ddd 100%);
  color: var(--thank-you-ink);
  box-shadow:
    0 0.375rem 0 var(--thank-you-ink),
    0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
}

.thank-you__cta:hover,
.thank-you__cta:focus-visible {
  transform: translateY(-0.125rem);
  opacity: 0.96;
  color: var(--color-white);
  text-decoration: none;
}

.thank-you__cta--secondary:hover,
.thank-you__cta--secondary:focus-visible {
  color: var(--thank-you-ink);
}

.thank-you__cta:active {
  transform: translateY(0.25rem);
  box-shadow:
    0 0.125rem 0 var(--thank-you-ink),
    0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.thank-you__cta:focus-visible {
  outline: 2px solid var(--thank-you-orange-glow);
  outline-offset: 4px;
}

.thank-you__cta-key {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  min-height: 1.25rem;
  border-radius: 0.25rem;
  background: var(--thank-you-ink);
  color: var(--thank-you-orange-glow);
  font-size: 0.75rem;
}

.thank-you__cta--secondary .thank-you__cta-key {
  color: var(--thank-you-orange);
}

.thank-you__ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 3.125rem;
  border: 3px solid var(--thank-you-orange);
  border-radius: 0.75rem;
  background: rgba(24, 12, 39, 0.6);
  box-shadow: 0 0 1.875rem rgba(255, 77, 0, 0.25);
  padding: 0.875rem 1.25rem;
  color: var(--thank-you-neon);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-sizing: border-box;
}

.thank-you__ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--thank-you-orange);
  font-weight: 800;
  white-space: nowrap;
}

.thank-you__ticker-live-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.85rem solid var(--thank-you-orange);
}

.thank-you__ticker-track {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.thank-you__ticker-inner {
  display: inline-flex;
  gap: 2.25rem;
  white-space: nowrap;
  animation: thank-you-marquee 22s linear infinite;
}

.thank-you__ticker-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.thank-you__ticker-star {
  color: var(--thank-you-orange);
}

@media (max-width: 74.9375rem) {
  .thank-you {
    min-height: auto;
    max-width: 100vw;
    padding: clamp(1.5rem, 4.5vw, 2.25rem) 0 clamp(3rem, 9vw, 4.5rem);
    overflow-x: clip;
    overflow-y: visible;
  }

  .thank-you__spot,
  .thank-you__ball {
    display: none;
  }

  .thank-you__stage {
    width: min(100% - 2rem, 56rem);
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .thank-you__frame {
    width: 100%;
    margin-inline: auto;
    overflow: visible;
    padding: 3.75rem 1.5rem 3rem;
  }

  .thank-you__hud {
    display: none;
  }

  .thank-you__hoop {
    width: 11rem;
    height: 12rem;
    margin-bottom: 1.5rem;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .thank-you__title {
    font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  }

  .thank-you__ticker {
    gap: 0.875rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 35rem) {
  .thank-you {
    padding-inline: 0.5rem;
  }

  .thank-you__frame {
    padding: 3.25rem 1rem 2.5rem;
  }

  .thank-you__ctas {
    display: grid;
  }

  .thank-you__cta {
    justify-content: center;
    width: 100%;
    padding-inline: 1rem;
  }

  .thank-you__ticker {
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thank-you__floor::before,
  .thank-you__spot,
  .thank-you__ball,
  .thank-you__timer-dot,
  .thank-you__net svg,
  .thank-you__swish-ball,
  .thank-you__screen::after,
  .thank-you__ticker-inner {
    animation: none;
  }

  .thank-you__cta {
    transition: none;
  }
}

@keyframes thank-you-grid-shift {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      0 80px,
      80px 0;
  }
}

@keyframes thank-you-float-one {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3.75rem, 2.5rem) scale(1.1);
  }
}

@keyframes thank-you-float-two {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-2.5rem, 3.75rem) scale(1.15);
  }
}

@keyframes thank-you-bounce-one {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-1.875rem) rotate(180deg);
  }
}

@keyframes thank-you-bounce-two {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-3.125rem) rotate(-180deg);
  }
}

@keyframes thank-you-blink {
  50% {
    opacity: 0.3;
  }
}

@keyframes thank-you-net-swoosh {
  0%,
  38%,
  60%,
  100% {
    transform: scaleY(1) skewX(0);
  }
  44% {
    transform: scaleY(1.15) skewX(-3deg);
  }
  50% {
    transform: scaleY(1.15) skewX(3deg);
  }
}

@keyframes thank-you-swish {
  0% {
    top: -3.75rem;
    transform: rotate(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  40% {
    top: 6.875rem;
    transform: rotate(540deg);
  }
  55% {
    top: 10.3125rem;
    transform: rotate(720deg);
  }
  75% {
    top: 14.375rem;
    transform: rotate(900deg);
    opacity: 0.4;
  }
  85% {
    top: 16.25rem;
    opacity: 0;
  }
  100% {
    top: -3.75rem;
    transform: rotate(0);
    opacity: 0;
  }
}

@keyframes thank-you-scan {
  to {
    left: 200%;
  }
}

@keyframes thank-you-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
