:root {
  --bg-deep: #010208;
  --ink: #eef3ff;
  --muted: #93a1bf;
  --faint: rgba(150, 168, 205, 0.62);
  --line: rgba(140, 170, 230, 0.16);
  --line-soft: rgba(140, 170, 230, 0.09);
  --gold: #f2b45f;
  --cyan: #7fb4ff;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --rad-panel: 12px;
  --panel-solid: #0b1220;
}
html[lang="en"] {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Backtick Fix", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: var(--font-body);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 18% 12%, rgba(61, 83, 161, 0.16), transparent 60%), radial-gradient(900px 700px at 82% 88%, rgba(96, 54, 140, 0.12), transparent 62%), radial-gradient(700px 560px at 74% 16%, rgba(23, 96, 121, 0.1), transparent 65%), radial-gradient(800px 600px at 50% 112%, rgba(30, 64, 128, 0.08), transparent 70%), linear-gradient(180deg, #02040a 0%, #03060d 45%, var(--bg-deep) 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.62) 100%);
}
#sky-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#sky-canvas.grabbing {
  cursor: grabbing;
}
.hud {
  position: absolute;
  z-index: 2;
}
.header {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 34px 15px;
  background: linear-gradient(180deg, rgba(2, 5, 12, 0.6), rgba(2, 5, 12, 0));
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-title {
  margin: 0;
  line-height: 0;
}
.brand-title a {
  display: block;
  pointer-events: auto;
}
.brand-title img {
  display: block;
  width: auto;
  height: 40px;
}
.brand p {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--faint);
  text-transform: uppercase;
}
.moon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-bottom: 2px;
  border: 0;
  border-bottom: 1px solid rgba(127, 180, 255, 0.34);
  border-radius: 0;
  background: none;
  color: var(--cyan);
  font-size: 10.5px;
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.moon-link::after {
  content: "→";
  font-size: 10px;
  opacity: 0.75;
}
.moon-link:hover {
  border-color: rgba(242, 180, 95, 0.6);
  color: var(--gold);
}
.moon-link:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 3px;
}
.moon-link[hidden] {
  display: none !important;
}
/* 地月系统左侧的操作说明入口 */
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin: 9px 7px 0 0;
  border: 1px solid rgba(127, 180, 255, 0.34);
  border-radius: 50%;
  background: none;
  color: var(--cyan);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  vertical-align: top;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.help-btn:hover {
  border-color: rgba(242, 180, 95, 0.6);
  color: var(--gold);
}
.help-btn:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 2px;
}
.help-pop {
  top: 72px;
  left: 34px;
  width: 262px;
  padding: 13px 16px 14px;
  pointer-events: auto;
}
.help-title {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.help-list {
  margin: 0;
  padding-left: 14px;
  display: grid;
  gap: 5px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}
.help-credit {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(140, 170, 230, 0.55);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--faint);
}
.help-sub {
  margin: 11px 0 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.lang-menu {
  position: relative;
  pointer-events: auto;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lang-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.lang-caret {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.65;
  transition: transform 0.18s ease;
}
.lang-menu.open .lang-caret {
  transform: rotate(180deg);
}
.lang-switch:hover,
.lang-menu.open .lang-switch {
  border-color: rgba(242, 180, 95, 0.42);
  color: var(--gold);
}
.lang-switch:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 3px;
}
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  min-width: 158px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.lang-list[hidden] {
  display: none;
}
.lang-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.lang-option:hover {
  background: rgba(140, 170, 230, 0.1);
  color: var(--ink);
}
.lang-option:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: -2px;
}
.lang-option[aria-selected="true"] {
  color: var(--gold);
}
.clock {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.clock-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.clock-time {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 33px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.clock-sub {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
}
/* 控制条上方的时钟 */
.clock-dock {
  bottom: 84px;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}
.ctrl-open .clock-dock {
  opacity: 0;
  pointer-events: none;
}
.panel {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.82), rgba(5, 9, 18, 0.76));
  border: 1px solid var(--line);
  border-radius: var(--rad-panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}
/* 读数の角标：仪表盘式的一处锐角标记 */
.info::before,
.moon-phase::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 15px;
  height: 15px;
  border-top: 1px solid rgba(242, 180, 95, 0.5);
  border-left: 1px solid rgba(242, 180, 95, 0.5);
  border-top-left-radius: var(--rad-panel);
  pointer-events: none;
}
.controls {
  bottom: 22px;
  left: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  max-width: calc(100vw - 48px);
  padding: 7px 10px;
  border-radius: var(--rad-panel);
  transform: translateX(-50%);
  overflow: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.controls::-webkit-scrollbar {
  display: none;
}
.controls [hidden] {
  display: none !important;
}
.speed-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(242, 180, 95, 0.4);
  border-radius: var(--rad-panel);
  background: #0b1220;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}
.speed-picker .seg-btn {
  min-width: 46px;
  text-align: center;
}
.ctrl-group {
  display: flex;
  align-items: center;
  gap: 3px;
}
.ctrl-head {
  display: none;
}
.ctrl-body {
  display: flex;
  align-items: center;
  gap: 3px;
}
.ctrl-group[data-group="display"] {
  position: relative;
  margin: 0 2px;
}
.ctrl-group[data-group="display"] .ctrl-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  padding: 6px 10px;
}
.ctrl-group[data-group="display"] .ctrl-head .ctrl-icon {
  display: block;
  width: 17px;
  height: 17px;
}
.ctrl-group[data-group="display"] .ctrl-body {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 200px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--rad-panel);
  background: #0b1220;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.ctrl-group[data-group="display"] #scale-group-wrap {
  display: block;
  width: 100%;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.switch-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.switch::before {
  content: '';
  position: absolute;
  inset: -10px -2px;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease, background 0.18s ease;
}
.switch.is-on {
  border-color: rgba(242, 180, 95, 0.48);
  background: rgba(242, 180, 95, 0.2);
}
.switch.is-on::after {
  transform: translateX(16px);
  background: #ffd8a1;
}
.switch:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 2px;
}
@media (min-width: 901px) {
  .ctrl-group[data-group="display"] .ctrl-body {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s;
  }
  .ctrl-group[data-group="display"].is-open .ctrl-body {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}
.control-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.seg {
  display: flex;
  align-items: center;
  gap: 4px;
}
.row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.divider {
  flex: none;
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: var(--line);
}
.seg-btn,
.btn,
.chip,
.ctrl-head {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.seg-btn:hover,
.btn:hover,
.chip:hover,
.ctrl-head:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.seg-btn:active,
.btn:active,
.chip:active,
.ctrl-head:active {
  background: rgba(255, 255, 255, 0.1);
}
.seg-btn:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.ctrl-head:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 2px;
}
.seg-btn.is-active {
  border-color: rgba(242, 180, 95, 0.48);
  background: rgba(242, 180, 95, 0.13);
  color: #ffd8a1;
  font-weight: 600;
}
.ctrl-group.is-open .ctrl-head {
  border-color: rgba(242, 180, 95, 0.48);
  background: rgba(242, 180, 95, 0.13);
  color: #ffd8a1;
  font-weight: 600;
}
.btn.subtle {
  border-color: var(--line);
}
.btn.subtle:hover {
  border-color: rgba(127, 180, 255, 0.28);
  background: rgba(127, 180, 255, 0.09);
}
.btn.back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: rgba(242, 180, 95, 0.38);
  color: var(--gold);
}
.back-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.controls #reset-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 7px;
}
.reset-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.controls #back-solar {
  margin-right: 12px;
}
.controls #pause-btn,
.controls #speed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}
.ctrl-icon {
  display: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}
#speed-btn .ctrl-icon {
  display: block;
}
#pause-btn .icon-pause {
  display: block;
}
#pause-btn.is-on .icon-pause {
  display: none;
}
#pause-btn.is-on .icon-play {
  display: block;
}
.btn.back:hover {
  border-color: rgba(242, 180, 95, 0.6);
  background: rgba(242, 180, 95, 0.1);
}
.btn.is-on {
  border-color: rgba(242, 180, 95, 0.42);
  color: var(--gold);
}
.chip {
  position: relative;
  padding-left: 22px;
  text-align: left;
}
.chip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(140, 155, 196, 0.5);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.chip.is-on {
  color: var(--ink);
}
.chip.is-on::before {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.moon-phase {
  top: 96px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px 12px 13px;
}
.moon-phase[hidden] {
  display: none !important;
}
#moon-phase {
  flex-wrap: wrap;
  max-width: calc(100vw - 32px);
  cursor: pointer;
}
#moon-phase:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 3px;
}
.moon-phases {
  flex: 1 0 100%;
  max-height: 44vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  margin: 0;
  padding: 10px 0 2px;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10px;
}
.moon-phases[hidden] {
  display: none;
}
.moon-phases li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.moon-phases .mph-name {
  color: var(--ink);
  letter-spacing: 0.12em;
  line-height: 1.3;
  white-space: normal;
}
.moon-phases .mph-time {
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.moon-disc {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: #020409;
}
.moon-photo {
  position: absolute;
  inset: 0;
  background: url("../images/moon.png") center / cover no-repeat;
}
#moon-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 97%;
}
.moon-meta p {
  margin: 0;
}
.moon-meta .moon-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--faint);
}
.moon-meta .moon-name {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.moon-meta .moon-illum {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.info {
  z-index: 3;
  bottom: 92px;
  left: 34px;
  width: 300px;
  padding: 18px 20px 15px;
}
.info-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.info-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.info-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.info-title p {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--faint);
  text-transform: uppercase;
}
.info-title p:empty {
  display: none;
}
.info-desc {
  margin: 13px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(206, 218, 240, 0.84);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 15px 0 0;
  padding-top: 3px;
  border-top: 1px solid var(--line-soft);
}
.info-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-grid > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.info-grid dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.info-grid dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.footer {
  right: 34px;
  bottom: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.transfer {
  top: 96px;
  left: 34px;
  width: 286px;
  padding: 16px 18px 13px;
}
.transfer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.transfer.is-dragging .transfer-head {
  cursor: grabbing;
}
.transfer-close {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.transfer-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
.transfer-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.transfer-actions .chip {
  min-height: 24px;
  padding: 3px 8px 3px 20px;
  font-size: 10px;
}
.transfer-actions .chip::before {
  left: 8px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
}
.transfer-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--faint);
}
.transfer-modes {
  margin-top: 12px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.transfer-modes .seg-btn {
  flex: 1;
  min-height: 26px;
  padding: 4px 2px;
  font-size: 10.5px;
  text-align: center;
}
.transfer-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.transfer-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.t-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 7px 26px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2393a1bf' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color-scheme: dark;
  cursor: pointer;
}
.t-select option {
  background-color: var(--panel-solid);
  color: var(--ink);
}
.t-select:hover {
  border-color: rgba(127, 180, 255, 0.28);
}
.t-select:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 2px;
}
.transfer-grid {
  margin-top: 12px;
}
.transfer-grid > div[hidden] {
  display: none;
}
.transfer-note {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.transfer-launch {
  width: 100%;
  margin-top: 11px;
  padding: 8px 0;
  border: 1px solid rgba(242, 180, 95, 0.42);
  border-radius: 5px;
  background: rgba(242, 180, 95, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.transfer-launch:hover:not(:disabled) {
  border-color: rgba(242, 180, 95, 0.72);
  background: rgba(242, 180, 95, 0.16);
}
.transfer-launch:disabled {
  color: var(--faint);
  border-color: rgba(150, 168, 205, 0.22);
  background: rgba(150, 168, 205, 0.05);
  cursor: default;
}
/* ---------- 行星大小（/size） ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.size-page {
  background: linear-gradient(rgba(11, 18, 32, 0.34), rgba(11, 18, 32, 0.62)), url('/static/images/milkyway.jpg') center / cover no-repeat var(--bg-deep);
}
.size-body {
  position: absolute;
  z-index: 1;
  inset: 0;
}
.size-body .compare-stage {
  width: 100%;
  height: 100%;
}
.size-foot {
  left: 50%;
  bottom: 44px;
  max-width: calc(100vw - 32px);
  text-align: center;
  transform: translateX(-50%);
}
.size-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.size-sub {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.compare-stage {
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.compare-stage.grabbing {
  cursor: grabbing;
}
.compare-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.compare-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  text-align: center;
  transform: translateX(-50%);
}
.compare-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.compare-km {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
}
@media (max-width: 900px) {
  .header {
    gap: 12px;
    padding: 12px 16px 11px;
  }
  .brand-title img {
    height: 30px;
  }
  .brand p {
    display: none;
  }
  .moon-link {
    margin-top: 7px;
    font-size: 9px;
  }
  .clock-date {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .clock-time {
    font-size: 23px;
  }
  .clock-sub {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .clock-dock {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .controls {
    right: 0;
    bottom: 0;
    left: 0;
    max-width: none;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--rad-panel) var(--rad-panel) 0 0;
    transform: none;
    justify-content: center;
    justify-content: safe center;
    gap: 2px;
    flex-wrap: wrap;
  }
  .seg-btn,
  .btn,
  .chip {
    min-height: 44px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .divider {
    margin: 0 4px;
  }
  .ctrl-group[data-group="display"] .ctrl-head {
    min-height: 44px;
  }
  .ctrl-group[data-group="display"] .ctrl-head::after {
    display: none;
  }
  .ctrl-group[data-group="display"] .ctrl-body {
    position: fixed;
    bottom: calc(100% + 8px);
    left: 50%;
    width: min(calc(100vw - 24px), 320px);
    max-height: 60vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s;
  }
  .ctrl-group[data-group="display"].is-open .ctrl-body {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .moon-phase {
    top: 76px;
    left: 16px;
    gap: 10px;
    padding: 10px 12px 10px 10px;
  }
  .moon-phases {
    gap: 8px 6px;
    font-size: 9px;
  }
  .moon-disc {
    width: 46px;
    height: 46px;
  }
  .moon-meta .moon-kicker {
    font-size: 8.5px;
  }
  .moon-meta .moon-name {
    font-size: 14px;
  }
  .moon-meta .moon-illum {
    font-size: 9.5px;
  }
  /* 窄屏把详情面板变成控制条上方的底部卡片，保证介绍能看到 */
  .info {
    right: 12px;
    bottom: calc(142px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: 40vh;
    overflow-y: auto;
    padding: 13px 15px 12px;
  }
  .info-title h2 {
    font-size: 17px;
  }
  .info-desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
  }
  .info-grid {
    margin-top: 10px;
  }
  .info-grid > div {
    padding: 6px 0;
  }
  .footer {
    display: none;
  }
  .transfer {
    top: 74px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
    padding: 13px 15px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .seg-btn,
  .btn,
  .chip,
  .ctrl-head,
  .ctrl-head::after,
  .ctrl-body,
  .controls::before {
    transition: none;
  }
}
@media (max-height: 720px) and (min-width: 901px) {
  .info {
    bottom: 84px;
    padding: 15px 16px 13px;
  }
  .info-desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
  }
  .info-grid {
    margin-top: 12px;
  }
  .info-grid > div {
    padding: 6px 0;
  }
  .transfer {
    bottom: 124px;
    padding: 13px 15px 11px;
  }
  .transfer-grid > div {
    padding: 6px 0;
  }
}
/* ---------- 当前位置的星空（/sky/space） ---------- */
#space-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#space-canvas.grabbing {
  cursor: grabbing;
}
.space .moon-phase {
  top: auto;
  bottom: 156px;
}
.space .footer {
  bottom: 176px;
}
.dock {
  bottom: 22px;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(780px, calc(100vw - 48px));
  padding: 7px 14px 6px;
  border-radius: var(--rad-panel);
  transform: translateX(-50%);
}
.dock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.timeline-time {
  flex: none;
  min-width: 46px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.18s ease;
}
.dock.is-sim .timeline-time {
  color: var(--gold);
}
.timeline-track {
  position: relative;
  flex: 1;
  min-width: 0;
  padding-bottom: 13px;
}
.timeline input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(126, 166, 255, 0.18), rgba(126, 166, 255, 0.42), rgba(242, 180, 95, 0.5));
}
.timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #f2b45f;
  box-shadow: 0 0 10px rgba(242, 180, 95, 0.65);
}
.timeline input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(126, 166, 255, 0.18), rgba(126, 166, 255, 0.42), rgba(242, 180, 95, 0.5));
}
.timeline input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #f2b45f;
  box-shadow: 0 0 10px rgba(242, 180, 95, 0.65);
}
.timeline input[type="range"]:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 4px;
  border-radius: 4px;
}
.timeline-scale {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 11px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  pointer-events: none;
}
.timeline-scale span {
  position: absolute;
  bottom: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}
.timeline-scale span[data-edge="start"] {
  transform: none;
}
.timeline-scale span[data-edge="end"] {
  transform: translateX(-100%);
}
.moon-disc canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.moon-link + .moon-link {
  margin-left: 14px;
}
.loc-gate {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(9, 16, 32, 0.7), rgba(1, 3, 8, 0.93));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.loc-gate[hidden] {
  display: none;
}
.gate-card {
  width: min(430px, 100%);
  padding: 26px 26px 22px;
}
.gate-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.gate-desc {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(206, 218, 240, 0.8);
}
.gate-status {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.btn.primary {
  border-color: rgba(242, 180, 95, 0.5);
  background: rgba(242, 180, 95, 0.14);
  color: #ffd8a1;
  font-weight: 600;
}
.btn.primary:hover {
  border-color: rgba(242, 180, 95, 0.72);
  background: rgba(242, 180, 95, 0.22);
  color: #ffe6bf;
}
.gate-manual {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.gate-manual summary {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.gate-manual summary:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 3px;
}
.gate-manual label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.gate-manual input {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.gate-manual input:focus-visible {
  outline: 2px solid rgba(242, 180, 95, 0.72);
  outline-offset: 1px;
}
.gate-manual .btn {
  margin-top: 14px;
}
@media (max-width: 900px) {
  .space .moon-phase {
    top: auto;
    bottom: calc(140px + env(safe-area-inset-bottom));
    left: 12px;
  }
  .space .footer {
    display: none;
  }
  .dock {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--rad-panel) var(--rad-panel) 0 0;
    transform: none;
  }
  .dock-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dock-row::-webkit-scrollbar {
    display: none;
  }
  .timeline-time {
    min-width: 42px;
    font-size: 11px;
  }
}
/*# sourceMappingURL=sky.css.map */