/* =========================================================
   星海萤光 · Nocturne
   ========================================================= */

:root {
  --ink: #05070f;
  --ink-soft: #0a1024;
  --paper: #f5f0e6;
  --gold: #ffd9a0;
  --gold-deep: #ffb765;
  --teal: #8ce8d8;
  --muted: rgba(226, 232, 250, 0.56);
  --faint: rgba(226, 232, 250, 0.34);
  --line: rgba(255, 255, 255, 0.12);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --latin: "Cormorant Garamond", "Times New Roman", var(--serif);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 205, 140, 0.24);
  color: #fffaf0;
}

:focus-visible {
  outline: 1px solid rgba(255, 214, 160, 0.7);
  outline-offset: 5px;
}

/* ---------------------------------------------------------
   舞台
   --------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(130% 90% at 50% 4%, #131f44 0%, #0a1024 40%, #05070f 76%),
    radial-gradient(80% 60% at 82% 86%, rgba(30, 96, 102, 0.26), transparent 62%),
    radial-gradient(60% 50% at 12% 72%, rgba(66, 38, 100, 0.24), transparent 66%);
}

.nojs {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #05070f;
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-align: center;
}

/* 极光 ----------------------------------------------------- */

.sky {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.08);
}

.sky::before {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    linear-gradient(113deg, transparent 32%, rgba(126, 152, 255, 0.075) 45%, rgba(196, 176, 255, 0.11) 50%, rgba(126, 152, 255, 0.06) 55%, transparent 68%),
    radial-gradient(42% 22% at 36% 40%, rgba(172, 158, 255, 0.09), transparent 75%);
  filter: blur(34px);
  opacity: 0.9;
  transform: rotate(-4deg);
}

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(62px);
  will-change: transform;
  animation: drift 30s ease-in-out infinite alternate;
}

.blob--indigo {
  width: 78vmax;
  height: 66vmax;
  left: -20vmax;
  top: -30vmax;
  background: radial-gradient(circle at 50% 50%, rgba(70, 100, 228, 0.62), rgba(45, 32, 120, 0.2) 56%, transparent 72%);
  animation-duration: 34s;
}

.blob--teal {
  width: 68vmax;
  height: 58vmax;
  right: -18vmax;
  bottom: -26vmax;
  background: radial-gradient(circle at 50% 50%, rgba(44, 170, 166, 0.45), rgba(20, 74, 88, 0.18) 56%, transparent 72%);
  animation-duration: 41s;
  animation-delay: -12s;
}

.blob--violet {
  width: 62vmax;
  height: 54vmax;
  left: 18%;
  top: 6%;
  background: radial-gradient(circle at 50% 50%, rgba(140, 88, 206, 0.4), rgba(66, 38, 112, 0.12) 58%, transparent 74%);
  animation-duration: 28s;
  animation-delay: -6s;
}

.blob--rose {
  width: 44vmax;
  height: 40vmax;
  right: 6%;
  top: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(206, 118, 196, 0.17), rgba(86, 42, 104, 0.07) 58%, transparent 74%);
  animation-duration: 46s;
  animation-delay: -20s;
}

.haze {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background:
    radial-gradient(90% 100% at 50% 118%, rgba(52, 124, 126, 0.3), transparent 66%),
    linear-gradient(to top, rgba(4, 9, 16, 0.72), transparent);
}

/* 月 ------------------------------------------------------- */

.moon {
  position: absolute;
  left: 50%;
  top: 39%;
  width: clamp(240px, 46vmin, 620px);
  height: clamp(240px, 46vmin, 620px);
  z-index: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: top 2.2s var(--ease-out);
}

.stage:not(.is-ready) .moon {
  top: 30%;
}

.moon__disc {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 63% 66%, rgba(168, 104, 58, 0.11) 0 2.8%, transparent 6%),
    radial-gradient(circle at 47% 74%, rgba(168, 104, 58, 0.08) 0 2%, transparent 5%),
    radial-gradient(circle at 68% 46%, rgba(168, 104, 58, 0.07) 0 1.7%, transparent 4.5%),
    radial-gradient(circle at 30% 52%, rgba(255, 248, 226, 0.18) 0%, transparent 26%),
    radial-gradient(circle at 36% 30%, #fffdf8 0%, #fff4dd 24%, #ffe7c0 52%, #f8d09c 78%, #e9b176 100%);
  box-shadow:
    inset -7px -9px 24px rgba(152, 86, 40, 0.34),
    inset 5px 6px 18px rgba(255, 255, 255, 0.5),
    0 0 26px rgba(255, 230, 190, 0.5),
    0 0 70px 14px rgba(255, 198, 132, 0.2),
    0 0 160px 46px rgba(255, 166, 100, 0.1);
  animation: breathe 9s ease-in-out infinite;
  will-change: transform;
}

.moon__halo {
  position: absolute;
  inset: -38%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 230, 186, 0.4) 0%, rgba(255, 186, 112, 0.17) 26%, rgba(255, 146, 88, 0.06) 48%, transparent 68%);
  filter: blur(14px);
  opacity: 0.65;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.moon__ring {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 100%;
  margin-top: -50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 220, 170, 0.11);
  transform: rotate(-22deg) scaleY(0.34);
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 22%, #000 78%, transparent 98%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 22%, #000 78%, transparent 98%);
}

.moon__ring--inner {
  inset: 9%;
  width: 82%;
  height: 82%;
  margin: 0;
  left: 9%;
  top: 9%;
  border-color: rgba(255, 228, 184, 0.08);
  transform: rotate(-22deg) scaleY(0.34);
}

/* 画布 ----------------------------------------------------- */

#scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  touch-action: none;
}

/* 质感 ----------------------------------------------------- */

.vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 38%, rgba(2, 4, 10, 0.34) 72%, rgba(1, 2, 6, 0.74) 100%),
    linear-gradient(to bottom, rgba(2, 4, 10, 0.4), transparent 18%, transparent 76%, rgba(2, 4, 10, 0.55));
}

.grain {
  position: absolute;
  inset: -20%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-shift 6s steps(6) infinite;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  width: 620px;
  height: 620px;
  margin: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 222, 172, 0.24) 0%, rgba(255, 196, 132, 0.1) 26%, rgba(255, 170, 110, 0.035) 48%, transparent 68%);
  mix-blend-mode: screen;
  transition: opacity 0.5s var(--ease);
  will-change: transform, opacity;
}

/* ---------------------------------------------------------
   顶栏
   --------------------------------------------------------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3.6vw, 44px) clamp(22px, 4.2vw, 64px);
  opacity: 0;
  pointer-events: none;
}

.stage.is-ready .topbar {
  animation: fade-in 1.6s var(--ease) 0.7s forwards;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.82);
}

.brand__mark {
  font-size: 11px;
  line-height: 1;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(255, 200, 130, 0.7));
}

.brand__name {
  padding-top: 1px;
}

.brand__cn {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--faint);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  pointer-events: auto;
}

.clock {
  font-family: var(--latin);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.sound {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.28);
  color: rgba(240, 236, 226, 0.74);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.2em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}

.sound:hover {
  border-color: rgba(255, 215, 160, 0.4);
  background: rgba(28, 32, 52, 0.4);
  color: var(--paper);
  transform: translateY(-1px);
}

.sound__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  color: var(--gold);
}

.sound__bars i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform: scaleY(0.22);
  transform-origin: bottom;
  opacity: 0.75;
  transition: transform 0.5s var(--ease);
}

.stage.sound-on .sound__bars i {
  animation: equalize 1.15s ease-in-out infinite;
}

.stage.sound-on .sound__bars i:nth-child(2) {
  animation-delay: 0.16s;
}

.stage.sound-on .sound__bars i:nth-child(3) {
  animation-delay: 0.34s;
}

.stage.sound-on .sound__bars i:nth-child(4) {
  animation-delay: 0.08s;
}

.stage.sound-on .sound {
  border-color: rgba(255, 215, 160, 0.26);
  color: rgba(255, 243, 224, 0.92);
}

/* ---------------------------------------------------------
   主视觉
   --------------------------------------------------------- */

.hero {
  position: absolute;
  left: 50%;
  bottom: clamp(96px, 16.5vh, 186px);
  z-index: 8;
  width: min(92vw, 1100px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.2s;
}

.stage.is-ready .hero {
  opacity: 1;
}

.hero__eyebrow {
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  font-family: var(--latin);
  font-size: clamp(9px, 0.78vw, 11.5px);
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
  color: rgba(255, 218, 164, 0.58);
}

.hero__title {
  margin: 0 0 clamp(14px, 2vh, 22px);
  font-family: var(--serif);
  font-size: clamp(52px, 9.2vw, 132px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  white-space: nowrap;
}

.hero__title span {
  display: inline-block;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe9c6 48%, #f0bf8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 34px rgba(255, 178, 106, 0.24));
  opacity: 0;
  transform: translateY(26px);
  filter: blur(10px) drop-shadow(0 8px 34px rgba(255, 178, 106, 0.2));
  will-change: transform, opacity, filter;
}

.stage.is-ready .hero__title span {
  animation: char-in 1.6s var(--ease-out) forwards;
}

.stage.is-ready .hero__title span:nth-child(1) {
  animation-delay: 0.3s;
}

.stage.is-ready .hero__title span:nth-child(2) {
  animation-delay: 0.44s;
}

.stage.is-ready .hero__title span:nth-child(3) {
  animation-delay: 0.58s;
}

.stage.is-ready .hero__title span:nth-child(4) {
  animation-delay: 0.72s;
}

.hero__sub {
  margin: 0 auto;
  max-width: min(92vw, 720px);
  font-size: clamp(12px, 1.02vw, 15px);
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 2;
  color: rgba(226, 232, 248, 0.55);
  opacity: 0;
  transform: translateY(12px);
}

.stage.is-ready .hero__sub {
  animation: soft-in 1.8s var(--ease) 1.05s forwards;
}

/* ---------------------------------------------------------
   页脚
   --------------------------------------------------------- */

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 2.6vw, 30px);
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(22px, 4.2vw, 64px);
  pointer-events: none;
  opacity: 0;
}

.stage.is-ready .footer {
  animation: fade-in 1.8s var(--ease) 1.1s forwards;
}

.hints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(226, 232, 248, 0.38);
}

.hints span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hints kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(245, 236, 220, 0.66);
  background: rgba(255, 255, 255, 0.025);
}

.signature {
  margin: 0;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(226, 232, 248, 0.28);
  white-space: nowrap;
}

.signature__dot {
  margin: 0 10px;
  color: rgba(255, 210, 150, 0.5);
}

/* ---------------------------------------------------------
   入场
   --------------------------------------------------------- */

.intro {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(64px, 10vh, 110px) 24px clamp(30px, 6vh, 64px);
  cursor: pointer;
  background:
    radial-gradient(78% 70% at 50% 24%, rgba(6, 10, 22, 0.04) 0%, rgba(5, 8, 18, 0.34) 46%, rgba(3, 5, 12, 0.72) 78%, rgba(3, 5, 12, 0.86) 100%),
    linear-gradient(to bottom, rgba(3, 5, 12, 0.22) 0%, rgba(4, 7, 16, 0.08) 34%, rgba(3, 5, 12, 0.5) 74%, rgba(2, 4, 10, 0.78) 100%);
  -webkit-backdrop-filter: blur(2.5px) saturate(0.95);
  backdrop-filter: blur(2.5px) saturate(0.95);
  transition: opacity 1.3s var(--ease), -webkit-backdrop-filter 1.3s var(--ease), backdrop-filter 1.3s var(--ease);
}

.intro::after {
  content: "";
  position: absolute;
  inset: clamp(18px, 3.4vw, 42px);
  border: 1px solid rgba(255, 226, 182, 0.07);
  pointer-events: none;
  transition: opacity 1s var(--ease);
}

.intro__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  transform: translateY(0);
  transition: transform 1.2s var(--ease), opacity 0.9s var(--ease);
}

.intro--out {
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0px) saturate(1);
  backdrop-filter: blur(0px) saturate(1);
}

.intro--out .intro__inner {
  opacity: 0;
  transform: translateY(-14px) scale(0.985);
}

.intro--out::after {
  opacity: 0;
}

.intro__kicker {
  margin: 0 0 clamp(20px, 3.4vh, 34px);
  font-family: var(--latin);
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 216, 158, 0.62);
}

.intro__title {
  margin: 0 0 clamp(14px, 2.2vh, 22px);
  font-family: var(--serif);
  font-size: clamp(31px, 4.6vw, 54px);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #f8f2e6;
  text-shadow: 0 0 48px rgba(255, 196, 132, 0.24);
}

.intro__text {
  margin: 0;
  font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: 0.16em;
  line-height: 2;
  color: rgba(226, 232, 248, 0.46);
}

.enter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: clamp(136px, 15vh, 166px);
  height: clamp(136px, 15vh, 166px);
  margin: clamp(24px, 4vh, 40px) 0 clamp(16px, 2.4vh, 24px);
  padding: 0;
  border: 1px solid rgba(255, 219, 164, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 158, 0.15), rgba(255, 190, 120, 0.035) 55%, transparent 72%);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.8s var(--ease), border-color 0.8s var(--ease), box-shadow 0.8s var(--ease), background 0.8s var(--ease);
}

.enter:hover,
.enter:focus-visible {
  transform: scale(1.045);
  border-color: rgba(255, 226, 180, 0.62);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 222, 172, 0.2), rgba(255, 190, 120, 0.05) 58%, transparent 74%);
  box-shadow: 0 0 70px rgba(255, 190, 120, 0.16), inset 0 0 50px rgba(255, 206, 146, 0.08);
}

.enter:active {
  transform: scale(0.985);
  transition-duration: 0.2s;
}

.enter__text {
  position: relative;
  z-index: 2;
}

.enter__star {
  position: relative;
  z-index: 2;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 230, 184, 0.8);
  text-indent: 0;
  filter: drop-shadow(0 0 10px rgba(255, 206, 146, 0.7));
  animation: star-breathe 4.6s ease-in-out infinite;
}

.enter__ring {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255, 220, 168, 0.34);
  border-radius: 50%;
  animation: halo-ring 4.4s var(--ease-out) infinite;
  pointer-events: none;
}

.enter__ring--late {
  animation-delay: 2.2s;
}

.intro__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: rgba(226, 232, 248, 0.26);
}

.intro__dot {
  opacity: 0.6;
}

.intro__silent {
  margin: -7px -3px;
  padding: 6px 3px 7px;
  border: 0;
  border-bottom: 1px solid rgba(255, 226, 180, 0.18);
  background: none;
  color: rgba(255, 226, 180, 0.45);
  font-family: var(--serif);
  font-size: inherit;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.intro__silent:hover,
.intro__silent:focus-visible {
  color: rgba(255, 235, 200, 0.9);
  border-color: rgba(255, 226, 180, 0.6);
}

/* ---------------------------------------------------------
   动效
   --------------------------------------------------------- */

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4vw, 2.5vh, 0) scale(1.07);
  }
  100% {
    transform: translate3d(-3vw, -2vh, 0) scale(0.97);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.028);
  }
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.22);
  }
  35% {
    transform: scaleY(1);
  }
  65% {
    transform: scaleY(0.48);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes soft-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes char-in {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(10px) drop-shadow(0 8px 34px rgba(255, 178, 106, 0.2));
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0) drop-shadow(0 8px 34px rgba(255, 178, 106, 0.24));
  }
}

@keyframes halo-ring {
  0% {
    transform: scale(0.94);
    opacity: 0;
  }
  18% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

@keyframes star-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes grain-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-2%, 1.4%, 0);
  }
  40% {
    transform: translate3d(1.6%, -1%, 0);
  }
  60% {
    transform: translate3d(-1%, 2%, 0);
  }
  80% {
    transform: translate3d(2%, 0.6%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* ---------------------------------------------------------
   响应式
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .signature {
    display: none;
  }

  .hero {
    bottom: clamp(104px, 15vh, 150px);
  }
}

@media (max-width: 760px) {
  .intro {
    -webkit-backdrop-filter: blur(2px) saturate(0.95);
    backdrop-filter: blur(2px) saturate(0.95);
  }

  .topbar {
    padding: 20px 20px;
  }

  .brand__cn {
    display: none;
  }

  .brand {
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  .clock {
    display: none;
  }

  .sound {
    padding: 8px 13px 8px 11px;
  }

  .footer {
    justify-content: center;
    padding: 0 18px;
  }

  .hints {
    justify-content: center;
    gap: 10px 14px;
    font-size: 9px;
  }

  .hints kbd {
    min-width: 0;
    padding: 3px 7px;
    font-size: 8px;
  }

  .hero__sub {
    letter-spacing: 0.12em;
  }

  .blob {
    filter: blur(54px);
  }
}

@media (max-width: 520px) {
  .hints span:nth-child(3) {
    display: none;
  }

  .hero__eyebrow {
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }

  .hero__sub {
    font-size: 11.5px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 380px) {
  .intro__title {
    font-size: 26px;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }
}

@media (max-height: 720px) {
  .stage:not(.is-ready) .moon {
    top: 26%;
  }

  .intro {
    padding-bottom: 26px;
  }
}

@media (max-height: 620px) {
  .stage:not(.is-ready) .moon {
    top: 24%;
  }

  .intro {
    padding: 40px 20px 26px;
  }

  .hero {
    bottom: 76px;
  }

  .hero__eyebrow {
    margin-bottom: 12px;
  }

  .hero__title {
    margin-bottom: 10px;
  }

  .intro__title {
    font-size: clamp(26px, 4vw, 40px);
  }

  .enter {
    width: 120px;
    height: 120px;
    margin: 20px 0 14px;
  }
}

/* 触摸设备不显示光晕跟随 */
@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

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

  .stage.is-ready .hero {
    opacity: 1;
  }

  .stage.is-ready .hero__title span,
  .stage.is-ready .hero__sub,
  .stage.is-ready .topbar,
  .stage.is-ready .footer {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
