/* Nightshade Portal */
.ns-portal {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  background:
    radial-gradient(1100px 600px at 50% 12%, rgba(197, 74, 255, 0.40), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #7b1fa8 0%, #4b0f5d 55%, #2b0636 100%);
}

.ns-portal__inner {
  width: min(1200px, 100%);
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  justify-items: center;
}

.ns-portal__header {
    display: grid;
    justify-items: center;
    text-align: center;
    padding-top: 8px;
    padding-bottom: 230px;
}

.ns-portal__logo {
    width: min(820px, 100vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
    user-select: none;
}

.ns-portal__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Tiles grid */
.ns-portal__tiles {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}

/* Responsive breakpoints */
@media (max-width: 980px) {
  .ns-portal__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ns-portal__tiles {
    grid-template-columns: 1fr;
  }
}

.ns-tile {
  text-decoration: none;
  display: grid;
  gap: 10px;
  justify-items: center;
  outline: none;
}

.ns-tile__frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px; /* square-ish like your mockup */
  background: rgba(0, 0, 0, 0.20);
  border: 3px solid rgba(20, 20, 20, 0.65);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ns-tile__img {
  width: 100%;
  height: 100%;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 200ms ease, filter 200ms ease;
}

/* Placeholder matches the “pink boxes” vibe */
.ns-tile__img--placeholder {
  background:
    linear-gradient(180deg, rgba(255, 94, 255, 0.95), rgba(214, 65, 255, 0.95));
}

/* Label under tiles (optional, can remove if you want ultra-minimal) */
.ns-tile__label {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.50);
}

/* Hover and focus */
.ns-tile:hover .ns-tile__frame {
  transform: translateY(-2px);
  border-color: rgba(255, 125, 255, 0.55);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 0 6px rgba(255, 105, 255, 0.10),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.ns-tile:hover .ns-tile__img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.03);
}

.ns-tile:focus-visible .ns-tile__frame {
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.25),
    0 22px 52px rgba(0, 0, 0, 0.42);
}
