.masthead,
.home-secondary,
.home-media,
.home-origin-entry-section,
.portal-hero,
.records-hero,
.music-page,
.video-page,
.profile-layout {
  display: grid;
  gap: 22px;
}

.masthead {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  align-items: stretch;
}

.archive-hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: clamp(300px, 34vw, 470px);
  padding: clamp(38px, 6vw, 78px) clamp(20px, 4vw, 46px);
  text-align: center;
  background: var(--archive-hero-bg);
}

body[data-page="profile"] .page-section.panel--soft,
body[data-page="profile"] .profile-layout--cards > .profile-card-group,
body[data-page="profile"] .profile-journey,
body[data-page="bangumi"] .bangumi-recommend,
body[data-page="bangumi"] .bangumi-board,
body[data-page="portal"] .portal-registry {
  background: var(--archive-hero-bg);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

.archive-hero__copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 760px;
}

.archive-hero__kicker {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.archive-hero__title {
  margin: 0;
  color: #5f526f;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.archive-hero__subtitle {
  margin: 0;
  color: #7f6d8b;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.archive-hero__lead {
  margin: 6px 0 0;
  max-width: 44rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.archive-hero__rule {
  position: relative;
  width: min(420px, 72vw);
  height: 18px;
}

.archive-hero__rule::before,
.archive-hero__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 18px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 153, 92, 0.6));
}

.archive-hero__rule::before {
  left: 0;
}

.archive-hero__rule::after {
  right: 0;
  transform: scaleX(-1);
}

.archive-hero__rule {
  background:
    radial-gradient(circle at 50% 50%, rgba(176, 153, 92, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 46% 50%, rgba(176, 153, 92, 0.44) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 50%, rgba(176, 153, 92, 0.44) 0 2px, transparent 3px);
}

.archive-hero__meta,
.archive-hero__chips,
.music-archive__filters,
.video-archive__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.archive-hero__meta {
  align-items: center;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.archive-hero__meta span,
.archive-hero__chips span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-hero__meta strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
}

.archive-hero__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.music-page,
.video-page {
  gap: clamp(22px, 3vw, 34px);
}

body[data-page="music"] .lyric-dock,
body[data-page="music"] .music-mini-toggle,
body[data-page="music"] .chitanda-assistant,
body[data-page="music"] .chitanda-assistant-mini {
  display: none !important;
}

body[data-page="origin"] .lyric-dock,
body[data-page="origin"] .music-mini-toggle,
body[data-page="origin"] .chitanda-assistant,
body[data-page="origin"] .chitanda-assistant-mini {
  display: none !important;
}

body[data-page="music"] .site-main {
  padding-bottom: 88px;
}

body[data-page="music"] .site-footer {
  padding-bottom: 44px;
}

.music-page .archive-hero,
.video-page .archive-hero {
  min-height: 0;
  padding: 28px 20px 12px;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.music-page .archive-hero::before {
  content: none;
}

.music-page .archive-hero__copy,
.video-page .archive-hero__copy {
  gap: 8px;
  max-width: 880px;
}

.music-page .archive-hero__lead,
.video-page .archive-hero__lead {
  max-width: 52rem;
}

.series-archive-hero.archive-hero {
  min-height: 0;
  padding: 28px 20px 12px;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.series-archive-hero.archive-hero::before {
  content: none;
}

.series-archive-hero .archive-hero__copy {
  gap: 8px;
  max-width: 880px;
}

.series-archive-hero .archive-hero__lead {
  max-width: 52rem;
}

.music-archive,
.video-archive {
  padding: clamp(22px, 3vw, 34px);
}

.music-archive {
  display: grid;
  gap: clamp(24px, 3vw, 38px);
}

.music-archive--surface-glass,
.music-archive[data-music-archive-surface="glass"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.music-archive--surface-glass::before,
.music-archive[data-music-archive-surface="glass"]::before {
  content: none;
}

.music-archive--surface-paper,
.music-archive[data-music-archive-surface="paper"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 250, 246, 0.9)),
    radial-gradient(circle at 82% 12%, rgba(203, 191, 226, 0.22), transparent 30%),
    radial-gradient(circle at 16% 88%, rgba(169, 218, 217, 0.16), transparent 26%);
  box-shadow: var(--shadow-soft);
}

.music-archive--surface-clear,
.music-archive[data-music-archive-surface="clear"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.music-archive--surface-clear::before,
.music-archive[data-music-archive-surface="clear"]::before {
  content: none;
}

.music-archive__toolbar {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.music-archive__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: min(100%, 900px);
  border-top: 1px solid rgba(150, 136, 166, 0.2);
  border-bottom: 1px solid rgba(150, 136, 166, 0.2);
}

.music-archive__filter,
.video-archive__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 20px;
  color: #6d5b7a;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(150, 136, 166, 0.16);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.music-archive__filter:first-child {
  border-left: 0;
}

.music-archive__filter:hover,
.music-archive__filter:focus-visible,
.music-archive__filter.is-active,
.video-archive__filter:hover,
.video-archive__filter:focus-visible,
.video-archive__filter.is-active {
  transform: translateY(-1px);
  color: #51465d;
  background: rgba(245, 252, 250, 0.92);
  border-color: rgba(124, 197, 192, 0.58);
  outline: none;
}

.music-archive__toolbar p,
.video-archive__meta p,
.video-archive__empty,
.music-archive__empty {
  margin: 0;
  max-width: 44rem;
  color: var(--ink-soft);
  line-height: 1.85;
  text-align: center;
}

.music-archive__list {
  display: grid;
  gap: clamp(24px, 3.4vw, 42px);
}

.music-info-entry {
  position: relative;
  display: grid;
  gap: 18px;
  text-align: left;
}

.music-info-entry__rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(164, 143, 179, 0.38), transparent);
}

.music-info-entry__body {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 42px);
  align-items: start;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 24px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.music-archive--surface-paper .music-info-entry__body,
.music-archive[data-music-archive-surface="paper"] .music-info-entry__body {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 246, 0.94)),
    linear-gradient(180deg, rgba(226, 218, 244, 0.16), rgba(246, 232, 236, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(82, 68, 92, 0.08);
}

.music-archive--surface-clear .music-info-entry__body,
.music-archive[data-music-archive-surface="clear"] .music-info-entry__body {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.music-info-entry__visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.music-info-entry__cover {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(172, 153, 188, 0.18);
  box-shadow: 0 18px 36px rgba(82, 68, 92, 0.13);
}

.music-archive--surface-paper .music-info-entry__cover,
.music-archive[data-music-archive-surface="paper"] .music-info-entry__cover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 247, 242, 0.9)),
    radial-gradient(circle at 20% 14%, rgba(211, 202, 230, 0.22), transparent 34%);
  border: 1px solid rgba(172, 153, 188, 0.18);
  box-shadow: 0 18px 36px rgba(82, 68, 92, 0.13);
}

.music-archive--surface-clear .music-info-entry__cover,
.music-archive[data-music-archive-surface="clear"] .music-info-entry__cover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.music-info-entry__cover img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.music-info-entry__date {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #5f5369;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(205, 187, 143, 0.28);
}

.music-archive--surface-clear .music-info-entry__date,
.music-archive[data-music-archive-surface="clear"] .music-info-entry__date {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.music-info-entry__date span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.music-info-entry__date strong {
  color: var(--ink);
  font-family: var(--font-serif);
}

.music-info-entry__listen,
.music-info-entry__links a,
.video-archive__card-badge,
.video-archive__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #6a5b75;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-info-entry__listen,
.music-info-entry__links a {
  min-height: 38px;
  padding-inline: 16px;
  border-color: rgba(160, 143, 180, 0.32);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.music-info-entry__listen:hover,
.music-info-entry__listen:focus-visible,
.music-info-entry__links a:hover,
.music-info-entry__links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(245, 252, 250, 0.92);
  border-color: rgba(124, 197, 192, 0.54);
  outline: none;
}

.music-info-entry__content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.music-info-entry__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(150, 136, 166, 0.18);
}

.music-info-entry__type {
  display: inline-flex;
  margin-bottom: 8px;
  color: #7f6b91;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.music-info-entry__head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  letter-spacing: 0;
  line-height: 1.12;
}

.music-info-entry__head p {
  margin: 8px 0 0;
  color: #74657f;
  font-weight: 700;
  line-height: 1.65;
}

.music-info-entry__tag {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 58px;
  padding: 10px;
  border-radius: 50%;
  color: #7a668d;
  background: rgba(249, 245, 250, 0.86);
  border: 1px solid rgba(169, 151, 187, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.music-info-entry__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(150, 136, 166, 0.16);
  border-left: 1px solid rgba(150, 136, 166, 0.16);
}

.music-info-entry__facts div {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-right: 1px solid rgba(150, 136, 166, 0.16);
  border-bottom: 1px solid rgba(150, 136, 166, 0.16);
}

.music-info-entry__facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-info-entry__facts dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.58;
}

.music-info-entry__credits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.music-info-entry__credits span,
.music-info-entry__credits strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(160, 143, 180, 0.22);
}

.music-info-entry__credits span {
  color: #7d6d8a;
  background: rgba(246, 241, 249, 0.72);
  border-radius: 999px 0 0 999px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.music-info-entry__credits strong {
  margin-left: -9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  border-radius: 0 999px 999px 0;
  font-weight: 700;
}

.music-archive--surface-clear .music-info-entry__credits span,
.music-archive[data-music-archive-surface="clear"] .music-info-entry__credits span {
  background: rgba(255, 255, 255, 0.08);
}

.music-archive--surface-clear .music-info-entry__credits strong,
.music-archive[data-music-archive-surface="clear"] .music-info-entry__credits strong {
  background: rgba(255, 255, 255, 0.14);
}

.music-info-entry__comment,
.music-info-entry__block p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.music-info-entry__comment {
  color: #5f5369;
  font-size: 1rem;
}

.music-info-entry__block {
  display: grid;
  gap: 10px;
}

.music-info-entry__block h3 {
  margin: 0;
  color: #6a5a76;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-info-entry__tracks,
.music-info-entry__specs {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

.music-info-entry__tracks {
  columns: 2;
  column-gap: 34px;
  padding-left: 1.3em;
}

.music-info-entry__tracks li,
.music-info-entry__specs li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.music-info-entry__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.music-info-entry__specs li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(205, 187, 143, 0.24);
}

.music-archive--surface-clear .music-info-entry__specs li,
.music-archive[data-music-archive-surface="clear"] .music-info-entry__specs li {
  background: rgba(255, 255, 255, 0.1);
}

.music-info-entry__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.video-archive__card-body strong {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.video-archive__card-body p,
.video-archive__card-body small {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.video-archive {
  display: grid;
  gap: 24px;
}

.video-archive--surface-glass,
.video-archive[data-video-archive-surface="glass"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.video-archive--surface-glass::before,
.video-archive[data-video-archive-surface="glass"]::before {
  content: none;
}

.video-archive--surface-paper,
.video-archive[data-video-archive-surface="paper"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 246, 0.9)),
    radial-gradient(circle at 82% 16%, rgba(169, 218, 217, 0.24), transparent 28%);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.video-archive--surface-clear,
.video-archive[data-video-archive-surface="clear"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-archive--surface-clear::before,
.video-archive[data-video-archive-surface="clear"]::before {
  content: none;
}

.video-archive__toolbar {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.video-archive__filters {
  width: min(100%, 1060px);
}

.video-archive__filter {
  min-width: min(100%, 164px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(205, 187, 143, 0.42);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.video-archive__filter::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.68;
}

.video-archive__meta {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.video-archive__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.video-archive__card {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 0 0 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 34px rgba(107, 94, 126, 0.08);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.video-archive--surface-paper .video-archive__card,
.video-archive[data-video-archive-surface="paper"] .video-archive__card {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--glass-shadow-soft);
}

.video-archive--surface-glass .video-archive__card,
.video-archive[data-video-archive-surface="glass"] .video-archive__card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.video-archive--surface-glass .video-archive__card::before,
.video-archive[data-video-archive-surface="glass"] .video-archive__card::before {
  content: none;
}

.video-archive--surface-clear .video-archive__card,
.video-archive[data-video-archive-surface="clear"] .video-archive__card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-archive--surface-clear .video-archive__card::before,
.video-archive[data-video-archive-surface="clear"] .video-archive__card::before {
  content: none;
}

.video-archive--surface-clear .video-archive__card:hover,
.video-archive--surface-clear .video-archive__card:focus-visible,
.video-archive--surface-clear .video-archive__card.is-active,
.video-archive[data-video-archive-surface="clear"] .video-archive__card:hover,
.video-archive[data-video-archive-surface="clear"] .video-archive__card:focus-visible,
.video-archive[data-video-archive-surface="clear"] .video-archive__card.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 197, 192, 0.42);
}

.video-archive__card:hover,
.video-archive__card:focus-visible,
.video-archive__card.is-active {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(124, 197, 192, 0.52);
  box-shadow: 0 22px 42px rgba(79, 96, 105, 0.12);
  outline: none;
}

.video-archive__card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(62, 53, 72, 0.1)),
    #ede8ee;
}

.video-archive__card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--motion-duration-base) var(--motion-ease-out);
}

.video-archive__card:hover .video-archive__card-media img,
.video-archive__card:focus-visible .video-archive__card-media img {
  transform: scale(1.025);
}

.video-archive__card-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(67, 54, 78, 0.32)),
    radial-gradient(circle at 72% 84%, rgba(124, 197, 192, 0.44), transparent 38%);
}

.video-archive__card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 22px rgba(34, 30, 42, 0.18);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.video-archive__card-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.video-archive__card-body {
  display: grid;
  gap: 8px;
  padding: 0 16px;
}

.video-archive__card-sources span,
.video-archive__card-body .video-archive__card-badge {
  background: rgba(255, 255, 255, 0.42);
}

.video-archive--surface-clear .video-archive__card-sources span,
.video-archive--surface-clear .video-archive__card-body .video-archive__card-badge,
.video-archive[data-video-archive-surface="clear"] .video-archive__card-sources span,
.video-archive[data-video-archive-surface="clear"] .video-archive__card-body .video-archive__card-badge {
  background: rgba(255, 255, 255, 0.18);
}

.video-archive__card-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.video-archive__card-sources span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #847792;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.video-archive__card-body small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.82rem;
}

.video-archive__modal .video-archive__modal-backdrop {
  background:
    linear-gradient(180deg, rgba(20, 19, 30, 0.68), rgba(14, 13, 22, 0.84)),
    radial-gradient(circle at 18% 10%, rgba(145, 130, 177, 0.22), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(112, 196, 206, 0.16), transparent 34%);
}

.video-archive__modal {
  padding: 4px;
}

.video-archive__dialog {
  width: min(1840px, calc(100vw - 8px));
  max-height: calc(100vh - 8px);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.video-archive__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head sources"
    "stage stage"
    "actions actions";
  align-items: end;
  gap: 8px 18px;
  padding: clamp(8px, 0.8vw, 12px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 252, 0.9)),
    radial-gradient(circle at 92% 10%, rgba(186, 172, 204, 0.25), transparent 24%),
    radial-gradient(circle at 3% 100%, rgba(188, 218, 219, 0.28), transparent 28%);
  box-shadow:
    0 34px 90px rgba(14, 12, 24, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #594b68;
}

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

.video-archive__panel::before {
  right: -34px;
  top: -46px;
  width: 260px;
  height: 220px;
  background:
    radial-gradient(circle at 24% 42%, rgba(176, 157, 198, 0.18) 0 12px, transparent 13px),
    radial-gradient(circle at 58% 26%, rgba(176, 157, 198, 0.14) 0 16px, transparent 17px),
    radial-gradient(circle at 72% 58%, rgba(176, 157, 198, 0.12) 0 22px, transparent 23px);
  opacity: 0.9;
}

.video-archive__panel::after {
  left: 0;
  bottom: 0;
  width: 190px;
  height: 112px;
  background:
    linear-gradient(135deg, transparent 56%, rgba(136, 116, 165, 0.1) 57% 59%, transparent 60%),
    radial-gradient(circle at 24% 70%, rgba(143, 126, 174, 0.14) 0 9px, transparent 10px);
}

.video-archive__panel > * {
  position: relative;
  z-index: 1;
}

.video-archive__modal .video-archive__modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 18px;
}

.video-archive__modal-head {
  grid-area: head;
  display: grid;
  gap: 6px;
  padding-right: 70px;
}

.video-archive__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #85779a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-archive__eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px 999px 999px 2px;
  background: currentColor;
  box-shadow:
    8px 0 0 currentColor,
    4px -6px 0 currentColor,
    4px 6px 0 currentColor;
  opacity: 0.48;
  transform: scale(0.7) rotate(45deg);
}

.video-archive__modal-head h3 {
  max-width: min(900px, 100%);
  margin: 0;
  color: #493d58;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.75vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.video-archive__modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: #81758f;
  font-size: 0.86rem;
  font-weight: 800;
}

.video-archive__modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-archive__modal-meta span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(133, 119, 154, 0.48);
}

.video-archive__source-row {
  grid-area: sources;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  padding: 0 74px 2px 0;
  border-top: 0;
}

.video-archive__source-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #6f6280;
  font-size: 0.9rem;
  font-weight: 800;
}

.video-archive__source-label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px 999px 999px 2px;
  background: currentColor;
  box-shadow:
    8px 0 0 currentColor,
    4px -6px 0 currentColor,
    4px 6px 0 currentColor;
  opacity: 0.42;
  transform: scale(0.62) rotate(45deg);
}

.video-archive__source-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  border: 2px solid rgba(133, 119, 154, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.video-archive__source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 154px;
  min-height: 40px;
  padding: 7px 16px;
  color: #6b607a;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.video-archive__source-button:hover,
.video-archive__source-button:focus-visible {
  transform: translateY(-1px);
  color: #4e415f;
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.video-archive__source-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #9b8ac6, #8271b1);
  box-shadow: 0 10px 22px rgba(90, 77, 124, 0.24);
}

.video-archive__source-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(41%) sepia(10%) saturate(1048%) hue-rotate(218deg) brightness(89%) contrast(86%);
  transition: filter var(--transition);
}

.video-archive__source-button.is-active .video-archive__source-icon {
  filter: brightness(0) invert(1);
}

.video-archive__source-icon--local {
  position: relative;
  border: 2px solid currentColor;
  border-radius: 7px;
  filter: none;
}

.video-archive__source-icon--local::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.video-archive__stage-shell {
  grid-area: stage;
  width: min(100%, calc((100vh - 220px) * 16 / 9 + 12px));
  margin-inline: auto;
  padding: 6px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(231, 225, 237, 0.58)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 46px rgba(34, 28, 48, 0.2);
}

.video-archive__stage {
  border-radius: 21px;
  box-shadow: none;
  background: #020205;
}

.video-archive__stage iframe,
.video-archive__stage video {
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

.video-archive__actionbar {
  grid-area: actions;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding-top: 8px;
  border-top: 1px solid rgba(130, 118, 148, 0.14);
}

.video-archive__actionbar > .video-archive__action-button {
  grid-column: 1;
  justify-self: start;
}

.video-archive__action-group {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
}

.video-archive__action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 18px;
  color: #645773;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(130, 118, 148, 0.13);
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(72, 58, 91, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.video-archive__action-button:hover,
.video-archive__action-button:focus-visible {
  transform: translateY(-1px);
  color: #493d58;
  border-color: rgba(133, 119, 154, 0.26);
  box-shadow:
    0 14px 30px rgba(72, 58, 91, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  outline: none;
}

.video-archive__action-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.video-archive__action-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.video-archive__signature {
  position: absolute;
  left: 50%;
  top: calc(50% + 9px);
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-self: center;
  gap: 3px 14px;
  min-width: min(280px, 100%);
  color: rgba(118, 104, 139, 0.56);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.video-archive__signature span {
  height: 1px;
  background: currentColor;
}

.video-archive__signature strong {
  grid-column: 2;
}

.video-archive__signature small {
  grid-column: 1 / -1;
  color: rgba(118, 104, 139, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

@media (max-height: 860px) and (min-width: 761px) {
  .video-archive__dialog {
    width: min(1840px, calc(100vw - 12px));
  }

  .video-archive__panel {
    gap: 6px 14px;
    padding: 10px;
  }

  .video-archive__modal-head {
    gap: 4px;
  }

  .video-archive__modal-head h3 {
    font-size: clamp(1.45rem, 2.1vw, 2.2rem);
  }

  .video-archive__source-row,
  .video-archive__actionbar {
    padding-top: 6px;
  }

  .video-archive__stage-shell {
    width: min(100%, calc((100vh - 196px) * 16 / 9 + 12px));
    padding: 6px;
  }

  .video-archive__stage iframe,
  .video-archive__stage video {
    min-height: 0;
  }

  .video-archive__source-button,
  .video-archive__action-button {
    min-height: 38px;
  }

  .video-archive__actionbar {
    min-height: 48px;
  }
}

@media (max-width: 980px) {
  .music-info-entry__body {
    grid-template-columns: 1fr;
  }

  .music-info-entry__visual {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    align-items: end;
  }

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

@media (max-width: 760px) {
  .archive-hero {
    padding: 28px 18px 22px;
    gap: 12px;
  }

  .archive-hero__title {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .archive-hero__rule {
    width: min(300px, 74vw);
  }

  .music-archive__filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 10px);
  }

  .video-archive__filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 10px);
    width: 100%;
  }

  .music-archive__filter,
  .video-archive__filter {
    width: 100%;
    min-width: 0;
  }

  .video-archive__filter {
    min-height: clamp(42px, 12vw, 50px);
    padding: 7px 7px;
    font-size: clamp(0.68rem, 3vw, 0.82rem);
    line-height: 1.22;
    text-align: center;
  }

  .music-archive__filter {
    grid-column: span 2;
    min-height: clamp(42px, 12vw, 50px);
    padding: 7px 7px;
    border-left: 1px solid rgba(150, 136, 166, 0.14);
    border-top: 1px solid rgba(150, 136, 166, 0.14);
    font-size: clamp(0.68rem, 3vw, 0.82rem);
    line-height: 1.22;
    text-align: center;
  }

  .music-archive__filter:first-child {
    border-left: 1px solid rgba(150, 136, 166, 0.14);
    border-top: 1px solid rgba(150, 136, 166, 0.14);
  }

  .music-archive__filter:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .music-archive__filter:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .music-info-entry__body {
    padding: 18px;
    border-radius: 20px;
  }

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

  .music-info-entry__head {
    display: grid;
  }

  .music-info-entry__tag {
    justify-self: start;
    min-width: 48px;
    min-height: 48px;
  }

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

  .music-info-entry__tracks {
    columns: 1;
  }

  .video-archive__filter::after {
    margin-left: auto;
  }

  .video-archive__dialog {
    width: calc(100vw - 20px);
  }

  .video-archive__panel {
    padding: 8px;
    border-radius: 24px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "sources"
      "stage"
      "actions";
    align-items: stretch;
  }

  .video-archive__modal .video-archive__modal-close {
    right: 10px;
    top: 10px;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 1.65rem;
  }

  .video-archive__modal-head {
    padding-right: 52px;
  }

  .video-archive__modal-head h3 {
    font-size: clamp(1.45rem, 7vw, 2.2rem);
  }

  .video-archive__modal-meta {
    gap: 8px 12px;
    font-size: 0.82rem;
  }

  .video-archive__source-row {
    align-items: stretch;
    flex-direction: column;
    padding-right: 0;
  }

  .video-archive__source-list {
    display: grid;
    width: 100%;
    border-radius: 22px;
  }

  .video-archive__source-button {
    min-width: 0;
    width: 100%;
  }

  .video-archive__stage-shell {
    width: 100%;
    margin-inline: 0;
    padding: 6px;
    border-radius: 20px;
  }

  .video-archive__stage {
    border-radius: 16px;
  }

  .video-archive__stage iframe,
  .video-archive__stage video {
    min-height: 0;
    max-height: none;
  }

  .video-archive__actionbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .video-archive__actionbar > .video-archive__action-button,
  .video-archive__action-group {
    grid-column: 1;
    justify-self: stretch;
  }

  .video-archive__signature {
    position: static;
    left: auto;
    top: auto;
    width: min(280px, 100%);
    margin-inline: auto;
    transform: none;
  }

  .video-archive__action-group {
    display: grid;
    justify-content: stretch;
  }

  .video-archive__action-button {
    width: 100%;
  }

}

@media (min-width: 881px) and (max-width: 1100px) {
  .video-archive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 621px) and (max-width: 880px) {
  .video-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .video-archive__grid {
    grid-template-columns: 1fr;
  }
}

.masthead__copy,
.masthead__note,
.timeline-section,
.records-board,
.music-notes,
.portal-note {
  padding: 28px;
}

.masthead h1 {
  font-size: clamp(2.9rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.masthead__note {
  display: grid;
  align-content: end;
  gap: 10px;
}

.masthead__note strong {
  font-family: var(--font-serif);
  font-size: 1.28rem;
}

.home-hero {
  min-height: min(760px, calc(100vh - 156px));
}

.home-hero__copy,
.home-hero__visual {
  padding: 32px;
}

.home-hero__copy {
  display: block;
}

.home-hero__copy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(240px, 0.76fr);
  gap: 18px;
  align-items: end;
  min-height: min(640px, calc(100vh - 208px));
}

.home-hero__content {
  display: grid;
  align-content: center;
}

.home-hero__mobile-avatar,
.home-hero__title-mobile,
.home-hero__mobile-summary {
  display: none;
}

.home-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(3.2rem, 5.9vw, 5.7rem);
  line-height: 0.94;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.home-hero__subtitle {
  margin: 14px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.54rem);
  color: #7f6d8b;
}

.home-hero__tagline {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid rgba(140, 130, 155, 0.18);
  line-height: 1.9;
  color: var(--ink-soft);
}

.home-hero__copy .lead {
  margin-top: 20px;
  max-width: 42rem;
}

.home-hero__copy .button-row {
  margin-top: 26px;
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.hero-tools .button-row {
  display: contents;
  margin-top: 0;
}

.hero-tools .button-row .button {
  width: auto;
}

body[data-page="home"] .hero-tools .button-row .button:first-child {
  position: relative;
  min-width: 186px;
  min-height: 52px;
  padding: 13px 34px;
  overflow: hidden;
  color: #43384d;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 225, 235, 0.68)),
    linear-gradient(135deg, rgba(219, 232, 246, 0.3), rgba(237, 214, 221, 0.28));
  border: 1px solid rgba(122, 83, 107, 0.2);
  box-shadow:
    0 16px 34px rgba(81, 70, 92, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(122, 83, 107, 0.12);
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

body[data-page="home"] .hero-tools .button-row .button:first-child::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.56), transparent 46%, rgba(219, 194, 211, 0.18));
  pointer-events: none;
}

body[data-page="home"] .hero-tools .button-row .button:first-child:hover,
body[data-page="home"] .hero-tools .button-row .button:first-child:focus-visible {
  color: #362c40;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 224, 235, 0.76)),
    linear-gradient(135deg, rgba(219, 232, 246, 0.36), rgba(237, 214, 221, 0.34));
  border-color: rgba(122, 83, 107, 0.28);
  box-shadow:
    0 20px 40px rgba(81, 70, 92, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(122, 83, 107, 0.14);
}

.home-hero__refresh {
  flex: 0 0 auto;
  margin-left: 0;
  color: #7a6a85;
  background: linear-gradient(135deg, rgba(219, 232, 246, 0.42), rgba(237, 214, 221, 0.34));
  border-color: rgba(255, 255, 255, 0.88);
}

.home-hero__refresh svg {
  width: 18px;
  height: 18px;
  display: block;
  transform-origin: center;
}

.home-hero__refresh.is-busy svg {
  animation: homeRefreshPulse var(--motion-duration-slow) var(--motion-ease-soft) infinite alternate;
}

@keyframes homeRefreshPulse {
  from {
    opacity: 0.62;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes homeAvatarHaloSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeDesktopAvatarAura {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.035) rotate(180deg);
  }
}

@keyframes homeAvatarFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes homeHeroSoftRise {
  from {
    opacity: 0;
    translate: 0 30px;
    scale: 0.98;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes homeDesktopTitleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.004);
  }
}

@keyframes homeDesktopAvatarFloat {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) scale(1.018) rotate(-0.4deg);
  }
}

@keyframes homeDesktopAvatarRing {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.status-grid--hero {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.home-hero__figure-side {
  display: grid;
  gap: 12px;
  align-items: end;
}

.home-hero__visual {
  display: grid;
  gap: 18px;
}

.home-hero__figure {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 468px;
  padding: 18px 14px 0;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(247, 241, 246, 0.72) 62%, rgba(242, 237, 243, 0.92));
}

.home-hero__figure-pane,
.home-hero__figure-halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero__figure-pane {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 24%, rgba(255, 255, 255, 0.16) 74%, transparent 100%),
    radial-gradient(circle at 86% 18%, rgba(226, 211, 163, 0.28), transparent 22%);
}

.home-hero__figure-halo {
  inset: 10% 12% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 245, 252, 0.95), rgba(255, 245, 252, 0.18) 48%, rgba(255, 245, 252, 0) 72%);
  filter: blur(2px);
}

.home-hero__figure-image {
  position: relative;
  z-index: 1;
  width: min(100%, 348px);
  max-height: 500px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 28px rgba(110, 96, 122, 0.14));
}

.home-hero__figure-note {
  display: grid;
  gap: 4px;
  justify-self: end;
  max-width: 220px;
  padding: 12px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 251, 247, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.home-hero__figure-note span,
.home-carousel__copy span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero__figure-note strong,
.home-carousel__copy strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.home-carousel-section {
  margin-top: 26px;
}

.home-carousel {
  display: grid;
  gap: 16px;
}

.home-carousel__viewport {
  position: relative;
  min-height: clamp(360px, 48vw, 560px);
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(245, 242, 246, 0.92)),
    radial-gradient(circle at 80% 18%, rgba(226, 211, 163, 0.18), transparent 24%);
}

.home-carousel__slide,
.home-carousel__wash {
  position: absolute;
  inset: 0;
}

.home-carousel__slide {
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity var(--motion-duration-slow) var(--motion-ease-out),
    transform 960ms var(--motion-ease-out);
  pointer-events: none;
}

.home-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.home-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-carousel__wash {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 247, 242, 0.24)),
    linear-gradient(0deg, rgba(56, 47, 63, 0.16), rgba(56, 47, 63, 0) 38%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 24%);
}

.home-carousel__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.home-carousel__copy {
  display: grid;
  gap: 6px;
  max-width: 34rem;
}

.home-carousel__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.home-carousel__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(135, 126, 150, 0.22);
  cursor: pointer;
  transition: width var(--transition), background-color var(--transition), transform var(--transition);
}

.home-carousel__dot.is-active {
  width: 34px;
  background: rgba(131, 118, 152, 0.64);
}

.home-carousel__dot:hover,
.home-carousel__dot:focus-visible {
  transform: translateY(-1px);
  background: rgba(131, 118, 152, 0.46);
}

.visual-frame--hero {
  min-height: min(660px, calc(100vh - 220px));
}

.visual-frame__caption--hero strong {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.home-secondary,
.home-media,
.home-origin-entry-section,
.home-entry,
.character-stage,
.character-dossier,
.projects-stage,
.projects-grid,
.portal-registry {
  margin-top: 42px;
}

.home-secondary,
.home-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-secondary > .panel {
  padding: 28px;
}

.home-latest-entry {
  display: grid;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.home-latest-entry:hover,
.home-latest-entry:focus-visible {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(170, 154, 194, 0.34);
  box-shadow: 0 26px 46px rgba(107, 94, 126, 0.15);
}

.home-latest-entry__more {
  justify-self: start;
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-latest-entry__count {
  display: none;
}

.home-latest-entry .news-list {
  counter-reset: latest-news;
  gap: 0;
  border-top: 1px solid rgba(120, 105, 136, 0.16);
  border-bottom: 1px solid rgba(120, 105, 136, 0.1);
}

.home-latest-entry .news-line {
  counter-increment: latest-news;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 72px;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-latest-entry .news-line + .news-line {
  border-top: 1px solid rgba(120, 105, 136, 0.12);
}

.home-latest-entry .news-line::before {
  content: counter(latest-news, decimal-leading-zero);
  display: inline-grid;
  align-items: center;
  justify-items: start;
  min-width: 38px;
  color: rgba(164, 143, 185, 0.72);
  background: transparent;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  padding-top: 20px;
}

.home-latest-entry .news-line__meta {
  grid-column: 2;
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.home-latest-entry .news-line__body {
  grid-column: 2;
}

.home-latest-entry .news-line__meta span {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(119, 103, 133, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.home-latest-entry .news-line h3 {
  max-width: none;
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  line-height: 1.36;
}

.home-latest-entry .news-line p {
  display: none;
}

.home-latest-entry .news-line:first-child {
  min-height: 0;
  padding: 16px 0 18px;
}

.home-latest-entry .news-line:first-child::before {
  color: rgba(226, 104, 158, 0.72);
  font-size: 1.28rem;
  font-weight: 800;
  padding-top: 22px;
}

.home-latest-entry .news-line:first-child .news-line__meta {
  margin-bottom: 8px;
}

.home-latest-entry .news-line:first-child h3 {
  font-size: clamp(1.12rem, 1.9vw, 1.32rem);
  line-height: 1.28;
}

.home-latest-entry .news-line:first-child p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: rgba(89, 81, 102, 0.72);
  font-size: 0.82rem;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-latest-entry .news-line:nth-child(n + 4) {
  display: none;
}

.home-secondary__stack {
  display: grid;
  gap: 22px;
}

.home-media {
  align-items: stretch;
}

.media-card {
  padding: 28px;
}

.media-card--music-primary,
.media-card--music-side {
  display: grid;
}

.media-card--music-side {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 251, 247, 0.9)),
    radial-gradient(circle at 18% 0%, rgba(217, 211, 238, 0.2), transparent 30%);
}

.home-music-eyebrow {
  margin-bottom: 18px;
}

.media-card--music-primary .music-widget {
  align-items: stretch;
}

.media-card--music-primary .music-widget__controls {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

.media-card--music-primary .music-widget__controls .circle-button {
  flex: 0 0 auto;
}

.media-card--music-primary .music-widget__content {
  align-content: start;
}

.media-card--music-primary .music-widget__art {
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.84), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(246, 242, 247, 0.9));
}

.home-music-panel {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.home-music-panel__queue {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.82)),
    radial-gradient(circle at top right, rgba(220, 203, 150, 0.14), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.home-music-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.home-music-panel__head h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.home-music-embed__heading {
  display: none;
}

.home-music-embed__frame {
  display: contents;
}

.playlist-list--home {
  max-height: clamp(360px, 52vw, 560px);
  overflow: auto;
  padding-right: 4px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-origin-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: 22px;
  padding: 24px;
  align-items: stretch;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.home-origin-entry:hover,
.home-origin-entry:focus-visible {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(170, 154, 194, 0.34);
  box-shadow: 0 28px 52px rgba(107, 94, 126, 0.16);
}

.home-origin-entry .section-heading {
  margin-bottom: 14px;
}

.home-origin-entry__copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.home-origin-entry__summary {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-radius: calc(var(--radius-md) + 2px);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.home-origin-entry__summary span,
.home-origin-entry__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  color: var(--ink-faint);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-origin-entry__summary strong {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.08;
  white-space: nowrap;
}

.home-origin-entry__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 4px 0 6px;
}

.home-origin-entry__logo img {
  display: block;
  width: 100%;
  max-height: 114px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(42, 35, 50, 0.12));
}

.home-origin-entry__summary p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

.home-origin-entry__media {
  min-width: 0;
  width: 100%;
  align-self: center;
  justify-self: center;
  display: flex;
  justify-content: center;
  padding: 6px 0 14px;
}

.home-origin-entry__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: clamp(240px, 25vw, 340px);
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(247, 242, 246, 0.88)),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 24%);
}

.home-origin-entry__preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.home-origin-entry__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 247, 242, 0.02) 38%, rgba(56, 47, 63, 0.28)),
    radial-gradient(circle at 82% 16%, rgba(226, 211, 163, 0.22), transparent 24%);
  pointer-events: none;
}

.home-origin-entry__badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
}

.home-origin-entry:hover .home-origin-entry__preview,
.home-origin-entry:focus-visible .home-origin-entry__preview {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.character-dossier-section {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: start;
  overflow: visible;
}

.character-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  grid-template-areas:
    "title facts"
    "detail portrait";
  align-items: stretch;
  gap: 22px;
}

.character-hero-note {
  display: grid;
  gap: 18px;
  margin-bottom: 0;
  padding: 30px 34px;
}

.character-hero-note .section-heading {
  margin-bottom: 0;
}

.character-hero-note__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.character-hero-note__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.34)),
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.7), transparent 44%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    0 12px 24px rgba(107, 94, 126, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.character-hero-note__chips a:hover,
.character-hero-note__chips a:focus-visible,
.character-hero-note__chips a.is-active {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 246, 0.62)),
    radial-gradient(circle at 28% 18%, rgba(226, 209, 238, 0.32), transparent 44%);
  border-color: rgba(190, 164, 208, 0.48);
  box-shadow:
    0 14px 28px rgba(107, 94, 126, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  outline: none;
}

.character-profile-stack {
  display: grid;
  gap: 34px;
}

.character-profile-grid--member {
  scroll-margin-top: 118px;
  animation: characterPanelIn var(--motion-duration-base) var(--motion-ease-out) both;
}

.character-profile-grid--member[hidden] {
  display: none;
}

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

.character-switch {
  position: fixed;
  top: max(96px, calc(50vh - 116px));
  left: min(calc(100vw - 112px), calc((100vw - 1240px) / 2 + 1254px));
  right: auto;
  z-index: 42;
  display: grid;
  align-self: start;
  gap: 6px;
  width: 104px;
  max-height: calc(100vh - 176px);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 249, 246, 0.32)),
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.74), transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(217, 211, 238, 0.2), transparent 48%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 40px rgba(107, 94, 126, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transform: none;
  scrollbar-width: none;
}

body[data-page="character"] .character-switch {
  position: fixed;
  top: max(96px, calc(50vh - 116px));
  left: min(calc(100vw - 112px), calc((100vw - 1240px) / 2 + 1254px));
  right: auto;
  margin: 0;
  transform: none;
}

.character-switch::-webkit-scrollbar {
  display: none;
}

.character-switch__eyebrow {
  padding: 3px 4px 1px;
  color: var(--ink-faint);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.character-switch__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 6px;
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.character-switch__item span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: rgba(93, 79, 110, 0.78);
  background: linear-gradient(180deg, rgba(237, 226, 247, 0.88), rgba(255, 255, 255, 0.68));
  font-family: var(--font-serif);
  font-size: 0.66rem;
}

.character-switch__item strong {
  overflow: visible;
  font-size: 0.74rem;
  line-height: 1.15;
  white-space: normal;
  word-break: keep-all;
}

.character-switch__item:hover,
.character-switch__item:focus-visible,
.character-switch__item.is-active {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 246, 0.58)),
    radial-gradient(circle at 20% 16%, rgba(226, 209, 238, 0.28), transparent 48%);
  border-color: rgba(190, 164, 208, 0.46);
  box-shadow:
    0 10px 22px rgba(107, 94, 126, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 1390px) {
  .character-switch {
    position: sticky;
    top: 86px;
    left: auto;
    right: auto;
    display: flex;
    width: auto;
    max-height: none;
    margin: 0 0 22px;
    overflow-x: auto;
    overflow-y: hidden;
    transform: none;
    scrollbar-width: none;
  }

  body[data-page="character"] .character-switch {
    position: sticky;
    top: 86px;
    left: auto;
    right: auto;
    margin: 0 0 22px;
    transform: none;
  }

  .character-switch__eyebrow {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 2px;
  }

  .character-switch__item {
    flex: 0 0 auto;
    min-width: 124px;
  }
}

.character-title-card,
.character-facts-card,
.character-detail-card,
.character-portrait-card {
  padding: 28px;
}

.character-title-card {
  grid-area: title;
  display: grid;
  align-content: center;
  min-height: 292px;
  padding: 34px;
}

.character-title-card h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 4.55rem);
  line-height: 1;
  letter-spacing: 0.05em;
}

.character-title-card__en {
  margin: 16px 0 0;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.54rem);
  letter-spacing: 0.12em;
}

.character-title-card__line {
  max-width: 44rem;
  margin: 32px 0 0;
  padding: 14px 18px;
  border-left: 2px solid rgba(145, 125, 93, 0.18);
  border-radius: 0 22px 22px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.78;
}

.character-card-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.character-card-heading h2,
.character-file h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.character-card-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.character-facts-card {
  grid-area: facts;
  display: grid;
  align-content: center;
}

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

.character-fact {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at top right, rgba(217, 211, 238, 0.14), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.character-fact span {
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.character-fact strong {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  line-height: 1.55;
}

.character-detail-card {
  grid-area: detail;
  min-height: 680px;
}

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

.character-file__intro,
.character-file__block {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 246, 0.82)),
    radial-gradient(circle at top right, rgba(220, 203, 150, 0.12), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.character-file__intro,
.character-file__block--keywords,
.character-file__block--labels,
.character-file__block--stats {
  grid-column: 1 / -1;
}

.character-file h3 {
  margin-bottom: 0;
  font-size: 1.24rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(145, 125, 93, 0.12);
}

.character-file__intro p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.character-file .detail-list {
  margin: 0;
  padding-left: 18px;
}

.character-file__block--labels {
  padding: 16px 18px;
}

.character-file__block--labels .meta-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.character-file__block--labels .meta-list__row {
  gap: 4px;
  padding: 11px 14px;
  border-radius: 18px;
}

.character-file__block--labels .meta-list__row strong {
  line-height: 1.45;
}

.character-portrait-card {
  grid-area: portrait;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(420px, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
  padding: 18px;
}

.character-portrait {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(247, 241, 246, 0.86)),
    radial-gradient(circle at 52% 14%, rgba(255, 255, 255, 0.58), transparent 32%);
}

.character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.character-portrait__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%, rgba(66, 56, 72, 0.18)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.22), transparent 24%);
}

.character-portrait__plate {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 246, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.character-portrait__plate span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.character-portrait__plate strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.character-portrait__plate em {
  color: var(--ink-soft);
  font-style: normal;
  letter-spacing: 0.1em;
}

.character-side-stack {
  display: grid;
  grid-template-rows: minmax(180px, 1fr) minmax(150px, 0.9fr);
  gap: 14px;
  min-height: 0;
}

.character-impression-card,
.character-summary-card {
  display: grid;
  align-content: center;
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at top right, rgba(217, 211, 238, 0.16), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.character-impression-card blockquote {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 250, 246, 0.78)),
    radial-gradient(circle at top right, rgba(220, 203, 150, 0.16), transparent 30%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.18rem);
  line-height: 1.25;
  text-align: center;
}

.character-impression-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.character-impression-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.64);
}

.character-impression-card dt {
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.character-impression-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  line-height: 1.6;
}

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

.character-summary-card__items span {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 10px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 250, 246, 0.84)),
    radial-gradient(circle at top, rgba(217, 211, 238, 0.16), transparent 44%);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.character-summary-card__items small {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.character-summary-card__items strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.36rem);
  line-height: 0.9;
}

.character-summary-card__note {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.75;
}

.character-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 22px;
}

.character-stage__copy,
.character-stage__visual,
.video-page__copy {
  padding: 28px;
}

.character-stage__copy h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.character-stage__english {
  margin: 12px 0 0;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
}

.character-stage__identity {
  margin: 16px 0 0;
  font-size: 1.02rem;
  line-height: 1.85;
}

.character-stage__copy .lead {
  margin-top: 24px;
}

.visual-frame--portrait {
  min-height: 760px;
}

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

.character-dossier > article {
  padding: 28px;
}
.profile-layout > article,
.profile-card-group,
.profile-journey {
  padding: 28px;
}

.profile-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

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

@media (min-width: 901px) {
  body[data-page="author"] .author-profile-section,
  body[data-page="studio"] .studio-profile-section,
  body[data-page="staffcast"] .staffcast-profile-section,
  body[data-page="staffprofile"] .staff-profile-body,
  .story-summary,
  .pilgrimage-summary {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) + 4px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 247, 0.58)),
      radial-gradient(circle at 8% 6%, rgba(255, 255, 255, 0.54), transparent 30%),
      radial-gradient(circle at 100% 82%, rgba(225, 204, 228, 0.18), transparent 28%);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
      0 24px 70px rgba(111, 98, 126, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }

  body[data-page="author"] .author-profile-section::before,
  body[data-page="studio"] .studio-profile-section::before,
  body[data-page="staffcast"] .staffcast-profile-section::before,
  body[data-page="staffprofile"] .staff-profile-body::before,
  .story-summary::before,
  .pilgrimage-summary::before {
    content: "✿";
    position: absolute;
    top: 20px;
    left: clamp(34px, 4.4vw, 54px);
    right: clamp(34px, 4.4vw, 54px);
    display: grid;
    place-items: center;
    height: 22px;
    color: rgba(141, 120, 165, 0.78);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1;
    background:
      linear-gradient(90deg, transparent, rgba(141, 120, 165, 0.12) 28%, rgba(141, 120, 165, 0.24)) left 50% / calc(50% - 32px) 1px no-repeat,
      linear-gradient(90deg, rgba(141, 120, 165, 0.24), rgba(141, 120, 165, 0.12) 72%, transparent) right 50% / calc(50% - 32px) 1px no-repeat;
    pointer-events: none;
  }

  body[data-page="author"] .author-profile-section > .section-heading,
  body[data-page="studio"] .studio-profile-section > .section-heading,
  body[data-page="staffcast"] .staffcast-profile-section > .section-heading,
  body[data-page="staffprofile"] .staff-profile-body > .section-heading {
    position: relative;
    z-index: 1;
    padding-top: clamp(32px, 3.4vw, 44px);
  }

  body[data-page="author"] .author-profile,
  body[data-page="studio"] .studio-profile,
  body[data-page="staffcast"] .staffcast-profile__layout,
  body[data-page="staffprofile"] .staff-profile-body__layout,
  .story-summary__copy,
  .story-summary__side,
  .story-summary__routes,
  .pilgrimage-summary__main,
  .pilgrimage-summary__notes {
    position: relative;
    z-index: 1;
  }

  .story-summary,
  .pilgrimage-summary {
    padding-top: clamp(32px, 3.4vw, 44px);
  }

  body[data-page="author"] .author-profile__essay,
  body[data-page="author"] .author-profile__side,
  body[data-page="studio"] .studio-profile__copy,
  body[data-page="studio"] .studio-profile__facts,
  body[data-page="staffcast"] .staffcast-profile__copy,
  body[data-page="staffcast"] .staffcast-profile__facts,
  body[data-page="staffprofile"] .staff-profile-essay,
  body[data-page="staffprofile"] .staff-profile-facts,
  .pilgrimage-summary__main,
  .pilgrimage-summary__notes {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="author"] .author-profile,
  body[data-page="studio"] .studio-profile,
  body[data-page="staffcast"] .staffcast-profile__layout,
  body[data-page="staffprofile"] .staff-profile-body__layout,
  .pilgrimage-summary {
    gap: clamp(28px, 3.4vw, 48px);
    padding: clamp(14px, 1.8vw, 22px) 0 0;
  }

  body[data-page="author"] .author-profile__essay,
  body[data-page="studio"] .studio-profile__copy,
  body[data-page="staffcast"] .staffcast-profile__copy,
  body[data-page="staffprofile"] .staff-profile-essay,
  .story-summary__copy {
    padding-left: clamp(34px, 4.2vw, 50px);
    padding-right: clamp(18px, 2.2vw, 26px);
  }

  body[data-page="author"] .author-profile__side,
  body[data-page="studio"] .studio-profile__facts,
  body[data-page="staffcast"] .staffcast-profile__facts,
  body[data-page="staffprofile"] .staff-profile-facts,
  .story-summary__side {
    padding-right: clamp(34px, 4.2vw, 50px);
    padding-left: clamp(18px, 2.2vw, 26px);
  }

  .story-summary__routes {
    padding: 0 clamp(34px, 4.2vw, 50px);
  }

  .pilgrimage-summary__main {
    padding-left: clamp(34px, 4.2vw, 50px);
    padding-right: clamp(18px, 2.2vw, 26px);
  }

  .pilgrimage-summary__notes {
    padding-left: clamp(18px, 2.2vw, 26px);
    padding-right: clamp(34px, 4.2vw, 50px);
  }

  body[data-page="author"] .author-profile__facts-head,
  body[data-page="studio"] .studio-profile__facts .encyclopedia-facts,
  body[data-page="staffcast"] .staffcast-profile__facts .encyclopedia-facts,
  body[data-page="staffprofile"] .staff-profile-facts .encyclopedia-facts {
    position: relative;
    z-index: 1;
  }
}

.profile-section-heading {
  display: grid;
  gap: 10px;
  max-width: 42rem;
  margin-bottom: 22px;
}

.profile-section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.profile-section-heading p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.profile-info-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-height: 112px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 250, 246, 0.88)),
    radial-gradient(circle at top right, rgba(220, 203, 150, 0.14), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.profile-info-card--wide {
  grid-column: 1 / -1;
  min-height: 124px;
}

.profile-info-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #8d78a5;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.profile-info-card div {
  display: grid;
  gap: 8px;
}

.profile-info-card strong {
  color: var(--ink);
  line-height: 1.75;
}

.profile-contact-grid {
  display: grid;
  gap: 13px;
}

.profile-contact-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 250, 246, 0.54)),
    radial-gradient(circle at 96% 20%, rgba(217, 211, 238, 0.18), transparent 32%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.profile-contact-card:hover,
.profile-contact-card:focus-visible {
  transform: translateY(var(--motion-hover-y));
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.profile-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(217, 211, 238, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.profile-contact-card__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.78;
  filter: brightness(0) saturate(100%) invert(31%) sepia(9%) saturate(611%) hue-rotate(226deg) brightness(94%) contrast(86%);
}

.profile-contact-card__body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-contact-card__body strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.45;
}

.profile-contact-card__arrow {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-journey {
  margin-top: 22px;
}

.profile-section-heading--journey {
  margin-bottom: 24px;
}

.profile-journey-list {
  position: relative;
  display: grid;
  gap: 16px;
}

.profile-journey-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 78px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(140, 130, 155, 0.24), transparent);
}

.profile-journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at 94% 16%, rgba(191, 214, 236, 0.16), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.profile-journey-item::before {
  content: "";
  position: absolute;
  left: 73px;
  top: 32px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(220, 203, 150, 0.16);
}

.profile-journey-item__time {
  display: grid;
  gap: 8px;
  padding-left: 4px;
}

.profile-journey-item__time span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.profile-journey-item__copy {
  display: grid;
  gap: 10px;
}

.profile-journey-item__copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}

.profile-journey-item__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.projects-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 22px;
  align-items: stretch;
  min-height: 310px;
  padding: 28px;
}

.projects-hero__copy,
.projects-featured,
.projects-secondary,
.projects-grid > article {
  padding: 20px;
}

.projects-hero__copy {
  display: grid;
  align-content: center;
  min-height: 254px;
  padding: 8px 10px 8px 2px;
}

.projects-hero__copy h1 {
  margin: 12px 0 0;
  font-size: clamp(2.9rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.projects-hero__copy .lead {
  max-width: 38rem;
  margin-top: 24px;
}

.projects-hero__overview {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 254px;
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(140, 130, 155, 0.16);
}

.projects-note__copy {
  display: grid;
  gap: 10px;
}

.projects-note__copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.projects-note__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.projects-note__stat {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 246, 0.9)),
    radial-gradient(circle at top right, rgba(219, 232, 246, 0.14), transparent 26%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.projects-note__stat span,
.projects-note__taxonomy > span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.projects-note__stat strong {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.5;
}

.projects-note__taxonomy {
  display: grid;
  gap: 12px;
}

.projects-note__taxonomy .tag-cloud {
  gap: 10px;
}

.projects-featured {
  margin-top: 22px;
  padding: 28px;
}

.projects-featured .section-heading,
.projects-secondary .section-heading {
  max-width: 46rem;
}

.projects-secondary {
  margin-top: 22px;
  padding: 28px;
}

.projects-secondary .section-heading {
  margin-bottom: 22px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.projects-grid > article {
  height: 100%;
  overflow: visible;
  padding: 24px;
  transition:
    padding var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.project-panel {
  height: 100%;
}

.projects-grid > article:hover,
.projects-grid > article:focus-within {
  padding: 26px;
  border-color: rgba(186, 165, 205, 0.28);
  box-shadow:
    0 24px 46px rgba(84, 67, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.projects-grid .project-card__cover {
  min-height: 232px;
}

.records-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 22px;
  align-items: stretch;
  min-height: 304px;
  padding: 28px;
}

.records-hero__copy {
  padding: 20px;
}

.records-hero__copy {
  display: grid;
  align-content: center;
  min-height: 248px;
  padding: 8px 10px 8px 2px;
}

.records-hero__copy h1 {
  margin: 12px 0 0;
  font-size: clamp(2.9rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.records-hero__copy .lead {
  max-width: 38rem;
  margin-top: 24px;
}

.records-hero__overview {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 248px;
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(140, 130, 155, 0.16);
}

.records-note__copy {
  display: grid;
  gap: 10px;
}

.records-note__copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.records-note__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.records-note__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.records-note__stat {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 246, 0.9)),
    radial-gradient(circle at top right, rgba(219, 232, 246, 0.14), transparent 26%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.records-note__stat span,
.records-note__taxonomy > span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.records-note__stat strong {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.5;
}

.records-note__taxonomy {
  display: grid;
  gap: 12px;
}

.records-note__taxonomy .tag-cloud {
  gap: 10px;
}

.records-board {
  margin-top: 22px;
  padding: 28px;
}

.records-board--news {
  display: grid;
  gap: 22px;
  padding: clamp(6px, 1.2vw, 12px) 0 0;
}

.records-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(68, 57, 78, 0.22);
}

.records-board__head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: 0.03em;
}

.records-board__head p {
  max-width: 44rem;
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.records-board__count {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 96px;
  padding-bottom: 4px;
}

.records-board__count span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.records-board__count strong {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1;
}

.records-board--news .records-filter {
  margin: 0 0 2px;
}

.records-board + .ency-section {
  margin-top: 36px;
}

.records-board .section-heading {
  max-width: 44rem;
  margin-bottom: 22px;
}

.portal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.82fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  min-height: 318px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 252, 250, 0.94)),
    radial-gradient(ellipse at 82% 10%, rgba(217, 211, 238, 0.24), transparent 34%),
    radial-gradient(ellipse at 6% 96%, rgba(237, 214, 221, 0.22), transparent 30%);
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: 18px 28px;
  pointer-events: none;
  background:
    radial-gradient(12px 6px at 38% 34%, rgba(236, 164, 204, 0.32), transparent 70%),
    radial-gradient(10px 5px at 47% 78%, rgba(236, 164, 204, 0.26), transparent 72%),
    radial-gradient(13px 6px at 94% 40%, rgba(201, 156, 220, 0.24), transparent 74%);
  opacity: 0.78;
}

.portal-hero__copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 238px;
  padding: 4px 10px 4px 0;
  position: relative;
  z-index: 1;
}

.portal-hero__copy .page-title {
  margin: 0;
  color: #44395f;
  font-size: clamp(3rem, 5.8vw, 4.9rem);
  line-height: 0.98;
}

.portal-hero__copy .page-subtitle {
  color: #9a77d2;
  font-size: clamp(1rem, 1.6vw, 1.26rem);
  letter-spacing: 0.18em;
}

.portal-hero__copy .page-description {
  max-width: 40rem;
  color: #6f6680;
}

.portal-hero__pledge {
  display: inline-grid;
  gap: 5px;
  width: min(100%, 250px);
  margin-top: 10px;
  padding: 13px 18px;
  border-radius: 18px;
  color: #6f5a96;
  background:
    linear-gradient(135deg, rgba(240, 230, 255, 0.76), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 28px rgba(143, 116, 183, 0.1);
}

.portal-hero__pledge span,
.portal-hero__stat span {
  color: #9384b4;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.portal-hero__pledge strong,
.portal-hero__stat strong {
  color: #4d4268;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  line-height: 1.45;
}

.portal-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.portal-hero__stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 252, 250, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 16px 32px rgba(107, 94, 126, 0.08);
}

.portal-hero__stat > div {
  display: grid;
  gap: 5px;
}

.portal-hero__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #9676d7;
  background:
    linear-gradient(135deg, rgba(245, 239, 255, 0.92), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(221, 206, 248, 0.72);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 18px rgba(143, 116, 183, 0.08);
  line-height: 1;
}

.portal-hero__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-hero__icon--apply svg,
.portal-hero__icon--add svg {
  width: 20px;
  height: 20px;
}

.portal-hero__overview {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 248px;
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(140, 130, 155, 0.16);
}

.portal-note__copy {
  display: grid;
  gap: 10px;
}

.portal-note__copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.portal-note__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.portal-note__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-note__stat {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 246, 0.9)),
    radial-gradient(circle at top right, rgba(219, 232, 246, 0.14), transparent 26%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.portal-note__stat span,
.portal-note__taxonomy > span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-note__stat strong {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.5;
}

.portal-note__taxonomy {
  display: grid;
  gap: 12px;
}

.portal-note__taxonomy .tag-cloud {
  gap: 10px;
}

.portal-registry {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 252, 250, 0.94)),
    radial-gradient(ellipse at 86% 24%, rgba(217, 211, 238, 0.18), transparent 32%);
}

.portal-registry__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
}

.portal-registry .section-heading {
  max-width: 44rem;
  margin-bottom: 0;
}

.portal-registry .section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #44395f;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.portal-registry .section-heading h2 span,
.portal-registry__welcome span,
.portal-registry__closing::before,
.portal-registry__closing::after {
  color: #a58ae1;
}

.portal-registry__welcome {
  margin: 46px 0 0;
  color: #a492c6;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.portal-registry__welcome span {
  margin-left: 14px;
  font-size: 1.35rem;
}

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

.members-grid--single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.members-grid--single .member-card {
  width: min(100%, 860px);
}

.members-grid--single .member-card__cover {
  min-height: 156px;
  max-height: 180px;
}

.portal-registry__closing {
  justify-self: center;
  margin: 2px 0 0;
  color: #9a86c6;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.portal-registry__closing::before,
.portal-registry__closing::after {
  content: "✿";
  margin: 0 14px;
}

@media (max-width: 980px) {
  .portal-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portal-hero__copy {
    min-height: auto;
  }

  .portal-registry__head {
    display: grid;
  }

  .portal-registry__welcome {
    margin: 0;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .portal-hero {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .portal-hero__copy .page-title {
    font-size: clamp(2.55rem, 13vw, 3.25rem);
  }

  .portal-hero__copy .page-description {
    font-size: 0.92rem;
  }

  .portal-hero__pledge {
    width: min(100%, 250px);
  }

  .portal-hero__stats {
    grid-template-columns: 1fr;
  }

  .portal-hero__stat {
    min-height: 84px;
    padding: 15px 16px;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .portal-registry__closing::before,
  .portal-registry__closing::after {
    display: none;
  }
}

.button-row--compact {
  gap: 10px;
}

.button-row--compact .button {
  padding-inline: 16px;
  min-height: 40px;
}

.origin-overview {
  padding: 14px;
  overflow: hidden;
}

.origin-overview__layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.94fr) minmax(440px, 1.06fr);
  gap: 16px;
  align-items: stretch;
  min-height: clamp(640px, 64vh, 780px);
}

.origin-cover-card {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 249, 244, 0.24)),
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.26), transparent 28%);
  isolation: isolate;
}

.origin-cover-card img,
.origin-character-card__visual img {
  width: 100%;
  height: 100%;
}

.origin-cover-card img {
  display: block;
  min-height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.44);
  object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.origin-cover-card__shade,
.origin-character-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.origin-cover-card__shade {
  z-index: 1;
  display: block;
  background:
    linear-gradient(180deg, rgba(70, 58, 76, 0) 34%, rgba(54, 44, 58, 0.22) 68%, rgba(37, 30, 40, 0.52)),
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.18), transparent 32%);
}

.origin-cover-card__caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 6px;
  padding: 16px 18px 17px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 244, 0.64)),
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.52), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 34px rgba(59, 48, 66, 0.12);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.origin-cover-card__caption span,
.origin-summary-card__meta-row span,
.origin-summary-card__status span,
.origin-summary-card__keywords > span,
.origin-note-mark span,
.origin-info-card span,
.origin-character-card__role {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.origin-cover-card__caption strong,
.origin-summary-card__copy h2,
.origin-info-card strong,
.origin-character-card h3 {
  margin: 0;
  font-family: var(--font-serif);
}

.origin-cover-card__caption strong {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.origin-cover-card__caption p,
.origin-summary-card__copy p,
.origin-summary-card__meta-row strong,
.origin-character-card__head p,
.origin-character-card__note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.origin-cover-card__caption p {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.origin-summary-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at top right, rgba(220, 203, 150, 0.12), transparent 26%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.origin-summary-card__copy {
  display: grid;
  gap: 8px;
}

.origin-summary-card__copy h2 {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  line-height: 1.06;
}

.origin-summary-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.origin-summary-card__meta-row,
.origin-summary-card__status,
.origin-note-mark,
.origin-info-card {
  display: grid;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.origin-summary-card__meta-row {
  align-content: start;
  min-height: 64px;
}

.origin-summary-card__status {
  grid-template-columns: minmax(84px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
}

.origin-summary-card__meta-row strong,
.origin-summary-card__status strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.5;
}

.origin-summary-card__status strong,
.origin-note-mark strong {
  font-family: var(--font-serif);
  font-size: 1rem;
}

.origin-summary-card__keywords {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.origin-summary-card__keywords .tag-cloud {
  gap: 8px;
}

.origin-summary-card__note {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.origin-summary-card__note span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.origin-summary-card__note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.66;
}

.origin-summary-card__path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.origin-summary-card__path-row {
  display: grid;
  gap: 6px;
  align-items: start;
  min-height: 74px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.origin-summary-card__path-row span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.origin-summary-card__path-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.origin-summary-card__routes .origin-section-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.origin-summary-card__routes {
  margin-top: 4px;
}

.origin-summary-card__routes .origin-section-nav__item {
  min-height: 78px;
  padding: 10px 11px;
}

.origin-summary-card__routes .origin-section-nav__thumb {
  width: 42px;
  height: 42px;
}

.origin-layout {
  display: grid;
  gap: 22px;
}

.origin-layout__rail {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: auto;
  transform: none;
}

.origin-layout__main {
  min-width: 0;
}

.origin-layout__main > .page-section:first-child,
.origin-layout__main > .page-section-gap:first-child {
  margin-top: 0;
}

.origin-series-tabs {
  align-items: start;
}

.origin-series-panel {
  display: grid;
  gap: 22px;
  min-width: 0;
  animation: originPanelIn var(--motion-duration-base) var(--motion-ease-out) both;
}

.origin-series-panel[hidden] {
  display: none !important;
}

.origin-series-panel > .page-section:first-child,
.origin-series-panel > .page-section-gap:first-child,
.origin-series-panel > [class$="-page"]:first-child > :first-child {
  margin-top: 0;
}

.origin-series-panel > .story-page,
.origin-series-panel > .character-page,
.origin-series-panel > .books-page,
.origin-series-panel > .author-page,
.origin-series-panel > .studio-page,
.origin-series-panel > .staffcast-page,
.origin-series-panel > .pilgrimage-page {
  display: grid;
  gap: 22px;
}

.origin-series-panel > .story-page > :first-child,
.origin-series-panel > .character-page > :first-child,
.origin-series-panel > .books-page > :first-child,
.origin-series-panel > .author-page > :first-child,
.origin-series-panel > .studio-page > :first-child,
.origin-series-panel > .staffcast-page > :first-child,
.origin-series-panel > .pilgrimage-page > :first-child {
  margin-top: 0;
}

.origin-series-panel .origin-switcher {
  display: none;
}

.origin-series-panel--episodes .origin-encyclopedia-entry {
  min-height: 360px;
}

.origin-panel-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 20px;
  align-items: stretch;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
}

.origin-panel-intro__main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.origin-panel-intro__copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.origin-panel-intro__eyebrow {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.origin-panel-intro h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.72rem, 3vw, 2.46rem);
  line-height: 1.16;
}

.origin-panel-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.82;
}

.origin-panel-intro__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.origin-panel-intro__facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border-top: 1px solid rgba(122, 112, 138, 0.12);
  background: rgba(255, 255, 255, 0.24);
}

.origin-panel-intro__facts dt {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-panel-intro__facts dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.28;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-panel-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.origin-panel-intro__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 112, 138, 0.18);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.origin-panel-intro__action:hover,
.origin-panel-intro__action:focus-visible {
  transform: translateY(var(--motion-hover-y-soft));
  border-color: rgba(174, 150, 199, 0.38);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(84, 67, 100, 0.08);
  outline: none;
}

.origin-panel-intro__action--primary {
  border-color: rgba(174, 150, 199, 0.42);
  background: rgba(241, 232, 249, 0.72);
}

.origin-panel-intro__visual {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(250, 246, 252, 0.38)),
    radial-gradient(circle at 30% 20%, rgba(217, 211, 238, 0.2), transparent 48%);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.origin-panel-intro__visual img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: var(--origin-panel-intro-fit, cover);
  object-position: var(--origin-panel-intro-position, center center);
}

.origin-panel-intro__visual--placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.origin-panel-intro__visual--placeholder span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.origin-panel-intro__visual--placeholder strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.origin-panel-body {
  display: grid;
  gap: 22px;
  scroll-margin-top: 112px;
}

.origin-episodes-embed.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.origin-episodes-embed .episode-page-content {
  display: grid;
  gap: 22px;
}

@keyframes originPanelIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.origin-sidebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 249, 246, 0.36)),
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.74), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(191, 207, 231, 0.18), transparent 46%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    0 18px 38px rgba(84, 67, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(138%);
  -webkit-backdrop-filter: blur(20px) saturate(138%);
}

.origin-sidebar__copy {
  flex: 0 0 128px;
  display: grid;
  gap: 5px;
  padding: 0 4px;
  text-align: left;
}

.origin-sidebar__copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.18;
}

.origin-sidebar__count {
  justify-self: start;
  padding: 3px 0 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.origin-sidebar__copy p {
  display: none;
}

.origin-sidebar__nav,
.origin-section-nav {
  display: grid;
  gap: 10px;
}

.origin-sidebar__list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.origin-sidebar__list::-webkit-scrollbar {
  display: none;
}

.origin-sidebar__item {
  position: relative;
  flex: 0 0 166px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 11px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 0 0, rgba(218, 231, 246, 0.28), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.origin-sidebar__item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(174, 150, 199, 0.72), rgba(167, 207, 230, 0.36));
  opacity: 0;
  transition: opacity var(--transition);
}

.origin-sidebar__number {
  position: relative;
  z-index: 1;
  color: rgba(118, 104, 132, 0.5);
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1;
}

.origin-sidebar__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.origin-sidebar__text small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-sidebar__text strong {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.22;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-sidebar__item:hover,
.origin-sidebar__item:focus-visible,
.origin-sidebar__item.is-active {
  transform: translateY(var(--motion-hover-y-soft));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 251, 247, 0.52)),
    radial-gradient(circle at 0 0, rgba(218, 231, 246, 0.36), transparent 46%);
  border-color: rgba(186, 165, 205, 0.34);
  box-shadow: 0 10px 22px rgba(84, 67, 100, 0.08);
  outline: none;
}

.origin-sidebar__item:hover::before,
.origin-sidebar__item:focus-visible::before,
.origin-sidebar__item.is-active::before {
  opacity: 1;
}

.origin-sidebar .origin-section-nav__item {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-height: 34px;
  padding: 6px 7px 6px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.origin-sidebar .origin-section-nav__item:nth-child(-n + 2) {
  min-height: 36px;
}

.origin-sidebar .origin-section-nav__item:hover,
.origin-sidebar .origin-section-nav__item:focus-visible {
  transform: translateY(var(--motion-hover-y-soft));
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(186, 165, 205, 0.28);
  box-shadow: none;
}

.origin-sidebar .origin-section-nav__item::before {
  inset: 9px auto 9px 6px;
  width: 2px;
  height: auto;
  border-radius: 999px;
}

.origin-sidebar .origin-section-nav__item::after {
  display: none;
}

.origin-sidebar .origin-section-nav__thumb {
  display: none;
}

.origin-sidebar .origin-section-nav__item span {
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.origin-sidebar .origin-section-nav__item strong {
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-sidebar .origin-section-nav__item em {
  display: none;
}

.origin-sidebar__jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding-top: 0;
}

.origin-sidebar__jump a {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.origin-sidebar__jump a:hover,
.origin-sidebar__jump a:focus-visible {
  transform: translateY(var(--motion-hover-y-soft));
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(186, 165, 205, 0.38);
  outline: none;
}

.origin-sidebar__jump span {
  color: var(--ink-faint);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.origin-sidebar__jump strong {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-switcher {
  margin-top: var(--page-section-gap);
  scroll-margin-top: 110px;
}

.books-page .origin-switcher,
.story-page .origin-switcher,
.author-page .origin-switcher,
.studio-page .origin-switcher,
.staffcast-page .origin-switcher,
.staff-profile-page .origin-switcher,
.pilgrimage-page .origin-switcher {
  margin-top: 0;
}

.episode-page-content .origin-switcher {
  margin: 0 0 var(--page-section-gap);
}

.origin-switcher__shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.26fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.72)),
    radial-gradient(circle at 10% 0%, rgba(219, 232, 246, 0.24), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(217, 211, 238, 0.2), transparent 34%);
  box-shadow:
    0 22px 48px rgba(84, 67, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.origin-switcher__head {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(250, 246, 252, 0.42)),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.76), transparent 42%),
    radial-gradient(circle at 86% 82%, rgba(219, 232, 246, 0.2), transparent 44%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(84, 67, 100, 0.06);
}

.origin-switcher__head::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(122, 112, 138, 0.22), rgba(122, 112, 138, 0.06));
  pointer-events: none;
}

.origin-switcher__head::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 16px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 38% 42%, rgba(217, 211, 238, 0.18), transparent 68%);
  pointer-events: none;
}

.origin-switcher__head span,
.origin-switcher__item span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.origin-switcher__head strong {
  font-family: var(--font-serif);
  font-size: 1.34rem;
  line-height: 1.28;
}

.origin-switcher__head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.72;
}

.origin-switcher__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.origin-switcher__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "index label"
    "index title"
    "index detail";
  column-gap: 10px;
  row-gap: 3px;
  min-width: 0;
  min-height: 82px;
  padding: 13px 14px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(252, 248, 244, 0.82)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.62), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 10px 22px rgba(84, 67, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.origin-switcher__item::before {
  content: "";
  position: absolute;
  inset: auto 14px 0 40px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(186, 165, 205, 0.24);
}

.origin-switcher__item b {
  grid-area: index;
  align-self: center;
  width: 28px;
  color: rgba(117, 100, 136, 0.36);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.origin-switcher__item span {
  grid-area: label;
}

.origin-switcher__item strong {
  grid-area: title;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.26;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-switcher__item small {
  grid-area: detail;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.origin-switcher__item:hover,
.origin-switcher__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(186, 165, 205, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(253, 249, 245, 0.92)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 42%);
  box-shadow:
    0 16px 30px rgba(84, 67, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  outline: none;
}

.origin-switcher__item.is-active {
  color: var(--ink);
  border-color: rgba(174, 150, 199, 0.45);
  background:
    linear-gradient(180deg, rgba(241, 232, 249, 0.88), rgba(255, 242, 248, 0.74)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 42%);
}

.origin-switcher__item.is-active::before {
  background: rgba(174, 150, 199, 0.62);
}

@media (min-width: 1660px) {
  .origin-layout {
    display: block;
  }

  .origin-layout__rail {
    position: fixed;
    left: max(14px, calc((100vw - 1240px) / 2 - 198px));
    top: 50vh;
    width: 174px;
    transform: translateY(-50%);
  }

  .origin-sidebar {
    display: grid;
    align-items: stretch;
    gap: 12px;
    padding: 13px;
    border-radius: 26px;
  }

  .origin-sidebar__copy {
    flex: none;
    padding: 6px 8px 2px;
  }

  .origin-sidebar__list {
    display: grid;
    gap: 9px;
    overflow: visible;
  }

  .origin-sidebar__item {
    flex: none;
  }

  .origin-sidebar__item:hover,
  .origin-sidebar__item:focus-visible,
  .origin-sidebar__item.is-active {
    transform: translateX(2px);
  }
}

.origin-summary-card__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.origin-summary-card__nav .origin-section-nav__item {
  min-height: 92px;
  padding: 12px 13px;
}

.origin-copy-card,
.compat-section__copy {
  display: grid;
  gap: 18px;
}

.origin-copy-card {
  padding: 28px;
}

.origin-section-nav__item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  min-height: 96px;
  padding: 14px 15px;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--origin-nav-accent, rgba(255, 255, 255, 0.56)) 24%, rgba(255, 255, 255, 0.6)), rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--origin-nav-accent, rgba(255, 255, 255, 0.56)) 34%, transparent), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  overflow: hidden;
}

.origin-section-nav__item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--origin-nav-accent, rgba(186, 165, 205, 0.28));
  opacity: 0.92;
}

.origin-section-nav__item::after {
  content: "";
  position: absolute;
  inset: auto -36px -46px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--origin-nav-accent, rgba(186, 165, 205, 0.18)), transparent 68%);
  opacity: 0.8;
  pointer-events: none;
}

.origin-section-nav__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.origin-section-nav__item span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.origin-section-nav__item strong {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.32;
}

.origin-section-nav__item em {
  align-self: end;
  color: var(--ink-faint);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.origin-section-nav__thumb {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 8px 18px rgba(84, 67, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.origin-section-nav__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--origin-thumb-fit, cover);
}

.origin-section-nav__item:hover,
.origin-section-nav__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(186, 165, 205, 0.42);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--origin-nav-accent, rgba(255, 255, 255, 0.6)) 34%, rgba(255, 255, 255, 0.76)), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--origin-nav-accent, rgba(255, 255, 255, 0.56)) 44%, transparent), transparent 42%);
  box-shadow:
    0 18px 34px rgba(84, 67, 100, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  outline: none;
}

.origin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.origin-section-head .section-heading {
  max-width: 44rem;
  margin-bottom: 0;
}

#origin-animation {
  display: grid;
  gap: 28px;
}

#origin-work {
  display: grid;
  gap: 24px;
}

#origin-animation .section-heading,
#origin-work .section-heading {
  margin-bottom: 0;
}

#origin-animation,
#origin-work,
#origin-books,
#origin-story,
#origin-author,
#origin-studio,
#origin-staffcast,
#origin-episodes,
#origin-pilgrimage,
#origin-characters,
#origin-media {
  scroll-margin-top: 118px;
}

.origin-story-entry {
  scroll-margin-top: 118px;
  padding: 28px;
}

.origin-story-entry__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.origin-story-entry__copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.origin-story-entry__copy .section-heading {
  margin: 0;
}

.origin-story-entry__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.origin-story-entry__facts div,
.origin-story-entry__premise-card {
  display: grid;
  gap: 7px;
  padding: 15px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 250, 246, 0.74)),
    radial-gradient(circle at 0 0, rgba(219, 232, 246, 0.16), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.origin-story-entry__facts span,
.origin-story-entry__premise-card span {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.origin-story-entry__facts strong,
.origin-story-entry__premise-card strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.36;
}

.origin-story-entry__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.origin-story-entry__keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.origin-story-entry__premise {
  display: grid;
  gap: 10px;
}

.origin-story-entry__premise-card {
  align-content: start;
  min-height: 0;
}

.origin-story-entry__premise-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.origin-director {
  margin-top: 0;
}

.origin-director blockquote {
  max-width: 30em;
  text-wrap: pretty;
}

.origin-card-grid,
.origin-character-grid {
  display: grid;
  gap: 18px;
}

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

.origin-info-card {
  align-content: start;
  min-height: 124px;
}

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

.origin-character-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  overflow: hidden;
  color: inherit;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at top right, rgba(217, 211, 238, 0.14), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 32px rgba(84, 67, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.origin-character-card:hover,
.origin-character-card:focus-visible {
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 246, 0.92)),
    radial-gradient(circle at top right, rgba(217, 211, 238, 0.2), transparent 30%);
  border-color: rgba(190, 164, 208, 0.44);
  box-shadow:
    0 24px 42px rgba(84, 67, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform: translateY(-2px);
  outline: none;
}

.origin-character-card__visual {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(246, 241, 247, 0.48)),
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.2), transparent 22%);
}

.origin-character-card__visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.origin-character-card__shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%, rgba(69, 58, 80, 0.16)),
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.16), transparent 22%);
}

.origin-character-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.origin-character-card__head {
  display: grid;
  gap: 4px;
}

.origin-character-card h3 {
  font-size: 1.3rem;
}

.origin-character-card__subtitle {
  color: var(--ink);
}

.origin-character-card__roman {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}

.compat-section__copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.9vw, 2.65rem);
  line-height: 1.06;
}

body.is-video-archive-modal-open {
  overflow: hidden;
}

.video-archive__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-duration-base) var(--motion-ease-standard),
    visibility var(--motion-duration-base) var(--motion-ease-standard);
}

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

.video-archive__modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 13, 22, 0.54), rgba(16, 13, 22, 0.74)),
    radial-gradient(circle at 50% 18%, rgba(99, 83, 121, 0.26), transparent 32%);
  backdrop-filter: blur(16px);
}

.video-archive__dialog {
  position: relative;
  z-index: 1;
  width: min(1840px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.video-archive__stage {
  position: relative;
  min-width: 0;
  box-shadow: 0 36px 80px rgba(17, 12, 24, 0.34);
  border-radius: 22px;
  overflow: hidden;
  background: #08070c;
}

.video-archive__modal-close {
  position: relative;
  justify-self: end;
  z-index: 2;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(135, 214, 226, 0.94), rgba(105, 196, 216, 0.9)),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.46), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 18px 34px rgba(34, 57, 74, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.video-archive__modal-close:hover,
.video-archive__modal-close:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 20px 38px rgba(34, 57, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.video-archive__modal-video {
  width: 100%;
  max-height: calc(100vh - 108px);
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.origin-music {
  scroll-margin-top: 118px;
}

.origin-music__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: 20px;
  align-items: stretch;
}

.origin-music__player,
.origin-music__queue {
  min-height: 100%;
  overflow: hidden;
  padding: 28px;
}

.origin-music__player {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(249, 244, 249, 0.9) 48%, rgba(245, 250, 250, 0.82)),
    linear-gradient(180deg, rgba(219, 232, 246, 0.18), rgba(237, 214, 221, 0.14));
}

.origin-music__player .music-widget {
  min-height: 100%;
  gap: 16px;
}

.origin-music__player .music-widget__art {
  width: min(100%, 250px);
  box-shadow:
    0 22px 44px rgba(107, 94, 126, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.origin-music__player .music-widget--compact .music-widget__title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.origin-music__player .music-widget__lyric--marquee {
  margin-top: 4px;
}

.origin-music__player .music-widget__footer {
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at top right, rgba(217, 211, 238, 0.14), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.origin-music__queue {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 250, 246, 0.9)),
    linear-gradient(135deg, rgba(232, 200, 137, 0.12), rgba(220, 182, 236, 0.12));
}

.origin-music__queue .home-music-panel,
.origin-music__queue .home-music-panel__queue {
  min-height: 100%;
}

.origin-music__queue .home-music-panel__queue {
  padding: 0;
  background: transparent;
  border: 0;
}

.origin-music__queue .playlist-list--home {
  max-height: clamp(320px, 34vw, 420px);
}

.origin-gallery-shell {
  margin-top: 6px;
}

.origin-gallery-shell .home-carousel__viewport {
  min-height: clamp(300px, 34vw, 430px);
}

.origin-gallery-shell .home-carousel__meta {
  padding-top: 18px;
}

.origin-special {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  min-width: 0;
  scroll-margin-top: 118px;
}

.special-page {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  min-width: 0;
}

.special-page .origin-special {
  gap: clamp(24px, 3vw, 38px);
}

.origin-special__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.76fr);
  gap: clamp(18px, 3.2vw, 46px);
  align-items: stretch;
  min-height: clamp(430px, 43vw, 610px);
  padding: clamp(22px, 3.4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 239, 0.78)),
    linear-gradient(118deg, rgba(217, 232, 229, 0.32), transparent 44%),
    linear-gradient(310deg, rgba(231, 204, 216, 0.24), transparent 42%),
    linear-gradient(35deg, rgba(225, 213, 177, 0.16), transparent 58%);
}

.origin-special__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 680px;
}

.origin-special__copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

.origin-special__copy > strong {
  color: var(--gold-strong);
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.55vw, 1.42rem);
  font-weight: 600;
}

.origin-special__copy > p {
  max-width: 52em;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.88;
}

.special-page .origin-special__copy > p {
  max-width: 42em;
}

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

.origin-special__stats div {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.origin-special__stats span,
.origin-special-module span,
.origin-special-interview__body > span,
.origin-special-wallpaper__copy span,
.origin-special-gallery__main figcaption span,
.origin-special-gallery__thumb figcaption span,
.origin-special-ticket__stamp span,
.origin-special-quiz__head > span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.origin-special__stats strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.origin-special__visual {
  position: relative;
  min-height: clamp(320px, 34vw, 520px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 22px 46px rgba(93, 82, 94, 0.14);
}

.origin-special__visual--split {
  display: grid;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(248, 244, 239, 0.54)),
    linear-gradient(138deg, rgba(231, 203, 216, 0.22), transparent 58%);
}

.origin-special__visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.62fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 12px;
  min-height: 100%;
}

.origin-special__visual-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.origin-special__visual-panel--main {
  grid-row: 1 / span 2;
}

.origin-special__visual-panel--logo {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(239, 232, 244, 0.88)),
    linear-gradient(42deg, rgba(216, 231, 228, 0.22), transparent 70%);
}

.origin-special__visual-panel--logo img {
  box-sizing: border-box;
  padding: clamp(18px, 3vw, 34px);
  filter: saturate(0.86);
}

.origin-special__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(42, 34, 48, 0.26)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 48%);
  pointer-events: none;
}

.origin-special__visual img,
.origin-special-module__thumb img,
.origin-special-interview__visual img,
.origin-special-wallpaper figure img,
.origin-special-gallery__main img,
.origin-special-gallery__thumb img,
.origin-special-ticket figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.special-page .origin-special__visual img {
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.special-page .origin-special__hero .origin-special__visual > img {
  object-fit: contain;
}

.origin-special__visual figcaption {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  display: grid;
  gap: 3px;
  max-width: min(260px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(56, 47, 62, 0.12);
  backdrop-filter: blur(10px);
}

.origin-special__visual figcaption span {
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.origin-special__visual figcaption strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.2;
}

.origin-special__visual--split::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(42, 34, 48, 0.12)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 54%);
}

.origin-special__visual.origin-special__visual--split figcaption {
  top: auto;
  right: auto;
  bottom: 18px;
  left: 18px;
  max-width: min(180px, calc(100% - 36px));
  padding: 8px 10px;
}

.origin-special-modules {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.origin-special-module {
  position: relative;
  display: grid;
  grid-column: span 2;
  grid-template-rows: minmax(168px, 1fr) auto;
  min-height: 248px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(250, 245, 250, 0.68)),
    linear-gradient(135deg, var(--special-accent, rgba(205, 190, 226, 0.24)), transparent 52%);
  box-shadow: 0 18px 34px rgba(108, 91, 122, 0.1);
  transition:
    transform var(--motion-duration-fast) var(--motion-ease-standard),
    box-shadow var(--motion-duration-fast) var(--motion-ease-standard);
}

.origin-special-module:nth-child(1),
.origin-special-module:nth-child(2) {
  grid-column: span 3;
}

.origin-special-module:hover,
.origin-special-module:focus-visible {
  transform: translateY(var(--motion-hover-y));
  box-shadow: 0 24px 42px rgba(108, 91, 122, 0.16);
}

.origin-special-module__thumb {
  grid-row: 1;
  margin: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.origin-special-module__thumb img {
  display: block;
  object-fit: var(--special-thumb-fit, cover);
}

.origin-special-module__copy {
  grid-row: 2;
  display: grid;
  gap: 4px;
  padding: 14px 15px 16px;
}

.origin-special-module strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.16rem;
}

.origin-special-module em {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
}

.origin-special-block {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  scroll-margin-top: 118px;
}

.origin-special-entry {
  scroll-margin-top: 118px;
}

.origin-special-entry__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  min-height: 300px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(249, 244, 249, 0.76)),
    linear-gradient(118deg, rgba(210, 226, 234, 0.28), transparent 44%),
    linear-gradient(318deg, rgba(225, 202, 224, 0.2), transparent 40%);
}

.origin-special-entry__copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
}

.origin-special-entry__copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1;
  white-space: nowrap;
}

.origin-special-entry__copy p {
  max-width: 50em;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

.origin-special-entry__copy > strong {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid rgba(168, 143, 194, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.82rem;
}

.origin-special-entry__facts,
.origin-special-entry__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.origin-special-entry__facts span,
.origin-special-entry__modules span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.origin-special-entry__visual {
  min-height: 260px;
  margin: 18px 18px 18px 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.origin-special-entry__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-special-entry__modules {
  position: absolute;
  right: clamp(18px, 2.2vw, 28px);
  bottom: clamp(18px, 2.2vw, 28px);
  max-width: min(440px, 46%);
  justify-content: flex-end;
}

.origin-special-interview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.origin-special-interview {
  display: grid;
  grid-template-rows: clamp(220px, 17vw, 260px) 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.origin-special-interview__visual {
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 242, 236, 0.92), rgba(231, 224, 238, 0.78));
}

.origin-special-interview__visual img {
  display: block;
  object-position: center top;
  transform: scale(var(--origin-special-image-scale, 1));
  transform-origin: var(--origin-special-image-origin, center center);
}

.origin-special-interview__body blockquote {
  margin: 2px 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(154, 129, 183, 0.38);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.6;
}

.origin-special-interview__body {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
}

.origin-special-interview__body h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1.24;
}

.origin-special-interview__body > strong {
  color: var(--gold-strong);
  font-size: 0.88rem;
  line-height: 1.5;
}

.origin-special-interview__body p,
.origin-special-wallpaper__copy p,
.origin-special-ticket p,
.origin-special-quiz__head p,
.origin-special-quiz__result-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

.origin-special-interview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.origin-special-interview__tags em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-style: normal;
}

.origin-special-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid rgba(168, 143, 194, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.origin-special-wallpaper-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.origin-special-wallpapers {
  gap: 16px;
}

.origin-special-wallpapers .section-heading {
  margin-bottom: 0;
}

.origin-special-wallpaper-nav > span {
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.origin-special-wallpaper-nav__controls,
.origin-special-wallpaper-nav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.origin-special-wallpaper-nav button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(168, 143, 194, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.origin-special-wallpaper-nav button:hover,
.origin-special-wallpaper-nav button:focus-visible,
.origin-special-wallpaper-nav button.is-active {
  transform: translateY(-1px);
  border-color: rgba(154, 129, 183, 0.46);
  background: rgba(255, 255, 255, 0.9);
}

.origin-special-wallpaper-nav button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.origin-special-wallpaper-pages {
  display: grid;
}

.origin-special-wallpaper-page {
  display: none;
}

.origin-special-wallpaper-page.is-active {
  display: block;
}

.origin-special-wallpaper-grid {
  display: block;
  column-count: 4;
  column-width: 220px;
  column-gap: 14px;
}

.origin-special-wallpaper {
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  min-width: 0;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(250, 246, 241, 0.5)),
    linear-gradient(145deg, rgba(216, 231, 228, 0.18), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 28px rgba(91, 77, 103, 0.08);
}

.origin-special-wallpaper--featured {
  --origin-special-wallpaper-ratio: 4 / 3;
}

.origin-special-wallpaper--wide {
  --origin-special-wallpaper-ratio: 16 / 9;
}

.origin-special-wallpaper--portrait {
  --origin-special-wallpaper-ratio: 3 / 4;
}

.origin-special-wallpaper figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(245, 240, 246, 0.76);
  aspect-ratio: var(--origin-special-wallpaper-ratio, 4 / 3);
}

.origin-special-wallpaper--featured figure {
  min-height: 0;
}

.origin-special-wallpaper__copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-content: start;
  align-items: start;
  padding: 14px 16px 16px;
}

.origin-special-wallpaper--featured .origin-special-wallpaper__copy {
  align-content: start;
  padding: 14px 16px 16px;
}

.origin-special-wallpaper__copy span,
.origin-special-wallpaper__copy strong,
.origin-special-wallpaper__copy p,
.origin-special-wallpaper__source {
  grid-column: 1;
}

.origin-special-wallpaper__copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.34;
}

.origin-special-wallpaper__copy .origin-special-link {
  grid-column: 1;
  grid-row: auto;
  margin-top: 4px;
}

.origin-special-wallpaper__source {
  width: fit-content;
  color: var(--gold-strong);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
}

.origin-special-wallpaper__source:hover,
.origin-special-wallpaper__source:focus-visible {
  text-decoration: underline;
}

.origin-special-wallpaper figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-special-wallpaper__copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.origin-special-gallery__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.origin-special-gallery__main,
.origin-special-gallery__thumb {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(245, 240, 246, 0.76);
}

.origin-special-gallery__main {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.origin-special-gallery__main--portrait {
  aspect-ratio: 4 / 5;
}

.origin-special-gallery__main--logo {
  aspect-ratio: 16 / 8;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 248, 0.9)),
    radial-gradient(circle at 18% 12%, rgba(210, 226, 222, 0.28), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(224, 199, 145, 0.2), transparent 32%);
}

.origin-special-gallery__main img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(252, 249, 244, 0.92), rgba(240, 235, 246, 0.88));
}

.origin-special-gallery__main img,
.origin-special-gallery__thumb img {
  transform: scale(var(--origin-special-gallery-scale, 1));
  transform-origin: var(--origin-special-gallery-origin, center center);
}

.origin-special-gallery__main--logo img {
  box-sizing: border-box;
  padding: clamp(20px, 3.2vw, 46px);
  background: transparent;
}

.origin-special-gallery__main::after,
.origin-special-gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(34, 28, 42, 0.48));
  pointer-events: none;
}

.origin-special-gallery__main figcaption,
.origin-special-gallery__thumb figcaption {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(25, 20, 32, 0.42);
}

.origin-special-gallery__main figcaption strong,
.origin-special-gallery__thumb figcaption strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.12;
}

.origin-special-gallery__main figcaption em,
.origin-special-gallery__thumb figcaption em {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-style: normal;
}

.origin-special-gallery__main figcaption p {
  max-width: 38em;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
}

.origin-special-gallery__main--logo::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(180deg, transparent 52%, rgba(112, 101, 122, 0.08));
}

.origin-special-gallery__main--logo figcaption {
  top: 18px;
  right: auto;
  bottom: auto;
  width: min(270px, calc(100% - 36px));
  max-width: min(270px, calc(100% - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-shadow: none;
  box-shadow: 0 14px 28px rgba(72, 61, 86, 0.12);
  backdrop-filter: blur(10px);
}

.origin-special-gallery__main--logo figcaption span,
.origin-special-gallery__main--logo figcaption em {
  color: var(--ink-faint);
}

.origin-special-gallery__main--logo figcaption strong {
  color: var(--ink);
}

.origin-special-gallery__main--logo figcaption p {
  color: var(--ink-soft);
}

.origin-special-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.origin-special-gallery__thumb {
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.origin-special-gallery__thumb--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.origin-special-gallery__thumb--panorama {
  grid-column: span 3;
  aspect-ratio: 21 / 9;
}

.origin-special-gallery__thumb--full {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.origin-special-gallery__thumb--square {
  aspect-ratio: 1;
}

.origin-special-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.origin-special-ticket {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.origin-special-ticket figure {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(249, 246, 241, 0.72);
}

.origin-special-ticket figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 62%, rgba(42, 34, 48, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 46%);
  pointer-events: none;
}

.origin-special-ticket figure img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 233, 244, 0.72));
}

.origin-special-ticket__stamp {
  position: relative;
  display: grid;
  gap: 7px;
  width: auto;
  padding: 14px 16px;
  border: 1px solid rgba(154, 129, 183, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.origin-special-ticket__stamp strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.22rem;
}

.origin-special-ticket__stamp em {
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.origin-special-ticket__stamp dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 4px 0 0;
}

.origin-special-ticket__stamp dl div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.origin-special-ticket__stamp dt,
.origin-special-ticket__stamp dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.4;
}

.origin-special-ticket__stamp dt {
  color: var(--ink-faint);
  text-transform: uppercase;
}

.origin-special-ticket__stub {
  position: absolute;
  z-index: 1;
  right: 24px;
  top: 24px;
  display: grid;
  gap: 2px;
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(42, 34, 48, 0.5);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(8px);
}

.origin-special-ticket__stub span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.origin-special-ticket__stub strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.origin-special-ticket p {
  padding: 0 6px 4px;
}

.origin-special-quiz {
  --origin-special-quiz-bg: url("../media/special/quiz/10_left_panel_background.webp");
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  min-height: clamp(680px, 78vh, 820px);
  padding: clamp(18px, 2.6vw, 30px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(249, 246, 240, 0.82)),
    radial-gradient(circle at 0 12%, rgba(214, 207, 234, 0.26), transparent 32%),
    radial-gradient(circle at 100% 88%, rgba(226, 199, 145, 0.22), transparent 34%);
}

.origin-special-quiz__head {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: clamp(22px, 2.7vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(250, 246, 241, 0.78)),
    linear-gradient(145deg, rgba(214, 207, 234, 0.18), transparent 54%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 36px rgba(90, 78, 101, 0.08);
}

.origin-special-quiz__panel-bg {
  display: none;
}

.origin-special-quiz__start {
  display: none;
}

.origin-special-quiz__head > :not(.origin-special-quiz__panel-bg) {
  position: relative;
  z-index: 1;
}

.origin-special-quiz__head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.92rem, 2.9vw, 3.18rem);
  line-height: 1.02;
}

.origin-special-quiz__title-line {
  display: block;
}

.origin-special-quiz__title-line--nowrap {
  white-space: nowrap;
}

.origin-special-quiz__steps {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.origin-special-quiz__steps div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "mark label"
    "line text";
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
}

.origin-special-quiz__steps b {
  grid-area: mark;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(149, 125, 184, 0.82), rgba(130, 105, 168, 0.86));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(107, 83, 138, 0.18);
}

.origin-special-quiz__steps div:not(:last-child)::after {
  content: "";
  grid-area: line;
  justify-self: center;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, rgba(149, 125, 184, 0.3), rgba(149, 125, 184, 0));
}

.origin-special-quiz__steps span {
  grid-area: label;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.28;
}

.origin-special-quiz__steps small {
  grid-area: text;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.origin-special-quiz__avatars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
}

.origin-special-quiz__avatar {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-align: center;
  transition: transform 160ms ease, color 160ms ease;
}

.origin-special-quiz__avatar img {
  width: clamp(48px, 4.7vw, 62px);
  height: clamp(48px, 4.7vw, 62px);
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(90, 78, 101, 0.12);
}

.origin-special-quiz__avatar.is-active {
  transform: translateY(-2px);
  color: var(--ink);
}

.origin-special-quiz__avatar.is-active img {
  border-color: rgba(154, 129, 183, 0.64);
  box-shadow: 0 16px 28px rgba(107, 83, 138, 0.18);
}

.origin-special-quiz__board {
  display: contents;
  min-width: 0;
  min-height: 0;
}

.origin-special-quiz__question-panel,
.origin-special-quiz__result {
  position: relative;
  isolation: isolate;
  min-height: 0;
  max-height: clamp(650px, calc(100vh - 170px), 820px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 243, 250, 0.82)),
    radial-gradient(circle at 100% 0, rgba(224, 199, 145, 0.16), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 34px rgba(95, 80, 107, 0.08);
}

.origin-special-quiz__head::before,
.origin-special-quiz__question-panel::before,
.origin-special-quiz__result::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(248, 243, 250, 0.72)),
    var(--origin-special-quiz-bg);
  background-repeat: no-repeat;
  background-size: 100% 100%, 300% 100%;
  opacity: 0.74;
  pointer-events: none;
}

.origin-special-quiz__head::before {
  background-position: center, left center;
}

.origin-special-quiz__question-panel::before {
  background-position: center, center center;
}

.origin-special-quiz__result::before {
  background-position: center, right center;
}

.origin-special-quiz__question-panel > *,
.origin-special-quiz__result > * {
  position: relative;
  z-index: 1;
}

.origin-special-quiz__question-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
}

.origin-special-quiz__question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.origin-special-quiz__question-head span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.origin-special-quiz__question-head strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.18rem;
}

.origin-special-quiz__meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.origin-special-quiz__meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f86c2, #d7b866, #9cc9ad);
  transition: width 220ms ease;
}

.origin-special-quiz__questions {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 129, 183, 0.32) rgba(255, 255, 255, 0.38);
}

.origin-special-quiz__questions:focus-visible {
  outline: 2px solid rgba(154, 129, 183, 0.46);
  outline-offset: 4px;
}

.origin-special-quiz__question {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(141, 120, 165, 0.12);
  border-radius: 18px;
  background: transparent;
}

.origin-special-quiz__question legend {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.4;
}

.origin-special-quiz__question legend span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(203, 186, 225, 0.22);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
}

.origin-special-quiz__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.origin-special-quiz__choice {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(168, 143, 194, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.origin-special-quiz__choice:hover,
.origin-special-quiz__choice:focus-visible,
.origin-special-quiz__choice.is-selected {
  transform: translateY(-2px);
  border-color: rgba(154, 129, 183, 0.46);
  background: rgba(255, 255, 255, 0.84);
}

.origin-special-quiz__choice b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(154, 129, 183, 0.12);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.86rem;
}

.origin-special-quiz__choice.is-selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(135, 107, 176, 0.82);
  color: #fff;
  font-size: 0.74rem;
}

.origin-special-quiz__choice strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.origin-special-quiz__choice small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.origin-special-quiz__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.origin-special-quiz__actions > span {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  word-break: keep-all;
}

.origin-special-quiz__actions button,
.origin-special-quiz__result-card button {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(168, 143, 194, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.origin-special-quiz__actions button:first-of-type {
  background: linear-gradient(180deg, rgba(152, 125, 190, 0.9), rgba(129, 105, 168, 0.9));
  color: #fff;
  box-shadow: 0 14px 26px rgba(107, 83, 138, 0.18);
}

.origin-special-quiz__actions button:hover,
.origin-special-quiz__actions button:focus-visible,
.origin-special-quiz__result-card button:hover,
.origin-special-quiz__result-card button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(154, 129, 183, 0.48);
  background: rgba(255, 255, 255, 0.9);
}

.origin-special-quiz__actions button:first-of-type:hover,
.origin-special-quiz__actions button:first-of-type:focus-visible {
  background: linear-gradient(180deg, rgba(165, 137, 203, 0.94), rgba(135, 108, 176, 0.94));
}

.origin-special-quiz__actions button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.origin-special-quiz__result {
  display: grid;
  overflow: hidden;
  padding: 18px;
}

.origin-special-quiz__result-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 100%;
  padding: 24px;
  text-align: center;
}

.origin-special-quiz.has-result .origin-special-quiz__result-empty {
  display: none;
}

.origin-special-quiz__result-empty span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.origin-special-quiz__result-empty strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.origin-special-quiz__result-empty p {
  max-width: 18em;
  color: var(--ink-soft);
  line-height: 1.72;
}

.origin-special-quiz__result-card {
  display: none;
  gap: 16px;
  min-height: 100%;
}

.origin-special-quiz__result-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 34px rgba(95, 80, 107, 0.1);
}

.origin-special-quiz__result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.origin-special-quiz__result-card > div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.origin-special-quiz__result-card em {
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.origin-special-quiz__result-card.is-active {
  display: grid;
}

.origin-special-quiz__result-card strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 1.02;
}

.origin-special-quiz__result-card div > span {
  color: var(--gold-strong);
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

.origin-special-quiz__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.origin-special-quiz__tags small {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.origin-special-quiz__result-card p {
  line-height: 1.72;
}

@media (min-width: 1181px) {
  .origin-special-quiz {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.18fr) minmax(0, 0.92fr);
    gap: 0;
    padding: clamp(20px, 2.8vw, 36px);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: calc(var(--radius-xl) + 4px);
    box-shadow:
      0 24px 70px rgba(111, 98, 126, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }

  .origin-special-quiz__head,
  .origin-special-quiz__question-panel,
  .origin-special-quiz__result {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .origin-special-quiz__head,
  .origin-special-quiz__question-panel {
    border-right: 1px solid rgba(141, 120, 165, 0.18);
  }

  .origin-special-quiz__head {
    padding-right: clamp(22px, 2.5vw, 34px);
  }

  .origin-special-quiz__question-panel {
    padding-right: clamp(20px, 2.3vw, 30px);
    padding-left: clamp(20px, 2.3vw, 30px);
  }

  .origin-special-quiz__result {
    padding-left: clamp(20px, 2.3vw, 30px);
  }

  .origin-special-quiz__head::before,
  .origin-special-quiz__question-panel::before,
  .origin-special-quiz__result::before {
    opacity: 0.56;
  }
}

@media (max-width: 1180px) {
  .origin-special__hero,
  .origin-special-quiz,
  .origin-special-quiz__board {
    grid-template-columns: 1fr;
  }

  .origin-special-quiz {
    min-height: 0;
  }

  .origin-special-quiz__board {
    display: grid;
    gap: 18px;
    min-width: 0;
    min-height: 0;
  }

  .origin-special-quiz__head::before,
  .origin-special-quiz__question-panel::before,
  .origin-special-quiz__result::before {
    background-size: 100% 100%, cover;
    background-position: center, center;
  }

  .origin-special-quiz__question-panel,
  .origin-special-quiz__result {
    max-height: none;
  }

  .origin-special-quiz__questions {
    max-height: min(620px, 72vh);
  }

  .origin-special-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-special-module,
  .origin-special-module:nth-child(1),
  .origin-special-module:nth-child(2) {
    grid-column: auto;
  }

  .origin-special-wallpaper-grid {
    column-count: 3;
    column-gap: 12px;
  }

  .origin-special-wallpaper {
    grid-column: auto;
  }

  .origin-special-wallpaper--featured,
  .origin-special-wallpaper--wide {
    grid-column: auto;
  }

  .origin-special-interview-grid,
  .origin-special-gallery__layout,
  .origin-special-entry__card {
    grid-template-columns: 1fr;
  }

  .origin-special-gallery__main {
    min-height: 0;
  }

  .origin-special-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-special-gallery__thumb--panorama,
  .origin-special-gallery__thumb--full {
    grid-column: 1 / -1;
  }

  .origin-special-quiz__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-special-quiz__board {
    grid-template-columns: 1fr;
  }

  .origin-special-quiz__result-card {
    grid-template-columns: 1fr;
  }

  .origin-special-entry__visual {
    margin: 0 18px 18px;
  }

  .origin-special-entry__modules {
    position: static;
    max-width: none;
    justify-content: flex-start;
    padding: 0 22px 22px;
  }

  .character-dossier-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .special-page,
  .special-page .origin-special,
  .special-page .origin-special > *,
  .special-page .origin-special__hero,
  .special-page .origin-special-block {
    width: 100%;
    max-width: 100%;
  }

  .origin-special__hero,
  .origin-special-block,
  .origin-special-quiz {
    padding: 22px;
    border-radius: 28px;
  }

  .origin-special__hero {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
  }

  .special-page .origin-special__hero {
    gap: 14px;
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .origin-special__copy {
    min-width: 0;
  }

  .special-page .origin-special__copy {
    gap: 8px;
  }

  .special-page .origin-special__copy h2 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 0.98;
    white-space: normal;
  }

  .origin-special__copy h2,
  .origin-special__copy > strong,
  .origin-special__copy > p {
    overflow-wrap: anywhere;
  }

  .special-page .origin-special__copy > p {
    display: -webkit-box;
    max-width: none;
    overflow: hidden;
    font-size: 0.93rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .special-page .origin-special__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
  }

  .special-page .origin-special__stats div {
    min-height: 0;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .special-page .origin-special__stats span {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .special-page .origin-special__stats strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .special-page .origin-special__visual--split {
    padding: 8px;
  }

  .special-page .origin-special__visual-grid {
    grid-template-columns: minmax(0, 1fr) minmax(74px, 0.36fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 236px;
  }

  .origin-special__visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .origin-special__visual--split {
    aspect-ratio: auto;
  }

  .origin-special__visual-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .origin-special__visual-panel--main {
    grid-row: auto;
  }

  .origin-special__visual-panel {
    min-height: 210px;
  }

  .origin-special__visual-panel--logo {
    min-height: 148px;
  }

  .special-page .origin-special__visual-panel {
    min-height: 0;
  }

  .special-page .origin-special__visual-panel--main {
    grid-row: 1 / span 2;
  }

  .special-page .origin-special__visual-panel--logo {
    min-height: 0;
  }

  .special-page .origin-special__visual-panel:not(.origin-special__visual-panel--main):not(.origin-special__visual-panel--logo) {
    display: none;
  }

  .special-page .origin-special__visual-panel--logo img {
    padding: 10px;
  }

  .special-page .origin-special__visual.origin-special__visual--split figcaption {
    left: 12px;
    bottom: 12px;
    max-width: min(190px, calc(100% - 24px));
    padding: 7px 9px;
  }

  .origin-special-interview-grid {
    gap: 12px;
  }

  .origin-special-interview {
    grid-template-rows: clamp(188px, 56vw, 232px) auto;
  }

  .origin-special-interview__body {
    gap: 7px;
    padding: 14px 15px 16px;
  }

  .origin-special-interview__body h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(1.06rem, 5vw, 1.28rem);
    line-height: 1.26;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .origin-special-interview__body > strong {
    font-size: 0.82rem;
  }

  .origin-special-interview__body p,
  .origin-special-interview__tags {
    display: none;
  }

  .origin-special-interview__body blockquote {
    display: -webkit-box;
    overflow: hidden;
    margin: 1px 0;
    padding: 8px 10px;
    font-size: 0.84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .origin-special-interview:nth-child(1) .origin-special-interview__visual img {
    object-position: 62% 28% !important;
    transform: translateY(-8%) scale(1.02);
    transform-origin: 62% 28%;
  }

  .origin-special-interview:nth-child(2) .origin-special-interview__visual img {
    object-position: 50% 18% !important;
    transform: translateY(-6%) scale(1.02);
    transform-origin: 50% 18%;
  }

  .origin-special__stats,
  .origin-special-modules,
  .origin-special-ticket-grid,
  .origin-special-quiz__choices,
  .origin-special-gallery__thumbs {
    grid-template-columns: 1fr;
  }

  .origin-special-quiz__avatars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-special-quiz__start {
    justify-self: center;
    min-height: 42px;
    min-width: min(100%, 180px);
    padding: 10px 20px;
    border: 1px solid rgba(168, 143, 194, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(152, 125, 190, 0.9), rgba(129, 105, 168, 0.9));
    box-shadow: 0 14px 26px rgba(107, 83, 138, 0.18);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition:
      transform 160ms ease,
      background 160ms ease,
      border-color 160ms ease;
  }

  .origin-special-quiz__start:hover,
  .origin-special-quiz__start:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(154, 129, 183, 0.48);
    background: linear-gradient(180deg, rgba(165, 137, 203, 0.94), rgba(135, 108, 176, 0.94));
  }

  .origin-special-quiz[data-quiz-stage="intro"] .origin-special-quiz__start {
    display: inline-grid;
    place-items: center;
  }

  .origin-special-quiz[data-quiz-stage="intro"] .origin-special-quiz__board,
  .origin-special-quiz[data-quiz-stage="questions"] .origin-special-quiz__head,
  .origin-special-quiz[data-quiz-stage="questions"] .origin-special-quiz__result,
  .origin-special-quiz[data-quiz-stage="result"] .origin-special-quiz__head,
  .origin-special-quiz[data-quiz-stage="result"] .origin-special-quiz__question-panel {
    display: none;
  }

  .origin-special-quiz__actions {
    grid-template-columns: 1fr;
  }

  .origin-special-quiz__actions button,
  .origin-special-quiz__actions button:first-of-type {
    width: 100%;
    min-width: 0;
  }

  .origin-special-quiz__questions {
    max-height: min(620px, 68vh);
  }

  .origin-special-wallpaper-grid {
    column-count: 1;
    column-width: auto;
    column-gap: 0;
  }

  .origin-special-wallpaper {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }

  .origin-special-module {
    grid-column: auto;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 128px;
  }

  .origin-special-module__thumb {
    grid-row: auto;
    min-height: 128px;
    aspect-ratio: auto;
    height: 100%;
    order: -1;
  }

  .origin-special-module__copy {
    grid-row: auto;
  }

  .origin-special-wallpaper__copy {
    grid-template-columns: 1fr;
  }

  .origin-special-wallpaper--wide {
    grid-template-columns: 1fr;
  }

  .origin-special-wallpaper,
  .origin-special-wallpaper--featured,
  .origin-special-wallpaper--wide,
  .origin-special-wallpaper--portrait {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .origin-special-wallpaper__copy .origin-special-link {
    grid-column: 1;
    grid-row: auto;
  }

  .origin-special-wallpaper--featured figure,
  .origin-special-wallpaper--wide figure {
    min-height: 0;
  }

  .origin-special-gallery__main,
  .origin-special-gallery__thumb {
    min-height: 260px;
  }

  .origin-special-gallery__thumb--wide {
    grid-column: auto;
  }

  .origin-special-gallery__thumb--panorama,
  .origin-special-gallery__thumb--full {
    grid-column: auto;
    aspect-ratio: 16 / 9;
  }

  .origin-special-ticket__stamp {
    right: auto;
    left: auto;
    top: auto;
    width: auto;
  }

  .origin-special-ticket__stamp dl {
    grid-template-columns: 1fr;
  }

  .origin-special-ticket__stub {
    display: none;
  }
}

.origin-thanks-entry {
  scroll-margin-top: 118px;
}

.origin-thanks-entry__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
  align-items: stretch;
  min-height: 300px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 243, 247, 0.78)),
    radial-gradient(circle at 0 0, rgba(223, 232, 244, 0.32), transparent 36%),
    radial-gradient(circle at 92% 100%, rgba(203, 189, 217, 0.2), transparent 34%);
}

.origin-thanks-entry__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  max-width: 680px;
  padding-left: clamp(14px, 1.8vw, 28px);
}

.origin-thanks-entry__copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 3.8rem);
  line-height: 1.05;
}

.origin-thanks-entry__copy > strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.4vw, 1.34rem);
  font-weight: 600;
}

.origin-thanks-entry__copy > p {
  max-width: 52em;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.origin-thanks-entry__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.origin-thanks-entry__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.origin-thanks-entry__visual {
  position: relative;
  margin: 0;
  min-height: 238px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(246, 242, 246, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.origin-thanks-entry__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 34, 48, 0.03), rgba(42, 34, 48, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 54%);
  pointer-events: none;
}

.origin-thanks-entry__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.72) contrast(0.9) brightness(1.05);
}

.origin-thanks-entry__visual--placeholder {
  display: grid;
  place-items: center;
  text-align: center;
}

.origin-thanks-entry__card:focus-visible {
  outline: 2px solid rgba(174, 150, 199, 0.52);
  outline-offset: 4px;
}

.origin-encyclopedia-entry {
  display: grid;
  gap: 20px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.origin-encyclopedia-entry--with-visual {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-areas:
    "copy visual"
    "facts visual";
  column-gap: 34px;
  align-items: start;
}

.origin-encyclopedia-entry--logo {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  align-items: center;
}

.origin-encyclopedia-entry:hover,
.origin-encyclopedia-entry:focus-visible {
  transform: translateY(var(--motion-hover-y));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 251, 246, 0.92)),
    radial-gradient(circle at top right, rgba(214, 225, 247, 0.24), transparent 28%);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 26px 48px rgba(44, 54, 70, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.origin-encyclopedia-entry__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.origin-encyclopedia-entry__copy {
  display: grid;
  gap: 10px;
}

.origin-encyclopedia-entry--with-visual .origin-encyclopedia-entry__copy {
  grid-area: copy;
}

.origin-encyclopedia-entry__copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  line-height: 1.08;
}

.origin-encyclopedia-entry__subtitle {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.origin-encyclopedia-entry__intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.origin-encyclopedia-entry__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.origin-encyclopedia-entry--with-visual .origin-encyclopedia-entry__facts {
  grid-area: facts;
}

.origin-encyclopedia-entry__facts span {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  padding: 8px 13px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--ink-faint);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.origin-encyclopedia-entry__visual {
  position: relative;
  display: grid;
  grid-area: visual;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  padding: 12px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 249, 244, 0.34)),
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.18), transparent 26%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.origin-encyclopedia-entry__visual--landscape {
  aspect-ratio: 16 / 9;
}

.origin-encyclopedia-entry__visual--portrait {
  aspect-ratio: 3 / 4;
}

.origin-encyclopedia-entry--logo .origin-encyclopedia-entry__visual {
  justify-self: end;
  align-self: center;
  max-width: 480px;
  width: 100%;
  aspect-ratio: 4.6 / 1;
  padding: 10px 12px;
}

.origin-encyclopedia-entry__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--origin-visual-fit, cover);
  object-position: var(--origin-visual-position, center center);
}

.origin-reference-section {
  display: grid;
  gap: 22px;
  scroll-margin-top: 118px;
}

.origin-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 1121px) {
  .origin-reference-grid--animation {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .origin-reference-grid--work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-reference-grid--animation .origin-encyclopedia-entry--with-visual.origin-encyclopedia-entry--logo {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  }

  .origin-reference-grid--animation .origin-encyclopedia-entry--logo .origin-encyclopedia-entry__visual {
    max-width: 180px;
    min-height: 190px;
  }
}

.origin-reference-grid .origin-encyclopedia-entry {
  min-height: 100%;
  align-content: start;
}

.origin-reference-grid .origin-encyclopedia-entry--with-visual {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  column-gap: 20px;
}

.origin-reference-grid .origin-encyclopedia-entry__visual {
  align-self: stretch;
  min-height: 228px;
}

.origin-reference-grid .origin-encyclopedia-entry__visual--landscape,
.origin-reference-grid .origin-encyclopedia-entry__visual--portrait {
  aspect-ratio: auto;
}

@media (max-width: 1380px) {
  .origin-layout {
    display: grid;
    gap: 22px;
  }

  .origin-layout__rail {
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
    width: auto;
    transform: none;
  }

  .origin-sidebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .origin-sidebar__copy {
    flex: 0 0 96px;
    padding: 0 4px;
    text-align: left;
  }

  .origin-sidebar__count {
    display: none;
  }

  .origin-sidebar__copy h2 {
    font-size: 0.9rem;
  }

  .origin-sidebar__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .origin-sidebar__list::-webkit-scrollbar {
    display: none;
  }

  .origin-sidebar__item {
    flex: 0 0 146px;
    min-height: 48px;
  }
}

@media (max-width: 1120px) {
  .origin-overview {
    padding: 12px;
  }

  .origin-layout {
    display: grid;
    gap: 22px;
  }

  .origin-layout__rail {
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
    width: auto;
    transform: none;
  }

  .origin-sidebar__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .origin-sidebar__list::-webkit-scrollbar {
    display: none;
  }

  .origin-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
  }

  .origin-sidebar__copy {
    flex: 0 0 108px;
    padding: 0 4px;
    text-align: left;
  }

  .origin-sidebar__copy h2 {
    font-size: 0.9rem;
  }

  .origin-sidebar__item {
    flex: 0 0 146px;
    min-height: 48px;
  }

  .origin-switcher__shell {
    grid-template-columns: 1fr;
  }

  .origin-switcher__nav {
    justify-content: stretch;
  }

  .origin-switcher__item {
    max-width: none;
  }

  .origin-summary-card__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-reference-grid {
    grid-template-columns: 1fr;
  }

  .origin-reference-grid .origin-encyclopedia-entry--with-visual {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  }

  .origin-story-entry__layout {
    grid-template-columns: 1fr;
  }

  .origin-music__layout {
    grid-template-columns: 1fr;
  }

  .origin-thanks-entry__card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .origin-switcher__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .origin-switcher__item {
    min-height: 78px;
  }
}

@media (max-width: 760px) {
  body[data-page="origin"] {
    overflow-x: auto;
  }

  body[data-page="origin"] .site-main.shell {
    width: min(100% - 28px, 100%);
  }

  .origin-sidebar--series {
    gap: 0;
    padding: 8px;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 220ms ease;
  }

  .origin-sidebar--series .origin-sidebar__copy {
    display: none;
  }

  .origin-sidebar--series .origin-sidebar__nav {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .origin-sidebar--series .origin-sidebar__list {
    width: 100%;
  }

  .origin-sidebar--series .origin-sidebar__item {
    flex-basis: 138px;
  }

  .origin-sidebar--series.is-switcher-visible {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
  }

  .origin-overview {
    padding: 12px;
  }

  .origin-cover-card {
    min-height: 0;
    padding: 0;
  }

  .origin-cover-card img {
    min-height: 340px;
  }

  .origin-cover-card__caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 13px 15px;
  }

  .origin-summary-card {
    padding: 18px;
  }

  .origin-story-entry {
    padding: 20px;
  }

  .origin-summary-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-summary-card__meta-row {
    min-height: 0;
    padding: 14px 15px;
  }

  .origin-summary-card__status {
    grid-template-columns: minmax(72px, 0.38fr) minmax(0, 1fr);
    gap: 8px 10px;
    padding: 14px 15px;
  }

  .origin-summary-card__path-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px 15px;
  }

  .origin-summary-card__path {
    grid-template-columns: 1fr;
  }

  .origin-summary-card__path-row p {
    -webkit-line-clamp: 3;
  }

  .origin-story-entry__facts {
    grid-template-columns: 1fr;
  }

  .origin-summary-card__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-summary-card__routes .origin-section-nav {
    grid-template-columns: 1fr;
  }

  .origin-summary-card__routes .origin-section-nav__item {
    grid-template-columns: 1fr;
    min-height: 78px;
  }

  .origin-summary-card__routes .origin-section-nav__thumb {
    display: none;
  }

  .origin-panel-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
  }

  .origin-panel-intro h2 {
    font-size: clamp(1.55rem, 8vw, 2.12rem);
  }

  .origin-panel-intro p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.68;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .origin-panel-intro__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-panel-intro__facts div {
    padding: 9px 10px;
  }

  .origin-panel-intro__visual,
  .origin-panel-intro__visual img {
    min-height: 150px;
    max-height: 220px;
  }

  .origin-panel-intro__action {
    flex: 1 1 138px;
    min-height: 36px;
    padding-inline: 12px;
  }

  .origin-switcher__shell {
    padding: 14px;
  }

  .origin-switcher__head {
    gap: 9px;
    padding: 20px 20px 19px;
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(249, 246, 253, 0.58)),
      radial-gradient(circle at 88% 16%, rgba(226, 204, 222, 0.28), transparent 36%),
      radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.84), transparent 42%);
  }

  .origin-switcher__head::before {
    display: none;
  }

  .origin-switcher__head::after {
    content: "";
    position: absolute;
    top: 17px;
    right: 18px;
    z-index: 0;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background:
      radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 58%),
      radial-gradient(circle at 42% 42%, rgba(214, 195, 226, 0.22), transparent 68%);
    pointer-events: none;
  }

  .origin-switcher__head span,
  .origin-switcher__head strong {
    position: relative;
    z-index: 1;
  }

  .origin-switcher__head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
  }

  .origin-switcher__head span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(206, 176, 206, 0.58);
    box-shadow:
      10px 0 0 rgba(206, 176, 206, 0.34),
      20px 0 0 rgba(206, 176, 206, 0.18);
  }

  .origin-switcher__head strong {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.34rem;
  }

  .origin-switcher__head strong::after {
    content: "";
    flex: 1 1 auto;
    min-width: 56px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(174, 150, 199, 0.34), rgba(174, 150, 199, 0));
  }

  .origin-switcher__head p {
    display: none;
  }

  .origin-switcher__nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .origin-switcher__nav::-webkit-scrollbar {
    display: none;
  }

  .origin-switcher__item {
    flex: 0 0 174px;
    min-width: 0;
    min-height: 78px;
  }

  .origin-section-nav__item {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    min-height: 88px;
    padding: 13px 14px;
  }

  .origin-section-nav__item strong {
    font-size: 0.9rem;
  }

  .origin-section-nav__thumb {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .origin-reference-grid .origin-encyclopedia-entry--with-visual {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "facts";
  }

  .origin-reference-grid .origin-encyclopedia-entry__visual {
    min-height: 180px;
  }

  .origin-music__player,
  .origin-music__queue {
    padding: 22px;
  }

  .origin-music {
    scroll-margin-top: 180px;
  }

  .origin-music__player .music-widget__art {
    width: min(100%, 260px);
  }

  .origin-music__queue .playlist-list--home {
    max-height: 420px;
  }

  .origin-thanks-entry__card {
    min-height: 0;
    padding: 22px;
  }

  .origin-thanks-entry__copy h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .origin-thanks-entry__visual {
    min-height: 210px;
  }

  .origin-reference-grid--work #origin-author.origin-encyclopedia-entry .origin-encyclopedia-entry__visual--portrait {
    aspect-ratio: 1 / 1;
    max-height: 360px;
  }
}

.story-page {
  display: grid;
  gap: var(--page-section-gap);
}

.story-summary,
.story-premise,
.story-timeline,
.story-characters,
.story-guide {
  scroll-margin-top: 112px;
}

.story-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  min-height: 430px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 251, 0.9)),
    radial-gradient(circle at 14% 8%, rgba(196, 222, 197, 0.2), transparent 34%),
    radial-gradient(circle at 94% 94%, rgba(174, 150, 199, 0.16), transparent 38%);
}

.story-hero::before {
  content: "KOTENBU";
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: -0.18em;
  color: rgba(117, 100, 136, 0.055);
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 12vw, 11rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.story-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 760px;
}

.story-hero__copy .page-title {
  max-width: 9em;
}

.story-hero__copy .page-description {
  max-width: 44em;
}

.story-hero__lead {
  display: grid;
  gap: 12px;
  max-width: 46em;
}

.story-hero__lead p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 0.95vw, 1.05rem);
  line-height: 1.9;
}

.story-hero__meta {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  justify-self: start;
  margin-top: 8px;
  padding: 12px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.story-hero__meta span,
.story-summary__fact span,
.story-summary__note span,
.story-guide__source > span,
.story-source-list span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-hero__meta strong {
  font-family: var(--font-serif);
  font-size: 1rem;
}

.story-hero__visual {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 26px 54px rgba(84, 67, 100, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.story-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero__visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(52, 42, 64, 0.3)),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 32%);
  pointer-events: none;
}

.story-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  padding: clamp(20px, 2.6vw, 30px);
}

.story-summary__copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.story-summary__copy .section-heading {
  margin-bottom: 0;
}

.story-summary__side {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.story-summary__fact,
.story-summary__note,
.story-guide__item,
.story-source-list a {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.story-summary__fact {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px 15px;
}

.story-summary__fact strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.45;
}

.story-summary__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-summary__keywords span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.story-summary__note {
  display: grid;
  gap: 7px;
  padding: 15px 16px;
}

.story-summary__note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.story-summary__routes {
  grid-column: 1 / -1;
}

.story-summary__routes .origin-section-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.story-premise__card {
  position: relative;
  min-height: 238px;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 248, 245, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(196, 177, 234, 0.16), transparent 40%);
}

.story-premise__card::after {
  content: "";
  position: absolute;
  inset: auto -42px -52px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(167, 207, 230, 0.14);
}

.story-premise__card span {
  color: rgba(117, 100, 136, 0.32);
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.story-premise__card h2 {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.story-premise__card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.story-timeline,
.story-characters {
  padding: clamp(20px, 2.6vw, 30px);
}

.story-timeline__list {
  display: grid;
  gap: 12px;
}

.story-timeline__item {
  display: grid;
  grid-template-columns: minmax(96px, 0.18fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 17px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.story-timeline__item span {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(241, 232, 249, 0.72);
  color: rgba(100, 82, 121, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
}

.story-timeline__item h3,
.story-guide__item h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.16rem;
}

.story-timeline__item p,
.story-guide__item p,
.story-guide__source p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.story-character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.story-character-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 14px 28px rgba(84, 67, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.story-character-card:hover,
.story-character-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(190, 164, 208, 0.42);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 34px rgba(84, 67, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  outline: none;
}

.story-character-card figure {
  position: relative;
  margin: 0;
  height: 210px;
  overflow: hidden;
  background: rgba(250, 246, 252, 0.72);
}

.story-character-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.story-character-card > div {
  display: grid;
  gap: 6px;
  padding: 15px 16px 17px;
}

.story-character-card span {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-character-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.22rem;
}

.story-character-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.story-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 16px;
}

.story-guide__main,
.story-guide__source {
  padding: clamp(20px, 2.4vw, 28px);
}

.story-guide__list,
.story-source-list {
  display: grid;
  gap: 10px;
}

.story-guide__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 16px;
}

.story-guide__item b {
  align-self: start;
  color: rgba(117, 100, 136, 0.34);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1;
}

.story-guide__source {
  display: grid;
  align-content: start;
  gap: 10px;
}

.story-guide__source > strong {
  font-family: var(--font-serif);
  font-size: 1.32rem;
}

.story-source-list a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.story-source-list a:hover,
.story-source-list a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(186, 165, 205, 0.4);
  outline: none;
}

.story-source-list strong {
  font-family: var(--font-serif);
  line-height: 1.35;
}

.story-source-list small {
  color: var(--ink-faint);
  font-size: 0.76rem;
}

@media (max-width: 1080px) {
  .story-hero,
  .story-summary,
  .story-guide {
    grid-template-columns: 1fr;
  }

  .story-hero__visual {
    min-height: 300px;
  }

  .story-premise {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .story-page {
    gap: 22px;
  }

  .story-hero,
  .story-summary,
  .story-timeline,
  .story-characters,
  .story-guide__main,
  .story-guide__source {
    padding: 18px;
    border-radius: 26px;
  }

  .story-hero__copy {
    gap: 12px;
  }

  .story-hero__meta {
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
  }

  .story-hero__visual {
    min-height: 240px;
    border-radius: 22px;
  }

  .story-summary__facts,
  .story-summary__routes .origin-section-nav,
  .story-character-grid {
    grid-template-columns: 1fr;
  }

  .story-premise__card {
    min-height: 0;
    padding: 20px;
  }

  .story-timeline__item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .story-character-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .story-character-card figure {
    height: 100%;
    min-height: 148px;
  }

  .story-guide__item {
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

.books-page {
  display: grid;
  gap: 32px;
}

.books-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(590px, 1.22fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: stretch;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 254, 251, 0.94), rgba(249, 246, 252, 0.9) 48%, rgba(246, 250, 250, 0.86));
}

.books-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius-xl) - 10px);
  pointer-events: none;
}

.books-hero::after {
  content: "";
  position: absolute;
  left: 38px;
  top: 34px;
  width: 118px;
  height: 118px;
  border-top: 1px solid rgba(132, 115, 154, 0.12);
  border-left: 1px solid rgba(132, 115, 154, 0.12);
  border-radius: 34px 0 0 0;
  opacity: 0.7;
  pointer-events: none;
}

.books-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.books-hero__title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.books-hero__title-row .page-title {
  margin: 0;
}

.books-hero__title-row > span {
  position: relative;
  display: block;
  flex: 1 1 120px;
  max-width: 168px;
  height: 1px;
  background: rgba(132, 115, 154, 0.34);
}

.books-hero__title-row > span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(118, 93, 160, 0.62);
  transform: translateY(-50%) rotate(45deg);
  background: rgba(255, 253, 249, 0.9);
}

.books-hero__meta {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  justify-self: stretch;
  min-height: 74px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 26px rgba(71, 61, 85, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.books-hero__meta i,
.books-hero__fact i {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #80669e;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(132, 115, 154, 0.16);
}

.books-hero__meta div,
.books-hero__fact div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.books-hero__meta div > span,
.books-hero__fact span,
.books-volume-card__kicker,
.books-volume-card__cta > span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.books-hero__meta strong {
  font-family: var(--font-serif);
  font-size: 1.18rem;
}

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

.books-hero__fact {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.books-hero__fact strong {
  min-width: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.books-hero__showcase {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-width: 0;
}

@media (min-width: 1121px) {
  .books-hero__showcase {
    margin-top: clamp(26px, 3vw, 46px);
  }
}

.books-hero__book {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.88));
  box-shadow:
    0 18px 40px rgba(71, 61, 85, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.books-hero__book-label {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.books-hero__book-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  color: var(--ink-muted);
  text-align: center;
}

.books-hero__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 14px;
  align-content: center;
}

.books-hero__book {
  display: grid;
  grid-template-rows: 228px auto;
  justify-items: center;
  align-self: center;
  gap: 9px;
  min-width: 0;
  min-height: 292px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.books-hero__book:hover,
.books-hero__book:focus-visible {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(157, 137, 187, 0.34);
  box-shadow:
    0 22px 42px rgba(71, 61, 85, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.books-hero__book img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: 226px;
  max-width: calc(100% - 12px);
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(50, 44, 57, 0.13));
  transform: translateX(-50%);
}

.books-hero__book-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 228px;
  overflow: hidden;
}

.books-hero__book-label {
  position: relative;
  justify-self: center;
  white-space: nowrap;
}

.books-hero__book-label::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(118, 93, 160, 0.62);
}

.books-hero__footer {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 18px;
  color: rgba(132, 115, 154, 0.46);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.books-hero__footer span {
  height: 1px;
  background: rgba(132, 115, 154, 0.18);
}

.books-hero__footer em {
  font-style: normal;
}

.books-section {
  padding: clamp(18px, 2.5vw, 26px);
}

.books-volume-grid {
  display: grid;
  gap: 14px;
}

.books-volume-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(306px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 246, 0.9) 54%, rgba(246, 249, 250, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 14px 30px rgba(39, 48, 63, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.books-volume-card:hover,
.books-volume-card:focus-within {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(180, 160, 205, 0.32);
  box-shadow:
    0 20px 38px rgba(39, 48, 63, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.books-volume-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 154px;
  overflow: hidden;
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 245, 250, 0.92), rgba(238, 232, 242, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.books-volume-card__visual img {
  display: block;
  width: min(100%, 94px);
  height: 100%;
  max-height: 158px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 12px 14px rgba(39, 35, 45, 0.16));
  transition: transform var(--transition), filter var(--transition);
}

.books-volume-card:hover .books-volume-card__visual img,
.books-volume-card:focus-within .books-volume-card__visual img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 15px 17px rgba(39, 35, 45, 0.18)) saturate(1.03) brightness(1.01);
}

.books-volume-card__visual--placeholder {
  padding: 22px;
}

.books-volume-card__visual-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  color: var(--ink-muted);
}

.books-volume-card__visual-fallback span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.books-volume-card__visual-fallback strong {
  font-family: var(--font-serif);
  font-size: 1.36rem;
  line-height: 1.28;
}

.books-volume-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 52%, rgba(13, 11, 18, 0.08));
  pointer-events: none;
}

.books-volume-card__number {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.books-volume-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 7px 0;
}

.books-volume-card__head {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.books-volume-card__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.books-volume-card__kicker em {
  color: #8d78a5;
  font-style: normal;
}

.books-volume-card__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2vw, 1.46rem);
  line-height: 1.28;
}

.books-volume-card__head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.books-volume-card__summary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.books-volume-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.books-volume-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.books-volume-card__actions {
  display: grid;
  gap: 9px;
}

.books-volume-card__actions .button {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  white-space: nowrap;
}

.books-volume-card__cta {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 0 8px 18px;
  border-left: 1px solid rgba(140, 130, 155, 0.16);
}

.books-volume-card__cta p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.encyclopedia-section {
  display: grid;
  gap: 18px;
}

.encyclopedia-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 26px;
  align-items: stretch;
}

.encyclopedia-hero__copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.encyclopedia-hero__media {
  display: grid;
  gap: 14px;
}

.encyclopedia-visual {
  position: relative;
  min-height: clamp(320px, 36vw, 470px);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(180deg, rgba(244, 246, 250, 0.92), rgba(239, 237, 244, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 28px 54px rgba(35, 45, 60, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.encyclopedia-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.encyclopedia-visual__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%, rgba(16, 14, 22, 0.22)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), transparent 36%);
}

.encyclopedia-visual__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(246, 243, 240, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.encyclopedia-visual--placeholder {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 26px;
}

.encyclopedia-visual--placeholder span,
.encyclopedia-visual-tile--placeholder span,
.reference-card__copy span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.encyclopedia-visual--placeholder strong {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.encyclopedia-visual--placeholder p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.encyclopedia-visual-tile {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 246, 242, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 32px rgba(39, 48, 63, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.encyclopedia-visual-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.encyclopedia-visual-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(13, 11, 19, 0.2));
}

.encyclopedia-visual-tile span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(250, 247, 244, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.encyclopedia-visual-tile--placeholder {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
}

.encyclopedia-visual-tile--placeholder strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

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

.encyclopedia-fact,
.encyclopedia-card,
.works-shelf__card,
.reference-card {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 247, 243, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 34px rgba(38, 47, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.encyclopedia-fact {
  display: grid;
  gap: 10px;
  padding: 20px 18px;
}

.encyclopedia-fact span,
.works-shelf__meta span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.encyclopedia-fact strong {
  font-size: 1rem;
  line-height: 1.7;
}

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

.encyclopedia-card {
  display: grid;
  gap: 10px;
  padding: 22px 20px;
}

.encyclopedia-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.encyclopedia-card p,
.works-shelf__summary,
.reference-card__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.encyclopedia-tag-cloud {
  gap: 12px;
}

.works-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.works-shelf__card {
  display: grid;
  overflow: hidden;
}

.works-shelf__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(244, 242, 247, 0.96), rgba(232, 226, 240, 0.98));
}

.works-shelf__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.works-shelf__order {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(247, 243, 239, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.works-shelf__cover--placeholder {
  display: grid;
  align-content: end;
  padding: 20px;
}

.works-shelf__cover-fallback {
  display: grid;
  gap: 8px;
}

.works-shelf__cover-fallback strong {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.2;
}

.works-shelf__body {
  display: grid;
  gap: 14px;
  padding: 20px 18px 18px;
}

.works-shelf__head {
  display: grid;
  gap: 6px;
}

.works-shelf__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.works-shelf__head p {
  margin: 0;
  color: var(--ink-faint);
}

.works-shelf__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.works-shelf__meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.works-shelf__source,
.reference-card {
  color: inherit;
  text-decoration: none;
}

.works-shelf__source {
  color: var(--ink-faint);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

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

.reference-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 18px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.reference-card:hover,
.reference-card:focus-visible {
  transform: translateY(var(--motion-hover-y));
  box-shadow:
    0 22px 36px rgba(40, 49, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.reference-card__copy {
  display: grid;
  gap: 8px;
}

.reference-card__copy strong {
  font-family: var(--font-serif);
  font-size: 1.14rem;
}

.reference-card em {
  color: var(--ink-faint);
  font-style: normal;
}

.author-page {
  display: grid;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 180px;
}

.character-page {
  display: grid;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 180px;
}

.author-page .ency-section.panel--soft {
  padding: 40px;
}

.author-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  overflow: hidden;
  border-radius: 34px;
}

.author-hero__content {
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 42px;
}

.author-hero__main {
  display: grid;
  gap: 12px;
}

.author-hero__main .page-title,
.author-hero__main .page-subtitle,
.author-hero__main .page-lead {
  margin: 0;
}

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

.author-hero__fact {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.author-hero__fact span,
.author-work-card__meta span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-hero__fact strong {
  line-height: 1.55;
}

.author-hero__visual {
  position: relative;
  min-height: clamp(340px, 38vw, 460px);
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(135deg, rgba(238, 235, 244, 0.9), rgba(255, 251, 247, 0.78));
}

.author-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-hero__visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%, rgba(18, 15, 24, 0.18)),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.3), transparent 36%);
}

.author-hero__visual figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% - 44px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-hero__visual--placeholder {
  display: grid;
  place-items: end start;
  padding: 26px;
}

.author-hero__visual--placeholder > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.author-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.author-profile__essay {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  min-height: 100%;
  padding: 24px 28px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.64), transparent 34%),
    radial-gradient(circle at bottom right, rgba(219, 232, 246, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 247, 243, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 34px rgba(40, 48, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.author-profile__essay-head {
  position: relative;
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
}

.author-profile__essay-head span,
.author-profile__highlight span,
.author-profile__facts-head span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-profile__essay-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}

.author-profile__essay-head p {
  margin: 0;
  color: var(--gold-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.author-profile__paragraphs {
  position: relative;
  display: grid;
  gap: 0;
}

.author-profile__paragraphs p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

.author-profile__paragraphs p:first-child {
  color: var(--ink);
  font-size: 1rem;
}

.author-profile__paragraphs p + p {
  margin-top: 10px;
}

.author-profile__side {
  display: grid;
  gap: 12px;
}

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

.author-profile__highlight {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 78px;
  padding: 14px 15px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 247, 243, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 14px 28px rgba(40, 48, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.author-profile__highlight strong {
  color: var(--ink);
  line-height: 1.55;
}

.author-profile__facts {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 211, 238, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(250, 247, 243, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 34px rgba(40, 48, 62, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.author-profile__facts-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(149, 135, 163, 0.16);
}

.author-profile__facts-head strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.author-profile__facts .encyclopedia-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.author-profile__facts .encyclopedia-fact {
  gap: 5px;
  padding: 11px 12px;
  border-radius: 16px;
  box-shadow: none;
}

.author-profile__facts .encyclopedia-fact span {
  font-size: 0.68rem;
}

.author-profile__facts .encyclopedia-fact strong {
  font-size: 0.92rem;
  line-height: 1.45;
}

.author-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.author-work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 247, 243, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 34px rgba(40, 48, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.author-work-card:hover,
.author-work-card:focus-within {
  transform: translateY(var(--motion-hover-y));
  box-shadow:
    0 26px 42px rgba(40, 48, 62, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.author-work-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.52), transparent 36%),
    linear-gradient(180deg, rgba(244, 242, 247, 0.96), rgba(232, 226, 238, 0.98));
}

.author-work-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.author-work-card__visual--placeholder {
  padding: 26px;
}

.author-work-card__visual--placeholder > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  color: var(--ink-muted);
}

.author-work-card__visual--placeholder strong {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.author-work-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%, rgba(13, 11, 18, 0.16)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 32%);
  pointer-events: none;
}

.author-work-card__year {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(247, 243, 239, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.author-work-card__body {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 12px;
  padding: 20px 18px 18px;
}

.author-work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.author-work-card__meta em {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-style: normal;
}

.author-work-card__head {
  display: grid;
  gap: 6px;
}

.author-work-card__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.2;
}

.author-work-card__head p {
  margin: 0;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.author-work-card__summary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.84;
}

.author-work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-work-card__tags span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.author-awards {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.author-awards__summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(220, 203, 150, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 243, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 34px rgba(40, 48, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.author-awards__summary > span,
.author-award-card__marker span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-awards__summary > strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.9;
  color: var(--ink);
}

.author-awards__summary p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.author-awards__summary dl {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.author-awards__summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(149, 135, 163, 0.16);
}

.author-awards__summary dt,
.author-awards__summary dd {
  margin: 0;
}

.author-awards__summary dt {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.author-awards__summary dd {
  color: var(--ink);
  font-weight: 700;
}

.author-awards__timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.author-awards__timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 47px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(149, 135, 163, 0.34), transparent);
}

.author-award-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.author-award-card__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  padding-top: 18px;
}

.author-award-card__marker::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 4px solid var(--gold-strong);
  box-shadow: 0 0 0 6px rgba(220, 203, 150, 0.18);
}

.author-award-card__body {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 243, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 14px 28px rgba(40, 48, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.author-award-card:hover .author-award-card__body {
  transform: translateY(-2px);
  box-shadow:
    0 20px 34px rgba(40, 48, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.author-award-card__head {
  display: grid;
  gap: 7px;
}

.author-award-card__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.32;
}

.author-award-card__head strong {
  color: var(--gold-strong);
  font-size: 0.95rem;
}

.author-award-card__body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

.studio-page {
  display: grid;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 180px;
}

.studio-page .ency-section.panel--soft {
  padding: 40px;
}

.studio-hero {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 34px;
}

.studio-hero__image {
  position: relative;
  min-height: clamp(300px, 34vw, 380px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(236, 235, 242, 0.94), rgba(224, 220, 235, 0.98));
}

.studio-hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.studio-hero__image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%, rgba(18, 15, 24, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18%, rgba(255, 255, 255, 0.06));
}

.studio-hero__image-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(248, 245, 242, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.studio-hero__content {
  display: grid;
  gap: 24px;
  padding: 40px 42px 42px;
}

.studio-hero__main {
  display: grid;
  gap: 12px;
}

.studio-hero__main .page-title {
  margin: 0;
}

.studio-hero__notes {
  display: grid;
  gap: 12px;
  max-width: 64rem;
}

.studio-hero__notes p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.88;
}

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

.studio-hero__fact {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.studio-hero__fact span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-hero__fact strong {
  font-size: 0.98rem;
  line-height: 1.6;
}

.studio-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 22px;
  align-items: start;
}

.studio-profile__copy {
  display: grid;
  gap: 14px;
}

.studio-profile__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.92;
}

.studio-profile__logo-card {
  display: flex;
  min-height: 108px;
  margin: 22px 0 0;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.studio-profile__logo-card img {
  display: block;
  width: min(620px, 100%);
  height: 96px;
  object-fit: cover;
  object-position: center center;
}

.studio-profile__logo-card figcaption {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-profile__facts .encyclopedia-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.studio-work-card {
  display: grid;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 243, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 20px 36px rgba(39, 48, 63, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.studio-work-card:hover,
.studio-work-card:focus-visible {
  transform: translateY(var(--motion-hover-y));
  box-shadow:
    0 28px 40px rgba(39, 48, 63, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.studio-work-card__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.52), transparent 36%),
    linear-gradient(180deg, rgba(244, 242, 247, 0.96), rgba(232, 226, 238, 0.98));
}

.studio-work-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.studio-work-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%, rgba(13, 11, 18, 0.18)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 32%);
}

.studio-work-card__year {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(247, 243, 239, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.studio-work-card__body {
  display: grid;
  gap: 12px;
  padding: 20px 18px 18px;
}

.studio-work-card__head {
  display: grid;
  gap: 6px;
}

.studio-work-card__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.2;
}

.studio-work-card__head p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-work-card__summary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

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

.studio-map-card {
  display: grid;
  gap: 16px;
}

.studio-map-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 5;
  min-height: 360px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(243, 241, 247, 0.96), rgba(230, 226, 238, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 22px 38px rgba(40, 48, 64, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.studio-map-card__frame iframe,
.studio-map-card__provider,
.studio-map-card__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.studio-map-card__frame iframe {
  border: 0;
}

.studio-map-card__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.studio-map-card__pin-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px 999px 999px 0;
  background: #e54b42;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 22px rgba(77, 40, 48, 0.26),
    0 0 0 8px rgba(229, 75, 66, 0.12);
  transform: rotate(-45deg);
}

.studio-map-card__pin-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.studio-map-card__pin strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow:
    0 12px 24px rgba(52, 59, 76, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.studio-map-card__provider {
  background: rgba(244, 242, 248, 0.94);
}

.studio-map-card__provider--leaflet {
  z-index: 0;
}

.studio-map-card__provider--leaflet .leaflet-popup-content-wrapper {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 16px 28px rgba(52, 59, 76, 0.16);
  backdrop-filter: blur(12px);
}

.studio-map-card__provider--leaflet .leaflet-popup-content {
  margin: 12px 14px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.studio-map-card__provider--leaflet .leaflet-popup-content strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.studio-map-card__provider--leaflet .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.92);
}

.studio-map-card__loading,
.studio-map-card__fallback {
  display: grid;
  place-items: center;
}

.studio-map-card__loading {
  min-height: 360px;
  color: var(--ink-faint);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.studio-map-card__fallback {
  position: relative;
  color: inherit;
  text-decoration: none;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, rgba(238, 242, 247, 0.96), rgba(221, 226, 236, 0.96));
}

.studio-map-card__fallback img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.studio-map-card__fallback-copy {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  max-width: min(520px, calc(100% - 48px));
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 28px rgba(52, 59, 76, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.studio-map-card__fallback:not(.has-image) .studio-map-card__fallback-copy {
  position: static;
}

.studio-map-card__fallback-copy span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.studio-map-card__fallback-copy strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.studio-map-card__fallback-copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.studio-map-card__body {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 0 4px;
}

.studio-map-card__address {
  display: grid;
  gap: 8px;
}

.studio-map-card__address span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-map-card__address strong {
  font-size: 1rem;
  line-height: 1.8;
}

.studio-map-card__link,
.studio-return-entry {
  color: inherit;
  text-decoration: none;
}

.studio-map-card__link {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.studio-return-entry {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 30px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.studio-return-entry--with-visual {
  align-items: center;
  padding: 18px 30px 18px 18px;
}

.studio-return-entry__visual {
  flex: 0 0 clamp(128px, 16vw, 210px);
  height: clamp(82px, 9vw, 118px);
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.studio-return-entry__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
}

.studio-return-entry:hover,
.studio-return-entry:focus-visible {
  transform: translateY(var(--motion-hover-y));
  box-shadow:
    0 24px 38px rgba(40, 49, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.studio-return-entry__copy {
  display: grid;
  gap: 8px;
}

.studio-return-entry__copy span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-return-entry__copy strong {
  font-family: var(--font-serif);
  font-size: 1.32rem;
}

.studio-return-entry__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

.studio-return-entry em {
  color: var(--ink-faint);
  font-style: normal;
}

.staffcast-page {
  display: grid;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 180px;
}

.staffcast-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.78fr);
  grid-template-areas: "copy visual";
  gap: 24px;
  align-items: start;
  padding: 34px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.68), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(210, 222, 241, 0.44), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(248, 244, 240, 0.88));
}

.staffcast-hero__copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.72fr);
  gap: 14px 16px;
  align-content: start;
  min-width: 0;
  padding: 6px 8px 6px;
}

.staffcast-hero__main {
  grid-column: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.staffcast-hero__main .page-title,
.staffcast-hero__main .page-subtitle,
.staffcast-hero__main .page-description {
  margin: 0;
}

.staffcast-hero__main .page-description {
  max-width: 30rem;
  padding-left: 14px;
  border-left: 2px solid rgba(140, 130, 155, 0.14);
}

.staffcast-hero__meta {
  grid-column: 2;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: none;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 247, 244, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 14px 28px rgba(45, 54, 70, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staffcast-hero__meta span,
.staffcast-hero__quick span,
.staffcast-hero__facts span,
.staffcast-hero__credit span,
.staffcast-hero__credit small {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staffcast-hero__meta strong {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.45;
}

.staffcast-hero__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staffcast-hero__fact {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.staffcast-hero__fact strong {
  color: var(--color-ink);
  font-family: var(--font-serif);
  line-height: 1.48;
}

.staffcast-hero__staff {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 18px 20px 17px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(45, 54, 70, 0.06);
}

.staffcast-hero__staff > span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staffcast-hero__staff-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.82fr) minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 139, 153, 0.12);
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.staffcast-hero__staff-row:hover,
.staffcast-hero__staff-row:focus-visible {
  opacity: 0.96;
  transform: translateY(-1px);
  outline: none;
}

.staffcast-hero__staff-row small {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.staffcast-hero__staff-row strong {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
}

.staffcast-hero__staff-row em {
  grid-column: 2;
  color: color-mix(in srgb, var(--ink-faint) 78%, var(--color-ink));
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.staffcast-hero__visual {
  grid-area: visual;
  display: block;
  min-width: 0;
  align-self: stretch;
}

.staffcast-hero__visual .encyclopedia-visual {
  height: 100%;
  min-height: clamp(340px, 38vw, 500px);
  border-radius: 32px;
}

.staffcast-hero,
.staffcast-hero__copy,
.staffcast-hero__visual,
.staffcast-hero__meta,
.staffcast-hero__facts,
.staffcast-hero__fact,
.staffcast-hero__staff,
.staffcast-hero__staff-row {
  min-width: 0;
}

.staffcast-page .page-description,
.staffcast-hero__meta strong,
.staffcast-hero__fact strong,
.staffcast-hero__staff-row strong {
  overflow-wrap: anywhere;
}

.staffcast-page .ency-section.panel--soft,
.staffcast-page .encyclopedia-section.panel--soft {
  padding: 40px;
}

.staffcast-profile__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 22px;
  align-items: start;
}

.staffcast-profile__copy {
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(250, 247, 243, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.staffcast-profile__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.92;
}

.staffcast-profile__facts .encyclopedia-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.staffcast-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(250, 247, 243, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 34px rgba(38, 47, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.staffcast-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: inherit;
  border-left: 5px solid var(--staff-accent, #7b8fc4);
}

.staffcast-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -56px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-accent, #7b8fc4) 18%, transparent);
  pointer-events: none;
}

.staffcast-card:hover,
.staffcast-card:focus-visible {
  transform: translateY(var(--motion-hover-y));
  outline: none;
  border-color: color-mix(in srgb, var(--staff-accent, #7b8fc4) 28%, rgba(255, 255, 255, 0.86));
  box-shadow:
    0 26px 42px rgba(38, 47, 62, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.staffcast-card__index {
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 1;
  color: color-mix(in srgb, var(--staff-accent, #7b8fc4) 62%, rgba(102, 90, 116, 0.7));
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0.42;
}

.staffcast-card__head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.staffcast-card__head span,
.staffcast-cast__row span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staffcast-card__head h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.08;
}

.staffcast-card__head p,
.staffcast-cast__row em {
  margin: 0;
  color: color-mix(in srgb, var(--staff-accent, #7b8fc4) 68%, var(--ink-faint));
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.staffcast-card__note {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  line-height: 1.86;
}

.staffcast-cast__list {
  display: grid;
  gap: 12px;
}

.staffcast-cast__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(160px, 0.8fr) minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 16px 44px 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 243, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 14px 28px rgba(38, 47, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.staffcast-cast__row:hover,
.staffcast-cast__row:focus-visible {
  transform: translateY(var(--motion-hover-y));
  outline: none;
  border-color: rgba(126, 143, 181, 0.34);
  box-shadow:
    0 22px 36px rgba(38, 47, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.staffcast-cast__row::after {
  content: "↗";
  position: absolute;
  right: 16px;
  top: 50%;
  color: color-mix(in srgb, var(--ink-faint) 72%, var(--color-ink));
  font-size: 0.9rem;
  transform: translateY(-50%);
}

.staffcast-cast__row strong {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.32rem;
}

.staff-profile-page {
  display: grid;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 180px;
}

.staff-profile-page .encyclopedia-section.panel--soft {
  padding: 40px;
}

.staff-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 26px;
  padding: 36px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.72), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(213, 225, 241, 0.48), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 244, 240, 0.9));
}

.staff-profile-hero__copy {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.staff-profile-hero__main {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.staff-profile-hero__main .page-title,
.staff-profile-hero__main .page-subtitle,
.staff-profile-hero__main .page-description {
  margin: 0;
}

.staff-profile-hero__summary {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.staff-profile-hero__meta {
  display: grid;
  gap: 8px;
  max-width: 700px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 14px 28px rgba(45, 54, 70, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.staff-profile-hero__meta span,
.staff-profile-hero__fact span,
.staff-profile-facts__head span,
.staff-profile-source-card span,
.staff-profile-related__card span,
.staff-profile-work-card__head span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staff-profile-hero__meta strong {
  color: var(--ink);
  line-height: 1.7;
}

.staff-profile-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-profile-hero__fact {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 84px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.staff-profile-hero__fact strong {
  color: var(--ink);
  line-height: 1.55;
}

.staff-profile-hero__visual-wrap {
  display: block;
  min-width: 0;
}

.staff-profile-hero__visual {
  position: relative;
  height: 100%;
  min-height: clamp(380px, 42vw, 560px);
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.64), transparent 36%),
    linear-gradient(180deg, rgba(243, 241, 247, 0.96), rgba(230, 226, 238, 0.98));
  box-shadow:
    0 22px 42px rgba(38, 47, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.staff-profile-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-profile-hero__visual--logo img {
  object-fit: contain;
  padding: 34px;
}

.staff-profile-hero__visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%, rgba(18, 15, 24, 0.18)),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.28), transparent 36%);
  pointer-events: none;
}

.staff-profile-hero__visual figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.staff-profile-hero__visual--placeholder {
  display: grid;
  place-items: end start;
  padding: 28px;
}

.staff-profile-hero__visual-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.staff-profile-hero__visual-fallback strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.staff-profile-hero__visual-fallback p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

.staff-profile-hero__visual-fallback em {
  position: absolute;
  right: -28px;
  bottom: -18px;
  z-index: -1;
  color: rgba(130, 118, 150, 0.12);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 12vw, 10rem);
  font-style: normal;
  line-height: 0.8;
}

.staff-profile-body__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.staff-profile-essay {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 24px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 247, 243, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 34px rgba(40, 48, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-profile-essay .section-heading {
  margin-bottom: 0;
}

.staff-profile-essay__paragraphs {
  display: grid;
  gap: 10px;
}

.staff-profile-essay__paragraphs p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.86;
}

.staff-profile-essay__paragraphs p:first-child {
  color: var(--ink);
}

.staff-profile-facts {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 211, 238, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(250, 247, 243, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 34px rgba(40, 48, 62, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.staff-profile-facts__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(149, 135, 163, 0.16);
}

.staff-profile-facts__head strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.staff-profile-facts .encyclopedia-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staff-profile-facts .encyclopedia-fact {
  gap: 5px;
  padding: 11px 12px;
  border-radius: 16px;
  box-shadow: none;
}

.staff-profile-works__grid,
.staff-profile-sources__list,
.staff-profile-related__grid {
  display: grid;
  gap: 14px;
}

.staff-profile-works__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.staff-profile-work-card,
.staff-profile-source-card,
.staff-profile-related__card {
  color: inherit;
  text-decoration: none;
}

.staff-profile-work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 247, 243, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 16px 30px rgba(40, 48, 62, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.staff-profile-work-card:hover,
.staff-profile-work-card:focus-within {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(126, 143, 181, 0.3);
  box-shadow:
    0 24px 40px rgba(40, 48, 62, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.staff-profile-work-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(180deg, rgba(244, 242, 247, 0.96), rgba(232, 226, 238, 0.98));
}

.staff-profile-work-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform var(--transition), filter var(--transition);
}

.staff-profile-work-card:hover .staff-profile-work-card__visual img,
.staff-profile-work-card:focus-within .staff-profile-work-card__visual img {
  transform: scale(1.035);
  filter: saturate(1.04) brightness(1.02);
}

.staff-profile-work-card__visual--placeholder {
  padding: 20px;
}

.staff-profile-work-card__visual--placeholder > div {
  display: grid;
  gap: 8px;
  color: var(--ink-faint);
  text-align: center;
}

.staff-profile-work-card__visual--placeholder span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.staff-profile-work-card__visual--placeholder strong {
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.3;
}

.staff-profile-work-card__year {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(247, 243, 239, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.staff-profile-work-card__body {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding: 17px 16px 18px;
}

.staff-profile-work-card__head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.staff-profile-work-card__head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.staff-profile-work-card__head p,
.staff-profile-work-card__body > p {
  margin: 0;
  color: var(--ink-soft);
}

.staff-profile-work-card__head p {
  color: var(--gold-strong);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.staff-profile-work-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.staff-profile-source-card,
.staff-profile-related__card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 28px rgba(40, 48, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.staff-profile-source-card:hover,
.staff-profile-source-card:focus-visible,
.staff-profile-related__card:hover,
.staff-profile-related__card:focus-visible {
  transform: translateY(var(--motion-hover-y));
  outline: none;
  border-color: rgba(126, 143, 181, 0.34);
  box-shadow:
    0 22px 36px rgba(40, 48, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.staff-profile-source-card__copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.staff-profile-source-card strong,
.staff-profile-related__card strong {
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.35;
}

.staff-profile-source-card strong {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.staff-profile-source-card em {
  color: var(--ink-faint);
  font-style: normal;
}

.staff-profile-related__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-profile-related__card {
  display: grid;
  align-content: start;
  min-height: 116px;
}

.staff-profile-related__card small {
  color: var(--ink-soft);
  line-height: 1.5;
}

.thanks-page {
  display: grid;
  gap: 34px;
  padding-bottom: 38px;
}

.thanks-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(34px, 4vw, 58px);
  align-items: center;
  min-height: 0;
  padding: clamp(36px, 4.6vw, 58px);
  overflow: hidden;
}

.thanks-hero__copy {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  max-width: 640px;
  padding: 10px 0;
}

.thanks-hero__copy .page-title,
.thanks-hero__copy .page-subtitle,
.thanks-hero__copy .page-lead {
  max-width: 680px;
}

.thanks-hero__copy .page-eyebrow {
  margin-bottom: 8px;
}

.thanks-hero__copy .page-title {
  line-height: 1.05;
}

.thanks-hero__copy .page-subtitle {
  margin-top: -4px;
}

.thanks-hero__intro {
  margin: 14px 0 2px;
  max-width: 520px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.85;
}

.thanks-hero__divider {
  width: min(420px, 100%);
  height: 1px;
  margin: 12px 0 4px;
  background: linear-gradient(90deg, rgba(130, 118, 150, 0.22), rgba(130, 118, 150, 0.04));
}

.thanks-hero__meta {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.thanks-hero__meta > span,
.thanks-card > span,
.thanks-closing__copy > span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.thanks-hero__meta > strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.thanks-hero__dedications {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thanks-hero__dedications article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 28px rgba(79, 70, 90, 0.06);
}

.thanks-hero__dedications span {
  color: var(--ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thanks-hero__dedications strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.62;
}

.thanks-hero__visual,
.thanks-memorial__visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  background: rgba(244, 241, 248, 0.88);
}

.thanks-hero__visual {
  height: clamp(440px, 45vw, 620px);
  min-height: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 24px 54px rgba(76, 66, 88, 0.1);
}

.thanks-hero__visual img,
.thanks-memorial__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.thanks-hero__visual img {
  min-height: 0;
  border-radius: 22px;
  filter: grayscale(0.22) saturate(0.48) contrast(0.84) brightness(1.1);
  object-position: center 58%;
}

.thanks-hero__shade {
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24) 48%, rgba(40, 35, 48, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 52%);
  pointer-events: none;
}

.thanks-hero__visual figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.thanks-hero__visual--placeholder,
.thanks-memorial__visual--placeholder {
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  text-align: center;
}

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

.thanks-card {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.thanks-card h2,
.thanks-memorial__copy h2,
.thanks-closing__copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: 1.16;
}

.thanks-card h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.thanks-card p,
.thanks-memorial__paragraphs p,
.thanks-closing__copy p,
.thanks-closing__items p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.thanks-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.thanks-card__facts em {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
}

.thanks-memorial {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  gap: 30px;
  align-items: stretch;
  padding: 34px;
}

.thanks-memorial__copy {
  display: grid;
  align-content: center;
  gap: 20px;
}

.thanks-memorial__copy h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.thanks-memorial__name {
  display: grid;
  gap: 8px;
  max-width: 460px;
  padding: 20px 0;
  border-top: 1px solid rgba(130, 118, 150, 0.14);
  border-bottom: 1px solid rgba(130, 118, 150, 0.14);
}

.thanks-memorial__name strong {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.2;
}

.thanks-memorial__name span,
.thanks-memorial__name em {
  color: var(--ink-soft);
  font-style: normal;
  line-height: 1.6;
}

.thanks-memorial__paragraphs {
  display: grid;
  gap: 14px;
}

.thanks-memorial blockquote {
  margin: 8px 0 0;
  max-width: 620px;
  padding-left: 18px;
  border-left: 3px solid rgba(198, 176, 116, 0.54);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.9;
}

.thanks-memorial__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.36), transparent 36%);
  pointer-events: none;
}

.thanks-memorial__visual {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 430px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.34)),
    linear-gradient(145deg, rgba(246, 244, 248, 0.96), rgba(231, 226, 236, 0.86));
}

.thanks-memorial__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 20px;
  object-fit: cover;
  object-position: center center;
  box-shadow:
    0 24px 52px rgba(35, 32, 40, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.68);
}

.thanks-memorial__visual figcaption {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  justify-self: start;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(130, 118, 150, 0.2);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0;
  line-height: 1.75;
  text-align: left;
}

.thanks-closing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
}

.thanks-closing__copy {
  display: grid;
  gap: 12px;
}

.thanks-closing__copy h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}

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

.thanks-closing__items article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.thanks-closing__items span {
  color: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}

.page-bangumi {
  --section-gap: 36px;
  padding-bottom: 180px;
}

.bangumi-section + .bangumi-section {
  margin-top: var(--section-gap);
}

.bangumi-hero .page-hero__aside .inner-hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bangumi-recommend {
  display: grid;
  gap: 28px;
  padding: 32px 36px 38px;
  border-radius: 30px;
  overflow: hidden;
}

.bangumi-recommend__head {
  display: grid;
  justify-items: flex-start;
  gap: 12px;
  text-align: left;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(130, 118, 150, 0.12);
}

.bangumi-recommend__head > span,
.bangumi-recommend__copy > span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bangumi-recommend__head h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.14;
}

.bangumi-recommend__head p {
  margin: 0;
  max-width: 46rem;
  color: rgba(70, 64, 82, 0.72);
  line-height: 1.8;
}

.bangumi-recommend__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.bangumi-recommend__item {
  position: relative;
  --medal-top: #ffffff;
  --medal-mid: #d9dde6;
  --medal-bottom: #aeb5c5;
  --medal-edge: #c5ccd8;
  --medal-ink: #4e5260;
  --medal-ribbon: #c9cfdb;
  --medal-shadow: rgba(88, 93, 104, 0.22);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-width: 0;
  padding: 14px 14px 20px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 34px rgba(92, 76, 109, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.bangumi-recommend__item.is-featured {
  --medal-top: #fff7cf;
  --medal-mid: #f0bf47;
  --medal-bottom: #c58518;
  --medal-edge: #d8a12d;
  --medal-ink: #573808;
  --medal-ribbon: #d69c2a;
  --medal-shadow: rgba(147, 101, 24, 0.28);
  margin-top: -12px;
  margin-bottom: -2px;
  box-shadow:
    0 26px 46px rgba(92, 76, 109, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.bangumi-recommend__item:nth-child(3) {
  --medal-top: #f5caa4;
  --medal-mid: #c77b42;
  --medal-bottom: #8f542f;
  --medal-edge: #b87951;
  --medal-ink: #51301c;
  --medal-ribbon: #b46e42;
  --medal-shadow: rgba(124, 75, 46, 0.24);
}

.bangumi-recommend__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: rgba(244, 241, 248, 0.9);
  box-shadow:
    0 14px 26px rgba(62, 54, 72, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.bangumi-recommend__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bangumi-recommend__media--placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--ink-faint);
  text-align: center;
}

.bangumi-recommend__media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 46%, rgba(28, 24, 35, 0.3)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 34%);
}

.bangumi-recommend__rank {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, var(--medal-top) 0 18%, transparent 19%),
    linear-gradient(145deg, var(--medal-top), var(--medal-mid) 54%, var(--medal-bottom));
  border: 2px solid var(--medal-edge);
  color: var(--medal-ink);
  font-size: 0.86rem;
  font-weight: 800;
  z-index: 2;
  box-shadow:
    0 14px 24px var(--medal-shadow),
    inset 0 2px 3px rgba(255, 255, 255, 0.62),
    inset 0 -4px 8px rgba(47, 37, 30, 0.12);
  backdrop-filter: blur(12px);
}

.bangumi-recommend__rank::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 34px;
  height: 24px;
  background:
    linear-gradient(90deg, var(--medal-ribbon) 0 42%, transparent 42% 58%, var(--medal-ribbon) 58% 100%);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 50% 72%, 14% 100%);
  opacity: 0.92;
  transform: translateX(-50%);
  z-index: -1;
}

.bangumi-recommend__rank::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(76, 56, 32, 0.08);
}

.bangumi-recommend__stamp {
  position: absolute;
  right: 14px;
  top: 16px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid rgba(181, 28, 38, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #b51c26;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
  box-shadow:
    inset 0 0 0 2px rgba(181, 28, 38, 0.16),
    0 10px 18px rgba(76, 33, 38, 0.16);
  backdrop-filter: blur(8px);
}

.bangumi-recommend__stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(181, 28, 38, 0.58);
  border-radius: 5px;
  pointer-events: none;
}

.bangumi-recommend__copy {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 0 4px;
}

.bangumi-recommend__copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.35;
}

.bangumi-recommend__item.is-featured .bangumi-recommend__copy h3 {
  font-size: 1.34rem;
}

.bangumi-recommend__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.76;
}

.bangumi-recommend__subtitle {
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.bangumi-board {
  display: grid;
  gap: 24px;
}

.bangumi-shelf {
  margin-top: 32px;
  padding: 34px 36px 22px;
  border-radius: 32px;
  gap: 0;
}

.bangumi-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding-bottom: 20px;
}

.shelf-title-group {
  max-width: 560px;
}

.shelf-title-group h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.shelf-title-group p:last-child {
  margin: 0;
  color: rgba(70, 64, 82, 0.72);
  line-height: 1.8;
}

.shelf-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: flex-start;
}

.shelf-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 30px rgba(92, 76, 109, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: rgba(70, 64, 82, 0.72);
  font-size: 0.85rem;
}

.bangumi-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(130, 118, 150, 0.12);
  margin-top: 0;
  margin-bottom: 26px;
}

.bangumi-tools__group {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bangumi-tab {
  min-width: 96px;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 249, 245, 0.5)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 40%);
  box-shadow:
    0 14px 28px rgba(92, 76, 109, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.bangumi-tab:hover,
.bangumi-tab:focus-visible,
.bangumi-tab.is-active {
  transform: translateY(-1px);
  color: var(--ink);
  border-color: rgba(201, 178, 220, 0.54);
  box-shadow:
    0 16px 30px rgba(92, 76, 109, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.bangumi-tab.is-active {
  background:
    linear-gradient(180deg, rgba(241, 229, 249, 0.9), rgba(255, 238, 244, 0.64)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 40%);
}

.bangumi-search {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 260px;
  flex: 1;
  max-width: 420px;
}

.bangumi-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 249, 245, 0.5)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 40%);
  box-shadow:
    0 14px 28px rgba(92, 76, 109, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: none;
}

.bangumi-search input::placeholder {
  color: var(--ink-faint);
}

.bangumi-search input:focus {
  border-color: rgba(201, 178, 220, 0.54);
  box-shadow:
    0 18px 30px rgba(92, 76, 109, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.bangumi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  perspective: 1200px;
}

.bangumi-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  border: 1px dashed rgba(171, 156, 191, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 244, 0.34)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 44%);
  color: var(--ink-soft);
  text-align: center;
}

.bangumi-state p {
  margin: 0;
  max-width: 32rem;
  line-height: 1.9;
}

.bangumi-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 28px;
  min-height: 100%;
  transform-origin: center bottom;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.bangumi-card:hover,
.bangumi-card:focus-visible {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(190, 172, 212, 0.46);
  box-shadow:
    0 28px 46px rgba(92, 76, 109, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.bangumi-card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.bangumi-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 620ms var(--motion-ease-soft),
    filter var(--motion-duration-base) var(--motion-ease-standard);
}

.bangumi-card:hover .bangumi-card__cover img,
.bangumi-card:focus-visible .bangumi-card__cover img {
  transform: scale(1.028);
  filter: saturate(1.06) contrast(1.02);
}

.bangumi-card__cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%, rgba(24, 20, 30, 0.32)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 36%);
  transition: opacity var(--motion-duration-base) var(--motion-ease-standard);
}

.bangumi-card:hover .bangumi-card__cover-shade,
.bangumi-card:focus-visible .bangumi-card__cover-shade {
  opacity: 0.86;
}

.bangumi-card__state,
.bangumi-card__play {
  position: absolute;
  z-index: 1;
}

.bangumi-card__state {
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  color: rgba(69, 58, 82, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(66, 50, 78, 0.12);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.bangumi-card__play {
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(243, 235, 250, 0.54)),
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 26px rgba(66, 50, 78, 0.12);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  transition:
    transform var(--motion-duration-base) var(--motion-ease-soft),
    background var(--motion-duration-base) var(--motion-ease-standard);
}

.bangumi-card__play::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid rgba(88, 70, 104, 0.76);
}

.bangumi-card:hover .bangumi-card__play,
.bangumi-card:focus-visible .bangumi-card__play {
  transform: translateY(-1px) scale(1.035);
}

.bangumi-card__body {
  display: grid;
  gap: 12px;
  padding: 20px 20px 22px;
}

.bangumi-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.bangumi-card__index {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(247, 241, 250, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: rgba(127, 99, 151, 0.78);
  font-size: 0.76rem;
  line-height: 1;
}

.bangumi-card__head h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.35;
}

.bangumi-card__meta {
  margin: -2px 0 0;
  color: rgba(119, 98, 132, 0.82);
  font-size: 0.84rem;
  line-height: 1.5;
}

.bangumi-card__summary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.78;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.78em * 3);
}

.bangumi-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bangumi-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.bangumi-card[data-bangumi-card] {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 680ms var(--motion-ease-soft),
    transform 680ms var(--motion-ease-soft),
    filter 680ms var(--motion-ease-standard),
    box-shadow var(--transition),
    border-color var(--transition);
  transition-delay: var(--bangumi-card-delay, 0ms);
  will-change: opacity, transform, filter;
}

.bangumi-card[data-bangumi-card].is-bangumi-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.bangumi-card[data-bangumi-card].is-bangumi-visible:hover,
.bangumi-card[data-bangumi-card].is-bangumi-visible:focus-visible {
  transform: translate3d(0, -2px, 0) scale(1.004);
}

html.is-reduce-motion .bangumi-card[data-bangumi-card] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.bangumi-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 22px;
}

.bangumi-load-more {
  min-width: 164px;
  min-height: 46px;
  padding-inline: 22px;
  justify-content: center;
}

.bangumi-load-more:disabled {
  cursor: progress;
  opacity: 0.78;
  transform: none;
}

.bangumi-actions__state {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
  line-height: 1.75;
  text-align: center;
}

.compat-section__copy {
  justify-items: start;
}

.compat-section__copy p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

body[data-page="home"] .site-backdrop__veil {
  background:
    linear-gradient(180deg, rgba(248, 244, 239, 0.5), rgba(252, 247, 250, 0.58) 38%, rgba(244, 244, 242, 0.62)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 28%, rgba(255, 255, 255, 0.04));
}

body[data-page="character"] .site-backdrop__bloom {
  background:
    radial-gradient(circle at 78% 18%, rgba(220, 203, 150, 0.2), transparent 20%),
    radial-gradient(circle at 16% 16%, rgba(237, 214, 221, 0.18), transparent 24%);
}

body[data-page="character"] .site-backdrop__image.is-visible {
  opacity: 0.12;
  filter: blur(7px) saturate(0.82) brightness(1.08);
  transform: scale(1.08);
}

body[data-page="character"] .site-backdrop__veil {
  background:
    linear-gradient(180deg, rgba(248, 244, 239, 0.5), rgba(252, 247, 250, 0.62) 42%, rgba(244, 244, 242, 0.66)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 36%, rgba(255, 255, 255, 0.05));
}

body[data-page="profile"] .site-backdrop__image.is-visible {
  opacity: var(--site-backdrop-opacity);
  filter: blur(5px) saturate(0.86) brightness(1.08);
}

body[data-page="profile"] .site-backdrop__veil {
  background:
    linear-gradient(180deg, rgba(248, 244, 239, 0.5), rgba(252, 248, 246, 0.6) 44%, rgba(244, 244, 242, 0.64)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 34%, rgba(255, 255, 255, 0.05));
}

body[data-page="records"] .site-backdrop__veil {
  background:
    linear-gradient(180deg, rgba(247, 244, 240, 0.5), rgba(250, 247, 245, 0.6) 42%, rgba(243, 243, 241, 0.64)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 30%);
}

body:not([data-page="home"]) {
  --site-backdrop-opacity: var(--backdrop-opacity-home);
}

body:not([data-page="home"]) .site-backdrop__image.is-visible {
  opacity: var(--site-backdrop-opacity);
  filter: blur(1px) saturate(0.94) brightness(1.05);
  transform: scale(1.05);
}

body:not([data-page="home"]) .site-backdrop__veil {
  background:
    linear-gradient(180deg, rgba(248, 244, 239, 0.5), rgba(252, 247, 250, 0.58) 38%, rgba(244, 244, 242, 0.62)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 28%, rgba(255, 255, 255, 0.04));
}

.origin-pilgrimage-entry__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: 30px;
  align-items: stretch;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
  color: inherit;
}

.origin-pilgrimage-entry__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding-left: 10px;
}

.origin-pilgrimage-entry__copy h2,
.pilgrimage-hero h1,
.pilgrimage-map-entry h2,
.pilgrimage-route-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--color-ink);
  line-height: 1.05;
}

.origin-pilgrimage-entry__copy h2 {
  font-size: clamp(2.05rem, 3vw, 3.1rem);
}

.origin-pilgrimage-entry__copy p {
  margin: 0;
  max-width: 660px;
  color: var(--color-muted);
  line-height: 1.9;
}

.origin-pilgrimage-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.origin-pilgrimage-entry__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 126, 170, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(246, 233, 245, 0.62));
  color: rgba(91, 78, 105, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(104, 86, 119, 0.06);
}

.origin-pilgrimage-entry__action,
.pilgrimage-map-entry__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(122, 112, 138, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(104, 86, 119, 0.08);
}

.origin-pilgrimage-entry__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(226, 91, 157, 0.9), rgba(174, 80, 131, 0.86)),
    rgba(226, 91, 157, 0.85);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 18px 40px rgba(142, 74, 121, 0.14);
}

.origin-pilgrimage-entry__visual img,
.pilgrimage-hero__visual img,
.pilgrimage-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.origin-pilgrimage-entry__visual img {
  width: calc(100% - 42px);
  height: calc(100% - 70px);
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(80, 36, 68, 0.18));
}

.origin-pilgrimage-entry__visual::after,
.pilgrimage-hero__visual::after,
.pilgrimage-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(70, 58, 82, 0.42) 100%);
  pointer-events: none;
}

.origin-pilgrimage-entry__visual::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%, rgba(71, 43, 70, 0.3)),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.26), transparent 32%);
}

.origin-pilgrimage-entry__stamp {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 14px;
  transform: rotate(-6deg);
  border-radius: 8px;
  border: 2px solid rgba(177, 30, 48, 0.66);
  background: rgba(255, 252, 252, 0.88);
  color: #b32238;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 24px rgba(97, 45, 64, 0.18);
}

.origin-pilgrimage-entry__stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(177, 30, 48, 0.45);
  border-radius: 5px;
}

.origin-pilgrimage-entry__visual figcaption,
.pilgrimage-hero__visual figcaption,
.pilgrimage-card__visual figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #fff;
  font-size: 0.82rem;
  text-shadow: 0 2px 12px rgba(42, 34, 52, 0.38);
}

.pilgrimage-page {
  display: grid;
  gap: 40px;
}

.pilgrimage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.pilgrimage-hero__copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 46px;
}

.pilgrimage-hero h1 {
  font-size: 4.4rem;
  letter-spacing: 0;
}

.pilgrimage-hero__copy > p:last-of-type {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  line-height: 2;
}

.pilgrimage-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pilgrimage-hero__facts span {
  min-height: 84px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.pilgrimage-hero__facts small,
.pilgrimage-card__facts dt {
  display: block;
  color: var(--color-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pilgrimage-hero__facts strong {
  display: block;
  margin-top: 8px;
  color: var(--color-ink);
  font-size: 1.05rem;
}

.pilgrimage-hero__visual {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.pilgrimage-hero__visual img {
  object-fit: contain;
  background: #dd5c9b;
}

.pilgrimage-hero__visual figcaption {
  justify-content: space-between;
}

.pilgrimage-hero__visual figcaption a,
.pilgrimage-card__visual figcaption a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.origin-series-panel--pilgrimage .pilgrimage-hero {
  position: relative;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.origin-series-panel--pilgrimage .pilgrimage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 18px 19px, transparent 19px),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.2), transparent 24%);
  pointer-events: none;
  z-index: 1;
}

.origin-series-panel--pilgrimage .pilgrimage-hero__copy,
.origin-series-panel--pilgrimage .pilgrimage-hero__visual {
  z-index: 2;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.origin-series-panel--pilgrimage .pilgrimage-hero__copy::before,
.origin-series-panel--pilgrimage .pilgrimage-hero__visual::before {
  display: none;
}

.origin-series-panel--pilgrimage .pilgrimage-hero__copy {
  min-height: 420px;
  padding: clamp(42px, 4vw, 56px);
}

.origin-series-panel--pilgrimage .pilgrimage-hero h1 {
  font-size: clamp(3.45rem, 5vw, 4.15rem);
}

.origin-series-panel--pilgrimage .pilgrimage-hero__visual {
  min-height: 420px;
}

.pilgrimage-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.pilgrimage-summary__main {
  display: grid;
  align-content: center;
  gap: 24px;
  min-height: 300px;
  padding: 34px 38px;
}

.pilgrimage-summary__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pilgrimage-summary__meta span {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(104, 86, 119, 0.06);
}

.pilgrimage-summary__meta small,
.pilgrimage-summary__note span {
  display: block;
  color: var(--color-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pilgrimage-summary__meta strong {
  display: block;
  margin-top: 8px;
  color: var(--color-ink);
  font-size: 1.08rem;
  line-height: 1.4;
}

.pilgrimage-summary__notes {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 300px;
  padding: 26px;
  overflow: hidden;
}

.pilgrimage-summary__notes::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(226, 113, 169, 0.16), rgba(226, 113, 169, 0) 64%),
    radial-gradient(circle, rgba(255, 244, 229, 0.2), rgba(255, 244, 229, 0) 70%);
  pointer-events: none;
}

.pilgrimage-summary__notes::before {
  content: "HYOUKA";
  position: absolute;
  right: 28px;
  bottom: 70px;
  z-index: 0;
  color: rgba(214, 126, 170, 0.08);
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.pilgrimage-summary__notes-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(140, 130, 155, 0.12);
}

.pilgrimage-summary__notes-head span {
  color: var(--color-faint);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pilgrimage-summary__notes-head strong {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

.pilgrimage-summary__note-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.pilgrimage-summary__note {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 28px rgba(104, 86, 119, 0.05);
  overflow: hidden;
}

.pilgrimage-summary__note span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(229, 217, 238, 0.68);
  color: rgba(91, 78, 105, 0.82);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pilgrimage-summary__note p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.78;
}

.pilgrimage-summary__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.pilgrimage-summary__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(214, 126, 170, 0.14);
  background: rgba(255, 255, 255, 0.54);
  color: rgba(91, 78, 105, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

body[data-page="pilgrimage"] .chitanda-assistant__bubble {
  display: none;
}

@media (min-width: 1180px) {
  .pilgrimage-summary__note-list,
  .pilgrimage-summary__chips {
    max-width: calc(100% - 104px);
  }
}

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

.pilgrimage-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(104, 86, 119, 0.12);
  backdrop-filter: blur(22px);
  cursor: pointer;
  transition:
    transform var(--motion-duration-fast) var(--motion-ease-standard),
    box-shadow var(--motion-duration-fast) var(--motion-ease-standard),
    border-color var(--motion-duration-fast) var(--motion-ease-standard);
}

.pilgrimage-card:hover,
.pilgrimage-card:has(.pilgrimage-card__link:focus-visible) {
  transform: translateY(var(--motion-hover-y));
  border-color: rgba(214, 126, 170, 0.26);
  box-shadow: 0 30px 70px rgba(104, 86, 119, 0.16);
}

.pilgrimage-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.pilgrimage-card__link:focus-visible {
  outline: 2px solid rgba(159, 134, 185, 0.72);
  outline-offset: -8px;
}

.pilgrimage-card__visual,
.pilgrimage-card__body {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.pilgrimage-card__visual {
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
}

.pilgrimage-card__visual--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(224, 211, 236, 0.72), rgba(255, 244, 230, 0.7)),
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.68), transparent 38%),
    radial-gradient(circle at 86% 80%, rgba(224, 113, 169, 0.2), transparent 44%);
}

.pilgrimage-card__placeholder {
  display: grid;
  gap: 10px;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 28px;
  text-align: center;
  color: rgba(78, 68, 92, 0.88);
}

.pilgrimage-card__placeholder span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(118, 101, 137, 0.72);
}

.pilgrimage-card__placeholder strong {
  max-width: 82%;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.18;
}

.pilgrimage-card__visual figcaption a {
  pointer-events: auto;
}

.pilgrimage-card__body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.pilgrimage-card__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pilgrimage-card__head > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(222, 208, 232, 0.95), rgba(255, 244, 230, 0.92));
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
}

.pilgrimage-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-ink);
  line-height: 1.18;
}

.pilgrimage-card__head p,
.pilgrimage-card__body > p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.85;
}

.pilgrimage-card__facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.pilgrimage-card__facts div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.pilgrimage-card__facts dd {
  margin: 0;
  color: var(--color-ink);
  line-height: 1.75;
}

.pilgrimage-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilgrimage-card__tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(229, 217, 238, 0.58);
  color: var(--color-muted);
  font-size: 0.86rem;
}

.pilgrimage-index {
  display: grid;
  gap: 22px;
  padding: 30px;
}

.pilgrimage-index__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pilgrimage-index__stats span {
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.pilgrimage-index__stats small,
.pilgrimage-index__item small {
  display: block;
  color: var(--color-faint);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pilgrimage-index__stats strong {
  display: block;
  margin-top: 8px;
  color: var(--color-ink);
  font-size: 1.05rem;
}

.pilgrimage-index__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pilgrimage-index__item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.48);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(104, 86, 119, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.pilgrimage-index__item:hover,
.pilgrimage-index__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 126, 170, 0.24);
  box-shadow: 0 18px 34px rgba(104, 86, 119, 0.1);
}

.pilgrimage-index__item > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(229, 217, 238, 0.68);
  color: rgba(91, 78, 105, 0.82);
  font-family: var(--font-serif);
  font-weight: 700;
}

.pilgrimage-index__item strong {
  display: block;
  min-width: 0;
  color: var(--color-ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

.pilgrimage-map-entry {
  --route-color: #d67eaa;
  position: relative;
  display: grid;
  gap: 22px;
  overflow: hidden;
  isolation: isolate;
  padding: 30px;
  border-radius: 34px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur-soft));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pilgrimage-map-entry::before {
  content: "";
  position: absolute;
  inset: 20px 24px auto auto;
  width: 190px;
  height: 90px;
  border: 1px dashed color-mix(in srgb, var(--route-color) 38%, rgba(154, 147, 161, 0.18));
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 28px 0 0;
  opacity: 0.18;
  z-index: -1;
}

.pilgrimage-map-entry::after {
  content: "";
  position: absolute;
  inset: auto 30px 26px auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--route-color);
  box-shadow:
    -42px -14px 0 color-mix(in srgb, var(--route-color) 55%, #fff),
    -86px 8px 0 color-mix(in srgb, var(--route-color) 32%, #fff);
  opacity: 0.16;
  z-index: -1;
}

.pilgrimage-route-guide__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 24px;
  align-items: end;
}

.pilgrimage-route-guide__copy {
  max-width: 740px;
}

.pilgrimage-route-guide__copy .section-heading {
  margin-bottom: 0;
}

.pilgrimage-map-entry h2 {
  font-size: 2.6rem;
}

.pilgrimage-map-entry p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.9;
}

.pilgrimage-route-guide__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pilgrimage-route-guide__stats span {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pilgrimage-route-guide__stats small {
  display: block;
  margin-bottom: 5px;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pilgrimage-route-guide__stats strong {
  display: block;
  min-width: 0;
  color: var(--color-ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.pilgrimage-route-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pilgrimage-route-tab {
  --route-color: #d67eaa;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 110px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.pilgrimage-route-tab:hover,
.pilgrimage-route-tab:focus-visible {
  transform: translateY(var(--motion-hover-y));
  border-color: color-mix(in srgb, var(--route-color) 44%, rgba(255, 255, 255, 0.82));
  outline: none;
}

.pilgrimage-route-tab.is-active {
  background: rgba(255, 255, 255, 0.84);
  border-color: color-mix(in srgb, var(--route-color) 58%, rgba(255, 255, 255, 0.82));
  box-shadow:
    0 16px 36px color-mix(in srgb, var(--route-color) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.pilgrimage-route-tab__letter {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--route-color) 24%, #fff);
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pilgrimage-route-tab__body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.pilgrimage-route-tab__body strong,
.pilgrimage-route-tab__body small,
.pilgrimage-route-tab__tags,
.pilgrimage-route-tab__body em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilgrimage-route-tab__body strong {
  color: var(--color-ink);
  font-size: 0.96rem;
}

.pilgrimage-route-tab__body small {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.pilgrimage-route-tab__tags {
  color: color-mix(in srgb, var(--route-color) 54%, var(--color-muted));
  font-size: 0.72rem;
  font-weight: 800;
}

.pilgrimage-route-tab__body em {
  position: relative;
  justify-self: start;
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 11px 4px;
  border: 1.5px solid color-mix(in srgb, var(--route-color) 72%, #b51c26);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), color-mix(in srgb, var(--route-color) 14%, rgba(255, 255, 255, 0.72))),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.92), transparent 34%);
  color: color-mix(in srgb, var(--route-color) 62%, #9d2630);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow:
    0 8px 16px color-mix(in srgb, var(--route-color) 16%, transparent),
    inset 0 0 0 2px color-mix(in srgb, var(--route-color) 10%, rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(8px);
}

.pilgrimage-route-tab__body em::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid color-mix(in srgb, var(--route-color) 42%, rgba(181, 28, 38, 0.24));
  border-radius: 4px;
  pointer-events: none;
}

.pilgrimage-route-tab:hover .pilgrimage-route-tab__body em,
.pilgrimage-route-tab:focus-visible .pilgrimage-route-tab__body em,
.pilgrimage-route-tab.is-active .pilgrimage-route-tab__body em {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--route-color) 22%, rgba(255, 255, 255, 0.78))),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.96), transparent 34%);
  box-shadow:
    0 10px 20px color-mix(in srgb, var(--route-color) 22%, transparent),
    inset 0 0 0 2px color-mix(in srgb, var(--route-color) 14%, rgba(255, 255, 255, 0.78));
}

.pilgrimage-route-panels {
  min-width: 0;
}

.pilgrimage-route-panel {
  --route-color: #d67eaa;
  display: grid;
  gap: 18px;
  animation: pilgrimageRoutePanelIn var(--motion-duration-base) var(--motion-ease-out) both;
}

.pilgrimage-route-panel[hidden] {
  display: none;
}

.pilgrimage-route-panel__top {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 22px;
  align-items: start;
}

.pilgrimage-route-panel__visual {
  position: relative;
  overflow: visible;
  display: grid;
  min-width: 0;
  margin: 0;
}

.pilgrimage-route-panel__image-button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 28px;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(107, 94, 126, 0.16);
}

.pilgrimage-route-panel__image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  transition:
    transform var(--motion-duration-base) var(--motion-ease-out),
    filter var(--motion-duration-base) var(--motion-ease-standard);
}

.pilgrimage-route-panel__image-button:hover img,
.pilgrimage-route-panel__image-button:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

.pilgrimage-route-panel__image-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--route-color) 42%, #fff);
  outline-offset: -8px;
}

.pilgrimage-route-panel__detail {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pilgrimage-route-panel__title {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: -8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.pilgrimage-route-panel__title:hover,
.pilgrimage-route-panel__title:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--route-color) 34%, rgba(255, 255, 255, 0.72));
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 16px 28px color-mix(in srgb, var(--route-color) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  outline: none;
}

.pilgrimage-route-panel__title > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--route-color) 25%, #fff);
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pilgrimage-route-panel__title h3 {
  margin: 2px 0 0;
  color: var(--color-ink);
  font-size: 1.58rem;
  line-height: 1.28;
}

.pilgrimage-route-panel__meta,
.pilgrimage-route-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilgrimage-route-panel__meta span,
.pilgrimage-route-panel__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pilgrimage-route-panel__tags span {
  background: color-mix(in srgb, var(--route-color) 16%, #fff);
  color: color-mix(in srgb, var(--route-color) 68%, var(--color-ink));
}

.pilgrimage-route-panel__intro {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.85;
}

.pilgrimage-route-panel__attrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.pilgrimage-route-panel__attrs div {
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.pilgrimage-route-panel__attrs dt {
  margin: 0 0 4px;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.pilgrimage-route-panel__attrs dd {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.pilgrimage-route-road {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  margin-top: -24px;
  padding: 16px;
  overflow: visible;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 246, 0.86)),
    radial-gradient(circle at 8% 20%, color-mix(in srgb, var(--route-color) 14%, transparent), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(217, 211, 238, 0.16), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pilgrimage-route-road::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--route-color) 36%, transparent), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.pilgrimage-route-road__head {
  position: relative;
  z-index: 1;
  display: contents;
}

.pilgrimage-route-road__head div {
  display: none;
}

.pilgrimage-route-road__head span {
  color: color-mix(in srgb, var(--route-color) 72%, var(--color-muted));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.pilgrimage-route-road__head strong {
  color: var(--color-ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.pilgrimage-route-timeline {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  margin: 0;
  padding: 8px 2px 10px;
  overflow-x: auto;
  list-style: none;
  counter-reset: route-stop;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--route-color) 35%, rgba(174, 160, 191, 0.24)) transparent;
  scroll-snap-type: x proximity;
}

.pilgrimage-route-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--route-color) 70%, #fff), color-mix(in srgb, var(--route-color) 18%, transparent));
  opacity: 0.32;
  pointer-events: none;
}

.pilgrimage-route-timeline li {
  position: relative;
  min-width: 0;
  animation: pilgrimageRouteStopIn 420ms var(--motion-ease-out) both;
  animation-delay: calc(var(--stop-index, 0) * 50ms);
  scroll-snap-align: start;
}

.pilgrimage-route-timeline li:nth-child(1) { --stop-index: 1; }
.pilgrimage-route-timeline li:nth-child(2) { --stop-index: 2; }
.pilgrimage-route-timeline li:nth-child(3) { --stop-index: 3; }
.pilgrimage-route-timeline li:nth-child(4) { --stop-index: 4; }
.pilgrimage-route-timeline li:nth-child(5) { --stop-index: 5; }
.pilgrimage-route-timeline li:nth-child(6) { --stop-index: 6; }
.pilgrimage-route-timeline li:nth-child(7) { --stop-index: 7; }

.pilgrimage-route-stop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "number title"
    "number hint";
  gap: 3px 11px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(107, 94, 126, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.pilgrimage-route-stop:hover,
.pilgrimage-route-stop:focus-visible {
  transform: translateY(var(--motion-hover-y));
  border-color: color-mix(in srgb, var(--route-color) 46%, rgba(255, 255, 255, 0.84));
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 34px color-mix(in srgb, var(--route-color) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  outline: none;
}

.pilgrimage-route-stop span {
  grid-area: number;
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--route-color) 22%, #fff);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--route-color) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pilgrimage-route-stop strong {
  grid-area: title;
  min-width: 0;
  color: var(--color-ink);
  font-size: 0.94rem;
  line-height: 1.34;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilgrimage-route-stop small {
  grid-area: hint;
  color: color-mix(in srgb, var(--route-color) 58%, var(--color-muted));
  font-size: 0.72rem;
  font-weight: 800;
}

.pilgrimage-card.is-route-target {
  animation: pilgrimageSpotTarget 1400ms var(--motion-ease-soft) both;
}

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

@keyframes pilgrimageRouteStopIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pilgrimageSpotTarget {
  0%,
  100% {
    transform: translateY(0);
  }
  18% {
    transform: translateY(-3px);
    box-shadow:
      0 24px 46px rgba(107, 94, 126, 0.16),
      0 0 0 4px rgba(214, 126, 170, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
  48% {
    box-shadow:
      0 20px 38px rgba(107, 94, 126, 0.12),
      0 0 0 8px rgba(214, 126, 170, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}

.pilgrimage-source {
  text-align: center;
}

.pilgrimage-source p {
  margin: 0 auto;
  max-width: 860px;
  color: var(--color-muted);
  line-height: 1.9;
}

@media (max-width: 1120px) {
  .pilgrimage-summary {
    grid-template-columns: 1fr;
  }

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

  .pilgrimage-hero,
  .pilgrimage-map-entry,
  .origin-pilgrimage-entry__card {
    grid-template-columns: 1fr;
  }

  .pilgrimage-hero__copy,
  .pilgrimage-hero__visual {
    min-height: 360px;
  }

  .pilgrimage-grid {
    grid-template-columns: 1fr;
  }

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

  .pilgrimage-route-guide__head,
  .pilgrimage-route-panel__top,
  .staffcast-profile__layout,
  .staff-profile-body__layout {
    grid-template-columns: 1fr;
  }

  .staffcast-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual";
  }

  .staffcast-hero__copy {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .staffcast-hero__visual {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr);
  }

  .staffcast-grid {
    grid-template-columns: 1fr;
  }

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

  .staff-profile-hero__facts,
  .staff-profile-works__grid,
  .staff-profile-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .encyclopedia-hero {
    grid-template-columns: 1fr;
  }

  .books-hero {
    grid-template-columns: 1fr;
  }

  .books-hero__copy {
    align-content: start;
  }

  .books-volume-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .books-volume-card__cta {
    grid-column: 2;
    padding: 2px 0 6px;
    border-left: 0;
  }

  .books-volume-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-hero,
  .studio-profile {
    grid-template-columns: 1fr;
  }

  .encyclopedia-facts,
  .works-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-work-grid,
  .studio-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-awards {
    grid-template-columns: 1fr;
  }

  .author-awards__summary {
    position: static;
  }

  .reference-list,
  .encyclopedia-card-grid {
    grid-template-columns: 1fr;
  }

  .origin-overview__layout,
  .origin-card-grid,
  .origin-character-grid {
    grid-template-columns: 1fr;
  }

  .origin-section-head {
    flex-direction: column;
  }

  .home-secondary,
  .home-media,
  .home-origin-entry,
  .masthead,
  .portal-hero,
  .projects-hero,
  .records-hero,
  .music-page,
  .character-stage,
  .thanks-hero,
  .thanks-memorial,
  .thanks-closing,
  .character-profile-grid,
  .profile-hero,
  .profile-layout,
  .video-page {
    grid-template-columns: 1fr;
  }

  .entry-grid,
  .projects-grid,
  .bangumi-grid,
  .members-grid,
  .gallery-grid,
  .gallery-lower,
  .character-dossier {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-hero__figure {
    min-height: 390px;
  }

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

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

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

  .bangumi-tools {
    flex-wrap: wrap;
  }

  .bangumi-recommend__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bangumi-recommend__item.is-featured {
    order: -1;
    margin-top: 0;
    margin-bottom: 0;
  }

  .bangumi-search {
    justify-content: stretch;
    max-width: none;
  }

  .thanks-hero__visual,
  .thanks-memorial__visual {
    min-height: 360px;
  }

  .thanks-hero__copy {
    max-width: none;
  }

  .thanks-hero__visual {
    height: min(64vw, 520px);
  }

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

  .projects-hero__overview {
    min-height: auto;
    padding-left: 0;
    padding-top: 4px;
    border-left: 0;
    border-top: 1px solid rgba(140, 130, 155, 0.16);
  }

  .records-hero__overview {
    min-height: auto;
    padding-left: 0;
    padding-top: 4px;
    border-left: 0;
    border-top: 1px solid rgba(140, 130, 155, 0.16);
  }

  .portal-hero__overview {
    min-height: auto;
    padding-left: 0;
    padding-top: 4px;
    border-left: 0;
    border-top: 1px solid rgba(140, 130, 155, 0.16);
  }

  .profile-hero {
    min-height: auto;
  }

  .profile-banner-visual,
  .profile-banner-visual img,
  .profile-hero__copy,
  .profile-hero__banner {
    min-height: 320px;
  }

  .home-carousel__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-frame--hero {
    min-height: 560px;
  }

  .visual-frame--portrait {
    min-height: 620px;
  }

  .character-switch {
    position: sticky;
    top: 86px;
    left: auto;
    right: auto;
    display: flex;
    width: auto;
    max-height: none;
    margin: 0 0 22px;
    overflow-x: auto;
    overflow-y: hidden;
    transform: none;
    scrollbar-width: none;
  }

  body[data-page="character"] .character-switch {
    position: sticky;
    top: 86px;
    left: auto;
    right: auto;
    margin: 0 0 22px;
    transform: none;
  }

  .character-switch::-webkit-scrollbar {
    display: none;
  }

  .character-switch__eyebrow {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 4px;
  }

  .character-switch__item {
    flex: 0 0 auto;
    min-width: 108px;
  }

  .character-profile-grid {
    grid-template-areas:
      "title"
      "facts"
      "detail"
      "portrait";
  }

  .character-portrait {
    min-height: 620px;
    height: auto;
  }

  .character-summary-card__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .character-portrait-card {
    grid-template-rows: auto;
  }

  .character-side-stack {
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .pilgrimage-page {
    gap: 28px;
  }

  .pilgrimage-hero__copy,
  .pilgrimage-summary__main,
  .pilgrimage-summary__notes,
  .pilgrimage-map-entry,
  .origin-pilgrimage-entry__card {
    padding: 22px;
  }

  .pilgrimage-summary__note {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .pilgrimage-summary__note span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .pilgrimage-summary__notes-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .pilgrimage-hero__copy,
  .pilgrimage-summary__main {
    min-height: auto;
  }

  .pilgrimage-hero,
  .pilgrimage-summary,
  .pilgrimage-map-entry,
  .pilgrimage-grid,
  .pilgrimage-hero__copy,
  .pilgrimage-hero__visual {
    min-width: 0;
    max-width: 100%;
  }

  .pilgrimage-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.7rem);
    white-space: nowrap;
  }

  .origin-pilgrimage-entry__copy h2,
  .pilgrimage-map-entry h2 {
    font-size: 2.15rem;
  }

  .pilgrimage-hero__facts,
  .pilgrimage-index__stats {
    grid-template-columns: 1fr;
  }

  .pilgrimage-index {
    padding: 22px;
  }

  .pilgrimage-index__grid {
    grid-template-columns: 1fr;
  }

  .pilgrimage-hero__visual,
  .origin-pilgrimage-entry__visual {
    min-height: 260px;
  }

  .pilgrimage-hero__visual figcaption,
  .pilgrimage-card__visual figcaption {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 10px;
  }

  .pilgrimage-hero__visual figcaption a {
    margin-left: auto;
  }

  .pilgrimage-hero__visual figcaption > *,
  .pilgrimage-card__visual figcaption > * {
    min-width: 0;
    max-width: 100%;
  }

  .pilgrimage-card {
    border-radius: 22px;
  }

  .pilgrimage-card__body {
    padding: 20px;
  }

  .pilgrimage-card__head {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .pilgrimage-card__head > span {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .pilgrimage-card h3 {
    font-size: 1.45rem;
  }

  .pilgrimage-map-entry__links a {
    width: 100%;
  }

  .pilgrimage-route-guide__head {
    gap: 16px;
  }

  .pilgrimage-route-guide__stats,
  .pilgrimage-route-panel__attrs {
    grid-template-columns: 1fr;
  }

  .pilgrimage-route-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-inline: -22px;
    padding: 0 22px 8px;
    scroll-snap-type: x proximity;
  }

  .pilgrimage-route-tab {
    flex: 0 0 236px;
    min-height: 104px;
    scroll-snap-align: start;
  }

  .pilgrimage-route-panel {
    gap: 14px;
  }

  .pilgrimage-route-panel__image-button {
    aspect-ratio: 1.48 / 1;
    border-radius: 22px;
  }

  .pilgrimage-route-panel__image-button img {
    min-height: 240px;
  }

  .pilgrimage-route-road {
    margin-top: 0;
    padding: 14px;
    border-radius: 22px;
  }

  .pilgrimage-route-road__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .pilgrimage-route-road__head div {
    display: grid;
  }

  .pilgrimage-route-panel__detail {
    padding: 18px;
    border-radius: 22px;
  }

  .pilgrimage-route-panel__title {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .pilgrimage-route-panel__title > span {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    font-size: 1.32rem;
  }

  .pilgrimage-route-panel__title h3 {
    font-size: 1.32rem;
  }

  .pilgrimage-route-card {
    padding: 14px;
  }

  .pilgrimage-route-card__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .pilgrimage-route-card__foot a {
    width: 100%;
  }

  .pilgrimage-route-map {
    padding: 12px;
    border-radius: 22px;
  }

  .pilgrimage-route-map__area text {
    font-size: 22px;
  }

  .studio-hero {
    border-radius: 28px;
  }

  .author-hero {
    border-radius: 28px;
  }

  .author-hero__visual {
    min-height: 260px;
    order: -1;
  }

  .author-hero__content {
    gap: 20px;
    padding: 28px 24px 30px;
  }

  .author-hero__facts,
  .author-work-grid,
  .author-profile,
  .author-profile__highlights,
  .author-profile__facts .encyclopedia-facts {
    grid-template-columns: 1fr;
  }

  .author-profile__essay {
    padding: 26px 24px 28px;
  }

  .author-award-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .author-awards__timeline::before {
    left: 38px;
  }

  .author-page .ency-section.panel--soft {
    padding: 28px 24px;
  }

  .studio-hero__image {
    min-height: 280px;
  }

  .studio-hero__image-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .studio-hero__content {
    gap: 20px;
    padding: 28px 24px 30px;
  }

  .studio-hero__facts {
    grid-template-columns: 1fr;
  }

  .studio-page .ency-section.panel--soft {
    padding: 28px 24px;
  }

  .staffcast-page {
    gap: 28px;
    max-width: 100%;
    overflow-x: clip;
  }

  .staffcast-hero {
    border-radius: 28px;
  }

  .staffcast-hero,
  .staffcast-page .ency-section.panel--soft,
  .staffcast-page .encyclopedia-section.panel--soft {
    padding: 22px;
  }

  .staffcast-profile__layout,
  .staffcast-profile__facts .encyclopedia-facts,
  .staffcast-grid {
    grid-template-columns: 1fr;
  }

  .staff-profile-page {
    gap: 28px;
    max-width: 100%;
    overflow-x: clip;
  }

  .staff-profile-page .encyclopedia-section.panel--soft {
    padding: 22px;
  }

  .staff-profile-hero {
    gap: 22px;
    padding: 22px;
    border-radius: 28px;
  }

  .staff-profile-hero__facts,
  .staff-profile-facts .encyclopedia-facts,
  .staff-profile-works__grid,
  .staff-profile-related__grid {
    grid-template-columns: 1fr;
  }

  .staff-profile-body__layout {
    gap: 18px;
  }

  .staff-profile-essay,
  .staff-profile-facts {
    padding: 20px;
  }

  .staff-profile-hero__visual {
    min-height: 320px;
  }

  .staffcast-profile__copy,
  .staffcast-card {
    padding: 20px;
  }

  .staffcast-card {
    min-height: 210px;
    border-radius: 22px;
  }

  .staffcast-card::before {
    border-left-width: 4px;
  }

  .staffcast-cast__row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .staffcast-hero__main {
    gap: 10px;
  }

  .staffcast-hero__main .page-title {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .staffcast-hero__main .page-subtitle {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .staffcast-hero__main .page-description {
    font-size: 0.9rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .staffcast-hero__visual {
    grid-template-columns: 1fr;
  }

  .staffcast-hero__meta {
    grid-column: auto;
    width: 100%;
  }

  .staffcast-hero__visual .encyclopedia-visual {
    min-height: 320px;
  }

  .staffcast-hero__facts {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staffcast-hero__staff {
    grid-column: auto;
  }

  .studio-profile__logo-card {
    min-height: 88px;
  }

  .studio-profile__logo-card img {
    width: min(440px, 100%);
    height: 76px;
  }

  .origin-encyclopedia-entry,
  .origin-copy-card {
    padding: 22px;
  }

  .origin-encyclopedia-entry--with-visual {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "facts";
  }

  .origin-encyclopedia-entry--logo {
    grid-template-columns: 1fr;
  }

  .origin-encyclopedia-entry__visual {
    padding: 10px;
  }

  .origin-encyclopedia-entry--logo .origin-encyclopedia-entry__visual {
    max-width: min(420px, 100%);
    justify-self: start;
  }

  .encyclopedia-hero {
    gap: 20px;
  }

  .encyclopedia-visual {
    min-height: 280px;
    border-radius: 24px;
  }

  .encyclopedia-facts,
  .works-shelf,
  .reference-list,
  .encyclopedia-card-grid {
    grid-template-columns: 1fr;
  }

  .books-page {
    gap: 28px;
  }

  .books-hero {
    padding: 20px;
  }

  .books-hero::before {
    inset: 10px;
    border-radius: 22px;
  }

  .books-hero::after {
    left: 22px;
    top: 22px;
    width: 82px;
    height: 82px;
    border-radius: 24px 0 0 0;
  }

  .books-hero__title-row {
    gap: 12px;
  }

  .books-hero__title-row > span {
    flex-basis: 64px;
    max-width: 94px;
  }

  .books-hero__fact {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 86px;
    padding: 12px;
  }

  .books-hero__fact strong {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .books-hero__meta i,
  .books-hero__fact i {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .books-hero__showcase {
    grid-template-columns: 1fr;
  }

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

  .books-hero__book {
    grid-template-rows: 146px auto;
    min-height: 200px;
    gap: 7px;
    padding: 10px 8px 12px;
  }

  .books-hero__book-cover {
    height: 146px;
  }

  .books-hero__book img {
    height: 144px;
    max-width: calc(100% - 8px);
  }

  .books-section {
    padding: 16px;
  }

  .books-volume-card {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .books-volume-card__visual {
    min-height: 138px;
    border-radius: 16px;
  }

  .books-volume-card__visual img {
    width: min(100%, 76px);
    max-height: 132px;
  }

  .books-volume-card__body {
    padding: 2px 0 0;
  }

  .books-volume-card__head h3 {
    font-size: 1.14rem;
  }

  .books-volume-card__summary {
    -webkit-line-clamp: 4;
  }

  .books-volume-card__meta {
    gap: 6px;
  }

  .books-volume-card__meta span {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .books-volume-card__cta {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid rgba(140, 130, 155, 0.14);
  }

  .books-volume-card__actions {
    grid-template-columns: 1fr;
  }

  .books-volume-card__actions .button {
    width: 100%;
  }

  .studio-works-grid,
  .studio-hyouka-grid {
    grid-template-columns: 1fr;
  }

  .studio-map-card__frame,
  .studio-map-card__frame iframe,
  .studio-map-card__provider,
  .studio-map-card__fallback,
  .studio-map-card__fallback img,
  .studio-map-card__loading {
    min-height: 320px;
  }

  .studio-map-card__body,
  .studio-return-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .studio-return-entry--with-visual {
    padding: 18px;
  }

  .studio-return-entry__visual {
    width: 100%;
    max-width: 220px;
  }

  .origin-overview {
    padding: 14px;
  }

  .bangumi-board__head {
    display: block;
  }

  .bangumi-shelf {
    padding: 18px 14px 22px;
    overflow: hidden;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 249, 246, 0.48)),
      radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.76), transparent 44%),
      radial-gradient(circle at 100% 18%, rgba(218, 232, 246, 0.22), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
      0 18px 34px rgba(92, 76, 109, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .bangumi-shelf::before {
    display: none;
  }

  .bangumi-shelf-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 14px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shelf-meta {
    justify-content: flex-start;
  }

  .origin-summary-card {
    padding: 22px;
  }

  .origin-cover-card {
    min-height: 0;
  }

  .origin-cover-card img {
    min-height: 420px;
  }

  .origin-cover-card__caption {
    padding: 16px 18px;
  }

  .origin-character-card {
    grid-template-rows: auto auto;
  }

  .status-grid--hero,
  .projects-grid,
  .bangumi-recommend__grid,
  .thanks-gratitude,
  .thanks-closing__items,
  .projects-note__stats,
  .records-note__stats,
  .portal-note__stats,
  .members-grid,
  .gallery-grid,
  .gallery-lower,
  .character-dossier {
    grid-template-columns: 1fr;
  }

  .home-entry {
    margin-top: 30px;
  }

  .home-entry .section-heading {
    margin-bottom: 14px;
  }

  .home-entry .section-heading p {
    display: none;
  }

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

  .entry-card {
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    min-height: 118px;
    padding: 14px;
    border-radius: 20px;
    box-shadow:
      0 14px 26px rgba(107, 94, 126, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .entry-card__tag {
    min-height: 26px;
    padding: 5px 8px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .entry-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(1.02rem, 4.8vw, 1.28rem);
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .entry-card p {
    display: none;
  }

  .entry-card__action {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .bangumi-recommend {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .bangumi-recommend__head {
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
  }

  .bangumi-recommend__head p {
    display: none;
  }

  .bangumi-recommend__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .bangumi-recommend__item {
    display: block;
    min-height: 0;
    padding: 0;
    border-radius: 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .bangumi-recommend__item.is-featured {
    margin-top: 0;
    margin-bottom: 0;
  }

  .bangumi-recommend__media {
    border-radius: 18px;
    box-shadow: 0 12px 22px rgba(62, 54, 72, 0.1);
  }

  .bangumi-recommend__rank {
    left: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-width: 1px;
    font-size: 0.66rem;
  }

  .bangumi-recommend__rank::before,
  .bangumi-recommend__rank::after,
  .bangumi-recommend__stamp,
  .bangumi-recommend__copy > span,
  .bangumi-recommend__subtitle,
  .bangumi-recommend__copy p {
    display: none;
  }

  .bangumi-recommend__copy {
    padding: 8px 2px 0;
    gap: 0;
    justify-items: center;
    text-align: center;
  }

  .bangumi-recommend__copy h3 {
    display: -webkit-box;
    overflow: hidden;
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .bangumi-recommend__item.is-featured .bangumi-recommend__copy h3 {
    font-size: 0.86rem;
  }

  .thanks-hero,
  .thanks-memorial,
  .thanks-closing {
    padding: 24px;
  }

  .thanks-hero__visual,
  .thanks-memorial__visual {
    min-height: 280px;
  }

  .thanks-hero__visual {
    height: min(78vw, 330px);
    min-height: 260px;
  }

  .thanks-hero__dedications {
    grid-template-columns: 1fr;
  }

  .thanks-hero__dedications article {
    min-height: 0;
  }

  .thanks-hero__visual figcaption {
    right: 20px;
    bottom: 20px;
  }

  .bangumi-tools__group {
    width: 100%;
  }

  .bangumi-tools {
    padding: 18px;
    margin: 0 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .bangumi-shelf-head {
    gap: 12px;
    padding: 0 0 14px;
    border-radius: 0;
  }

  .shelf-title-group h2 {
    margin: 6px 0 0;
    font-size: clamp(1.5rem, 8vw, 2.05rem);
  }

  .shelf-title-group p:last-child {
    display: none;
  }

  .shelf-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .shelf-meta span {
    justify-content: center;
    min-height: 34px;
    padding: 8px 6px;
    font-size: 0.72rem;
    text-align: center;
  }

  .bangumi-tools {
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .bangumi-tools__group {
    gap: 8px;
  }

  .bangumi-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .bangumi-search input {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.84rem;
  }

  .bangumi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .bangumi-card {
    position: relative;
    display: block;
    isolation: isolate;
    min-height: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 250, 246, 0.7)),
      radial-gradient(circle at 100% 0, rgba(219, 232, 246, 0.18), transparent 24%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .bangumi-card > * {
    position: relative;
    z-index: 1;
  }

  .bangumi-card::before {
    opacity: 0.58;
  }

  .bangumi-card__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
    border-radius: inherit;
  }

  .bangumi-card__cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .bangumi-card__cover-shade {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%, rgba(20, 16, 26, 0.82)),
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%);
  }

  .bangumi-card__state {
    left: auto;
    right: 8px;
    top: 8px;
    bottom: auto;
    min-height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(20, 16, 26, 0.42);
  }

  .bangumi-card__play {
    display: none;
  }

  .bangumi-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: 5px;
    padding: 38px 9px 10px;
    background: linear-gradient(180deg, transparent, rgba(22, 17, 29, 0.78));
    color: #fff;
  }

  .bangumi-card__head {
    display: block;
  }

  .bangumi-card__index,
  .bangumi-card__summary,
  .bangumi-card__tags {
    display: none;
  }

  .bangumi-card__head h3 {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: clamp(0.78rem, 3.2vw, 0.96rem);
    line-height: 1.28;
    text-shadow: 0 2px 8px rgba(20, 16, 26, 0.46);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .bangumi-card__meta {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(236, 224, 255, 0.92);
    font-size: 0.66rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .bangumi-card[data-bangumi-card] {
    opacity: 1;
    transform: none;
    filter: none;
    transition:
      box-shadow var(--transition),
      border-color var(--transition);
    will-change: auto;
  }

  .bangumi-card[data-bangumi-card].is-bangumi-visible:hover,
  .bangumi-card[data-bangumi-card].is-bangumi-visible:focus-visible {
    transform: none;
  }

  .bangumi-search {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .projects-featured .section-heading p,
  .projects-secondary .section-heading p,
  .records-board .section-heading p,
  .portal-registry .section-heading p,
  .profile-section-heading p:last-child,
  .project-card__heading p,
  .record-item__body p,
  .member-card__copy p:last-child,
  .member-card__chips,
  .member-card__aside,
  .projects-note__copy p,
  .records-note__copy p,
  .portal-note__copy p,
  .projects-note__taxonomy,
  .records-note__taxonomy,
  .portal-note__taxonomy {
    display: none;
  }

  .project-card__body {
    gap: 10px;
    padding: 14px 12px 16px;
    background: transparent;
    box-shadow: none;
  }

  .project-card:hover .project-card__body,
  .project-card:focus-visible .project-card__body,
  .project-panel:hover .project-card__body,
  .project-panel:focus-within .project-card__body {
    padding: 14px 12px 16px;
    background: transparent;
    box-shadow: none;
  }

  .project-card__body h3 {
    font-size: clamp(1.28rem, 7vw, 1.72rem);
    line-height: 1.12;
  }

  .project-card__stack {
    gap: 6px;
    width: fit-content;
    max-width: calc(100% - 18px);
    margin: 2px 0 0 8px;
    padding: 0 10px 2px 0;
  }

  .project-card:hover .project-card__stack,
  .project-card:focus-visible .project-card__stack,
  .project-panel:hover .project-card__stack,
  .project-panel:focus-within .project-card__stack {
    max-width: calc(100% - 18px);
    margin-left: 8px;
    padding-right: 10px;
    padding-bottom: 2px;
  }

  .project-card__stack li {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .projects-note__stats,
  .records-note__stats,
  .portal-note__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .projects-note__stat,
  .records-note__stat,
  .portal-note__stat {
    display: inline-grid;
    grid-template-columns: auto minmax(0, auto);
    align-items: baseline;
    gap: 4px 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .projects-note__stat span,
  .projects-note__stat strong,
  .records-note__stat span,
  .records-note__stat strong,
  .portal-note__stat span,
  .portal-note__stat strong {
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
  }

  .projects-note__stat span,
  .records-note__stat span,
  .portal-note__stat span {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .projects-note__stat strong,
  .records-note__stat strong,
  .portal-note__stat strong {
    font-size: 0.9rem;
  }

  .records-board {
    padding: 10px 22px 4px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .records-board--news {
    gap: 14px;
    padding: 10px 22px 4px;
  }

  .records-board__head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding-bottom: 14px;
  }

  .records-board__head h2 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .records-board__head p {
    display: none;
  }

  .records-board__count {
    min-width: 54px;
    padding-bottom: 2px;
  }

  .records-board__count span {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .records-board__count strong {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .records-board .section-heading {
    margin-bottom: 18px;
  }

  .records-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: -2px;
    padding: 0 2px 8px;
    overflow-x: auto;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .records-filter::-webkit-scrollbar {
    display: none;
  }

  .records-filter__button {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 999px;
    scroll-snap-align: start;
  }

  .records-filter__button span,
  .records-filter__button strong {
    line-height: 1;
    white-space: nowrap;
  }

  .record-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 14px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(120, 105, 136, 0.12);
    box-shadow: none;
  }

  .record-list--news .record-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    min-height: 82px;
    padding: 14px 0;
    border-top: 1px solid rgba(120, 105, 136, 0.12);
    outline-offset: 2px;
  }

  .record-list--news .record-item::after {
    display: none;
  }

  .record-item:first-of-type {
    border-top: 0;
  }

  .record-list--news .record-item:first-child {
    border-top: 0;
  }

  .record-item__date {
    gap: 5px;
  }

  .record-item__date span {
    min-height: 24px;
    padding: 4px 8px;
    justify-self: start;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .record-list--news .record-item__date span {
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .record-item__date strong {
    color: rgba(82, 72, 89, 0.72);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .record-list--news .record-item__date strong {
    color: rgba(82, 72, 89, 0.72);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .record-item__body {
    gap: 0;
  }

  .record-item h3 {
    font-size: 1.06rem;
    line-height: 1.35;
  }

  .record-list--news .record-item h3 {
    font-size: 1.06rem;
    line-height: 1.35;
  }

  .member-card__body {
    padding: 10px 14px 16px;
  }

  .member-card__content {
    gap: 0;
  }

  .member-card__main {
    gap: 8px;
  }

  .portal-hero__copy .page-description,
  .bangumi-hero .page-description {
    display: none;
  }

  .bangumi-hero .inner-hero-facts__card {
    min-height: 72px;
    padding: 12px;
  }

  .bangumi-hero .page-hero__aside .inner-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .bangumi-hero .inner-hero-facts__card:nth-child(3) {
    display: none;
  }

  .bangumi-hero .inner-hero-facts__card strong {
    font-size: 0.95rem;
  }

  .character-fact-grid,
  .character-file,
  .profile-info-grid,
  .profile-journey-item {
    grid-template-columns: 1fr;
  }

  .character-hero-note {
    padding: 22px;
  }

  .character-profile-stack {
    gap: 26px;
  }

  .character-switch {
    top: 72px;
    width: auto;
    margin-bottom: 18px;
    padding: 10px;
    border-radius: 24px;
  }

  body[data-page="character"] .character-switch {
    top: 72px;
    margin-bottom: 18px;
    transform: none;
  }

  .character-switch__item {
    min-width: 98px;
    min-height: 40px;
  }

  .profile-contact-card {
    grid-template-columns: 44px 1fr;
  }

  .profile-contact-card__arrow {
    grid-column: 2;
  }

  .profile-journey-list::before,
  .profile-journey-item::before {
    display: none;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero__copy-inner {
    gap: 18px;
  }

  .home-hero__copy,
  .home-hero__visual,
  .home-secondary > .panel,
  .media-card,
  .home-origin-entry,
  .masthead__copy,
  .masthead__note,
  .character-stage__copy,
  .character-stage__visual,
  .character-title-card,
  .character-facts-card,
  .character-detail-card,
  .character-dossier > article,
  .projects-hero__copy,
  .projects-hero__overview,
  .records-hero__copy,
  .records-hero__overview,
  .portal-hero__copy,
  .portal-hero__overview,
  .projects-featured,
  .projects-secondary,
  .project-panel,
  .profile-hero__copy,
  .profile-hero__banner,
  .profile-card-group,
  .profile-journey,
  .profile-layout > article,
  .timeline-section,
  .records-board,
  .portal-registry,
  .thanks-card,
  .music-notes,
  .video-page__copy,
  .gallery-lower > article,
  .portal-note {
    padding: 22px;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(3.55rem, 16.8vw, 5.2rem);
    line-height: 0.86;
    letter-spacing: 0.01em;
    white-space: normal;
    text-align: center;
  }

  .home-hero__title-desktop {
    display: none;
  }

  .home-hero__title-mobile {
    display: block;
  }

  .home-hero__title-mobile span {
    display: inline-block;
    color: #aa7d93;
    text-shadow: 0 10px 28px rgba(170, 125, 147, 0.16);
  }

  .home-hero__copy {
    min-height: calc(100svh - 128px);
    display: grid;
    align-items: center;
    padding: 16px 18px 22px;
    border-radius: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-hero__copy::before,
  .home-hero__copy::after {
    display: none;
  }

  .home-hero__copy-inner,
  .home-hero__content {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .home-hero__content {
    position: relative;
    width: 100%;
    min-height: min(610px, calc(100svh - 158px));
    padding: clamp(18px, 5.5vw, 34px) clamp(12px, 4vw, 22px);
    border-radius: 0;
    align-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .home-hero__content::before {
    display: none;
  }

  .home-hero__content > * {
    position: relative;
    z-index: 1;
  }

  .home-hero__mobile-avatar {
    display: grid;
    place-items: center;
    position: relative;
    width: clamp(142px, 40vw, 172px);
    height: clamp(142px, 40vw, 172px);
    margin: 0 auto clamp(17px, 4.5vw, 22px);
    padding: 5px;
    border-radius: 999px;
    background:
      linear-gradient(145deg, rgba(255, 253, 249, 0.94), rgba(247, 241, 247, 0.58)) padding-box,
      conic-gradient(from 126deg, rgba(191, 214, 236, 0.68), rgba(226, 189, 202, 0.72), rgba(197, 189, 223, 0.7), rgba(220, 203, 150, 0.34), rgba(191, 214, 236, 0.68)) border-box;
    border: 3px solid transparent;
    box-shadow:
      0 24px 58px rgba(107, 94, 126, 0.15),
      0 0 46px rgba(191, 214, 236, 0.22),
      0 0 66px rgba(226, 189, 202, 0.28);
    animation:
      homeHeroSoftRise var(--motion-duration-slow) var(--motion-ease-soft) both,
      homeDesktopAvatarFloat 4.2s ease-in-out 900ms infinite;
    isolation: isolate;
    overflow: visible;
    will-change: transform;
  }

  .home-hero__mobile-avatar::before {
    content: "";
    position: absolute;
    inset: -38px;
    z-index: -1;
    border-radius: inherit;
    background:
      radial-gradient(circle at 35% 34%, rgba(191, 214, 236, 0.38), transparent 36%),
      radial-gradient(circle at 70% 42%, rgba(226, 189, 202, 0.46), transparent 40%),
      conic-gradient(from 90deg, rgba(191, 214, 236, 0), rgba(191, 214, 236, 0.38), rgba(226, 189, 202, 0.5), rgba(197, 189, 223, 0.44), rgba(220, 203, 150, 0.2), rgba(191, 214, 236, 0)),
      radial-gradient(circle, rgba(255, 253, 249, 0.42), rgba(255, 250, 246, 0) 66%);
    filter: blur(28px);
    animation:
      homeAvatarHaloSpin 8s linear infinite,
      homeDesktopAvatarAura 4.8s ease-in-out infinite;
  }

  .home-hero__mobile-avatar::after {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(255, 253, 249, 0.74);
    box-shadow:
      0 0 0 1px rgba(197, 189, 223, 0.22),
      0 0 32px rgba(226, 189, 202, 0.26);
    animation: homeDesktopAvatarRing 3.1s ease-in-out infinite;
  }

  .home-hero__mobile-avatar img {
    position: relative;
    z-index: 1;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: inherit;
    object-fit: cover;
  }

  .home-hero .eyebrow {
    margin-bottom: 4px;
    letter-spacing: 0.16em;
  }

  .home-hero__subtitle {
    margin-top: 16px;
    font-size: clamp(1.18rem, 5.1vw, 1.55rem);
    font-weight: 700;
    color: #63586e;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.88), 0 8px 24px rgba(107, 94, 126, 0.11);
  }

  .home-hero__mobile-summary {
    display: block;
    margin: 20px auto 0;
    width: min(100%, 19em);
    padding-left: 0;
    border-left: 0;
    font-size: clamp(1rem, 4.15vw, 1.13rem);
    line-height: 1.78;
    color: #6d6675;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9), 0 8px 24px rgba(107, 94, 126, 0.09);
  }

  .home-hero__tagline {
    display: none;
  }

  .home-hero__copy .lead,
  .status-grid--hero,
  .home-hero__figure-side {
    display: none;
  }

  .hero-tools {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    margin-top: 24px;
  }

  .hero-tools .button-row {
    display: flex;
    justify-content: center;
    width: auto;
  }

  .hero-tools .button-row .button {
    display: none;
  }

  .hero-tools .button-row .button:first-child {
    display: inline-flex;
    width: auto;
    min-width: 152px;
    min-height: 48px;
    padding-inline: 28px;
    border-radius: 999px;
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .home-hero__refresh {
    display: none;
  }

  .page-title,
  .archive-hero__title,
  .masthead h1,
  .projects-hero__copy h1,
  .records-hero__copy h1,
  .profile-hero__copy h1,
  .origin-special__copy h2,
  .portal-hero__copy .page-title,
  .story-hero__copy .page-title,
  .books-hero__title-row .page-title,
  .author-hero__main .page-title,
  .studio-hero__main .page-title,
  .staffcast-hero__main .page-title,
  .staff-profile-hero__main .page-title,
  .thanks-hero__copy .page-title,
  .pilgrimage-hero h1 {
    max-width: 100%;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .archive-hero__title,
  .origin-special__copy h2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .masthead h1 {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
  }

  .character-title-card h1 {
    font-size: clamp(2.8rem, 15vw, 4.1rem);
  }

  .home-origin-entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-origin-entry .section-heading {
    margin-bottom: 2px;
  }

  .home-origin-entry .section-heading p:last-child {
    display: none;
  }

  .home-origin-entry__media {
    padding-inline: 0;
    padding-block: 0 4px;
  }

  .home-origin-entry__frame {
    width: min(100%, 34rem);
    min-height: 0;
  }

  .home-origin-entry__summary {
    display: none;
    justify-items: center;
    text-align: center;
  }

  .home-origin-entry__summary p {
    width: min(100%, 23em);
    justify-self: center;
    text-align: center;
    text-wrap: balance;
  }

  .home-origin-entry__summary strong {
    white-space: normal;
  }

  .home-latest-entry {
    position: relative;
    gap: 16px;
    padding: 24px 22px 22px;
    border-radius: var(--radius-xl);
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-soft);
    backdrop-filter: blur(var(--glass-blur-soft));
  }

  .home-latest-entry .section-heading {
    display: grid;
    gap: 7px;
    margin-bottom: 0;
    padding-right: 94px;
  }

  .home-latest-entry .section-heading .eyebrow {
    max-width: 10.5em;
  }

  .home-latest-entry .section-heading::after {
    display: none;
  }

  .home-latest-entry__count {
    position: absolute;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(109, 102, 117, 0.72);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .home-latest-entry .section-heading h2 {
    font-size: clamp(1.7rem, 8.4vw, 2.18rem);
    line-height: 1.08;
  }

  .home-latest-entry .section-heading p:last-child {
    display: block;
    max-width: 22em;
    margin-top: 2px;
    color: rgba(95, 86, 108, 0.72);
    font-size: 0.84rem;
    line-height: 1.75;
  }

  .home-latest-entry .news-line p {
    display: none;
  }

  .home-latest-entry .news-list {
    counter-reset: latest-news;
    gap: 0;
    border-top: 1px solid rgba(120, 105, 136, 0.18);
    border-bottom: 1px solid rgba(120, 105, 136, 0.1);
  }

  .home-latest-entry .news-line {
    counter-increment: latest-news;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: 72px;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-latest-entry .news-line + .news-line {
    border-top: 1px solid rgba(120, 105, 136, 0.12);
  }

  .home-latest-entry .news-line::before {
    content: counter(latest-news, decimal-leading-zero);
    display: inline-grid;
    align-items: center;
    justify-items: start;
    min-width: 38px;
    color: rgba(164, 143, 185, 0.72);
    background: transparent;
    border: 0;
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1;
    padding-top: 21px;
  }

  .home-latest-entry .news-line:first-child {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    margin: 0;
    padding: 17px 0 18px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .home-latest-entry .news-line:first-child::before {
    content: counter(latest-news, decimal-leading-zero);
    display: inline-grid;
    align-items: start;
    justify-items: start;
    min-width: 38px;
    padding-top: 24px;
    color: rgba(226, 104, 158, 0.72);
    background: transparent;
    border: 0;
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
  }

  .home-latest-entry .news-line__meta {
    grid-column: 2;
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
  }

  .home-latest-entry .news-line__body {
    grid-column: 2;
  }

  .home-latest-entry .news-line__meta span {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(119, 103, 133, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
  }

  .home-latest-entry .news-line:first-child .news-line__meta {
    grid-column: 2;
    margin-bottom: 9px;
  }

  .home-latest-entry .news-line:first-child .news-line__body {
    grid-column: 2;
  }

  .home-latest-entry .news-line:first-child .news-line__meta span {
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: 0;
    color: rgba(98, 88, 112, 0.72);
    font-size: 0.68rem;
  }

  .home-latest-entry .news-line h3 {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.98rem, 3.9vw, 1.1rem);
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-latest-entry .news-line:first-child h3 {
    max-width: none;
    font-size: clamp(1.16rem, 4.9vw, 1.34rem);
    line-height: 1.28;
  }

  .home-latest-entry .news-line:first-child p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    color: rgba(89, 81, 102, 0.72);
    font-size: 0.82rem;
    line-height: 1.72;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-latest-entry .news-line:nth-child(n + 4) {
    display: grid;
  }

  .weather-card {
    gap: 13px;
    padding: 20px;
  }

  .weather-card__head {
    align-items: center;
  }

  .weather-card__head h3 {
    max-width: 11.5em;
    margin-top: 4px;
    font-size: clamp(1.28rem, 6.2vw, 1.62rem);
  }

  .weather-card__badge {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .weather-card__summary-block {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
  }

  .weather-card__temp {
    font-size: clamp(2.78rem, 16vw, 3.8rem);
  }

  .weather-card__summary {
    line-height: 1.62;
  }

  .weather-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .weather-card__grid .data-card {
    min-height: 76px;
    padding: 12px;
    border-radius: 18px;
    align-content: center;
  }

  .weather-card__grid .data-card span {
    font-size: 0.68rem;
  }

  .weather-card__grid .data-card strong {
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .music-hero {
    padding: 24px;
  }

  .home-music-panel__head {
    align-items: flex-start;
  }

  .home-hero__figure {
    min-height: 300px;
    padding: 14px 12px 0;
  }

  .home-hero__figure-image {
    width: min(100%, 280px);
  }

  .home-hero__figure-note {
    justify-self: stretch;
    max-width: none;
  }

  .home-carousel__viewport {
    min-height: 260px;
  }

  .home-carousel__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-frame--hero {
    min-height: 420px;
  }

  .visual-frame--portrait {
    min-height: 420px;
  }

  .character-portrait {
    min-height: 520px;
    height: auto;
  }

  .character-portrait-card {
    position: relative;
    top: auto;
  }

  .character-impression-card dl div,
  .character-file__block--labels .meta-list,
  .character-summary-card__items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #home-music.home-media {
    gap: 18px;
    margin-top: 34px;
  }

  #home-music .home-music-embed__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 2px -2px;
  }

  #home-music .home-music-embed__heading span {
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(184, 166, 211, 0.9), rgba(210, 188, 132, 0.82));
    box-shadow: 0 10px 24px rgba(168, 142, 192, 0.18);
  }

  #home-music .home-music-embed__heading h2 {
    margin: 0;
    color: #5f526f;
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1;
    letter-spacing: 0.03em;
  }

  #home-music .home-music-embed__frame {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: clamp(680px, 82vh, 800px);
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border-radius: 32px;
    background:
      radial-gradient(circle at 18% 2%, rgba(255, 255, 255, 0.9), transparent 30%),
      radial-gradient(circle at 88% 24%, rgba(217, 211, 238, 0.28), transparent 34%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 250, 246, 0.42) 48%, rgba(239, 246, 247, 0.52));
    border: 4px solid rgba(255, 255, 255, 0.52);
    box-shadow:
      0 28px 62px rgba(107, 94, 126, 0.16),
      0 10px 28px rgba(168, 142, 192, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  #home-music .home-music-embed__frame > .media-card {
    min-width: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #home-music .home-music-embed__frame > .media-card::before {
    display: none;
  }

  #home-music .home-music-embed__frame > .media-card--music-primary {
    padding: 22px 20px 16px;
  }

  #home-music .home-music-embed__frame > .media-card--music-side {
    min-height: 0;
    padding: 0 18px 18px;
  }

  #home-music .music-widget--compact {
    position: relative;
    grid-template-columns: minmax(82px, 100px) minmax(0, 1fr);
    grid-template-areas: "art content";
    gap: 8px 14px;
    align-items: start;
  }

  #home-music .music-widget--compact .music-widget__head {
    display: none;
  }

  #home-music .music-widget--compact .music-widget__content {
    grid-area: content;
    justify-items: start;
    align-content: start;
    align-self: start;
    width: 100%;
    min-width: 0;
    min-height: 100px;
    padding-bottom: 44px;
    gap: 5px;
  }

  #home-music .music-widget--compact .music-widget__art {
    grid-area: art;
    align-self: start;
    width: min(100%, 100px);
    min-height: 0;
    padding: 0;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 16px 34px rgba(107, 94, 126, 0.12);
  }

  #home-music .music-widget--compact .music-widget__art img {
    object-fit: cover;
  }

  #home-music .music-widget--compact .music-widget__title {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(0.98rem, 4.7vw, 1.3rem);
    line-height: 1.18;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
  }

  #home-music .music-widget--compact .music-widget__artist {
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    color: rgba(95, 82, 111, 0.7);
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #home-music .music-widget__lyric--marquee {
    display: none;
  }

  #home-music .music-widget__footer {
    position: absolute;
    right: 0;
    bottom: 0;
    gap: 0;
    width: 42px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #home-music .music-widget__controls {
    flex-wrap: nowrap;
    justify-content: end;
    gap: 0;
  }

  #home-music .music-widget__controls .circle-button:not(.circle-button--primary) {
    display: none;
  }

  #home-music .music-widget__controls .circle-button {
    width: 40px;
    height: 40px;
    background:
      radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.86), transparent 42%),
      linear-gradient(145deg, rgba(250, 247, 251, 0.74), rgba(224, 214, 232, 0.56));
    border-color: rgba(255, 255, 255, 0.72);
    color: #74677f;
    box-shadow:
      0 12px 26px rgba(107, 94, 126, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  #home-music .music-widget__controls .circle-button--primary {
    background:
      radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.84), transparent 42%),
      linear-gradient(145deg, rgba(239, 234, 244, 0.88), rgba(207, 196, 220, 0.7));
    color: #74677f;
  }

  #home-music .music-widget__progress {
    display: none;
  }

  #home-music .home-music-panel,
  #home-music .home-music-panel__queue {
    min-height: 0;
    overflow: hidden;
  }

  #home-music .home-music-panel__queue {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #home-music .home-music-panel__head {
    display: none;
  }

  #home-music .playlist-list--home {
    display: block;
    max-height: 100%;
    height: 100%;
    overflow: auto;
    padding: 8px 0 0;
    border-top: 1px solid rgba(137, 124, 151, 0.14);
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 128, 164, 0.36) transparent;
  }

  #home-music .playlist-list--home::-webkit-scrollbar {
    width: 4px;
  }

  #home-music .playlist-list--home::-webkit-scrollbar-track {
    background: transparent;
  }

  #home-music .playlist-list--home::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(143, 128, 164, 0.3);
  }

  #home-music .playlist-list--home .playlist-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    min-height: 48px;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid rgba(137, 124, 151, 0.09);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #home-music .playlist-list--home .playlist-item__order {
    color: rgba(95, 82, 111, 0.5);
    font-size: 0.78rem;
    font-family: var(--font-serif);
  }

  #home-music .playlist-list--home .playlist-item__index {
    justify-content: center;
    gap: 4px;
  }

  #home-music .playlist-list--home .playlist-item__copy strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #home-music .playlist-list--home .playlist-item__copy small {
    display: none;
  }

  #home-music .playlist-list--home .playlist-item__duration {
    display: none;
  }

  #home-music .playlist-list--home .playlist-item.is-active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 82%);
  }

  #home-music .playlist-list--home .playlist-item__indicator {
    color: rgba(166, 142, 192, 0.82);
    font-size: 0.82rem;
  }
}

@media (min-width: 761px) {
  body[data-page="home"] .home-hero {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--site-header-height, 82px));
  }

  body[data-page="home"] .home-hero__copy {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--site-header-height, 82px));
    padding:
      clamp(34px, 6vh, 72px)
      clamp(32px, 6vw, 96px)
      clamp(148px, 19vh, 188px);
    overflow: visible;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body[data-page="home"] .home-hero__copy::before,
  body[data-page="home"] .home-hero__copy::after {
    display: none;
  }

  body[data-page="home"] .home-hero__copy-inner,
  body[data-page="home"] .home-hero__content {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  body[data-page="home"] .home-hero__copy-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 0;
  }

  body[data-page="home"] .home-hero__content {
    position: relative;
    width: min(100%, 1180px);
    min-height: 0;
    padding: clamp(22px, 2.4vw, 30px) clamp(28px, 5vw, 64px) clamp(34px, 3vw, 42px);
    align-content: center;
    overflow: visible;
  }

  body[data-page="home"] .home-hero__content::before {
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.3), transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%);
  }

  body[data-page="home"] .home-hero__content > * {
    position: relative;
    z-index: 1;
  }

  body[data-page="home"] .home-hero__mobile-avatar {
    display: grid;
    place-items: center;
    position: relative;
    width: clamp(236px, 17vw, 292px);
    height: clamp(236px, 17vw, 292px);
    margin: 0 auto clamp(12px, 1.3vw, 18px);
    padding: 6px;
    border-radius: 999px;
    background:
      linear-gradient(145deg, rgba(255, 253, 249, 0.94), rgba(247, 241, 247, 0.58)) padding-box,
      conic-gradient(from 126deg, rgba(191, 214, 236, 0.68), rgba(226, 189, 202, 0.72), rgba(197, 189, 223, 0.7), rgba(220, 203, 150, 0.34), rgba(191, 214, 236, 0.68)) border-box;
    border: 3px solid transparent;
    box-shadow:
      0 34px 82px rgba(107, 94, 126, 0.16),
      0 0 64px rgba(191, 214, 236, 0.26),
      0 0 98px rgba(226, 189, 202, 0.3);
    animation:
      homeHeroSoftRise var(--motion-duration-slow) var(--motion-ease-soft) both,
      homeDesktopAvatarFloat 4.2s ease-in-out 900ms infinite;
    isolation: isolate;
    overflow: visible;
    will-change: transform;
  }

  body[data-page="home"] .home-hero__mobile-avatar::before {
    content: "";
    position: absolute;
    inset: -62px;
    z-index: -1;
    border-radius: inherit;
    background:
      radial-gradient(circle at 35% 34%, rgba(191, 214, 236, 0.42), transparent 36%),
      radial-gradient(circle at 70% 42%, rgba(226, 189, 202, 0.5), transparent 40%),
      conic-gradient(from 90deg, rgba(191, 214, 236, 0), rgba(191, 214, 236, 0.42), rgba(226, 189, 202, 0.54), rgba(197, 189, 223, 0.5), rgba(220, 203, 150, 0.22), rgba(191, 214, 236, 0)),
      radial-gradient(circle, rgba(255, 253, 249, 0.44), rgba(255, 250, 246, 0) 66%);
    filter: blur(38px);
    animation:
      homeAvatarHaloSpin 8s linear infinite,
      homeDesktopAvatarAura 4.8s ease-in-out infinite;
  }

  body[data-page="home"] .home-hero__mobile-avatar::after {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(255, 253, 249, 0.74);
    box-shadow:
      0 0 0 1px rgba(197, 189, 223, 0.24),
      0 0 42px rgba(226, 189, 202, 0.28);
    animation: homeDesktopAvatarRing 3.1s ease-in-out infinite;
  }

  body[data-page="home"] .home-hero__mobile-avatar img {
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: inherit;
    object-fit: cover;
    position: relative;
    z-index: 1;
  }

  body[data-page="home"] .home-hero .eyebrow {
    margin-bottom: 8px;
    color: rgba(67, 56, 77, 0.88);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-shadow: var(--home-hero-text-halo);
  }

  body[data-page="home"] .home-hero h1 {
    max-width: min(100%, 1160px);
    margin: 0;
    font-size: clamp(5.15rem, 7.75vw, 8.6rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-align: center;
    text-shadow: var(--home-hero-title-halo);
    animation: homeHeroSoftRise var(--motion-duration-slow) var(--motion-ease-soft) 80ms both;
  }

  body[data-page="home"] .home-hero__title-desktop {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(0.12em, 1.2vw, 0.24em);
    animation: homeDesktopTitleFloat 4.8s ease-in-out 1s infinite;
    will-change: transform;
  }

  body[data-page="home"] .home-hero__desktop-title-main,
  body[data-page="home"] .home-hero__desktop-title-accent {
    display: inline-block;
    color: #51465c;
    text-shadow: var(--home-hero-title-halo);
  }

  body[data-page="home"] .home-hero__desktop-title-main {
    color: #51465c;
  }

  body[data-page="home"] .home-hero__desktop-title-no {
    display: inline-block;
    color: #4f435a;
    font-size: 0.78em;
    font-weight: 900;
    line-height: 1;
    text-shadow: var(--home-hero-title-halo);
  }

  body[data-page="home"] .home-hero__desktop-title-accent {
    color: #7a536b;
    text-shadow: var(--home-hero-title-halo);
  }

  body[data-page="home"] .home-hero__title-mobile {
    display: none;
  }

  body[data-page="home"] .home-hero__title-mobile span {
    display: inline-block;
    color: #aa7d93;
    text-shadow: var(--home-hero-title-halo);
  }

  body[data-page="home"] .home-hero__subtitle {
    margin: clamp(14px, 1.8vw, 20px) 0 0;
    color: rgba(61, 51, 71, 0.94);
    font-size: clamp(1.24rem, 1.65vw, 1.62rem);
    font-weight: 800;
    text-shadow: var(--home-hero-text-halo);
  }

  body[data-page="home"] .home-hero__mobile-summary {
    display: block;
    width: min(100%, 31em);
    margin: clamp(14px, 1.8vw, 20px) auto 0;
    padding-left: 0;
    border-left: 0;
    color: rgba(67, 56, 77, 0.94);
    font-size: clamp(0.98rem, 1.12vw, 1.08rem);
    font-weight: 700;
    line-height: 1.86;
    text-shadow: var(--home-hero-text-halo);
  }

  body[data-page="home"] .home-hero__mobile-summary span {
    display: inline-block;
    white-space: nowrap;
  }

  body[data-page="home"] .home-hero__tagline,
  body[data-page="home"] .home-hero__copy .lead,
  body[data-page="home"] .status-grid--hero,
  body[data-page="home"] .home-hero__figure-side {
    display: none;
  }

  body[data-page="home"] .hero-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    margin-top: clamp(16px, 1.8vw, 22px);
  }

  body[data-page="home"] .hero-tools .button-row {
    display: flex;
    justify-content: center;
    width: auto;
    margin-top: 0;
  }

  body[data-page="home"] .hero-tools .button-row .button {
    display: none;
  }

  body[data-page="home"] .hero-tools .button-row .button:first-child {
    display: inline-flex;
    width: auto;
    min-width: 176px;
    min-height: 52px;
    padding-inline: 32px;
    border-radius: 999px;
    font-size: 1rem;
    line-height: 1.2;
  }

  body[data-page="home"] .home-hero__refresh {
    display: none;
  }
}

@media (min-width: 761px) and (max-height: 900px) {
  body[data-page="home"] .home-hero {
    min-height: calc(100vh - var(--site-header-height, 82px));
  }

  body[data-page="home"] .home-hero__copy {
    min-height: calc(100vh - var(--site-header-height, 82px));
    padding-top: clamp(18px, 4vh, 36px);
    padding-bottom: clamp(128px, 18vh, 152px);
  }

  body[data-page="home"] .home-hero__content {
    padding-block: 8px;
  }

  body[data-page="home"] .home-hero__mobile-avatar {
    width: clamp(214px, 15.4vw, 244px);
    height: clamp(214px, 15.4vw, 244px);
    margin-bottom: 8px;
  }

  body[data-page="home"] .home-hero .eyebrow {
    margin-bottom: 6px;
  }

  body[data-page="home"] .home-hero h1 {
    font-size: clamp(4.18rem, 6.05vw, 6rem);
  }

  body[data-page="home"] .home-hero__subtitle {
    font-size: clamp(1.12rem, 1.46vw, 1.42rem);
  }

  body[data-page="home"] .home-hero__mobile-summary {
    font-size: clamp(0.94rem, 1.04vw, 1rem);
    line-height: 1.72;
  }

  body[data-page="home"] .hero-tools {
    margin-top: 14px;
  }

  body[data-page="home"] .hero-tools .button-row .button:first-child {
    min-height: 48px;
    padding-inline: 28px;
    font-size: 0.96rem;
  }
}

@media (min-width: 761px) and (max-height: 800px) {
  body[data-page="home"] .home-hero {
    min-height: calc(100vh - var(--site-header-height, 82px));
  }

  body[data-page="home"] .home-hero__copy {
    min-height: calc(100vh - var(--site-header-height, 82px));
    padding-top: 12px;
    padding-bottom: 126px;
  }

  body[data-page="home"] .home-hero__content {
    padding-block: 4px;
  }

  body[data-page="home"] .home-hero__mobile-avatar {
    width: clamp(188px, 14.4vw, 216px);
    height: clamp(188px, 14.4vw, 216px);
    margin-bottom: 7px;
  }

  body[data-page="home"] .home-hero .eyebrow {
    margin-bottom: 4px;
  }

  body[data-page="home"] .home-hero h1 {
    font-size: clamp(3.82rem, 5.45vw, 5.15rem);
  }

  body[data-page="home"] .home-hero__subtitle {
    font-size: clamp(1.02rem, 1.3vw, 1.24rem);
  }

  body[data-page="home"] .home-hero__mobile-summary {
    font-size: clamp(0.9rem, 1vw, 0.96rem);
    line-height: 1.66;
  }

  body[data-page="home"] .hero-tools {
    margin-top: 10px;
  }

  body[data-page="home"] .hero-tools .button-row .button:first-child {
    min-height: 46px;
    padding-inline: 26px;
    font-size: 0.94rem;
  }
}

@media (max-width: 560px) {
  .bangumi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bangumi-recommend {
    padding: 18px 14px;
  }

  .bangumi-recommend__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .bangumi-recommend__media {
    border-radius: 16px;
  }

  .bangumi-recommend__rank {
    left: 6px;
    top: 6px;
    width: 30px;
    height: 30px;
    font-size: 0.6rem;
  }

  .bangumi-recommend__copy {
    padding: 7px 2px 3px;
  }

  .bangumi-recommend__copy h3,
  .bangumi-recommend__item.is-featured .bangumi-recommend__copy h3 {
    font-size: 0.76rem;
    line-height: 1.28;
  }

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

  .shelf-meta [data-bangumi-bind="shelf-updated"] {
    display: none;
  }

  .entry-card {
    min-height: 108px;
    padding: 12px;
  }
}

/* Home Sakurairo wave / acrylic pass */
body[data-page="home"] {
  --home-header-z: 12000;
  --site-chrome-header-z: var(--home-header-z);
  --site-backdrop-opacity: 1;
  --home-wave-height: 80px;
  --home-wave-front-height: 65px;
  --home-wave-tail: 0px;
  --home-sakurairo-wrapper-bg: rgba(255, 255, 255, 0.8);
  --home-glass-region-bg: var(--home-sakurairo-wrapper-bg);
  --home-wave-backdrop-tint: var(--home-sakurairo-wrapper-bg);
  --home-hero-title-halo:
    0 1px 0 rgba(255, 253, 249, 0.92),
    0 0 10px rgba(255, 252, 247, 0.78),
    0 0 26px rgba(255, 248, 240, 0.46),
    0 10px 26px rgba(28, 22, 38, 0.24);
  --home-hero-text-halo:
    0 1px 0 rgba(255, 253, 249, 0.88),
    0 0 8px rgba(255, 252, 247, 0.68),
    0 0 20px rgba(255, 248, 240, 0.36),
    0 8px 20px rgba(30, 24, 40, 0.22);
  --home-hero-small-text-color: rgba(255, 250, 253, 0.94);
  --home-hero-small-text-stroke: rgba(66, 45, 82, 0.58);
  --home-hero-small-text-halo:
    0 1px 1px rgba(37, 26, 50, 0.72),
    0 0 9px rgba(39, 28, 52, 0.48),
    0 0 18px rgba(255, 250, 246, 0.34),
    0 8px 20px rgba(24, 18, 34, 0.28);
  --home-card-surface: linear-gradient(180deg, rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.58));
  --home-card-surface-strong: linear-gradient(180deg, rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.58));
  --home-card-chip: linear-gradient(180deg, rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.58));
  --home-card-chip-strong: linear-gradient(180deg, rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.58));
  --home-card-border: var(--glass-border);
  --home-card-border-hover: var(--glass-border);
  --home-card-shadow:
    0 14px 32px rgba(70, 60, 82, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --home-card-shadow-hover:
    0 22px 48px rgba(70, 60, 82, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  overflow-x: hidden;
}

body[data-page="home"] #site-root {
  position: relative;
  z-index: auto;
  padding-top: 0;
}

body[data-page="home"] #site-root::before {
  content: none;
}

body[data-page="home"] :is(
  #site-chrome-header,
  #site-main,
  #site-footer-shell,
  #site-global-search-shell,
  #site-lightbox-shell
) {
  position: relative;
  z-index: 1;
}

body[data-page="home"] #site-chrome-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: var(--home-header-z);
  isolation: isolate;
}

body[data-page="home"] .site-header {
  position: relative;
  inset: auto;
  width: 100%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.58));
  border-bottom-color: var(--glass-border);
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}

body[data-page="home"] .site-header:is(.is-scrolled, :hover, :focus-within),
body[data-page="home"].is-mobile-nav-open .site-header {
  background: linear-gradient(180deg, rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.58));
  border-bottom-color: var(--glass-border);
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

body[data-page="home"] .site-header:not(.is-scrolled) :is(
  .site-brand__copy small,
  .site-brand__copy strong,
  .site-brand__copy em,
  .site-nav__link span,
  .site-nav__link small,
  .site-header__search,
  .site-header__menu-label
) {
  text-shadow: none;
}

body[data-page="home"] .site-header:not(.is-scrolled) :is(
  .site-header__search-mark,
  .site-header__menu-lines,
  .site-nav__logo-image
) {
  filter: none;
}

body[data-page="home"] .site-backdrop__image {
  background-image: var(--site-backdrop-initial-image, url("../media/home-slides/b4.webp"));
  opacity: var(--site-backdrop-opacity);
  filter: none;
  transform: none;
}

body[data-page="home"] .site-backdrop__image.is-visible {
  opacity: var(--site-backdrop-opacity);
}

body[data-page="home"] .site-backdrop__veil {
  background: none;
  opacity: 0;
}

body[data-page="home"] .site-backdrop__bloom {
  display: none;
}

body[data-page="home"] .site-main.shell {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

body[data-page="home"] .home-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  margin-inline: 0;
  overflow: clip;
}

body[data-page="home"] .home-hero::after {
  content: none;
}

body[data-page="home"] .home-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: inherit;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

body[data-page="home"] .home-hero__copy::before {
  content: none;
}

body[data-page="home"] .home-hero__copy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  width: var(--shell);
  min-height: inherit;
  margin-inline: auto;
  padding: clamp(118px, 15.5vh, 156px) 0 clamp(92px, 11vh, 132px);
}

body[data-page="home"] .home-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(100%, 980px);
  padding: clamp(18px, 2.6vw, 30px) clamp(22px, 4vw, 42px) clamp(26px, 3.4vw, 36px);
  text-align: center;
  color: rgba(50, 41, 60, 0.94);
  overflow: visible;
}

body[data-page="home"] .home-hero h1 {
  position: relative;
}

body[data-page="home"] .home-hero h1::before {
  content: "";
  position: absolute;
  inset: 52% auto auto 50%;
  width: min(100%, 760px);
  height: clamp(88px, 10.5vw, 126px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 23% 56%, rgba(255, 250, 244, 0.12) 0%, rgba(255, 250, 244, 0.06) 18%, rgba(255, 250, 244, 0.022) 30%, rgba(255, 250, 244, 0) 45%),
    radial-gradient(ellipse at 77% 48%, rgba(255, 250, 244, 0.11) 0%, rgba(255, 250, 244, 0.055) 18%, rgba(255, 250, 244, 0.022) 30%, rgba(255, 250, 244, 0) 45%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 252, 247, 0.08) 0%, rgba(255, 252, 247, 0.03) 26%, rgba(255, 252, 247, 0) 50%);
  filter: blur(10px);
}

body[data-page="home"] .home-hero__content::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(72vw, 780px);
  height: min(48vh, 420px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 252, 247, 0.3) 0%, rgba(255, 250, 244, 0.18) 20%, rgba(255, 248, 241, 0.07) 38%, rgba(255, 248, 241, 0) 72%);
  mix-blend-mode: screen;
}

body[data-page="home"] .home-hero h1 {
  color: rgba(84, 62, 106, 0.98);
  text-shadow: var(--home-hero-title-halo);
  -webkit-text-stroke: 0.42px rgba(255, 253, 249, 0.56);
}

body[data-page="home"] .home-hero :is(
  .home-hero__desktop-title-main,
  .home-hero__desktop-title-no,
  .home-hero__desktop-title-accent,
  .home-hero__title-mobile span
) {
  text-shadow: var(--home-hero-title-halo);
  -webkit-text-stroke: 0.42px rgba(255, 253, 249, 0.56);
}

body[data-page="home"] .home-hero .eyebrow {
  color: rgba(82, 68, 95, 0.92);
  font-weight: 800;
  text-shadow: var(--home-hero-text-halo);
}

body[data-page="home"] .home-hero__subtitle {
  margin: clamp(16px, 2vw, 22px) 0 0;
  color: var(--home-hero-small-text-color);
  font-weight: 800;
  text-shadow: var(--home-hero-small-text-halo);
  -webkit-text-stroke: 0.22px var(--home-hero-small-text-stroke);
}

body[data-page="home"] .home-hero__mobile-summary {
  margin: clamp(10px, 1.5vw, 14px) 0 0;
  color: var(--home-hero-small-text-color);
  font-weight: 700;
  text-shadow: var(--home-hero-small-text-halo);
  -webkit-text-stroke: 0.18px var(--home-hero-small-text-stroke);
}

body[data-page="home"] .home-hero__tagline,
body[data-page="home"] .home-hero__copy .lead,
body[data-page="home"] .home-hero__figure-side {
  color: var(--home-hero-small-text-color);
  text-shadow: var(--home-hero-small-text-halo);
  -webkit-text-stroke: 0.18px var(--home-hero-small-text-stroke);
}

body[data-page="home"] .home-hero__mobile-avatar {
  width: clamp(236px, 17vw, 292px);
  height: clamp(236px, 17vw, 292px);
  margin: 0 auto clamp(12px, 1.3vw, 18px);
  display: grid;
  place-items: center;
  position: relative;
  padding: 6px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.94), rgba(247, 241, 247, 0.58)) padding-box,
    conic-gradient(from 126deg, rgba(191, 214, 236, 0.68), rgba(226, 189, 202, 0.72), rgba(197, 189, 223, 0.7), rgba(220, 203, 150, 0.34), rgba(191, 214, 236, 0.68)) border-box;
  border: 3px solid transparent;
  box-shadow:
    0 34px 82px rgba(107, 94, 126, 0.16),
    0 0 64px rgba(191, 214, 236, 0.26),
    0 0 98px rgba(226, 189, 202, 0.3);
  animation:
    homeHeroSoftRise var(--motion-duration-slow) var(--motion-ease-soft) both,
    homeDesktopAvatarFloat 4.2s ease-in-out 900ms infinite;
  isolation: isolate;
  overflow: visible;
  will-change: transform;
}

body[data-page="home"] .home-hero__mobile-avatar::before {
  content: "";
  position: absolute;
  inset: -62px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 34%, rgba(191, 214, 236, 0.42), transparent 36%),
    radial-gradient(circle at 70% 42%, rgba(226, 189, 202, 0.5), transparent 40%),
    conic-gradient(from 90deg, rgba(191, 214, 236, 0), rgba(191, 214, 236, 0.42), rgba(226, 189, 202, 0.54), rgba(197, 189, 223, 0.5), rgba(220, 203, 150, 0.22), rgba(191, 214, 236, 0)),
    radial-gradient(circle, rgba(255, 253, 249, 0.44), rgba(255, 250, 246, 0) 66%);
  filter: blur(38px);
  animation:
    homeAvatarHaloSpin 8s linear infinite,
    homeDesktopAvatarAura 4.8s ease-in-out infinite;
}

body[data-page="home"] .home-hero__mobile-avatar::after {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255, 253, 249, 0.74);
  box-shadow:
    0 0 0 1px rgba(197, 189, 223, 0.24),
    0 0 42px rgba(226, 189, 202, 0.28);
  animation: homeDesktopAvatarRing 3.1s ease-in-out infinite;
}

body[data-page="home"] .home-hero__mobile-avatar img {
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: inherit;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

@media (min-width: 761px) {
  body[data-page="home"] .home-hero__content::before {
    width: min(68vw, 760px);
    height: min(44vh, 390px);
  }
}

@media (min-width: 761px) and (max-height: 900px) {
  body[data-page="home"] .home-hero__mobile-avatar {
    width: clamp(214px, 15.4vw, 244px);
    height: clamp(214px, 15.4vw, 244px);
    margin-bottom: 8px;
  }
}

@media (min-width: 761px) and (max-height: 800px) {
  body[data-page="home"] .home-hero__mobile-avatar {
    width: clamp(188px, 14.4vw, 216px);
    height: clamp(188px, 14.4vw, 216px);
    margin-bottom: 7px;
  }
}

body[data-page="home"] .hero-tools .button-row .button:first-child {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(246, 238, 245, 0.28)),
    linear-gradient(135deg, rgba(219, 232, 246, 0.08), rgba(237, 214, 221, 0.06));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] .home-wave-transition {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: var(--home-wave-height);
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  box-shadow: none;
  background: transparent;
}

body[data-page="home"] .home-wave-transition__layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 400%;
  background-position: 0 0;
  background-repeat: repeat-x;
  background-size: auto;
  animation: homeWaveForward 160s linear infinite;
  will-change: background-position;
}

body[data-page="home"] .home-wave-transition__layer--back {
  z-index: 3;
  height: var(--home-wave-height);
  background: var(--home-wave-backdrop-tint);
  opacity: 1;
  animation-duration: 160s;
  box-shadow: none;
  filter: saturate(0.92) brightness(1);
  -webkit-mask-image: url("../media/sakurairo/wave2.png");
  mask-image: url("../media/sakurairo/wave2.png");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-size: auto;
  mask-size: auto;
}

body[data-page="home"] .home-wave-transition__layer--front {
  left: -236px;
  z-index: 4;
  height: var(--home-wave-front-height);
  background: var(--home-glass-region-bg);
  opacity: 1;
  animation-duration: 240s;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  -webkit-mask-image: url("../media/sakurairo/wave1.png");
  mask-image: url("../media/sakurairo/wave1.png");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-size: auto;
  mask-size: auto;
}

body[data-page="home"] .home-glass-region {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding:
    clamp(30px, 4vw, 56px)
    0
    196px;
  background: var(--home-glass-region-bg);
  border-top: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] .home-glass-region::before {
  content: none;
}

body[data-page="home"] .home-glass-region::after {
  content: none;
}

body[data-page="home"] .home-glass-region__inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
}

body[data-page="home"] .home-glass-region__inner > :first-child {
  margin-top: 0;
}

body[data-page="home"].is-home-title-stage .return-home-button,
body[data-page="home"].is-home-title-stage .return-home-button.is-visible {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
}

@keyframes homeWaveForward {
  to {
    background-position: -100% 0;
    -webkit-mask-position: -100% 0;
    mask-position: -100% 0;
  }
}

body[data-page="home"] :is(
  .home-hero__visual,
  .home-latest-entry,
  .weather-card,
  .quote-card,
  .media-card,
  .home-origin-entry,
  .entry-card
) {
  background: var(--home-card-surface);
  border-color: var(--home-card-border);
  box-shadow: var(--home-card-shadow);
  backdrop-filter: saturate(114%) blur(4px);
  -webkit-backdrop-filter: saturate(114%) blur(4px);
  transition:
    transform var(--transition),
    filter var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

body[data-page="home"] :is(
  .home-hero__visual,
  .home-latest-entry,
  .weather-card,
  .quote-card,
  .media-card,
  .home-origin-entry
)::before {
  content: none;
}

body[data-page="home"] .home-carousel-section {
  margin-top: 0;
}

body[data-page="home"] .home-carousel-section .home-hero__visual {
  padding: clamp(14px, 1.6vw, 20px);
  border-color: var(--home-card-border);
  border-radius: 18px;
  background: var(--home-card-surface);
  box-shadow: var(--home-card-shadow);
  backdrop-filter: saturate(114%) blur(4px);
  -webkit-backdrop-filter: saturate(114%) blur(4px);
}

body[data-page="home"] .home-carousel-section .home-carousel {
  gap: 12px;
}

body[data-page="home"] .home-carousel-section .home-carousel__viewport {
  min-height: clamp(260px, 43vw, 520px);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(58, 50, 67, 0.07);
}

body[data-page="home"] .home-carousel-section .home-carousel__meta {
  padding: 0 4px 2px;
}

body[data-page="home"] :is(
  .home-latest-entry,
  .home-origin-entry,
  .entry-card
):is(:hover, :focus-visible) {
  background: var(--home-card-surface-strong);
  border-color: var(--home-card-border-hover);
  box-shadow: var(--home-card-shadow-hover);
}

body[data-page="home"] :is(
  .home-latest-entry__more,
  .status-card,
  .data-card,
  .weather-card__badge,
  .weather-card__summary-block,
  .entry-card__tag,
  .home-music-panel__queue,
  .home-hero__figure-note
) {
  background: var(--home-card-chip);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 20px rgba(70, 60, 82, 0.032);
  backdrop-filter: saturate(108%) blur(3px);
  -webkit-backdrop-filter: saturate(108%) blur(3px);
}

body[data-page="home"] .home-hero .status-card {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] .home-carousel__copy span {
  color: rgba(86, 74, 100, 0.72);
}

body[data-page="home"] .home-carousel__copy strong {
  color: rgba(66, 55, 80, 0.9);
}

body[data-page="home"] .home-carousel__copy p {
  color: rgba(72, 62, 86, 0.8);
}

body[data-page="home"] :is(.home-latest-entry__more, .entry-card__tag):is(:hover, :focus-visible) {
  background: var(--home-card-chip-strong);
}

body[data-page="home"] #site-footer-shell {
  position: relative;
  z-index: 1;
  background: var(--home-glass-region-bg);
  border-top: 0;
  margin-top: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] .site-footer {
  background: transparent;
}

body[data-page="home"] .site-footer__inner {
  border-top-color: transparent;
}

@media (max-width: 760px) {
  body[data-page="home"] {
    --home-wave-height: 80px;
    --home-wave-front-height: 65px;
    --home-wave-tail: 0px;
  }

  body[data-page="home"] .home-hero {
    min-height: 100svh;
  }

  body[data-page="home"] .home-hero__copy {
    min-height: inherit;
  }

  body[data-page="home"] .home-hero__copy-inner {
    width: min(calc(100% - 20px), 100%);
    padding: clamp(124px, 28vw, 148px) 0 clamp(64px, 16vw, 96px);
  }

  body[data-page="home"] .home-hero__content {
    width: 100%;
  }

  body[data-page="home"] .home-hero__figure-side {
    display: none;
  }

  body[data-page="home"] .home-hero__figure-note {
    display: none;
  }

  body[data-page="home"] .home-wave-transition__layer {
    width: 400%;
  }

  body[data-page="home"] .home-glass-region {
    padding-top: calc(var(--home-wave-tail) + 24px);
    padding-bottom: clamp(28px, 4vw, 48px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body[data-page="home"] .home-hero__mobile-avatar {
    width: clamp(142px, 40vw, 172px);
    height: clamp(142px, 40vw, 172px);
    margin: 0 auto clamp(17px, 4.5vw, 22px);
    padding: 5px;
    box-shadow:
      0 24px 58px rgba(107, 94, 126, 0.15),
      0 0 46px rgba(191, 214, 236, 0.22),
      0 0 66px rgba(226, 189, 202, 0.28);
  }

  body[data-page="home"] .home-hero__mobile-avatar::before {
    inset: -38px;
    background:
      radial-gradient(circle at 35% 34%, rgba(191, 214, 236, 0.38), transparent 36%),
      radial-gradient(circle at 70% 42%, rgba(226, 189, 202, 0.46), transparent 40%),
      conic-gradient(from 90deg, rgba(191, 214, 236, 0), rgba(191, 214, 236, 0.38), rgba(226, 189, 202, 0.5), rgba(197, 189, 223, 0.44), rgba(220, 203, 150, 0.2), rgba(191, 214, 236, 0)),
      radial-gradient(circle, rgba(255, 253, 249, 0.42), rgba(255, 250, 246, 0) 66%);
    filter: blur(28px);
  }

  body[data-page="home"] .home-hero__mobile-avatar::after {
    inset: -12px;
    box-shadow:
      0 0 0 1px rgba(197, 189, 223, 0.22),
      0 0 32px rgba(226, 189, 202, 0.26);
  }

  body[data-page="home"] #home-music .home-music-embed__frame {
    border-width: 1px;
    border-color: var(--home-card-border);
    background: var(--home-card-surface);
    box-shadow: var(--home-card-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-wave-transition__layer {
    animation: none;
  }
}

/* Glass archive pass: profile / projects / bangumi / portal */
body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero {
  min-height: 0;
  padding: clamp(18px, 2.6vw, 30px) clamp(14px, 4vw, 32px) clamp(10px, 1.8vw, 18px);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero::before {
  content: none;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero__copy {
  max-width: 860px;
  gap: 6px;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero__lead {
  max-width: 52rem;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero__title {
  font-size: clamp(3rem, 5.2vw, 4.8rem);
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero__lead {
  margin-top: 2px;
  line-height: 1.74;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero__rule {
  height: 10px;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero__chips span {
  min-height: 28px;
  padding: 5px 11px;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) :is(.profile-card-group, .profile-journey, .projects-featured, .projects-secondary, .bangumi-recommend, .bangumi-board, .portal-registry) {
  position: relative;
  padding-inline: clamp(14px, 3vw, 28px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.02);
}

body[data-page="profile"] .profile-layout--cards > .profile-card-group.panel.panel--soft,
body[data-page="profile"] .profile-journey.panel.panel--soft {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 250, 246, 0.18)),
    radial-gradient(circle at 92% 8%, rgba(219, 232, 246, 0.18), transparent 30%);
  box-shadow:
    0 16px 36px rgba(70, 60, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) :is(.profile-card-group, .profile-journey, .projects-featured, .projects-secondary, .bangumi-recommend, .bangumi-board, .portal-registry)::before {
  content: none;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) :is(.profile-card-group, .profile-journey, .projects-featured, .projects-secondary, .bangumi-recommend, .bangumi-board, .portal-registry)::after {
  content: "";
  position: absolute;
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 130, 155, 0.22), transparent);
  pointer-events: none;
}

body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) :is(.profile-card-group, .profile-journey, .projects-featured, .projects-secondary, .bangumi-recommend, .bangumi-board, .portal-registry):last-child::after {
  content: none;
}

body[data-page="profile"] :is(.profile-card-group, .profile-journey)::after {
  content: none;
}

body[data-page="profile"] .page-section.panel--soft {
  margin-top: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="profile"] .page-section.panel--soft::before {
  content: none;
}

body[data-page="profile"] .page-hero__visual {
  margin: 0;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(91, 80, 106, 0.12);
}

body[data-page="profile"] .profile-layout {
  gap: clamp(24px, 4vw, 48px);
}

body[data-page="profile"] .profile-card-group {
  display: grid;
  align-content: start;
}

body[data-page="profile"] .profile-section-heading {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(140, 130, 155, 0.16);
}

body[data-page="profile"] .profile-info-grid {
  gap: 0;
}

body[data-page="profile"] .profile-info-card {
  min-height: 0;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="profile"] .profile-info-card + .profile-info-card {
  border-top: 1px solid rgba(140, 130, 155, 0.12);
}

body[data-page="profile"] .profile-info-card:nth-child(2n + 3) {
  padding-left: 18px;
  border-left: 1px solid rgba(140, 130, 155, 0.12);
}

body[data-page="profile"] .profile-info-card--wide {
  padding-left: 0;
  border-left: 0;
}

body[data-page="profile"] .profile-info-card__mark {
  min-width: 58px;
  min-height: 28px;
  padding: 4px 0;
  justify-content: flex-start;
  color: rgba(141, 120, 165, 0.78);
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-page="profile"] .profile-contact-grid {
  gap: 0;
}

body[data-page="profile"] .profile-contact-card {
  min-height: 74px;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="profile"] .profile-contact-card + .profile-contact-card {
  border-top: 1px solid rgba(140, 130, 155, 0.12);
}

body[data-page="profile"] .profile-contact-card:hover,
body[data-page="profile"] .profile-contact-card:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

body[data-page="profile"] .profile-contact-card__icon {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="profile"] .profile-journey {
  padding-block: 28px;
}

body[data-page="profile"] .profile-journey-list {
  gap: 0;
}

body[data-page="profile"] .profile-journey-list::before {
  left: 102px;
  background: linear-gradient(180deg, transparent, rgba(140, 130, 155, 0.28), transparent);
}

body[data-page="profile"] .profile-journey-item {
  min-height: 112px;
  padding: 20px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="profile"] .profile-journey-item + .profile-journey-item {
  border-top: 1px solid rgba(140, 130, 155, 0.12);
}

body[data-page="profile"] .profile-journey-item::before {
  left: 97px;
}

body[data-page="projects"] :is(.projects-featured, .projects-secondary) {
  padding-block: clamp(24px, 3.4vw, 38px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="projects"] .projects-featured {
  margin-top: 0;
}

body[data-page="projects"] .projects-secondary {
  margin-top: 18px;
}

body[data-page="projects"] .projects-featured .section-heading,
body[data-page="projects"] .projects-secondary .section-heading {
  max-width: 52rem;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(140, 130, 155, 0.16);
}

body[data-page="projects"] .projects-featured .project-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: stretch;
}

body[data-page="projects"] .projects-grid {
  gap: clamp(24px, 3vw, 38px);
}

body[data-page="projects"] .projects-grid > article,
body[data-page="projects"] .project-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="projects"] .projects-grid > article:hover,
body[data-page="projects"] .projects-grid > article:focus-within {
  padding: 0;
  border: 0;
  box-shadow: none;
}

body[data-page="projects"] .project-card {
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(12px, 1.4vw, 18px);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 250, 246, 0.1)),
    radial-gradient(circle at 90% 8%, rgba(219, 232, 246, 0.16), transparent 28%);
  box-shadow:
    0 12px 30px rgba(70, 60, 82, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  transition:
    transform var(--transition),
    filter var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

body[data-page="projects"] .project-card__cover {
  min-height: 300px;
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(70, 60, 82, 0.13);
}

body[data-page="projects"] .project-card--featured .project-card__cover {
  min-height: 390px;
}

body[data-page="projects"] .project-card__meta {
  top: clamp(18px, 1.8vw, 26px);
  right: clamp(18px, 1.8vw, 26px);
  left: clamp(18px, 1.8vw, 26px);
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

body[data-page="projects"] :is(.project-card__tag, .project-card__state) {
  max-width: min(100%, 18rem);
  min-width: 0;
  min-height: 34px;
  padding: 8px 14px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-page="projects"] .project-card__state {
  margin-left: auto;
}

body[data-page="projects"] .project-card__body {
  min-width: 0;
  gap: clamp(16px, 1.5vw, 22px);
  padding: clamp(8px, 1vw, 14px) clamp(10px, 1.4vw, 20px) clamp(12px, 1.6vw, 22px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="projects"] .project-card:hover,
body[data-page="projects"] .project-card:focus-visible,
body[data-page="projects"] .project-card:active,
body[data-page="projects"] .project-panel:hover .project-card,
body[data-page="projects"] .project-panel:focus-within .project-card {
  border-color: rgba(186, 165, 205, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 250, 246, 0.18)),
    radial-gradient(circle at 90% 8%, rgba(219, 232, 246, 0.2), transparent 30%);
  box-shadow:
    0 24px 52px rgba(70, 60, 82, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-page="projects"] .project-card:hover .project-card__body,
body[data-page="projects"] .project-card:focus-visible .project-card__body,
body[data-page="projects"] .project-panel:hover .project-card__body,
body[data-page="projects"] .project-panel:focus-within .project-card__body {
  padding: clamp(8px, 1vw, 14px) clamp(10px, 1.4vw, 20px) clamp(12px, 1.6vw, 22px);
  background: transparent;
  box-shadow: none;
}

body[data-page="projects"] .project-card__heading {
  min-width: 0;
  gap: 12px;
  padding-top: 0;
}

body[data-page="projects"] .project-card__body h3,
body[data-page="projects"] .project-card__heading p {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-page="projects"] .project-card__heading p:last-child {
  max-width: 34rem;
  line-height: 1.82;
}

body[data-page="projects"] .project-card__stack {
  width: auto;
  max-width: 100%;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0 2px 2px;
}

body[data-page="projects"] .project-card:hover .project-card__stack,
body[data-page="projects"] .project-card:focus-visible .project-card__stack,
body[data-page="projects"] .project-panel:hover .project-card__stack,
body[data-page="projects"] .project-panel:focus-within .project-card__stack {
  max-width: 100%;
  margin-left: 0;
  padding: 0 2px 2px;
}

body[data-page="projects"] .project-card__stack li {
  max-width: 100%;
  min-height: 34px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  line-height: 1.32;
  overflow-wrap: anywhere;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 680px) {
  body[data-page="projects"] .project-card {
    gap: 14px;
    padding: 10px;
    border-radius: 26px;
  }

  body[data-page="projects"] .project-card__cover {
    min-height: 230px;
    border-radius: 22px;
  }

  body[data-page="projects"] .project-card--featured .project-card__cover {
    min-height: 260px;
  }

  body[data-page="projects"] .project-card__meta {
    top: 14px;
    right: 14px;
    left: 14px;
    gap: 8px;
  }

  body[data-page="projects"] :is(.project-card__tag, .project-card__state) {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  body[data-page="projects"] .project-card__body,
  body[data-page="projects"] .project-card:hover .project-card__body,
  body[data-page="projects"] .project-card:focus-visible .project-card__body,
  body[data-page="projects"] .project-panel:hover .project-card__body,
  body[data-page="projects"] .project-panel:focus-within .project-card__body {
    gap: 14px;
    padding: 8px 12px 12px;
  }

  body[data-page="projects"] .project-card__body h3 {
    font-size: 1.54rem;
    line-height: 1.18;
  }

  body[data-page="projects"] .project-card__stack {
    gap: 7px;
    padding-inline: 0;
  }

  body[data-page="projects"] .project-card__stack li {
    min-height: 32px;
    padding: 6px 11px;
  }
}

body[data-page="bangumi"] .bangumi-recommend {
  margin-top: 0;
  padding-block: clamp(24px, 3vw, 34px);
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="bangumi"] .bangumi-recommend__head {
  border-bottom-color: rgba(140, 130, 155, 0.16);
}

body[data-page="bangumi"] .bangumi-recommend__grid {
  align-items: end;
}

body[data-page="bangumi"] .bangumi-recommend__item {
  padding: clamp(10px, 1.2vw, 14px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 250, 246, 0.18)),
    radial-gradient(circle at 92% 8%, rgba(219, 232, 246, 0.18), transparent 30%);
  box-shadow:
    0 18px 42px rgba(70, 60, 82, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

body[data-page="bangumi"] .bangumi-recommend__item.is-featured {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 250, 246, 0.24)),
    radial-gradient(circle at 92% 8%, rgba(240, 191, 71, 0.14), transparent 30%);
  box-shadow:
    0 24px 52px rgba(70, 60, 82, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-page="bangumi"] .bangumi-recommend__media {
  border-radius: 24px;
  box-shadow: 0 20px 42px rgba(62, 54, 72, 0.14);
}

body[data-page="bangumi"] .bangumi-recommend__copy {
  padding: 4px 4px 8px;
  overflow: visible;
}

body[data-page="bangumi"] .bangumi-recommend__copy h3 {
  overflow: visible;
  text-wrap: balance;
}

body[data-page="bangumi"] .bangumi-recommend__copy p {
  overflow: visible;
  line-height: 1.88;
}

body[data-page="bangumi"] .bangumi-shelf {
  margin-top: 18px;
  padding: clamp(24px, 3vw, 34px) clamp(14px, 3vw, 28px) 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="bangumi"] .bangumi-shelf-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(140, 130, 155, 0.16);
}

body[data-page="bangumi"] .shelf-meta span {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="bangumi"] .bangumi-tools {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 34px rgba(70, 60, 82, 0.07);
  backdrop-filter: blur(10px) saturate(1.02);
  -webkit-backdrop-filter: blur(10px) saturate(1.02);
}

body[data-page="bangumi"] .bangumi-tools__group {
  gap: 0;
  border-top: 1px solid rgba(150, 136, 166, 0.18);
  border-bottom: 1px solid rgba(150, 136, 166, 0.18);
}

body[data-page="bangumi"] .bangumi-tab {
  min-width: 92px;
  border: 0;
  border-left: 1px solid rgba(150, 136, 166, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="bangumi"] .bangumi-tools__group .bangumi-tab:first-child {
  border-left: 0;
}

body[data-page="bangumi"] .bangumi-tab:hover,
body[data-page="bangumi"] .bangumi-tab:focus-visible,
body[data-page="bangumi"] .bangumi-tab.is-active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body[data-page="bangumi"] .bangumi-search input {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="bangumi"] .lyric-dock,
body[data-page="bangumi"] .music-mini-toggle,
body[data-page="bangumi"] .chitanda-assistant,
body[data-page="bangumi"] .chitanda-assistant-mini {
  display: none !important;
}

body[data-page="bangumi"] .site-main {
  padding-bottom: 88px;
}

body[data-page="bangumi"] .site-footer {
  padding-bottom: 44px;
}

/* Series glass pass: ORIGIN and every page under the series navigation */
body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) {
  --series-glass-surface:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 250, 246, 0.14) 54%, rgba(241, 248, 250, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 42%, rgba(170, 154, 188, 0.08));
  --series-glass-surface-strong:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 250, 246, 0.18) 54%, rgba(241, 248, 250, 0.22)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 42%, rgba(170, 154, 188, 0.1));
  --series-glass-chip: rgba(255, 255, 255, 0.22);
  --series-glass-chip-strong: rgba(255, 255, 255, 0.32);
  --series-glass-border: rgba(255, 255, 255, 0.42);
  --series-glass-line: rgba(128, 114, 145, 0.16);
  --series-glass-shadow: 0 22px 52px rgba(72, 62, 88, 0.1);
}

body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) :is(.panel--soft, .panel--hero, .panel--list) {
  background: var(--series-glass-surface);
  border-color: var(--series-glass-border);
  box-shadow:
    var(--series-glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) :is(.archive-hero.series-archive-hero, .origin-switcher__shell, .origin-sidebar) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) :is(.archive-hero.series-archive-hero, .origin-switcher__shell, .origin-sidebar)::before {
  content: none;
}

body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) :is(.origin-sidebar__item, .origin-switcher__item) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) :is(.origin-sidebar__item:hover, .origin-sidebar__item:focus-visible, .origin-sidebar__item.is-active, .origin-switcher__item:hover, .origin-switcher__item:focus-visible, .origin-switcher__item.is-active) {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(186, 165, 205, 0.38);
  box-shadow: 0 12px 26px rgba(84, 67, 100, 0.08);
}

body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) :is(
  .encyclopedia-fact,
  .encyclopedia-card,
  .author-profile__essay,
  .author-profile__highlight,
  .author-profile__facts,
  .author-work-card,
  .author-awards__summary,
  .author-award-card__body,
  .studio-work-card,
  .studio-profile__logo-card,
  .staffcast-profile__copy,
  .staffcast-card,
  .staffcast-cast__row,
  .story-summary__fact,
  .story-summary__note,
  .story-summary__keywords span,
  .story-premise__card,
  .story-timeline__item,
  .story-character-card,
  .story-guide__item,
  .story-source-list a,
  .books-volume-card,
  .books-volume-card__meta span,
  .pilgrimage-card,
  .pilgrimage-summary__meta span,
  .pilgrimage-summary__note,
  .pilgrimage-route-tab,
  .pilgrimage-route-panel__detail,
  .pilgrimage-route-panel__attrs div,
  .pilgrimage-route-road,
  .pilgrimage-route-stop,
  .video-archive__card,
  .music-info-entry,
  .music-info-entry__facts div,
  .special-page .panel--soft
) {
  background: var(--series-glass-chip);
  border-color: var(--series-glass-border);
  box-shadow:
    0 14px 34px rgba(72, 62, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
}

body:is(
  [data-page="origin"],
  [data-page="story"],
  [data-page="character"],
  [data-page="books"],
  [data-page="author"],
  [data-page="studio"],
  [data-page="staffcast"],
  [data-page="staffprofile"],
  [data-page="episodes"],
  [data-page="episode"],
  [data-page="special"],
  [data-page="video"],
  [data-page="music"],
  [data-page="pilgrimage"]
) :is(.section-heading, .archive-hero__copy) {
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.66);
}

body:is([data-page="story"], [data-page="author"], [data-page="studio"], [data-page="staffcast"]) :is(.story-summary, .author-profile-section, .studio-profile-section, .staffcast-profile-section) {
  background: var(--series-glass-surface-strong);
}

body[data-page="story"] .story-summary::before,
body[data-page="author"] .author-profile-section::before,
body[data-page="studio"] .studio-profile-section::before,
body[data-page="staffcast"] .staffcast-profile-section::before {
  color: rgba(141, 120, 165, 0.42);
}

.origin-compact-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 52px);
  min-height: clamp(360px, 34vw, 500px);
  padding: clamp(30px, 4vw, 56px);
  border-radius: clamp(24px, 2.8vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(248, 244, 250, 0.18) 52%, rgba(224, 239, 238, 0.22)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(148, 125, 164, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 26px 62px rgba(72, 62, 88, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  overflow: hidden;
}

.origin-compact-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.origin-compact-card__copy,
.origin-compact-card__side {
  position: relative;
  z-index: 1;
}

.origin-compact-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.origin-compact-card__copy .eyebrow {
  margin: 0;
}

.origin-compact-card__copy h2 {
  max-width: 12em;
  margin: 0;
  color: rgba(69, 55, 83, 0.94);
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.origin-compact-card__intro,
.origin-compact-card__paragraphs p,
.origin-compact-card__note p {
  margin: 0;
  color: rgba(70, 62, 80, 0.78);
  font-size: clamp(0.96rem, 1vw, 1.08rem);
  line-height: 1.9;
}

.origin-compact-card__paragraphs {
  display: grid;
  gap: 10px;
  max-width: 48rem;
}

.origin-compact-card__note {
  display: grid;
  gap: 7px;
  max-width: 40rem;
  padding-left: 18px;
  border-left: 1px solid rgba(132, 116, 150, 0.22);
}

.origin-compact-card__note span {
  color: rgba(124, 92, 118, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.origin-compact-card__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.origin-compact-card__keywords span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(91, 76, 107, 0.78);
  font-size: 0.75rem;
  font-weight: 700;
}

.origin-compact-card__side {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.origin-compact-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(220px, 26vw, 340px);
  min-height: 220px;
  margin: 0;
  padding: clamp(10px, 1.8vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(242, 236, 242, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(87, 74, 92, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 18px 42px rgba(76, 63, 88, 0.1);
  overflow: hidden;
}

.origin-compact-card__visual img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  border-radius: 18px;
  object-fit: var(--origin-compact-fit, contain);
  object-position: var(--origin-compact-position, center center);
  box-shadow: 0 14px 34px rgba(69, 57, 82, 0.14);
}

.origin-compact-card--studio .origin-compact-card__visual {
  height: clamp(180px, 22vw, 260px);
  min-height: 180px;
  padding: clamp(26px, 4vw, 48px);
}

.origin-compact-card--studio .origin-compact-card__visual img {
  min-height: 0;
  box-shadow: none;
}

.origin-compact-card__visual figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(80, 68, 94, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
}

.origin-compact-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.origin-compact-card__fact {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.origin-compact-card__fact span {
  color: rgba(129, 105, 138, 0.74);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.origin-compact-card__fact strong {
  color: rgba(62, 53, 74, 0.9);
  font-size: 0.93rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .origin-compact-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .origin-compact-card__copy h2 {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .origin-compact-card__side {
    align-content: stretch;
  }

  .origin-compact-card__visual {
    height: clamp(190px, 48vw, 300px);
  }
}

@media (max-width: 760px) {
  .origin-compact-card {
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .origin-compact-card::before {
    inset: 10px;
  }

  .origin-compact-card__copy {
    gap: 13px;
    padding-top: 0;
  }

  .origin-compact-card__copy h2 {
    font-size: clamp(1.72rem, 9vw, 2.28rem);
  }

  .origin-compact-card__intro,
  .origin-compact-card__paragraphs p,
  .origin-compact-card__note p {
    font-size: 0.92rem;
    line-height: 1.78;
  }

  .origin-compact-card__visual {
    height: 190px;
    min-height: 180px;
    border-radius: 20px;
  }

  .origin-compact-card__visual img {
    min-height: 0;
  }

  .origin-compact-card__fact {
    min-height: 54px;
    border-radius: 14px;
  }

}

body[data-page="origin"] .origin-sidebar.origin-sidebar--series.panel.panel--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 249, 246, 0.22)),
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.5), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(191, 207, 231, 0.16), transparent 46%);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 16px 36px rgba(84, 67, 100, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px) saturate(1.02);
  -webkit-backdrop-filter: blur(10px) saturate(1.02);
}

body[data-page="origin"] .origin-series-panel--intro :is(
  .origin-encyclopedia-entry,
  .origin-summary-card,
  .origin-character-card,
  .origin-gallery,
  .origin-thanks-entry__card
) {
  border-color: rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 250, 246, 0.18)),
    radial-gradient(circle at 92% 8%, rgba(219, 232, 246, 0.18), transparent 30%);
  box-shadow:
    0 18px 42px rgba(70, 60, 82, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

body[data-page="origin"] .origin-sidebar--series .origin-sidebar__item.is-active::before {
  opacity: 0;
}

.origin-panel-body :is(
  .story-page--embedded,
  .character-page--embedded,
  .books-page--embedded,
  .author-page--embedded,
  .studio-page--embedded,
  .staffcast-page--embedded,
  .pilgrimage-page--embedded
) {
  max-width: none;
  margin: 0;
  padding-bottom: 0;
  gap: 22px;
}

.origin-panel-body :is(
  .story-page--embedded,
  .character-page--embedded,
  .books-page--embedded,
  .author-page--embedded,
  .studio-page--embedded,
  .staffcast-page--embedded,
  .pilgrimage-page--embedded
) > :first-child {
  margin-top: 0;
}

body[data-page="origin"] .origin-panel-body {
  --origin-subcard-glass-chip: rgba(255, 255, 255, 0.1);
  --origin-subcard-glass-chip-strong: rgba(255, 255, 255, 0.16);
  --origin-subcard-glass-border: rgba(113, 101, 131, 0.2);
  --origin-subcard-glass-line: rgba(113, 101, 131, 0.2);
  --origin-subcard-glass-shadow: none;
}

body[data-page="origin"] .origin-panel-body :is(.panel--soft, .panel--hero, .panel--list):not(.archive-hero),
body[data-page="origin"] .origin-panel-body .origin-compact-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

body[data-page="origin"] .origin-series-panel .archive-hero.panel--hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="origin"] .origin-series-panel .archive-hero.panel--hero::before {
  content: none;
}

body[data-page="origin"] .origin-panel-body > :not(.archive-hero) {
  position: relative;
  padding-block: clamp(20px, 3vw, 34px);
}

body[data-page="origin"] .origin-panel-body > :not(.archive-hero):not(:last-child)::after {
  content: "";
  position: absolute;
  left: clamp(10px, 2vw, 28px);
  right: clamp(10px, 2vw, 28px);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 130, 155, 0.22), transparent);
  pointer-events: none;
}

body[data-page="origin"] .origin-panel-body :is(.section-heading, .encyclopedia-section > .section-heading) {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--origin-subcard-glass-line);
}

body[data-page="origin"] .origin-panel-body :where(
  .origin-compact-card__visual,
  .origin-compact-card__fact,
  .character-switch,
  .character-switch__item,
  .character-title-card__line,
  .character-fact,
  .character-file__intro,
  .character-file__block,
  .character-impression-card,
  .character-summary-card,
  .character-portrait__plate,
  .gauge-item__bar,
  .origin-section-nav__item,
  .encyclopedia-fact,
  .encyclopedia-card,
  .author-profile__essay,
  .author-profile__highlight,
  .author-profile__facts,
  .author-work-card,
  .author-work-card__visual,
  .author-awards__summary,
  .author-award-card__body,
  .studio-profile__copy,
  .studio-profile__logo-card,
  .studio-work-card,
  .studio-work-card__visual,
  .studio-map-card__body,
  .studio-map-card__address,
  .studio-return-entry,
  .staffcast-profile__copy,
  .staffcast-card,
  .staffcast-cast__row,
  .story-summary__fact,
  .story-summary__note,
  .story-premise__card,
  .story-timeline__item,
  .story-character-card
) {
  background: var(--origin-subcard-glass-chip);
  border-color: var(--origin-subcard-glass-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="origin"] .origin-panel-body :where(
  .origin-compact-card__keywords span,
  .story-summary__keywords span,
  .story-guide__item,
  .story-source-list a
) {
  background: var(--origin-subcard-glass-chip);
  border-color: var(--origin-subcard-glass-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="origin"] .origin-panel-body .character-file .tag-cloud span,
body[data-page="origin"] .origin-panel-body .character-file__block--labels .meta-list__row,
body[data-page="origin"] .origin-panel-body .character-impression-card blockquote,
body[data-page="origin"] .origin-panel-body .character-impression-card dl div,
body[data-page="origin"] .origin-panel-body .character-summary-card__items span,
body[data-page="origin"] .origin-panel-body .author-work-card__year,
body[data-page="origin"] .origin-panel-body .author-work-card__tags span,
body[data-page="origin"] .origin-panel-body .studio-work-card__year,
body[data-page="origin"] .origin-panel-body .studio-map-card__link {
  background: var(--origin-subcard-glass-chip);
  border-color: var(--origin-subcard-glass-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="origin"] .origin-panel-body .character-page--embedded :where(
  .character-fact,
  .character-file__intro,
  .character-file__block,
  .character-impression-card,
  .character-summary-card
) {
  background: transparent;
  border-color: var(--origin-subcard-glass-border);
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

body[data-page="origin"] .origin-panel-body :where(
  .origin-compact-card__visual,
  .character-switch,
  .character-portrait__plate,
  .author-profile__facts,
  .studio-profile__logo-card,
  .studio-map-card__body,
  .studio-return-entry
) {
  background: var(--origin-subcard-glass-chip-strong);
}

body[data-page="origin"] .origin-panel-body .character-page--embedded :where(
  .character-switch,
  .character-portrait__plate
) {
  background: var(--origin-subcard-glass-chip-strong);
  backdrop-filter: blur(10px) saturate(1.02);
  -webkit-backdrop-filter: blur(10px) saturate(1.02);
}

body[data-page="origin"] .origin-panel-body :is(
  .character-switch__item:hover,
  .character-switch__item:focus-visible,
  .character-switch__item.is-active
) {
  background: var(--origin-subcard-glass-chip-strong);
  border-color: rgba(140, 130, 155, 0.24);
  box-shadow: none;
}

body[data-page="origin"] .origin-panel-body :is(
  .character-file .tag-cloud span:hover,
  .character-file .tag-cloud span:focus-visible
) {
  background: var(--origin-subcard-glass-chip-strong);
  border-color: rgba(140, 130, 155, 0.24);
  box-shadow: none;
}

body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 249, 246, 0.42)),
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.78), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(191, 207, 231, 0.2), transparent 46%);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 38px rgba(84, 67, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(138%);
  -webkit-backdrop-filter: blur(20px) saturate(138%);
}

body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 0 0, rgba(218, 231, 246, 0.28), transparent 42%);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item:hover,
body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item:focus-visible,
body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 251, 247, 0.52)),
    radial-gradient(circle at 0 0, rgba(218, 231, 246, 0.36), transparent 46%);
  border-color: rgba(186, 165, 205, 0.34);
  box-shadow: 0 10px 22px rgba(84, 67, 100, 0.08);
}

@media (min-width: 1391px) {
  body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch {
    top: max(96px, calc(50vh - 160px));
    left: min(calc(100vw - 206px), calc((100vw - 1240px) / 2 + 1254px));
    gap: 9px;
    width: 188px;
    padding: 10px;
    border-radius: 24px;
  }

  body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__eyebrow {
    padding: 3px 6px 1px;
    font-size: 0.64rem;
  }

  body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-content: stretch;
    gap: 10px;
    min-height: 54px;
    padding: 10px 11px;
    overflow: hidden;
  }

  body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item span {
    width: auto;
    height: auto;
    border-radius: 0;
    color: rgba(118, 104, 132, 0.5);
    background: transparent;
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1;
  }

  body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item strong {
    display: grid;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-serif);
    font-size: 0.94rem;
    line-height: 1.22;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch__item strong::before {
    content: attr(data-character-switch-subtitle);
    overflow: hidden;
    color: var(--ink-faint);
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

body[data-page="origin"] .origin-panel-body .character-file h3 {
  border-bottom-color: var(--origin-subcard-glass-line);
}

body[data-page="origin"] .origin-panel-body .origin-compact-card__visual figcaption {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
}

body[data-page="origin"] .origin-series-panel--books .books-volume-card {
  isolation: isolate;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="origin"] .origin-series-panel--books .books-volume-grid {
  gap: 0;
}

body[data-page="origin"] .origin-series-panel--books .books-volume-card + .books-volume-card {
  border-top: 1px solid var(--origin-subcard-glass-line);
}

body[data-page="origin"] .origin-series-panel--books .books-volume-card__meta span,
body[data-page="origin"] .origin-series-panel--books .books-volume-card__number {
  background: var(--origin-subcard-glass-chip);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 1390px) {
  body[data-page="origin"] .origin-panel-body .character-page--embedded .character-switch {
    position: static;
    top: auto;
    z-index: 1;
  }
}

@media (max-width: 760px) {
  body:is(
    [data-page="origin"],
    [data-page="story"],
    [data-page="character"],
    [data-page="books"],
    [data-page="author"],
    [data-page="studio"],
    [data-page="staffcast"],
    [data-page="staffprofile"],
    [data-page="episodes"],
    [data-page="episode"],
    [data-page="special"],
    [data-page="video"],
    [data-page="music"],
    [data-page="pilgrimage"]
  ) :is(.archive-hero.series-archive-hero, .origin-switcher__shell, .origin-sidebar) {
    backdrop-filter: blur(14px) saturate(1.02);
    -webkit-backdrop-filter: blur(14px) saturate(1.02);
  }

}

/* Compact standalone series nav */
.origin-switcher__shell--nav-only {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: clamp(12px, 1.6vw, 18px);
  border-radius: 24px;
  background: var(--series-glass-surface);
  border: 1px solid var(--series-glass-border);
  box-shadow:
    0 18px 42px rgba(72, 62, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.origin-switcher__shell--nav-only .origin-switcher__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: 0 4px 10px;
  border: 0;
  border-bottom: 1px solid var(--series-glass-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.origin-switcher__shell--nav-only .origin-switcher__head::before,
.origin-switcher__shell--nav-only .origin-switcher__head::after {
  content: none;
}

.origin-switcher__shell--nav-only .origin-switcher__head span {
  font-size: 0.68rem;
}

.origin-switcher__shell--nav-only .origin-switcher__head strong {
  font-size: 1.02rem;
}

.origin-switcher__shell--nav-only .origin-switcher__nav {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.origin-switcher__shell--nav-only .origin-switcher__item {
  min-height: 62px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.origin-switcher__shell--nav-only .origin-switcher__item:hover,
.origin-switcher__shell--nav-only .origin-switcher__item:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.origin-switcher__shell--nav-only .origin-switcher__item.is-active {
  background: rgba(255, 255, 255, 0.28);
}

.origin-switcher__shell--nav-only .origin-switcher__item::before {
  inset: auto 12px 0 40px;
  height: 2px;
  background: rgba(186, 165, 205, 0.22);
}

.origin-switcher__shell--nav-only .origin-switcher__item.is-active::before {
  background: rgba(174, 150, 199, 0.64);
}

.origin-switcher__shell--nav-only .origin-switcher__item b {
  width: 24px;
  font-size: 1rem;
}

.origin-switcher__shell--nav-only .origin-switcher__item strong {
  font-size: 0.94rem;
}

.origin-switcher__shell--nav-only .origin-switcher__item small {
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .origin-switcher__shell--nav-only {
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .origin-switcher__shell--nav-only .origin-switcher__head {
    padding: 0 2px 8px;
  }

  .origin-switcher__shell--nav-only .origin-switcher__head strong {
    font-size: 0.92rem;
  }

  .origin-switcher__shell--nav-only .origin-switcher__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .origin-switcher__shell--nav-only .origin-switcher__nav::-webkit-scrollbar {
    display: none;
  }

  .origin-switcher__shell--nav-only .origin-switcher__item {
    flex: 0 0 min(62vw, 170px);
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    scroll-snap-align: start;
  }

  .origin-switcher__shell--nav-only .origin-switcher__item b {
    width: 22px;
    font-size: 0.95rem;
  }

  .origin-switcher__shell--nav-only .origin-switcher__item small {
    display: none;
  }
}

body[data-page="bangumi"] .bangumi-grid {
  gap: clamp(22px, 3vw, 36px);
}

body[data-page="bangumi"] .bangumi-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="bangumi"] .bangumi-card::before {
  content: none;
}

body[data-page="bangumi"] .bangumi-card:hover,
body[data-page="bangumi"] .bangumi-card:focus-visible {
  box-shadow: none;
}

body[data-page="bangumi"] .bangumi-card__cover {
  border-radius: 24px;
  box-shadow: 0 20px 42px rgba(62, 54, 72, 0.12);
}

body[data-page="bangumi"] .bangumi-card__body {
  padding: 14px 0 0;
}

body[data-page="bangumi"] .bangumi-card__index,
body[data-page="bangumi"] .bangumi-card__tags span {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

body[data-page="bangumi"] .bangumi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(26px, 3.4vw, 44px);
}

body[data-page="bangumi"] .bangumi-card {
  --bangumi-card-peek-height: 76px;
  position: relative;
  display: block;
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 0.77;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  color: #fff;
  background: transparent;
  box-shadow:
    0 18px 42px rgba(38, 32, 48, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform-origin: center bottom;
}

body[data-page="bangumi"] .bangumi-card::before {
  content: none;
}

body[data-page="bangumi"] .bangumi-card:hover,
body[data-page="bangumi"] .bangumi-card:focus-visible,
body[data-page="bangumi"] .bangumi-card.is-peek-open {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 58px rgba(38, 32, 48, 0.28),
    0 0 16px rgba(255, 255, 255, 0.14);
}

body[data-page="bangumi"] .bangumi-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  border-radius: inherit;
  box-shadow: none;
}

body[data-page="bangumi"] .bangumi-card__cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.012);
  transition:
    transform 720ms var(--motion-ease-soft),
    filter 720ms var(--motion-ease-soft);
}

body[data-page="bangumi"] .bangumi-card:hover .bangumi-card__cover img,
body[data-page="bangumi"] .bangumi-card:focus-visible .bangumi-card__cover img,
body[data-page="bangumi"] .bangumi-card.is-peek-open .bangumi-card__cover img {
  transform: scale(1.03);
  filter: blur(3px);
}

body[data-page="bangumi"] .bangumi-card__cover-shade {
  background: linear-gradient(180deg, transparent 30%, rgba(84, 82, 90, 0.38));
  opacity: 0.86;
}

body[data-page="bangumi"] .bangumi-card:hover .bangumi-card__cover-shade,
body[data-page="bangumi"] .bangumi-card:focus-visible .bangumi-card__cover-shade,
body[data-page="bangumi"] .bangumi-card.is-peek-open .bangumi-card__cover-shade {
  opacity: 0.94;
}

body[data-page="bangumi"] .bangumi-card__state {
  left: 12px;
  right: auto;
  top: 12px;
  bottom: auto;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(20, 16, 26, 0.42);
}

body[data-page="bangumi"] .bangumi-card__play {
  right: 12px;
  top: 12px;
  bottom: auto;
  display: block;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 14px 28px rgba(20, 16, 26, 0.16);
}

body[data-page="bangumi"] .bangumi-card__play::before {
  left: 12px;
  top: 9px;
  border-left-color: rgba(255, 255, 255, 0.9);
}

body[data-page="bangumi"] .bangumi-card__body {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  height: auto;
  max-height: 62%;
  overflow: hidden;
  padding: 16px 18px 14px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(47, 40, 57, 0.54), rgba(24, 20, 30, 0.68)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 36%);
  border: 0;
  backdrop-filter: blur(16px) saturate(1.04);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  transform: translateY(calc(100% - var(--bangumi-card-peek-height)));
  transition: transform 1s var(--motion-ease-soft);
}

body[data-page="bangumi"] .bangumi-card:hover .bangumi-card__body,
body[data-page="bangumi"] .bangumi-card:focus-visible .bangumi-card__body,
body[data-page="bangumi"] .bangumi-card.is-peek-open .bangumi-card__body {
  transform: translateY(0);
}

body[data-page="bangumi"] .bangumi-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

body[data-page="bangumi"] .bangumi-card__index {
  display: none;
}

body[data-page="bangumi"] .bangumi-card__state,
body[data-page="bangumi"] .bangumi-card__tags {
  display: none !important;
}

body[data-page="bangumi"] .bangumi-card__head h3 {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.04rem, 1.6vw, 1.34rem);
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(20, 16, 26, 0.48);
}

body[data-page="bangumi"] .bangumi-card__meta {
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 5px rgba(20, 16, 26, 0.36);
}

body[data-page="bangumi"] .bangumi-card__progress {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.42);
}

body[data-page="bangumi"] .bangumi-card__progress span {
  display: block;
  width: var(--bangumi-progress, 24%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(220, 20, 60, 0.95), rgba(207, 160, 255, 0.88));
}

body[data-page="bangumi"] .bangumi-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.62;
  min-height: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 440ms var(--motion-ease-standard) 90ms,
    transform 440ms var(--motion-ease-soft) 90ms;
  -webkit-line-clamp: 5;
}

body[data-page="bangumi"] .bangumi-card:hover .bangumi-card__summary,
body[data-page="bangumi"] .bangumi-card:focus-visible .bangumi-card__summary,
body[data-page="bangumi"] .bangumi-card.is-peek-open .bangumi-card__summary {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="bangumi"] .bangumi-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 440ms var(--motion-ease-standard) 130ms,
    transform 440ms var(--motion-ease-soft) 130ms;
}

body[data-page="bangumi"] .bangumi-card:hover .bangumi-card__tags,
body[data-page="bangumi"] .bangumi-card:focus-visible .bangumi-card__tags,
body[data-page="bangumi"] .bangumi-card.is-peek-open .bangumi-card__tags {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="bangumi"] .bangumi-card__tags span {
  min-height: 26px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="portal"] .portal-registry {
  gap: clamp(24px, 3vw, 34px);
  margin-top: 0;
  padding-block: clamp(24px, 3vw, 38px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="portal"] .portal-registry__head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(140, 130, 155, 0.16);
}

body[data-page="portal"] .members-grid {
  gap: clamp(24px, 3vw, 38px);
}

body[data-page="portal"] .member-card {
  padding: clamp(10px, 1.2vw, 14px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 250, 246, 0.18)),
    radial-gradient(circle at 92% 8%, rgba(219, 232, 246, 0.18), transparent 30%);
  box-shadow:
    0 18px 42px rgba(70, 60, 82, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.02);
}

body[data-page="portal"] .member-card::before {
  content: none;
}

body[data-page="portal"] .member-card:hover,
body[data-page="portal"] .member-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 24px 52px rgba(70, 60, 82, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-page="portal"] .member-card__cover {
  height: clamp(170px, 16vw, 220px);
  max-height: none;
  margin: 0;
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(70, 60, 82, 0.13);
}

body[data-page="portal"] .member-card__body {
  padding: 16px 4px 4px;
}

body[data-page="portal"] .member-card__avatar {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 26px rgba(82, 70, 98, 0.16);
}

body[data-page="portal"] .member-card__facts {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

body[data-page="portal"] .member-card__fact + .member-card__fact {
  border-top: 1px solid rgba(140, 130, 155, 0.12);
}

body[data-page="portal"] .member-card__chips span {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="portal"] .portal-registry__closing {
  padding-top: 4px;
}

@media (max-width: 980px) {
  body[data-page="projects"] .projects-featured .project-card--featured {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .profile-info-card:nth-child(2n + 3) {
    padding-left: 0;
    border-left: 0;
  }

  body[data-page="bangumi"] .bangumi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero {
    padding: 26px 10px 14px;
  }

  body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) :is(.profile-card-group, .profile-journey, .projects-featured, .projects-secondary, .bangumi-recommend, .bangumi-board, .portal-registry) {
    padding-inline: 14px;
  }

  body[data-page="profile"] .page-section.panel--soft {
    padding: 0;
  }

  body[data-page="profile"] .page-hero__visual {
    border-radius: 24px;
  }

  body[data-page="profile"] .profile-layout {
    gap: 18px;
  }

  body[data-page="profile"] .profile-section-heading {
    margin-bottom: 12px;
    padding-bottom: 14px;
  }

  body[data-page="profile"] .profile-info-card,
  body[data-page="profile"] .profile-contact-card,
  body[data-page="profile"] .profile-journey-item {
    padding-block: 14px;
  }

  body[data-page="profile"] .profile-journey-list::before,
  body[data-page="profile"] .profile-journey-item::before {
    display: none;
  }

  body[data-page="projects"] .projects-featured,
  body[data-page="projects"] .projects-secondary {
    padding-block: 22px;
  }

  body[data-page="projects"] .projects-featured .section-heading,
  body[data-page="projects"] .projects-secondary .section-heading {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  body[data-page="projects"] .project-card__cover,
  body[data-page="projects"] .projects-grid .project-card__cover {
    min-height: 246px;
    border-radius: 24px;
  }

  body[data-page="projects"] .project-card--featured .project-card__cover {
    min-height: 300px;
  }

  body[data-page="bangumi"] .bangumi-recommend {
    padding: 22px 14px;
  }

  body[data-page="bangumi"] .bangumi-recommend__grid {
    gap: 10px;
  }

  body[data-page="bangumi"] .bangumi-recommend__media {
    border-radius: 18px;
  }

  body[data-page="bangumi"] .bangumi-recommend__copy {
    padding: 8px 2px 3px;
  }

  body[data-page="bangumi"] .bangumi-recommend__copy h3,
  body[data-page="bangumi"] .bangumi-recommend__item.is-featured .bangumi-recommend__copy h3 {
    display: block;
    overflow: visible;
    white-space: normal;
    -webkit-line-clamp: unset;
  }

  body[data-page="bangumi"] .bangumi-shelf {
    padding: 22px 14px 18px;
  }

  body[data-page="bangumi"] .bangumi-tools {
    padding: 12px 0 14px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="bangumi"] .bangumi-tools__group {
    width: 100%;
  }

  body[data-page="bangumi"] .bangumi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-page="bangumi"] .bangumi-card {
    --bangumi-card-peek-height: 64px;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
  }

  body[data-page="bangumi"] .bangumi-card__cover {
    border-radius: inherit;
    box-shadow: none;
  }

  body[data-page="bangumi"] .bangumi-card__body {
    gap: 8px;
    height: auto;
    max-height: 64%;
    padding: 12px 11px 10px;
    transform: translateY(calc(100% - var(--bangumi-card-peek-height)));
  }

  body[data-page="bangumi"] .bangumi-card:hover .bangumi-card__body,
  body[data-page="bangumi"] .bangumi-card:focus-visible .bangumi-card__body,
  body[data-page="bangumi"] .bangumi-card.is-peek-open .bangumi-card__body {
    transform: translateY(0);
  }

  body[data-page="bangumi"] .bangumi-card__state {
    left: 8px;
    top: 8px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  body[data-page="bangumi"] .bangumi-card__cover-shade {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.34));
  }

  body[data-page="bangumi"] .bangumi-card__play {
    display: none;
  }

  body[data-page="bangumi"] .bangumi-card__head {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="bangumi"] .bangumi-card__index {
    display: none;
  }

  body[data-page="bangumi"] .bangumi-card__head h3 {
    display: block;
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body[data-page="bangumi"] .bangumi-card__meta {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.64rem;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  body[data-page="bangumi"] .bangumi-card__progress {
    height: 4px;
  }

  body[data-page="bangumi"] .bangumi-card__summary {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.5;
    -webkit-line-clamp: 4;
  }

  body[data-page="bangumi"] .bangumi-card__tags {
    display: none;
  }

  body[data-page="portal"] .portal-registry {
    padding-block: 22px;
  }

  body[data-page="portal"] .portal-registry__head {
    padding-bottom: 14px;
  }

  body[data-page="portal"] .member-card__cover {
    height: clamp(150px, 42vw, 180px);
    min-height: 150px;
    border-radius: 24px;
  }

  body[data-page="portal"] .member-card__content {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) .archive-hero {
    padding: 24px 8px 12px;
  }

  body:is([data-page="profile"], [data-page="projects"], [data-page="bangumi"], [data-page="portal"]) :is(.profile-card-group, .profile-journey, .projects-featured, .projects-secondary, .bangumi-recommend, .bangumi-board, .portal-registry) {
    padding-inline: 10px;
  }

  body[data-page="profile"] .profile-layout {
    gap: 14px;
  }

  body[data-page="profile"] .profile-card-group,
  body[data-page="profile"] .profile-journey {
    border-radius: 24px;
  }

  body[data-page="profile"] .profile-info-card {
    grid-template-columns: minmax(42px, auto) minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="profile"] .profile-contact-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  body[data-page="projects"] .project-card {
    gap: 12px;
    padding: 8px;
    border-radius: 22px;
  }

  body[data-page="projects"] .project-card__cover,
  body[data-page="projects"] .projects-grid .project-card__cover {
    min-height: 220px;
    border-radius: 20px;
  }

  body[data-page="projects"] .project-card--featured .project-card__cover {
    min-height: 240px;
  }

  body[data-page="projects"] .project-card__meta {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  body[data-page="projects"] .project-card__body,
  body[data-page="projects"] .project-card:hover .project-card__body,
  body[data-page="projects"] .project-card:focus-visible .project-card__body,
  body[data-page="projects"] .project-panel:hover .project-card__body,
  body[data-page="projects"] .project-panel:focus-within .project-card__body {
    padding: 6px 10px 10px;
  }

  body[data-page="projects"] .project-card__body h3 {
    font-size: clamp(1.34rem, 7vw, 1.5rem);
  }

  body[data-page="bangumi"] .bangumi-recommend,
  body[data-page="bangumi"] .bangumi-shelf {
    padding-inline: 10px;
  }

  body[data-page="bangumi"] .bangumi-recommend__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  body[data-page="bangumi"] .bangumi-recommend__item,
  body[data-page="bangumi"] .bangumi-recommend__item.is-featured {
    margin-block: 0;
    padding: 8px;
    border-radius: 18px;
  }

  body[data-page="bangumi"] .bangumi-recommend__item:nth-child(3) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    align-items: center;
  }

  body[data-page="bangumi"] .bangumi-recommend__media {
    border-radius: 14px;
  }

  body[data-page="bangumi"] .bangumi-recommend__item:nth-child(3) .bangumi-recommend__copy {
    justify-items: start;
    padding: 0;
    text-align: left;
  }

  body[data-page="bangumi"] .bangumi-recommend__copy h3 {
    font-size: clamp(0.9rem, 4.2vw, 1.05rem);
    line-height: 1.2;
  }

  body[data-page="bangumi"] .bangumi-recommend__item:nth-child(3) .bangumi-recommend__copy h3 {
    text-align: left;
  }

  body[data-page="bangumi"] .bangumi-grid {
    gap: 10px;
  }

  body[data-page="bangumi"] .bangumi-card {
    --bangumi-card-peek-height: 58px;
    border-radius: 16px;
  }

  body[data-page="bangumi"] .bangumi-card__body {
    padding: 10px 9px 9px;
  }

  body[data-page="bangumi"] .bangumi-card__head h3 {
    font-size: clamp(0.78rem, 3.6vw, 0.9rem);
  }

  body[data-page="portal"] .portal-registry {
    padding-block: 18px;
  }

  body[data-page="portal"] .members-grid {
    gap: 18px;
  }

  body[data-page="portal"] .member-card {
    padding: 8px;
    border-radius: 22px;
  }

  body[data-page="portal"] .member-card__cover {
    height: clamp(136px, 42vw, 168px);
    min-height: 136px;
    border-radius: 18px;
  }

  body[data-page="portal"] .member-card__body {
    padding: 14px 2px 2px;
  }

  body[data-page="portal"] .member-card__facts {
    padding: 12px 13px;
  }
}

@media (max-width: 360px) {
  body[data-page="bangumi"] .bangumi-tools__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="bangumi"] .bangumi-tab {
    min-width: 0;
  }

  .origin-switcher__shell--nav-only .origin-switcher__nav,
  body[data-page="origin"] .origin-sidebar__list {
    grid-auto-columns: minmax(126px, 42vw);
  }

  body[data-page="origin"] .origin-sidebar__item {
    flex-basis: 136px;
  }

  .origin-switcher__shell--nav-only .origin-switcher__item,
  body[data-page="origin"] .origin-sidebar__item {
    min-height: 56px;
    padding-inline: 10px;
  }
}
