:root {
  --ink: #f3f6fa;
  --muted: #8e9aaa;
  --soft: #bac3ce;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .22);
  --panel: rgba(5, 10, 18, .63);
  --panel-strong: rgba(7, 13, 22, .84);
  --accent: #7cc8ff;
  --accent-rgb: 124, 200, 255;
  --planet-texture: url('/assets/solar/earth.jpg');
  --planet-tilt: 23deg;
  --planet-scale: 1;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: #02050b;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #02050b;
  transition: --accent .6s ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #05101a;
  background: #fff;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.space-scene,
.real-starfield,
.starfield-veil,
.deep-grid,
.nebula,
#star-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.space-scene {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 36%, rgba(var(--accent-rgb), .09), transparent 25%),
    #02050b;
}

.real-starfield {
  inset: -7%;
  background: #01030a url('/assets/solar/starfield-2k.jpg') center / cover no-repeat;
  filter: contrast(1.24) brightness(.92) saturate(.84);
  opacity: .92;
  will-change: transform;
  animation: starfield-drift 90s ease-in-out infinite alternate;
}

.starfield-veil {
  background:
    linear-gradient(90deg, rgba(2, 5, 11, .2), rgba(2, 5, 11, .04) 46%, rgba(2, 5, 11, .35)),
    linear-gradient(180deg, rgba(2, 5, 11, .16), rgba(2, 5, 11, .44));
}

.nebula {
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  mix-blend-mode: screen;
  transition: background .7s ease;
}

.nebula-a {
  inset: 8% auto auto 42%;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .38), transparent 68%);
  animation: nebula-breathe 13s ease-in-out infinite alternate;
}

.nebula-b {
  inset: auto auto -27% -16%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(88, 74, 164, .24), transparent 64%);
}

#star-particles {
  width: 100%;
  height: 100%;
  opacity: .72;
}

.deep-grid {
  inset: auto -10% -35% -10%;
  height: 62%;
  opacity: .11;
  transform: perspective(620px) rotateX(64deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .25) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000);
}

@keyframes starfield-drift {
  from { transform: translate3d(-1.4%, -.8%, 0) scale(1.035); }
  to { transform: translate3d(1.4%, .8%, 0) scale(1.08); }
}

@keyframes nebula-breathe {
  from { transform: scale(.92); opacity: .12; }
  to { transform: scale(1.08); opacity: .23; }
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(72px + var(--safe-top));
  padding: calc(16px + var(--safe-top)) clamp(20px, 3.8vw, 64px) 12px;
  background: linear-gradient(180deg, rgba(2, 5, 11, .78), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 9px rgba(var(--accent-rgb), .42));
  transition: stroke .6s ease;
}

.brand-mark circle:first-child {
  fill: rgba(var(--accent-rgb), .26);
}

.brand-orb {
  fill: #fff;
  stroke: none;
}

.brand-copy {
  display: grid;
  gap: 1px;
  letter-spacing: .16em;
}

.brand-copy strong {
  font-size: 11px;
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .24em;
}

.scene-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(6, 11, 18, .54);
  backdrop-filter: blur(16px) saturate(130%);
  font-size: 11px;
  letter-spacing: .08em;
}

.scene-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: .36; transform: scale(.76); }
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #dbe5ee;
  background: rgba(6, 11, 18, .58);
  backdrop-filter: blur(16px) saturate(130%);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover,
.icon-button:focus-visible {
  outline: none;
  color: #fff;
  border-color: rgba(var(--accent-rgb), .65);
  background: rgba(var(--accent-rgb), .13);
}

.icon-button:active {
  transform: scale(.94);
}

.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  gap: clamp(28px, 4vw, 74px);
  width: min(1680px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(92px + var(--safe-top)) clamp(20px, 4vw, 70px) calc(28px + var(--safe-bottom));
}

.hero {
  position: relative;
  min-height: calc(100dvh - 120px - var(--safe-top));
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(440px, 72%);
  padding-top: clamp(36px, 8vh, 96px);
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 10px;
  letter-spacing: .18em;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .65);
}

.eyebrow b {
  color: var(--accent);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
}

.hero h1 {
  margin: 20px 0 14px;
  color: rgba(246, 249, 252, .97);
  font-family: "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(54px, 6.3vw, 104px);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.075em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .45);
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 244, 250, .58);
}

.hero-lead {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.8;
}

.celestial-stage {
  position: absolute;
  z-index: 2;
  top: 3%;
  right: -7%;
  width: min(46vw, 710px);
  aspect-ratio: 1;
  isolation: isolate;
  transform: translate3d(var(--stage-x, 0), var(--stage-y, 0), 0);
  transition: transform .8s cubic-bezier(.2, .72, .2, 1), opacity .45s ease, filter .45s ease;
  will-change: transform;
}

.planet-wrap {
  position: absolute;
  z-index: 4;
  inset: 12%;
  transform: scale(var(--planet-scale));
  transition: transform .7s cubic-bezier(.2, .75, .2, 1);
}

#planet-canvas,
.planet-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

#planet-canvas {
  position: relative;
  z-index: 3;
  display: block;
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, .64));
}

.planet-fallback {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 67% 31%, rgba(255, 255, 255, .2), transparent 24%),
    radial-gradient(circle at 68% 48%, transparent 27%, rgba(1, 5, 13, .86) 76%),
    var(--planet-texture);
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: center, center, 0 50%;
  background-size: cover, cover, auto 100%;
  box-shadow:
    inset -52px -15px 70px rgba(0, 0, 0, .72),
    0 34px 58px rgba(0, 0, 0, .62);
  animation: fallback-rotation 26s linear infinite;
}

.webgl-ready .planet-fallback {
  opacity: 0;
}

@keyframes fallback-rotation {
  to { background-position: center, center, -2048px 50%; }
}

.planet-glow {
  position: absolute;
  z-index: 1;
  inset: 13%;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .17);
  filter: blur(42px);
  opacity: .75;
  animation: planet-glow 7s ease-in-out infinite alternate;
  transition: background .7s ease;
}

@keyframes planet-glow {
  to { transform: scale(1.08); opacity: .46; }
}

.planet-ring {
  position: absolute;
  top: 33%;
  left: -23%;
  width: 146%;
  height: 34%;
  border-radius: 50%;
  background: url('/assets/solar/saturn-ring.png') center / 100% 100% no-repeat;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(224, 203, 170, .23));
  transform: rotate(-9deg) scaleY(.42);
  transform-origin: center;
  mask-image: radial-gradient(ellipse at center, transparent 0 51%, #000 52% 71%, transparent 72%);
  transition: opacity .5s ease, transform .7s ease;
}

.planet-ring-back {
  z-index: 2;
}

.planet-ring-front {
  z-index: 6;
  clip-path: inset(50% 0 0 0);
}

body[data-ring="saturn"] .planet-ring {
  opacity: .82;
  transform: rotate(-9deg) scaleY(.42) scale(1.02);
}

body[data-ring="uranus"] .planet-ring {
  opacity: .28;
  transform: rotate(76deg) scaleY(.15) scale(.9);
  filter: grayscale(1) brightness(1.6) drop-shadow(0 0 6px rgba(182, 244, 250, .24));
}

.orbit {
  position: absolute;
  z-index: 0;
  inset: 7%;
  border: 1px solid rgba(var(--accent-rgb), .16);
  border-radius: 50%;
  transform: rotate(-17deg) scaleY(.39);
  transition: border-color .6s ease;
}

.orbit-two {
  inset: 2%;
  border-style: dashed;
  opacity: .42;
  transform: rotate(38deg) scaleY(.61);
}

.orbit i {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: orbit-node 9s linear infinite;
}

.orbit-two i {
  left: auto;
  right: -3px;
  animation-duration: 14s;
  animation-direction: reverse;
}

@keyframes orbit-node {
  50% { transform: translateY(-2px) scale(1.6); opacity: .32; }
}

.axis-line {
  position: absolute;
  z-index: 6;
  top: 15%;
  left: 49.5%;
  width: 1px;
  height: 70%;
  background: linear-gradient(transparent, rgba(255, 255, 255, .2) 26%, rgba(255, 255, 255, .2) 74%, transparent);
  opacity: .48;
  transform: rotate(var(--planet-tilt));
  transition: transform .7s ease;
}

.axis-line span {
  position: absolute;
  top: -2px;
  left: 7px;
  color: rgba(255, 255, 255, .56);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .12em;
}

.coordinate {
  position: absolute;
  z-index: 7;
  color: rgba(211, 220, 229, .4);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .17em;
}

.coordinate-top {
  top: 8%;
  right: 12%;
}

.coordinate-bottom {
  right: 13%;
  bottom: 9%;
}

.body-panel {
  position: absolute;
  z-index: 8;
  left: 0;
  bottom: 0;
  width: min(560px, 90%);
  overflow: hidden;
  padding: 19px 21px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), .06), transparent 42%),
    rgba(5, 10, 18, .63);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  backdrop-filter: blur(22px) saturate(135%);
  transition: opacity .4s ease, transform .5s ease, border-color .6s ease;
}

.body-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  content: "";
  background: linear-gradient(transparent, var(--accent), transparent);
}

.body-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.body-title > div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .14em;
}

.body-title h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.body-title h2 b {
  font-size: 26px;
  font-weight: 520;
  letter-spacing: .04em;
}

.body-title h2 small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
}

.rotation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}

.rotation-badge svg {
  width: 14px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.body-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0 0;
}

.body-facts div {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid var(--line);
}

.body-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.body-facts dt {
  margin-bottom: 4px;
  color: #6f7a87;
  font-size: 8px;
  letter-spacing: .12em;
}

.body-facts dd {
  overflow: hidden;
  margin: 0;
  color: #d9e1e9;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-section {
  position: relative;
  z-index: 9;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  padding-top: 10px;
}

.module-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.module-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 50%;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.module-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 450;
  letter-spacing: .02em;
}

.module-count {
  padding-bottom: 4px;
  color: #6f7a87;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .16em;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 84px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .045), transparent 48%),
    var(--panel);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .13);
  backdrop-filter: blur(20px) saturate(135%);
  isolation: isolate;
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.module-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 22% 22%, rgba(var(--accent-rgb), .16), transparent 46%);
  opacity: 0;
  transition: opacity .24s ease;
}

.module-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .75));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.module-card:hover,
.module-card:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb), .48);
  background: rgba(8, 15, 24, .8);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(var(--accent-rgb), .05);
  transform: translateY(-3px);
}

.module-card:hover::before,
.module-card:focus-visible::before {
  opacity: 1;
}

.module-card:hover::after,
.module-card:focus-visible::after {
  transform: scaleX(1);
}

.card-number {
  align-self: start;
  padding-top: 2px;
  color: #66717f;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .08em;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .17);
  border-radius: 13px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), .075);
}

.card-icon svg,
.card-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.card-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy small {
  overflow: hidden;
  color: #788391;
  font-size: 9px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-arrow {
  width: 17px;
  color: #65717e;
  transition: color .2s ease, transform .2s ease;
}

.module-card:hover .card-arrow,
.module-card:focus-visible .card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.module-card:nth-child(7) {
  grid-column: auto;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #596471;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: .14em;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text-primary);
}

.footer-rule {
  width: 28px;
  height: 1px;
  background: rgba(var(--accent-rgb), .38);
}

.compatibility-entry {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

html[data-scene-loading] .celestial-stage,
html[data-scene-loading] .body-panel {
  opacity: 0;
}

html[data-scene-loading] .celestial-stage {
  transform: scale(.92);
}

body.scene-changing .celestial-stage {
  opacity: .1;
  filter: blur(8px);
  transform: scale(.92) rotate(-2deg);
}

body.scene-changing .body-panel {
  opacity: .12;
  transform: translateY(8px);
}

body[data-celestial="sun"] .planet-glow {
  inset: 7%;
  opacity: 1;
  filter: blur(52px);
}

body[data-celestial="sun"] #planet-canvas {
  filter: drop-shadow(0 0 32px rgba(255, 142, 40, .62)) drop-shadow(0 0 78px rgba(255, 97, 16, .34));
}

@media (min-width: 1580px) {
  .module-card { min-height: 91px; }
  .celestial-stage { right: -2%; }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(400px, .95fr);
    gap: 24px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .celestial-stage {
    right: -16%;
    width: min(54vw, 650px);
  }

  .module-card {
    grid-template-columns: 24px 38px minmax(0, 1fr) 18px;
    min-height: 78px;
    padding: 10px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 920px) {
  .topbar {
    position: absolute;
  }

  .workspace {
    display: block;
    width: min(760px, 100%);
    padding-top: calc(82px + var(--safe-top));
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(64px, 13vw, 98px);
  }

  .celestial-stage {
    top: 4%;
    right: -4%;
    width: min(72vw, 590px);
  }

  .body-panel {
    width: min(560px, 86%);
  }

  .module-section {
    padding: 38px 0 24px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: calc(64px + var(--safe-top));
    padding: calc(10px + var(--safe-top)) 16px 8px;
  }

  .brand {
    gap: 9px;
    min-height: 48px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy strong {
    font-size: 10px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .scene-status {
    display: none;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .workspace {
    display: block;
    min-height: 100dvh;
    padding: calc(76px + var(--safe-top)) 16px calc(22px + var(--safe-bottom));
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .hero-copy {
    width: 100%;
    padding-top: 20px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(54px, 20vw, 76px);
    line-height: .88;
  }

  .hero-lead {
    max-width: 270px;
    font-size: 11px;
    line-height: 1.65;
  }

  .celestial-stage {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 430px);
    margin: -8px auto -2px;
  }

  .coordinate-top {
    top: 7%;
    right: 9%;
  }

  .coordinate-bottom {
    right: 10%;
    bottom: 8%;
  }

  .body-panel {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 17px 17px 15px;
    border-radius: 16px;
  }

  .body-title {
    align-items: flex-start;
    gap: 10px;
  }

  .body-title h2 b {
    font-size: 23px;
  }

  .rotation-badge {
    padding-top: 4px;
  }

  .body-facts div {
    padding: 0 9px;
  }

  .body-facts dt {
    letter-spacing: .06em;
  }

  .body-facts dd {
    font-size: 9px;
  }

  .module-section {
    padding: 46px 0 0;
  }

  .module-heading {
    margin-bottom: 14px;
  }

  .module-heading h2 {
    font-size: 21px;
  }

  .module-count {
    display: none;
  }

  .module-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .module-card,
  .module-card:nth-child(7) {
    grid-column: auto;
    grid-template-columns: 26px 42px minmax(0, 1fr) 22px;
    min-height: 76px;
    padding: 10px 13px;
    border-radius: 15px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
  }

  .card-copy strong {
    font-size: 14px;
  }

  .card-copy small {
    font-size: 9px;
  }

  .site-footer {
    justify-content: center;
    margin: 22px 0 2px;
  }

  .nebula-a {
    top: 22%;
    left: 18%;
    width: 90vw;
    height: 90vw;
  }

  .deep-grid {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand-copy small { display: none; }
  .body-title h2 { gap: 7px; }
  .body-title h2 b { font-size: 21px; }
  .rotation-badge { font-size: 8px; }
  .body-panel { padding-left: 14px; padding-right: 14px; }
  .body-facts div { padding: 0 7px; }
  .module-card { grid-template-columns: 22px 40px minmax(0, 1fr) 18px; gap: 8px; }
}

@media (pointer: coarse) {
  .module-card:hover {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .13);
    transform: none;
  }

  .module-card:active {
    border-color: rgba(var(--accent-rgb), .5);
    background: rgba(var(--accent-rgb), .1);
    transform: scale(.988);
  }
}

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

  #star-particles {
    display: none;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .scene-status,
  .icon-button,
  .body-panel,
  .module-card {
    background-color: var(--panel-strong);
  }
}
