.hero-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: max(clamp(650px, 88vh, 940px), 56.5vw);
  overflow: hidden;
  background: var(--color-bg);
}

.hero-banner__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-banner__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 12, 24, 0.68) 0%, rgba(7, 12, 24, 0.18) 26%, rgba(7, 12, 24, 0.12) 52%, rgba(8, 14, 29, 0.62) 79%, var(--color-bg) 98%),
    linear-gradient(90deg, rgba(7, 12, 24, 0.18), transparent 30%, transparent 70%, rgba(7, 12, 24, 0.18));
}

.hero-banner__content {
  display: flex;
  min-height: inherit;
  padding-top: calc(var(--header-height) + clamp(36px, 5vh, 64px));
  padding-bottom: clamp(60px, 8vh, 94px);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.game-title {
  max-width: 100%;
  margin-inline: auto;
  color: #fff;
  font-size: var(--step-4);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3333333333;
  animation: hero-title-enter 800ms cubic-bezier(0.16, 1, 0.3, 1) 500ms both;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.68), 0 1px 0 rgba(0, 0, 0, 0.72);
}

.hero-banner__message {
  display: flex;
  width: min(100%, 880px);
  margin-top: clamp(100px, 25vh, 280px);
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.82);
}

.hero-tagline {
  max-width: 20ch;
  color: #fff;
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--step-1);
  font-weight: 400;
}

.hero-banner__message .button {
  margin-top: 8px;
  text-shadow: none;
}

/* Hero -> game -> team -> signup -> footer. Every seam shares one token. */
.world-section {
  --section-surface: var(--color-bg);
}

.discord-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 24px;
  width: min(100%, 540px);
  padding: 32px 24px;
  scroll-margin-top: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.discord-widget__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  color: var(--color-ink);
}

.discord-widget__status[data-presence]::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--color-ink-soft);
}

.discord-widget__status[data-presence="online"]::before {
  background: var(--color-status-online);
}

.discord-widget .button {
  max-width: 100%;
}

.discord-widget__avatars {
  display: flex;
  min-height: 48px;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.discord-widget__avatars img {
  flex: 0 1 48px;
  min-width: 0;
  width: 48px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
}

.team-section {
  --section-end: var(--color-bg-night);
}

.email-section {
  --section-start: var(--color-bg-night);
  --section-surface: var(--color-bg-raised);
  --section-end: var(--color-bg-deep);
  padding-bottom: calc(var(--section-space) + var(--section-fade) / 2);
}

@media (min-width: 901px) {
  main > :is(.world-section, .team-section, .email-section) {
    --section-space: clamp(48px, 6.5vw, 88px);
  }

  .email-section {
    padding-bottom: calc(var(--section-space) + var(--section-fade) / 4);
  }
}

.updates-content {
  text-align: center;
}

/* One continuous SVG path, not two separate arms. Only the chevron pulses. */
.hero-scroll-indicator {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: min(calc(100% - 76px - env(safe-area-inset-bottom, 0px)), calc(100svh - 76px - env(safe-area-inset-bottom, 0px)));
  display: grid;
  width: 128px;
  height: 56px;
  padding: 0;
  place-items: center;
  transform: translateX(-50%);
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  animation: hero-arrow-enter 800ms cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.hero-scroll-indicator__chevron {
  position: relative;
  display: block;
  width: 112px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.58;
  animation: hero-chevron-pulse 2.8s ease-in-out 1.8s infinite;
}

.hero-scroll-indicator:hover .hero-scroll-indicator__chevron,
.hero-scroll-indicator:focus-visible .hero-scroll-indicator__chevron {
  animation: none;
  opacity: 0.85;
}

/* Keep the link centred; entrance and idle pulse use separate elements. */
@keyframes hero-title-enter {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-arrow-enter {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translateX(-50%); }
}

@keyframes hero-chevron-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 0.72;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-title,
  .hero-scroll-indicator,
  .hero-scroll-indicator__chevron {
    animation: none;
  }
}
