@font-face {
  font-family: Daylight;
  src: url("assets/fonts/daylight-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --white: #fff;
  --blue: #214c69;
  --navy: #172d3b;
  --mist: #edf2f4;
  --gray: #587080;
  --bg: var(--white);
  --text: var(--navy);
  --muted: var(--gray);
  --accent: var(--blue);
  --surface: var(--mist);
  --line: #ced9df;
  --gutter: clamp(24px, 5.5vw, 112px);
  --serif: Daylight, "Songti SC", "SimSun", serif;
  --fast: 160ms;
  --slow: 560ms;
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
body.dialog-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
}
button:active,
a:active {
  opacity: 0.75;
}
:focus-visible {
  outline: 3px solid #d09a48;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button[hidden],
[hidden] {
  display: none !important;
}
::selection {
  background: #d5e5ed;
  color: var(--text);
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  padding: 12px 20px;
  background: var(--bg);
  z-index: 30;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  height: 76px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  width: 144px;
  min-height: 44px;
  align-items: center;
}
.brand img {
  width: 100%;
  height: auto;
}
.site-header nav {
  display: flex;
  gap: 44px;
  align-items: center;
}
.site-header nav a {
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.site-header nav a[aria-current] {
  color: var(--accent);
  box-shadow: 0 1px var(--accent);
}
.site-header nav span {
  margin-left: 14px;
}
.hero {
  position: relative;
  height: min(830px, calc(100svh - 76px));
  min-height: 620px;
  isolation: isolate;
  overflow: hidden;
  background: #dbe9f3;
}
.hero-background,
.hero-background img,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-background img {
  object-fit: cover;
  object-position: center;
}
.hero-wash {
  background: linear-gradient(
    90deg,
    rgba(246, 249, 249, 0.94),
    rgba(244, 249, 251, 0.65) 32%,
    rgba(226, 238, 245, 0.04) 62%
  );
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 29%;
  width: 39%;
  max-width: 650px;
}
.hero h1 img {
  width: 100%;
  height: auto;
}
.hero-type {
  margin-top: 32px;
  letter-spacing: 0.25em;
  text-align: center;
  color: #344e62;
  font-size: 14px;
}
.hero-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 180px;
  padding: 12px 0;
  margin: 42px auto 0;
  border-bottom: 1px solid var(--accent);
  letter-spacing: 0.15em;
}
.hero-link span {
  font-size: 24px;
}
.hero-character {
  position: absolute;
  right: 9%;
  bottom: -27%;
  height: 117%;
  width: auto;
  max-width: 50%;
  object-fit: contain;
  object-position: bottom;
}
.hero-bottom {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(248, 250, 250, 0.92);
  font-size: 11px;
  letter-spacing: 0.15em;
}
.hero-bottom a {
  font-size: 21px;
  min-width: 44px;
  text-align: right;
}
.hero-bottom > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
}
.section-pad {
  padding: 105px var(--gutter) 62px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  gap: 32px;
}
.overline {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 10px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.intro {
  max-width: 44em;
  flex: 0 1 62%;
  text-align: left;
  color: var(--muted);
  line-height: 2.15;
  font-size: 14px;
  padding-bottom: 9px;
}
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 28px;
}
.gallery-main {
  min-width: 0;
}
.screen-link {
  display: block;
  position: relative;
  background: var(--surface);
  aspect-ratio: 16/9;
  overflow: hidden;
}
.screen-link > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.expand-label {
  position: absolute;
  bottom: 14px;
  right: 14px;
  color: white;
  background: rgba(18, 36, 50, 0.8);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.screen-caption {
  display: flex;
  gap: 22px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.screen-caption h3 {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.screen-caption p {
  font-size: 12px;
  color: var(--muted);
}
.screen-caption > span {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.screen-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: clamp(320px, 42vw, 780px);
  padding: 2px 7px 5px 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.screen-picker button {
  position: relative;
  padding: 0;
  background: var(--surface);
  flex-shrink: 0;
  border: 2px solid transparent;
  opacity: 0.63;
  transition:
    opacity var(--fast),
    border-color var(--fast);
}
.screen-picker img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center 25%;
}
.screen-picker button[aria-pressed="true"] {
  border-color: var(--accent);
  opacity: 1;
}
.screen-picker button > span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3px 8px;
  background: rgba(12, 31, 44, 0.76);
  color: white;
  font-size: 10px;
  text-align: left;
  letter-spacing: 0.12em;
}
.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 20px;
}
.gallery-footer > p {
  font-size: 11px;
  color: var(--muted);
}
.clip-links {
  display: flex;
  gap: 32px;
}
.clip-links a {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
}
.clip-links span {
  margin-left: 20px;
  font-size: 17px;
}
.characters {
  position: relative;
  padding: 65px var(--gutter) 0;
  background: var(--surface);
  overflow: hidden;
}
.character-heading {
  position: relative;
  z-index: 2;
}
.character-stage {
  height: 740px;
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
}
.character-watermark {
  position: absolute;
  top: 55px;
  right: -5%;
  font-family: Georgia, serif;
  font-size: clamp(100px, 20vw, 320px);
  color: #dce5e9;
  letter-spacing: -0.06em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.character-info {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  width: 36%;
}
.character-en {
  font-size: 12px;
  letter-spacing: 0.36em;
  color: var(--muted);
}
.character-info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 7.8vw, 120px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin: 3px 0 12px;
}
.character-role {
  font-size: 13px;
  letter-spacing: 0.09em;
}
.character-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 2.2;
  margin-top: 26px;
  max-width: 285px;
}
.character-art {
  position: absolute;
  z-index: 1;
  right: 10%;
  top: -90px;
  height: 920px;
  width: 48%;
  object-fit: contain;
  object-position: center top;
  max-width: none;
}
.character-picker {
  position: absolute;
  bottom: 70px;
  left: 0;
  display: flex;
  gap: 18px;
  z-index: 3;
}
.character-picker button {
  padding: 0 0 10px;
  background: transparent;
  border-bottom: 2px solid transparent;
  width: 74px;
  font-size: 12px;
}
.portrait {
  display: block;
  width: 74px;
  height: 86px;
  background: #dce5e9;
  overflow: hidden;
  margin-bottom: 8px;
  opacity: 0.6;
  transition: opacity var(--fast);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.character-picker button[aria-pressed="true"] {
  border-color: var(--accent);
}
.character-picker button[aria-pressed="true"] .portrait {
  opacity: 1;
  background: #cfdee6;
}
.character-art.changing {
  animation: portrait-in var(--slow) var(--ease);
}
@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.release {
  height: 530px;
  position: relative;
  overflow: hidden;
  background: #dcecf2;
}
.city-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 54%;
}
.release-panel {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
}
.release-panel h2 {
  font-size: 48px;
}
.release-panel > p:not(.overline) {
  font-size: 11px;
  margin-top: 18px;
}
.release-panel .release-status {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
}
.steam-button {
  background: var(--accent);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  margin-top: 25px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px var(--gutter);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.site-footer a {
  padding: 8px 0;
}
.no-script {
  padding: 20px 0;
  line-height: 2.5;
}
.no-script a {
  text-decoration: underline;
}
.media-dialog {
  border: 0;
  padding: 20px 24px;
  background: #142530;
  color: white;
  width: min(1280px, 94vw);
  max-width: 94vw;
  max-height: 94svh;
  overflow: auto;
}
.media-dialog::backdrop {
  background: rgba(8, 19, 27, 0.92);
}
.dialog-top,
.dialog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dialog-top {
  margin-bottom: 16px;
}
.dialog-top h2 {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.dialog-close {
  background: transparent;
  color: white;
  min-height: 44px;
  padding: 6px 0 6px 20px;
  font-size: 12px;
}
.dialog-close span {
  font-size: 24px;
  margin-left: 20px;
}
.dialog-content {
  position: relative;
  min-height: 80px;
}
.dialog-image,
.dialog-video {
  width: 100%;
  max-height: 70svh;
  object-fit: contain;
  background: #0c1921;
}
.dialog-bottom {
  justify-content: center;
  padding-top: 15px;
}
.dialog-bottom button {
  width: 48px;
  height: 44px;
  background: transparent;
  color: white;
  font-size: 22px;
}
.dialog-count {
  font-size: 12px;
  min-width: 85px;
  text-align: center;
}
.media-error {
  padding: 24px;
  font-size: 13px;
}
.media-error a {
  text-decoration: underline;
}
.screen-image-loading {
  opacity: 0.5;
}
@media (hover: hover) {
  .site-header a:hover,
  .clip-links a:hover {
    color: #397da5;
  }
  .screen-picker button:hover {
    opacity: 1;
  }
  .character-picker button:hover .portrait {
    opacity: 1;
  }
  .hero-link:hover span {
    transform: translateY(4px);
  }
  .hero-link span {
    transition: transform var(--fast);
  }
  .steam-button:hover {
    background: #326584;
  }
}
@media (min-width: 1700px) {
  .gallery-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .hero-copy {
    left: 10%;
  }
  .hero-character {
    right: 13%;
  }
}
@media (max-width: 1000px) {
  .hero-character {
    right: 2%;
    bottom: -16%;
    height: 100%;
    max-width: 57%;
  }
  .hero-copy {
    left: 5%;
    width: 45%;
  }
  .hero-type {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .gallery-layout {
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 18px;
  }
  .screen-caption {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .screen-caption p {
    order: 3;
    width: 100%;
  }
  .section-pad {
    padding-top: 75px;
  }
  .character-art {
    right: 0;
    width: 56%;
    top: -35px;
    height: 810px;
  }
  .character-stage {
    height: 700px;
  }
  .character-info {
    width: 43%;
  }
  .character-picker {
    gap: 10px;
  }
  .character-picker button,
  .portrait {
    width: 64px;
  }
  .portrait {
    height: 76px;
  }
  .character-watermark {
    top: 130px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 70px;
  }
  .site-header {
    height: 64px;
    padding: 0 20px;
  }
  .brand {
    width: 102px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav a {
    font-size: 11px;
    letter-spacing: 0;
  }
  .site-header nav span {
    margin-left: 4px;
  }
  .hero {
    height: calc(100svh - 64px);
    min-height: 650px;
    max-height: 920px;
  }
  .hero-background img {
    object-position: 48% center;
  }
  .hero-wash {
    background: linear-gradient(
      180deg,
      rgba(248, 251, 252, 0.95),
      rgba(238, 247, 252, 0.65) 37%,
      rgba(228, 240, 249, 0.05) 65%
    );
  }
  .hero-copy {
    top: 7%;
    left: 12%;
    width: 76%;
    max-width: 440px;
  }
  .hero-type {
    font-size: 11px;
    margin-top: 14px;
    letter-spacing: 0.12em;
  }
  .hero-link {
    width: 135px;
    margin-top: 15px;
    font-size: 12px;
    padding: 6px 0;
  }
  .hero-link span {
    font-size: 19px;
  }
  .hero-character {
    height: 75%;
    width: 82%;
    max-width: none;
    right: -1%;
    bottom: -10%;
    object-fit: contain;
  }
  .hero-bottom {
    padding: 15px 24px;
    font-size: 10px;
  }
  .hero-bottom > span {
    display: none;
  }
  .section-pad {
    padding: 62px 24px 40px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading .intro {
    margin-top: 19px;
    font-size: 13px;
  }
  .overline {
    font-size: 9px;
  }
  .gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .screen-caption {
    min-height: 80px;
  }
  .screen-caption h3 {
    font-size: 14px;
  }
  .screen-caption p {
    font-size: 11px;
  }
  .expand-label {
    bottom: 8px;
    right: 8px;
    font-size: 9px;
    padding: 4px 7px;
  }
  .screen-picker {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 8px;
    padding: 4px 3px 10px;
  }
  .screen-picker button {
    width: 112px;
  }
  .screen-picker button > span {
    font-size: 9px;
  }
  .gallery-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }
  .clip-links {
    width: 100%;
    gap: 24px;
  }
  .clip-links a {
    font-size: 11px;
  }
  .clip-links span {
    margin-left: 15px;
  }
  .characters {
    padding: 40px 24px 0;
  }
  .character-stage {
    height: 730px;
  }
  .character-info {
    padding-top: 24px;
    width: 50%;
  }
  .character-info h3 {
    font-size: 66px;
    margin-bottom: 12px;
  }
  .character-en {
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .character-role {
    font-size: 11px;
    letter-spacing: 0;
    max-width: 130px;
  }
  .character-detail {
    font-size: 11px;
    max-width: 133px;
    margin-top: 18px;
    line-height: 2.1;
  }
  .character-art {
    height: 630px;
    width: 86%;
    right: -24%;
    top: 53px;
  }
  .character-watermark {
    font-size: 128px;
    top: 184px;
    right: -15%;
    writing-mode: vertical-rl;
  }
  .character-picker {
    bottom: 28px;
    gap: 14px;
    width: 100%;
    justify-content: center;
    background: var(--surface);
    padding-top: 16px;
  }
  .character-picker button,
  .portrait {
    width: 61px;
  }
  .portrait {
    height: 76px;
  }
  .release {
    height: auto;
    padding-top: 240px;
    background: var(--surface);
  }
  .city-image {
    position: absolute;
    top: 0;
    height: 290px;
    object-position: 27% center;
  }
  .release-panel {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    padding: 28px;
    background: var(--bg);
  }
  .release-panel h2 {
    font-size: 42px;
  }
  .site-footer {
    padding: 22px 24px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 9px;
  }
  .site-footer > span:first-child {
    width: 100%;
  }
  .site-footer > a {
    margin-left: auto;
  }
  .media-dialog {
    padding: 10px 12px;
    width: 96vw;
    max-width: 96vw;
  }
  .dialog-top {
    margin-bottom: 8px;
  }
  .dialog-top h2 {
    font-size: 12px;
  }
  .dialog-close span {
    margin-left: 10px;
  }
  .dialog-bottom {
    padding-top: 8px;
  }
}
@media (max-width: 360px) {
  .site-header {
    padding: 0 16px;
  }
  .site-header nav {
    gap: 10px;
  }
  .brand {
    width: 90px;
  }
  .hero-type {
    font-size: 10px;
  }
  .character-picker {
    gap: 9px;
  }
  .character-picker button,
  .portrait {
    width: 56px;
  }
  .character-info h3 {
    font-size: 58px;
  }
  .character-detail {
    max-width: 115px;
  }
  .character-art {
    right: -29%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* 八位已具备 Live2D 的终稿角色，缩略图分两行，保留立绘展示空间。 */
.character-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 24px;
}
.character-heading > .overline {
  width: 100%;
}
.character-video {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.character-video span {
  margin-left: 16px;
}
.character-stage {
  height: 800px;
}
.character-art {
  height: 820px;
  top: -30px;
  right: 8%;
}
.character-picker {
  display: grid;
  grid-template-columns: repeat(4, 74px);
  bottom: 48px;
  gap: 14px 18px;
}
.character-info {
  padding-top: 55px;
}
.character-info h3 {
  margin-bottom: 8px;
}
.character-detail {
  margin-top: 15px;
}
@media (max-width: 1000px) {
  .character-picker {
    grid-template-columns: repeat(4, 64px);
    gap: 12px 10px;
  }
  .character-art {
    height: 780px;
    right: 0;
    top: 0;
  }
}
@media (max-width: 700px) {
  .character-heading {
    gap: 0 16px;
  }
  .character-video {
    font-size: 10px;
  }
  .character-video span {
    margin-left: 6px;
  }
  .character-stage {
    height: 840px;
  }
  .character-info {
    padding-top: 24px;
  }
  .character-art {
    height: 580px;
    top: 70px;
    right: -24%;
  }
  .character-picker {
    grid-template-columns: repeat(4, 61px);
    gap: 8px 14px;
    bottom: 20px;
  }
  .character-watermark {
    top: 160px;
  }
  .character-picker button {
    padding-bottom: 5px;
  }
  .portrait {
    height: 65px;
    margin-bottom: 4px;
  }
}
@media (max-width: 360px) {
  .character-picker {
    grid-template-columns: repeat(4, 56px);
    gap: 8px 9px;
  }
  .character-art {
    right: -29%;
  }
}

@media (max-width: 700px) {
  .character-art {
    right: -3%;
    top: 100px;
    width: 73%;
    height: 510px;
  }
  .character-detail {
    max-width: 120px;
  }
}
@media (max-width: 700px) {
  .character-info {
    width: 100%;
  }
  .character-role {
    max-width: none;
  }
  .character-detail {
    display: none;
  }
  .character-art {
    right: 0;
    top: 184px;
    width: 100%;
    height: 400px;
  }
  .character-watermark {
    top: 240px;
    right: -8%;
  }
}
/* 加载占位图来自模型默认帧，与实时画布共享居中 contain 布局。 */
.live2d-surface {
  position: absolute;
  overflow: visible;
}
.character-fallback,
.live2d-surface canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.live2d-surface canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  touch-action: auto;
}
.live2d-surface.live-ready canvas {
  opacity: 1;
}
.live2d-surface.live-ready canvas.interactive {
  pointer-events: auto;
  touch-action: pan-y;
  cursor: pointer;
}
.live2d-surface.live-ready .character-fallback {
  visibility: hidden;
}
.screen-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #142530;
  display: block;
}
.hero-wash {
  background: linear-gradient(
    90deg,
    rgba(245, 249, 252, 0.75),
    rgba(245, 249, 252, 0.2) 49%,
    transparent 70%
  );
}
@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 4/5;
  }
  .hero-background img {
    object-position: 48% center;
  }
  .hero-copy {
    top: 21%;
  }
  .hero-wash {
    background: rgba(241, 247, 252, 0.35);
  }
  .hero-type {
    color: #193951;
  }
  .hero-link {
    background: rgba(245, 249, 252, 0.65);
    padding: 5px 10px;
  }
}
/* 桌面侧栏完整展示九项，视频入口无需滚到缩略图列表底部。 */
@media (min-width: 1000px) {
  .gallery-layout {
    grid-template-columns: minmax(0, 1fr) clamp(230px, 20vw, 320px);
  }
  .screen-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding: 2px;
  }
}

/* 桌面四个章节按可用窗口高度排版；矮屏与手机保留完整内容流。 */
@media (min-width: 1000px) and (min-height: 760px) {
  .hero {
    height: var(--section-height, calc(100svh - 76px));
    min-height: 0;
  }
  .gameplay {
    min-height: var(--section-height, calc(100svh - 76px));
    padding-top: 48px;
    padding-bottom: 28px;
  }
  .gameplay .section-heading {
    margin-bottom: 28px;
  }
  .gallery-layout {
    max-width: calc(177.7778svh - 372px);
    margin-inline: auto;
  }
  .release {
    height: calc(
      var(--section-height, calc(100svh - 76px)) - var(--footer-height, 76px)
    );
  }
}
html.section-scrolling,
html.section-dragging {
  scroll-behavior: auto;
}
html.section-dragging,
html.section-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
@media (pointer: coarse) {
  html.section-navigation {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--header-height, 64px);
  }
  html.section-navigation main > section {
    scroll-snap-align: start;
  }
}
/* 角色页使用剩余高度分配立绘区域，普通桌面与矮窗口均只占一屏。 */
@media (min-width: 701px) and (min-height: 520px) {
  .characters {
    display: flex;
    flex-direction: column;
    height: var(--section-height, calc(100svh - 76px));
    min-height: 0;
    padding-top: clamp(12px, 3svh, 32px);
  }
  .character-heading {
    flex: 0 0 auto;
  }
  .character-stage {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .character-art {
    /* 全身展示，画布与加载占位图共用同一尺寸。 */
    height: 100%;
    width: 60%;
    right: -4%;
    top: 0;
  }
  .character-info {
    padding-top: clamp(10px, 2svh, 28px);
  }
  .character-picker {
    bottom: clamp(12px, 2svh, 28px);
  }
}
@media (min-width: 701px) and (min-height: 520px) and (max-height: 850px) {
  .character-heading h2 {
    font-size: 32px;
    line-height: 1.3;
  }
  .character-heading .overline {
    margin-bottom: 5px;
  }
  .character-info h3 {
    font-size: clamp(44px, 9svh, 76px);
    line-height: 1.15;
  }
  .character-detail {
    margin-top: 8px;
    line-height: 1.8;
  }
  .character-picker {
    gap: 10px 14px;
  }
  .character-picker button {
    padding-bottom: 6px;
  }
  .character-picker .portrait {
    height: clamp(48px, 9svh, 74px);
    margin-bottom: 4px;
  }
}
@media (min-width: 701px) and (min-height: 520px) and (max-height: 650px) {
  .character-detail {
    display: none;
  }
}
@media (max-width: 700px) {
  .character-art {
    top: 170px;
    height: 440px;
  }
}

/* 桌面导航移到左侧，章节使用完整窗口高度。 */
@media (min-width: 901px) {
  :root {
    --sidebar-width: clamp(128px, 9vw, 176px);
    --gutter: clamp(28px, 4vw, 88px);
  }
  html {
    scroll-padding-top: 0;
  }
  body {
    padding-left: var(--sidebar-width);
  }
  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    height: 100svh;
    padding: 32px 16px;
    flex-direction: column;
    justify-content: flex-start;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .brand {
    width: 100%;
  }
  .site-header nav {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    margin-block: auto;
  }
  .site-header nav a {
    text-align: center;
  }
  .site-header nav a[aria-current] {
    box-shadow: none;
    border-left: 2px solid var(--accent);
    background: var(--surface);
  }
  .hero {
    height: 100svh;
    min-height: 0;
  }
}
@media (min-width: 901px) and (min-height: 520px) {
  .gameplay {
    height: 100svh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-block: clamp(18px, 3svh, 42px) 16px;
  }
  .gameplay .section-heading {
    flex: 0 0 auto;
    margin-bottom: clamp(14px, 2svh, 26px);
    gap: 24px;
  }
  .gameplay h2 {
    font-size: clamp(30px, 4svh, 56px);
  }
  .gameplay .intro {
    font-size: 13px;
    line-height: 1.9;
    padding-bottom: 0;
  }
  .gallery-layout {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) clamp(180px, 17vw, 300px);
    gap: clamp(16px, 2vw, 28px);
    margin: 0;
  }
  .gallery-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .screen-link,
  .screen-video {
    flex: 1;
    min-height: 0;
    height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .screen-caption {
    flex: 0 0 auto;
    min-height: 54px;
    padding-block: 10px;
  }
  .screen-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    align-content: start;
    gap: clamp(6px, 1svh, 12px);
    overflow: visible;
    max-height: none;
    min-height: 0;
    padding: 2px;
  }
  .screen-picker button {
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .screen-picker img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }
  .gallery-footer {
    flex: 0 0 auto;
    margin-top: 8px;
    padding-top: 0;
  }
  .characters {
    padding-top: 0;
  }
  .character-heading {
    position: absolute;
    top: 24px;
    left: var(--gutter);
  }
  .character-stage {
    max-width: none;
  }
  .character-info {
    padding-top: clamp(112px, 17svh, 174px);
  }
  .character-art {
    right: 0;
  }
  .release {
    height: calc(100svh - var(--footer-height, 76px));
    min-height: 0;
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
