@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;600;700;900&family=Noto+Sans+TC:wght@400;500;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #17140f;
  --paper: #eee4d0;
  --paper-deep: #d5c5a5;
  --gold: #d7ad5b;
  --gold-pale: #f4d995;
  --vermilion: #a64532;
  --jade: #527d71;
  --sky: #617f9c;
  --violet: #736683;
  --line: rgba(230, 205, 150, 0.23);
  --sans: "Noto Sans TC", sans-serif;
  --serif: "Noto Serif TC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 60% -20%, #3c3223 0, transparent 38rem),
    linear-gradient(145deg, #1d1913, #0f0e0c 66%);
  font-family: var(--sans);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1480px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(230, 205, 150, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  color: var(--paper);
  background: var(--vermilion);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font: 700 1.35rem/1 var(--serif);
  box-shadow: 0 0 1.5rem rgba(166, 69, 50, 0.34);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font: 700 1rem/1.25 var(--serif);
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 0.2rem;
  color: rgba(238, 228, 208, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  color: rgba(238, 228, 208, 0.68);
  cursor: pointer;
  background: rgba(238, 228, 208, 0.035);
  border: 1px solid rgba(238, 228, 208, 0.12);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.header-note:hover,
.header-note:focus-visible {
  color: var(--paper);
  border-color: rgba(238, 228, 208, 0.38);
  outline: none;
}

.header-note:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 173, 91, 0.32);
}

.header-note[aria-pressed="true"] .status-dot {
  background: rgba(238, 228, 208, 0.45);
  box-shadow: none;
  animation: none;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold-pale);
  border-radius: 50%;
  box-shadow: 0 0 0.8rem var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-pale);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.45rem;
  font: 700 clamp(3rem, 5vw, 5.8rem)/1.08 var(--serif);
  letter-spacing: -0.035em;
}

.universe {
  position: relative;
  display: block;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.paper-grain,
.ink-wash,
.constellations {
  position: absolute;
  pointer-events: none;
}

.paper-grain {
  z-index: -1;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ink-wash {
  z-index: -2;
  width: 42rem;
  aspect-ratio: 1;
  filter: blur(42px);
  border-radius: 44% 56% 56% 44% / 46% 40% 60% 54%;
  opacity: 0.22;
}

.ink-wash--one {
  top: -18rem;
  right: 20%;
  background: var(--vermilion);
  transform: rotate(24deg);
}

.ink-wash--two {
  bottom: -22rem;
  left: 5%;
  background: var(--jade);
  transform: rotate(-18deg);
}

.constellations {
  z-index: -1;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, var(--gold-pale) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(238, 228, 208, 0.7) 0 0.7px, transparent 1.2px);
  background-position: 0 0, 43px 61px;
  background-size: 97px 97px, 151px 151px;
  mask-image: linear-gradient(to right, black, transparent 85%);
}

.orbit-stage {
  --system-center-x: 63%;
  --orbit-plane-angle: -9deg;
  position: relative;
  min-height: max(720px, calc(100svh - 76px));
  perspective: 1100px;
  transform-style: preserve-3d;
}

.universe-intro {
  position: absolute;
  z-index: 12;
  top: clamp(2.2rem, 5vh, 4.5rem);
  left: clamp(1.5rem, 3.5vw, 4rem);
  width: min(25.5vw, 26rem);
  pointer-events: none;
}

.universe-intro .eyebrow {
  margin-bottom: 0.6rem;
}

.universe-intro h1 {
  color: transparent;
  background: linear-gradient(100deg, var(--gold-pale), #d89775 58%, #9bbcb2);
  background-clip: text;
  -webkit-background-clip: text;
}

.universe-lead {
  margin-bottom: 1.1rem;
  color: rgba(238, 228, 208, 0.72);
  font: 600 clamp(0.82rem, 1vw, 1rem)/1.6 var(--serif);
  letter-spacing: 0.08em;
}

.subject-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  pointer-events: auto;
}

.subject-key a {
  display: inline-flex;
  padding: 0.3rem 0.62rem;
  color: rgba(238, 228, 208, 0.84);
  text-decoration: none;
  background: rgba(238, 228, 208, 0.055);
  border: 1px solid rgba(238, 228, 208, 0.15);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.subject-key a:hover,
.subject-key a:focus-visible {
  color: #fff4cf;
  background: rgba(215, 173, 91, 0.14);
  border-color: rgba(244, 211, 139, 0.52);
}

.subject-key a:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 3px;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: var(--system-center-x);
  border: 1px solid rgba(215, 173, 91, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--orbit-plane-angle));
  box-shadow:
    0 1.4rem 3.5rem rgba(0, 0, 0, 0.18),
    0 -0.7rem 2rem rgba(244, 217, 149, 0.06),
    inset 0 0 2rem rgba(215, 173, 91, 0.05);
}

.orbit-ring::before {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gold-pale);
  border-radius: 50%;
  box-shadow: 0 0 0.8rem var(--gold);
}

.orbit-ring--one {
  width: min(34vw, 560px);
  height: clamp(260px, 18vw, 330px);
}

.orbit-ring--two {
  width: min(48vw, 820px);
  height: clamp(360px, 26vw, 450px);
}

.orbit-ring--three {
  width: min(59vw, 1120px);
  height: clamp(540px, 34vw, 580px);
  background:
    radial-gradient(
      ellipse at center,
      rgba(215, 173, 91, 0.035) 0 36%,
      transparent 70%
    );
}

.central-star {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--system-center-x);
  display: grid;
  width: clamp(156px, 15vw, 220px);
  aspect-ratio: 1;
  place-content: center;
  padding: 1.3rem;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  background:
    radial-gradient(circle at 34% 29%, #fff5c9 0 5%, transparent 6%),
    radial-gradient(circle at 35% 30%, #f7d98a, #c98b43 58%, #7f4933 100%);
  border: 1px solid rgba(255, 241, 184, 0.75);
  border-radius: 50%;
  box-shadow:
    0 0 2.5rem rgba(215, 173, 91, 0.48),
    0 0 8rem rgba(166, 69, 50, 0.23);
  transform: translate(-50%, -50%);
  transition:
    filter 180ms ease,
    transform 250ms ease;
  appearance: none;
}

.central-star::after {
  position: absolute;
  inset: 8%;
  content: "";
  border: 1px solid rgba(65, 41, 24, 0.25);
  border-radius: 50%;
}

.central-star:hover,
.central-star:focus-visible {
  filter: brightness(1.08);
  outline: 3px solid rgba(255, 239, 177, 0.75);
  outline-offset: 7px;
}

.central-star.is-selecting {
  animation: star-select 650ms ease-in-out;
}

.star-aura {
  position: absolute;
  z-index: -1;
  inset: -20%;
  border: 1px solid rgba(242, 211, 132, 0.25);
  border-radius: 50%;
  animation: aura 3.8s ease-in-out infinite;
}

.star-kicker,
.star-caption {
  display: block;
  position: relative;
  z-index: 1;
  font-size: clamp(0.58rem, 0.8vw, 0.7rem);
  letter-spacing: 0.12em;
}

.star-kicker {
  margin-bottom: 0.45rem;
  color: rgba(39, 28, 19, 0.65);
}

.central-star strong {
  position: relative;
  z-index: 1;
  font: 900 clamp(2.1rem, 3.4vw, 3.4rem)/1.1 var(--serif);
  letter-spacing: 0.08em;
}

.star-caption {
  margin-top: 0.5rem;
  color: rgba(39, 28, 19, 0.72);
}

.star-jump {
  --jump-x: 0px;
  --jump-y: 0px;
  position: absolute;
  z-index: 18;
  top: 50%;
  left: 64%;
  width: 0.8rem;
  aspect-ratio: 1;
  pointer-events: none;
  background: #fff1ad;
  border-radius: 50%;
  box-shadow:
    0 0 1.2rem #fff1ad,
    0 0 2.8rem var(--gold);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.star-jump.is-jumping {
  animation: random-jump 680ms cubic-bezier(0.2, 0.85, 0.28, 1) both;
}

.orbital {
  --start: 0%;
  --duration: 42s;
  position: absolute;
  z-index: 5;
  top: 50%;
  left: var(--system-center-x);
  width: 0;
  height: 0;
}

.orbital--chinese {
  --start: 0%;
}

.orbital--math {
  --start: 20%;
}

.orbital--english {
  --start: 40%;
}

.orbital--science {
  --start: 60%;
}

.orbital--social {
  --start: 80%;
}

.planet {
  --accent: var(--gold);
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: clamp(92px, 9vw, 126px);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.planet.is-recommended {
  z-index: 14;
}

.planet.is-recommended .planet-visual {
  border-color: #fff1ad;
  box-shadow:
    0 0 0 10px rgba(255, 230, 151, 0.18),
    0 0 4.5rem rgba(255, 220, 123, 0.8);
  transform: scale(1.15);
}

.planet--chinese {
  --accent: #bc6652;
  --satellite-duration: 5.4s;
  --satellite-direction: normal;
  --satellite-delay: -1.1s;
}

.planet--math {
  --accent: #d2ae62;
  --satellite-duration: 7.8s;
  --satellite-direction: reverse;
  --satellite-delay: -3.2s;
}

.planet--english {
  --accent: #7f7095;
  --satellite-duration: 6.6s;
  --satellite-direction: normal;
  --satellite-delay: -4.7s;
}

.planet--science {
  --accent: #5f9183;
  --satellite-duration: 9.2s;
  --satellite-direction: reverse;
  --satellite-delay: -2.3s;
}

.planet--social {
  --accent: #6f8da9;
  --satellite-duration: 11.4s;
  --satellite-direction: normal;
  --satellite-delay: -6.8s;
  width: clamp(112px, 11vw, 148px);
}

.planet-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #bda988;
  border: 2px solid color-mix(in srgb, var(--accent), white 26%);
  border-radius: 50%;
  box-shadow:
    0 0 0 7px rgba(238, 228, 208, 0.055),
    0 0 2.2rem color-mix(in srgb, var(--accent), transparent 55%);
  transition:
    transform 230ms ease,
    box-shadow 230ms ease,
    border-color 230ms ease;
}

.planet-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  box-shadow: inset -1.2rem -1rem 1.8rem rgba(20, 17, 13, 0.48);
}

.planet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: sepia(0.08) saturate(0.9) contrast(1.03);
}

.planet--chinese img {
  object-position: center 12%;
}

.planet--social img {
  object-position: center 20%;
}

.subject-orbit {
  position: absolute;
  z-index: 3;
  top: -0.6rem;
  left: 50%;
  width: calc(100% + 1.1rem);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 52%);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: satellite-orbit var(--satellite-duration, 6s) linear infinite
    var(--satellite-direction, normal);
  animation-delay: var(--satellite-delay, 0s);
}

.subject-satellite {
  position: absolute;
  top: 50%;
  left: -1.1rem;
  display: grid;
  width: 2.55rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff7e7;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font: 700 0.64rem/1 var(--serif);
  border-radius: 50%;
  box-shadow:
    0 0.3rem 0.8rem rgba(0, 0, 0, 0.35),
    0 0 1.2rem color-mix(in srgb, var(--accent), transparent 35%);
  transform: translateY(-50%);
  animation: satellite-counter var(--satellite-duration, 6s) linear infinite
    var(--satellite-direction, normal);
  animation-delay: var(--satellite-delay, 0s);
}

.planet-name {
  display: inline-block;
  margin-top: 0.72rem;
  padding: 0.25rem 0.55rem;
  color: rgba(238, 228, 208, 0.84);
  background: rgba(17, 15, 12, 0.74);
  border: 1px solid rgba(238, 228, 208, 0.13);
  border-radius: 999px;
  font: 600 clamp(0.7rem, 0.85vw, 0.82rem)/1.4 var(--serif);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.planet:hover,
.planet:focus-visible {
  z-index: 10;
  outline: none;
}

.planet:hover .planet-visual,
.planet:focus-visible .planet-visual {
  border-color: var(--paper);
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--accent), transparent 72%),
    0 0 3.8rem color-mix(in srgb, var(--accent), transparent 28%);
  transform: scale(1.13);
}

.planet:focus-visible .planet-name {
  outline: 2px solid var(--gold-pale);
  outline-offset: 4px;
}

.planet:focus-visible .planet-visual {
  outline: 3px solid var(--gold-pale);
  outline-offset: 6px;
}

.orbit-stage.is-paused .orbital,
.orbit-stage.is-paused .planet,
.orbit-stage.is-paused .subject-orbit,
.orbit-stage.is-paused .subject-satellite {
  animation-play-state: paused;
}

.orbit-hint {
  position: absolute;
  z-index: 8;
  bottom: 2rem;
  left: 64%;
  margin: 0;
  color: rgba(238, 228, 208, 0.55);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.orbit-hint span {
  margin-right: 0.4rem;
  color: var(--gold);
}

.planet-dialog {
  position: absolute;
  z-index: 24;
  top: 0;
  left: 0;
  width: min(21rem, calc(100vw - 2rem));
  padding: 1.15rem 1.2rem 1.2rem;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(245, 237, 219, 0.98), rgba(216, 201, 169, 0.98)),
    var(--paper);
  border: 1px solid rgba(255, 245, 219, 0.78);
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.planet-dialog[hidden] {
  display: none;
}

.planet-dialog::before {
  position: absolute;
  top: 1.7rem;
  left: -0.55rem;
  width: 1rem;
  aspect-ratio: 1;
  content: "";
  background: #eee2ca;
  border-bottom: 1px solid rgba(255, 245, 219, 0.78);
  border-left: 1px solid rgba(255, 245, 219, 0.78);
  transform: rotate(45deg);
}

.planet-dialog.is-left::before {
  right: -0.55rem;
  left: auto;
  border: 0;
  border-top: 1px solid rgba(255, 245, 219, 0.78);
  border-right: 1px solid rgba(255, 245, 219, 0.78);
}

.planet-dialog.is-detached::before {
  display: none;
}

.planet-dialog.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dialog-kicker {
  margin-bottom: 0.55rem;
  color: var(--vermilion);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.planet-dialog h2 {
  margin-bottom: 0.65rem;
  font: 700 1.32rem/1.45 var(--serif);
  letter-spacing: -0.02em;
}

.dialog-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  color: rgba(23, 20, 15, 0.58);
  cursor: pointer;
  background: rgba(23, 20, 15, 0.04);
  border: 1px solid rgba(23, 20, 15, 0.14);
  border-radius: 50%;
  font: 400 1.25rem/1 var(--sans);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--vermilion);
  border-color: rgba(146, 58, 44, 0.45);
}

.dialog-close:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 2px;
}

#dialog-description {
  margin-bottom: 0.7rem;
  color: rgba(23, 20, 15, 0.72);
  font: 500 0.88rem/1.75 var(--serif);
}

.dialog-figures {
  margin-bottom: 0.9rem;
  color: rgba(23, 20, 15, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.dialog-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 0.72rem 0.85rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.dialog-action:hover,
.dialog-action:focus-visible {
  color: var(--ink);
  background: transparent;
  transform: translateY(-2px);
}

.mobile-list {
  display: none;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.mobile-list h2 {
  margin-bottom: 1.8rem;
  font: 700 clamp(2rem, 8vw, 3.4rem)/1.3 var(--serif);
}

.mobile-subjects {
  display: grid;
  gap: 0.75rem;
}

.mobile-subject {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  color: var(--paper);
  background: rgba(238, 228, 208, 0.055);
  border: 1px solid rgba(238, 228, 208, 0.13);
  text-decoration: none;
}

.mobile-subject img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: cover;
  object-position: center 17%;
  border-radius: 50%;
}

.mobile-subject span,
.mobile-subject small {
  display: block;
}

.mobile-subject span {
  font: 700 1rem/1.4 var(--serif);
}

.mobile-subject small {
  margin-top: 0.2rem;
  color: rgba(238, 228, 208, 0.52);
  font-size: 0.7rem;
}

.mobile-subject > b {
  color: var(--gold);
  font-size: 1.1rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(1480px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: rgba(238, 228, 208, 0.45);
  font-size: 0.72rem;
}

footer p {
  margin-bottom: 0;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

@keyframes aura {
  50% {
    opacity: 0.35;
    transform: scale(1.12);
  }
}

@keyframes satellite-orbit {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes satellite-counter {
  from {
    transform: translateY(-50%) rotate(0);
  }
  to {
    transform: translateY(-50%) rotate(-360deg);
  }
}

@keyframes star-select {
  50% {
    filter: brightness(1.22);
    box-shadow:
      0 0 4rem rgba(255, 232, 161, 0.85),
      0 0 10rem rgba(166, 69, 50, 0.45);
  }
}

@keyframes random-jump {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--jump-x)),
        calc(-50% + var(--jump-y))
      )
      scale(1.5);
  }
}

@media (max-width: 1120px) {
  .orbit-stage {
    min-height: 780px;
  }

  .orbit-ring,
  .central-star,
  .orbital,
  .star-jump,
  .orbit-hint {
    left: 50%;
  }

  .orbit-ring,
  .central-star,
  .orbital,
  .star-jump {
    top: 56%;
  }

  .orbital {
    --duration: 42s;
  }

  .universe-intro {
    width: min(58vw, 30rem);
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  .orbital {
    --duration: 42s;
  }

  .orbit-ring,
  .central-star,
  .orbital,
  .star-jump {
    top: 44%;
  }

  .central-star {
    width: 160px;
    height: 160px;
    padding: 0.9rem;
  }

  .planet {
    width: 92px;
  }

  .planet--social {
    width: 108px;
  }

  .planet-name {
    margin-top: 0.48rem;
    font-size: 0.68rem;
  }

  .subject-satellite {
    width: 2.25rem;
    font-size: 0.58rem;
  }

  .orbit-ring--one {
    width: 300px;
    height: 220px;
  }

  .orbit-ring--two {
    width: 410px;
    height: 300px;
  }

  .orbit-ring--three {
    width: 520px;
    height: 390px;
  }
}

@media (max-width: 1120px) and (max-height: 820px) and (min-width: 761px) {
  .universe-intro {
    top: 1.7rem;
    left: 1.7rem;
    width: 20rem;
  }

  .orbit-ring,
  .central-star,
  .orbital,
  .star-jump,
  .orbit-hint {
    left: 66%;
  }

  .orbit-ring,
  .central-star,
  .orbital,
  .star-jump {
    top: 50%;
  }

  .central-star {
    width: 132px;
    height: 132px;
    padding: 0.65rem;
  }

  .central-star strong {
    font-size: 2.2rem;
  }

  .planet {
    width: 76px;
  }

  .planet--social {
    width: 88px;
  }

  .planet-name {
    margin-top: 0.4rem;
    font-size: 0.62rem;
  }

  .orbit-ring--one {
    width: 260px;
    height: 200px;
  }

  .orbit-ring--two {
    width: 350px;
    height: 270px;
  }

  .orbit-ring--three {
    width: 440px;
    height: 340px;
  }

  .orbit-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  footer {
    width: min(100% - 2rem, 680px);
  }

  .header-note {
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .universe {
    display: block;
    min-height: auto;
  }

  .orbit-stage {
    min-height: calc(100svh - 72px);
    max-height: 720px;
    overflow: hidden;
  }

  .universe-intro {
    top: 1.5rem;
    left: 1.2rem;
    width: calc(100% - 2.4rem);
  }

  .universe-intro .eyebrow {
    font-size: 0.65rem;
  }

  .universe-lead {
    margin-bottom: 0.7rem;
  }

  .subject-key {
    gap: 0.3rem;
  }

  .subject-key a {
    padding: 0.24rem 0.48rem;
    font-size: 0.6rem;
  }

  .orbit-ring--one {
    width: 200px;
    height: 170px;
  }

  .orbit-ring--two {
    width: 240px;
    height: 210px;
  }

  .orbit-ring--three {
    width: 280px;
    height: 250px;
  }

  .central-star {
    top: 62%;
    width: 120px;
    height: 120px;
    padding: 0.7rem;
    aspect-ratio: auto;
  }

  .orbital,
  .star-jump {
    top: 62%;
  }

  .orbit-ring {
    top: 62%;
  }

  .planet {
    width: 56px;
  }

  .planet--social {
    width: 64px;
  }

  .planet-name {
    display: none;
  }

  .subject-orbit {
    width: calc(100% + 0.75rem);
  }

  .subject-satellite {
    left: -0.9rem;
    width: 2.15rem;
    font-size: 0.56rem;
  }

  .orbit-hint {
    bottom: 1rem;
    width: 100%;
    text-align: center;
  }

  .planet-dialog {
    position: fixed;
    top: auto !important;
    right: 1rem;
    bottom: 1rem;
    left: 1rem !important;
    z-index: 30;
    width: min(19rem, calc(100% - 2rem));
    max-height: min(62svh, 31rem);
    margin-inline: auto;
    overflow-y: auto;
    padding: 0.95rem 1rem 1rem;
  }

  .planet-dialog::before {
    display: none;
  }

  .mobile-list {
    display: block;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

}
