* {
  box-sizing: border-box;
}

:root {
  --purple-dark: #090111;
  --purple-main: #260747;
  --purple-glow: #a653ff;
  --purple-hot: #d48cff;
  --gold: #ffb000;
  --text: #fbf7ff;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(212, 140, 255, 0.38), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(255, 176, 0, 0.15), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(166, 83, 255, 0.22), transparent 44%),
    linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 52%, #120021 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(34px, 5vw, 64px);
  padding: 32px 48px;
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--purple-hot);
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(212, 140, 255, 0.42);
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-shadow:
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(166, 83, 255, 0.32);
}

.portal-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: end;
  justify-items: center;
  gap: clamp(36px, 5vw, 86px);
}

.portal {
  width: 100%;
  min-height: 260px;
  display: grid;
  grid-template-rows: 210px auto;
  align-items: end;
  justify-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  border-radius: 24px;
  padding: 8px;
  transition: transform 160ms ease, filter 160ms ease;
}

.portal:hover,
.portal:focus {
  transform: translateY(-7px) scale(1.025);
  filter: drop-shadow(0 0 28px rgba(212, 140, 255, 0.66));
}

.portal-image {
  display: block;
  object-fit: contain;
  max-width: 100%;
  filter:
    drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(166, 83, 255, 0.22));
}

.shadow-logo,
.skyraiders-logo,
.captures-logo,
.stronghold-logo {
  width: 210px;
  max-height: 210px;
}

.portal span {
  display: block;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.82),
    0 0 18px rgba(255, 176, 0, 0.18);
}

@media (max-width: 1100px) {
  .page {
    padding: 30px 24px;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 820px;
    gap: 40px 70px;
  }
}

@media (max-width: 560px) {
  .page {
    gap: 28px;
    padding: 28px 18px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portal {
    min-height: 230px;
    grid-template-rows: 190px auto;
  }

  .shadow-logo,
  .skyraiders-logo,
  .captures-logo,
  .stronghold-logo {
    width: 190px;
    max-height: 190px;
  }
}
