:root {
  color-scheme: dark;
  --bg: #090d18;
  --bg-deep: #06090f;
  --bg-2: #0d1322;
  --surface: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  --surface-solid: #0f1626;
  --ink: #eef1f5;
  --ink-2: #c5cdd8;
  --muted: #8f9bad;
  --wind: #7fe3cf;
  --wind-strong: #a6f3e2;
  --wind-soft: rgba(127, 227, 207, .12);
  --gold: #d9b878;
  --gold-soft: rgba(217, 184, 120, .32);
  --violet: #b4a6f5;
  --line: rgba(196, 212, 235, .09);
  --line-strong: rgba(196, 212, 235, .17);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --pill: 999px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -28px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Noto Serif CJK SC", "Songti SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --header: 74px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); scrollbar-color: #2a3550 transparent; scrollbar-width: thin; }
body {
  margin: 0;
  background:
    radial-gradient(60vw 50vw at 0% 0%, rgba(80, 70, 170, .16), transparent 60%),
    radial-gradient(50vw 40vw at 100% 30%, rgba(60, 180, 170, .09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 1rem/1.8 var(--sans);
  letter-spacing: .02em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--wind); outline-offset: 5px; }
::selection { background: var(--wind); color: var(--bg); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: 12px; left: 16px; transform: translateY(-150%); z-index: 10; background: var(--wind); color: var(--bg); padding: .65rem 1rem; border-radius: var(--r-sm); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 112px, 1216px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(9, 13, 24, .68);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner { width: min(100% - 112px, 1280px); height: calc(var(--header) - 1px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.75rem; }
.brand { display: flex; width: max-content; align-items: center; gap: .75rem; font: 700 1.13rem/1.35 var(--serif); letter-spacing: .1em; }
.brand small { display: block; color: var(--muted); font: 400 .75rem/1.5 var(--sans); letter-spacing: .12em; }
.brand-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gold-soft); border-radius: 12px; color: var(--wind); background: linear-gradient(145deg, #16243a, #0e1626); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.brand-icon svg { width: 24px; height: 24px; }
#nav { align-self: stretch; display: flex; align-items: stretch; gap: clamp(.85rem, 2.45vw, 2.15rem); }
#nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: .9375rem; white-space: nowrap; letter-spacing: .1em; transition: color .2s var(--ease); }
#nav a:hover, #nav a[aria-current] { color: var(--ink); }
#nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 5px;
  height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(217, 184, 120, .75);
}
.header-actions { justify-self: end; display: flex; gap: .5rem; }
.menu, .icon-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .3rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.menu svg { height: 18px; width: 18px; }
.menu:hover, .icon-button:hover { color: var(--wind); border-color: rgba(127, 227, 207, .45); background: var(--wind-soft); }
.menu { display: none; min-width: 42px; }

.hero { isolation: isolate; position: relative; overflow: hidden; display: grid; background: var(--bg); }
.hero-sky, .hero-sky::after, #wind-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-sky { z-index: -3; background: #0b1624 url("valley.webp") center 54% / cover no-repeat; }
.hero-sky::after { content: ""; background: linear-gradient(0deg, #090d18 1%, rgba(9, 13, 24, 0) 36%, rgba(9, 13, 24, 0) 78%, rgba(9, 13, 24, .28)), linear-gradient(90deg, rgba(9, 13, 24, .97), rgba(9, 13, 24, .75) 30%, rgba(9, 13, 24, .25) 63%, rgba(9, 13, 24, .25) 100%); }
#wind-field { z-index: 2; }
.hero-inner { min-height: clamp(650px, calc(100svh - var(--header)), 900px); display: grid; align-items: center; position: relative; padding-block: 50px 100px; }
.hero-copy { position: relative; z-index: 3; width: max-content; max-width: 100%; }
.kicker { margin: 0 0 .95rem; display: flex; align-items: center; gap: .7rem; color: var(--gold); font-size: .875rem; font-weight: 600; letter-spacing: .27em; }
.kicker > span { width: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); position: relative; }
.kicker > span::before { content: ""; position: absolute; width: 5px; height: 5px; background: var(--gold); right: 0; top: -2px; transform: rotate(45deg); box-shadow: 0 0 8px var(--gold-soft); }
h1, h2, h3, blockquote { font-family: var(--serif); }
.hero h1, body:not(.page-home) main h1, .section-head h2 {
  background: linear-gradient(180deg, #fff 30%, #c9d6e2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 { margin: 0; font-size: clamp(5rem, 9.2vw, 9.25rem); font-weight: 700; letter-spacing: .05em; line-height: 1.16; filter: drop-shadow(0 6px 30px rgba(9, 13, 24, .6)); }
h1 span { display: block; margin: .2rem 0 0 .36em; font: 400 clamp(.83rem, 1.45vw, 1.15rem)/1.4 Georgia, serif; letter-spacing: .6em; color: #d9c08e; -webkit-text-fill-color: #d9c08e; background: none; }
.hero-lede { color: var(--ink-2); margin: 1.65rem 0 1.8rem; line-height: 1.9; font-size: clamp(1rem, 1.6vw, 1.125rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button {
  min-height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-weight: 650;
  font-size: .9375rem;
  line-height: 1.5;
  transition: transform .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 20px; height: 20px; }
.button-primary { background: linear-gradient(135deg, #a6f3e2, #6fd6c2); color: #06231d; box-shadow: 0 8px 24px -10px rgba(111, 214, 194, .6); }
.button-primary:hover { background: linear-gradient(135deg, #bcfff0, #85e4d1); box-shadow: 0 12px 30px -8px rgba(111, 214, 194, .75); }
.button-ghost { color: var(--ink); background: rgba(255, 255, 255, .04); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.button-ghost:hover { background: var(--wind-soft); border-color: var(--wind); }

.hero-art { position: absolute; inset: 0 -4% 68px 38%; pointer-events: none; }
.portrait-layer { position: absolute; inset: 6% 2% 4% 2%; display: flex; justify-content: center; transform: translate(var(--portrait-x, 0px), var(--portrait-y, 0px)); transition: transform .45s ease-out; }
.portrait-layer img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(5, 11, 25, .82)) drop-shadow(0 0 24px rgba(115, 245, 230, .28)); }
.orbital { position: absolute; inset: 5% 2%; display: grid; place-items: center; }
.orbital::before { content: ""; position: absolute; width: min(87%, 600px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(167, 255, 237, .22); box-shadow: inset 0 0 56px rgba(99, 232, 207, .07), 0 0 45px rgba(99, 232, 207, .12); background: radial-gradient(circle at 55% 52%, rgba(135, 246, 224, .2), transparent 64%); }
.orbital i { position: absolute; border-radius: 50%; width: min(104%, 760px); aspect-ratio: 2.5; border: 1px solid rgba(167, 255, 237, .32); transform: rotate(-28deg); box-shadow: 0 4px 15px rgba(128, 228, 208, .12); }
.orbital i:nth-child(2) { width: min(95%, 674px); transform: rotate(-33deg); border-color: var(--gold-soft); }
.hero-foot { z-index: 3; position: absolute; bottom: 0; left: 0; right: 0; min-height: 68px; border-top: 1px solid transparent; background-image: linear-gradient(90deg, transparent, var(--gold-soft) 18%, var(--gold-soft) 82%, transparent); background-size: 100% 1px; background-position: 0 0; background-repeat: no-repeat; display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); }
.hero-meta, .scroll-link { display: flex; align-items: center; gap: .75rem; font-size: .875rem; letter-spacing: .1em; }
.hero-meta svg { color: var(--wind); }
.hero-meta i { width: 4px; height: 4px; background: var(--gold); opacity: .75; transform: rotate(45deg); }
.scroll-link span { height: 19px; width: 1px; background: var(--wind); }
.scroll-link:hover { color: var(--wind); }

.section { padding-block: clamp(4rem, 8.1vw, 7rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .7rem 2rem; margin-bottom: 2.25rem; }
.section-head p:not(.kicker) { margin: 0 0 .25rem; color: var(--ink-2); max-width: 38ch; }
h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.27; letter-spacing: .065em; }
h3 { margin: 0; font-size: 1.42rem; line-height: 1.5; }
.story { background: radial-gradient(ellipse at 20% 65%, rgba(16, 30, 50, .55) 0%, transparent 52%); }
details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
summary { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; padding: .85rem 1.1rem; cursor: pointer; list-style: none; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font: 500 1.25rem/1 monospace; color: var(--gold); }
details[open] > summary::after { content: "−"; }
summary:hover { color: var(--wind); }
summary small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.text-link {
  color: var(--wind);
  text-decoration: none;
  font-size: .9375rem;
  background-image: linear-gradient(color-mix(in srgb, currentColor 40%, transparent), color-mix(in srgb, currentColor 40%, transparent));
  background-position: 0 100%;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  padding-bottom: .16em;
  transition: color .2s var(--ease), background-image .2s var(--ease);
}
.text-link:hover {
  color: var(--wind-strong);
  background-image: linear-gradient(currentColor, currentColor);
}

.talents { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 82% 18%, rgba(127, 227, 207, .07), transparent 52%); }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.film {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface), var(--surface-solid);
  box-shadow: var(--shadow);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.film-image { position: relative; overflow: hidden; background: #101929; }
.film img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: scale .45s var(--ease); }
.film-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 13, 24, .75), transparent 60%); pointer-events: none; }
.film:hover { border-color: rgba(127, 227, 207, .35); transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 28px 54px -24px rgba(0, 0, 0, .88); }
.film:hover img { scale: 1.035; }
.play-icon {
  z-index: 1;
  position: absolute;
  bottom: .9rem;
  left: 1rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--ink);
  background: rgba(9, 13, 24, .55);
  backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.film:hover .play-icon { transform: scale(1.08); border-color: var(--wind); color: var(--wind); background: rgba(9, 13, 24, .78); }
.film-copy { padding: 1.05rem 1.25rem 1.2rem; }
.film-copy small { color: var(--gold); }
.film-copy p { color: var(--muted); margin: .25rem 0 0; }

.letter { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; background: linear-gradient(0deg, rgba(9, 13, 24, .88), rgba(9, 13, 24, .42) 56%, rgba(9, 13, 24, .88)), #112033 url("valley.webp") center 56% / cover; border-block: 1px solid var(--line); }
.letter-inner > svg { width: 31px; height: 31px; color: var(--gold); margin-bottom: .7rem; }
.letter p { margin: .85rem 0 1.25rem; color: var(--ink-2); }
.site-footer { position: relative; z-index: 1; background: var(--bg-deep); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); pointer-events: none; }
.footer-inner { padding-block: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.footer-brand { font: 700 1.05rem/1.5 var(--serif); letter-spacing: .12em; }
.footer-inner p { margin: .25rem 0 0; font-size: .875rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.15rem; font-size: .875rem; white-space: nowrap; color: var(--ink-2); }
.footer-links a:hover { color: var(--wind); }

dialog {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  border: 1px solid rgba(127, 227, 207, .25);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 4vw, 1.75rem);
  color: var(--ink);
  background: linear-gradient(180deg, #121b2e, #0c1322);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 32px 72px -20px rgba(0, 0, 0, .9);
}
dialog::backdrop { background: rgba(3, 6, 14, .75); backdrop-filter: blur(6px); }
.dialog-top, .dialog-actions, .letter-info { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.dialog-top h2 { font-size: 1.75rem; color: var(--ink); }
.dialog-actions { justify-content: end; flex-wrap: wrap; margin-top: .85rem; }
.dialog-actions button:disabled { opacity: .5; cursor: default; transform: none; }
dialog p { color: var(--muted); margin: .65rem 0 .85rem; }
textarea { display: block; width: 100%; min-height: 120px; resize: vertical; padding: .85rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(0, 0, 0, .22); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
textarea:focus, #public-name:focus { outline: none; border-color: var(--wind); box-shadow: 0 0 0 3px var(--wind-soft); }
.letter-info { margin-top: .35rem; align-items: baseline; font-size: .875rem; color: var(--muted); }
#letter-status { color: var(--wind); }
#letter-count { white-space: nowrap; }
.visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

@media (max-width: 880px) {
  .wrap, .header-inner { width: calc(100% - 64px); }
  .hero-inner { min-height: clamp(600px, calc(100svh - var(--header)), 800px); }
  .hero-art { left: 35%; right: -9%; }
  .portrait-layer { inset-inline: 0; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 640px) {
  :root { --header: 62px; }
  .wrap, .header-inner { width: calc(100% - 36px); }
  .hero-inner { min-height: 0; padding-block: 0; grid-template-rows: clamp(300px, 88vw, 470px) auto auto; }
  .hero-art { grid-row: 1; position: relative; inset: auto; margin-inline: -18px; height: 100%; }
  .portrait-layer { inset: 5% 1% 7%; }
  .orbital { inset: 4% 5%; }
  .orbital::before { width: min(70%, 360px); }
  .hero-sky { background-position: 60% top; background-size: auto max(520px, 133vw); }
  .hero-sky::after { background: linear-gradient(0deg, #090d18 3%, #090d18 23%, rgba(9, 13, 24, 0) 64%, rgba(9, 13, 24, .22)); }
  .hero-copy { margin: -1.4rem 0 1.5rem; }
  h1 { font-size: clamp(3.45rem, 13vw, 5.5rem); }
  .hero-lede { margin-block: .95rem 1.1rem; }
  .hero-copy .kicker { margin-bottom: .35rem; }
  .hero-foot { position: static; min-height: 56px; gap: .5rem; }
  .hero-meta, .scroll-link { gap: .42rem; font-size: .8125rem; letter-spacing: .04em; }
  .hero-meta svg { width: 19px; height: 19px; }
  .section-head { margin-bottom: 1.35rem; }
  .footer-inner { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.media-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.media-bar:has(.film-filters[hidden]) { display: none; }
.media-bar p { margin: 0; color: var(--muted); font-size: .875rem; }
.film-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.film-filters button {
  min-height: 40px;
  padding: .35rem .95rem;
  background: var(--surface), rgba(15, 22, 38, .65);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--muted);
  font-size: .875rem;
  backdrop-filter: blur(6px);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.film-filters button:hover, .film-filters button[aria-pressed="true"] { border-color: rgba(127, 227, 207, .5); color: var(--wind); }
.film-filters button[aria-pressed="true"] { background: var(--wind-soft); }
.media-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.media-grid > .film { grid-column: span 2; }
.media-grid[data-view="all"] > .film:is(:nth-child(-n+2), :nth-last-child(-n+2)),
.media-grid:is([data-view="character"], [data-view="cutscene"]) > .film { grid-column: span 3; }
.film-copy small { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .5rem; }
.film-copy small span { color: var(--muted); }
.film-copy h3 { margin: .2rem 0; }

.letter { padding-bottom: clamp(3.2rem, 7vw, 6rem); background: linear-gradient(0deg, #090d18 9%, rgba(9, 13, 24, .82) 50%, rgba(9, 13, 24, .46) 78%, rgba(9, 13, 24, .86)), #112033 url("valley.webp") center top / cover; }
.letter-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; }
.letter-board { margin-top: clamp(2.4rem, 6vw, 4.5rem); text-align: left; }
.board-head { display: flex; align-items: end; justify-content: space-between; gap: .8rem 1rem; margin-bottom: 1rem; }
.board-head h3 { font-size: clamp(1.35rem, 2.7vw, 1.9rem); }
.letter .board-head p { margin: .2rem 0 0; color: var(--muted); font-size: .875rem; }
.mail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mail-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 190px;
  padding: 1.35rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-soft);
  background: var(--surface), var(--surface-solid);
  box-shadow: var(--shadow);
}
.mail-card > header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: var(--gold); }
.mail-card header svg { width: 21px; height: 21px; }
.mail-card time, .mail-card small { color: var(--muted); font-size: .8125rem; }
.letter .mail-body { margin: 1rem 0; color: var(--ink); font: 400 1.02rem/1.9 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-card footer { margin-top: auto; color: var(--wind); font-size: .875rem; overflow-wrap: anywhere; }
#public-form > label { display: block; margin: .75rem 0 .3rem; }
#public-form small { color: var(--muted); }
#public-name { display: block; width: 100%; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(0, 0, 0, .22); color: var(--ink); font: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
#public-form .letter-consent { display: flex; align-items: baseline; gap: .5rem; font-size: .9375rem; }
.letter-consent input { accent-color: var(--wind); }
#public-count { white-space: nowrap; }
@media (max-width: 880px) {
  .media-grid, .mail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid[data-view] > .film { grid-column: auto; }
}
@media (max-width: 640px) {
  .media-grid, .mail-grid { grid-template-columns: minmax(0, 1fr); }
  .mail-card { min-height: 0; }
  .board-head { align-items: center; }
  .board-head .button { flex: 0 0 auto; }
}

/* Character archive */
.section-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1rem; }
.story-people { display: flex; flex-wrap: wrap; gap: .15rem .65rem; color: var(--ink-2); font-size: .875rem; }
.story-people span { color: #c9b07c; }

.people { background: radial-gradient(ellipse at 20% 27%, rgba(19, 39, 59, .55), transparent 55%); border-block: 1px solid var(--line); }
.constellation { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: .7rem 1.25rem; align-items: stretch; }
.constellation:not(:has(.graph-stage:not([hidden]))) { display: block; }
.graph-stage, .constellation-details { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.graph-stage { position: relative; aspect-ratio: 1.3; min-height: 365px; background: radial-gradient(circle at 50% 50%, rgba(127, 227, 207, .14), transparent 45%), radial-gradient(circle at 50% 50%, #121c31, #0a101d 80%); }
.graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(135, 180, 189, .42); pointer-events: none; overflow: visible; }
.graph-lines line, .graph-lines ellipse { vector-effect: non-scaling-stroke; stroke-width: 1; }
.graph-orbit { stroke: rgba(146, 217, 227, .18); stroke-dasharray: 2 5; }
.graph-lines line.active { stroke: var(--wind); stroke-width: 2; filter: drop-shadow(0 0 3px rgba(128, 255, 220, .8)); }
.person-node, .graph-legend span { --node: var(--wind); }
.person-node.inazuma, .graph-legend .inazuma { --node: var(--violet); }
.person-node.fatui, .graph-legend .fatui { --node: #f0c596; }
.person-node.sumeru, .graph-legend .sumeru { --node: var(--wind); }
.person-node.travel, .graph-legend .travel { --node: #a7d7ff; }
.person-node { position: absolute; top: var(--y); left: var(--x); transform: translate(-50%, -50%); min-height: 41px; min-width: 48px; padding: .3rem .65rem; border: 1px solid color-mix(in srgb, var(--node), transparent 55%); color: var(--node); border-radius: var(--pill); background: rgba(12, 18, 32, .75); backdrop-filter: blur(4px); white-space: nowrap; font-size: .875rem; line-height: 1.2; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.person-node:is(:hover, [aria-pressed="true"]) { color: #0a1422; background: var(--node); border-color: var(--node); box-shadow: 0 0 20px color-mix(in srgb, var(--node), transparent 64%); z-index: 2; }
.graph-center { --x: 50%; --y: 50%; width: clamp(85px, 11vw, 142px); aspect-ratio: 1; padding: 0; display: grid; place-items: stretch; overflow: hidden; border: 2px solid var(--gold); background: #24434f; box-shadow: 0 0 0 6px rgba(217, 184, 120, .12), 0 0 40px rgba(127, 227, 207, .25); }
.graph-center img { width: 100%; height: 100%; object-fit: cover; object-position: center 5%; }
.graph-center span { position: absolute; bottom: 0; inset-inline: 0; padding: .35rem; background: rgba(9, 13, 24, .85); color: var(--ink); font-weight: 700; }
.graph-legend { display: flex; flex-wrap: wrap; grid-row: 2; gap: .25rem .9rem; margin-left: .3rem; }
.graph-legend span { font-size: .8125rem; color: var(--muted); }
.graph-legend span::before { content: ""; display: inline-block; vertical-align: .14em; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: var(--node); }
.constellation-details { padding: clamp(1rem, 2.3vw, 1.65rem); background: var(--surface), var(--surface-solid); }
.person-card + .person-card:not([hidden]) { margin-top: .75rem; }
.constellation:has(.graph-stage:not([hidden])) .person-card { margin-top: 0; }
.person-card h3 { font-size: 1.8rem; }
.person-card p { color: var(--ink-2); margin: .4rem 0 1rem; }
.person-card .relation-label { color: var(--gold); margin: 0 0 .1rem; font-size: .875rem; }
.voice-clip { display: grid; gap: .35rem; margin: 0 0 .9rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(0, 0, 0, .22); }
.voice-clip > span { display: flex; gap: .3rem .7rem; flex-wrap: wrap; font-size: .875rem; color: var(--ink); }
.voice-clip small { color: var(--muted); font-size: .8125rem; }
.voice-clip audio { width: 100%; max-width: 360px; height: 42px; color-scheme: dark; }
.extra-voices, .personal-stories { margin-top: 1.5rem; }
.minor-head { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.voice-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: 0 .65rem .65rem; }
.voice-roster > article { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); padding: .85rem .95rem; background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.voice-roster h4 { margin: 0; color: var(--ink); }
.voice-roster p { color: var(--muted); margin: .3rem 0 .7rem; }
.voice-roster .voice-clip { margin-bottom: 0; }
.compact-talents { padding-block: clamp(2.5rem, 5vw, 4rem); }
.compact-talents .section-head { margin-bottom: 1.1rem; }
.talent-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.talent-summary div { padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-top: 2px solid rgba(127, 227, 207, .45); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.talent-summary dt { font: 700 1.12rem/1.5 var(--serif); }
.talent-summary dt span { display: block; color: var(--gold); margin-bottom: .25rem; font: 500 .875rem/1.5 var(--sans); }
.talent-summary dd { color: var(--muted); margin: .25rem 0 0; }

.wallpapers { border-top: 1px solid var(--line); }
.wallpaper-view { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.wallpaper-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #2a3550 transparent; }
.wallpaper-slide { position: relative; margin: 0; scroll-snap-align: center; min-width: 0; }
.wallpaper-slide > a { display: block; background: radial-gradient(ellipse at center, #15233a, #070b14 80%); }
.wallpaper-slide > a:focus-visible { outline-offset: -3px; }
.wallpaper-slide img { width: 100%; height: clamp(235px, 45vw, 540px); object-fit: contain; }
.wallpaper-slide figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
.wallpaper-slide figcaption h3 { font-size: 1.15rem; }
.wallpaper-meta { color: var(--muted); font-size: .875rem; }
.wallpaper-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem .9rem; padding: .75rem 1.1rem; border-top: 1px solid var(--line); }
.wallpaper-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.wallpaper-picker button { min-width: 40px; min-height: 40px; padding: 0 .65rem; border: 1px solid var(--line); border-radius: var(--pill); color: var(--muted); background: rgba(255, 255, 255, .04); transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.wallpaper-picker button:hover { border-color: rgba(127, 227, 207, .45); color: var(--ink); }
.wallpaper-picker button[aria-current="true"] { border-color: rgba(127, 227, 207, .5); color: var(--wind); background: var(--wind-soft); }
.wallpaper-controls .button { min-height: 40px; }
@media (max-width: 880px) {
  .header-inner { gap: .65rem; }
  #nav { gap: clamp(.75rem, 2vw, 1.2rem); }
  .constellation { grid-template-columns: minmax(0, 1.25fr) minmax(240px, 1fr); }
}
@media (max-width: 720px) {
  .constellation { grid-template-columns: minmax(0, 1fr); }
  .graph-stage { min-height: 0; max-height: 460px; }
  .graph-legend { grid-row: auto; }
}
@media (max-width: 640px) {
  .graph-stage { aspect-ratio: 1.02; }
  .person-node { font-size: .78rem; padding-inline: .36rem; min-height: 36px; min-width: 42px; left: clamp(16%, var(--x), 84%); }
  .graph-center { padding: 0; left: 50%; }
  .talent-summary, .voice-roster { grid-template-columns: minmax(0, 1fr); }
  .wallpaper-slide img { height: clamp(195px, 61vw, 310px); }
  .wallpaper-controls .wallpaper-picker { order: 1; flex-basis: 100%; }
}

@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; gap: .6rem; }
  .brand { font-size: 1rem; }
  .brand-icon { width: 36px; height: 36px; }
  .menu:not([hidden]) { display: inline-flex; }
  .site-header:has(.menu[hidden]) .header-inner { height: auto; padding-top: 8px; }
  #nav { display: grid; grid-column: 1/-1; grid-row: 2; grid-template-columns: repeat(4, 1fr); gap: 0 .3rem; }
  #nav a { min-height: 46px; justify-content: center; }
  #nav a[aria-current]::after { bottom: 6px; }
  .menu-ready #nav { display: none; position: absolute; inset: 100% 0 auto; padding: .45rem max(.8rem, calc((100% - 640px) / 2)); background: rgba(9, 13, 24, .88); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
  .menu-ready #nav.open { display: grid; }
}

body:not(.page-home) { min-height: 100svh; display: flex; flex-direction: column; }
body:not(.page-home) main { flex: 1; }
body:not(.page-home) main h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.24; letter-spacing: .08em; }
body:not(.page-home) .section { padding-top: clamp(2.7rem, 6vw, 5rem); }
body:not(.page-home):not(.page-letters) main > .section:first-child { position: relative; isolation: isolate; }
body:not(.page-home):not(.page-letters) main > .section:first-child::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(560px, 70vh);
  z-index: -1;
  pointer-events: none;
  background: url("valley.webp") center 40% / cover no-repeat;
  opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.page-letters .letter { min-height: 70svh; }
.chapter-links { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 2.2rem; }
.chapter-links a { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .95rem; border: 1px solid var(--line); border-radius: var(--pill); background: rgba(255, 255, 255, .04); color: var(--ink-2); font-size: .875rem; backdrop-filter: blur(6px); transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.chapter-links a:hover { color: var(--wind); border-color: rgba(127, 227, 207, .45); background: var(--wind-soft); }

.biography .section-head { align-items: end; }
.story-timeline { padding: 0; margin: 0; list-style: none; position: relative; }
.story-timeline::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: linear-gradient(transparent, var(--gold-soft) 4%, rgba(127, 227, 207, .35) 50%, var(--gold-soft) 96%, transparent); }
.timeline-row { display: grid; grid-template-columns: minmax(0,1fr) 64px minmax(0,1fr); position: relative; padding: .68rem 0; align-items: start; scroll-margin-top: 18px; }
.timeline-row::before { content: ""; position: absolute; left: 50%; top: 2.1rem; width: 11px; height: 11px; transform: translateX(-50%) rotate(45deg); border: 1px solid var(--gold); background: var(--bg); transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.timeline-row:hover::before, .timeline-row:target::before, .timeline-row:focus-within::before { background: var(--gold); box-shadow: 0 0 16px rgba(217, 184, 120, .65); }
.event-card { position: relative; grid-column: 1; grid-row: 1; padding: clamp(1rem, 2.5vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.timeline-row:nth-child(even) .event-card { grid-column: 3; }
.event-card::after { content: ""; position: absolute; left: 100%; top: 1.4rem; width: 27px; height: 1px; background: var(--gold-soft); }
.timeline-row:nth-child(even) .event-card::after { left: auto; right: 100%; }
.timeline-row:target .event-card { border-color: rgba(127, 227, 207, .55); }
.event-era, .personal-label { margin: 0 0 .45rem; color: var(--gold); font-size: .875rem; letter-spacing: .12em; }
.event-card h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: .035em; margin: 0 0 1rem; }
.event-card p { color: var(--ink-2); margin: 0 0 .75rem; line-height: 1.9; }
.event-card .story-people { margin-top: .9rem; }
.event-art { grid-column: 3; grid-row: 1; min-width: 0; margin: .1rem 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); overflow: hidden; }
.timeline-row:nth-child(even) .event-art { grid-column: 1; }
.event-art img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; transition: scale .6s var(--ease); }
.timeline-row:hover .event-art img { scale: 1.03; }
.event-art figcaption { padding: .55rem .9rem; color: var(--muted); font-size: .875rem; }

.story-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; align-items: start; }
.story-reading { margin-top: clamp(2.6rem, 7vw, 5rem); }
.story-reading .minor-head { margin-bottom: 1.1rem; }
.story-reading .minor-head h2 { font-size: clamp(1.7rem, 3.3vw, 2.55rem); }
.personal-card { background: var(--surface), var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.personal-card > summary { display: grid; grid-template-columns: minmax(0, 1fr) 1rem; gap: .85rem; align-items: start; padding: .9rem 1.05rem; font-weight: 400; }
.personal-card > summary:focus-visible { outline-offset: -3px; }
.personal-card > summary::after { margin: .2rem 0 0; text-align: right; }
.personal-summary { display: grid; gap: .22rem; }
.personal-summary .personal-label { margin: 0; }
.personal-title { font: 700 1.13rem/1.5 var(--serif); color: var(--ink); }
.personal-expanded { border-top: 1px solid var(--line); padding: .8rem 1.05rem .6rem; background: rgba(0, 0, 0, .22); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.personal-expanded p { margin: 0 0 .55rem; color: var(--ink-2); }
@media (min-width: 761px) {
  .page-story main h1 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
  .biography .event-art img { max-height: 425px; }
  .biography .event-card { padding: clamp(1rem, 1.8vw, 1.45rem); }
  .biography .event-card h2 { font-size: clamp(1.2rem, 1.75vw, 1.6rem); margin-bottom: .75rem; }
  .biography .event-card p, .biography .personal-expanded { font-size: .9375rem; line-height: 1.85; }
  .biography .story-people, .biography .event-era { font-size: .8125rem; }
}

.gallery-section + .gallery-section { margin-top: clamp(2.4rem, 6vw, 4rem); }
.gallery-section h2 { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.9vw, 2.1rem); }
#birthday-art .wallpaper-slide > a { background: radial-gradient(ellipse at center, #19283c, #070b14 80%); }
#birthday-art .wallpaper-picker button { min-width: 53px; }
.about { background: radial-gradient(ellipse at 85% 40%, rgba(22, 44, 61, .5), transparent 55%); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.25rem); align-items: start; }
.about-copy h2 { font-size: 1.45rem; margin: 0 0 .55rem; color: var(--ink); display: flex; align-items: center; gap: .55rem; }
.about-copy h2::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; box-shadow: 0 0 8px var(--gold-soft); }
.about-copy h2:not(:first-child) { margin-top: 1.6rem; }
.about-copy p { margin: 0 0 .55rem; max-width: 55ch; color: var(--ink-2); }
.about-art { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.about-art figcaption { padding: .6rem .9rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 760px) {
  .biography .section-head { align-items: start; }
  .story-timeline::before { left: 6px; }
  .timeline-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; padding-left: 1.35rem; }
  .timeline-row::before { left: 6px; }
  .timeline-row:nth-child(n) .event-card { grid-column: 1; }
  .timeline-row:nth-child(n) .event-card::after { left: auto; right: 100%; width: 11px; }
  .timeline-row:nth-child(n) .event-art { grid-column: 1; grid-row: 2; margin: 0; }
  .story-shelf, .about-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Home directory guide */
.home-guide { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 80% 10%, rgba(18, 40, 58, .55), transparent 58%); }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.guide-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface), var(--surface-solid);
  box-shadow: var(--shadow);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 92% 8%, rgba(127, 227, 207, .14), transparent 55%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.guide-card:hover { border-color: rgba(127, 227, 207, .35); transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 28px 54px -24px rgba(0, 0, 0, .88); }
.guide-card:hover::before { opacity: .9; }
.guide-card small { color: var(--gold); font-size: .8125rem; letter-spacing: .2em; }
.guide-card h3 { margin: .4rem 0 .45rem; font-size: 1.4rem; }
.guide-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.guide-card span { margin-top: auto; padding-top: .95rem; color: var(--wind); font-size: .875rem; transition: padding-left .25s var(--ease), color .2s var(--ease); }
.guide-card:hover span { padding-left: .25rem; color: var(--wind-strong); }
.guide-more { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Voice quotes & mobile highlight */
.voice-quote { margin: .35rem 0 0; padding: .5rem .8rem; border-left: 2px solid var(--gold-soft); color: var(--ink-2); font: 400 .92rem/1.85 var(--serif); white-space: pre-line; background: rgba(0, 0, 0, .2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.constellation-details { transition: border-color .28s var(--ease), box-shadow .28s var(--ease); }
.constellation-details.is-updated { border-color: rgba(127, 227, 207, .6); box-shadow: 0 0 28px rgba(127, 227, 207, .14); }

/* Enriched Talents & Constellations */
.talents-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.4rem 0 0; padding: 0; }
.profile-facts div { padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.profile-facts dt { color: var(--muted); font-size: .8rem; letter-spacing: .08em; }
.profile-facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); }
.talents-art { position: relative; margin: 0; display: grid; place-items: center; padding: .5rem; }
.talents-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(127, 227, 207, .18), rgba(180, 166, 245, .12) 45%, transparent 70%); pointer-events: none; }
.talents-art img { position: relative; width: min(100%, 440px); height: auto; filter: drop-shadow(0 18px 26px rgba(5, 11, 25, .82)); }
.talent-block { margin-top: clamp(2.4rem, 5.5vw, 3.6rem); }
.talent-block h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); margin: 0 0 1.1rem; }
.passive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.passive-card { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.passive-card small { display: block; color: var(--gold); font-size: .8125rem; margin-bottom: .25rem; }
.passive-card h3 { font-size: 1.22rem; margin: 0 0 .45rem; }
.passive-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.element-buffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .85rem 0 0; padding: 0; list-style: none; font-size: .825rem; }
.element-buffs li { padding: .45rem .65rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--ink-2); }
.element-buffs b { margin-right: .35rem; font-weight: 600; }
.element-buffs .el-hydro b { color: #7cc8ff; }
.element-buffs .el-pyro b { color: #ff9c7a; }
.element-buffs .el-cryo b { color: #a7f0ff; }
.element-buffs .el-electro b { color: #cfa8ff; }
.constellation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.constellation-list li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: .85rem; align-items: start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface), var(--surface-solid); box-shadow: var(--shadow); }
.constellation-num { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 1px solid var(--gold-soft); border-radius: 50%; font: 700 1rem/1 var(--serif); color: var(--gold); }
.constellation-list h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
.constellation-list p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* Honeypot & 404 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.not-found { min-height: 66svh; display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse at 50% 42%, rgba(19, 43, 62, .5), transparent 62%); }
.not-found .not-found-code { width: max-content; margin: 0 auto; font: 700 clamp(4.2rem, 12vw, 7.5rem)/1.05 var(--serif); letter-spacing: .12em; background: linear-gradient(135deg, var(--gold), var(--wind)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { max-width: 42ch; margin: 1rem auto 1.6rem; color: var(--muted); }
.not-found .hero-actions { justify-content: center; }

@media (max-width: 960px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talents-hero { grid-template-columns: minmax(0, 1fr); }
  .talents-art { order: -1; }
  .passive-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .guide-grid, .profile-facts, .constellation-list { grid-template-columns: minmax(0, 1fr); }
  .element-buffs { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .guide-card, .event-card, .event-art, .film, .passive-card, .talent-summary div, .constellation-list li, .mail-card, .personal-card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
