:root {
  --bg: #03050a;
  --ink: #f4f7ff;
  --muted: #9eabc2;
  --cyan: #47d9ff;
  --violet: #8d7cff;
  --rose: #ff6fa8;
  --line: rgba(159, 195, 255, .22);
  --glass: rgba(9, 15, 30, .56);
  --shadow: 0 0 34px rgba(71, 217, 255, .24);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 48%, rgba(60, 190, 255, .2), transparent 16rem),
    radial-gradient(circle at 42% 58%, rgba(180, 72, 255, .22), transparent 19rem),
    radial-gradient(circle at 70% 30%, rgba(25, 85, 190, .18), transparent 24rem),
    var(--bg);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  isolation: isolate;
}

.home-shell::before {
  content: "";
  position: absolute;
  width: min(72vw, 860px);
  aspect-ratio: 1.85;
  border-radius: 50%;
  border: 1px solid rgba(102, 202, 255, .18);
  box-shadow:
    inset 0 0 60px rgba(75, 202, 255, .13),
    0 0 120px rgba(80, 70, 180, .18);
  transform: rotate(-13deg);
  z-index: -1;
}

.identity {
  width: min(520px, 88vw);
  text-align: center;
  padding: 24px;
  border-radius: 50%;
  text-shadow: 0 0 22px rgba(133, 204, 255, .42);
}

.eyebrow,
.module-kicker,
.panel-label {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .18em;
  color: #b5c6e6;
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: .95;
  letter-spacing: 0;
  white-space: nowrap;
}

.sub-intro {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.module {
  position: absolute;
  width: 150px;
  min-height: 118px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform .22s ease, filter .22s ease;
}

.module:hover,
.module:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  filter: brightness(1.18);
  outline: none;
}

.module-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(177, 219, 255, .45);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .35), transparent 34%),
    linear-gradient(145deg, rgba(72, 208, 255, .24), rgba(137, 88, 255, .2));
  box-shadow: 0 0 28px rgba(78, 204, 255, .24);
  color: #f6fbff;
}

.module-icon svg {
  width: 28px;
  height: 28px;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, .75))
    drop-shadow(0 0 8px rgba(72, 208, 255, .45));
}

.module-icon svg * {
  fill: none !important;
}

.module-title {
  max-width: 150px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.module-lottery { left: 30%; top: 58%; }
.module-assets { left: 34%; top: 31%; }
.module-works { left: 50%; top: 18%; }
.module-notes { left: 67%; top: 32%; }
.module-ai { left: 70%; top: 57%; }
.module-nav { left: 50%; top: 78%; }

.module-panel {
  position: absolute;
  left: 32px;
  bottom: 30px;
  width: min(370px, calc(100vw - 64px));
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.module-panel h2 {
  margin: 8px 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.module-panel p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-entry {
  position: absolute;
  right: 28px;
  bottom: 28px;
  min-width: 96px;
  padding: 10px 14px;
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 15, 28, .46);
  box-shadow: 0 0 22px rgba(141, 124, 255, .18);
  backdrop-filter: blur(14px);
}

.admin-entry small {
  color: var(--muted);
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .home-shell {
    min-height: 100svh;
    padding: 28px 18px 150px;
    align-content: start;
    gap: 24px;
  }

  .home-shell::before {
    top: 96px;
    width: 96vw;
  }

  .identity {
    margin-top: 28px;
  }

  .orbit {
    position: static;
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    pointer-events: auto;
  }

  .module {
    position: static;
    width: auto;
    min-height: 126px;
    padding: 16px 8px;
    transform: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 13, 27, .48);
  }

  .module:hover,
  .module:focus-visible {
    transform: translateY(-2px);
  }

  .module-panel {
    position: static;
    width: min(520px, 100%);
  }

  .admin-entry {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .orbit {
    grid-template-columns: 1fr;
  }
}
