:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eaf2fb;
  background: #08111d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgb(5 13 24 / 45%), rgb(5 13 24 / 78%)),
    url("/assets/alfaverse-1-cosmic-horizon.png") center / cover fixed,
    #08111d;
}

.page { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgb(172 206 230 / 18%); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f0f7ff; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #19496a; color: #83e0ff; font-size: 17px; }
.environment { color: #a7bbce; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-align: right; }
.intro { padding: 42px 0 8px; text-align: center; }
.eyebrow { margin: 0; color: #70d7dc; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 12px 0 8px; font-size: clamp(31px, 5vw, 48px); line-height: 1.08; letter-spacing: -.045em; }
.description { margin: 0; color: #b4c4d3; font-size: 14px; }

.universe-map {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: minmax(0, 1fr) minmax(170px, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 24px auto 0;
}
.universe {
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 285px;
  padding: 18px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f1f7fd;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.universe:hover { transform: translateY(-3px); }
.universe:focus-visible, .quicklinks a:focus-visible, .brand:focus-visible { border-radius: 12px; outline: 3px solid #82e5ff; outline-offset: 4px; }
.cloud-wrap { display: grid; width: 100%; height: 185px; place-items: center; }
.cloud-wrap img { display: block; width: min(100%, 290px); height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px rgb(67 175 255 / 25%)); }
.universe-alfaverse .cloud-wrap img { filter: hue-rotate(172deg) drop-shadow(0 0 18px rgb(67 175 255 / 30%)); }
.universe-ragverse .cloud-wrap img { filter: hue-rotate(285deg) drop-shadow(0 0 18px rgb(189 118 255 / 30%)); }
.universe-name { font-size: 20px; font-weight: 760; letter-spacing: .015em; }
.universe-hint { color: #aebfd0; font-size: 12px; }

.wormhole { display: grid; justify-items: center; gap: 10px; padding: 8px 0; text-align: center; }
.wormhole-arrow { display: flex; width: 100%; align-items: center; padding-right: 4px; }
.wormhole-arrow::before { height: 1px; flex: 1; background: linear-gradient(90deg, rgb(139 128 255 / 25%), rgb(115 221 255 / 80%)); content: ""; }
.wormhole-arrow span { width: 10px; height: 10px; margin-left: -1px; border-top: 2px solid #88e3ff; border-right: 2px solid #88e3ff; transform: rotate(45deg); }
.wormhole-title { color: #dcecff; font-size: 12px; font-weight: 750; line-height: 1.45; }
.wormhole-detail { color: #aabacc; font-size: 11px; line-height: 1.5; }

.alfaverse-group { min-width: 0; }
.quicklinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.quicklinks-title { width: 100%; margin: 0 0 1px; color: #aabacc; font-size: 11px; text-align: center; }
.quicklinks a { padding: 7px 10px; border: 1px solid rgb(163 205 235 / 22%); border-radius: 999px; background: rgb(8 20 34 / 78%); color: #dcecff; font-size: 11px; line-height: 1.25; text-decoration: none; }
.quicklinks a:hover { border-color: rgb(123 219 255 / 62%); color: #fff; }
.notice { margin: 28px 0 30px; color: #a1b4c5; font-size: 11px; text-align: center; }

@media (max-width: 820px) {
  .page { width: min(100% - 32px, 560px); }
  .topbar { min-height: 64px; }
  .intro { padding-top: 32px; }
  .universe-map { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
  .universe { min-height: 0; padding: 12px; }
  .cloud-wrap { height: 138px; }
  .wormhole { width: min(100%, 350px); justify-self: center; gap: 7px; padding: 4px 10px; }
  .wormhole-arrow { width: 2px; height: 34px; flex: none; flex-direction: column; padding: 0 0 4px; }
  .wormhole-arrow::before { width: 1px; height: auto; flex: 1; background: linear-gradient(180deg, rgb(139 128 255 / 25%), rgb(115 221 255 / 80%)); }
  .wormhole-arrow span { width: 9px; height: 9px; margin: -1px 0 0; border: 0; border-right: 2px solid #88e3ff; border-bottom: 2px solid #88e3ff; transform: rotate(45deg); }
  .quicklinks { margin-top: 12px; }
  .notice { margin-top: 22px; }
}

@media (max-width: 390px) {
  .page { width: calc(100% - 24px); }
  .environment { max-width: 150px; font-size: 8px; letter-spacing: .1em; }
  .cloud-wrap { height: 120px; }
  .universe-name { font-size: 18px; }
  .wormhole-title { font-size: 11px; }
  .wormhole-detail { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
