/* ═══════════════════════════════════════════════════════════════
   THE STAR VAULT — s111 deep-custom portal skin
   site youxi--1--111 · index.html
   language: dome slit · star charts · zodiac houses · meteor trails
   ═══════════════════════════════════════════════════════════════ */

/* ── palette (unchanged from original site) ──────────────────── */
:root {
  --bg: #151025;
  --panel: #1F1834;
  --panel-2: #2A2144;
  --accent: #C9A0FF;
  --accent2: #F2D06B;
  --text: #F1ECFA;
  --soft: #A79BC8;
  --line: rgba(201,160,255,.28);
  --gold: #F2D06B;
  --gold-2: #C9A94F;
  --gold-3: #6B5A26;
  --fh: Georgia, serif;
  --fb: 'Segoe UI', sans-serif;
  --fm: 'Courier New', monospace;
  --sec-gap: 30px;
}

/* ═══ 0. reset & base ═══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

/* the night sky with a violet nebula rising from the horizon */
body.t-star {
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.35) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 16%, rgba(255,255,255,.3) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 66%, rgba(255,255,255,.28) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 78%, rgba(255,255,255,.32) 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 100%, rgba(201,160,255,.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; display: block; }
img { display: block; max-width: 100%; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection { background: var(--accent); color: #151025; }

/* ═══ 1. layout shell ════════════════════════════════════════════ */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px;
}

/* each section is a chart desk under the dome */
.sec {
  position: relative;
  margin-top: var(--sec-gap);
  min-width: 0;
  padding: 15px 16px 17px;
  border-radius: 10px;
  border: 1.5px solid rgba(201,160,255,.22);
  background:
    linear-gradient(180deg, rgba(201,160,255,.05), rgba(21,16,37,.4) 60%),
    var(--panel);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.03),
    0 12px 26px -18px rgba(0,0,0,.75);
}

/* the meridian seam across the desk rim */
.sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(242,208,107,.4) 0 5px, transparent 5px 10px);
  border-radius: 2px;
  pointer-events: none;
}

/* ═══ 2. callout — the dome stamp ════════════════════════════════ */
.callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.callout b {
  flex: none;
  font-family: var(--fh);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #151025;
  background: var(--accent);
  border-radius: 3px;
  padding: 4px 13px;
}

.callout span {
  font-family: var(--fm);
  font-size: 10.5px;
  color: var(--soft);
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.callout::after {
  content: '';
  flex: 1;
  border-top: 1.5px dashed rgba(201,160,255,.3);
}

/* the six-point star beside the label */
.co-star6 {
  flex: none;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: var(--gold);
}

/* ═══ 3. header — the dome slit ══════════════════════════════════ */
.hdr {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, #241B40, #1B1430);
  overflow: hidden;
}

/* the dome arc with the observing slit */
.s111-dome {
  position: relative;
}

/* the silver dome shell curve */
.s111-dome::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -92px;
  width: 360px;
  height: 172px;
  margin-left: -180px;
  border-radius: 50%;
  border: 2px solid rgba(201,160,255,.4);
  border-bottom: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201,160,255,.12), transparent 62%);
}

/* the open slit with starlight pouring through */
.s111-slit {
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 56px;
  margin-left: -3.5px;
  background: linear-gradient(180deg, rgba(242,208,107,.9), rgba(242,208,107,.06) 82%, transparent);
  box-shadow: 0 0 18px rgba(242,208,107,.4);
  border-radius: 0 0 6px 6px;
}

.s111-slit::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -4px;
  right: -4px;
  height: 6px;
  background: rgba(242,208,107,.85);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(242,208,107,.8);
}

/* the field stars studding the dome plate */
.s111-dome i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(241,236,250,.8);
  animation: s111twinkle 3.2s ease-in-out infinite;
}

.s111-dome i:nth-child(1) { top: 30px; left: 14%; animation-delay: 0s; }
.s111-dome i:nth-child(2) { top: 14px; left: 26%; animation-delay: .7s; }
.s111-dome i:nth-child(3) { top: 38px; left: 38%; animation-delay: 1.4s; }
.s111-dome i:nth-child(4) { top: 10px; left: 64%; animation-delay: .4s; }
.s111-dome i:nth-child(5) { top: 34px; left: 76%; animation-delay: 2.1s; }
.s111-dome i:nth-child(6) { top: 18px; left: 88%; animation-delay: 1s; }
.s111-dome i:nth-child(7) { top: 42px; left: 52%; animation-delay: 1.8s; width: 2px; height: 2px; }

@keyframes s111twinkle {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 12px;
}

.s111-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s111-brand-scope {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* the little refractor tube beside the name */
.s111-brand-scope i {
  flex: none;
  width: 20px;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

/* the objective lens at the tube mouth */
.s111-brand-scope i::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 1px;
  width: 6px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EFE6FF, var(--accent));
}

.hdr-name {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s111-sub {
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .24em;
  color: var(--soft);
}

.hdr-search {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1.5px solid rgba(201,160,255,.4);
  border-radius: 6px;
}

/* the graduated horizon closing the header */
.s111-horizon {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 0 7px;
}

.s111-horizon i {
  flex: none;
  width: 2px;
  height: 8px;
  background: rgba(201,160,255,.35);
}

.s111-horizon i:nth-child(3n) {
  height: 12px;
  background: rgba(242,208,107,.5);
}

/* ═══ 4. category rail + search ══════════════════════════════════ */
.s111-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.s111-rail::-webkit-scrollbar { display: none; }

/* each chip is a cataloged star label */
.s111-chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px dashed rgba(201,160,255,.38);
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--panel);
}

.s111-chip i {
  font-style: normal;
  font-size: 9px;
  color: var(--gold);
  line-height: 1;
}

.s111-chip b {
  font-family: var(--fh);
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}

.s111-chip em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--soft);
}

.s111-chip.on {
  background: var(--accent);
  border-color: var(--accent);
}

.s111-chip.on i { color: #7A5AB8; }
.s111-chip.on b { color: #151025; }
.s111-chip.on em { color: #4A3A70; }

.s111-chip:active { transform: scale(.96); }

.srch-bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.srch-input {
  flex: 1;
  min-width: 0;
  background: #120C20;
  border: 1.5px solid rgba(201,160,255,.28);
  border-radius: 6px;
  padding: 10px 13px;
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
}

.srch-input:focus { border-color: var(--accent); }

.srch-go {
  flex: none;
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 800;
  color: #151025;
  background: var(--accent);
  border-radius: 6px;
  padding: 0 16px;
}

.srch-go:active { transform: scale(.96); }

/* ═══ 5. loading ═════════════════════════════════════════════════ */
.loading-full {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-bar {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-2);
  overflow: hidden;
  margin: 0 auto 12px;
}

.loading-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: ldslide 1s infinite;
}

@keyframes ldslide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.loading-txt {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--soft);
}

/* ═══ 6. hero — the eyepiece view ════════════════════════════════ */
.hv9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hv9-label {
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--gold);
  text-align: center;
}

.hv9-lens {
  position: relative;
  display: block;
  width: 208px;
  height: 208px;
}

/* the setting-circle ring around the glass */
.hv9-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201,160,255,.45);
}

/* the inner degree ring */
.hv9-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(242,208,107,.28);
}

/* the gold index marks at the four cardinal points */
.hv9-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0, var(--gold) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 50% 100%, var(--gold) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 0 50%, var(--gold) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 100% 50%, var(--gold) 0 2.5px, transparent 3.5px);
}

.hv9-lens img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--panel-2);
  box-shadow: 0 0 30px rgba(201,160,255,.35);
}

/* the reticle clipped to the glass */
.hv9-cross {
  position: absolute;
  z-index: 2;
  inset: 5px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.hv9-cross i {
  position: absolute;
  background: rgba(242,208,107,.55);
}

.hv9-cross i:first-child {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1.5px;
}

.hv9-cross i:last-child {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1.5px;
}

.hv9-ra,
.hv9-dec {
  position: absolute;
  bottom: -24px;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .12em;
  color: var(--soft);
}

.hv9-ra { left: -6px; }
.hv9-dec { right: -6px; }

.hv9-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding-top: 10px;
}

.hv9-nm {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: break-word;
}

.hv9-ds {
  font-size: 12.5px;
  color: var(--soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hv9-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.hv9-meta em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #151025;
  background: var(--accent);
  border-radius: 3px;
  padding: 3px 10px;
}

.hx-stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
}

.hx-stars i { font-style: normal; }
.hx-stars i.off { opacity: .25; }

.hx-cta {
  align-self: center;
  margin-top: 8px;
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #151025;
  background: var(--accent);
  border-radius: 4px;
  padding: 8px 20px;
}

.hv9-lens:active { transform: scale(.98); }

/* ═══ 7. divider — the meteor line ═══════════════════════════════ */
.tk-div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 6px 0 10px;
}

.tk-div i {
  width: 42px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(242,208,107,.5), transparent);
}

/* the shooting star in the middle of the divider */
.tk-div i:nth-child(2) {
  width: 13px;
  height: 13px;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: rotate(45deg);
}

.tk-div i:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -26px;
  width: 22px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(242,208,107,.7));
}

/* ═══ 8. star charts — the constellation board ══════════════════ */
.s111-chart {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  padding: 16px 13px 14px;
  border: 1.5px solid rgba(201,160,255,.25);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(241,236,250,.14) 1px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(180deg, rgba(201,160,255,.05), transparent 55%),
    var(--panel-2);
}

/* the corner calibration ticks of the chart plate */
.s111-chart::before,
.s111-chart::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(242,208,107,.55);
  pointer-events: none;
}

.s111-chart::before {
  top: 5px;
  left: 5px;
  border-right: none;
  border-bottom: none;
}

.s111-chart::after {
  bottom: 5px;
  right: 5px;
  border-left: none;
  border-top: none;
}

.s111-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 9px 9px;
  background: rgba(21,16,37,.82);
  border: 1px solid rgba(201,160,255,.18);
  border-radius: 8px;
}

/* the bright catalog star pinned to each node */
.s111-node-star {
  position: absolute;
  top: -8px;
  left: 11px;
  z-index: 2;
  font-style: normal;
  font-size: 13px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(242,208,107,.8);
}

.s111-node-art img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(201,160,255,.22);
}

.s111-node-b b {
  display: block;
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s111-node-b em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--soft);
}

/* the dashed constellation lines linking node to node */
.s111-node::after {
  content: '';
  position: absolute;
  top: 9px;
  width: 26px;
  height: 0;
  border-top: 1.5px dashed rgba(242,208,107,.55);
}

.s111-node:nth-child(odd)::after { right: -19px; }
.s111-node:nth-child(even)::after { left: -19px; }
.s111-node:nth-last-child(1)::after,
.s111-node:nth-last-child(2)::after { display: none; }

.s111-node:active { transform: scale(.97); }

/* ═══ 9. meridian line — the zodiac houses ═══════════════════════ */
.s111-zodiac {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 3px 10px;
  -webkit-overflow-scrolling: touch;
}

.s111-zodiac::-webkit-scrollbar { height: 4px; }
.s111-zodiac::-webkit-scrollbar-thumb { background: rgba(201,160,255,.4); border-radius: 2px; }
.s111-zodiac::-webkit-scrollbar-track { background: transparent; }

/* each house is a segment of the ecliptic ring */
.s111-house {
  position: relative;
  flex: none;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 7px 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1.5px solid rgba(201,160,255,.24);
  border-radius: 10px 10px 6px 6px;
  transform: rotate(-1deg);
}

.s111-house:nth-child(even) { transform: rotate(1.1deg); }

/* the ecliptic band across the house cap */
.s111-house::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(242,208,107,.6), transparent);
}

.s111-house-idx {
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: .16em;
  color: var(--gold);
}

.s111-house-glyph {
  font-size: 15px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(201,160,255,.55);
}

.s111-house-art img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(242,208,107,.5);
}

.s111-house-nm {
  font-family: var(--fh);
  font-size: 11.5px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.s111-house:active { transform: scale(.95); }

/* ═══ 10. meteor watch — the radiant forecast ════════════════════ */
.s111-meteors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.s111-meteor {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 12px 10px 10px;
  background: var(--panel);
  border: 1px solid rgba(201,160,255,.2);
  border-radius: 8px;
  overflow: hidden;
}

/* the streak drawn across the meteor card */
.s111-meteor-streak {
  position: absolute;
  top: 8px;
  right: -34px;
  width: 130px;
  height: 2px;
  background: linear-gradient(270deg, transparent, rgba(242,208,107,.85));
  transform: rotate(22deg);
}

/* the radiant head of the streak */
.s111-meteor-streak::after {
  content: '✶';
  position: absolute;
  left: 3px;
  top: -8px;
  font-size: 10px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(242,208,107,.9);
}

.s111-meteor.m1 .s111-meteor-streak {
  right: auto;
  left: -34px;
  background: linear-gradient(90deg, transparent, rgba(242,208,107,.85));
  transform: rotate(-22deg);
}

.s111-meteor-art {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(201,160,255,.3);
}

.s111-meteor-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s111-meteor-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s111-meteor-b b {
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s111-meteor-b span {
  font-size: 11px;
  color: var(--soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.s111-meteor-b em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .06em;
  color: var(--gold);
}

.s111-meteor:active { transform: scale(.97); }

/* ═══ 11. moon almanac — the phase calendar ══════════════════════ */
.s111-mooncal {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 3px 10px;
  -webkit-overflow-scrolling: touch;
}

.s111-mooncal::-webkit-scrollbar { height: 4px; }
.s111-mooncal::-webkit-scrollbar-thumb { background: rgba(201,160,255,.4); border-radius: 2px; }
.s111-mooncal::-webkit-scrollbar-track { background: transparent; }

/* each day is a almanac leaf */
.s111-day {
  flex: none;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 6px 10px;
  background: var(--panel-2);
  border: 1px solid rgba(201,160,255,.18);
  border-radius: 8px;
}

/* the punched binding hole of the leaf */
.s111-day::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}

/* the drawn moon, phase by index */
.s111-moon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1ECFA;
  box-shadow: inset -10px 0 0 -3px #151025;
}

/* new moon — a dark disc ringed in silver */
.s111-moon.p0 {
  background: #2A2144;
  border: 1.5px dashed rgba(241,236,250,.45);
  box-shadow: none;
}

/* waxing crescent */
.s111-moon.p1 {
  background: #F1ECFA;
  box-shadow: inset -11px 0 0 -3px #151025;
}

/* gibbous */
.s111-moon.p2 {
  background: #F1ECFA;
  box-shadow: inset -5px 0 0 -2px #151025;
}

/* full moon with a golden halo */
.s111-moon.p3 {
  background: radial-gradient(circle at 38% 32%, #FBF7FF, #D9CFF0);
  box-shadow: 0 0 12px rgba(242,208,107,.45);
}

.s111-day-d {
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--gold);
}

.s111-day-art img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(201,160,255,.3);
}

.s111-day-nm {
  font-family: var(--fh);
  font-size: 11px;
  color: var(--text);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s111-day:active { transform: scale(.95); }

/* ═══ 12. telescope rack — the tube rack ═════════════════════════ */
.s111-rack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  padding-top: 16px;
}

/* the rack rail the tubes hang from */
.s111-rack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2px;
  right: 2px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
}

/* the mounting hooks above each scope */
.s111-rack::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 6px;
  background:
    radial-gradient(circle at 25% 100%, var(--gold) 0 3px, transparent 4px),
    radial-gradient(circle at 75% 100%, var(--gold) 0 3px, transparent 4px);
}

.s111-scope {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* the objective lens, ringed in brass */
.s111-scope-lens {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold-2);
  box-shadow:
    0 0 0 3px var(--panel),
    0 6px 14px rgba(0,0,0,.45);
}

.s111-scope-lens img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the tube with its banded cladding */
.s111-scope-tube {
  max-width: 100%;
  margin-top: 2px;
  border-radius: 999px;
  padding: 5px 13px;
  background:
    repeating-linear-gradient(180deg, rgba(242,208,107,.14) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, #3A2F5E, #241B3E);
  border: 1.5px solid rgba(201,160,255,.32);
}

.s111-scope-tube b {
  display: block;
  font-family: var(--fh);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the tripod legs under the tube */
.s111-scope-legs {
  position: relative;
  width: 54px;
  height: 20px;
}

.s111-scope-legs::before,
.s111-scope-legs::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 2.5px;
  height: 18px;
  background: var(--gold-2);
  border-radius: 2px;
}

.s111-scope-legs::before { left: 12px; transform: rotate(20deg); }
.s111-scope-legs::after { right: 12px; transform: rotate(-20deg); }

.s111-scope-no {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--soft);
}

.s111-scope:active { transform: scale(.96); }

/* ═══ 13. meteorite shelf — the specimen shelf ═══════════════════ */
.s111-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.s111-rock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 10px 10px;
  background: var(--panel);
  border: 1px solid rgba(201,160,255,.18);
  border-radius: 8px;
}

/* the museum label pinned above each specimen */
.s111-rock::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EFE6FF, var(--accent));
}

.s111-rock-art {
  position: relative;
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* the specimen stand base */
.s111-rock-art::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 58px;
  height: 7px;
  margin-left: -29px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-2), #5A4A20);
}

.s111-rock-art img {
  position: relative;
  width: 84px;
  height: 84px;
  object-fit: cover;
  clip-path: polygon(18% 4%, 62% 0%, 96% 26%, 100% 66%, 74% 98%, 30% 96%, 2% 72%, 0% 30%);
  filter: saturate(.92) contrast(1.05);
}

.s111-rock-tag {
  border: 1px dashed rgba(242,208,107,.45);
  background: rgba(242,208,107,.06);
  border-radius: 5px;
  padding: 6px 8px;
}

.s111-rock-tag b {
  display: block;
  font-family: var(--fh);
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s111-rock-tag span {
  display: block;
  margin-top: 2px;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: var(--gold);
}

.s111-rock:active { transform: scale(.97); }

/* ═══ 14. orbital garden — the seed cells ═════════════════════════ */
.s111-green {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 18px;
}

/* the grow-lamp strip glowing above the bench */
.s111-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(201,160,255,.85), transparent);
  box-shadow: 0 7px 18px rgba(201,160,255,.4);
}

.s111-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 9px;
  background: linear-gradient(180deg, rgba(201,160,255,.09), var(--panel));
  border: 1px solid rgba(201,160,255,.22);
  border-radius: 8px;
  overflow: hidden;
}

/* the glass pane reflection over the cell */
.s111-cell-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(241,236,250,.16) 0 16%,
    transparent 16% 54%,
    rgba(241,236,250,.07) 54% 61%,
    transparent 61%);
  pointer-events: none;
}

.s111-cell-art img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(242,208,107,.4);
}

.s111-cell-nm {
  font-family: var(--fh);
  font-size: 11px;
  color: var(--text);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s111-cell-lot {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--gold);
}

.s111-cell:active { transform: scale(.95); }

/* ═══ 15. catalog index — the rotating star wheel ════════════════ */
.s111-wheel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 30px 12px 12px;
  border: 1.5px dashed rgba(201,160,255,.32);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(201,160,255,.1), transparent 62%),
    var(--panel);
}

/* the slowly turning planisphere behind the tiles */
.s111-wheel-rot {
  position: absolute;
  top: -74px;
  left: 50%;
  width: 224px;
  height: 224px;
  margin-left: -112px;
  border-radius: 50%;
  border: 1.5px dashed rgba(242,208,107,.38);
  background: repeating-conic-gradient(rgba(242,208,107,.14) 0 1deg, transparent 1deg 30deg);
  animation: s111spin 80s linear infinite;
  pointer-events: none;
}

/* the inner degree ring and hub of the wheel */
.s111-wheel-rot::before {
  content: '';
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px dashed rgba(201,160,255,.32);
}

.s111-wheel-rot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242,208,107,.7);
}

@keyframes s111spin {
  to { transform: rotate(360deg); }
}

.s111-wpt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(31,24,52,.94);
  border: 1px solid rgba(201,160,255,.25);
  border-radius: 8px;
  padding: 9px 10px;
}

/* the little dial face of each window */
.s111-wpt-dial {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(242,208,107,.5);
  position: relative;
}

/* the needle swinging on the dial */
.s111-wpt-dial::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1.5px;
  height: 12px;
  margin-left: -.75px;
  background: var(--gold);
}

/* the dial hub */
.s111-wpt-dial::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.s111-wpt-b {
  flex: 1;
  min-width: 0;
}

.s111-wpt-b b {
  display: block;
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s111-wpt-b i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--soft);
}

.s111-wpt-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent);
}

.s111-wpt:active { transform: scale(.97); }

/* ═══ 16. night watch — the observation logbook ══════════════════ */
.s111-log {
  position: relative;
  padding: 13px 12px 13px 24px;
  background: var(--panel);
  border: 1.5px solid rgba(201,160,255,.22);
  border-radius: 10px;
}

/* the stitched binding down the left edge */
.s111-log::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 9px;
  width: 2px;
  background: repeating-linear-gradient(180deg,
    rgba(242,208,107,.55) 0 7px,
    transparent 7px 13px);
}

.s111-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(201,160,255,.25);
}

.s111-log-top b {
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
}

.s111-log-top span {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--soft);
}

.arc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid rgba(201,160,255,.14);
  border-radius: 8px;
}

.arc img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
}

/* the record number stamped on each entry */
.s111-entry-no {
  flex: none;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--gold);
  border: 1px dashed rgba(242,208,107,.4);
  border-radius: 4px;
  padding: 3px 5px;
}

.arc-b { flex: 1; min-width: 0; }

.arc-nm {
  display: block;
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arc-ds {
  display: block;
  font-size: 11px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arc-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent);
}

.arc:active { transform: scale(.98); }

/* ═══ 17. filter view + empty ════════════════════════════════════ */
.filter-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.filter-back {
  flex: none;
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid rgba(242,208,107,.5);
  border-radius: 6px;
  padding: 7px 12px;
}

.filter-title {
  flex: 1;
  min-width: 0;
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-cnt {
  flex: none;
  font-family: var(--fm);
  font-size: 11.5px;
  color: #151025;
  background: var(--accent);
  border-radius: 4px;
  padding: 3px 8px;
}

.empty-space {
  text-align: center;
  padding: 40px 0 24px;
}

/* the overcast disc on a clouded night */
.empty-space p {
  font-size: 30px;
  line-height: 1;
  color: var(--soft);
}

.empty-space span {
  display: block;
  margin-top: 10px;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--soft);
}

/* ═══ 18. more ═══════════════════════════════════════════════════ */
.more-wrap {
  text-align: center;
  margin-top: 15px;
}

.more-btn {
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--panel);
  border: 1.5px solid rgba(201,160,255,.4);
  border-radius: 6px;
  padding: 10px 22px;
}

.more-btn:active { transform: scale(.97); }

/* ═══ 19. footer — the galaxy band ═══════════════════════════════ */
.foot {
  position: relative;
  margin-top: 44px;
  padding: 26px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, #1A1330, #151025);
}

/* the milky way band arcing over the footer */
.s111-galaxy {
  position: relative;
  height: 36px;
  margin-bottom: 12px;
  overflow: hidden;
}

.s111-galaxy i {
  display: block;
  position: absolute;
  left: -6%;
  right: -6%;
}

/* the bright core of the band */
.s111-galaxy i:nth-child(1) {
  top: 13px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    transparent,
    rgba(201,160,255,.28),
    rgba(242,208,107,.22),
    rgba(201,160,255,.28),
    transparent);
  filter: blur(1px);
}

/* the star dust lane above the core */
.s111-galaxy i:nth-child(2) {
  top: 5px;
  height: 8px;
  background: radial-gradient(circle, rgba(241,236,250,.5) 1px, transparent 1.6px) 0 0 / 22px 8px;
  opacity: .55;
}

/* the faint counter-lane below */
.s111-galaxy i:nth-child(3) {
  top: 26px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(201,160,255,.18), transparent);
}

.foot-name {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text);
}

.foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 12px;
}

.foot-links a {
  display: inline;
  font-size: 12.5px;
  color: var(--soft);
  text-decoration: underline;
}

.foot-fine {
  margin-top: 12px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--soft);
  opacity: .75;
}

/* ═══ 20. back-to-top — the zenith star ══════════════════════════ */
.totop-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: #151025;
  background: radial-gradient(circle at 40% 30%, #E3CCFF, var(--accent));
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}

/* ═══ 21. responsive ═════════════════════════════════════════════ */
@media (max-width: 480px) {
  .sec { padding: 13px 12px 15px; }

  .hv9-lens { width: 178px; height: 178px; }

  .hv9-nm { font-size: 20px; }

  .s111-house { width: 96px; }

  .s111-day { width: 78px; }

  .s111-chart { padding: 14px 10px 12px; }

  .s111-node-art img { height: 76px; }

  .s111-rock-art img { width: 74px; height: 74px; }

  .s111-rack { gap: 16px 10px; }

  .s111-green { gap: 8px; }

  .s111-cell-art img { width: 48px; height: 48px; }
}

@media (max-width: 375px) {
  .wrap { padding: 0 14px; }

  .hdr-name { font-size: 16px; }

  .s111-chart,
  .s111-meteors,
  .s111-shelf { gap: 10px; }

  .s111-wheel { gap: 9px; padding: 28px 10px 10px; }

  .s111-meteor { gap: 8px; padding: 10px 8px 9px; }

  .s111-meteor-art { width: 50px; height: 50px; }

  .s111-log { padding: 12px 10px 12px 22px; }

  .hv9-ra, .hv9-dec { font-size: 8px; }
}
