* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #06070d;
  color: #f4f7ff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

#gl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 76px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-head {
  max-width: 680px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #c4b5fd;
  margin-bottom: 10px;
}

.hero-head h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-head p {
  font-size: 15px;
  line-height: 1.6;
  color: #9ba7c2;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.portal-card {
  min-height: 410px;
  padding: 22px;
  border-radius: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.portal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.portal-idx {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.82);
}

.portal-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.portal-bottom {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.15), rgba(6, 9, 18, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-bottom h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.portal-bottom p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(226, 232, 250, 0.86);
}

/* CSS Fallback Mode */
body.css-fallback #gl-canvas {
  opacity: 0;
}

body.css-fallback .portal-0 {
  background: radial-gradient(circle at 50% 42%, #0e7490, #090d1a 72%);
  border: 1px solid rgba(103, 232, 249, 0.35);
}

body.css-fallback .portal-1 {
  background: radial-gradient(circle at 50% 42%, #7c3aed, #12091d 72%);
  border: 1px solid rgba(196, 181, 253, 0.35);
}

body.css-fallback .portal-2 {
  background: radial-gradient(circle at 50% 42%, #db2777, #0e0a1a 72%);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

@media (max-width: 920px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-card {
    min-height: 320px;
  }
}
