.recruitment-page .discord-section {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.recruitment-page .clan-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.recruitment-page .clan-brand-block,
.recruitment-page .about-shell {
  position: relative;
  z-index: 2;
}

.recruitment-phrases {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.recruitment-phrases span {
  position: absolute;
  top: var(--phrase-top, 50%);
  left: 0;
  max-width: none;
  white-space: nowrap;
  color: rgba(255, 216, 116, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 1.15vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(255, 178, 38, 0.2),
    0 0 28px rgba(155, 34, 29, 0.18);
  opacity: 0;
  transform: translate3d(-34vw, 0, 0);
  animation: recruitmentPhraseDrift var(--phrase-duration, 32s) linear infinite;
  animation-delay: var(--phrase-delay, 0s);
}

.recruitment-phrases span:nth-child(2n) {
  color: rgba(255, 94, 45, 0.16);
  animation-name: recruitmentPhraseReverse;
}

.recruitment-phrases span:nth-child(3n) {
  color: rgba(193, 255, 200, 0.12);
  animation-name: recruitmentPhraseFloat;
}

.recruitment-phrases span:nth-child(4n) {
  filter: blur(0.2px);
}

@keyframes recruitmentPhraseDrift {
  0% {
    opacity: 0;
    transform: translate3d(-34vw, 0, 0);
  }

  14%,
  68% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(105vw, -14px, 0);
  }
}

@keyframes recruitmentPhraseReverse {
  0% {
    opacity: 0;
    transform: translate3d(108vw, 0, 0);
  }

  12%,
  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-38vw, 12px, 0);
  }
}

@keyframes recruitmentPhraseFloat {
  0% {
    opacity: 0;
    transform: translate3d(-28vw, 12px, 0);
  }

  16%,
  66% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(102vw, -22px, 0);
  }
}

.recruitment-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 220, 122, 0.48);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 220, 122, 0.16), transparent 22rem),
    radial-gradient(circle at 92% 22%, rgba(155, 34, 29, 0.28), transparent 22rem),
    linear-gradient(145deg, rgba(35, 18, 13, 0.92), rgba(5, 5, 4, 0.96));
  box-shadow:
    inset 0 0 44px rgba(255, 178, 38, 0.055),
    0 32px 90px rgba(0, 0, 0, 0.54),
    0 0 44px rgba(155, 34, 29, 0.16);
}

.recruitment-summary::before,
.recruitment-summary::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.recruitment-summary::before {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 32%, rgba(255, 220, 122, 0.08) 34%, transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 220, 122, 0.045) 0 1px, transparent 1px 34px);
  opacity: 0.7;
}

.recruitment-summary::after {
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: clamp(88px, 16vw, 160px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 220, 122, 0.22);
  background:
    radial-gradient(circle, rgba(255, 220, 122, 0.16), transparent 58%),
    conic-gradient(from 45deg, transparent, rgba(255, 220, 122, 0.18), transparent, rgba(155, 34, 29, 0.18), transparent);
  transform: rotate(45deg);
  opacity: 0.48;
}

.recruitment-summary p {
  max-width: 760px;
  margin: 0 0 1rem;
  color: var(--muted);
}

.recruitment-summary h2 {
  max-width: 760px;
  margin: 0.3rem 0 0.7rem;
  color: var(--soft-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.98;
}

.recruitment-summary-mark {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(1rem, 3vw, 2rem);
  color: rgba(255, 220, 122, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.recruitment-summary .button {
  margin-top: 0.4rem;
}

.recruitment-page .discord-panel {
  max-width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

@media (max-width: 620px) {
  .recruitment-phrases span {
    font-size: 0.72rem;
    opacity: 0.08;
  }

  .recruitment-phrases span:nth-child(n+5) {
    display: none;
  }

  .recruitment-summary-mark {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruitment-phrases span {
    animation: none !important;
    opacity: 0.09;
    transform: none !important;
  }

  .recruitment-phrases span:nth-child(n+4) {
    display: none;
  }
}
