:root {
  --ink: #534266;
  --night: #8777b4;
  --night-deep: #6f5d9d;
  --sky: #d8e9ff;
  --foam: #fffdf8;
  --leaf: #a7c9b1;
  --sun: #ffe8a6;
  --card: rgba(255, 253, 249, 0.72);
  --border: rgba(157, 145, 192, 0.3);
  --focus-ring: #f4cb72;
  --home-visual-width: clamp(420px, 37vw, 550px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 251, 243, 0.62) 0%, rgba(255, 251, 243, 0) 40%),
    radial-gradient(circle at 82% 12%, rgba(217, 235, 255, 0.52) 0%, rgba(217, 235, 255, 0) 38%),
    linear-gradient(165deg, #d8cff6 0%, #c7d8fb 37%, #d9c8f1 70%, #f0e4fb 100%);
  font-family: "Inter", "Noto Sans SC", "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 90;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #5f4f86;
  background: rgba(255, 252, 240, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(158, 146, 198, 0.28);
  transition: top 0.24s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.noise-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(rgba(164, 176, 223, 0.09) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 1px;
  z-index: 1;
}

.sky-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.dust {
  position: absolute;
  border-radius: 999px;
  background: rgba(247, 247, 255, 0.9);
  box-shadow: 0 0 8px rgba(226, 226, 255, 0.52);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.9;
  }
  to {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 253, 249, 0.22);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.logo {
  color: #6e5fa1;
  text-decoration: none;
  font-size: clamp(1.02rem, 2.1vw, 1.26rem);
  letter-spacing: 0.01em;
  font-family: "Baloo 2", "Inter", "Noto Sans SC", sans-serif;
  font-weight: 700;
  line-height: 1;
}

.top-nav {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-link {
  position: relative;
  color: rgba(101, 88, 140, 0.84);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 7px 2px 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
  line-height: 1;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color 0.24s ease, transform 0.24s ease;
  box-shadow: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(164, 146, 214, 0.85), rgba(245, 198, 148, 0.72));
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-link-btn {
  color: rgba(101, 88, 140, 0.84);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 7px 10px 8px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.34);
  transition: color 0.24s ease, transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #5e4e88;
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: #56447f;
  text-shadow: 0 4px 12px rgba(182, 168, 222, 0.28);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after,
.nav-link-btn:hover::after,
.nav-link-btn:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.music-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.track-switch {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.42);
  color: #72619e;
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1;
}

.track-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #73649b;
  cursor: default;
}

.track-switch select {
  border: 0;
  background: transparent;
  color: #6b5d91;
  font-size: 0.83rem;
  max-width: 140px;
  outline: none;
  cursor: pointer;
}

.music-float-btn {
  position: fixed;
  right: 18px;
  top: 96px;
  z-index: 53;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 252, 245, 0.9);
  color: #6f6097;
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  box-shadow: 0 12px 24px rgba(107, 92, 149, 0.24);
  cursor: pointer;
  backdrop-filter: blur(7px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.music-float-btn:hover,
.music-float-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(106, 90, 145, 0.28);
  background: rgba(255, 249, 236, 0.96);
}

.music-float-disc {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(145deg, rgba(255, 236, 194, 0.95), rgba(215, 230, 255, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.music-float-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.music-float-btn.playing .music-float-disc {
  animation: musicFloatSpin 2.9s linear infinite;
}

@keyframes musicFloatSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.panel {
  min-height: 100vh;
  padding: clamp(90px, 10vh, 140px) 20px 56px;
  position: relative;
  z-index: 10;
}

.panel:nth-child(odd) {
  background: linear-gradient(150deg, rgba(255, 253, 247, 0.18), rgba(255, 255, 255, 0.07));
}

.panel:nth-child(even) {
  background: linear-gradient(200deg, rgba(184, 174, 224, 0.2), rgba(255, 255, 255, 0.08));
}

.panel.panel-future {
  background: linear-gradient(170deg, rgba(255, 252, 244, 0.3), rgba(255, 255, 255, 0.16));
}

.panel.panel-easter {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 246, 215, 0.24), transparent 42%),
    radial-gradient(circle at 84% 14%, rgba(231, 238, 255, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.42), rgba(255, 255, 255, 0.2));
}

.panel-content {
  width: min(1100px, 100%);
  margin: 0 auto;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  color: #534570;
  font-weight: 800;
  letter-spacing: 0.01em;
}

h1 span {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #f5deff;
  margin-top: 8px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #5f4e85;
  margin-bottom: 6px;
  font-weight: 800;
}

h3 {
  color: #5f4f87;
  font-size: 1.3rem;
  font-weight: 700;
}

.section-tagline {
  margin-top: 0;
  margin-bottom: 24px;
  color: #6a5f8f;
}

.home-layout {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: clamp(24px, 3.3vw, 46px);
  align-items: start;
  min-height: calc(100vh - 130px);
  padding-top: clamp(8px, 1.8vh, 20px);
}

.panel-home {
  overflow: hidden;
  padding-top: clamp(90px, 10.4vh, 112px);
  padding-bottom: 26px;
}

.home-clouds {
  position: relative;
  z-index: 7;
  width: min(1100px, 100%);
  margin: 0 auto clamp(8px, 1.5vh, 16px);
  overflow: hidden;
  padding: 0 0 4px;
  pointer-events: none;
}

.home-cloud-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.6vw, 40px);
  animation: cloudMarquee 34s linear infinite;
}

.cloud-bubble {
  position: relative;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  color: rgba(120, 107, 159, 0.74);
  font-size: clamp(0.9rem, 1.04vw, 1.14rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: none;
  white-space: nowrap;
}

.cloud-bubble::after {
  content: "✦";
  margin-left: clamp(14px, 1.7vw, 22px);
  color: rgba(232, 202, 138, 0.76);
  font-size: 0.84em;
}

@keyframes cloudMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.home-copy {
  position: relative;
  z-index: 9;
  max-width: 62ch;
  padding-top: clamp(16px, 2.6vh, 32px);
}

.home-copy > * {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-title {
  max-width: none;
  margin-bottom: clamp(30px, 3.8vh, 52px);
  font-size: clamp(1.08rem, 1.9vw, 1.62rem);
  line-height: 1.2;
  font-weight: 700;
  white-space: normal;
  letter-spacing: 0.01em;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  padding: 0 4px 5px;
  color: rgba(130, 116, 173, 0.86);
  text-shadow: 0 1px 8px rgba(255, 246, 213, 0.24);
}

.hero-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2em;
  height: 0.36em;
  border-radius: 999px;
  background: rgba(255, 234, 170, 0.42);
  z-index: -1;
}

.name-main {
  position: relative;
  display: inline-block;
  font-size: clamp(2.4rem, 4.05vw, 3.84rem);
  line-height: 1.14;
  color: #54407d;
  margin-top: clamp(8px, 1.4vh, 16px);
  margin-bottom: clamp(42px, 5.6vh, 68px);
  letter-spacing: 0.01em;
  white-space: normal;
  text-shadow:
    0 4px 16px rgba(255, 236, 188, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.82);
}

.name-main::before,
.name-main::after {
  content: "✦";
  position: absolute;
  font-size: clamp(0.95rem, 1.2vw, 1.3rem);
  color: #ffd37d;
  text-shadow: 0 0 10px rgba(255, 225, 158, 0.65);
  animation: nameTwinkle 2.2s ease-in-out infinite;
  pointer-events: none;
}

.name-main::before {
  left: -1.1em;
  top: -0.25em;
}

.name-main::after {
  right: -1em;
  bottom: -0.15em;
  animation-delay: 0.9s;
}

@keyframes nameTwinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.16) rotate(12deg);
  }
}

.self-intro {
  color: #635386;
  font-size: clamp(1rem, 1.3vw, 1.26rem);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: clamp(16px, 2.2vh, 28px);
}

.narration {
  color: rgba(103, 93, 133, 0.92);
  font-size: clamp(0.98rem, 1.14vw, 1.06rem);
  line-height: 1.86;
  font-weight: 400;
  max-width: 56ch;
  margin-top: clamp(6px, 1vh, 12px);
  margin-bottom: clamp(14px, 1.9vh, 24px);
}

.opening-copy {
  margin-bottom: clamp(28px, 3.2vh, 44px);
}

.opening-copy p {
  margin: 0 0 10px;
  color: rgba(103, 93, 133, 0.92);
  font-size: clamp(0.98rem, 1.14vw, 1.06rem);
  line-height: 1.86;
  font-weight: 400;
}

.chip-guidance {
  margin: 0 0 12px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #5d4e82;
  font-size: 0.84rem;
  border: 1px dashed rgba(255, 230, 169, 0.9);
  background: rgba(255, 246, 218, 0.92);
  box-shadow: 0 8px 16px rgba(171, 158, 212, 0.2);
  animation: chipGuidePulse 1.8s ease-in-out infinite;
}

@keyframes chipGuidePulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.chips {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 0 0 clamp(12px, 1.6vh, 18px);
}

.chip-tag {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  color: #69598d;
  background: rgba(255, 251, 242, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(175, 165, 208, 0.2);
  font-size: 0.93rem;
  font: inherit;
  cursor: pointer;
  overflow: visible;
  animation: chipFloat 5.6s ease-in-out infinite, chipGlow 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chip-tag:nth-child(2n) {
  animation-delay: 0.6s;
  animation-duration: 6.4s;
}

.chip-tag:nth-child(3n) {
  animation-delay: 1.2s;
  animation-duration: 5.2s;
}

.chip-tag:hover {
  transform: translateY(-5px) scale(1.06) rotate(-1deg);
  box-shadow: 0 16px 26px rgba(148, 135, 194, 0.36);
  background: rgba(255, 255, 255, 0.98);
  z-index: 6;
}

.chip-tag::before {
  content: "✦";
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 0.88rem;
  color: #f7c978;
  opacity: 0.72;
  transform: translateY(0) scale(1);
  animation: chipStarTwinkle 1.8s ease-in-out infinite;
  pointer-events: none;
}

.chip-tag::after {
  content: "点我拆卡";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  color: #4f3e77;
  border: 1px solid rgba(255, 240, 202, 0.92);
  background: rgba(255, 247, 223, 0.98);
  box-shadow: 0 10px 20px rgba(150, 136, 196, 0.3);
  white-space: nowrap;
  opacity: 0;
  z-index: 7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.chip-tag:hover::before,
.chip-tag:focus-visible::before {
  opacity: 1;
  transform: scale(1.18);
}

.chip-tag:hover::after,
.chip-tag:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes chipGlow {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(175, 165, 208, 0.2);
  }
  50% {
    box-shadow: 0 13px 24px rgba(164, 149, 210, 0.34);
  }
}

@keyframes chipStarTwinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.home-enter-item {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
  transition-delay: var(--enter-delay, 0s);
}

.home-enter-item.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.chip-cursor-star {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 73;
  pointer-events: none;
  font-size: 14px;
  color: #ffcf7c;
  text-shadow: 0 0 10px rgba(255, 224, 155, 0.65);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.chip-cursor-star.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.chip-spark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 74;
  pointer-events: none;
  color: #ffd47f;
  font-size: 0.82rem;
  transform: translate(-50%, -50%);
  animation: chipSpark 0.66s ease forwards;
}

.present-like-tip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -8px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  color: #4f3e77;
  border: 1px solid rgba(255, 240, 202, 0.92);
  background: rgba(255, 247, 223, 0.98);
  box-shadow: 0 10px 20px rgba(150, 136, 196, 0.3);
  white-space: nowrap;
  opacity: 0;
  z-index: 75;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.present-like-tip.show {
  opacity: 1;
  transform: translate(-50%, -14px);
}

@keyframes chipSpark {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -16px) scale(1.45);
  }
}

.main-cta {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(120deg, #ffe8ad, #ffd7c8);
  color: #5e4b87;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 18px rgba(177, 169, 214, 0.28);
}

.home-actions {
  display: flex;
  gap: 10px 12px;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0 0 clamp(18px, 2.4vh, 28px);
}

.secondary-cta {
  border: 1px solid rgba(140, 120, 190, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: #6a5892;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(175, 167, 213, 0.2);
}

.home-visual {
  display: grid;
  gap: clamp(6px, 1vh, 12px);
  align-content: start;
}

.hero-poster {
  position: relative;
  margin: 0;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  padding: 12px;
  transform: rotate(-3.2deg) translateX(-24px);
  box-shadow: 0 16px 34px rgba(165, 155, 204, 0.3);
  width: min(100%, var(--home-visual-width));
  justify-self: end;
}

.hero-poster img {
  width: 100%;
  display: block;
  border-radius: 18px;
  animation: heroPosterFloat 7.2s ease-in-out infinite;
}

.hero-main-image {
  transition:
    opacity 0.65s ease;
}

.hero-main-image.is-fading {
  opacity: 0.42;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 22%, rgba(255, 252, 233, 0.34) 50%, rgba(255, 255, 255, 0) 76%);
  transition: opacity 0.34s ease;
}

.hero-poster.is-switching::after {
  opacity: 0.2;
}

@keyframes heroSlideGlow {
  0% {
    opacity: 0;
    transform: translateX(-22%) scaleX(0.88);
  }
  40% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateX(20%) scaleX(1.06);
  }
}

.portrait-poster img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-poster figcaption {
  text-align: center;
  margin: 8px 0 2px;
  color: #695b8f;
  font-size: 0.95rem;
}

.hero-mini-stack {
  width: min(100%, calc(var(--home-visual-width) - 8px));
  justify-self: end;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 18px;
  margin-top: clamp(18px, 2.6vh, 30px);
  padding-left: 20px;
}

.mini-card {
  margin: 0;
  width: clamp(104px, 9vw, 148px);
  background: rgba(255, 253, 247, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(166, 158, 206, 0.24);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 7 / 8;
  object-fit: cover;
  object-position: center;
  border-radius: 9px;
  display: block;
  animation: heroStackFloat 8.5s ease-in-out infinite;
}

.mini-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.03);
  box-shadow: 0 14px 24px rgba(149, 138, 196, 0.34);
}

@media (max-width: 1320px) and (min-width: 981px) {
  :root {
    --home-visual-width: clamp(390px, 35vw, 510px);
  }

  .home-layout {
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(20px, 2.8vw, 36px);
  }
}

@media (max-height: 900px) and (min-width: 981px) {
  :root {
    --home-visual-width: clamp(340px, 32vw, 450px);
  }

  .panel-home {
    padding-top: clamp(82px, 9.2vh, 96px);
    padding-bottom: 18px;
  }

  .home-layout {
    min-height: calc(100vh - 118px);
    gap: clamp(18px, 2.5vw, 32px);
    padding-top: 4px;
  }

  .hero-title {
    margin-bottom: clamp(14px, 2.2vh, 22px);
  }

  .name-main {
    margin-top: 6px;
    margin-bottom: clamp(28px, 3.8vh, 42px);
  }

  .home-visual {
    gap: 8px;
  }

  .hero-poster {
    padding: 10px;
    transform: rotate(-2.2deg) translateX(-12px);
  }

  .hero-poster figcaption {
    margin-top: 7px;
    font-size: 0.9rem;
  }

  .hero-mini-stack {
    gap: 12px;
    margin-top: 12px;
    padding-left: 8px;
  }

  .mini-card {
    padding: 5px;
    width: clamp(92px, 8.4vw, 126px);
  }

  .mini-card img {
    aspect-ratio: 4 / 5;
  }
}

.mini-card-1 {
  transform: rotate(-12deg) translateY(12px);
}

.mini-card-2 {
  transform: rotate(8deg) translateY(-10px);
}

.mini-card-3 {
  transform: rotate(-10deg) translateY(18px);
}

.mini-card-2 img {
  animation-delay: 0.8s;
}

.mini-card-3 img {
  animation-delay: 1.5s;
}

@keyframes heroPosterFloat {
  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(-1.4deg) translateY(-8px);
  }
}

@keyframes heroStackFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mist-stagger {
  white-space: pre-wrap;
}

.mist-char {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(5px);
  animation: mistIn 0.62s ease forwards;
}

@keyframes mistIn {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.timeline {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.journey-showcase,
.past-project-entry {
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(164, 153, 205, 0.2);
}

.past-heading-row {
  margin-bottom: 14px;
  padding: 4px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  align-items: start;
  gap: 14px;
}

.past-heading-row h2 {
  margin-bottom: 0;
}

.past-whispers {
  justify-self: end;
  width: 100%;
  display: grid;
  gap: 8px;
}

.whisper-line {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: end;
  color: rgba(99, 84, 136, 0.8);
  font-size: 0.84rem;
  line-height: 1.7;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(173, 162, 214, 0.12);
  animation: whisperFloat 8s ease-in-out infinite;
}

.whisper-line:nth-child(2) {
  animation-delay: 0.9s;
}

.whisper-line:nth-child(3) {
  animation-delay: 1.7s;
}

@keyframes whisperFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-6px, -2px, 0);
  }
}

.past-opening {
  margin-bottom: 18px;
  padding: 18px 20px;
}

.past-opening p {
  margin: 0 0 8px;
  color: #655688;
  line-height: 1.86;
}

.past-opening p:last-child {
  margin-bottom: 0;
}

.journey-showcase {
  padding: 18px;
  margin-bottom: 18px;
}

.journey-showcase h3 {
  margin-bottom: 6px;
}

.journey-tip {
  margin: 0 0 14px;
  color: #786da1;
}

.journey-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.journey-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 222, 164, 0.95), rgba(168, 154, 215, 0.78));
  border-radius: 999px;
  transform: translateX(-50%);
}

.journey-card {
  position: relative;
  width: min(430px, calc(50% - 32px));
  margin: 0;
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px rgba(160, 147, 204, 0.18);
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 12px;
  align-items: stretch;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.journey-card > * {
  position: relative;
  z-index: 2;
}

.journey-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 24px rgba(153, 138, 197, 0.28);
}

.journey-card:focus-visible {
  outline: 2px solid rgba(166, 144, 225, 0.92);
  outline-offset: 2px;
}

.journey-card:nth-child(odd) {
  margin-right: auto;
}

.journey-card:nth-child(even) {
  margin-left: auto;
}

.journey-year-mark {
  position: absolute;
  top: 10px;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: rgba(142, 127, 187, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.journey-side-notes {
  position: absolute;
  top: 50%;
  width: min(236px, 22vw);
  transform: translateY(-50%);
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(171, 157, 214, 0.16);
  pointer-events: none;
  z-index: 1;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.journey-side-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.56;
  color: rgba(108, 94, 149, 0.84);
}

.journey-card:nth-child(odd) .journey-year-mark {
  left: calc(100% + 102px);
  text-align: left;
}

.journey-card:nth-child(even) .journey-year-mark {
  right: calc(100% + 102px);
  text-align: right;
}

.journey-card:nth-child(odd) .journey-side-notes {
  left: calc(100% + 130px);
  text-align: left;
}

.journey-card:nth-child(even) .journey-side-notes {
  right: calc(100% + 130px);
  text-align: left;
}

.journey-card:hover .journey-year-mark {
  color: rgba(132, 114, 184, 0.28);
}

.journey-card:hover .journey-side-notes {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 20px rgba(160, 145, 206, 0.2);
}

.journey-card::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(140deg, #ffe7ad, #cfdefb);
  box-shadow: 0 0 0 4px rgba(255, 247, 222, 0.62);
}

.journey-card:nth-child(odd)::before {
  right: -34px;
}

.journey-card:nth-child(even)::before {
  left: -34px;
}

.journey-card::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 22px;
  height: 2px;
  background: rgba(205, 192, 241, 0.82);
}

.journey-card:nth-child(odd)::after {
  right: -22px;
}

.journey-card:nth-child(even)::after {
  left: -22px;
}

.journey-tap-tip {
  position: absolute;
  top: -11px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5a4b80;
  border: 1px solid rgba(255, 238, 197, 0.9);
  background: linear-gradient(130deg, rgba(255, 246, 219, 0.98), rgba(237, 233, 255, 0.98));
  box-shadow: 0 6px 14px rgba(161, 146, 203, 0.24);
  animation: journeyTipPulse 1.6s ease-in-out infinite;
}

.journey-card:hover .journey-tap-tip {
  transform: translateY(-2px) scale(1.06);
}

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

.journey-visual {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(245, 240, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.journey-visual img {
  width: 100%;
  height: 100%;
  min-height: 116px;
  object-fit: cover;
  display: block;
}

.journey-content h4 {
  margin: 0 0 4px;
  color: #5e4e84;
  font-size: 1.06rem;
}

.journey-content .meta {
  margin: 0 0 6px;
  color: #8a7cb2;
  font-size: 0.88rem;
}

.journey-content p {
  margin: 0;
  color: #66588b;
  line-height: 1.78;
}

.journey-maintain {
  margin: 12px 0 0;
  color: #8679ac;
  font-size: 0.8rem;
}

.past-project-entry {
  padding: 18px;
}

.past-project-entry h3 {
  margin-bottom: 6px;
}

.past-project-entry p {
  margin-top: 0;
  margin-bottom: 12px;
  color: #6f6297;
}

.project-entry-btn {
  display: inline-block;
  text-decoration: none;
  font: inherit;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 999px;
  color: #5f4f84;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(130deg, rgba(255, 241, 198, 0.9), rgba(241, 234, 255, 0.9));
  box-shadow: 0 10px 20px rgba(159, 145, 201, 0.24);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-entry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(149, 135, 193, 0.3);
}

.journey-cloud-overlay {
  position: fixed;
  inset: 0;
  z-index: 73;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 250, 238, 0.2), transparent 46%),
    radial-gradient(circle at 84% 12%, rgba(225, 233, 255, 0.26), transparent 40%),
    rgba(58, 46, 91, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.journey-cloud-overlay::before,
.journey-cloud-overlay::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.journey-cloud-overlay::before {
  width: 170px;
  height: 170px;
  top: 12%;
  left: 12%;
}

.journey-cloud-overlay::after {
  width: 120px;
  height: 120px;
  right: 12%;
  bottom: 14%;
}

.journey-cloud-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.journey-cloud-overlay.show::before,
.journey-cloud-overlay.show::after {
  opacity: 1;
  animation: cloudAuraDrift 7.5s ease-in-out infinite;
}

.journey-cloud-overlay.show::after {
  animation-delay: 0.8s;
}

.journey-cloud-modal {
  position: relative;
  width: min(580px, 100%);
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 252, 241, 0.98), rgba(244, 247, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 42px rgba(107, 91, 151, 0.34);
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  filter: blur(1.5px);
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.34s ease;
}

.journey-cloud-overlay.show .journey-cloud-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: cloudPopIn 0.62s cubic-bezier(0.16, 0.84, 0.25, 1), cloudBreath 6s ease-in-out 0.62s infinite;
}

.journey-cloud-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #6f6197;
  font-size: 1.34rem;
  cursor: pointer;
}

.journey-cloud-kicker {
  margin: 0 0 10px;
  color: #7f73a7;
  font-size: 0.86rem;
}

.journey-cloud-body {
  display: grid;
  grid-template-columns: minmax(140px, 210px) 1fr;
  gap: 12px;
  align-items: stretch;
}

.journey-cloud-visual {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.journey-cloud-visual img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.48s ease, filter 0.48s ease;
}

.journey-cloud-overlay.show .journey-cloud-visual img {
  transform: scale(1);
  filter: saturate(1.04);
}

.journey-cloud-copy h3 {
  margin-bottom: 6px;
}

.journey-cloud-copy p {
  margin: 0;
  color: #66588d;
  line-height: 1.86;
}

@keyframes cloudPopIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.93);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cloudBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.005);
  }
}

@keyframes cloudAuraDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -8px, 0) scale(1.04);
  }
}

@keyframes tinyCloudFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -3px, 0);
  }
}

.past-prologue {
  padding: 18px 22px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(165, 156, 206, 0.2);
}

.past-prologue p {
  margin: 0 0 10px;
  line-height: 1.88;
}

.timeline-rich {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.timeline-item,
.story-card,
.future-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 18px;
  box-shadow: 0 10px 24px rgba(165, 156, 206, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.timeline-item:hover,
.story-card:hover,
.future-card:hover,
.career-card:hover,
.project-card:hover,
.photo-wall-section:hover,
.future-manifesto:hover,
.future-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(156, 146, 203, 0.24);
  background: rgba(255, 253, 249, 0.92);
}

.timeline-item .meta {
  margin: 0;
  color: #8f83b7;
  font-size: 0.95rem;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.career-card,
.project-card,
.future-quote,
.future-manifesto,
.photo-wall-section {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(165, 156, 206, 0.18);
}

.career-card .meta {
  color: #8c80b4;
  margin-top: -4px;
}

.project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.present-editorial {
  margin-top: 18px;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 252, 246, 0.74);
  box-shadow: 0 12px 28px rgba(160, 147, 203, 0.2);
  display: grid;
  gap: 16px;
}

.present-heading-row {
  margin-bottom: 10px;
  padding: 2px 0 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  align-items: start;
  gap: 14px;
}

.present-heading-row h2 {
  margin-bottom: 0;
}

.present-whispers {
  justify-self: end;
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
}

.present-whispers .whisper-line {
  justify-self: end;
}

.future-heading-row {
  margin-bottom: 10px;
  padding: 2px 0 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  align-items: start;
  gap: 14px;
}

.future-heading-row h2 {
  margin-bottom: 0;
}

.future-whispers {
  justify-self: end;
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
}

.future-whispers .whisper-line {
  justify-self: end;
}

.present-top-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.present-horizontal-card {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(155, 143, 198, 0.2);
  padding: 16px 18px;
  min-height: 168px;
}

.present-state-card {
  transform: none;
}

.present-personality-card {
  transform: none;
}

.present-line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.present-line-list li {
  position: relative;
  padding-left: 18px;
  color: #6a5b90;
  line-height: 1.8;
}

.present-line-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.08em;
  color: rgba(178, 145, 219, 0.92);
  font-size: 0.72rem;
}

.preline {
  white-space: pre-line;
  line-height: 1.8;
}

.present-carousel-shell {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.present-carousel-row {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.88);
}

.present-row-track {
  width: max-content;
  display: flex;
  gap: 10px;
  padding: 8px;
}

.track-right {
  animation: presentTrackRight 26s linear infinite;
}

.track-left {
  animation: presentTrackLeft 29s linear infinite;
}

.present-strip-card {
  margin: 0;
  flex: 0 0 clamp(184px, 22vw, 266px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(147, 134, 194, 0.2);
}

.present-strip-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.present-life-social {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.present-life-copy {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(155, 142, 196, 0.2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.present-life-copy h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.36rem, 1.52vw, 1.58rem);
}

.life-story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.life-story-list li {
  position: relative;
  color: #6a5b90;
  font-size: clamp(1.01rem, 1.06vw, 1.1rem);
  line-height: 1.9;
  letter-spacing: 0.012em;
  padding: 0 1.35em;
  white-space: nowrap;
}

.life-story-list li::before,
.life-story-list li::after {
  position: absolute;
  top: 0.06em;
  color: rgba(179, 147, 219, 0.9);
  font-size: 0.76em;
  line-height: 1;
}

.life-story-list li::before {
  content: "✦";
  left: 0;
}

.life-story-list li::after {
  content: "♡";
  right: 0;
}

.life-status-box {
  margin-top: auto;
  padding: 14px 14px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(145deg, rgba(255, 247, 228, 0.86), rgba(235, 239, 255, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.life-status-title {
  margin: 0 0 10px;
  color: #6f6098;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.life-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.life-status-pill {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.68);
  color: #7767a3;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.life-status-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
}

.life-status-pill.active {
  color: #65548c;
  background: rgba(255, 237, 197, 0.9);
  box-shadow: 0 8px 14px rgba(178, 162, 221, 0.22);
}

.life-status-note {
  margin: 12px 0 0;
  color: #6b5b92;
  font-size: 0.92rem;
  line-height: 1.72;
  min-height: 3.44em;
  letter-spacing: 0.01em;
}

.social-phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-phone-card {
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 20px rgba(154, 141, 196, 0.2);
  padding: 10px;
  display: grid;
  gap: 8px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.social-phone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(149, 136, 191, 0.3);
}

.phone-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  color: #5f4f86;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 248, 223, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.phone-screen {
  margin: 0;
  border-radius: 18px;
  padding: 8px 7px;
  background: linear-gradient(160deg, #1f1d2a, #2c2740);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-screen img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: rgba(255, 255, 255, 0.22);
}

.phone-tip {
  font-size: 0.76rem;
  color: #8173aa;
}

@keyframes presentTrackRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes presentTrackLeft {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.future-stage {
  margin-top: 14px;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 236, 244, 0.56), transparent 38%),
    radial-gradient(circle at 84% 24%, rgba(230, 218, 255, 0.44), transparent 34%),
    linear-gradient(130deg, rgba(255, 250, 241, 0.54), rgba(246, 241, 255, 0.38));
  box-shadow: 0 14px 34px rgba(150, 138, 190, 0.18);
}

.future-hero {
  margin: 0 auto;
  width: min(100%, 1220px);
  padding: clamp(8px, 1.2vw, 12px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(2px);
  box-shadow: 0 16px 32px rgba(147, 130, 189, 0.2);
  position: relative;
  overflow: hidden;
}

.future-hero img {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 16 / 8.6;
  max-height: min(78vh, 760px);
  transform-origin: 54% 56%;
  animation: futureFloat 8.4s ease-in-out infinite;
}

.future-motion-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hair-wisp {
  --hair-angle: -10deg;
  --hair-dur: 6.2s;
  position: absolute;
  width: clamp(86px, 10vw, 168px);
  height: clamp(16px, 2vw, 30px);
  border-radius: 999px;
  opacity: 0;
  filter: blur(0.35px) drop-shadow(0 4px 6px rgba(149, 127, 189, 0.24));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 224, 240, 0.9), rgba(255, 255, 255, 0));
  animation: hairWispFlow var(--hair-dur) ease-in-out infinite;
}

.hair-wisp-a {
  top: 17%;
  left: 57%;
  --hair-angle: -13deg;
  --hair-dur: 5.8s;
}

.hair-wisp-b {
  top: 21%;
  left: 61%;
  width: clamp(98px, 12vw, 192px);
  --hair-angle: -9deg;
  --hair-dur: 6.5s;
  animation-delay: -1.9s;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(224, 212, 255, 0.88), rgba(255, 255, 255, 0));
}

.hair-wisp-c {
  top: 26%;
  left: 55%;
  width: clamp(76px, 9vw, 144px);
  --hair-angle: -7deg;
  --hair-dur: 5.2s;
  animation-delay: -3.4s;
}

.future-hero figcaption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: fit-content;
  padding: 7px 16px;
  border-radius: 999px;
  color: #68588f;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 248, 228, 0.78);
  z-index: 4;
  box-shadow: 0 8px 14px rgba(137, 121, 181, 0.2);
}

@keyframes futureFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.28deg) scale(1);
  }
  36% {
    transform: translate3d(1.1%, -1.4%, 0) rotate(0.52deg) scale(1.006);
  }
  72% {
    transform: translate3d(-0.8%, -0.6%, 0) rotate(-0.22deg) scale(1.003);
  }
}

@keyframes hairWispFlow {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-10px) scaleX(0.86) rotate(var(--hair-angle));
  }
  20% {
    opacity: 0.52;
  }
  50% {
    opacity: 0.88;
    transform: translateX(22px) scaleX(1.1) rotate(calc(var(--hair-angle) + 2deg));
  }
  80% {
    opacity: 0.2;
  }
}

.future-danmu-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.future-danmu {
  --depth-scale: 1;
  --depth-blur: 0px;
  --depth-z: 3;
  --peak-opacity: 0.92;
  --mid-opacity: 0.8;
  --sway-tilt: 3.2deg;
  position: absolute;
  left: var(--x, 50%);
  top: -24%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.38);
  color: #645484;
  font-size: clamp(0.67rem, 0.9vw, 0.84rem);
  font-weight: 500;
  line-height: 1.32;
  white-space: nowrap;
  box-shadow: 0 7px 13px rgba(130, 113, 176, 0.18);
  backdrop-filter: blur(7px);
  transform: translateX(-50%) scale(var(--depth-scale));
  filter: blur(var(--depth-blur));
  z-index: var(--depth-z);
  opacity: 0;
  will-change: top, transform, opacity, filter;
  animation:
    danmuFall var(--dur, 15s) linear infinite,
    danmuSway var(--sway, 4.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
}

.future-danmu:nth-child(2n) {
  background: rgba(255, 247, 252, 0.4);
}

.future-danmu:nth-child(3n) {
  background: rgba(247, 245, 255, 0.42);
}

.future-danmu:nth-child(4n) {
  font-size: clamp(0.64rem, 0.86vw, 0.8rem);
}

.future-danmu-layer .future-danmu:nth-child(3n + 1) {
  --depth-scale: 1.1;
  --depth-blur: 0px;
  --depth-z: 5;
  --peak-opacity: 0.98;
  --mid-opacity: 0.88;
  --sway-tilt: 4deg;
  padding: 5px 12px;
  box-shadow: 0 10px 16px rgba(122, 107, 170, 0.24);
}

.future-danmu-layer .future-danmu:nth-child(3n + 2) {
  --depth-scale: 0.97;
  --depth-blur: 0.3px;
  --depth-z: 4;
  --peak-opacity: 0.9;
  --mid-opacity: 0.78;
  --sway-tilt: 3.1deg;
}

.future-danmu-layer .future-danmu:nth-child(3n) {
  --depth-scale: 0.82;
  --depth-blur: 0.8px;
  --depth-z: 2;
  --peak-opacity: 0.78;
  --mid-opacity: 0.64;
  --sway-tilt: 2.4deg;
  padding: 3px 9px;
  font-size: clamp(0.61rem, 0.8vw, 0.74rem);
  box-shadow: 0 4px 10px rgba(122, 107, 170, 0.14);
}

@keyframes danmuFall {
  0% {
    top: -24%;
    opacity: 0;
  }
  9% {
    opacity: var(--peak-opacity);
  }
  88% {
    opacity: var(--mid-opacity);
  }
  100% {
    top: 114%;
    opacity: 0;
  }
}

@keyframes danmuSway {
  0%,
  100% {
    transform: translateX(calc(-50% - var(--drift, 20px)))
      scale(var(--depth-scale))
      rotate(calc(-1 * var(--sway-tilt)));
  }
  50% {
    transform: translateX(calc(-50% + var(--drift, 20px)))
      scale(var(--depth-scale))
      rotate(var(--sway-tilt));
  }
}

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

.petal {
  position: absolute;
  left: var(--x);
  top: -18%;
  width: 12px;
  height: 18px;
  border-radius: 70% 40% 70% 40%;
  opacity: 0.82;
  filter: drop-shadow(0 3px 3px rgba(151, 137, 196, 0.18));
  animation:
    petalFall var(--dur, 12s) linear infinite,
    petalSway var(--sway, 3.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.petal:nth-child(3n) {
  width: 10px;
  height: 14px;
  opacity: 0.74;
}

.petal:nth-child(4n) {
  width: 14px;
  height: 20px;
  opacity: 0.88;
  --sway: 4.1s;
}

.petal.sakura {
  background: linear-gradient(150deg, rgba(255, 214, 231, 0.95), rgba(255, 173, 208, 0.88));
}

.petal.violet {
  background: linear-gradient(150deg, rgba(206, 187, 255, 0.95), rgba(164, 140, 235, 0.88));
}

@keyframes petalFall {
  from {
    transform: translate3d(0, -12%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(var(--drift, 24px), 124%, 0) rotate(340deg);
  }
}

@keyframes petalSway {
  0%,
  100% {
    margin-left: -3px;
  }
  50% {
    margin-left: 3px;
  }
}

.panel-easter .panel-content {
  text-align: left;
}

.easter-playground {
  padding: clamp(14px, 2.2vw, 24px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 248, 220, 0.48), transparent 38%),
    radial-gradient(circle at 86% 18%, rgba(230, 238, 255, 0.48), transparent 36%),
    rgba(255, 253, 247, 0.72);
  box-shadow: 0 14px 30px rgba(151, 140, 191, 0.18);
}

.easter-head {
  text-align: center;
  margin-bottom: 14px;
}

.easter-kicker {
  margin: 0 0 6px;
  color: #7768a2;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.easter-head h2 {
  margin-bottom: 8px;
}

.easter-mantra {
  margin: 0 auto;
  max-width: 760px;
  color: #6b5d92;
  font-size: 1.02rem;
}

.easter-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "unlock unlock"
    "blindbox rant";
  gap: 14px;
}

.game-zone {
  text-align: left;
  background: rgba(255, 254, 250, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(165, 156, 206, 0.16);
}

.game-zone-unlock {
  grid-area: unlock;
}

.blindbox-zone {
  grid-area: blindbox;
  margin-top: 0;
}

.rant-zone {
  grid-area: rant;
  margin-top: 0;
}

.game-zone h3 {
  margin-bottom: 6px;
}

.game-zone p {
  margin-top: 0;
  color: #6f6295;
}

.moon-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 1rem;
  background: linear-gradient(100deg, #fff6dd, #fff0e2);
  color: #6d5f94;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(169, 161, 207, 0.22);
}

.easter-content {
  margin: 14px auto 0;
  max-width: 760px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.8);
  border-radius: 14px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

.easter-content.show {
  opacity: 1;
  transform: translateY(0);
}

.easter-tip {
  margin-top: 12px;
  color: #7d71a5;
  font-size: 0.92rem;
}

.easter-code {
  margin-top: 10px;
}

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

.blindbox-card {
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(140deg, rgba(255, 248, 230, 0.96), rgba(243, 238, 255, 0.95));
  box-shadow: 0 8px 20px rgba(170, 160, 211, 0.2);
  padding: 12px;
  cursor: pointer;
  text-align: left;
  color: #65588b;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.blindbox-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(158, 147, 204, 0.26);
}

.box-front {
  font-weight: 700;
}

.box-back {
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blindbox-card.opened .box-front {
  display: none;
}

.blindbox-card.opened .box-back {
  display: block;
}

.blindbox-card.opened {
  background: rgba(255, 255, 255, 0.92);
}

.rant-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.rant-form input,
.rant-form textarea {
  width: 100%;
  border: 1px solid rgba(181, 169, 215, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: #5c4f82;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

.rant-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rant-actions button {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 248, 230, 0.88);
  color: #65588d;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.rant-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rant-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  padding: 10px 12px;
}

.rant-item p {
  margin: 0;
  color: #5d507f;
}

.rant-meta {
  margin-bottom: 4px;
  color: #8779ad;
  font-size: 0.82rem;
}

.rant-delete {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 249, 234, 0.9);
  color: #796ca3;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.rant-empty {
  color: #877bad;
  font-size: 0.92rem;
}

.easter-goodnight {
  margin: 16px 0 0;
  text-align: center;
  color: #7a6ca3;
  font-size: 0.98rem;
  font-weight: 600;
}

.site-footer {
  position: relative;
  z-index: 11;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.84), rgba(251, 249, 255, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.82);
}

.site-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
  color: #766a9f;
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-footer-inner p {
  margin: 2px 0;
}

.site-footer a {
  color: #6b5d95;
  text-decoration: none;
}

.tag-overlay {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(53, 42, 87, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.tag-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.tag-modal {
  width: min(560px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 20px 44px rgba(106, 90, 150, 0.34);
  padding: 18px;
  position: relative;
}

.tag-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #6f6196;
  font-size: 1.36rem;
  cursor: pointer;
}

.tag-kicker {
  margin: 0 0 10px;
  color: #7a6ca2;
  font-size: 0.9rem;
}

.tag-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: linear-gradient(145deg, rgba(255, 244, 225, 0.72), rgba(234, 238, 255, 0.72));
  box-shadow: 0 12px 24px rgba(170, 158, 207, 0.22);
}

.tag-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.tag-copy {
  padding: 14px 14px 16px;
}

.tag-copy h3 {
  margin-bottom: 6px;
}

.tag-copy p {
  margin: 0;
  color: #655989;
  line-height: 1.8;
}

.tag-card.deal {
  animation: dealCard 0.42s ease;
  transform-origin: 50% 60%;
}

@keyframes dealCard {
  0% {
    opacity: 0;
    transform: translateY(22px) rotateX(16deg) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

.tag-maintain {
  margin: 10px 0 0;
  color: #897cae;
  font-size: 0.8rem;
}

.resume-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(56, 43, 87, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.resume-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.resume-modal {
  width: min(560px, 100%);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 38px rgba(108, 94, 147, 0.36);
  padding: 20px;
  position: relative;
}

.resume-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #6f6196;
  font-size: 1.4rem;
  cursor: pointer;
}

.resume-kicker {
  margin: 0 0 8px;
  color: #74689b;
}

.resume-progress {
  height: 11px;
  border-radius: 999px;
  background: rgba(235, 227, 255, 0.9);
  overflow: hidden;
}

.resume-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(100deg, #ffe7a4, #c8ddff, #e8cbff);
  transition: width 0.22s ease;
}

.resume-loading {
  margin: 8px 0 0;
  color: #7a6ca3;
}

.resume-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: none;
}

.resume-result.show {
  display: block;
}

.resume-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 12px;
}

.resume-actions button,
.resume-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 248, 229, 0.88);
  color: #675a8e;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.resume-actions a:last-child {
  grid-column: 1 / -1;
}

.resume-actions button:hover,
.resume-actions a:hover,
.resume-actions button:focus-visible,
.resume-actions a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 246, 220, 0.95);
  box-shadow: 0 8px 14px rgba(170, 157, 212, 0.2);
}

.cat-friend {
  position: fixed;
  z-index: 72;
  display: grid;
  justify-items: center;
  pointer-events: auto;
}

.cat-friend-left {
  left: 10px;
  top: 96px;
  animation: catPatrol 16s ease-in-out infinite;
}

.cat-friend-inner {
  pointer-events: auto;
  filter: drop-shadow(0 12px 18px rgba(115, 101, 155, 0.26));
  cursor: pointer;
}

.cat-friend-left .cat-friend-inner {
  width: min(156px, 22vw);
  animation: catHop 0.9s ease-in-out infinite, catWobble 3.2s ease-in-out infinite;
}

.cat-friend-right {
  right: 14px;
  bottom: 22px;
  animation: catRestFloat 8s ease-in-out infinite;
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cat-friend-right .cat-friend-inner {
  width: min(118px, 14vw);
  animation: catRestBreath 4.8s ease-in-out infinite;
}

.cat-sleep-zzz {
  position: absolute;
  right: 22px;
  top: -2px;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.cat-sleep-zzz span {
  position: absolute;
  color: rgba(122, 106, 170, 0.88);
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(119, 103, 164, 0.24);
  opacity: 0;
  animation: zzzRise 3s ease-out infinite;
}

.cat-sleep-zzz span:nth-child(1) {
  right: 2px;
  bottom: 6px;
  font-size: 0.72rem;
  animation-delay: 0s;
}

.cat-sleep-zzz span:nth-child(2) {
  right: 15px;
  bottom: 12px;
  font-size: 0.86rem;
  animation-delay: 1s;
}

.cat-sleep-zzz span:nth-child(3) {
  right: 30px;
  bottom: 18px;
  font-size: 1rem;
  animation-delay: 2s;
}

.cat-friend-inner img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 0;
  border: 0;
  object-fit: contain;
}

.cat-note {
  margin: -2px 0 0;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #6b5c91;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.72);
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
}

.cat-note-left {
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 0.74rem;
  line-height: 1.2;
}

.cat-note-right {
  margin-top: 4px;
  padding: 6px 12px;
  display: grid;
  gap: 2px;
  text-align: center;
}

.cat-note-right span:first-child {
  font-weight: 700;
}

.cat-note-right span:last-child {
  font-size: 0.74rem;
}

.cat-note:hover,
.cat-note:focus-visible,
.cat-friend-inner:hover {
  transform: translateY(-1px);
}

.cat-note:focus-visible {
  outline: 2px solid rgba(150, 133, 198, 0.7);
  outline-offset: 1px;
}

@keyframes catPatrol {
  0%,
  100% {
    top: 96px;
  }
  50% {
    top: calc(100vh - 230px);
  }
}

@keyframes catHop {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-10px);
  }
}

@keyframes catWobble {
  0%,
  100% {
    rotate: -2deg;
  }
  50% {
    rotate: 2deg;
  }
}

@keyframes catRestBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

@keyframes catRestFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes zzzRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.86);
  }
  24% {
    opacity: 0.9;
  }
  82% {
    opacity: 0;
    transform: translate3d(-10px, -24px, 0) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-12px, -28px, 0) scale(1.12);
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(238, 232, 252, 0.95);
  color: #66588d;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  width: fit-content;
  max-width: min(92vw, 760px);
  line-height: 1.62;
  text-align: left;
  white-space: pre-line;
  font-size: 0.92rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 40;
  pointer-events: none;
  box-shadow: 0 12px 24px rgba(122, 108, 164, 0.2);
  backdrop-filter: blur(6px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cat-chat-pop {
  position: fixed;
  --chat-arrow-y: 28px;
  left: 0;
  top: 0;
  z-index: 48;
  width: min(360px, 76vw);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 253, 247, 0.95);
  box-shadow: 0 14px 28px rgba(104, 90, 147, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
  backdrop-filter: blur(8px);
}

.cat-chat-pop::after {
  content: "";
  position: absolute;
  top: var(--chat-arrow-y);
  width: 12px;
  height: 12px;
  background: rgba(255, 253, 247, 0.95);
  transform: translateY(-50%) rotate(45deg);
}

.cat-chat-pop.from-left-cat::after {
  left: -6px;
  border-left: 1px solid rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
}

.cat-chat-pop.from-right-cat::after {
  right: -6px;
  border-right: 1px solid rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.76);
}

.cat-chat-pop.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cat-chat-pop.typing .cat-chat-msg::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.92em;
  margin-left: 2px;
  vertical-align: -1px;
  background: rgba(104, 88, 142, 0.72);
  animation: chatCaretBlink 0.8s steps(1) infinite;
}

.cat-chat-title {
  margin: 0 0 7px;
  color: #6d5f97;
  font-size: 0.8rem;
  font-weight: 700;
}

.cat-chat-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: flex-start;
}

.cat-chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  color: #fffef8;
  background: linear-gradient(140deg, #ae99de, #f0b9d5);
  box-shadow: 0 5px 10px rgba(142, 124, 187, 0.3);
}

.cat-chat-msg {
  margin: 0;
  color: #5e4f84;
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre-line;
  word-break: break-word;
}

@keyframes chatCaretBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) and (min-width: 981px) {
  .journey-side-notes {
    width: min(180px, 18vw);
    padding: 8px 10px;
  }

  .journey-side-note {
    font-size: 0.7rem;
  }

  .journey-year-mark {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .logo {
    order: 1;
  }

  .top-nav {
    order: 2;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 3px 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-link {
    padding: 7px 1px 8px;
    font-size: 0.92rem;
  }

  .music-tools {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .track-switch {
    height: 32px;
  }

  .music-float-btn {
    right: 10px;
    top: 132px;
    gap: 6px;
    padding: 6px 9px 6px 6px;
  }

  .music-float-disc {
    width: 32px;
    height: 32px;
    font-size: 0.94rem;
  }

  .music-float-text {
    font-size: 0.72rem;
  }

  .home-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(1rem, 4.4vw, 1.3rem);
    white-space: normal;
  }

  .name-main {
    font-size: clamp(1.96rem, 9.2vw, 2.86rem);
    white-space: normal;
  }

  .home-clouds {
    width: 100%;
    margin-bottom: 10px;
    padding: 0 0 6px;
  }

  .home-cloud-track {
    gap: 22px;
    animation-duration: 26s;
  }

  .cloud-bubble {
    font-size: 0.86rem;
  }

  .cloud-bubble::after {
    margin-left: 12px;
  }

  .hero-mini-stack {
    width: min(100%, 430px);
    justify-self: start;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 0;
    gap: 8px;
    margin-top: 10px;
  }

  .mini-card {
    width: calc((100% - 16px) / 3);
    max-width: 132px;
  }

  .name-main {
    margin-bottom: clamp(22px, 4.8vw, 34px);
  }

  .timeline-rich,
  .career-grid,
  .project-grid,
  .blindbox-grid,
  .future-map-rich,
  .future-map {
    grid-template-columns: 1fr;
  }

  .present-top-cards,
  .present-life-social,
  .social-phone-grid {
    grid-template-columns: 1fr;
  }

  .easter-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "unlock"
      "blindbox"
      "rant";
  }

  .game-zone {
    padding: 14px;
  }

  .present-horizontal-card {
    min-height: auto;
  }

  .present-state-card,
  .present-personality-card {
    transform: none;
  }

  .present-strip-card {
    flex-basis: clamp(168px, 58vw, 232px);
  }

  .life-story-list li {
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .life-status-box {
    margin-top: 12px;
    padding: 10px;
  }

  .life-status-pill {
    font-size: 0.86rem;
    padding: 5px 10px;
  }

  .life-status-note {
    font-size: 0.86rem;
    line-height: 1.68;
  }

  .future-stage {
    padding: 10px;
    border-radius: 20px;
  }

  .future-hero {
    padding: 8px;
    border-radius: 20px;
  }

  .future-hero img {
    aspect-ratio: 4 / 5;
    max-height: none;
    min-height: 420px;
  }

  .future-hero figcaption {
    bottom: 14px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .future-danmu {
    font-size: 0.62rem;
    padding: 4px 8px;
    max-width: min(47vw, 180px);
    text-align: center;
    white-space: normal;
    line-height: 1.28;
    backdrop-filter: blur(4px);
  }

  .future-danmu-layer .future-danmu:nth-child(3n + 1) {
    --depth-scale: 1.04;
    padding: 4px 9px;
  }

  .future-danmu-layer .future-danmu:nth-child(3n) {
    --depth-scale: 0.9;
    --depth-blur: 0.5px;
    font-size: 0.58rem;
  }

  .future-danmu-layer .future-danmu:nth-child(n + 19) {
    display: none;
  }

  .past-heading-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 6px;
  }

  .present-heading-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 6px;
  }

  .future-heading-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 6px;
  }

  .past-whispers,
  .present-whispers,
  .future-whispers {
    justify-self: start;
  }

  .whisper-line,
  .present-whispers .whisper-line,
  .future-whispers .whisper-line {
    justify-self: start;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .journey-track {
    gap: 12px;
    padding: 8px 0 8px 26px;
  }

  .journey-track::before {
    left: 10px;
    transform: none;
  }

  .journey-card {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    grid-template-columns: 1fr;
  }

  .journey-year-mark,
  .journey-side-notes {
    display: none;
  }

  .journey-card::before {
    left: -23px;
    right: auto;
  }

  .journey-card:nth-child(odd)::before,
  .journey-card:nth-child(even)::before {
    left: -23px;
    right: auto;
  }

  .journey-card::after {
    left: -12px;
    right: auto;
    width: 12px;
  }

  .journey-card:nth-child(odd)::after,
  .journey-card:nth-child(even)::after {
    left: -12px;
    right: auto;
  }

  .journey-tap-tip {
    top: -9px;
    right: 8px;
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .journey-cloud-modal {
    padding: 14px;
    border-radius: 22px;
  }

  .journey-cloud-body {
    grid-template-columns: 1fr;
  }

  .journey-cloud-visual img {
    min-height: 120px;
  }

  .cat-friend-left {
    left: 6px;
  }

  .cat-friend-right {
    right: 8px;
    bottom: 18px;
  }

  .cat-friend-left .cat-friend-inner {
    width: 84px;
  }

  .cat-friend-right .cat-friend-inner {
    width: 84px;
  }

  .cat-sleep-zzz {
    right: 12px;
    top: -4px;
    scale: 0.9;
  }

  .cat-note {
    font-size: 0.64rem;
    padding: 3px 8px;
  }

  .cat-note-left {
    font-size: 0.62rem;
    padding: 4px 8px;
  }

  .cat-note-right {
    padding: 4px 8px;
    gap: 1px;
  }

  .cat-note-right span:last-child {
    font-size: 0.62rem;
  }

  .toast {
    bottom: 14px;
    font-size: 0.8rem;
    padding: 8px 10px;
    border-radius: 12px;
    max-width: 94vw;
  }

  .cat-chat-pop {
    width: min(320px, 72vw);
    padding: 8px 10px;
  }

  .cat-chat-title {
    font-size: 0.74rem;
  }

  .cat-chat-msg {
    font-size: 0.76rem;
    line-height: 1.58;
  }

  .tag-modal {
    padding: 14px;
  }

  .chip-tag::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .music-float-btn {
    top: 136px;
  }

  .resume-actions {
    grid-template-columns: 1fr;
  }

  .resume-actions a:last-child {
    grid-column: auto;
  }
}

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

  .chip-tag {
    animation: none;
  }

  .home-cloud-track {
    animation: none !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  .chip-guidance {
    animation: none;
  }

  .track-right,
  .track-left {
    animation: none !important;
  }

  .whisper-line,
  .journey-tap-tip {
    animation: none !important;
  }

  .future-hero img,
  .future-danmu,
  .petal,
  .hair-wisp {
    animation: none !important;
  }

  .hero-poster,
  .hero-mini-stack,
  .cat-friend,
  .cat-friend-inner,
  .cat-sleep-zzz span,
  .cat-chat-pop,
  .name-main::before,
  .name-main::after {
    animation: none !important;
  }
}
