/* ===== 第三幕星光密语 · 古典星空星象仪与逐行密信（共享样式） ===== */
.starry-secret-stage,
.starry-secret-stage * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.starry-secret-stage {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 10px) + 8px) 12px calc(env(safe-area-inset-bottom, 10px) + 10px);
  background:
    radial-gradient(ellipse 90% 48% at 50% 18%, rgba(28, 56, 126, 0.36), transparent 64%),
    radial-gradient(ellipse 74% 46% at 50% 84%, rgba(20, 40, 86, 0.3), transparent 72%),
    #020510;
  overflow-y: auto;
  touch-action: pan-y;
}
.starry-secret-stage[hidden] {
  display: none !important;
}
.starry-secret-cosmos-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.starry-cosmos-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.76;
  filter: brightness(0.86) saturate(1.06);
  pointer-events: none;
  z-index: 0;
}
.starry-secret-cosmos-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(4, 9, 24, 0.24) 0%, rgba(3, 7, 20, 0.56) 66%, rgba(2, 5, 16, 0.84) 100%);
}
.starry-bg-starfield {
  z-index: 1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}
.starry-bg-twinkle--a {
  animation: starryAmbientTwinkle 4.4s ease-in-out infinite;
}
.starry-bg-twinkle--b {
  animation: starryAmbientTwinkle 5.8s ease-in-out 1.4s infinite;
}
.starry-bg-twinkle--c {
  animation: starryAmbientTwinkle 3.7s ease-in-out 0.7s infinite;
}
@keyframes starryAmbientTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.92; }
}
.starry-cosmos-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(142vw, 760px);
  height: min(142vw, 760px);
  transform: translate(-50%, -50%);
  opacity: 0.18;
  animation: starry-cosmos-spin 110s linear infinite;
}
@keyframes starry-cosmos-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.starry-secret-stage-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  max-height: 100%;
  overflow-y: auto;
  padding: 4px 6px 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f3ecd8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.starry-secret-stage-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e8c776;
  text-shadow: 0 0 14px rgba(232, 199, 118, 0.72);
}
.starry-zodiac-tag {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(246, 220, 141, 0.86);
  text-shadow: 0 1px 6px rgba(3, 8, 22, 0.9);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.starry-zodiac-glyph {
  display: inline-block;
  width: 11px;
  height: 11px;
  color: #f6dc8d;
  vertical-align: -1.5px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(246, 220, 141, 0.48));
}
.starry-zodiac-crest-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(246, 220, 141, 0.36), 0 0 14px rgba(246, 220, 141, 0.42);
  filter: drop-shadow(0 0 10px rgba(246, 220, 141, 0.45));
}
.starry-mark-line {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 199, 118, 0.58), transparent);
}
.starry-secret-stage h2 {
  margin: 3px 0 2px;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f9efd4;
  text-shadow: 0 0 22px rgba(232, 199, 118, 0.34);
}
.starry-secret-stage-sub {
  margin: 0 0 8px;
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(196, 212, 240, 0.62);
}
.starry-vault-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 9px;
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(164, 184, 218, 0.52);
}
.starry-vault-step-pill {
  padding: 2px 5px 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
}
.starry-vault-step-pill.is-active {
  color: #f7de94;
  border-bottom-color: rgba(246, 220, 141, 0.68);
  text-shadow: 0 0 12px rgba(246, 220, 141, 0.45);
}
.starry-vault-step-pill.is-done {
  color: #c5ddff;
  border-bottom-color: rgba(197, 221, 255, 0.32);
}
.starry-vault-sep {
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 199, 118, 0.42), transparent);
}
.starry-vault-panel {
  width: 100%;
}
.starry-vault-panel[hidden] {
  display: none !important;
}
.starry-vault-panel.is-step-entering {
  animation: starryPanelEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes starryPanelEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.988); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.starry-vault-lead {
  margin: 0 auto 8px;
  max-width: 344px;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(226, 235, 250, 0.85);
  text-align: center;
}

/* ----- 01 双环同心旋转星象仪 ----- */
.starry-astrolabe-stage {
  position: relative;
  width: min(82vw, 310px);
  height: min(82vw, 310px);
  margin: 4px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.starry-astrolabe-plate-img {
  position: absolute;
  inset: -1.5%;
  width: 103%;
  height: 103%;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(20, 44, 102, 0.55));
}
.starry-astrolabe-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(42, 88, 178, 0.38));
  transition: filter 0.35s ease;
}
.starry-astrolabe-stage.is-target-aligned .starry-astrolabe-svg {
  filter:
    drop-shadow(0 0 26px rgba(42, 88, 178, 0.42))
    drop-shadow(0 0 18px rgba(246, 220, 141, 0.24));
}
.starry-astrolabe-stage.is-target-aligned .starry-meridian-reticle rect {
  stroke: rgba(255, 232, 152, 0.92);
}
#starryYearRingGroup,
#starrySeasonRingGroup {
  transform-origin: 160px 160px;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.starry-ring-hit {
  cursor: pointer;
}
.starry-ring-label {
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 12.5px;
  font-weight: 600;
  fill: rgba(230, 238, 255, 0.86);
  paint-order: stroke fill;
  stroke: rgba(3, 8, 22, 0.9);
  stroke-width: 3px;
  stroke-linejoin: round;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill 0.25s ease;
  pointer-events: none;
}
.starry-ring-label.is-aligned {
  fill: #ffe99e;
  font-weight: 700;
}
.starry-season-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.starry-astrolabe-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(232, 199, 118, 0.62);
  background: radial-gradient(circle at 50% 38%, rgba(30, 56, 116, 0.96) 0%, rgba(6, 13, 32, 0.98) 100%);
  box-shadow:
    0 0 22px rgba(232, 199, 118, 0.22),
    inset 0 0 16px rgba(232, 199, 118, 0.14);
  color: #fae5a5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.starry-astrolabe-stage.is-target-aligned .starry-astrolabe-core {
  border-color: rgba(255, 232, 152, 0.92);
  box-shadow:
    0 0 28px rgba(246, 220, 141, 0.42),
    inset 0 0 18px rgba(246, 220, 141, 0.22);
}
.starry-astrolabe-core:active {
  transform: translate(-50%, -50%) scale(0.94);
}
.starry-core-readout {
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff3cc;
}
.starry-core-sub {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(232, 199, 118, 0.85);
}
.starry-dial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 4px;
  flex-wrap: wrap;
}
.starry-dial-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 199, 118, 0.32);
  background: linear-gradient(180deg, rgba(16, 30, 68, 0.72), rgba(7, 14, 34, 0.86));
  color: #ebd390;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 240, 192, 0.08);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.starry-dial-btn:hover {
  border-color: rgba(246, 220, 141, 0.62);
  color: #fff1bf;
}
.starry-season-row {
  display: inline-flex;
  gap: 5px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(232, 199, 118, 0.2);
  background: rgba(6, 13, 32, 0.68);
}
.starry-season-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(232, 199, 118, 0.22);
  background: rgba(11, 22, 52, 0.72);
  color: rgba(214, 226, 246, 0.76);
  font-family: 'Noto Serif SC', serif;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.starry-season-btn.is-selected {
  color: #0b142c;
  font-weight: 700;
  border-color: #f8e29b;
  background: radial-gradient(circle at 35% 30%, #fff0ba 0%, #dfa944 100%);
  box-shadow: 0 0 12px rgba(246, 220, 141, 0.45);
}

/* ----- 02 十二星宿夜空观星图 ----- */
.starry-locked-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #f3d88c;
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.starry-stamp-wing {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 199, 118, 0.55), transparent);
}
.starry-anchor-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 7px;
  width: 100%;
  max-width: 376px;
  margin: 0 auto 7px;
}
.starry-seq-slot {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(232, 199, 118, 0.2);
  background: linear-gradient(135deg, rgba(10, 20, 48, 0.78), rgba(5, 11, 28, 0.88));
  color: rgba(164, 184, 218, 0.58);
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.05);
  transition: all 0.25s ease;
}
.starry-seq-slot.is-filled {
  border-color: rgba(246, 220, 141, 0.54);
  background: linear-gradient(135deg, rgba(36, 46, 82, 0.65), rgba(14, 22, 48, 0.92));
  color: #fff2c8;
  box-shadow:
    inset 0 0 12px rgba(246, 220, 141, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.28);
}
.starry-seq-num {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(232, 199, 118, 0.34);
  background: rgba(6, 13, 34, 0.8);
  color: rgba(246, 220, 141, 0.78);
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.starry-seq-slot.is-filled .starry-seq-num {
  border-color: #f7dc8e;
  background: radial-gradient(circle at 35% 30%, rgba(246, 220, 141, 0.28), rgba(18, 30, 68, 0.95));
  color: #fff3c6;
  box-shadow: 0 0 8px rgba(246, 220, 141, 0.35);
}
.starry-seq-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.starry-constellation-sky {
  position: relative;
  width: min(100%, 376px, calc(46vh * 1.011));
  aspect-ratio: 360 / 356;
  margin: 0 auto 8px;
  border-radius: 16px;
  border: 1px solid rgba(232, 199, 118, 0.34);
  background:
    radial-gradient(ellipse 68% 58% at 50% 48%, rgba(22, 48, 108, 0.42) 0%, rgba(6, 14, 36, 0.9) 70%, rgba(2, 5, 16, 0.98) 100%);
  box-shadow:
    inset 0 0 38px rgba(8, 20, 56, 0.9),
    inset 0 0 0 1px rgba(186, 214, 255, 0.06),
    0 18px 46px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.starry-constellation-sky.is-complete {
  border-color: rgba(255, 228, 146, 0.56);
  box-shadow:
    inset 0 0 42px rgba(32, 58, 118, 0.65),
    0 0 24px rgba(232, 199, 118, 0.14),
    0 18px 46px rgba(0, 0, 0, 0.55);
}
.starry-sky-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.starry-sky-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(246, 220, 141, 0.68);
  border-style: solid;
  border-width: 0;
}
.starry-sky-corner.is-tl { top: 5px; left: 5px; border-top-width: 1.3px; border-left-width: 1.3px; border-top-left-radius: 11px; }
.starry-sky-corner.is-tr { top: 5px; right: 5px; border-top-width: 1.3px; border-right-width: 1.3px; border-top-right-radius: 11px; }
.starry-sky-corner.is-bl { bottom: 5px; left: 5px; border-bottom-width: 1.3px; border-left-width: 1.3px; border-bottom-left-radius: 11px; }
.starry-sky-corner.is-br { bottom: 5px; right: 5px; border-bottom-width: 1.3px; border-right-width: 1.3px; border-bottom-right-radius: 11px; }
.starry-sky-chart-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  opacity: 0.94;
}
.starry-sky-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.starry-micro-stars--1 {
  animation: starryAmbientTwinkle 4.2s ease-in-out infinite;
}
.starry-micro-stars--2 {
  animation: starryAmbientTwinkle 5.4s ease-in-out 1.1s infinite;
}
.starry-micro-stars--3 {
  animation: starryAmbientTwinkle 3.6s ease-in-out 0.6s infinite;
}
.starry-chart-aura {
  stroke: rgba(246, 220, 141, 0.28);
  stroke-width: 4.4;
  stroke-linecap: round;
  filter: blur(1.4px);
}
.starry-chart-core {
  stroke: url(#starryGoldLine);
  stroke-width: 1.45;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 226, 134, 0.85));
}
.starry-chart-core.is-drawing {
  stroke-dasharray: var(--seg-len, 180);
  stroke-dashoffset: var(--seg-len, 180);
  animation: starrySegmentDraw 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes starrySegmentDraw {
  to { stroke-dashoffset: 0; }
}
.starry-chart-spark {
  filter: drop-shadow(0 0 4px rgba(255, 246, 204, 0.95));
}
.starry-puzzle-pool {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.starry-puzzle-tile {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.22s ease;
}
.starry-puzzle-tile:active {
  transform: translate(-50%, -50%) scale(0.92);
}
.starry-puzzle-tile.is-picked {
  z-index: 4;
}
.starry-node-orb {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.starry-node-orb::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 228, 146, 0.78);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
.starry-puzzle-tile.is-star-pulsing .starry-node-orb::after {
  animation: starryNodeRipple 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes starryNodeRipple {
  0%   { opacity: 0.9; transform: scale(0.45); }
  100% { opacity: 0; transform: scale(1.65); }
}
.starry-node-orb svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}
.starry-star-orbit {
  fill: none;
  stroke: rgba(246, 220, 141, 0.56);
  stroke-width: 0.75;
  stroke-dasharray: 2 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.28s ease;
}
.starry-puzzle-tile.is-picked .starry-star-orbit {
  opacity: 1;
  animation: starryOrbitSpin 16s linear infinite;
}
@keyframes starryOrbitSpin {
  to { transform: rotate(360deg); }
}
.starry-star-halo {
  fill: rgba(164, 206, 255, 0.14);
  transition: fill 0.28s ease;
}
.starry-puzzle-tile.is-picked .starry-star-halo {
  fill: rgba(255, 222, 128, 0.24);
}
.starry-star-rays {
  fill: rgba(212, 228, 255, 0.84);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 5px rgba(166, 208, 255, 0.7));
  animation: starryStarBreathe 3.4s ease-in-out var(--star-delay, 0s) infinite;
  transition: fill 0.25s ease, filter 0.25s ease;
}
.starry-puzzle-tile[data-tier="major"] .starry-star-rays {
  fill: rgba(226, 238, 255, 0.92);
}
.starry-puzzle-tile.is-picked .starry-star-rays {
  fill: #ffe89c;
  animation: none;
  transform: scale(1.16);
  filter:
    drop-shadow(0 0 4px rgba(255, 244, 198, 0.98))
    drop-shadow(0 0 11px rgba(246, 210, 114, 0.88));
}
.starry-star-core {
  fill: #ffffff;
  opacity: 0.92;
}
@keyframes starryStarBreathe {
  0%, 100% { transform: scale(0.92); opacity: 0.76; }
  50% { transform: scale(1.06); opacity: 1; }
}
.starry-node-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 228, 152, 0.92);
  background: radial-gradient(circle at 35% 30%, #243e7d 0%, #09132e 100%);
  color: #fff2be;
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(246, 220, 141, 0.68);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1.38, 0.36, 1);
}
.starry-puzzle-tile.is-picked .starry-node-badge {
  opacity: 1;
  transform: scale(1);
}
.starry-node-name {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(3, 9, 26, 0.88) 42%, rgba(3, 9, 26, 0) 100%);
  font-family: 'Noto Serif SC', serif;
  font-size: 10.8px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: rgba(212, 224, 245, 0.84);
  text-shadow: 0 1px 5px rgba(2, 6, 18, 0.98);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.starry-puzzle-tile.is-picked .starry-node-name {
  color: #ffedb0;
  text-shadow: 0 0 10px rgba(246, 220, 141, 0.6), 0 1px 4px rgba(0, 0, 0, 0.98);
}
.starry-sky-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 2px;
}
.starry-vault-primary-btn {
  min-height: 36px;
  padding: 7px 26px;
  border-radius: 999px;
  border: 1px solid rgba(232, 199, 118, 0.72);
  background: radial-gradient(circle at 50% 0%, rgba(232, 199, 118, 0.24), rgba(14, 28, 66, 0.88));
  color: #fce9ae;
  font-family: 'Noto Serif SC', serif;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(232, 199, 118, 0.18);
  transition: all 0.28s ease;
}
.starry-vault-primary-btn:not(:disabled) {
  border-color: rgba(255, 228, 146, 0.9);
  background: radial-gradient(circle at 50% 0%, rgba(246, 220, 141, 0.34), rgba(20, 38, 84, 0.94));
  color: #fff6d2;
  box-shadow:
    0 0 22px rgba(246, 220, 141, 0.36),
    inset 0 1px 0 rgba(255, 248, 220, 0.22);
}
.starry-vault-primary-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.starry-ghost-link {
  border: none;
  background: none;
  padding: 4px 8px;
  font-size: 11.5px;
  color: rgba(186, 206, 238, 0.72);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.starry-ghost-link:hover {
  color: #e6f0ff;
}
.starry-vault-feedback {
  min-height: 18px;
  margin: 4px 0 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #f6c49c;
  text-shadow: 0 0 10px rgba(246, 196, 156, 0.24);
}

@keyframes starry-vault-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.is-vault-shake {
  animation: starry-vault-shake 0.36s ease;
}

/* ----- 03 整版竖图渐变遮罩阅读 + 结尾手写动画「嫁给我吧！」 ----- */
.starry-letter-viewport {
  position: relative;
  width: min(100%, 420px);
  height: min(70vh, 600px);
  margin: 2px auto 10px;
  border-radius: 16px;
  border: 1px solid rgba(232, 199, 118, 0.34);
  background: #080808;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.74),
    inset 0 0 0 1px rgba(232, 199, 118, 0.1);
  overflow: hidden;
}
.starry-letter-scroll {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: #080808;
}
.starry-letter-scroll img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 95%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 95%, transparent 100%);
}
.starry-letter-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(3, 6, 14, 0.82) 0%,
    rgba(3, 6, 14, 0) 9%,
    rgba(3, 6, 14, 0) 46%,
    rgba(3, 6, 14, 0.62) 66%,
    rgba(3, 6, 14, 0.94) 84%,
    #03060e 100%
  );
  transition: opacity 0.85s ease;
}
.starry-letter-veil.is-lifted {
  opacity: 0;
}
.starry-letter-viewport .starry-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  opacity: 1;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(232, 199, 118, 0.78);
  text-shadow: 0 1px 6px #000;
  animation: starryCueFloat 2.4s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
@keyframes starryCueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(3px); }
}
.starry-letter-viewport .starry-scroll-cue.is-hidden,
.starry-letter-veil.is-lifted ~ .starry-scroll-cue,
.starry-letter-veil.is-lifted + .starry-scroll-cue {
  opacity: 0 !important;
  visibility: hidden;
}
.starry-proposal-climax {
  position: relative;
  margin-top: -12px;
  padding: 20px 14px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 84% 72% at 50% 44%, rgba(226, 238, 255, 0.11), transparent 72%),
    #080808;
}
.starry-climax-divider {
  font-size: 12px;
  letter-spacing: 0.45em;
  color: rgba(226, 236, 255, 0.48);
  margin-bottom: 4px;
}
.starry-climax-ring {
  position: relative;
  width: 78px;
  height: 76px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px) scale(0.32);
  pointer-events: none;
}
.starry-climax-ring.is-ring-popped {
  animation:
    starryRingPopIn 0.85s cubic-bezier(0.22, 1.38, 0.36, 1) 0.12s forwards,
    starryRingFloat 3.6s ease-in-out 1.05s infinite;
}
.starry-ring-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 12px rgba(208, 230, 255, 0.46));
}
.starry-ring-pulse {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 14px rgba(220, 238, 255, 0.55);
  opacity: 0;
  transform: scale(0.3);
}
.starry-climax-ring.is-ring-popped .starry-ring-pulse {
  animation: starryRingRipple 1.1s ease-out 0.22s forwards;
}
.starry-ring-spark {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.45;
}
.starry-climax-ring.is-ring-popped .starry-ring-spark--a {
  animation: starryRingTwinkle 2.2s ease-in-out 0.55s infinite;
}
.starry-climax-ring.is-ring-popped .starry-ring-spark--b {
  animation: starryRingTwinkle 2.6s ease-in-out 0.95s infinite;
}
.starry-climax-ring.is-ring-popped .starry-ring-spark--c {
  animation: starryRingTwinkle 1.9s ease-in-out 0.75s infinite;
}
@keyframes starryRingPopIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.28) rotate(-10deg);
  }
  58% {
    opacity: 1;
    transform: translateY(-4px) scale(1.12) rotate(2deg);
  }
  80% {
    opacity: 1;
    transform: translateY(1px) scale(0.96) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}
@keyframes starryRingFloat {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-2.5px) scale(1.015);
  }
}
@keyframes starryRingRipple {
  0% {
    opacity: 0.88;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.15);
  }
}
@keyframes starryRingTwinkle {
  0%, 100% {
    opacity: 0.38;
    transform: scale(0.75) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.22) rotate(16deg);
  }
}
.starry-callig-svg {
  width: min(94%, 350px);
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.88))
    drop-shadow(0 0 11px rgba(220, 236, 255, 0.52))
    drop-shadow(0 0 24px rgba(186, 216, 255, 0.24));
}
.starry-callig-stroke {
  opacity: 0;
  fill: #ffffff;
}
.starry-callig-stroke.is-drawn,
.starry-callig-stroke.is-writing {
  opacity: 1;
}
.starry-callig-nib {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}
.starry-callig-nib.is-visible {
  opacity: 1;
}
.starry-climax-halo {
  margin-top: 8px;
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: rgba(224, 236, 255, 0.62);
  opacity: 0;
  transition: opacity 0.85s ease 2.9s;
}
.starry-proposal-climax.is-revealed .starry-climax-halo,
.starry-proposal-climax.is-callig-done .starry-climax-halo {
  opacity: 1;
}
.starry-proposal-climax.is-callig-done .starry-climax-halo {
  transition-delay: 0s;
}
.starry-callig-replay {
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 234, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 240, 255, 0.78);
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease 3.1s, border-color 0.2s ease, color 0.2s ease;
}
.starry-proposal-climax.is-revealed .starry-callig-replay,
.starry-proposal-climax.is-callig-done .starry-callig-replay {
  opacity: 1;
  pointer-events: auto;
}
.starry-proposal-climax.is-callig-done .starry-callig-replay {
  transition-delay: 0s;
}
.starry-callig-replay:hover {
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
}

.starry-secret-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.starry-secret-stage #starrySecretClose,
.starry-secret-stage #starryReplayVaultBtn {
  min-height: 34px;
  padding: 5px 20px;
  border: 1px solid rgba(232, 199, 118, 0.36);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 28, 62, 0.74), rgba(7, 13, 32, 0.9));
  color: rgba(242, 214, 138, 0.92);
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 240, 192, 0.08);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.starry-secret-stage #starrySecretClose:hover {
  border-color: rgba(246, 220, 141, 0.68);
  color: #fff2c4;
}
.starry-secret-stage #starryReplayVaultBtn {
  border-color: rgba(186, 214, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(208, 222, 246, 0.76);
}
.starry-secret-stage #starrySecretClose:focus-visible {
  outline: 1px solid rgba(246, 220, 141, 0.7);
  outline-offset: 3px;
}
