:root {
  --bg: #070a12;
  --panel: #111722;
  --panel-soft: rgba(17, 23, 34, 0.82);
  --ink: #eef4ff;
  --muted: #9aa8ba;
  --line: rgba(164, 180, 204, 0.22);
  --gold: #ffd076;
  --cyan: #8bdcff;
  --pink: #ff8fc8;
  --green: #9ee7b7;
  --paper: #f8f4ec;
  --paper-ink: #172033;
  --font-ui: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
  --font-romance: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", Georgia, serif;
  --font-data: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
  background:
    radial-gradient(circle at 70% 10%, rgba(139, 220, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #05070d 0%, #070a12 48%, #0d111a 100%);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

main,
section,
article,
aside {
  min-width: 0;
}

.cosmos-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #05070d;
}

.cosmos-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 48% 46%, transparent 0 42%, rgba(5, 7, 13, 0.12) 66%, rgba(5, 7, 13, 0.52) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.14), rgba(5, 7, 13, 0.02) 42%, rgba(5, 7, 13, 0.3));
  content: "";
  pointer-events: none;
}

.cosmos-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #05070d;
  cursor: grab;
  touch-action: none;
}

.cosmos-map:active {
  cursor: grabbing;
}

.cosmos-map canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.cosmos-status {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: min(100% - 28px, 920px);
  transform: translateX(-50%);
  pointer-events: none;
}

.status-day,
.status-date,
.status-times span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(164, 180, 204, 0.24);
  border-radius: 999px;
  color: #dce8f6;
  background: rgba(7, 10, 18, 0.58);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 22px rgba(139, 220, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 680;
}

.status-day {
  border: 0;
  color: rgba(255, 232, 179, 0.96);
  min-height: 34px;
  padding: 4px 6px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-family: var(--font-data);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: 0;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.96),
    0 0 16px rgba(255, 208, 118, 0.34);
}

.status-date,
.status-times {
  display: none;
}

.status-times {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stellar-legend {
  position: absolute;
  top: 86px;
  left: 18px;
  z-index: 3;
  width: 260px;
  color: rgba(244, 247, 255, 0.88);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.temperature-strip {
  height: 16px;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #e85b12 0%, #ffd64b 24%, #fff4c6 45%, #f6fbff 58%, #aeb8ff 78%, #6f58ff 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.temperature-scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: rgba(244, 247, 255, 0.9);
}

.stellar-legend p {
  margin-bottom: 6px;
  font-weight: 760;
}

.zoom-axis {
  position: absolute;
  top: 70px;
  right: 22px;
  bottom: 54px;
  z-index: 3;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 14px;
  width: 34px;
  color: rgba(244, 247, 255, 0.78);
  pointer-events: auto;
}

.zoom-axis-line {
  position: relative;
  width: 34px;
  height: 100%;
  background:
    linear-gradient(rgba(244, 247, 255, 0.68), rgba(244, 247, 255, 0.68)) 50% 0 / 2px 100% no-repeat;
  cursor: ns-resize;
}

.zoom-axis-line::before,
.zoom-axis-line::after {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 2px;
  background: rgba(244, 247, 255, 0.72);
  content: "";
  transform: translateX(-50%);
}

.zoom-axis-line::before {
  top: 0;
}

.zoom-axis-line::after {
  bottom: 0;
}

.zoom-axis-thumb {
  position: absolute;
  left: 50%;
  width: 34px;
  height: 12px;
  border: 1px solid rgba(244, 247, 255, 0.78);
  border-radius: 999px;
  background: rgba(244, 247, 255, 0.86);
  box-shadow: 0 0 10px rgba(244, 247, 255, 0.26);
  transform: translate(-50%, -50%);
}

.zoom-axis-help {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.interaction-hint {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(164, 180, 204, 0.2);
  border-radius: 999px;
  color: rgba(220, 232, 246, 0.72);
  background: rgba(7, 10, 18, 0.48);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  pointer-events: none;
}

.debug-toast {
  position: absolute;
  right: 72px;
  bottom: 18px;
  z-index: 5;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(139, 220, 255, 0.22);
  border-radius: 999px;
  color: rgba(230, 244, 255, 0.88);
  background: rgba(7, 10, 18, 0.62);
  box-shadow: 0 0 18px rgba(139, 220, 255, 0.12);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.debug-toast.is-visible {
  opacity: 1;
}

.star-detail-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(164, 180, 204, 0.3);
  border-radius: 8px;
  color: var(--paper-ink);
  background: rgba(248, 244, 236, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.cosmos-detail-panel {
  position: absolute;
  top: 72px;
  right: 18px;
  bottom: auto;
  z-index: 4;
  width: min(340px, calc(100vw - 44px));
  max-height: calc(100svh - 104px);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease, background 220ms ease;
}

.cosmos-detail-panel:not(.is-expanded) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.cosmos-detail-panel.is-expanded {
  overflow: auto;
  scrollbar-width: none;
  transform: translateX(0);
}

.cosmos-detail-panel.is-expanded::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cosmos-detail-panel > :not(.cosmos-panel-handle) {
  transition: opacity 160ms ease;
}

.cosmos-detail-panel:not(.is-expanded) > :not(.cosmos-panel-handle) {
  opacity: 0;
  pointer-events: none;
}

.cosmos-panel-handle {
  display: none;
}

.cosmos-panel-handle::before,
.cosmos-panel-handle::after {
  content: none;
}

.cosmos-panel-handle::before {
  top: 20px;
}

.cosmos-panel-handle::after {
  bottom: 20px;
}

.detail-close {
  display: none;
}

.cosmos-stage.is-closeup .cosmos-status,
.cosmos-stage.is-closeup .stellar-legend,
.cosmos-stage.is-closeup .interaction-hint {
  opacity: 0.34;
}

.cosmos-stage.is-closeup .cosmos-detail-panel {
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: min(34vw, 500px);
  min-width: 360px;
  padding: min(12vh, 112px) 28px 32px;
  border: 0;
  border-radius: 0;
  color: rgba(248, 250, 255, 0.94);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.34) 70%, rgba(0, 0, 0, 0));
  box-shadow: none;
  backdrop-filter: blur(3px);
  transform: translateX(0);
}

.cosmos-stage.is-closeup .cosmos-panel-handle {
  display: none;
}

.cosmos-stage.is-closeup .detail-close {
  position: absolute;
  top: min(12vh, 112px);
  right: 28px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  color: rgba(248, 250, 255, 0.9);
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.42);
}

.cosmos-stage.is-closeup .card-kicker {
  color: rgba(248, 250, 255, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.26);
}

.cosmos-stage.is-closeup .star-detail-panel h2 {
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #f8fbff;
  max-width: calc(100% - 44px);
  overflow-wrap: anywhere;
  font-family: var(--font-romance);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  font-weight: 500;
  line-height: 0.95;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.82),
    0 0 22px rgba(132, 170, 255, 0.72);
}

#star-detail-title.is-catalog-id {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: 0;
}

.star-detail-subtitle {
  margin: 0;
  color: rgba(255, 215, 235, 0.86);
  font-family: var(--font-romance);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.2;
}

.cosmos-stage.is-closeup .star-detail-subtitle {
  color: rgba(255, 230, 244, 0.9);
  font-size: clamp(1.2rem, 1.8vw, 1.68rem);
  text-shadow: 0 0 16px rgba(255, 120, 196, 0.24);
}

.cosmos-stage.is-closeup .star-detail-note {
  max-width: 440px;
  margin-top: 20px;
  color: rgba(248, 250, 255, 0.92);
  font-family: var(--font-romance);
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  font-variant-numeric: tabular-nums;
  font-weight: 520;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.96);
}

.cosmos-stage.is-closeup .star-detail-list {
  grid-template-columns: 1fr;
  max-width: 440px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(248, 250, 255, 0.28);
}

.cosmos-stage.is-closeup .star-detail-list dt {
  color: rgba(248, 250, 255, 0.54);
}

.cosmos-stage.is-closeup .star-detail-list dd,
.cosmos-stage.is-closeup .star-detail-list a {
  color: rgba(248, 250, 255, 0.88);
}

.page-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 34px 0 18px;
}

.section-block {
  margin: 0 0 34px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 16px;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading h2,
#romance-title {
  color: rgba(255, 230, 244, 0.94);
  font-family: var(--font-romance);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.12;
  text-shadow: 0 0 18px rgba(255, 143, 200, 0.16);
}

.section-copy,
.metric-hint,
.star-detail,
.star-detail-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.compact-stars {
  padding-top: 2px;
}

.star-archive-table {
  overflow: visible;
  border: 1px solid rgba(164, 180, 204, 0.16);
  border-radius: 8px;
  background: rgba(7, 10, 18, 0.42);
}

.star-archive-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.archive-row {
  cursor: pointer;
}

.archive-row td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(164, 180, 204, 0.12);
  color: rgba(220, 232, 246, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-row td:nth-child(1) {
  width: 126px;
  color: var(--gold);
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
}

.archive-row td:nth-child(2) {
  width: 92px;
  color: rgba(220, 232, 246, 0.58);
  font-family: var(--font-data);
  font-weight: 650;
}

.archive-row td:nth-child(3) {
  width: 28%;
  color: var(--ink);
  font-family: var(--font-romance);
  font-style: italic;
  font-weight: 720;
}

.archive-row td.is-catalog-name {
  font-family: var(--font-data);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.archive-row td:nth-child(4) {
  color: rgba(220, 232, 246, 0.72);
  font-size: 0.9rem;
}

.archive-row:hover,
.archive-row:focus-visible {
  background:
    linear-gradient(90deg, rgba(255, 208, 118, 0.1), rgba(139, 220, 255, 0.06));
  outline: none;
}

.archive-row.is-today td:nth-child(1),
.archive-row.is-today td:nth-child(3) {
  color: #fff2bf;
  text-shadow: 0 0 12px rgba(255, 208, 118, 0.28);
}

.archive-row.is-milestone td:nth-child(1),
.archive-row.is-milestone td:nth-child(3) {
  color: #ffd7eb;
}

.archive-row.is-milestone {
  background: linear-gradient(90deg, rgba(255, 143, 200, 0.055), transparent 72%);
}

.archive-row.is-milestone td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.archive-row.is-milestone td:nth-child(1) {
  color: #ffd7eb;
  font-size: 0.88rem;
  font-weight: 780;
  text-shadow: 0 0 12px rgba(255, 143, 200, 0.22);
}

.archive-row.is-milestone td:nth-child(3),
.archive-row.is-milestone td:nth-child(4) {
  color: #ffd7eb;
  font-family: var(--font-romance);
  font-size: 1rem;
  font-style: italic;
  text-shadow: 0 0 14px rgba(255, 143, 200, 0.18);
}

.archive-row.is-milestone td:nth-child(4) {
  color: rgba(255, 208, 118, 0.86);
  font-size: 1.04rem;
}

.full-archive {
  margin-top: 10px;
}

.full-archive summary {
  width: max-content;
  color: rgba(220, 232, 246, 0.72);
  cursor: pointer;
  font-size: 0.86rem;
}

.full-archive .star-archive-table {
  max-height: min(520px, 58vh);
  margin-top: 10px;
  overflow: auto;
  scrollbar-color: rgba(255, 208, 118, 0.28) transparent;
  scrollbar-width: thin;
}

.full-archive .star-archive-table::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.full-archive .star-archive-table::-webkit-scrollbar-track {
  background: transparent;
}

.full-archive .star-archive-table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 208, 118, 0.24);
}

.star-label-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.star-map-label {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  max-width: min(320px, 78vw);
  padding: 0;
  color: rgba(246, 249, 255, 0.94);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.82),
    0 0 14px rgba(156, 190, 255, 0.58),
    1px 1px 2px rgba(0, 0, 0, 0.96);
  white-space: normal;
  translate: 16px -50%;
}

.star-map-label-detail {
  color: rgba(230, 235, 248, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
}

.star-map-label.is-today {
  color: #fff2bf;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.86),
    0 0 18px rgba(255, 196, 82, 0.68),
    1px 1px 2px rgba(0, 0, 0, 0.96);
}

.star-map-label.is-milestone {
  color: #fff0f8;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.86),
    0 0 18px rgba(255, 120, 196, 0.7),
    1px 1px 2px rgba(0, 0, 0, 0.96);
}

.star-detail-panel h2 {
  color: var(--paper-ink);
  font-size: 1.12rem;
}

.star-detail-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.star-detail-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 2px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(20, 31, 48, 0.12);
  border-radius: 0;
  background: transparent;
}

.star-detail-list dt {
  color: #667284;
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.star-detail-list dd {
  margin: 0;
  color: var(--paper-ink);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.star-detail-list a {
  color: #775018;
  text-decoration: none;
}

.star-detail-list a:hover {
  text-decoration: underline;
}

.star-more-data {
  margin-top: 14px;
  color: inherit;
}

.star-more-data summary {
  width: max-content;
  color: rgba(23, 32, 51, 0.48);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 650;
}

.cosmos-stage.is-closeup .star-detail-list div {
  border-color: rgba(248, 250, 255, 0.16);
  background: transparent;
}

.cosmos-stage.is-closeup .star-more-data summary {
  color: rgba(248, 250, 255, 0.46);
}

.star-more-data .star-detail-list {
  margin-top: 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.time-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 34, 0.72);
}

.time-zone-heading {
  margin-bottom: 14px;
}

.route-label {
  margin-bottom: 0;
  color: rgba(255, 230, 244, 0.72);
  font-family: var(--font-romance);
  font-size: 0.96rem;
  font-style: italic;
  font-weight: 500;
}

.time-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.time-row::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 118, 0.68), transparent);
  content: "";
  transform: translate(-50%, -50%);
}

.signal-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 42px;
  height: 18px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.signal-pulse::before,
.signal-pulse::after {
  position: absolute;
  top: 50%;
  content: "";
  transform: translateY(-50%);
}

.signal-pulse::before {
  left: 4px;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 208, 118, 0), rgba(255, 208, 118, 0.72), rgba(255, 143, 200, 0));
}

.signal-pulse::after {
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 230, 244, 0.96);
  box-shadow:
    0 0 8px rgba(255, 230, 244, 0.7),
    0 0 16px rgba(255, 208, 118, 0.28);
  animation: signal-breathe 2.8s ease-in-out infinite;
}

.time-row > div {
  padding: 12px 14px;
  border: 1px solid rgba(164, 180, 204, 0.14);
  border-radius: 8px;
  background: rgba(7, 10, 18, 0.34);
  text-align: center;
}

.place-label {
  margin-bottom: 6px;
  color: rgba(255, 208, 118, 0.78);
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.time-value {
  margin-bottom: 0;
  color: rgba(248, 250, 255, 0.96);
  font-family: var(--font-data);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(156, 190, 255, 0.2);
}

#romance-note {
  color: rgba(255, 230, 244, 0.68);
  font-family: var(--font-romance);
  font-size: 1rem;
  font-style: italic;
  text-shadow: 0 0 16px rgba(255, 143, 200, 0.12);
}

#romance-title {
  text-shadow: 0 0 22px rgba(255, 143, 200, 0.18);
}

@keyframes signal-breathe {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(0, -50%) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translate(24px, -50%) scale(1.04);
  }
}

@keyframes signal-breathe-mobile {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(-50%, -12px) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 6px) scale(1.04);
  }
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.request-card {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 0;
  border: 1px solid rgba(164, 180, 204, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(17, 23, 34, 0.46);
  cursor: pointer;
  overflow: hidden;
}

.request-card:hover,
.request-card:focus-visible,
.request-card.is-playing {
  border-color: rgba(255, 208, 118, 0.42);
  background: rgba(255, 208, 118, 0.08);
  outline: none;
}

.request-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(0.88) contrast(1.05) brightness(0.74);
  transition: opacity 180ms ease, transform 240ms ease;
}

.request-card:hover .request-image,
.request-card:focus-visible .request-image,
.request-card.is-playing .request-image {
  opacity: 0.78;
  transform: scale(1.04);
}

.request-text {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 4px;
  padding: 48px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 13, 0.78));
}

.request-title {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.08;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

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

.romance-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 208, 118, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: romance-pop 1100ms ease-out forwards;
  animation-delay: calc(var(--i) * 18ms);
}

.request-card[data-effect="Rose"] .romance-burst span {
  background: rgba(255, 143, 200, 0.92);
}

.request-card[data-effect="Regen"] .romance-burst span {
  width: 2px;
  height: 16px;
  background: rgba(139, 220, 255, 0.86);
}

@keyframes romance-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x) * 18px), -54px) rotate(220deg);
  }
}

.site-footer {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 8px 0 36px;
  color: rgba(255, 208, 118, 0.72);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0;
}

.site-footer p {
  margin-bottom: 0;
  text-shadow: 0 0 18px rgba(255, 208, 118, 0.1);
}

.noscript-message {
  margin: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

@media (max-width: 719px) {
  .cosmos-status {
    top: 12px;
    gap: 8px;
  }

  .status-day,
  .status-date,
  .status-times span {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 0.74rem;
  }

  .cosmos-detail-panel {
    top: 78px;
    right: 12px;
    bottom: auto;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100svh - 104px);
  }

  .cosmos-stage.is-closeup .cosmos-detail-panel {
    width: 100%;
    min-width: 0;
    padding: 42vh 22px 28px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.82));
  }

  .cosmos-stage.is-closeup .detail-close {
    top: 42vh;
    right: 20px;
  }

  .cosmos-stage.is-closeup .star-detail-list {
    grid-template-columns: 1fr;
  }

  .stellar-legend {
    top: 88px;
    left: 12px;
    width: 210px;
    font-size: 0.64rem;
  }

  .temperature-strip {
    height: 12px;
  }

  .zoom-axis {
    top: 96px;
    right: 12px;
    bottom: 62px;
    width: 28px;
  }

  .zoom-axis-line::before,
  .zoom-axis-line::after {
    width: 22px;
  }

  .zoom-axis-thumb {
    width: 26px;
  }

  .interaction-hint {
    left: 12px;
    bottom: 12px;
    font-size: 0.68rem;
  }

  .page-shell,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .time-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .time-row::before {
    display: none;
  }

  .signal-pulse {
    top: 50%;
    width: 18px;
    height: 28px;
  }

  .signal-pulse::before {
    left: 50%;
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(255, 208, 118, 0.7), transparent);
    transform: translate(-50%, -50%);
  }

  .signal-pulse::after {
    left: 50%;
    animation-name: signal-breathe-mobile;
  }

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

  .request-card {
    min-height: 118px;
  }

  .star-map-label {
    max-width: 180px;
    border-radius: 8px;
    font-size: 0.66rem;
    white-space: normal;
  }
}

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