:root {
  --ink: #f8f1dc;
  --muted: rgba(248, 241, 220, 0.72);
  --gold: #ffd98a;
  --rose: #ff8fa7;
  --mint: #7be0c6;
  --blue: #172c58;
  --night: #070b19;
  --line: rgba(255, 217, 138, 0.34);
  --glass: rgba(10, 17, 36, 0.68);
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #050712;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

body {
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 143, 167, 0.16), transparent 35%),
    linear-gradient(20deg, rgba(123, 224, 198, 0.13), transparent 42%),
    var(--night);
}

.star-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sound-toggle {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 70;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 239, 193, 0.34);
  border-radius: 50%;
  background: rgba(7, 13, 29, 0.58);
  box-shadow:
    0 8px 22px rgba(2, 6, 17, 0.26),
    inset 0 0 16px rgba(255, 225, 151, 0.08);
  backdrop-filter: blur(8px);
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: rgba(255, 241, 201, 0.68);
  background: rgba(12, 22, 43, 0.74);
}

.sound-ripples {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 221, 145, 0.26);
  border-radius: 50%;
  opacity: 0;
}

.sound-bars {
  position: relative;
  width: 20px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.sound-bars i {
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #fff1bd;
  box-shadow: 0 0 7px rgba(255, 217, 138, 0.68);
  transform-origin: center;
}

.sound-toggle.is-on .sound-bars i {
  animation: soundBarPulse 1.25s ease-in-out infinite;
}

.sound-toggle.is-on .sound-bars i:nth-child(2) {
  height: 15px;
  animation-delay: -0.42s;
}

.sound-toggle.is-on .sound-bars i:nth-child(3) {
  height: 11px;
  animation-delay: -0.76s;
}

.sound-toggle.is-on .sound-ripples {
  animation: soundRipple 2.8s ease-out infinite;
}

.sound-toggle.is-off {
  opacity: 0.64;
}

.sound-toggle.is-off .sound-bars i {
  height: 2px;
  animation: none;
  background: rgba(255, 241, 189, 0.66);
}

@keyframes soundBarPulse {
  0%,
  100% {
    transform: scaleY(0.56);
    opacity: 0.62;
  }
  50% {
    transform: scaleY(1.12);
    opacity: 1;
  }
}

@keyframes soundRipple {
  0% {
    opacity: 0.46;
    transform: scale(0.72);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
}

.cover-screen,
.map-screen {
  background: #080d1c;
}

.cover-screen {
  transform-origin: 50% 58%;
  will-change: transform;
}

.cover-bg {
  position: absolute;
  inset: -3%;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(4, 6, 15, 0.08), rgba(4, 6, 15, 0.78)),
    url("assets/generated/cover-starry-hall.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.04);
}

.map-bg,
.map-bg-video {
  position: absolute;
  inset: 0;
}

.map-bg-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: scale(1);
  will-change: transform, opacity;
}

.map-bg {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 17%, rgba(255, 247, 216, 0.18), transparent 24%),
    radial-gradient(circle at 74% 52%, rgba(123, 224, 198, 0.12), transparent 31%),
    radial-gradient(circle at 22% 76%, rgba(255, 143, 167, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(4, 8, 20, 0.1), rgba(4, 8, 20, 0.42) 48%, rgba(4, 8, 20, 0.72));
}

.cover-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  will-change: transform, opacity;
}

.cover-loop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background-image: url("assets/generated/cover-loop-bg.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.018);
  will-change: transform, opacity;
}

.cover-screen.is-looping .cover-loop {
  animation: loopBreath 13s ease-in-out infinite alternate;
}

.loop-clouds {
  position: absolute;
  inset: -8% -18%;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, 0.36), transparent 18%),
    radial-gradient(ellipse at 78% 26%, rgba(255, 255, 255, 0.26), transparent 16%),
    linear-gradient(100deg, transparent 0 24%, rgba(255, 255, 255, 0.18) 38%, transparent 55% 100%);
  mix-blend-mode: screen;
  opacity: 0.58;
  animation: cloudDrift 18s ease-in-out infinite alternate;
}

.loop-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.loop-petals i {
  position: absolute;
  width: 15px;
  height: 9px;
  border-radius: 90% 10% 90% 10%;
  background: rgba(255, 158, 178, 0.78);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(18deg);
  animation: petalFloat 8s linear infinite;
}

.loop-petals i:nth-child(2n) {
  background: rgba(255, 218, 114, 0.74);
}

.loop-petals i:nth-child(3n) {
  background: rgba(255, 255, 255, 0.78);
}

.loop-petals i:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 7.6s; }
.loop-petals i:nth-child(2) { left: 20%; animation-delay: 1.2s; animation-duration: 9.1s; }
.loop-petals i:nth-child(3) { left: 33%; animation-delay: 0.5s; animation-duration: 8.4s; }
.loop-petals i:nth-child(4) { left: 47%; animation-delay: 2.1s; animation-duration: 7.9s; }
.loop-petals i:nth-child(5) { left: 58%; animation-delay: 1.7s; animation-duration: 9.8s; }
.loop-petals i:nth-child(6) { left: 72%; animation-delay: 0.2s; animation-duration: 8.8s; }
.loop-petals i:nth-child(7) { left: 84%; animation-delay: 2.9s; animation-duration: 10.2s; }
.loop-petals i:nth-child(8) { left: 13%; animation-delay: 4.4s; animation-duration: 8.5s; }
.loop-petals i:nth-child(9) { left: 39%; animation-delay: 3.3s; animation-duration: 9.5s; }
.loop-petals i:nth-child(10) { left: 64%; animation-delay: 5.1s; animation-duration: 7.7s; }
.loop-petals i:nth-child(11) { left: 78%; animation-delay: 4.2s; animation-duration: 8.9s; }
.loop-petals i:nth-child(12) { left: 92%; animation-delay: 5.7s; animation-duration: 9.6s; }

.cover-bg::after,
.map-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 217, 138, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(6, 9, 24, 0.02), rgba(4, 6, 15, 0.72));
}

.cover-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 250, 232, 0.04) 32%, rgba(24, 86, 104, 0.28) 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.34), transparent 36%),
    radial-gradient(circle at 50% 74%, rgba(255, 203, 135, 0.24), transparent 42%);
}

.cover-film {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 22%, transparent 70%, rgba(255, 197, 122, 0.16));
  mix-blend-mode: screen;
  opacity: 0.46;
}

.cover-film span {
  position: absolute;
  width: 1px;
  height: 58%;
  top: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 245, 211, 0.5), transparent);
  opacity: 0.4;
}

.cover-film span:nth-child(1) { left: 18%; }
.cover-film span:nth-child(2) { left: 39%; }
.cover-film span:nth-child(3) { left: 62%; }
.cover-film span:nth-child(4) { left: 83%; }

.cover-constellation {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.cover-constellation i {
  position: absolute;
  display: block;
  bottom: -10dvh;
  width: 18px;
  height: 12px;
  border-radius: 78% 24% 72% 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 184, 204, 0.76) 56%, rgba(255, 222, 142, 0.42));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.42);
  opacity: 0;
  transform-origin: 30% 70%;
  animation: coverPetalRise 10.8s linear infinite;
}

.cover-constellation i:nth-child(1) { left: 10%; animation-delay: -1.1s; animation-duration: 11.8s; }
.cover-constellation i:nth-child(2) { left: 23%; animation-delay: -7.4s; animation-duration: 13.4s; background-color: rgba(255, 235, 166, 0.82); }
.cover-constellation i:nth-child(3) { left: 37%; animation-delay: -4.2s; animation-duration: 10.6s; width: 14px; height: 10px; }
.cover-constellation i:nth-child(4) { left: 49%; animation-delay: -9.6s; animation-duration: 14.2s; background: linear-gradient(135deg, #fff, rgba(222, 213, 255, 0.78)); }
.cover-constellation i:nth-child(5) { left: 61%; animation-delay: -2.8s; animation-duration: 12.5s; }
.cover-constellation i:nth-child(6) { left: 72%; animation-delay: -6.1s; animation-duration: 11.2s; width: 15px; height: 11px; background: linear-gradient(135deg, #fffdf3, rgba(255, 217, 134, 0.82)); }
.cover-constellation i:nth-child(7) { left: 82%; animation-delay: -10.2s; animation-duration: 14.8s; }
.cover-constellation i:nth-child(8) { left: 91%; animation-delay: -5.3s; animation-duration: 12.9s; width: 13px; height: 9px; background: linear-gradient(135deg, #fff, rgba(202, 229, 255, 0.76)); }
.cover-constellation i:nth-child(9) { left: 31%; animation-delay: -11.7s; animation-duration: 15.4s; width: 16px; height: 11px; }

@keyframes coverPetalRise {
  0% {
    opacity: 0;
    transform: translate3d(-18px, 0, 0) rotate(12deg) scale(0.78);
  }
  12% {
    opacity: 0.72;
  }
  48% {
    transform: translate3d(24px, -52dvh, 0) rotate(176deg) scale(1);
  }
  84% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(-12px, -116dvh, 0) rotate(332deg) scale(0.86);
  }
}

.cover-copy {
  position: relative;
  z-index: 5;
  width: min(96vw, 620px);
  height: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(74px, 13dvh, 126px) 22px max(18px, calc(env(safe-area-inset-bottom) + 18px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@keyframes loopBreath {
  0% {
    transform: scale(1.018) translate3d(0, 0, 0);
    filter: saturate(1.03) contrast(1.01) brightness(1);
  }
  100% {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
    filter: saturate(1.08) contrast(1.03) brightness(1.02);
  }
}

@keyframes cloudDrift {
  0% {
    transform: translate3d(-2%, 0, 0);
  }
  100% {
    transform: translate3d(5%, -1.5%, 0);
  }
}

@keyframes petalFloat {
  0% {
    opacity: 0;
    transform: translate3d(-18px, -12dvh, 0) rotate(0deg);
  }
  12% {
    opacity: 0.86;
  }
  86% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(26px, 108dvh, 0) rotate(260deg);
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 239, 190, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: "STXingkai", "FZYaoti", "STKaiti", "KaiTi", "Kaiti SC", "STZhongsong", "Songti SC", serif;
  font-size: clamp(48px, 12.4vw, 56px);
  line-height: 1.16;
  font-weight: 700;
  color: #fffaf0;
  -webkit-text-stroke: 1px rgba(38, 117, 132, 0.72);
  text-shadow:
    0 2px 0 rgba(255, 180, 137, 0.72),
    0 5px 15px rgba(31, 102, 122, 0.34),
    0 0 34px rgba(255, 255, 255, 0.94),
    0 0 58px rgba(255, 217, 138, 0.46);
  filter:
    drop-shadow(0 7px 13px rgba(30, 95, 107, 0.25))
    drop-shadow(0 0 18px rgba(255, 248, 220, 0.32));
  isolation: isolate;
  overflow: visible;
  white-space: nowrap;
}

.title::after {
  content: "";
  position: absolute;
  inset: -0.18em -0.42em;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 219, 150, 0.38) 56%, transparent 74%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-128%) skewX(-16deg);
  animation: titleSweep 7.2s ease-in-out 8.9s infinite;
}

.title .char {
  position: relative;
  display: inline-block;
  will-change: transform, opacity;
  color: inherit;
  transform-style: preserve-3d;
}

.title .char::before {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #fff3ba;
  opacity: 0.58;
  filter: blur(8px);
  transform: scale(1.06);
}

.title .char::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2%;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, rgba(255, 231, 154, 0.95) 36%, transparent 72%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.78), 0 0 22px rgba(255, 217, 138, 0.48);
  opacity: 0;
  transform: translate3d(-50%, -20%, 0) scale(0.4);
  animation: titleGlimmer 4.8s ease-in-out infinite;
  animation-delay: calc(8.7s + var(--char-index) * 0.18s);
}

.subtitle {
  position: relative;
  max-width: 350px;
  margin: 20px auto 0;
  color: #fffdf4;
  font-family: "FZYaoti", "STKaiti", "KaiTi", "Kaiti SC", "STZhongsong", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
  -webkit-text-stroke: 0.45px rgba(31, 94, 112, 0.58);
  text-shadow:
    0 1px 0 rgba(38, 115, 128, 0.78),
    0 0 10px rgba(255, 255, 255, 0.78),
    0 5px 14px rgba(25, 80, 96, 0.48);
  filter: drop-shadow(0 0 12px rgba(255, 216, 156, 0.26));
}

.subtitle-line {
  display: block;
  width: 76%;
  max-width: 300px;
  margin-top: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), rgba(255, 199, 141, 0.52), transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  opacity: 0.8;
  transform-origin: 50% 50%;
}

.subtitle .char,
.button-text .char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.cover-bottom {
  width: 100%;
  margin-top: auto;
  padding-top: clamp(28px, 7dvh, 74px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.start-button {
  position: relative;
  width: min(84vw, 286px);
  height: 138px;
  margin-top: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
  transform: translateZ(0);
  isolation: isolate;
  will-change: transform, opacity;
}

.button-glow {
  position: absolute;
  inset: -24px -20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 248, 0.58) 0 8%, rgba(255, 224, 138, 0.48) 23%, rgba(255, 148, 179, 0.24) 45%, rgba(123, 224, 198, 0.18) 58%, transparent 76%),
    radial-gradient(circle at 46% 42%, rgba(255, 255, 255, 0.38), transparent 22%);
  mix-blend-mode: normal;
  filter: blur(0.2px);
  opacity: 0.95;
  transform: translateZ(0);
  will-change: transform, opacity, filter;
}

.button-glow::before,
.button-glow::after {
  content: "";
  position: absolute;
  inset: 10px 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 58%);
  filter: blur(16px);
  animation: buttonHaloDrift 5.8s ease-in-out infinite;
}

.button-glow::after {
  inset: -8px 4px;
  background:
    radial-gradient(circle, rgba(255, 214, 134, 0.46), rgba(255, 143, 167, 0.18) 44%, transparent 72%);
  filter: blur(22px);
  animation-delay: -2.9s;
  animation-duration: 7.2s;
}

@keyframes buttonHaloDrift {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.94) translate3d(-2%, 1%, 0);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.08) translate3d(2%, -1%, 0);
  }
}

.button-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #143f5c;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 7px rgba(255, 255, 255, 0.74),
    0 3px 10px rgba(20, 68, 91, 0.28);
}

.button-cn {
  display: block;
  font-family: "STXingkai", "FZYaoti", "STKaiti", "KaiTi", "Kaiti SC", "STZhongsong", "Songti SC", serif;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
}

.button-en {
  display: block;
  color: rgba(16, 54, 79, 0.78);
  font-family: "Palatino Linotype", "Cormorant Garamond", "Georgia", serif;
  font-size: 12px;
  line-height: 1.18;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 8px rgba(255, 255, 255, 0.54);
}

.hall-logo {
  width: min(92vw, 420px);
  min-height: 96px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3.6vw, 18px);
  opacity: 1;
  filter:
    drop-shadow(0 2px 1px rgba(18, 70, 86, 0.82))
    drop-shadow(0 4px 12px rgba(18, 70, 86, 0.44))
    drop-shadow(0 0 15px rgba(255, 255, 255, 0.76));
  will-change: opacity, clip-path, transform, filter;
}

.cover-partner-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.cover-partner-logo-youth {
  width: auto;
  height: clamp(78px, 10.8dvh, 104px);
}

.cover-partner-logo-hall {
  width: min(67vw, 286px);
  height: auto;
}

@keyframes titleSweep {
  0% {
    opacity: 0;
    transform: translateX(-128%) skewX(-16deg);
  }
  10% {
    opacity: 0.72;
  }
  26% {
    opacity: 0;
    transform: translateX(128%) skewX(-16deg);
  }
  100% {
    opacity: 0;
    transform: translateX(128%) skewX(-16deg);
  }
}

@keyframes titleGlimmer {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: translate3d(-50%, -20%, 0) scale(0.4);
  }
  68% {
    opacity: 0.95;
    transform: translate3d(-50%, -20%, 0) scale(1);
  }
  80% {
    opacity: 0;
    transform: translate3d(-50%, -20%, 0) scale(1.45);
  }
}

.map-header {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 18px;
  right: 96px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}

.map-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18px;
  bottom: -12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 236, 177, 0.62), rgba(123, 224, 198, 0.22), transparent);
  box-shadow: 0 0 18px rgba(255, 217, 138, 0.24);
}

.map-header h2 {
  margin: 0;
  font-family: "STXingkai", "FZYaoti", "STZhongsong", "Songti SC", serif;
  font-size: 30px;
  line-height: 1.12;
  color: #fff4cd;
  text-shadow:
    0 2px 0 rgba(36, 83, 105, 0.62),
    0 0 20px rgba(255, 217, 138, 0.48),
    0 0 36px rgba(123, 224, 198, 0.2);
}

.map-header h2 .char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.lit-count {
  margin: 5px 0 0;
  min-width: 58px;
  text-align: right;
  color: rgba(255, 244, 205, 0.72);
  font-family: "Palatino Linotype", Georgia, serif;
}

.lit-count strong {
  color: #fff2ad;
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 217, 138, 0.5);
}

.star-map {
  position: absolute;
  inset: 0 86px 0 0;
  z-index: 3;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(180deg, transparent, #000 58px, #000 calc(100% - 58px), transparent);
}

.star-map::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.star-map-scroll {
  position: relative;
  width: 100%;
  height: 680dvh;
  min-height: 5200px;
  max-height: 7200px;
}

.star-map-scroll::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 8%, rgba(255, 244, 198, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(123, 224, 198, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 43%, rgba(255, 143, 167, 0.26) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 68%, rgba(255, 244, 198, 0.32) 0 1px, transparent 2px);
  background-size: 180px 280px, 240px 360px, 210px 330px, 260px 420px;
  mix-blend-mode: screen;
  opacity: 0.52;
  pointer-events: none;
}

.star-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.star-path-line,
.star-path-reveal {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.star-path-reveal {
  stroke: #fff;
  stroke-width: 12;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.star-road-segment {
  opacity: 1;
}

.star-path-line {
  stroke: rgba(255, 245, 204, 0.82);
  stroke-width: 1.65;
  stroke-dasharray: 1 9;
  stroke-dashoffset: 0;
}

.node-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.node-button {
  position: absolute;
  width: 258px;
  height: 144px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #fff7db;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  will-change: transform, opacity;
}

.node-button:focus-visible {
  outline-offset: 8px;
}

.node-button.is-offscreen .node-orbit,
.node-button.is-offscreen .node-star,
.node-button.is-offscreen .lit-particle-field i {
  animation-play-state: paused;
}

.lit-particle-field {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  transform-origin: center;
  filter: drop-shadow(0 0 7px rgba(255, 225, 151, 0.82));
}

.lit-particle-field i {
  position: absolute;
  left: calc(var(--particle-size) * -0.5);
  top: calc(var(--particle-size) * -0.5);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: #fff6c9;
  box-shadow:
    0 0 6px rgba(255, 255, 242, 0.94),
    0 0 13px rgba(255, 207, 126, 0.68);
  transform: rotate(var(--particle-angle)) translateX(var(--particle-radius));
  animation:
    litParticleOrbit var(--particle-duration) linear infinite,
    litParticleTwinkle 2.6s ease-in-out infinite;
  animation-delay: var(--particle-delay), calc(var(--particle-delay) * 0.62);
}

.lit-particle-field i:nth-child(3n) {
  border-radius: 0;
  background: #fffdf2;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
}

.lit-particle-field i:nth-child(4n) {
  background: #ffb8c7;
  box-shadow:
    0 0 7px rgba(255, 211, 221, 0.92),
    0 0 14px rgba(255, 143, 167, 0.62);
}

.node-orbit,
.node-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.node-orbit {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 245, 0.5) 0 6%, rgba(255, 222, 145, 0.32) 20%, rgba(123, 224, 198, 0.18) 42%, rgba(255, 143, 167, 0.1) 60%, transparent 80%);
  filter: blur(12px) drop-shadow(0 0 34px rgba(255, 217, 138, 0.38));
  opacity: 0.86;
  animation: nodeOrbitBreath 6.4s ease-in-out infinite;
}

.node-core {
  z-index: 2;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 0 18px rgba(255, 217, 138, 0.7))
    drop-shadow(0 0 34px rgba(123, 224, 198, 0.32));
}

.node-star {
  position: absolute;
  inset: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.76), rgba(255, 240, 177, 0.56) 25%, rgba(255, 169, 187, 0.36) 52%, rgba(123, 224, 198, 0.24) 74%, transparent 84%),
    linear-gradient(135deg, rgba(255, 247, 216, 0.58), rgba(255, 197, 119, 0.28));
  clip-path: polygon(50% 0, 59% 31%, 88% 14%, 74% 43%, 100% 50%, 74% 57%, 88% 86%, 59% 69%, 50% 100%, 41% 69%, 12% 86%, 26% 57%, 0 50%, 26% 43%, 12% 14%, 41% 31%);
  filter:
    blur(1px)
    drop-shadow(0 0 14px rgba(255, 245, 205, 0.68));
  opacity: 0.86;
  animation: nodeStarBreath 18s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.node-icon-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.node-icon {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(1);
  filter:
    drop-shadow(0 3px 8px rgba(12, 20, 44, 0.32))
    drop-shadow(0 0 13px rgba(255, 255, 255, 0.42));
  pointer-events: none;
  user-select: none;
}

.node-label {
  position: absolute;
  top: 50%;
  min-width: 118px;
  max-width: 152px;
  padding: 7px 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-50%);
  color: rgba(255, 248, 222, 0.94);
  line-height: 1.25;
  text-shadow:
    0 2px 4px rgba(4, 8, 20, 0.76),
    0 0 14px rgba(255, 217, 138, 0.32);
}

.node-label::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 177, 0.9));
  box-shadow: 0 0 8px rgba(255, 217, 138, 0.4);
}

.label-right .node-label {
  left: calc(50% + 58px);
  align-items: flex-start;
  text-align: left;
}

.label-right .node-label::before {
  right: 100%;
}

.label-left .node-label {
  right: calc(50% + 58px);
  align-items: flex-end;
  text-align: right;
}

.label-left .node-label::before {
  left: 100%;
  transform: rotate(180deg);
}

.node-index {
  color: rgba(255, 228, 150, 0.86);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 10px;
  font-style: italic;
  line-height: 1;
}

.node-name {
  font-family: "STXingkai", "FZYaoti", "STKaiti", "KaiTi", "Kaiti SC", "STZhongsong", "Songti SC", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.14;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.node-button.is-lit .node-orbit {
  opacity: 1;
  background:
    radial-gradient(circle, rgba(255, 255, 245, 0.66) 0 9%, rgba(255, 222, 145, 0.46) 24%, rgba(255, 143, 167, 0.24) 42%, rgba(123, 224, 198, 0.2) 59%, transparent 78%);
}

.node-button.is-lit .node-star {
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.98), rgba(255, 240, 179, 0.72) 25%, rgba(255, 158, 178, 0.52) 52%, rgba(123, 224, 198, 0.38) 78%);
  animation-duration: 12s;
}

.node-button.is-lit .node-label {
  color: #fff7d4;
  text-shadow:
    0 2px 4px rgba(4, 8, 20, 0.7),
    0 0 18px rgba(255, 217, 138, 0.58);
}

.pendant-panel {
  position: absolute;
  top: max(72px, calc(env(safe-area-inset-top) + 64px));
  right: 7px;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 9;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  transform-origin: 50% 0;
  animation: pendantPanelSway 6.8s ease-in-out infinite;
}

.thread-head {
  position: relative;
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(255, 217, 138, 0.45));
}

.thread-head::before,
.thread-head::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.thread-head::before {
  width: 38px;
  height: 38px;
  background:
    radial-gradient(circle, #fff8d5 0 18%, #ffd98a 42%, rgba(255, 143, 167, 0.74) 68%, transparent 72%);
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
}

.thread-head::after {
  width: 26px;
  height: 12px;
  border: 1px solid rgba(255, 248, 220, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 248, 220, 0.36);
}

.pendant-title {
  width: 22px;
  margin: 0 0 8px;
  color: rgba(255, 244, 205, 0.88);
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  writing-mode: vertical-rl;
  text-shadow: 0 0 12px rgba(255, 217, 138, 0.36);
}

.pendant-line {
  position: relative;
  flex: 1;
  width: 58px;
  min-height: 222px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 0 8px;
  will-change: clip-path;
}

.pendant-line::before,
.pendant-line::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.pendant-line::before {
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 248, 220, 0.86), rgba(255, 217, 138, 0.82), rgba(123, 224, 198, 0.48), rgba(255, 217, 138, 0.74));
  box-shadow:
    0 0 8px rgba(255, 217, 138, 0.62),
    0 0 18px rgba(123, 224, 198, 0.22);
}

.pendant-line::after {
  width: 10px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  filter: blur(7px);
}

.pendant {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  transform-origin: 50% -8px;
  animation: charmSway 4.4s ease-in-out infinite;
  animation-delay: calc(var(--pendant-index) * -0.18s);
}

.pendant:focus-visible {
  outline: 1px solid rgba(255, 241, 194, 0.76);
  outline-offset: 4px;
}

.pendant-hook {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 1px;
  height: 15px;
  background: rgba(255, 236, 177, 0.78);
  box-shadow: 0 0 6px rgba(255, 217, 138, 0.56);
  transform: translateX(-50%);
}

.pendant-star {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 45% 35%, #ffffff, #fff0b3 25%, #ffd98a 48%, #ff9eb2 72%);
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  box-shadow: 0 0 16px rgba(255, 217, 138, 0.72);
  filter: drop-shadow(0 0 8px rgba(255, 248, 220, 0.72));
  transition: filter 0.42s ease, transform 0.42s ease;
}

.pendant-node-name {
  position: absolute;
  right: calc(100% + 9px);
  top: 55%;
  width: max-content;
  max-width: 142px;
  padding-right: 14px;
  color: rgba(255, 247, 218, 0.94);
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-shadow:
    0 2px 5px rgba(3, 7, 18, 0.92),
    0 0 11px rgba(255, 217, 138, 0.46);
  transform: translate(8px, -50%);
  transition:
    opacity 0.34s ease,
    transform 0.42s ease,
    visibility 0.34s;
}

.pendant-node-name::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 236, 177, 0.3), rgba(255, 245, 211, 0.88));
  box-shadow: 0 0 7px rgba(255, 217, 138, 0.55);
}

.pendant:hover .pendant-node-name,
.pendant:focus-visible .pendant-node-name {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.pendant:hover .pendant-star,
.pendant:focus-visible .pendant-star {
  transform: translate(-50%, -50%) scale(1.18);
  filter:
    brightness(1.14)
    drop-shadow(0 0 12px rgba(255, 248, 220, 0.92))
    drop-shadow(0 0 22px rgba(255, 174, 190, 0.48));
}

.pendant-line.is-dense {
  gap: 4px;
}

.pendant-line.is-dense .pendant {
  width: 27px;
  height: 28px;
}

.pendant-line.is-dense .pendant-star {
  width: 20px;
  height: 20px;
}

.pendant-line.is-packed {
  gap: 1px;
}

.pendant-line.is-packed .pendant {
  width: 20px;
  height: 18px;
  flex-basis: 18px;
}

.pendant-line.is-packed .pendant-star {
  width: 15px;
  height: 15px;
}

.pendant-line.is-packed .pendant-hook {
  top: -4px;
  height: 10px;
}

.settle-button {
  position: relative;
  width: 106px;
  height: 118px;
  margin-top: 5px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff7d4;
  pointer-events: none;
  transform-origin: 50% -14px;
  animation: charmSway 5.2s ease-in-out infinite;
}

.settle-star {
  position: absolute;
  inset: -2px -2px 4px;
  background:
    radial-gradient(circle at 45% 36%, #fffef4, #fff0b0 24%, #ffd98a 45%, #ff9eb2 72%);
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  box-shadow:
    0 0 24px rgba(255, 217, 138, 0.86),
    0 0 52px rgba(255, 143, 167, 0.34),
    0 0 78px rgba(123, 224, 198, 0.18);
  animation: settleGlow 3.8s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
}

.settle-label {
  position: relative;
  z-index: 1;
  width: 62px;
  color: #fff7d4;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.08;
  text-align: center;
  text-shadow:
    0 1px 4px rgba(22, 55, 76, 0.92),
    0 0 9px rgba(255, 255, 255, 0.76),
    0 0 18px rgba(255, 217, 138, 0.58);
  pointer-events: auto;
  cursor: pointer;
}

@keyframes nodeOrbitBreath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
}

@keyframes nodeStarBreath {
  0% {
    transform: scale(0.96) rotate(0deg);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06) rotate(180deg);
    opacity: 0.94;
  }
  100% {
    transform: scale(0.96) rotate(360deg);
    opacity: 0.72;
  }
}

@keyframes litParticleOrbit {
  from {
    transform: rotate(var(--particle-angle)) translateX(var(--particle-radius));
  }
  to {
    transform: rotate(calc(var(--particle-angle) + 360deg)) translateX(var(--particle-radius));
  }
}

@keyframes litParticleTwinkle {
  0%,
  100% {
    opacity: 0.32;
    scale: 0.7;
  }
  46% {
    opacity: 1;
    scale: 1.28;
  }
  72% {
    opacity: 0.62;
    scale: 0.92;
  }
}

@keyframes settleGlow {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 10px rgba(255, 217, 138, 0.48));
  }
  50% {
    filter: brightness(1.14) drop-shadow(0 0 20px rgba(255, 245, 204, 0.8));
  }
}

.cover-dissolve-canvas {
  position: fixed;
  inset: 0;
  z-index: 36;
  pointer-events: none;
  filter:
    drop-shadow(0 0 5px rgba(255, 246, 211, 0.72))
    drop-shadow(0 0 15px rgba(255, 217, 138, 0.32));
  mix-blend-mode: screen;
  will-change: contents;
}

.memory-dissolve-canvas {
  z-index: 55;
}

@keyframes memoryFrameSheen {
  0%,
  62% {
    opacity: 0;
    transform: translateX(-28%) rotate(3deg);
  }
  70% {
    opacity: 0.72;
  }
  88% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: translateX(30%) rotate(3deg);
  }
}

@keyframes pendantPanelSway {
  0%,
  100% {
    transform: rotate(-1.4deg) translateX(0);
  }
  50% {
    transform: rotate(1.7deg) translateX(-2px);
  }
}

@keyframes charmSway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.screen-warp {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 250, 0.98) 0 8%, rgba(255, 244, 208, 0.82) 20%, rgba(255, 184, 194, 0.34) 42%, rgba(123, 224, 198, 0.14) 60%, transparent 82%);
  opacity: 0;
  transform: scale(0.2);
  mix-blend-mode: screen;
  filter: blur(12px) saturate(1.04);
  will-change: transform, opacity;
}

.journey-guide {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: max(34px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 226, 155, 0.13), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(123, 224, 198, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(4, 8, 19, 0.9), rgba(5, 10, 23, 0.95));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.journey-guide-origin {
  background: transparent;
}

.journey-guide-origin::before {
  display: none;
}

.journey-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 249, 218, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 26%, rgba(255, 216, 150, 0.72) 0 1px, transparent 1.7px),
    radial-gradient(circle at 34% 68%, rgba(123, 224, 198, 0.56) 0 1px, transparent 1.6px);
  background-size: 132px 174px, 186px 214px, 158px 226px;
  opacity: 0.42;
}

.journey-guide-copy {
  position: relative;
  z-index: 1;
  width: min(90vw, 620px);
  text-align: center;
}

.journey-guide-kicker {
  margin: 0;
  color: rgba(255, 222, 153, 0.72);
  font-family: "Palatino Linotype", "Cormorant Garamond", Georgia, serif;
  font-size: 11px;
  line-height: 1.4;
}

.journey-guide-rule {
  display: block;
  width: min(54vw, 250px);
  height: 1px;
  margin: 18px auto 26px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 211, 0.84), rgba(255, 187, 175, 0.54), transparent);
  box-shadow: 0 0 14px rgba(255, 222, 151, 0.38);
  transform: scaleX(0);
}

.journey-guide-text {
  margin: 0 auto;
  color: rgba(255, 249, 229, 0.95);
  font-family: "STXingkai", "FZYaoti", "STKaiti", "KaiTi", "Kaiti SC", "STZhongsong", "Songti SC", serif;
  font-size: clamp(18px, 5.1vw, 25px);
  font-weight: 700;
  line-height: 1.88;
  text-shadow:
    0 2px 8px rgba(2, 7, 17, 0.88),
    0 0 15px rgba(255, 237, 190, 0.25);
}

.journey-guide-action-text {
  color: rgba(235, 247, 241, 0.88);
  font-size: clamp(14px, 4vw, 19px);
  line-height: 1.86;
}

.journey-guide-text .char {
  display: inline-block;
  will-change: transform, opacity;
}

.guide-dissolve-canvas {
  z-index: 36;
}

.screen-warp::before,
.screen-warp::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.38), rgba(255, 236, 190, 0.14) 32%, transparent 72%);
  filter: blur(24px);
}

.screen-warp::after {
  inset: -28%;
  background: radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.24), rgba(123, 224, 198, 0.08) 38%, transparent 74%);
  filter: blur(42px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 217, 138, 0.16), transparent 34%),
    rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(8px);
}

.memory-card,
.achievement-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 430px);
  max-height: 92dvh;
  transform-origin: center;
  will-change: transform, opacity;
}

.memory-frame,
.achievement-shell {
  position: relative;
  border: 1px solid rgba(255, 217, 138, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.08), transparent 18%),
    linear-gradient(145deg, rgba(12, 19, 40, 0.92), rgba(32, 26, 54, 0.9) 48%, rgba(10, 30, 49, 0.9));
  box-shadow: var(--shadow), inset 0 0 42px rgba(255, 217, 138, 0.12);
  overflow: hidden;
}

.memory-frame::before,
.achievement-shell::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 217, 138, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.memory-frame {
  padding: 28px 24px 24px;
}

.memory-frame::after {
  content: "";
  position: absolute;
  inset: -36% -70%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 42%, rgba(255, 248, 218, 0.16) 49%, rgba(123, 224, 198, 0.09) 52%, transparent 59%);
  opacity: 0;
  transform: translateX(-28%) rotate(3deg);
}

.memory-modal.is-open .memory-frame::after {
  animation: memoryFrameSheen 4.8s 1.1s ease-in-out infinite;
}

.close-button {
  position: absolute;
  top: -12px;
  right: -10px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.92);
  color: #17213e;
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.memory-kicker {
  margin: 0 0 8px;
  color: rgba(123, 224, 198, 0.86);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.memory-frame h3,
.achievement-shell h3 {
  margin: 0 auto;
  max-width: 310px;
  font-family: "STZhongsong", "Songti SC", serif;
  font-size: 29px;
  line-height: 1.22;
  text-align: center;
  color: #fff3c3;
  text-shadow: 0 0 18px rgba(255, 217, 138, 0.48);
}

.memory-quote,
.achievement-quote {
  margin: 12px auto 18px;
  max-width: 320px;
  color: rgba(255, 246, 218, 0.78);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.photo-stage,
.poster-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 138, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 217, 138, 0.12), transparent 16%, transparent 84%, rgba(255, 217, 138, 0.12)),
    #07101f;
  box-shadow: inset 0 0 26px rgba(255, 217, 138, 0.12), 0 16px 36px rgba(0, 0, 0, 0.26);
}

.photo-stage {
  aspect-ratio: 1.34;
  padding: 12px;
}

.photo-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(1.08) contrast(1.04);
}

.photo-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border-radius: 6px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(0deg, rgba(4, 6, 15, 0.18), transparent 40%);
  pointer-events: none;
}

.reel {
  position: absolute;
  top: 18px;
  bottom: 18px;
  z-index: 3;
  width: 9px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 248, 220, 0.9) 0 8px, rgba(255, 248, 220, 0.1) 8px 16px);
  opacity: 0.75;
}

.reel-left { left: 16px; }
.reel-right { right: 16px; }

.light-button {
  position: relative;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 1px solid rgba(255, 248, 220, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff0b4, #ffd98a 42%, #ff9eb2 100%);
  color: #15203f;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 12px 32px rgba(255, 143, 167, 0.2), 0 0 24px rgba(255, 217, 138, 0.3);
}

.memory-card.is-igniting .memory-frame {
  box-shadow:
    0 0 34px rgba(255, 217, 138, 0.7),
    0 0 82px rgba(255, 143, 167, 0.38),
    var(--shadow);
}

.achievement-card {
  width: min(92vw, 448px);
}

.achievement-shell {
  padding: 26px 22px 22px;
  max-height: 92dvh;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 219, 139, 0.76) rgba(255, 255, 255, 0.04);
}

.achievement-shell::-webkit-scrollbar,
.achievement-list::-webkit-scrollbar,
.result-preview-stage::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.achievement-shell::-webkit-scrollbar-track,
.achievement-list::-webkit-scrollbar-track,
.result-preview-stage::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

.achievement-shell::-webkit-scrollbar-thumb,
.achievement-list::-webkit-scrollbar-thumb,
.result-preview-stage::-webkit-scrollbar-thumb {
  border: 1px solid rgba(255, 247, 218, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 239, 177, 0.92), rgba(255, 151, 178, 0.66) 58%, rgba(123, 224, 198, 0.68));
  box-shadow: 0 0 9px rgba(255, 217, 138, 0.34);
}

.achievement-shell::-webkit-scrollbar-thumb:hover,
.achievement-list::-webkit-scrollbar-thumb:hover,
.result-preview-stage::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff2bd, #ffa5ba 58%, #8ee7d1);
}

.poster-stage {
  aspect-ratio: 0.74;
  max-height: 39dvh;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.poster-stage img,
.poster-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poster-fallback {
  display: none;
  background:
    linear-gradient(180deg, rgba(255, 217, 138, 0.28), transparent 32%),
    radial-gradient(circle at 50% 36%, rgba(255, 143, 167, 0.5), transparent 30%),
    linear-gradient(145deg, #17213e, #11172f 54%, #153741);
}

.achievement-summary {
  margin: 0 0 14px;
  color: rgba(255, 248, 223, 0.88);
  font-size: 15px;
  line-height: 1.75;
}

.achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 126px;
  padding: 2px 8px 5px 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 219, 139, 0.72) rgba(255, 255, 255, 0.035);
}

.achievement-chip {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(255, 217, 138, 0.28);
  border-radius: 8px;
  background: rgba(255, 248, 220, 0.08);
  color: rgba(255, 248, 223, 0.88);
  font-size: 12px;
  line-height: 1.35;
}

.achievement-actions {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 217, 138, 0.2);
}

.result-action-group {
  padding: 17px 0 2px;
}

.result-action-group + .result-action-group {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.result-action-copy {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.result-action-index {
  padding-top: 2px;
  color: rgba(123, 224, 198, 0.78);
  font-family: "Palatino Linotype", "Georgia", serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0;
}

.result-action-copy h4 {
  margin: 0;
  color: #fff0ba;
  font-family: "STZhongsong", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.result-action-copy p {
  margin: 4px 0 0;
  color: rgba(255, 248, 223, 0.57);
  font-size: 11px;
  line-height: 1.5;
}

.result-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0 40px;
}

.result-action-button {
  position: relative;
  min-width: 0;
  min-height: 43px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 184, 0.34);
  border-radius: 7px;
  background: rgba(255, 249, 226, 0.06);
  color: rgba(255, 245, 213, 0.9);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 18px rgba(255, 226, 155, 0.04);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.result-action-button::after {
  content: "";
  position: absolute;
  inset: -100% 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: rotate(16deg);
  transition: transform 0.58s ease;
}

.result-action-button:hover,
.result-action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 239, 193, 0.66);
  background: rgba(255, 249, 226, 0.11);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.17), inset 0 0 20px rgba(255, 226, 155, 0.08);
}

.result-action-button:hover::after {
  transform: translateX(190px) rotate(16deg);
}

.result-action-button.is-primary {
  border-color: rgba(255, 222, 146, 0.52);
  background: linear-gradient(135deg, rgba(255, 226, 157, 0.2), rgba(255, 143, 167, 0.13) 58%, rgba(123, 224, 198, 0.12));
  color: #fff2bf;
}

.result-button-icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(123, 224, 198, 0.9);
  filter: drop-shadow(0 0 5px rgba(123, 224, 198, 0.24));
}

.result-action-button span:last-child {
  position: relative;
  z-index: 1;
}

.result-preview-modal {
  z-index: 80;
  padding: 12px;
}

.result-preview-card {
  position: relative;
  z-index: 1;
  width: min(94vw, 480px);
  max-height: 95dvh;
  padding: 18px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 138, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.08), transparent 20%),
    rgba(8, 14, 29, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), inset 0 0 34px rgba(255, 217, 138, 0.08);
  transform-origin: center;
}

.result-preview-header {
  padding: 0 34px 12px;
  text-align: center;
}

.result-preview-header h3 {
  margin: 0;
  color: #fff0ba;
  font-family: "STZhongsong", "Songti SC", serif;
  font-size: 22px;
  line-height: 1.35;
  text-shadow: 0 0 18px rgba(255, 217, 138, 0.28);
}

.result-preview-header > p:last-child {
  margin: 5px 0 0;
  color: rgba(255, 248, 223, 0.58);
  font-size: 11px;
  line-height: 1.5;
}

.result-preview-stage {
  max-height: 78dvh;
  overflow: auto;
  border: 1px solid rgba(255, 217, 138, 0.2);
  border-radius: 7px;
  background: #070b17;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 219, 139, 0.74) rgba(255, 255, 255, 0.035);
}

.result-preview-stage img {
  width: 100%;
  height: auto;
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(88vw, 360px);
  min-height: 64px;
  padding: 11px 14px 11px 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 138, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 227, 164, 0.08), rgba(255, 143, 167, 0.05) 52%, rgba(123, 224, 198, 0.08)),
    rgba(8, 14, 30, 0.94);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  backdrop-filter: blur(14px);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.38),
    inset 0 0 28px rgba(255, 226, 157, 0.05);
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.1) 48%, transparent 70%);
  transform: translateX(-120%);
}

.toast.is-success::before {
  animation: toastLightSweep 1.5s 0.18s ease-out both;
}

.toast-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 232, 175, 0.46);
  border-radius: 50%;
  color: #fff0b8;
  background:
    radial-gradient(circle, rgba(255, 242, 198, 0.2), rgba(123, 224, 198, 0.08) 55%, transparent 72%);
  box-shadow:
    0 0 16px rgba(255, 217, 138, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.toast-mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-copy {
  min-width: 0;
}

.toast-title {
  display: block;
  margin-bottom: 2px;
  color: #fff0bb;
  font-family: "STZhongsong", "Songti SC", serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.toast-message {
  display: block;
  color: rgba(255, 248, 223, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes toastLightSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.sparkle {
  position: fixed;
  z-index: 50;
  width: 8px;
  height: 8px;
  pointer-events: none;
  background: #fff5cf;
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
  filter: drop-shadow(0 0 8px rgba(255, 217, 138, 0.9));
}

@media (min-width: 740px) {
  .title {
    font-size: 68px;
  }

  .subtitle {
    font-size: 19px;
    max-width: 520px;
  }

  .map-header {
    left: 36px;
    right: 138px;
  }

  .map-header h2 {
    font-size: 38px;
  }

  .star-map {
    inset: 0 126px 0 3vw;
  }

  .star-map-scroll {
    height: 650dvh;
    min-height: 5600px;
    max-height: 7800px;
  }

  .node-button {
    width: 320px;
    height: 164px;
  }

  .node-core {
    width: 148px;
    height: 148px;
  }

  .node-orbit {
    width: 228px;
    height: 228px;
  }

  .node-icon-shell {
    inset: 0;
  }

  .node-icon {
    width: 136px;
    height: 136px;
  }

  .node-name {
    font-size: 20px;
  }

  .pendant-panel {
    width: 90px;
    right: 20px;
  }

  .settle-button {
    width: 116px;
    height: 128px;
  }
}

@media (max-height: 680px) {
  .cover-copy {
    padding-top: 8dvh;
  }

  .cover-bottom {
    padding-top: 20px;
    gap: 8px;
  }

  .start-button {
    width: min(82vw, 248px);
    height: 116px;
  }

  .button-cn {
    font-size: 24px;
  }

  .button-en {
    font-size: 11px;
  }

  .hall-logo {
    width: min(88vw, 350px);
    min-height: 76px;
  }

  .cover-partner-logo-youth {
    height: 72px;
  }

  .cover-partner-logo-hall {
    width: min(63vw, 240px);
  }

  .memory-frame,
  .achievement-shell {
    padding-top: 20px;
  }

  .photo-stage {
    aspect-ratio: 1.55;
  }
}

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