:root {
  --space-bg: #010207;
  --space-text: #f6fbff;
  --space-muted: #8799aa;
  --space-cyan: #9be9ff;
  --space-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--space-bg);
  color: var(--space-text);
  font-family: var(--space-font);
}

body {
  min-height: 100svh;
  overscroll-behavior: none;
}

button,
a { font: inherit; }

button { color: inherit; }

.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #010207 url("/images/space-panorama-360-preview.webp") center / cover no-repeat;
}

.space-backdrop::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -20px;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 28%, rgba(130, 204, 239, 0.08) 48%, transparent 68%),
    rgba(0, 3, 10, 0.26);
  background-size: 240% 100%, auto;
  backdrop-filter: blur(12px) saturate(72%);
  -webkit-backdrop-filter: blur(12px) saturate(72%);
  animation: panorama-loading-scan 2.8s ease-in-out infinite;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.panorama-high-ready .space-backdrop::before {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

.panorama-upgrade-failed .space-backdrop::before { animation: none; }

#space-panorama {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.panorama-preview-ready #space-panorama,
.panorama-high-ready #space-panorama { opacity: 1; }

.space-backdrop__veil {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 2, 8, 0.08), transparent 32%, rgba(0, 2, 8, 0.2) 72%, rgba(0, 2, 8, 0.54)),
    radial-gradient(circle at 50% 48%, transparent 42%, rgba(0, 2, 8, 0.18) 76%, rgba(0, 2, 8, 0.48) 100%);
}

#cat-particle-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: opacity 900ms ease;
}

.particle-ready #cat-particle-stage { opacity: 1; }
.is-dragging #cat-particle-stage { cursor: grabbing; }

.particle-ambient,
.particle-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle-ambient {
  opacity: 0.055;
  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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.particle-vignette {
  box-shadow: inset 0 0 170px rgba(0, 1, 7, 0.42);
}

.space-drag-hint {
  position: fixed;
  z-index: 4;
  top: max(25px, env(safe-area-inset-top));
  left: clamp(20px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(218, 233, 244, 0.54);
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

.space-drag-hint span {
  width: 28px;
  height: 14px;
  border: 1px solid rgba(211, 235, 248, 0.28);
  border-radius: 999px;
  position: relative;
}

.space-drag-hint span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(208, 239, 255, 0.8);
  box-shadow: 0 0 9px rgba(130, 218, 255, 0.62);
  transform: translateY(-50%);
  animation: drag-cue 2.4s ease-in-out infinite;
}

.has-explored .space-drag-hint {
  opacity: 0;
  transform: translateY(-6px);
}

.particle-entry {
  position: fixed;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle-enter {
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 5.2vh, 64px);
  width: 348px;
  min-height: 76px;
  padding: 11px 13px 11px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(178, 221, 243, 0.28);
  border-radius: 20px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 86% 48%, rgba(60, 131, 173, 0.13), transparent 29%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.055), transparent 38%),
    rgba(1, 6, 15, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(92, 186, 232, 0.045),
    0 20px 58px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(28px) saturate(118%);
  -webkit-backdrop-filter: blur(28px) saturate(118%);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
  text-decoration: none;
  pointer-events: auto;
  transform: translateX(-50%);
  animation: entry-beacon 4.8s ease-in-out infinite;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
}

html:not(.panorama-high-ready):not(.panorama-upgrade-failed) .particle-enter:not(:hover):not(:focus-visible) {
  opacity: 0.58;
  animation: none;
}

.particle-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 29%, rgba(151, 222, 255, 0.13) 50%, transparent 71%);
  transform: translateX(-115%);
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.particle-enter::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 214, 255, 0.9), transparent);
  box-shadow: 0 0 10px rgba(101, 205, 255, 0.32);
  transform-origin: center;
  transition: width 360ms ease, opacity 360ms ease;
}

.particle-enter:hover,
.particle-enter:focus-visible {
  border-color: rgba(156, 225, 255, 0.56);
  background:
    radial-gradient(circle at 86% 48%, rgba(62, 165, 219, 0.2), transparent 32%),
    linear-gradient(112deg, rgba(135, 216, 255, 0.09), transparent 46%),
    rgba(2, 10, 22, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 22px 64px rgba(0, 0, 0, 0.4),
    0 0 42px rgba(118, 200, 255, 0.11);
  outline: none;
  transform: translateX(-50%) translateY(-3px);
}

.particle-enter:hover::before,
.particle-enter:focus-visible::before { transform: translateX(115%); }

.particle-enter:hover::after,
.particle-enter:focus-visible::after { width: 142px; }

.particle-enter__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  transition: transform 480ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 320ms ease;
}

.particle-enter__copy small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(165, 200, 219, 0.66);
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.particle-enter__copy small::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #98e7ff;
  box-shadow: 0 0 9px rgba(109, 219, 255, 0.82);
}

.particle-enter__copy strong {
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.particle-enter b {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 222, 246, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 156, 195, 0.13), rgba(5, 15, 27, 0.54) 68%);
  color: #dff7ff;
  transition: transform 620ms cubic-bezier(0.16, 0.74, 0.2, 1), background 240ms ease, border-color 240ms ease, opacity 260ms ease;
}

.particle-enter b::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 24%, rgba(122, 218, 255, 0.72) 32%, transparent 41% 72%, rgba(153, 134, 255, 0.52) 82%, transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 65%, #000 67%);
  mask: radial-gradient(circle, transparent 65%, #000 67%);
  animation: orbit-ring 8s linear infinite;
}

.particle-enter b::after {
  content: "";
  position: absolute;
  right: 54%;
  top: 57%;
  width: 70px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.2), rgba(190, 239, 255, 0.92));
  box-shadow: 0 0 10px rgba(99, 202, 255, 0.48);
  transform: rotate(-38deg) scaleX(0.25);
  transform-origin: right center;
  transition: opacity 180ms ease, transform 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.particle-enter b svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.particle-enter:hover b,
.particle-enter:focus-visible b {
  border-color: rgba(165, 225, 255, 0.42);
  background: radial-gradient(circle, rgba(89, 194, 239, 0.18), rgba(5, 18, 32, 0.58) 70%);
  transform: translate(3px, -3px) rotate(-3deg);
}

.particle-enter.is-launching {
  pointer-events: none;
  animation: none;
  border-color: rgba(139, 221, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 46px rgba(96, 198, 255, 0.16),
    0 20px 58px rgba(0, 0, 0, 0.4);
}

.particle-enter.is-launching::after {
  width: calc(100% - 48px);
  opacity: 0.9;
}

.particle-enter.is-launching .particle-enter__copy {
  opacity: 0;
  transform: translateY(10px);
}

.particle-enter.is-launching b {
  border-color: transparent;
  background: transparent;
  opacity: 0;
  transform: translate(4px, -4px) scale(0.88);
}

.particle-enter.is-launching b::after {
  opacity: 1;
  transform: rotate(-38deg) scaleX(1);
}

.launch-transition {
  --launch-x: 50vw;
  --launch-y: 84vh;
  position: fixed;
  z-index: 30;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(1, 3, 10, 0);
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.launch-transition.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.launch-transition::before,
.launch-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.launch-transition::before {
  opacity: 0;
  background:
    radial-gradient(ellipse at 30% 28%, rgba(52, 69, 128, 0.12), transparent 36%),
    radial-gradient(ellipse at 72% 68%, rgba(45, 73, 108, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(0, 1, 6, 0.18), rgba(1, 3, 11, 0.98));
}

.launch-transition.is-active::before {
  animation: launch-veil 1.58s cubic-bezier(0.18, 0.7, 0.2, 1) forwards;
}

.launch-transition::after {
  opacity: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(7, 9, 20, 0.86) 0 5%, rgba(67, 78, 132, 0.11) 11%, transparent 31%),
    radial-gradient(ellipse at 50% 43%, transparent 0 37%, rgba(0, 2, 9, 0.22) 62%, rgba(0, 1, 6, 0.74) 100%);
}

.launch-transition.is-active::after {
  animation: lens-shade 1.58s ease-in-out forwards;
}

.launch-transition__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.launch-transition__portal {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 43%;
  width: clamp(88px, 10vw, 138px);
  aspect-ratio: 1;
  opacity: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #02030a 0 16%, rgba(7, 9, 21, 0.9) 25%, rgba(38, 45, 78, 0.25) 44%, rgba(66, 76, 115, 0.06) 60%, transparent 74%);
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.72),
    0 0 58px rgba(71, 91, 151, 0.14),
    0 0 140px rgba(27, 43, 83, 0.12);
  filter: saturate(78%);
  transform: translate(-50%, -50%) scale(0.4);
}

.launch-transition__portal::before,
.launch-transition__portal::after,
.launch-transition__portal span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.launch-transition__portal::before {
  inset: 20% -14%;
  border: 1px solid rgba(126, 153, 203, 0.28);
  box-shadow:
    0 0 16px rgba(77, 107, 163, 0.12),
    inset 0 0 18px rgba(111, 90, 164, 0.07);
  transform: rotate(-13deg) scaleY(0.28);
  filter: blur(0.35px);
}

.launch-transition__portal::after {
  inset: 31%;
  background: #010208;
  box-shadow:
    0 0 22px rgba(73, 95, 149, 0.12),
    0 0 70px rgba(12, 18, 40, 0.48);
}

.launch-transition__portal span {
  inset: 8%;
  border: 1px solid rgba(92, 112, 164, 0.15);
  box-shadow: inset 0 0 26px rgba(74, 54, 126, 0.08);
  transform: rotate(9deg) scaleY(0.72);
}

.launch-transition.is-active .launch-transition__portal {
  animation: gravity-lens 1.32s 170ms cubic-bezier(0.16, 0.72, 0.2, 1) forwards;
}

.launch-transition.is-active .launch-transition__portal::before {
  animation: accretion-drift 2.8s linear infinite;
}

.launch-transition__rocket {
  position: absolute;
  z-index: 5;
  left: var(--launch-x);
  top: var(--launch-y);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  opacity: 0;
  color: rgba(218, 235, 244, 0.9);
  filter: drop-shadow(0 0 9px rgba(99, 148, 189, 0.22));
  transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
}

.launch-transition__rocket::before,
.launch-transition__rocket::after {
  content: "";
  position: absolute;
  right: 54%;
  top: 56%;
  height: 2px;
  border-radius: 999px;
  transform: rotate(-39deg);
  transform-origin: right center;
}

.launch-transition__rocket::before {
  width: 96px;
  opacity: 0.58;
  background: linear-gradient(90deg, transparent, rgba(72, 96, 145, 0.09), rgba(144, 181, 207, 0.66));
  box-shadow: 0 0 10px rgba(84, 129, 164, 0.18);
}

.launch-transition__rocket::after {
  width: 48px;
  height: 5px;
  opacity: 0.25;
  background: linear-gradient(90deg, transparent, rgba(88, 74, 136, 0.06), rgba(141, 185, 207, 0.38));
  filter: blur(3px);
}

.launch-transition__rocket svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(145, 190, 213, 0.26));
}

.launch-transition.is-active .launch-transition__rocket {
  animation: rocket-warp-flight 1.34s 40ms cubic-bezier(0.24, 0.76, 0.18, 1) forwards;
}

.launch-transition__copy {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(43% + 96px);
  display: grid;
  gap: 7px;
  width: min(420px, calc(100vw - 42px));
  opacity: 0;
  color: rgba(224, 235, 242, 0.9);
  text-align: center;
  transform: translate(-50%, 18px);
  text-shadow: 0 0 18px rgba(72, 104, 147, 0.2);
}

.launch-transition__copy small {
  color: rgba(151, 174, 194, 0.54);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.launch-transition__copy strong {
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 520;
  letter-spacing: 0.08em;
}

.launch-transition.is-active .launch-transition__copy {
  animation: launch-copy 1.34s 160ms ease-in-out forwards;
}

.is-site-launching .particle-controls,
.is-site-launching .space-drag-hint,
.is-site-launching .space-credit {
  opacity: 0;
  transition: opacity 160ms ease;
}

.is-site-launching .particle-enter {
  opacity: 0;
  transform: translateX(-50%) translateY(18px) scale(0.96);
  transition: opacity 180ms ease, transform 260ms ease;
}

.particle-controls {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: clamp(18px, 2.6vw, 42px);
  width: auto;
  display: block;
  pointer-events: auto;
}

.particle-controls button {
  min-width: 92px;
  min-height: 39px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(231, 244, 255, 0.13);
  border-radius: 999px;
  color: rgba(215, 230, 240, 0.68);
  background: rgba(2, 6, 14, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  cursor: pointer;
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.particle-controls button:hover,
.particle-controls button:focus-visible {
  border-color: rgba(157, 221, 255, 0.42);
  color: #f3fbff;
  background: rgba(10, 28, 46, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.particle-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px !important;
  height: 44px;
  min-height: 44px !important;
  padding: 0;
  border-radius: 50% !important;
  color: rgba(225, 239, 248, 0.78) !important;
  border-color: rgba(224, 241, 252, 0.2) !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.055), transparent 58%),
    rgba(2, 7, 16, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 12px 34px rgba(0, 0, 0, 0.2) !important;
}

.particle-reset svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  color: rgba(165, 224, 252, 0.88);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(111, 207, 255, 0.28));
}

.particle-reset.is-resetting svg {
  animation: reset-orbit var(--reset-duration, 900ms) cubic-bezier(0.2, 0.72, 0.2, 1);
}

.particle-reset:hover,
.particle-reset:focus-visible {
  color: #f5fbff !important;
  border-color: rgba(164, 224, 252, 0.46) !important;
  background:
    linear-gradient(120deg, rgba(143, 218, 255, 0.09), transparent 60%),
    rgba(4, 14, 27, 0.78) !important;
}

.space-credit {
  position: fixed;
  z-index: 4;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(201, 215, 226, 0.3);
  font-size: 8px;
  letter-spacing: 0.07em;
  pointer-events: none;
}

.particle-loading {
  --panorama-progress: 0;
  position: fixed;
  z-index: 8;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 17px;
  width: min(580px, calc(100vw - 36px));
  color: rgba(226, 240, 248, 0.88);
  text-align: center;
  isolation: isolate;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 600ms ease, transform 600ms ease, visibility 600ms ease;
}

.particle-loading::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: min(740px, 136vw);
  aspect-ratio: 1.5;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 42%, rgba(118, 169, 207, 0.1), transparent 18%),
    radial-gradient(circle at 72% 35%, rgba(180, 146, 132, 0.08), transparent 16%),
    radial-gradient(circle at 54% 72%, rgba(119, 107, 171, 0.09), transparent 18%),
    radial-gradient(ellipse at center, rgba(4, 11, 25, 0.8), rgba(1, 5, 13, 0.28) 48%, transparent 72%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
  animation: trinary-field-breathe 4.8s ease-in-out infinite;
}

.particle-loading::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 31px;
  width: min(460px, 88vw);
  height: 314px;
  border-top: 1px solid rgba(145, 207, 235, 0.08);
  border-bottom: 1px solid rgba(145, 207, 235, 0.06);
  background: linear-gradient(180deg, transparent, rgba(117, 197, 232, 0.025) 48%, transparent);
  transform: translateX(-50%);
  animation: trinary-field-scan 3.4s ease-in-out infinite;
}

.panorama-loading-dismissed .particle-loading,
.no-particle-canvas .particle-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -44%) scale(0.98);
}

.particle-loading__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(151, 184, 204, 0.56);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.particle-loading__kicker i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a9e6ff;
  box-shadow: 0 0 10px rgba(111, 211, 255, 0.74);
  animation: trinary-signal-lock 1.6s ease-in-out infinite;
}

.particle-loading__signal {
  position: relative;
  width: 200px;
  height: 136px;
  background: radial-gradient(ellipse 72px 25px at center, transparent 96%, rgba(148, 205, 231, 0.18) 98%, transparent 100%);
  filter: drop-shadow(0 0 22px rgba(79, 143, 180, 0.08));
  transform: scale(1.08);
}

.particle-loading__signal::before,
.particle-loading__signal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(148, 205, 231, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.particle-loading__signal::before {
  width: 142px;
  height: 48px;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.particle-loading__signal::after {
  width: 108px;
  height: 78px;
  border-color: rgba(139, 166, 211, 0.13);
  transform: translate(-50%, -50%) rotate(34deg);
}

.particle-loading__body,
.particle-loading__receiver {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: block;
  border-radius: 50%;
}

.particle-loading__body--one {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 34% 32%, #fff4dc, #c4a87d 58%, #615341);
  box-shadow: 0 0 10px rgba(232, 202, 151, 0.42), 0 0 28px rgba(205, 170, 114, 0.14);
  animation: trinary-orbit-one 6.8s linear infinite;
}

.particle-loading__body--two {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle at 34% 32%, #e7f8ff, #7fb5ca 58%, #385968);
  box-shadow: 0 0 9px rgba(140, 212, 239, 0.46), 0 0 24px rgba(105, 190, 224, 0.14);
  animation: trinary-orbit-two 5.1s linear infinite reverse;
}

.particle-loading__body--three {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 34% 32%, #eee9ff, #9e91bd 58%, #514969);
  box-shadow: 0 0 9px rgba(183, 166, 222, 0.4), 0 0 24px rgba(145, 126, 190, 0.13);
  animation: trinary-orbit-three 8.9s linear infinite;
}

.particle-loading__receiver {
  width: 7px;
  height: 7px;
  background: #c9f0ff;
  box-shadow: 0 0 12px rgba(115, 216, 255, 0.82), 0 0 36px rgba(96, 192, 232, 0.28);
  transform: translate(-50%, -50%);
}

.particle-loading__receiver::before,
.particle-loading__receiver::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(142, 222, 255, 0.3);
  border-radius: 50%;
  animation: trinary-receiver-pulse 2.2s ease-out infinite;
}

.particle-loading__receiver::after {
  animation-delay: 1.1s;
}

.particle-loading__copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.particle-loading__copy strong {
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  color: rgba(234, 244, 250, 0.94);
  font-size: 28px;
  font-weight: 580;
  letter-spacing: 0.095em;
  text-shadow: 0 0 18px rgba(91, 173, 209, 0.18);
}

.particle-loading__copy small {
  overflow: hidden;
  color: rgba(185, 212, 228, 0.86);
  font-size: 13px;
  letter-spacing: 0.085em;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.particle-loading__progress {
  display: grid;
  gap: 9px;
  width: min(410px, 80vw);
  margin-top: 4px;
}

.particle-loading__progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: rgba(198, 222, 235, 0.88);
  font-size: 14px;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-align: left;
}

.particle-loading__progress-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.particle-loading__progress-head b {
  flex: 0 0 auto;
  color: rgba(196, 235, 251, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.particle-loading__track {
  position: relative;
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(148, 211, 238, 0.14);
  border-radius: 999px;
  background: rgba(5, 18, 31, 0.58);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.32);
}

.particle-loading__track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(104, 181, 217, 0.58), rgba(174, 228, 248, 0.94));
  box-shadow: 0 0 10px rgba(111, 207, 239, 0.24);
  transform: scaleX(var(--panorama-progress));
  transform-origin: left center;
  transition: transform 180ms linear;
}

.particle-loading.is-indeterminate .particle-loading__track i {
  width: 34%;
  transform: translateX(-115%);
  animation: panorama-progress-indeterminate 1.45s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.particle-loading[data-loading-state="decoding"] .particle-loading__track i,
.particle-loading[data-loading-state="calibrating"] .particle-loading__track i {
  animation: panorama-progress-resolve 1.15s ease-in-out infinite;
}

.particle-loading[data-loading-state="complete"] .particle-loading__progress-head,
.particle-loading[data-loading-state="complete"] .particle-loading__detail {
  color: rgba(209, 236, 247, 0.9);
}

.particle-loading[data-loading-state="failed"] .particle-loading__progress-head,
.particle-loading[data-loading-state="failed"] .particle-loading__detail {
  color: rgba(201, 189, 180, 0.82);
}

.particle-loading__detail {
  overflow: hidden;
  color: rgba(158, 190, 209, 0.82);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.particle-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.particle-fallback {
  position: fixed;
  z-index: 7;
  left: 50%;
  top: 50%;
  display: none;
  color: #a8bdc9;
  text-align: center;
  transform: translate(-50%, -50%);
}

.particle-fallback p { margin: 0 0 12px; }
.particle-fallback a { color: var(--space-cyan); }
.no-particle-canvas .particle-fallback { display: block; }

.particle-noscript {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #010207;
  color: #b7cad4;
  text-align: center;
}

.particle-noscript a { color: var(--space-cyan); }

@keyframes drag-cue {
  0%, 100% { transform: translate(0, -50%); opacity: 0.45; }
  50% { transform: translate(12px, -50%); opacity: 1; }
}

@keyframes panorama-loading-scan {
  0%, 100% { background-position: 130% 0, 0 0; }
  50% { background-position: -30% 0, 0 0; }
}

@keyframes trinary-field-breathe {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes trinary-field-scan {
  0%, 100% { opacity: 0.28; transform: translate(-50%, 18px); }
  50% { opacity: 0.8; transform: translate(-50%, 112px); }
}

@keyframes trinary-signal-lock {
  0%, 100% { opacity: 0.36; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes trinary-orbit-one {
  0% { transform: translate(-50%, -50%) translate(72px, 0); }
  12.5% { transform: translate(-50%, -50%) translate(51px, 17px); }
  25% { transform: translate(-50%, -50%) translate(0, 24px); }
  37.5% { transform: translate(-50%, -50%) translate(-51px, 17px); }
  50% { transform: translate(-50%, -50%) translate(-72px, 0); }
  62.5% { transform: translate(-50%, -50%) translate(-51px, -17px); }
  75% { transform: translate(-50%, -50%) translate(0, -24px); }
  87.5% { transform: translate(-50%, -50%) translate(51px, -17px); }
  100% { transform: translate(-50%, -50%) translate(72px, 0); }
}

@keyframes trinary-orbit-two {
  0% { transform: translate(-50%, -50%) translate(43px, 28px); }
  12.5% { transform: translate(-50%, -50%) translate(10px, 37px); }
  25% { transform: translate(-50%, -50%) translate(-29px, 25px); }
  37.5% { transform: translate(-50%, -50%) translate(-51px, -2px); }
  50% { transform: translate(-50%, -50%) translate(-43px, -28px); }
  62.5% { transform: translate(-50%, -50%) translate(-10px, -37px); }
  75% { transform: translate(-50%, -50%) translate(29px, -25px); }
  87.5% { transform: translate(-50%, -50%) translate(51px, 2px); }
  100% { transform: translate(-50%, -50%) translate(43px, 28px); }
}

@keyframes trinary-orbit-three {
  0% { transform: translate(-50%, -50%) translate(18px, -42px); }
  12.5% { transform: translate(-50%, -50%) translate(52px, -25px); }
  25% { transform: translate(-50%, -50%) translate(56px, 7px); }
  37.5% { transform: translate(-50%, -50%) translate(27px, 35px); }
  50% { transform: translate(-50%, -50%) translate(-18px, 42px); }
  62.5% { transform: translate(-50%, -50%) translate(-52px, 25px); }
  75% { transform: translate(-50%, -50%) translate(-56px, -7px); }
  87.5% { transform: translate(-50%, -50%) translate(-27px, -35px); }
  100% { transform: translate(-50%, -50%) translate(18px, -42px); }
}

@keyframes trinary-receiver-pulse {
  0% { opacity: 0.72; transform: scale(0.45); }
  72%, 100% { opacity: 0; transform: scale(2.2); }
}

@keyframes panorama-progress-indeterminate {
  0% { opacity: 0.38; transform: translateX(-115%); }
  48% { opacity: 1; }
  100% { opacity: 0.38; transform: translateX(395%); }
}

@keyframes panorama-progress-resolve {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; box-shadow: 0 0 15px rgba(125, 216, 247, 0.42); }
}

@keyframes entry-beacon {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(130, 214, 255, 0)); }
  50% { filter: drop-shadow(0 0 12px rgba(130, 214, 255, 0.18)); }
}

@keyframes orbit-ring {
  to { transform: rotate(360deg); }
}

@keyframes launch-veil {
  0% { opacity: 0; }
  16% { opacity: 0.42; }
  56% { opacity: 0.9; }
  100% { opacity: 1; }
}

@keyframes lens-shade {
  0% { opacity: 0; transform: scale(0.82); }
  28% { opacity: 0.38; }
  76% { opacity: 0.58; transform: scale(1.06); }
  100% { opacity: 0.16; transform: scale(1.18); }
}

@keyframes gravity-lens {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); filter: saturate(68%) blur(1.2px); }
  24% { opacity: 0.48; }
  66% { opacity: 0.62; transform: translate(-50%, -50%) scale(1.02); filter: saturate(76%) blur(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); filter: saturate(60%) blur(2px); }
}

@keyframes accretion-drift {
  to { transform: rotate(347deg) scaleY(0.28); }
}

@keyframes rocket-warp-flight {
  0% {
    left: var(--launch-x);
    top: var(--launch-y);
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
  }
  18% {
    left: var(--launch-x);
    top: calc(var(--launch-y) - 58px);
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-6deg) scale(1.05);
  }
  43% {
    left: calc(var(--launch-x) + 18px);
    top: calc(var(--launch-y) - 190px);
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0.92);
  }
  76% {
    left: 50%;
    top: 43%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-24deg) scale(0.62);
  }
  100% {
    left: 50%;
    top: 43%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-34deg) scale(0.04);
  }
}

@keyframes launch-copy {
  0% { opacity: 0; transform: translate(-50%, 18px); }
  20%, 67% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -12px); }
}

@keyframes reset-orbit {
  0% { transform: rotate(0deg) scale(1); }
  52% { transform: rotate(-230deg) scale(1.08); }
  100% { transform: rotate(-360deg) scale(1); }
}

@media (max-width: 900px) {
  .particle-controls {
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
  }

  .space-drag-hint {
    top: max(22px, calc(env(safe-area-inset-top) + 9px));
    left: 17px;
  }

  .particle-enter {
    bottom: max(25px, calc(env(safe-area-inset-bottom) + 17px));
  }

  .space-credit { display: none; }
}

@media (max-width: 520px) {
  .particle-controls button {
    min-height: 36px;
    font-size: 9px;
  }

  .space-drag-hint { top: max(25px, calc(env(safe-area-inset-top) + 12px)); }

  .particle-enter {
    width: min(320px, calc(100vw - 34px));
    min-height: 70px;
    padding: 10px 11px 10px 19px;
  }

  .particle-enter__copy { gap: 4px; }
  .particle-enter__copy small { font-size: 8px; }
  .particle-enter__copy strong { font-size: 14px; letter-spacing: 0.025em; }
  .particle-enter b { width: 42px; height: 42px; }

  .launch-transition__rocket { width: 27px; height: 27px; }
  .launch-transition__rocket svg { width: 19px; height: 19px; }
  .launch-transition__copy { top: calc(43% + 82px); }
  .launch-transition__copy strong { font-size: 16px; letter-spacing: 0.045em; }

  .particle-loading { gap: 13px; }
  .particle-loading::after { width: min(350px, 92vw); }
  .particle-loading__signal { width: 184px; height: 126px; transform: scale(1); }
  .particle-loading__copy strong { font-size: 22px; letter-spacing: 0.08em; }
  .particle-loading__copy small { font-size: 10.5px; letter-spacing: 0.065em; }
  .particle-loading__progress { width: min(288px, calc(100vw - 40px)); }
  .particle-loading__progress-head { font-size: 11.5px; }
  .particle-loading__progress-head b { font-size: 11.5px; }
  .particle-loading__detail { font-size: 9.5px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .particle-loading {
    top: 44%;
    gap: 6px;
  }

  .particle-loading__kicker { display: none; }
  .particle-loading__signal { height: 78px; transform: scale(0.72); }
  .particle-loading__copy { gap: 5px; }
  .particle-loading__copy strong { font-size: 20px; }
  .particle-loading__copy small { font-size: 9px; }
  .particle-loading__progress { gap: 5px; width: min(320px, 62vw); margin-top: 1px; }
  .particle-loading__progress-head,
  .particle-loading__progress-head b { font-size: 10px; }
  .particle-loading__track { height: 4px; }
  .particle-loading__detail { font-size: 8.5px; }
  .particle-loading::after { top: 7px; height: 214px; }
}

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

  .particle-loading.is-indeterminate .particle-loading__track i {
    width: 34%;
    opacity: 0.82;
    transform: translateX(0);
    animation: none !important;
  }
}
