.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-height);
  display: flex;
  align-items: center;
  background-color: var(--surface-base);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.topbar.is-pinned {
  background-color: var(--surface-sunken);
  border-bottom-color: var(--surface-edge);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.topbar__name {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.topbar__name span {
  color: var(--accent);
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding-inline: 18px;
  border: 0;
  border-radius: var(--radius-md);
  background-color: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.btn--accent {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.btn--accent:hover {
  filter: brightness(1.06);
}

.btn__icon {
  width: 16px;
  height: 16px;
}

.stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(320px, 54vh, 540px);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(36, 238, 137, 0.18), transparent 70%),
    radial-gradient(45% 60% at 85% 30%, rgba(48, 79, 254, 0.12), transparent 70%),
    var(--surface-base);
}

.stage__halo {
  position: absolute;
  bottom: -14%;
  left: 50%;
  width: min(820px, 96%);
  height: 86%;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 60%, rgba(36, 238, 137, 0.3), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.stage__team {
  position: relative;
  z-index: 1;
  width: min(860px, 94%);
  height: auto;
  margin-bottom: -1px;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.55));
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
}

.stage__cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(18px, 5vh, 44px);
  transform: translateX(-50%);
  height: 46px;
  padding-inline: 30px;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(36, 238, 137, 0.35);
}

.stage__cta:hover {
  transform: translateX(-50%) translateY(-2px);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 35%, #000 30%, transparent 100%);
  pointer-events: none;
}

.lobby {
  padding: 28px 0 56px;
}

.lobby__feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lobby__mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.portal {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.portal:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 238, 137, 0.45);
  background-color: var(--surface-edge);
}

.portal__head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: 0 0 auto;
}

.portal__title {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal__art {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.portal--feature {
  min-height: 156px;
  padding: 24px 26px;
}

.portal--feature .portal__title {
  font-size: 20px;
}

.portal__desc {
  margin: 14px 0 0;
  max-width: 58%;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.portal--feature .portal__art {
  right: 16px;
  bottom: 8px;
  width: 190px;
}

.portal--mini {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 20px;
}

.portal--mini .portal__title {
  font-size: 16px;
}

.portal--mini .portal__art {
  right: 8px;
  bottom: 0;
  width: 104px;
}

.lede {
  padding: 4px 0 48px;
}

.lede__inner {
  max-width: 900px;
}

.lede__title {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: clamp(22px, 3.2vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.lede__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.lede__text + .lede__text {
  margin-top: 16px;
}

.lede__text b {
  color: var(--text-primary);
  font-weight: 800;
}

.lede__text .lede__accent {
  color: var(--accent);
  font-weight: 800;
}

.proof {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  background-color: var(--surface-raised);
  border: 1px solid rgba(36, 238, 137, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.proof:first-of-type {
  margin-top: 22px;
}

a.proof:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background-color: var(--surface-edge);
}

.proof__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: 0 0 auto;
}

.proof__arrow {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}

.proof:hover .proof__arrow {
  transform: translateX(3px);
}

.payways {
  background-color: var(--surface-sunken);
  border-top: 1px solid var(--surface-edge);
}

.payways__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 96px;
  padding-block: 18px;
  flex-wrap: wrap;
}

.payways__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.payways__set {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.payways__brand {
  height: 22px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.payways__brand:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.payways__coins {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.payways__coin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease;
}

.payways__coin:hover {
  transform: translateY(-2px);
}

.sitefoot {
  background-color: var(--surface-sunken);
  border-top: 1px solid var(--surface-edge);
}

.sitefoot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.sitefoot__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-soft);
}

.sitefoot__mark {
  width: 22px;
  height: 22px;
}

.sitefoot__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 27px;
  padding-inline: 9px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sitefoot__legal {
  padding-block: 18px 28px;
  border-top: 1px solid var(--surface-edge);
}

.sitefoot__legal p {
  margin: 0;
  max-width: 1000px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .stage {
    min-height: auto;
  }

  .stage__team {
    width: min(560px, 96%);
  }

  .lobby__feature {
    grid-template-columns: 1fr;
  }

  .lobby__mini {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar__name {
    font-size: 16px;
  }

  .portal__desc {
    max-width: 64%;
  }

  .btn {
    height: 36px;
    padding-inline: 14px;
  }

  .btn--ghost .btn__label,
  .btn--accent .btn__label {
    font-size: 13px;
  }
}
