:root {
  --ink: #f2efe0;
  --muted: rgba(242, 239, 224, 0.64);
  --paper: rgba(242, 239, 224, 0.92);
  --night: #071a22;
  --deep-green: #0c3f3e;
  --teal: #3aa6a1;
  --cyan: #b5f3f1;
  --yellow: #f5d84a;
  --lemon: #f4d63b;
  --line: rgba(242, 239, 224, 0.14);
  --glass: rgba(5, 26, 32, 0.58);
  --soft-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.18);
  /* 字体：英文 Inter（精准现代）+ Cormorant Garamond（优雅衬线标题）+ 中文 Noto */
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-display: "Bellamy Stevenson", "Cormorant Garamond", "Noto Serif SC", serif;
  --font-mono: "Consolas", "SF Mono", "Cascadia Code", monospace;
  /* 过渡曲线 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.15, 1);
}

@font-face {
  font-family: "Bellamy Stevenson";
  src: url("./assets/fonts/Bellamy-Stevenson-2.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(245, 216, 74, 0.12), transparent 24rem),
    linear-gradient(135deg, #05121a 0%, #092c2b 48%, #102e3c 100%);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 12rem 1fr 11rem;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(4, 13, 17, 0.82) 0%, rgba(4, 13, 17, 0.56) 60%, rgba(4, 13, 17, 0) 100%);
  backdrop-filter: blur(0px);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  width: max-content;
  text-transform: uppercase;
}

.brand-mark span {
  color: var(--yellow);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.section-nav {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.section-nav a {
  position: relative;
  border: 1px solid transparent;
  padding: 0.38rem 0.72rem;
  color: rgba(242, 239, 224, 0.56);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.section-nav a:hover,
.section-nav a.is-active {
  border-color: rgba(245, 216, 74, 0.44);
  color: var(--yellow);
  background: rgba(245, 216, 74, 0.06);
}

.chapter-indicator {
  justify-self: end;
  display: grid;
  gap: 0.08rem;
  text-align: right;
}

.chapter-indicator span {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.chapter-indicator strong {
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.snap-stage {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 216, 74, 0.38) rgba(3, 15, 20, 0.2);
}

.panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(180deg, transparent, black 14%, black 84%, transparent);
  pointer-events: none;
}

.section-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 7.4rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms var(--ease-out-expo), transform 900ms var(--ease-out-expo);
}

.panel.is-active .section-shell {
  opacity: 1;
  transform: translateY(0);
}

/* 为相邻 section-shell 的子元素增加 stagger 感 */
.panel.is-active .section-shell > *:nth-child(1) { transition-delay: 0ms; }
.panel.is-active .section-shell > *:nth-child(2) { transition-delay: 60ms; }
.panel.is-active .section-shell > *:nth-child(3) { transition-delay: 120ms; }
.panel.is-active .section-shell > *:nth-child(4) { transition-delay: 180ms; }

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  align-items: center;
}

.section-intro {
  max-width: 40rem;
}

.section-intro.narrow {
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.88;
}

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

h2 {
  margin-bottom: 1rem;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h3 {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

p {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.35vw, 1.02rem);
  font-weight: 300;
  line-height: 1.92;
  letter-spacing: 0.012em;
}

.hero-panel {
  display: grid;
  place-items: center;
  background: #051219;
}

.hero-bg,
.sunlight-bg,
.internship-card .card-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-position: center;
  background-size: cover;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(3, 9, 13, 0.76), rgba(5, 28, 34, 0.28), rgba(2, 8, 12, 0.76)),
    url("./assets/hero-night-layer.png"),
    url("./assets/hero-main.jpg");
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.04);
  transition: transform 1400ms var(--ease-out-expo), filter 1400ms ease;
}

.hero-panel.is-active .hero-bg {
  transform: scale(1);
  filter: saturate(1.2) contrast(1.06);
}

.film-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 36% 26%, rgba(245, 216, 74, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.5));
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 2rem));
  padding: 2rem 0;
  text-align: center;
  transition: opacity 580ms ease, transform 580ms var(--ease-out-quart), filter 580ms ease;
}

.split-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.05rem, 0.28vw, 0.24rem);
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7.2vw, 6.4rem);
  font-weight: 400;
  line-height: 0.88;
  white-space: nowrap;
  text-shadow:
    0 0 40px rgba(245, 216, 74, 0.18),
    0 0 80px rgba(245, 216, 74, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.48);
}

.split-title span {
  display: inline-block;
  animation: titleAssemble 1000ms var(--ease-out-expo) both;
  animation-delay: calc(var(--i, 0) * 38ms);
}

.split-title span:nth-child(1) { --i: 1; }
.split-title span:nth-child(2) { --i: 7; }
.split-title span:nth-child(3) { --i: 2; }
.split-title span:nth-child(4) { --i: 10; }
.split-title span:nth-child(5) { --i: 4; }
.split-title span:nth-child(6) { --i: 12; }
.split-title span:nth-child(7) { --i: 6; }
.split-title span:nth-child(8) { --i: 14; }
.split-title span:nth-child(9) { --i: 3; }
.split-title span:nth-child(10) { --i: 15; }
.split-title span:nth-child(11) { --i: 5; }
.split-title span:nth-child(12) { --i: 11; }
.split-title span:nth-child(13) { --i: 8; }
.split-title span:nth-child(14) { --i: 16; }
.split-title span:nth-child(15) { --i: 9; }
.split-title span:nth-child(16) { --i: 13; }
.split-title span:nth-child(17) { --i: 17; }

.hero-line {
  margin: 1.2rem auto 2rem;
  color: rgba(242, 239, 224, 0.74);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.start-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  min-height: 2.8rem;
  border: 1px solid rgba(245, 216, 74, 0.6);
  color: var(--yellow);
  background: rgba(3, 16, 18, 0.28);
  box-shadow: 0 0 0 1px rgba(245, 216, 74, 0.06) inset;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 180ms ease, color 200ms ease, background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.start-button:hover,
.ghost-link:hover {
  color: #051219;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 32px rgba(245, 216, 74, 0.22), 0 4px 16px rgba(0, 0, 0, 0.24);
  transform: translateY(-0.1rem);
}

.start-button:active,
.ghost-link:active {
  transform: translateY(0.06rem) scale(0.98);
}

.start-button:focus-visible,
.ghost-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.profile-reveal {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(47rem, calc(100% - 2rem));
  border: 1px solid rgba(245, 216, 74, 0.22);
  padding: 0;
  background: rgba(4, 18, 22, 0.72);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 216, 74, 0.06) inset;
  backdrop-filter: blur(20px) saturate(1.1);
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.97);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
  pointer-events: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(12rem, 0.68fr) minmax(0, 1fr);
}

.profile-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 216, 74, 0.14);
  pointer-events: none;
  z-index: 10;
}

body.is-started .profile-reveal,
.profile-reveal.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

body.is-started .hero-copy {
  opacity: 0;
  transform: translateY(-1.4rem) scale(0.95);
  filter: blur(10px);
  pointer-events: none;
}

.reveal-label {
  margin-bottom: 0.4rem;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.86;
}

.profile-reveal-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(90deg, rgba(4, 22, 25, 0.04), rgba(4, 22, 25, 0.68));
}

.profile-reveal h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.profile-role {
  margin-bottom: 0.1rem;
  color: rgba(242, 239, 224, 0.86);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.portrait-stage {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 216, 74, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(181, 243, 241, 0.08), rgba(4, 22, 25, 0.1)),
    radial-gradient(circle at 48% 40%, rgba(245, 216, 74, 0.14), transparent 8rem);
  border-right: 1px solid rgba(245, 216, 74, 0.16);
}

.portrait-stage::before {
  content: "CHARACTER FILE";
  position: absolute;
  z-index: 3;
  bottom: 0.9rem;
  left: 0.9rem;
  border: 1px solid rgba(245, 216, 74, 0.28);
  padding: 0.26rem 0.44rem;
  color: rgba(245, 216, 74, 0.76);
  background: rgba(4, 22, 25, 0.52);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.portrait-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 22, 25, 0.32) 0%, transparent 16%, transparent 74%, rgba(4, 22, 25, 0.62) 100%),
    linear-gradient(90deg, transparent 0%, rgba(4, 22, 25, 0.08) 60%, rgba(4, 22, 25, 0.52) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, transparent 0 42%, rgba(245, 216, 74, 0.14) 42% 42.4%, transparent 42.4% 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.portrait-stage img {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(18rem, 36vw);
  max-width: none;
  height: auto;
  filter: saturate(0.92) contrast(1.02) drop-shadow(0 20px 26px rgba(0, 0, 0, 0.3));
  transform: translate(-50%, -43%) scale(1.06);
  opacity: 0.96;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}

.quick-tags span {
  border: 1px solid rgba(242, 239, 224, 0.18);
  padding: 0.3rem 0.52rem;
  color: rgba(242, 239, 224, 0.76);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.profile-panel {
  background:
    radial-gradient(circle at 17% 26%, rgba(245, 216, 74, 0.1), transparent 18rem),
    radial-gradient(circle at 84% 22%, rgba(181, 243, 241, 0.09), transparent 22rem),
    linear-gradient(135deg, rgba(3, 12, 18, 0.86), rgba(6, 38, 40, 0.92));
}

.profile-page-shell {
  padding-top: clamp(5.25rem, 7vw, 6.35rem);
  padding-bottom: clamp(1.8rem, 3vw, 2.4rem);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}

.profile-page-head {
  max-width: 58rem;
}

.profile-page-head h2 {
  max-width: 54rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.72rem, 3.8vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.profile-page-head p {
  max-width: 52rem;
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  line-height: 1.68;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  align-items: stretch;
}

.profile-status,
.profile-lanes article,
.profile-route a {
  border: 1px solid rgba(242, 239, 224, 0.1);
  background: rgba(4, 22, 28, 0.52);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px);
}

.profile-status {
  position: relative;
  min-height: 100%;
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}

.profile-status::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 54%, rgba(245, 216, 74, 0.14) 54% 54.3%, transparent 54.3% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 6px);
  opacity: 0.72;
  pointer-events: none;
}

.status-kicker {
  position: relative;
  margin-bottom: 1.6rem;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.86;
}

.profile-status h3 {
  position: relative;
  margin-bottom: 0.3rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.profile-status p:not(.status-kicker) {
  position: relative;
  margin-bottom: 1rem;
  color: rgba(242, 239, 224, 0.78);
  font-size: clamp(0.82rem, 1.1vw, 0.94rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.status-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.status-tags span {
  border: 1px solid rgba(245, 216, 74, 0.18);
  padding: 0.32rem 0.52rem;
  color: rgba(242, 239, 224, 0.76);
  background: rgba(245, 216, 74, 0.05);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.profile-lanes {
  display: grid;
  gap: 0.68rem;
}

.profile-lanes article {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(8rem, 0.34fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: clamp(0.78rem, 1.55vw, 1.05rem);
}

.profile-lanes article span {
  color: var(--yellow);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.88;
}

.profile-lanes h3 {
  margin-bottom: 0;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.5vw, 1.28rem);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.profile-lanes p {
  margin-bottom: 0;
  font-size: clamp(0.82rem, 1.08vw, 0.92rem);
  font-weight: 300;
  line-height: 1.68;
}

.profile-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-route a {
  display: grid;
  min-height: 4.35rem;
  padding: 0.72rem 0.88rem;
  align-content: space-between;
  transition: transform 200ms var(--ease-out-quart), border-color 200ms ease, background 200ms ease;
}

.profile-route a:hover,
.profile-route a:focus-visible {
  border-color: rgba(245, 216, 74, 0.46);
  background: rgba(245, 216, 74, 0.06);
  transform: translateY(-0.14rem);
  outline: none;
}

.profile-route strong {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
}

.profile-route span {
  color: rgba(242, 239, 224, 0.66);
  font-size: 0.86rem;
  font-weight: 300;
}

.archive-card,
.method-grid article,
.lab-strip article,
.note-terminal {
  border: 1px solid rgba(242, 239, 224, 0.1);
  background: rgba(4, 22, 28, 0.52);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.profile-card {
  padding: clamp(1rem, 3vw, 2rem);
}

.profile-card dl,
.profile-card dt,
.profile-card dd {
  margin: 0;
}

.profile-card dl {
  display: grid;
  gap: 1rem;
}

.profile-card div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.profile-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-card dt {
  color: var(--yellow);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.profile-card dd {
  color: var(--paper);
  line-height: 1.7;
}

.music-panel {
  overflow-anchor: none;
  background: #e8ead8;
  color: #143235;
}

.music-panel .section-shell {
  color: #143235;
  padding: 5.4rem 0 1.35rem;
}

.music-panel .sunlight-bg {
  background-image:
    linear-gradient(180deg, rgba(2, 16, 22, 0.12) 0%, rgba(243, 244, 222, 0.6) 24%, rgba(243, 244, 222, 0.82) 100%),
    linear-gradient(90deg, rgba(243, 244, 222, 0.86), rgba(218, 240, 228, 0.42)),
    url("./assets/sunlight.jpg");
  filter: saturate(1.06) brightness(1.01);
  transform: scale(1.04);
  transition: transform 1400ms var(--ease-out-expo);
}

.music-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 18, 24, 0.22) 0%, rgba(5, 18, 24, 0) 18%),
    radial-gradient(circle at 78% 18%, rgba(245, 216, 74, 0.22), transparent 18rem),
    radial-gradient(circle at 22% 78%, rgba(65, 164, 139, 0.1), transparent 20rem);
}

.music-panel.is-active .sunlight-bg {
  transform: scale(1);
}

.music-panel .eyebrow,
.music-panel h2,
.music-panel h3 {
  color: #173f40;
}

.music-panel p {
  color: rgba(16, 47, 49, 0.72);
}

.music-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: clamp(1rem, 2.6vw, 1.8rem);
}

.music-copy {
  display: grid;
  grid-template-columns: minmax(34rem, 0.86fr) minmax(25rem, 1fr);
  align-items: end;
  gap: 0.55rem clamp(1.1rem, 3vw, 2rem);
  max-width: 70rem;
}

.music-copy .eyebrow {
  grid-column: 1 / -1;
}

.music-copy h2 {
  grid-column: 1;
  max-width: 30rem;
  font-size: clamp(1.52rem, 1.95vw, 2rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.music-copy > p:not(.eyebrow) {
  grid-column: 2;
  max-width: 66rem;
  font-size: clamp(0.84rem, 1.12vw, 0.96rem);
  line-height: 1.78;
}

.music-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.music-stats span {
  border: 1px solid rgba(20, 76, 74, 0.12);
  padding: 0.44rem 0.58rem;
  color: rgba(16, 47, 49, 0.66);
  background: rgba(255, 255, 246, 0.48);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 300;
}

.music-stats strong {
  display: block;
  color: #173f40;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.65vw, 1.38rem);
  font-weight: 500;
}

.music-console {
  --music-frame-height: clamp(21rem, 33vw, 25rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.62fr) minmax(31rem, 1.38fr);
  align-items: stretch;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
  margin-top: 0.15rem;
  min-height: 0;
  min-width: 0;
  perspective: 1000px;
}

.scrapbook-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.8vw, 1rem);
  height: var(--music-frame-height);
  min-height: 0;
  min-width: 0;
  border: 1px solid rgba(20, 76, 74, 0.12);
  border-radius: 10px;
  padding: clamp(0.58rem, 1.35vw, 0.9rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 246, 0.58), rgba(210, 232, 208, 0.32)),
    repeating-linear-gradient(90deg, rgba(20, 76, 74, 0.04) 0 1px, transparent 1px 2.35rem),
    repeating-linear-gradient(180deg, rgba(20, 76, 74, 0.035) 0 1px, transparent 1px 2.35rem);
  box-shadow:
    0 32px 72px -52px rgba(20, 76, 74, 0.64),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.scrapbook-board::before,
.scrapbook-board::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.scrapbook-board::before {
  inset: 0.85rem;
  border: 1px dashed rgba(20, 76, 74, 0.12);
  border-radius: 6px;
}

.scrapbook-board::after {
  left: 5%;
  right: 5%;
  bottom: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 76, 74, 0.22), transparent);
}

.scrap-page {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(5.65rem, 9.4vw, 7.75rem);
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, rgba(20, 76, 74, 0.18));
  border-radius: 6px;
  padding: clamp(0.56rem, 1.1vw, 0.78rem);
  overflow: hidden;
  color: #173f40;
  text-align: left;
  background:
    linear-gradient(148deg, color-mix(in srgb, var(--accent) 20%, rgba(255, 255, 246, 0.94)), rgba(255, 255, 246, 0.76) 58%, color-mix(in srgb, var(--accent) 14%, rgba(178, 218, 198, 0.48))),
    repeating-linear-gradient(180deg, rgba(20, 76, 74, 0.04) 0 1px, transparent 1px 1.55rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 246, 0.82),
    0 20px 36px -28px rgba(20, 76, 74, 0.64),
    0 1px 3px rgba(20, 76, 74, 0.08);
  cursor: pointer;
  transform: rotate(var(--page-rotate)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transform-style: preserve-3d;
  transition:
    transform 380ms var(--ease-out-expo),
    border-color 240ms ease,
    box-shadow 240ms ease,
    filter 240ms ease,
    opacity 240ms ease;
}

.scrap-page::before,
.scrap-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.scrap-page::before {
  left: 50%;
  top: -0.55rem;
  width: 3.25rem;
  height: 0.88rem;
  background: rgba(255, 246, 166, 0.48);
  border: 1px solid rgba(20, 76, 74, 0.08);
  transform: translateX(-50%) rotate(calc(var(--page-rotate) * -0.65));
  backdrop-filter: blur(3px);
}

.scrap-page::after {
  right: -0.5rem;
  bottom: -0.5rem;
  width: 3.2rem;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 76, 74, 0.1);
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 246, 0.7) 50%),
    color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 246, 0.66));
  opacity: 0.72;
  transform: rotate(4deg);
}

.scrap-page span,
.scrap-page strong,
.scrap-page em,
.scrap-page small {
  position: relative;
  z-index: 1;
  display: block;
}

.scrap-page .scrap-index {
  position: absolute;
  left: clamp(0.72rem, 1.5vw, 1rem);
  top: clamp(0.62rem, 1.4vw, 0.9rem);
  color: color-mix(in srgb, var(--accent) 65%, #173f40);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.9;
}

.scrap-page strong {
  font-family: var(--font-serif);
  font-size: clamp(0.96rem, 1.4vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.scrap-page em {
  margin-top: 0.2rem;
  color: rgba(20, 76, 74, 0.54);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scrap-page small {
  margin-top: 0.36rem;
  color: rgba(20, 76, 74, 0.6);
  font-size: 0.66rem;
  font-weight: 300;
}

.scrap-page:hover,
.scrap-page:focus-visible {
  outline: none;
  filter: saturate(1.06) brightness(1.01);
  transform: rotate(var(--page-rotate)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-0.3rem);
}

.scrap-page.is-active {
  z-index: 3;
  border-color: color-mix(in srgb, var(--accent) 68%, #ffe13c);
  filter: saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 246, 0.82),
    0 32px 56px -28px rgba(20, 76, 74, 0.82),
    0 0 0 1px rgba(245, 216, 74, 0.18);
  transform: rotate(var(--page-rotate)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-0.6rem) scale(1.04);
}

.music-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(15rem, 0.98fr);
  gap: clamp(1rem, 2.3vw, 1.65rem);
  /* 固定高度，以 04「账号主页」状态（正文最长 + 4 张缩略图）为基准 */
  height: var(--music-frame-height);
  min-width: 0;
  align-items: stretch;
  border: 1px solid rgba(20, 76, 74, 0.13);
  border-radius: 8px;
  padding: clamp(1.05rem, 2.35vw, 1.85rem);
  background:
    linear-gradient(140deg, rgba(255, 255, 248, 0.96), rgba(238, 246, 226, 0.82)),
    repeating-linear-gradient(180deg, transparent 0 2.25rem, rgba(20, 76, 74, 0.04) 2.28rem 2.32rem);
  backdrop-filter: blur(16px) saturate(1.04);
  box-shadow:
    0 28px 72px -52px rgba(20, 76, 74, 0.64),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transform-origin: left center;
  transition: opacity 200ms ease, transform 240ms ease, filter 200ms ease;
}

.music-card.has-no-media {
  grid-template-columns: minmax(0, 1fr);
}

.music-card.has-no-media .music-card-copy {
  max-width: 40rem;
}

.music-card::before {
  content: "";
  position: absolute;
  inset: 0.72rem;
  border: 1px solid rgba(20, 76, 74, 0.08);
  pointer-events: none;
}

.music-card::after {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 16%;
  width: 1.7rem;
  height: 58%;
  border: 1px solid rgba(20, 76, 74, 0.1);
  background: rgba(255, 246, 166, 0.42);
  transform: rotate(-1.4deg);
  pointer-events: none;
}

.music-card.is-changing {
  opacity: 0.48;
  transform: translateX(0.22rem) rotate(0.45deg);
  filter: blur(0.2px);
}

.music-card-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  /* 文字列垂直居中；内容过长时可滚动，不撑破固定高度 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: 0.45rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 76, 74, 0.24) transparent;
}

.music-card-copy::-webkit-scrollbar {
  width: 3px;
}

.music-card-copy::-webkit-scrollbar-thumb {
  background: rgba(20, 76, 74, 0.2);
  border-radius: 2px;
}

.music-card h3 {
  margin-bottom: 0.72rem;
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.music-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.music-card li {
  border: 1px solid rgba(20, 76, 74, 0.14);
  padding: 0.26rem 0.48rem;
  color: rgba(20, 76, 74, 0.65);
  background: rgba(181, 243, 241, 0.14);
  font-size: 0.72rem;
  font-weight: 300;
}

.music-lab-notes {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.05rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 76, 74, 0.1);
}

.music-lab-notes[hidden] {
  display: none;
}

.music-lab-notes span {
  color: rgba(20, 76, 74, 0.64);
  font-size: 0.72rem;
}

.music-media-gallery {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  /* 缩小间距，让图片与缩略图更紧凑 */
  gap: 0.38rem;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.music-media-gallery[hidden] {
  display: none;
}

.music-media-stage {
  position: relative;
  /* flex 居中：图片在容器内垂直水平都居中，消除偏上感 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 76, 74, 0.13);
  border-radius: 5px;
  color: rgba(20, 76, 74, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 250, 0.92), rgba(214, 236, 216, 0.58)),
    repeating-linear-gradient(180deg, rgba(20, 76, 74, 0.035) 0 1px, transparent 1px 1.2rem);
  box-shadow: 0 18px 40px -30px rgba(20, 76, 74, 0.76);
}

.music-media-stage img,
.music-media-stage video {
  display: block;
  /* 按真实比例缩放，完整落在框内并居中；竖图不会被拉伸或裁切 */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: rgba(244, 248, 233, 0.72);
  opacity: 1;
  transition: opacity 220ms ease;
}

.music-media-stage.is-media-loading img,
.music-media-stage.is-media-loading video {
  opacity: 0;
}

.music-media-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(20, 76, 74, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 250, 0.86), rgba(214, 236, 216, 0.72)),
    repeating-linear-gradient(180deg, rgba(20, 76, 74, 0.035) 0 1px, transparent 1px 1.2rem);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 视频需要占满宽度以便原生控制条可用 */
.music-media-stage video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background: #eef4df;
}

.music-media-stage figcaption {
  position: absolute;
  z-index: 2;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.72rem;
  display: grid;
  gap: 0.14rem;
  width: fit-content;
  max-width: calc(100% - 1.44rem);
  border: 1px solid rgba(20, 76, 74, 0.12);
  padding: 0.42rem 0.55rem;
  background: rgba(255, 255, 246, 0.76);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.music-media-stage.is-video figcaption {
  top: 0.72rem;
  bottom: auto;
}

.music-media-stage figcaption span {
  color: rgba(20, 76, 74, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-media-stage figcaption strong {
  color: #173f40;
  font-size: 0.78rem;
  font-weight: 500;
}

.music-media-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.8rem, 1fr));
  gap: 0.42rem;
  min-width: 0;
  max-width: 100%;
}

/* 单张图时隐藏但保留占位高度，使 4 个板块卡片高度一致 */
.music-media-thumbs[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

/* 占位时用一个等高的空块撑起行高 */
.music-media-thumbs[hidden]::before {
  content: "";
  display: block;
  height: calc(clamp(2.9rem, 4.4vw, 4.2rem) + 0.28rem + 0.64rem + 0.52rem);
}

.music-media-thumb {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  border: 1px solid rgba(20, 76, 74, 0.12);
  border-radius: 4px;
  padding: 0.26rem;
  color: rgba(20, 76, 74, 0.78);
  background: rgba(255, 255, 246, 0.64);
  cursor: pointer;
  transition: transform 220ms ease, border-color 180ms ease, background 180ms ease;
}

.music-media-thumb img,
.music-media-thumb-video {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(2.9rem, 4.4vw, 4.2rem);
  border: 1px solid rgba(20, 76, 74, 0.08);
  /* 缩略图统一 contain，竖图按比例居中不裁切 */
  object-fit: contain;
  object-position: center;
  background: rgba(219, 236, 213, 0.72);
}

.music-media-thumb-video {
  color: rgba(20, 76, 74, 0.64);
  font-family: var(--font-serif);
  font-size: 0.78rem;
}

.music-media-thumb span {
  font-size: 0.64rem;
  text-align: center;
}

.music-media-thumb:hover,
.music-media-thumb:focus-visible,
.music-media-thumb.is-active {
  outline: none;
  border-color: rgba(20, 76, 74, 0.28);
  background: rgba(255, 255, 246, 0.88);
  transform: translateY(-0.12rem);
}

.archive-panel {
  background: #071a22;
}

body[data-theme="bai"] .archive-panel {
  background: #130b12;
}

body[data-theme="kuro"] .archive-panel {
  background: #061521;
}

.archive-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image: url("./assets/archive-default.jpg");
  background-position: center;
  background-size: cover;
}

.archive-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3, 9, 13, 0.82) 0%, rgba(3, 9, 13, 0.62) 18%, rgba(3, 9, 13, 0.28) 42%, rgba(3, 9, 13, 0.04) 72%),
    linear-gradient(90deg, rgba(3, 9, 13, 0.34), rgba(3, 14, 18, 0.08) 48%, rgba(3, 9, 13, 0.34)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 28rem),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.archive-scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.12) contrast(1.04) brightness(1.05);
  transform: scale(1.035);
  transition: opacity 620ms ease, transform 1100ms cubic-bezier(0.19, 1, 0.22, 1), filter 620ms ease;
}

.archive-scene-layer.bai {
  background-image: url("./assets/archive-bai-pc.jpg");
}

.archive-scene-layer.kuro {
  background-image: url("./assets/archive-kuro-pc.jpg");
}

body[data-theme="bai"] .archive-scene-layer.bai,
body[data-theme="kuro"] .archive-scene-layer.kuro,
body[data-archive-detail="bai"] .archive-scene-layer.bai,
body[data-archive-detail="kuro"] .archive-scene-layer.kuro {
  opacity: 0.96;
  transform: scale(1);
}

.archive-heading {
  position: relative;
  z-index: 2;
  max-width: 58rem;
}

.archive-panel .section-shell {
  padding-top: clamp(5.4rem, 7vw, 6.4rem);
  padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
}

.archive-heading h2 {
  max-width: 52rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.78rem, 4vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.archive-heading p {
  max-width: 42rem;
  font-size: clamp(0.86rem, 1.18vw, 0.96rem);
  font-weight: 300;
  line-height: 1.68;
}

.internship-switch {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  perspective: 1100px;
}

.internship-card {
  position: relative;
  isolation: isolate;
  min-height: 21rem;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 224, 0.14);
  padding: clamp(1rem, 3vw, 1.6rem);
  background: rgba(2, 12, 18, 0.5);
  cursor: pointer;
  transform:
    translateY(var(--float-y, 0))
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg))
    scale(var(--card-scale, 1));
  transform-style: preserve-3d;
  transition: transform 280ms var(--ease-out-quart), border-color 280ms ease, opacity 280ms ease, filter 280ms ease;
  box-shadow: 0 18px 48px -20px rgba(0, 0, 0, 0.78);
}

.internship-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  pointer-events: none;
  opacity: 0.52;
  background-size: 260% 260%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 300ms ease, filter 300ms ease, padding 300ms ease;
}

.internship-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.76)),
    linear-gradient(90deg, rgba(0,0,0,0.62), transparent 62%);
}

.internship-card .card-bg {
  z-index: -2;
  opacity: 0.64;
  transform: scale(1.055);
  transition: opacity 420ms ease, transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.internship-card > :not(.card-bg):not(.game-logo) {
  position: relative;
  z-index: 1;
}

.game-logo {
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 2.5vw, 1.6rem);
  top: clamp(1rem, 2.4vw, 1.5rem);
  display: grid;
  justify-items: end;
  max-width: min(34%, 12rem);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.32rem);
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.19, 1, 0.22, 1), filter 260ms ease;
}

.game-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
}

.bai-logo img {
  width: clamp(7rem, 15vw, 10rem);
}

.kuro-logo img {
  width: clamp(7.6rem, 16vw, 10.8rem);
}

.internship-card:hover .game-logo,
.internship-card.is-locked .game-logo,
body[data-theme="bai"] .internship-card.bai .game-logo,
body[data-theme="kuro"] .internship-card.kuro .game-logo {
  opacity: 0.86;
  transform: translateY(0);
  filter: saturate(1.08);
}

.internship-card.bai .card-bg {
  background-image: url("./assets/bai-bg.jpg");
}

.internship-card.bai {
  border-color: rgba(92, 6, 18, 0.58);
}

.internship-card.bai::before {
  background-image:
    linear-gradient(115deg,
      rgba(28, 0, 7, 0.28) 0%,
      rgba(62, 3, 14, 0.78) 16%,
      rgba(103, 7, 24, 0.95) 30%,
      rgba(40, 0, 9, 0.34) 48%,
      rgba(86, 4, 19, 0.92) 64%,
      rgba(18, 0, 5, 0.22) 78%,
      rgba(66, 3, 16, 0.82) 100%);
  animation: baiBorderFlow 14s linear infinite;
  filter: drop-shadow(0 0 10px rgba(70, 0, 16, 0.36));
}

.internship-card.kuro .card-bg {
  background-image: url("./assets/kuro-card-bg.png");
  background-position: center;
}

.internship-card.kuro {
  border-color: rgba(127, 166, 184, 0.4);
}

.internship-card.kuro::before {
  background-image:
    linear-gradient(135deg,
      rgba(211, 238, 244, 0.72) 0%,
      rgba(86, 134, 156, 0.58) 28%,
      rgba(24, 45, 60, 0.24) 48%,
      rgba(155, 209, 226, 0.7) 72%,
      rgba(58, 95, 118, 0.48) 100%);
  animation: kuroSignFlicker 7.2s linear infinite;
  filter:
    drop-shadow(0 0 7px rgba(104, 180, 215, 0.26))
    drop-shadow(0 0 18px rgba(104, 180, 215, 0.12));
}

.internship-card.kuro:hover::before,
.internship-card.kuro.is-locked::before {
  animation:
    kuroHoverGlitch 680ms steps(2, end) 1,
    kuroSignFlicker 4.8s linear infinite 680ms;
}

.internship-card:hover,
.internship-card.is-locked {
  border-color: rgba(245, 216, 74, 0.64);
  --float-y: -0.4rem;
  --card-scale: 1.014;
}

.internship-card:hover::before,
.internship-card.is-locked::before {
  opacity: 0.96;
  padding: 2px;
}

.internship-card.bai:hover,
.internship-card.bai.is-locked {
  border-color: rgba(82, 4, 19, 0.92);
  box-shadow:
    0 28px 32px -24px rgba(0, 0, 0, 0.9),
    0 18px 60px rgba(0, 0, 0, 0.32),
    0 0 36px rgba(58, 0, 13, 0.28);
}

.internship-card.kuro:hover,
.internship-card.kuro.is-locked {
  border-color: rgba(157, 213, 232, 0.7);
  box-shadow:
    0 28px 32px -24px rgba(0, 0, 0, 0.9),
    0 18px 60px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(105, 171, 202, 0.18);
}

.internship-card:hover .card-bg,
.internship-card.is-locked .card-bg {
  opacity: 0.8;
  transform: scale(1);
}

.internship-switch:has(.internship-card:hover) .internship-card:not(:hover),
.internship-switch:has(.internship-card.is-locked) .internship-card:not(.is-locked) {
  opacity: 0.72;
  filter: saturate(0.8) brightness(0.84);
  --float-y: 0.18rem;
  --card-scale: 0.992;
}

.internship-card.is-entering {
  z-index: 4;
  border-color: rgba(245, 216, 74, 0.9);
  opacity: 0;
  --float-y: -1rem;
  --card-scale: 1.08;
}

.internship-card h3 {
  max-width: 26rem;
  margin-top: 3.8rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.internship-card p,
.internship-card li {
  color: rgba(242, 239, 224, 0.72);
  font-weight: 300;
  line-height: 1.78;
}

.internship-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.internship-card li {
  border: 1px solid rgba(242, 239, 224, 0.16);
  padding: 0.28rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 300;
}

.archive-detail {
  position: fixed;
  inset: 6.4rem max(1rem, calc((100vw - 1120px) / 2)) 2.2rem;
  z-index: 18;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.988) translateY(0.6rem);
  transition: opacity 360ms var(--ease-out-quart), transform 520ms var(--ease-out-expo);
}

.archive-detail.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

body.is-archive-detail .archive-heading,
body.is-archive-detail .internship-switch {
  opacity: 0;
  transform: translateY(-0.7rem) scale(0.98);
  pointer-events: none;
  transition: opacity 260ms ease, transform 360ms ease;
}

.archive-detail-panel {
  position: relative;
  isolation: isolate;
  display: none;
  min-height: 0;
  border: 1px solid rgba(245, 216, 74, 0.22);
  padding: clamp(1rem, 2.4vw, 1.55rem);
  background: rgba(3, 10, 14, 0.72);
  box-shadow:
    0 28px 40px -24px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(22px) saturate(1.08);
  overflow: hidden;
}

.archive-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  pointer-events: none;
  opacity: 0.9;
  background-size: 260% 260%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.archive-detail-panel > * {
  position: relative;
  z-index: 1;
}

.archive-detail-panel[data-detail-panel="bai"] {
  border-color: rgba(82, 4, 19, 0.94);
  box-shadow:
    0 30px 36px -26px rgba(0, 0, 0, 0.88),
    0 0 34px rgba(58, 0, 13, 0.28),
    var(--soft-shadow);
}

.archive-detail-panel[data-detail-panel="bai"]::before {
  background-image:
    linear-gradient(115deg,
      rgba(28, 0, 7, 0.28) 0%,
      rgba(62, 3, 14, 0.78) 16%,
      rgba(103, 7, 24, 0.95) 30%,
      rgba(40, 0, 9, 0.34) 48%,
      rgba(86, 4, 19, 0.92) 64%,
      rgba(18, 0, 5, 0.22) 78%,
      rgba(66, 3, 16, 0.82) 100%);
  animation: baiBorderFlow 14s linear infinite;
  filter: drop-shadow(0 0 10px rgba(70, 0, 16, 0.34));
}

.archive-detail-panel[data-detail-panel="kuro"] {
  border-color: rgba(157, 213, 232, 0.76);
  box-shadow:
    0 30px 36px -26px rgba(0, 0, 0, 0.88),
    0 0 28px rgba(105, 171, 202, 0.18),
    var(--soft-shadow);
}

.archive-detail-panel[data-detail-panel="kuro"]::before {
  background-image:
    linear-gradient(135deg,
      rgba(211, 238, 244, 0.72) 0%,
      rgba(86, 134, 156, 0.58) 28%,
      rgba(24, 45, 60, 0.24) 48%,
      rgba(155, 209, 226, 0.7) 72%,
      rgba(58, 95, 118, 0.48) 100%);
  animation: kuroSignFlicker 4.8s linear infinite;
  filter:
    drop-shadow(0 0 7px rgba(104, 180, 215, 0.26))
    drop-shadow(0 0 18px rgba(104, 180, 215, 0.12));
}

.archive-detail-panel.is-active {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.75rem;
  overflow-y: auto;
}

.detail-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: rgba(244, 218, 154, 0.86);
  background:
    radial-gradient(circle at 50% 45%, rgba(92, 8, 22, 0.3), transparent 13rem),
    rgba(4, 9, 12, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.detail-loading span {
  border: 1px solid rgba(207, 176, 110, 0.36);
  padding: 0.58rem 0.82rem;
  background: rgba(6, 10, 12, 0.62);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-preview.is-image-loading .detail-loading {
  opacity: 1;
  pointer-events: auto;
}

.detail-back {
  justify-self: start;
  border: 1px solid rgba(242, 239, 224, 0.2);
  padding: 0.42rem 0.68rem;
  color: rgba(242, 239, 224, 0.76);
  background: rgba(2, 12, 18, 0.48);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  transition: 200ms ease;
}

.detail-back:hover,
.detail-back:focus-visible {
  border-color: rgba(245, 216, 74, 0.6);
  color: var(--yellow);
  outline: none;
}

.archive-detail-panel h2 {
  max-width: 54rem;
  margin-bottom: 0.25rem;
  font-size: clamp(1.78rem, 4.2vw, 3.9rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.archive-detail-panel[data-detail-panel="bai"] h2 {
  max-width: none;
  font-size: clamp(1.72rem, 3.2vw, 3.1rem);
  white-space: nowrap;
}

.archive-detail-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  min-height: 0;
}

.archive-detail-body article {
  border: 1px solid rgba(247, 245, 232, 0.17);
  padding: clamp(0.82rem, 1.5vw, 1.05rem);
  background: rgba(2, 15, 20, 0.5);
}

.archive-detail-panel[data-detail-panel="bai"] .archive-detail-body article {
  border-color: rgba(207, 176, 110, 0.32);
  box-shadow: inset 0 0 0 1px rgba(88, 9, 22, 0.28);
  transition: border-color 360ms ease, box-shadow 520ms ease, background 520ms ease, opacity 360ms ease;
}

.archive-detail-panel[data-detail-panel="bai"] .archive-detail-body article.is-timeline-active {
  border-color: rgba(244, 218, 154, 0.6);
  background:
    linear-gradient(180deg, rgba(92, 8, 22, 0.18), rgba(2, 15, 20, 0.58));
  box-shadow:
    inset 0 0 0 1px rgba(244, 218, 154, 0.16),
    inset 0 0 24px rgba(104, 9, 27, 0.16),
    0 0 18px rgba(207, 176, 110, 0.08);
}

.archive-detail-body span {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--yellow);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  opacity: 0.88;
}

.archive-detail-body h3 {
  margin-bottom: 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 400;
}

.archive-detail-body p {
  margin-bottom: 0;
  font-size: clamp(0.82rem, 1.06vw, 0.92rem);
  font-weight: 300;
  line-height: 1.72;
}

.bai-timeline {
  --timeline-focus: 0px;
  display: grid;
  grid-template-columns: minmax(15rem, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-top: 0.55rem;
  border: 1px solid rgba(207, 176, 110, 0.32);
  padding: clamp(0.7rem, 1.6vw, 1rem);
  background:
    linear-gradient(135deg, rgba(78, 5, 20, 0.28), rgba(7, 11, 13, 0.74) 52%, rgba(116, 15, 27, 0.16)),
    rgba(6, 10, 12, 0.72);
  box-shadow:
    inset 0 0 24px rgba(65, 0, 12, 0.32),
    0 18px 20px -18px rgba(0, 0, 0, 0.78);
  transition: --timeline-focus 760ms cubic-bezier(0.22, 0.75, 0.28, 1);
}

.timeline-preview {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 10.6rem;
}

.timeline-preview figure {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(207, 176, 110, 0.34);
  aspect-ratio: 16 / 9;
  background: #09080a;
  box-shadow:
    inset 0 0 0 1px rgba(88, 9, 22, 0.5),
    0 16px 24px -20px rgba(0, 0, 0, 0.82);
}

.timeline-preview figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 232, 168, 0.18);
  pointer-events: none;
}

.timeline-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 220ms ease, transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.timeline-preview img.is-changing {
  opacity: 0;
  transform: scale(1.025);
}

.timeline-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 2.1rem;
  height: 3rem;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  transform: translateY(-50%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.timeline-arrow.prev {
  left: -0.35rem;
  background-image: url("./assets/bai-timeline-prev.png");
}

.timeline-arrow.next {
  right: -0.35rem;
  background-image: url("./assets/bai-timeline-next.png");
}

.timeline-arrow:hover,
.timeline-arrow:focus-visible {
  opacity: 0.92;
  outline: none;
  transform: translateY(-50%) scale(1.08);
  filter:
    drop-shadow(0 6px 10px rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 8px rgba(207, 176, 110, 0.32));
}

.timeline-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 0.42rem;
  padding-left: clamp(0.1rem, 1vw, 0.4rem);
}

.timeline-copy::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.25rem;
  width: 3.8rem;
  height: 3.8rem;
  background: url("./assets/bai-timeline-mark.png") center / contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.timeline-copy h3 {
  margin: 0;
  color: rgba(244, 218, 154, 0.94);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 500;
}

.timeline-copy p:not(.eyebrow) {
  max-width: 40rem;
  margin: 0;
  color: rgba(247, 235, 204, 0.78);
  font-size: 0.88rem;
  line-height: 1.7;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 0.45rem;
  padding-top: 0.75rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 0.29rem;
  height: 2px;
  background:
    radial-gradient(ellipse 3.7rem 0.2rem at var(--timeline-focus) 50%,
      rgba(255, 238, 181, 0.92) 0%,
      rgba(207, 176, 110, 0.68) 34%,
      rgba(207, 176, 110, 0.18) 68%,
      transparent 100%),
    linear-gradient(90deg, transparent, rgba(207, 176, 110, 0.34), transparent);
  filter: drop-shadow(0 0 4px rgba(207, 176, 110, 0.18));
  transition: filter 760ms cubic-bezier(0.22, 0.75, 0.28, 1);
}

.timeline-track button {
  position: relative;
  min-height: 3.1rem;
  border: 1px solid rgba(207, 176, 110, 0.24);
  padding: 0.48rem 0.44rem;
  color: rgba(247, 235, 204, 0.68);
  background:
    linear-gradient(180deg, rgba(92, 8, 22, 0.2), rgba(2, 8, 10, 0.54));
  cursor: pointer;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.28;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.timeline-track button::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: -0.9rem;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid rgba(207, 176, 110, 0.7);
  background: #15060a;
  transform: rotate(45deg);
}

.timeline-track button span {
  display: block;
  margin-bottom: 0.12rem;
  color: rgba(244, 218, 154, 0.86);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  white-space: nowrap;
}

.timeline-track button.is-active,
.timeline-track button:hover,
.timeline-track button:focus-visible {
  border-color: rgba(244, 218, 154, 0.72);
  color: rgba(255, 247, 222, 0.92);
  background:
    linear-gradient(135deg, rgba(104, 9, 27, 0.55), rgba(14, 8, 10, 0.72));
  outline: none;
  transform: translateY(-0.08rem);
}

.timeline-track button.is-active::before {
  background: rgba(244, 218, 154, 0.95);
  border-color: rgba(255, 244, 208, 0.94);
  box-shadow:
    0 0 0 2px rgba(92, 8, 22, 0.72),
    0 0 13px rgba(244, 218, 154, 0.72);
}

.atlas-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 54%, rgba(202, 246, 235, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(1, 6, 9, 0.58) 0%, rgba(4, 42, 48, 0.24) 42%, rgba(1, 9, 13, 0.76) 100%),
    linear-gradient(90deg, rgba(1, 6, 9, 0.36), rgba(2, 24, 28, 0.04) 48%, rgba(1, 6, 9, 0.42)),
    url("./assets/atlas-water-night.jpg") center / cover no-repeat,
    #06272c;
}

.atlas-panel::after {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 0;
  right: 0;
  z-index: 1;
  height: 9rem;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 7, 10, 0.76), rgba(4, 32, 38, 0.32) 56%, rgba(4, 32, 38, 0));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
}

.atlas-panel.is-active::after {
  animation: atlasTopBlurIn 1450ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.atlas-wash {
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 35%, rgba(114, 210, 208, 0.18), transparent 18rem),
    radial-gradient(circle at 66% 50%, rgba(229, 255, 245, 0.1), transparent 15rem),
    linear-gradient(135deg, rgba(2, 20, 24, 0.18) 0%, rgba(151, 226, 218, 0.1) 46%, rgba(2, 12, 16, 0.36) 100%);
  filter: blur(20px) saturate(1.05);
  opacity: 0.72;
  transform: scale(1.08) translateY(-2rem);
}

.atlas-panel.is-active .atlas-wash {
  animation: watercolorWash 1500ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.atlas-rain-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.atlas-rain-layer span {
  position: absolute;
  top: -16%;
  width: 1px;
  height: 9rem;
  background: linear-gradient(180deg, transparent, rgba(181, 243, 241, 0.28), transparent);
  opacity: 0.52;
  animation: rainTrace 4.8s linear infinite;
}

.atlas-rain-layer span:nth-child(1) {
  left: 18%;
  animation-delay: -1.2s;
}

.atlas-rain-layer span:nth-child(2) {
  left: 42%;
  height: 12rem;
  animation-delay: -2.6s;
}

.atlas-rain-layer span:nth-child(3) {
  left: 67%;
  animation-delay: -0.4s;
}

.atlas-rain-layer span:nth-child(4) {
  left: 84%;
  height: 10rem;
  animation-delay: -3.4s;
}

.atlas-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(19rem, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(1.1rem, 3vw, 2rem);
}

.atlas-intro {
  align-self: center;
}

.atlas-intro h2 {
  color: rgba(242, 239, 224, 0.96);
  font-size: clamp(1.85rem, 3.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.atlas-intro h2 span {
  display: block;
}

.atlas-intro > p:not(.eyebrow) {
  margin-bottom: 0.68rem;
  color: rgba(247, 245, 232, 0.76);
}

.atlas-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem;
  margin: 1.2rem 0 1rem;
}

.atlas-stats article {
  border: 1px solid rgba(181, 243, 241, 0.22);
  padding: 0.7rem;
  background: rgba(181, 243, 241, 0.055);
}

.atlas-stats strong {
  display: block;
  color: var(--cyan);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  font-weight: 400;
}

.atlas-stats span {
  color: rgba(247, 245, 232, 0.68);
  font-size: 0.78rem;
}

.atlas-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(3.8rem, 1fr));
  gap: 0.28rem;
}

.atlas-filters button {
  border: 1px solid rgba(181, 243, 241, 0.18);
  min-height: 2.28rem;
  padding: 0.34rem 0.18rem;
  color: rgba(181, 243, 241, 0.66);
  background: rgba(181, 243, 241, 0.04);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: 200ms ease;
}

.atlas-filters button:hover,
.atlas-filters button:focus-visible,
.atlas-filters button.is-active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245, 216, 74, 0.07);
  outline: none;
}

.atlas-pool {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.52rem;
  min-height: auto;
}

.atlas-map {
  position: relative;
  overflow: hidden;
  height: clamp(27rem, 50vh, 30rem);
  min-height: 27rem;
  border: 1px solid rgba(181, 243, 241, 0.18);
  background:
    linear-gradient(180deg, rgba(2, 13, 18, 0.2), rgba(2, 23, 30, 0.7)),
    repeating-linear-gradient(0deg, rgba(181, 243, 241, 0.055) 0 1px, transparent 1px 3.4rem),
    repeating-linear-gradient(90deg, rgba(181, 243, 241, 0.045) 0 1px, transparent 1px 4.2rem),
    linear-gradient(135deg, rgba(11, 80, 90, 0.18), rgba(3, 14, 20, 0.8));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 -26px 52px rgba(9, 89, 99, 0.22),
    0 28px 46px -34px rgba(0, 0, 0, 0.85);
}

.atlas-map::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(181, 243, 241, 0.08);
  background:
    linear-gradient(118deg, transparent 0 23%, rgba(181, 243, 241, 0.075) 23.2% 23.5%, transparent 23.7% 100%),
    linear-gradient(156deg, transparent 0 38%, rgba(245, 216, 74, 0.04) 38.2% 38.5%, transparent 38.8% 100%),
    repeating-linear-gradient(168deg, transparent 0 2.4rem, rgba(181, 243, 241, 0.04) 2.45rem 2.52rem, transparent 2.58rem 4.9rem);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.atlas-map::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1.9rem;
  z-index: 1;
  height: 10.2rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 26% 16%, rgba(181, 243, 241, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 10%, rgba(247, 245, 232, 0.07), transparent 48%),
    linear-gradient(180deg, rgba(181, 243, 241, 0.1) 0%, rgba(86, 191, 198, 0.16) 35%, rgba(6, 94, 106, 0.34) 100%);
  mask-image:
    radial-gradient(ellipse at 18% 0%, transparent 0 23%, rgba(0, 0, 0, 0.88) 24% 100%),
    radial-gradient(ellipse at 50% 0%, transparent 0 19%, rgba(0, 0, 0, 0.9) 20% 100%),
    radial-gradient(ellipse at 82% 0%, transparent 0 24%, rgba(0, 0, 0, 0.86) 25% 100%),
    linear-gradient(180deg, transparent 0 1%, rgba(0, 0, 0, 0.92) 20%, rgba(0, 0, 0, 1) 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(ellipse at 18% 0%, transparent 0 23%, rgba(0, 0, 0, 0.88) 24% 100%),
    radial-gradient(ellipse at 50% 0%, transparent 0 19%, rgba(0, 0, 0, 0.9) 20% 100%),
    radial-gradient(ellipse at 82% 0%, transparent 0 24%, rgba(0, 0, 0, 0.86) 25% 100%),
    linear-gradient(180deg, transparent 0 1%, rgba(0, 0, 0, 0.92) 20%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-composite: source-in;
  filter: blur(0.65px);
  opacity: 0.54;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 100%;
  animation: atlasTide 5.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.tide-swell {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -2.15rem;
  z-index: 1;
  height: 9.4rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 32% 12%, rgba(181, 243, 241, 0.12), transparent 56%),
    radial-gradient(ellipse at 78% 4%, rgba(247, 245, 232, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(181, 243, 241, 0.08) 0%, rgba(57, 162, 176, 0.12) 36%, rgba(6, 78, 94, 0.25) 100%);
  mask-image:
    radial-gradient(ellipse at 34% 0%, transparent 0 18%, rgba(0, 0, 0, 0.82) 19% 100%),
    radial-gradient(ellipse at 68% 0%, transparent 0 24%, rgba(0, 0, 0, 0.8) 25% 100%),
    linear-gradient(180deg, transparent 0 1%, rgba(0, 0, 0, 0.82) 22%, rgba(0, 0, 0, 1) 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(ellipse at 34% 0%, transparent 0 18%, rgba(0, 0, 0, 0.82) 19% 100%),
    radial-gradient(ellipse at 68% 0%, transparent 0 24%, rgba(0, 0, 0, 0.8) 25% 100%),
    linear-gradient(180deg, transparent 0 1%, rgba(0, 0, 0, 0.82) 22%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-composite: source-in;
  filter: blur(0.9px);
  opacity: 0.38;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 100%;
  animation: atlasTideBack 7.2s ease-in-out -1.8s infinite;
  mix-blend-mode: screen;
}

.map-axis {
  position: absolute;
  z-index: 2;
  color: rgba(181, 243, 241, 0.36);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.map-axis-top {
  top: 1rem;
  left: 1.2rem;
}

.map-axis-side {
  right: 1.1rem;
  bottom: 1rem;
  writing-mode: vertical-rl;
}

.map-focus {
  position: absolute;
  left: var(--x, 58%);
  top: var(--y, 25%);
  z-index: 3;
  width: 5.2rem;
  height: 5.2rem;
  border: 1px solid rgba(245, 216, 74, 0.2);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: left 560ms cubic-bezier(0.16, 0.9, 0.22, 1), top 560ms cubic-bezier(0.16, 0.9, 0.22, 1), opacity 240ms ease;
  opacity: 0.88;
  box-shadow:
    inset 0 0 18px rgba(245, 216, 74, 0.04),
    0 0 20px rgba(181, 243, 241, 0.07);
}

.map-focus::before,
.map-focus::after {
  content: "";
  position: absolute;
  background: rgba(245, 216, 74, 0.32);
}

.map-focus::before {
  left: 50%;
  top: -0.9rem;
  bottom: -0.9rem;
  width: 1px;
}

.map-focus::after {
  top: 50%;
  left: -0.9rem;
  right: -0.9rem;
  height: 1px;
}

.map-marker {
  --marker-shift: -0.55rem;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  display: grid;
  grid-template-columns: auto max-content;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  padding: 0;
  color: rgba(247, 245, 232, 0.82);
  background: transparent;
  cursor: pointer;
  transform: translate(var(--marker-shift), -50%) translateY(0.9rem);
  opacity: 0;
  animation: mapMarkerIn 760ms cubic-bezier(0.16, 0.9, 0.22, 1) var(--delay) forwards;
  transition: filter 220ms ease, transform 260ms ease;
}

.map-marker.is-minor {
  z-index: 3;
  gap: 0;
}

.marker-dot {
  position: relative;
  display: block;
  width: calc(0.62rem + var(--intensity) * 0.42rem);
  height: calc(0.62rem + var(--intensity) * 0.42rem);
  border: 1px solid rgba(181, 243, 241, 0.7);
  background: rgba(181, 243, 241, 0.14);
  box-shadow:
    0 0 calc(0.35rem + var(--intensity) * 1rem) rgba(181, 243, 241, calc(0.12 + var(--intensity) * 0.18)),
    inset 0 0 0 2px rgba(2, 17, 22, 0.8);
  transform: rotate(45deg);
}

.map-marker.is-minor .marker-dot {
  width: calc(0.38rem + var(--intensity) * 0.22rem);
  height: calc(0.38rem + var(--intensity) * 0.22rem);
  border-color: rgba(181, 243, 241, 0.45);
  background: rgba(181, 243, 241, 0.1);
  box-shadow:
    0 0 0.7rem rgba(181, 243, 241, 0.11),
    inset 0 0 0 1px rgba(2, 17, 22, 0.76);
}

.marker-dot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.22rem;
  height: 0.22rem;
  background: var(--yellow);
  transform: translate(-50%, -50%);
  opacity: calc(0.24 + var(--intensity) * 0.46);
}

.marker-label {
  display: block;
  border-left: 1px solid rgba(181, 243, 241, 0.24);
  padding: 0.22rem 0.48rem;
  background: linear-gradient(90deg, rgba(2, 18, 23, 0.84), rgba(2, 18, 23, 0.22));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 22px -18px rgba(0, 0, 0, 0.9);
  transition: border-color 220ms ease, background 220ms ease;
}

.map-marker.is-minor .marker-label {
  position: absolute;
  left: 0.86rem;
  top: 50%;
  min-width: max-content;
  opacity: 0.74;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0.16rem 0.34rem;
  background: linear-gradient(90deg, rgba(2, 18, 23, 0.62), rgba(2, 18, 23, 0.12));
  transition: opacity 180ms ease, transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.map-marker.is-minor.is-edge .marker-label {
  right: 0.86rem;
  left: auto;
  transform: translateY(-50%);
}

.map-marker.is-edge {
  --marker-shift: calc(-100% + 0.55rem);
  grid-template-columns: max-content auto;
}

.map-marker.is-edge .marker-label {
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid rgba(181, 243, 241, 0.24);
  border-left: 0;
  background: linear-gradient(270deg, rgba(2, 18, 23, 0.84), rgba(2, 18, 23, 0.22));
  text-align: right;
}

.map-marker.is-edge .marker-dot {
  grid-column: 2;
  grid-row: 1;
}

.marker-label strong {
  display: block;
  color: rgba(247, 245, 232, 0.94);
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.marker-label small {
  display: block;
  margin-top: 0.12rem;
  color: rgba(181, 243, 241, 0.72);
  font-size: 0.58rem;
  line-height: 1.2;
  white-space: nowrap;
}

.map-marker.is-minor .marker-label strong {
  font-size: clamp(0.62rem, 0.76vw, 0.72rem);
  font-weight: 400;
}

.map-marker.is-minor .marker-label small {
  font-size: 0.54rem;
  color: rgba(181, 243, 241, 0.58);
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-active {
  outline: none;
  filter: saturate(1.2);
  transform: translate(var(--marker-shift), -50%) scale(1.02);
}

.map-marker.is-minor:hover,
.map-marker.is-minor:focus-visible,
.map-marker.is-minor.is-active {
  z-index: 7;
}

.map-marker:hover .marker-dot,
.map-marker:focus-visible .marker-dot,
.map-marker.is-active .marker-dot {
  border-color: rgba(245, 216, 74, 0.76);
  box-shadow:
    0 0 1rem rgba(245, 216, 74, 0.18),
    0 0 1.6rem rgba(181, 243, 241, 0.16),
    inset 0 0 0 2px rgba(2, 17, 22, 0.8);
}

.map-marker:hover .marker-label,
.map-marker:focus-visible .marker-label,
.map-marker.is-active .marker-label {
  border-color: rgba(245, 216, 74, 0.48);
  background: linear-gradient(90deg, rgba(20, 42, 39, 0.9), rgba(2, 18, 23, 0.34));
}

.map-marker.is-minor:hover .marker-label,
.map-marker.is-minor:focus-visible .marker-label,
.map-marker.is-minor.is-active .marker-label {
  opacity: 1;
  transform: translateY(-50%);
}

.atlas-ledger {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  min-height: 8.6rem;
  max-height: 8.6rem;
  overflow-y: auto;
  padding-right: 0.2rem;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 216, 74, 0.32) rgba(2, 15, 20, 0.2);
}

.atlas-ledger.is-updating .sample-copy,
.atlas-ledger.is-updating .sample-row small {
  animation: atlasTextSwap 230ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.atlas-ledger.is-leaving .sample-copy,
.atlas-ledger.is-leaving .sample-row small {
  animation: atlasTextLeave 105ms ease-out both;
}

.sample-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.38rem;
  row-gap: 0.1rem;
  min-height: 2.7rem;
  overflow: hidden;
  border: 1px solid rgba(181, 243, 241, 0.14);
  padding: 0.42rem 0.5rem;
  color: rgba(247, 245, 232, 0.64);
  background: rgba(2, 15, 20, 0.46);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.sample-copy {
  grid-column: 1;
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.sample-row strong {
  min-width: 0;
  color: rgba(247, 245, 232, 0.76);
  font-size: 0.78rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-row em {
  color: rgba(181, 243, 241, 0.56);
  font-size: 0.62rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-row small {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: rgba(245, 216, 74, 0.56);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  white-space: nowrap;
}

.sample-row.is-minor {
  opacity: 0.74;
}

.sample-row.is-minor strong {
  font-weight: 400;
}

.sample-row:hover,
.sample-row:focus-visible,
.sample-row.is-active {
  border-color: rgba(245, 216, 74, 0.44);
  color: var(--yellow);
  background: rgba(14, 50, 55, 0.52);
  outline: none;
}

.game-detail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(9rem, 0.72fr) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.86rem;
  width: 100%;
  border: 1px solid rgba(181, 243, 241, 0.2);
  padding: 0.72rem 0.82rem;
  background:
    linear-gradient(180deg, rgba(3, 28, 34, 0.48) 0%, rgba(2, 14, 19, 0.7) 100%);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow:
    inset 0 -18px 26px rgba(0, 0, 0, 0.12),
    0 18px 36px -30px rgba(0, 0, 0, 0.9);
}

.game-detail.is-updating .detail-copy {
  animation: atlasTextSwap 230ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.game-detail.is-leaving .detail-copy {
  animation: atlasTextLeave 105ms ease-out both;
}

.detail-heading {
  display: grid;
  gap: 0.16rem;
}

.detail-heading .eyebrow {
  margin-bottom: 0.16rem;
}

.game-detail h3 {
  margin-bottom: 0;
  color: rgba(247, 245, 232, 0.96);
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
}

.game-detail p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.58;
}

.game-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-detail li {
  border: 1px solid rgba(181, 243, 241, 0.18);
  padding: 0.22rem 0.42rem;
  color: rgba(181, 243, 241, 0.72);
  font-size: 0.72rem;
}

.content-panel {
  background:
    radial-gradient(circle at 20% 25%, rgba(245, 216, 74, 0.12), transparent 20rem),
    linear-gradient(135deg, #0b2d32, #052029);
}

.lab-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.lab-strip article {
  min-height: 10rem;
  padding: 1rem;
}

.lab-strip strong {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--yellow);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.lab-strip span {
  color: rgba(242, 239, 224, 0.68);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.72;
}

.notes-panel {
  /* 从深夜（atlas）过渡到日光（music）：用晨曦色调，半明半暗 */
  background:
    radial-gradient(ellipse at 68% 0%, rgba(245, 216, 74, 0.18), transparent 32rem),
    radial-gradient(ellipse at 20% 100%, rgba(58, 166, 161, 0.14), transparent 28rem),
    radial-gradient(ellipse at 85% 60%, rgba(248, 230, 180, 0.12), transparent 22rem),
    linear-gradient(160deg,
      #06141c 0%,
      #0d2828 28%,
      #1a3830 52%,
      #2d4a36 72%,
      #3d5535 88%,
      #556640 100%);
}

/* notes 面板内的文字颜色随渐变适配 */
.notes-panel {
  background:
    linear-gradient(90deg, rgba(4, 17, 22, 0.84) 0%, rgba(5, 23, 25, 0.6) 42%, rgba(29, 63, 46, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 17, 22, 0.4) 0%, rgba(245, 246, 221, 0.04) 76%, rgba(245, 246, 221, 0.54) 100%),
    url("./assets/notes-sunlight-water.jpg");
  background-position: center;
  background-size: cover;
}

.notes-panel .section-shell {
  color: rgba(242, 239, 224, 0.92);
}

.notes-shell {
  display: grid;
  grid-template-columns: minmax(16rem, 0.62fr) minmax(42rem, 1.38fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.notes-head {
  max-width: 29rem;
}

.notes-panel h2 {
  color: rgba(242, 239, 224, 0.95);
  font-size: clamp(1.62rem, 3vw, 2.85rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.notes-head > p:not(.eyebrow) {
  max-width: 28rem;
  color: rgba(229, 239, 218, 0.74);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.68;
}

.notes-board {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(28rem, 1.28fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.82rem;
  min-width: 0;
}

.note-focus,
.note-card,
.notes-panel .note-terminal {
  border: 1px solid rgba(242, 239, 224, 0.12);
  background: rgba(5, 21, 24, 0.34);
  box-shadow:
    0 26px 62px -48px rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  backdrop-filter: blur(16px);
}

.note-focus {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.88rem, 1.6vw, 1.15rem);
}

.note-focus h3,
.note-card h3 {
  color: rgba(255, 248, 214, 0.96);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.note-focus h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.08rem, 1.8vw, 1.48rem);
}

.note-focus p,
.note-card p {
  color: rgba(218, 235, 210, 0.78);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.58;
}

.note-focus ol {
  display: grid;
  gap: 0.32rem;
  margin: 0.72rem 0 0;
  padding: 0;
  list-style: none;
}

.note-focus li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-top: 1px solid rgba(242, 239, 224, 0.1);
  padding-top: 0.32rem;
  color: rgba(234, 241, 215, 0.72);
  font-size: 0.78rem;
}

.note-focus li span {
  color: rgba(245, 216, 74, 0.9);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.note-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
  min-width: 0;
}

.note-card {
  min-height: 8.6rem;
  padding: clamp(0.78rem, 1.25vw, 0.95rem);
  transition: transform 240ms var(--ease-out-expo), border-color 200ms ease, background 200ms ease;
}

.note-card:hover {
  border-color: rgba(245, 216, 74, 0.28);
  background: rgba(8, 31, 30, 0.46);
  transform: translateY(-0.18rem);
}

.note-card span {
  display: block;
  margin-bottom: 0.46rem;
  color: rgba(245, 216, 74, 0.82);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-card h3 {
  margin-bottom: 0.42rem;
  font-size: clamp(0.94rem, 1.28vw, 1.12rem);
}

.note-card small {
  display: block;
  margin-top: 0.56rem;
  color: rgba(181, 243, 241, 0.58);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.6;
}

.notes-panel .note-terminal {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  padding: 0.72rem 0.95rem;
}

.notes-panel .note-terminal p {
  display: inline-block;
  margin: 0 1.2rem 0 0;
  color: rgba(218, 235, 210, 0.78);
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.notes-panel .note-terminal span {
  display: inline-block;
  width: auto;
  margin-right: 0.35rem;
  color: rgba(245, 216, 74, 0.88);
  font-weight: 400;
}

.notes-panel .note-terminal .note-closing {
  display: block;
  margin: 0;
  max-width: 64rem;
  color: rgba(232, 240, 217, 0.82);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.78;
}

.ending-panel {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(245, 216, 74, 0.14), transparent 22rem),
    radial-gradient(circle at 80% 80%, rgba(181, 243, 241, 0.06), transparent 20rem),
    linear-gradient(180deg, #05121a, #020608);
}

.ending-copy {
  min-height: auto;
  text-align: center;
}

.ending-copy h2 {
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ending-copy p {
  font-size: clamp(0.84rem, 1.2vw, 0.96rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.ghost-link {
  margin-top: 1rem;
}

@property --timeline-focus {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@keyframes titleAssemble {
  from {
    opacity: 0;
    transform: translate3d(0, 1.1em, 0) rotate(4deg) scale(1.06);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
    filter: blur(0);
  }
}

@keyframes baiBorderFlow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 320% 50%;
  }
}

@keyframes kuroSignFlicker {
  0%,
  44%,
  54%,
  76%,
  84%,
  100% {
    opacity: 0.62;
    background-position: 0% 50%;
    filter:
      drop-shadow(0 0 7px rgba(104, 180, 215, 0.26))
      drop-shadow(0 0 18px rgba(104, 180, 215, 0.12));
  }

  46%,
  78% {
    opacity: 0.2;
    background-position: 18% 50%;
    filter: drop-shadow(0 0 2px rgba(104, 180, 215, 0.08));
  }

  47%,
  79% {
    opacity: 0.94;
    filter:
      drop-shadow(0 0 10px rgba(168, 226, 242, 0.4))
      drop-shadow(0 0 24px rgba(104, 180, 215, 0.2));
  }

  48%,
  80% {
    opacity: 0.38;
    background-position: -10% 50%;
  }

  50%,
  82% {
    opacity: 0.86;
    filter:
      drop-shadow(0 0 8px rgba(156, 220, 238, 0.34))
      drop-shadow(0 0 20px rgba(104, 180, 215, 0.16));
  }
}

@keyframes kuroHoverGlitch {
  0%,
  100% {
    opacity: 0.9;
    transform: translateX(0);
    filter:
      drop-shadow(0 0 10px rgba(168, 226, 242, 0.4))
      drop-shadow(0 0 24px rgba(104, 180, 215, 0.22));
  }

  18% {
    opacity: 0.16;
    transform: translateX(-1px);
    filter: drop-shadow(0 0 2px rgba(104, 180, 215, 0.08));
  }

  30% {
    opacity: 1;
    transform: translateX(1px);
  }

  46% {
    opacity: 0.28;
    transform: translateX(0);
  }

  60% {
    opacity: 0.96;
    transform: translateX(-1px);
  }
}

@keyframes watercolorWash {
  0% {
    opacity: 0;
    transform: scale(1.12) translateY(-2.2rem);
    filter: blur(28px) saturate(0.8);
  }

  45% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.46;
    transform: scale(1) translateY(0);
    filter: blur(18px) saturate(1.2);
  }
}

@keyframes atlasTopBlurIn {
  0% {
    opacity: 0.95;
    transform: translateY(-0.6rem);
  }

  48% {
    opacity: 0.66;
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes rainTrace {
  from {
    transform: translate3d(0, -20vh, 0);
  }

  to {
    transform: translate3d(0, 120vh, 0);
  }
}

@keyframes mapMarkerIn {
  from {
    opacity: 0;
    transform: translate(var(--marker-shift), -36%) translateY(0.9rem);
  }

  to {
    opacity: 1;
    transform: translate(var(--marker-shift), -50%) translateY(0);
  }
}

@keyframes atlasTide {
  0% {
    opacity: 0.45;
    transform: translate3d(-0.7rem, 0.48rem, 0) scaleX(1.02);
  }

  44% {
    opacity: 0.66;
    transform: translate3d(0.58rem, -0.5rem, 0) scaleX(1.05);
  }

  72% {
    opacity: 0.52;
    transform: translate3d(0.95rem, -0.08rem, 0) scaleX(1.03);
  }

  100% {
    opacity: 0.45;
    transform: translate3d(-0.7rem, 0.48rem, 0) scaleX(1.02);
  }
}

@keyframes atlasTideBack {
  0% {
    opacity: 0.3;
    transform: translate3d(0.72rem, -0.42rem, 0) scaleX(1.04);
  }

  46% {
    opacity: 0.48;
    transform: translate3d(-0.68rem, 0.36rem, 0) scaleX(1.02);
  }

  100% {
    opacity: 0.3;
    transform: translate3d(0.72rem, -0.42rem, 0) scaleX(1.04);
  }
}

@keyframes atlasTextSwap {
  0% {
    opacity: 0.48;
    filter: blur(0.26px);
    transform: translateY(0.025rem);
  }

  58% {
    opacity: 0.82;
    filter: blur(0.08px);
    transform: translateY(0.01rem);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes atlasTextLeave {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  to {
    opacity: 0.42;
    filter: blur(0.28px);
    transform: translateY(-0.025rem);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translate(-50%, -70%) scale(0.78);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes dropFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 0.35rem;
  }
}

@media (min-width: 901px) and (max-height: 780px) {
  .music-panel .section-shell {
    padding: 4.55rem 0 0.75rem;
  }

  .music-shell {
    gap: 0.65rem;
  }

  .music-copy {
    gap: 0.32rem 1.4rem;
  }

  .music-copy h2 {
    font-size: clamp(1.68rem, 2.72vw, 2.5rem);
  }

  .music-copy > p:not(.eyebrow) {
    font-size: 0.8rem;
    line-height: 1.58;
  }

  .music-stats span {
    padding: 0.28rem 0.5rem;
    font-size: 0.78rem;
  }

  .music-stats strong {
    font-size: 1rem;
  }

  .music-console {
    --music-frame-height: clamp(22.3rem, 53.6vh, 24.12rem);
    gap: 0.65rem;
    margin-top: 0;
    min-height: 0;
  }

  .music-console {
    min-height: 0;
  }

  .scrapbook-board {
    height: var(--music-frame-height);
    min-height: 0;
  }

  .music-card {
    height: var(--music-frame-height);
    min-height: 0;
    padding: 1rem 1.15rem;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 0.9fr);
    gap: 0.8rem;
  }

  .music-card h3 {
    font-size: clamp(1.12rem, 1.8vw, 1.48rem);
  }

  .music-card p {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .music-card ul {
    margin-top: 0.76rem;
  }

  .music-media-gallery {
    gap: 0.3rem;
  }

  /* stage 高度跟随 grid 1fr，不再独立设定 */
  .music-media-stage {
    height: 100%;
    min-height: 0;
  }

  /* 图片按比例缩放，仅视频占满 */
  .music-media-stage img {
    width: auto;
    height: auto;
    max-height: 100%;
  }

  .music-media-stage video {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .music-media-thumbs {
    gap: 0.32rem;
  }

  .music-media-thumb {
    padding: 0.2rem;
  }

  .music-media-thumb span {
    font-size: 0.56rem;
  }

  .music-media-thumb img,
  .music-media-thumb-video {
    height: clamp(2.4rem, 3.6vw, 3.4rem);
  }

  /* 窄屏占位高度同步缩小 */
  .music-media-thumbs[hidden]::before {
    height: calc(clamp(2.4rem, 3.6vw, 3.4rem) + 0.28rem + 0.56rem + 0.4rem);
  }

  .scrap-page {
    min-height: 6.2rem;
    padding: 0.58rem;
  }

  .scrap-page strong {
    font-size: 1rem;
  }

  .scrap-page em,
  .scrap-page small {
    font-size: 0.64rem;
  }

  .atlas-map {
    height: 24rem;
    min-height: 24rem;
  }

  .atlas-ledger {
    min-height: 7.8rem;
    max-height: 7.8rem;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0.8rem 1rem;
  }

  .section-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .chapter-indicator {
    align-self: start;
  }

  .section-shell,
  .two-column {
    min-height: auto;
    padding: 8rem 0 3rem;
    display: flex;
    flex-direction: column;
  }

  .panel {
    min-height: auto;
  }

  .hero-panel {
    min-height: 100vh;
  }

  .split-title {
    font-size: clamp(2.2rem, 10vw, 5.6rem);
  }

  .profile-reveal {
    width: min(30rem, calc(100% - 1.2rem));
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .portrait-stage {
    min-height: 14rem;
  }

  .portrait-stage img {
    left: 50%;
    top: 50%;
    width: min(17rem, 78vw);
    transform: translate(-50%, -42%) scale(1.04);
  }

  .profile-card div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .profile-dashboard,
  .profile-lanes article {
    grid-template-columns: 1fr;
  }

  .profile-lanes article {
    gap: 0.45rem;
  }

  .profile-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Profile 页标题分行：移动端字号缩小避免三行 */
  .profile-page-head h2 {
    font-size: clamp(1.4rem, 4.5vw, 2.4rem);
    line-height: 1.16;
  }

  /* Archive 页标题：移动端 br 自然换行，字号适配 */
  .archive-heading h2 {
    font-size: clamp(1.5rem, 5.5vw, 2.6rem);
  }

  .method-grid,
  .internship-switch,
  .lab-strip {
    grid-template-columns: 1fr;
  }

  .music-shell,
  .music-console {
    grid-template-columns: 1fr;
  }

  .music-console {
    min-height: auto;
  }

  .music-copy {
    grid-template-columns: 1fr;
  }

  .music-copy .eyebrow,
  .music-copy h2,
  .music-copy > p:not(.eyebrow),
  .music-stats {
    grid-column: 1;
  }

  /* Music 页标题：移动端单栏，字号适当放大，自然分行 */
  .music-copy h2 {
    max-width: 100%;
    font-size: clamp(1.52rem, 4.2vw, 2.2rem);
    line-height: 1.2;
  }

  .notes-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .notes-board {
    grid-template-columns: 1fr;
  }

  .note-card-grid {
    grid-template-columns: 1fr;
  }

  .music-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scrapbook-board {
    height: auto;
    min-height: auto;
  }

  .scrap-page {
    min-height: 8rem;
  }

  .music-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .music-card::after {
    left: 1rem;
    top: -0.7rem;
    width: 42%;
    height: 1.4rem;
    transform: rotate(-1.2deg);
  }

  .music-media-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  /* 移动端 card 单栏自动高度 */
  .music-card {
    height: auto;
    min-height: 0;
  }

  .music-media-stage {
    height: clamp(16rem, 58vw, 22rem);
  }

  /* 图片按比例缩放居中，视频占满 */
  .music-media-stage img {
    width: auto;
    height: auto;
    max-height: 100%;
  }

  .music-media-stage video {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .music-media-thumbs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.1rem 0 0.45rem;
    overscroll-behavior-x: contain;
  }

  /* 移动端单栏，不需要占位撑高，直接隐藏 */
  .music-media-thumbs[hidden] {
    display: none;
  }

  .music-media-thumb {
    flex: 0 0 7.6rem;
  }

  .atlas-shell {
    grid-template-columns: 1fr;
  }

  .atlas-pool {
    min-height: auto;
  }

  .archive-scene-layer.bai {
    background-image: url("./assets/archive-bai-mobile.png");
    background-position: top center;
  }

  .archive-scene-layer.kuro {
    background-image: url("./assets/archive-kuro-mobile.jpg");
    background-position: top center;
  }

  .archive-detail {
    position: fixed;
    inset: 7.4rem 1rem 1rem;
  }

  .archive-detail-panel.is-active {
    overflow-y: auto;
  }

  .archive-detail-panel[data-detail-panel="bai"].is-active {
    min-width: 0;
    overflow-x: hidden;
  }

  .archive-detail-panel[data-detail-panel="bai"] h2 {
    white-space: normal;
  }

  .archive-detail-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bai-timeline {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .timeline-preview,
  .timeline-copy,
  .timeline-track,
  .archive-detail-body {
    min-width: 0;
  }

  .timeline-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-logo {
    max-width: min(48%, 12rem);
  }

  .atlas-map {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    background: rgba(4, 13, 17, 0.82);
  }

  .section-nav a {
    padding: 0.36rem 0.5rem;
  }

  .section-shell {
    width: min(100% - 1.2rem, 1120px);
  }

  .atlas-map {
    height: 30rem;
    min-height: 30rem;
  }

  .atlas-stats {
    grid-template-columns: 1fr;
  }

  .atlas-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-detail {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
    width: 100%;
  }

  .atlas-pool {
    grid-template-rows: auto auto auto;
  }

  .map-marker {
    gap: 0.28rem;
  }

  .marker-label {
    max-width: 8.2rem;
    padding: 0.18rem 0.34rem;
  }

  .marker-label strong,
  .marker-label small {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .internship-card {
    min-height: 22rem;
  }

  .archive-detail {
    inset: 7.6rem 0.6rem 0.8rem;
  }

  .archive-detail-panel[data-detail-panel="bai"].is-active {
    padding: 0.9rem;
  }

  .archive-detail-panel[data-detail-panel="bai"] h2 {
    font-size: clamp(1.42rem, 7.2vw, 2rem);
    line-height: 1.16;
  }

  .archive-detail-body {
    grid-template-columns: 1fr;
  }

  .timeline-copy p:not(.eyebrow) {
    font-size: 0.82rem;
  }

  .timeline-track {
    grid-template-columns: 1fr;
  }

  .timeline-track button {
    white-space: normal;
  }

  .timeline-arrow {
    width: 1.6rem;
    height: 2.35rem;
  }

  .game-logo {
    top: 0.9rem;
    right: 0.9rem;
    max-width: 46%;
  }

  .bai-logo img {
    width: 7.6rem;
  }

  .kuro-logo img {
    width: 7.8rem;
  }

  .profile-route {
    grid-template-columns: 1fr;
  }

  .profile-route a {
    min-height: 4.4rem;
  }

  /* 小屏幕分行标题字号进一步缩小，防止三行以上 */
  .profile-page-head h2 {
    font-size: clamp(1.28rem, 6vw, 1.9rem);
  }

  .archive-heading h2 {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  /* Music 标题小屏幕：去除 br 控制（不用 display:none，让字号自然单行或两行） */
  .music-copy h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    line-height: 1.22;
  }

  /* Notes 页在小屏幕更紧凑 */
  .notes-panel .note-terminal {
    padding: 1.1rem;
  }
}

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

/* ============================================
   精细补充：点睛视觉细节
   ============================================ */

/* eyebrow 前置装饰线 */
.eyebrow::before {
  content: "—";
  display: inline-block;
  margin-right: 0.5em;
  opacity: 0.6;
  font-family: var(--font-mono);
}

/* hero 区的 eyebrow 不用装饰线，因为是中央对齐的 */
.hero-copy .eyebrow::before,
/* profile-reveal 里不用 */
.profile-reveal .reveal-label::before,
/* ending-copy eyebrow 也不用 */
.ending-copy .eyebrow::before,
/* game-detail eyebrow 不用（空间紧凑）*/
.game-detail .eyebrow::before,
/* timeline-copy eyebrow 不用 */
.timeline-copy .eyebrow::before,
/* music-card-copy eyebrow 不用 */
.music-card-copy .eyebrow::before {
  display: none;
}

/* music panel 的 eyebrow 装饰适配深色 */
.music-panel .eyebrow::before {
  opacity: 0.5;
}

/* section-intro 标题间距微调 */
.section-intro h2 {
  margin-bottom: 0.75rem;
}

/* profile-reveal 内部文案微调 */
.profile-reveal p:not(.reveal-label):not(.profile-role) {
  font-size: clamp(0.84rem, 1.2vw, 0.94rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(242, 239, 224, 0.68);
}

/* 滚动条优化 */
.snap-stage::-webkit-scrollbar {
  width: 4px;
}
.snap-stage::-webkit-scrollbar-track {
  background: rgba(3, 15, 20, 0.2);
}
.snap-stage::-webkit-scrollbar-thumb {
  background: rgba(245, 216, 74, 0.28);
  border-radius: 2px;
}
.snap-stage::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 216, 74, 0.46);
}

/* archive detail panel 内滚动条 */
.archive-detail-panel.is-active::-webkit-scrollbar {
  width: 3px;
}
.archive-detail-panel.is-active::-webkit-scrollbar-track {
  background: rgba(2, 10, 14, 0.3);
}
.archive-detail-panel.is-active::-webkit-scrollbar-thumb {
  background: rgba(245, 216, 74, 0.24);
}

/* atlas ledger 滚动条 */
.atlas-ledger::-webkit-scrollbar {
  width: 3px;
}
.atlas-ledger::-webkit-scrollbar-track {
  background: rgba(2, 15, 20, 0.2);
}
.atlas-ledger::-webkit-scrollbar-thumb {
  background: rgba(245, 216, 74, 0.28);
}

/* 卡片 focus-visible 全局基准 */
*:focus-visible {
  outline: 2px solid rgba(245, 216, 74, 0.64);
  outline-offset: 3px;
}

/* game-detail h3 字体调整 */
.game-detail h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* atlas stats article 微调 */
.atlas-stats article {
  border: 1px solid rgba(181, 243, 241, 0.18);
  padding: 0.72rem;
  background: rgba(181, 243, 241, 0.04);
}

/* timeline copy h3 字体 */
.timeline-copy h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

/* music-card p 字体微调 */
.music-card p {
  font-size: clamp(0.84rem, 1.1vw, 0.95rem);
  font-weight: 300;
  line-height: 1.82;
  color: rgba(20, 76, 74, 0.72);
}

/* music-copy > p 字体微调 */
.music-copy > p:not(.eyebrow) {
  color: rgba(16, 47, 49, 0.68);
  font-weight: 300;
}

/* Archive detail mobile fit: keep the BAIOO subpage inside narrow screens. */
@media (max-width: 900px) {
  .archive-detail-panel[data-detail-panel="bai"].is-active,
  .archive-detail-panel[data-detail-panel="bai"] > *,
  .archive-detail-panel[data-detail-panel="bai"] .bai-timeline,
  .archive-detail-panel[data-detail-panel="bai"] .timeline-preview,
  .archive-detail-panel[data-detail-panel="bai"] .timeline-copy,
  .archive-detail-panel[data-detail-panel="bai"] .timeline-track,
  .archive-detail-panel[data-detail-panel="bai"] .archive-detail-body,
  .archive-detail-panel[data-detail-panel="bai"] .archive-detail-body article {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .archive-detail-panel[data-detail-panel="bai"] h2 {
    white-space: normal;
  }

  .archive-detail-panel[data-detail-panel="bai"] .bai-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-detail-panel[data-detail-panel="bai"] .timeline-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .archive-detail-panel[data-detail-panel="bai"].is-active {
    padding: 0.9rem;
  }

  .archive-detail-panel[data-detail-panel="bai"] h2 {
    font-size: clamp(1.42rem, 7.2vw, 2rem);
    line-height: 1.16;
  }

  .archive-detail-panel[data-detail-panel="bai"] .timeline-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-detail-panel[data-detail-panel="bai"] .timeline-track button {
    white-space: normal;
  }
}
