* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: white;
  background:
    linear-gradient(rgba(5,8,18,.18), rgba(5,8,18,.68)),
    url("/assets/desktop-bg.png?v=1");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero {
  text-align: center;
  padding: 48px 20px 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: 14px;
  font-weight: 300;
  text-shadow: 0 6px 24px rgba(0,0,0,.55);
}

.hero p {
  margin-top: 12px;
  letter-spacing: 5px;
  font-size: 15px;
  color: rgba(255,255,255,.75);
}

.rune {
  font-size: 34px;
  margin-top: 18px;
  opacity: .8;
}

.level-badge {
  width: fit-content;
  margin: 18px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(8,12,24,.25);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.86);
}

.grid {
  width: min(1280px, 94vw);
  margin: 20px auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.card {
  min-height: 220px;
  padding: 24px 18px;
  border-radius: 20px;
  background: rgba(8,12,24,.14);
  border: 1px solid rgba(210,170,255,.34);
  box-shadow:
    0 20px 55px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(0px) saturate(115%);
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  text-align: center;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.52);
}

.icon {
  font-size: 42px;
  margin-bottom: 15px;
  text-shadow: 0 0 18px currentColor;
}

.portal-name {
  font-size: 18px;
  letter-spacing: 2.5px;
  line-height: 1.25;
  margin-bottom: 13px;
}

.portal-description {
  max-width: 260px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}

.footer {
  text-align: center;
  padding-bottom: 38px;
  letter-spacing: 6px;
  color: rgba(255,255,255,.55);
}

.blue { color: #4f8cff; }
.purple { color: #a855f7; }
.redicon { color: #ff5f68; }
.gold { color: #ffd166; }
.greenicon { color: #6ee56a; }
.cyan { color: #4ddde0; }
.matrix { color: #22c55e; }
.gray { color: #c8ccd8; }
.orange { color: #ff8a00; }

.tier-private {
  border-color: rgba(132,210,255,.40);
}

.tier-admin {
  border-color: rgba(216,180,106,.45);
}

@media (max-width: 700px) {
  html, body {
    background:
      linear-gradient(rgba(2,4,10,.04), rgba(2,4,10,.34)),
      url("/assets/mobile-bg-v2.png?v=2") !important;
    background-size: 100% auto !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-color: #050713 !important;
    background-attachment: scroll !important;
    overflow-x: hidden;
  }

  .hero {
    padding: 24px 10px 10px;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: 7px;
  }

  .hero p {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 3px;
  }

  .rune {
    font-size: 20px;
    margin-top: 8px;
  }

  .level-badge {
    margin-top: 12px;
    padding: 6px 11px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .grid {
    width: 96vw;
    margin: 14px auto 36px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .card {
    min-height: 138px;
    padding: 10px 6px;
    border-radius: 12px;
  }

  .icon {
    font-size: 23px;
    margin-bottom: 7px;
  }

  .portal-name {
    font-size: 10px;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
  }

  .portal-description {
    font-size: 8.5px;
    line-height: 1.35;
  }

  .footer {
    font-size: 9px;
    letter-spacing: 3px;
    padding-bottom: 24px;
  }
}
