body.theme-portal {
  background:
    radial-gradient(circle at 8% 10%, rgba(28, 117, 225, 0.2), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(0, 176, 255, 0.16), transparent 20%),
    radial-gradient(circle at 50% 72%, rgba(24, 92, 186, 0.12), transparent 28%),
    linear-gradient(180deg, #07101c 0%, #0a1324 50%, #08101c 100%);
  color: var(--portal-white);
}

.portal-shell {
  min-height: 100vh;
}

.portal-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 2vw, 2rem) 0 var(--space-5);
}

.portal-hero-minimal .shell-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1.5rem, 2vw, 2.5rem);
  min-height: calc(100vh - 3rem);
  max-width: 1120px;
  padding-top: 0.5rem;
}

.portal-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 28, 0.36), rgba(8, 16, 28, 0.78)),
    radial-gradient(circle at center, rgba(33, 150, 243, 0.18), transparent 45%);
}

.portal-hero .shell-container {
  position: relative;
  z-index: 1;
}

.brand-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  width: 100%;
  min-height: 5.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(82, 146, 233, 0.14);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(11, 24, 43, 0.94), rgba(8, 18, 34, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.brand-banner-mark {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.9), rgba(0, 176, 255, 0.9));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-banner-mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.brand-banner-copy p,
.brand-banner-copy h2 {
  margin: 0;
}

.brand-banner-copy p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8ba5c8;
}

.brand-banner-copy h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.35rem);
  letter-spacing: 0;
  color: #f4f8ff;
}

.portal-hero-copy {
  max-width: 48rem;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7fd7ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-hero-copy h1 {
  margin: 1rem 0 1.25rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.portal-hero-copy p {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1rem, 0.95rem + 0.45vw, 1.2rem);
  color: #d3e2f7;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.2vw, 1.5rem);
  width: min(960px, 100%);
  margin: 0;
}

.selector-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.4rem);
  border-radius: 1.8rem;
  min-height: clamp(16rem, 28vw, 21rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(96, 170, 255, 0.14);
  box-shadow: 0 22px 54px rgba(2, 11, 26, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.selector-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -36% 36%;
  height: 13rem;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.62;
}

.selector-card:hover,
.selector-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(116, 191, 255, 0.28);
  box-shadow: 0 30px 84px rgba(2, 11, 26, 0.3);
}

.selector-card-dark {
  background:
    linear-gradient(180deg, rgba(13, 25, 47, 0.98), rgba(8, 17, 31, 0.98));
}

.selector-card-dark::before {
  background: radial-gradient(circle, rgba(32, 148, 255, 0.26), transparent 64%);
}

.selector-card-light {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(236, 244, 255, 0.96));
  color: #102543;
}

.selector-card-light::before {
  background: radial-gradient(circle, rgba(21, 101, 192, 0.14), transparent 68%);
}

.selector-card-copy {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.selector-card h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.9rem, 1.35rem + 1.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 10.5ch;
  text-wrap: balance;
}

.selector-card p {
  margin: 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.55;
  color: inherit;
  opacity: 0.82;
}

.resource-topline {
  background: rgba(6, 14, 26, 0.76);
  color: #d2e5ff;
  border-bottom: 1px solid rgba(79, 143, 239, 0.16);
}

.rank-topline {
  background: rgba(248, 252, 255, 0.82);
  color: #0c203f;
  border-bottom: 1px solid rgba(30, 97, 190, 0.12);
}
