/* One continuous canvas, from the opening film to the image viewer. */
:root {
  color-scheme: dark;
  --canvas: #100e17;
  --surface: #181420;
  --ink: #f0ecf6;
  --muted: #b5acbf;
  --accent: #c5aff5;
  --pale: #261f36;
  --line: #332b40;
  --soft: #1b1625;
}
body { background: var(--canvas); }
::selection { background: #59416e; color: #fff; }
.site-header { background: #100e17f2; border-color: #c2a3f018; }
.cinematic-overview {
  background: radial-gradient(ellipse at 52% 8%, #272039 0, #171320 40%, var(--canvas) 78%);
}
.ruled-section { background: var(--canvas); }
footer { background: var(--canvas); }
.skip-link { background: var(--surface); border: 1px solid var(--line); }
.secondary:hover { background: #372a4a; }
.filter-tabs button > span { color: #ac9bbd; }
.gallery-image, .editing-card > .image-button { box-shadow: 0 0 0 1px #d4bdf414; }
.gallery-card:hover img { filter: brightness(1.06); }
.expand-symbol { background: #1b142ae6; color: #eee4ff; border: 1px solid #ded0ff33; }
.method-figure img { border-radius: 12px; }
.modulation { background: #b9a0d5; }
.attention { background: #e0a1a4; }
.allocation { background: #a0bce5; }
.table-scroll { scrollbar-color: #594769 transparent; }
tbody .ours { background: #b594ed0e; }
.result-footnote, .footer-inner small { color: #aa9dbb; }
.editing-reference-strip img { background: var(--surface); }
pre { color: #cdc0df; }
.citation-block { background: #17121f; }
.compare-stage { background: var(--surface); }
dialog {
  background: var(--surface);
  border: 1px solid #b49bdb38;
  box-shadow: 0 30px 120px #0009;
}
dialog::backdrop { background: #09060ee8; }
.dialog-top { background: var(--surface); }
.dialog-image-wrap, .asset-view .dialog-image-wrap,
.asset-view .compare-stage { background: var(--surface); }
.model-switch button.active { border-color: #8d71b6; }
.dialog-model-label { background: var(--soft); border-color: var(--line); }

/* Official marks retain their proportions and the author's affiliation keys. */
.cinematic-credits .affiliations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 25px;
  color: #f2edf8;
}
.affiliation-mark {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 13px;
  min-height: 48px;
}
.affiliation-mark > sup {
  position: absolute;
  left: -12px;
  top: 6px;
  font-size: 10px;
  color: #b0a1c1;
}
.hunyuan-affiliation img { width: 39px; height: 39px; }
.hunyuan-affiliation > span { font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.pku-affiliation img { width: 171px; height: auto; }
.affiliation-mark:hover { opacity: .85; color: #f2edf8; }
@media (max-width: 760px) {
  .cinematic-credits .affiliations { gap: 29px; margin-top: 22px; flex-wrap: nowrap; }
  .affiliation-mark { gap: 8px; min-height: 37px; }
  .hunyuan-affiliation img { width: 29px; height: 29px; }
  .hunyuan-affiliation > span { font-size: 15px; }
  .pku-affiliation img { width: 131px; }
  .affiliation-mark > sup { left: -8px; top: 3px; font-size: 9px; }
  .method-figure img { border-radius: 7px; }
}
@media (max-width: 390px) {
  .cinematic-credits .affiliations { gap: 23px; }
  .hunyuan-affiliation img { width: 26px; height: 26px; }
  .hunyuan-affiliation > span { font-size: 14px; }
  .pku-affiliation img { width: 122px; }
}
