:root {
  --paper: #c8a269;
  --paper-deep: #b98b50;
  --paper-light: #eee3ce;
  --ink: #36281d;
  --red: #923923;
  --folder-half: 380px;
  --ease: cubic-bezier(0.2, 0.78, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #1d1711;
}

body {
  color: #f4e9d6;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid #f1c770;
  outline-offset: 4px;
}

#experience {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  overflow: clip;
  user-select: none;
  background: #1c1510;
}

#scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1600px;
  height: 1000px;
  transform-origin: center;
  will-change: transform;
}

.room {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  isolation: isolate;
  transition: filter 760ms ease;
}

.room::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  opacity: 0.06;
  background-image: url("assets/grain.svg");
  mix-blend-mode: soft-light;
}

.scene-nav {
  position: absolute;
  z-index: 15;
  top: 56px;
  left: 70px;
  right: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f5ead8;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 11px;
  border: 1px solid rgba(255, 239, 214, 0.16);
  border-radius: 6px;
  background: rgba(34, 22, 15, 0.42);
  box-shadow: 0 10px 26px rgba(15, 8, 4, 0.12);
  cursor: pointer;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.brand-mark::before {
  inset: 4px;
}

.brand-mark::after {
  inset: 8px;
  background: currentColor;
}

.brand-cn {
  font-size: 23px;
  letter-spacing: 0.08em;
}

.brand-en {
  color: rgba(245, 234, 216, 0.5);
  font: 8px "Courier New", monospace;
  letter-spacing: 0.14em;
}

.section-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.section-links button,
.nav-static {
  display: grid;
  gap: 1px;
  min-width: 54px;
  padding: 4px 0;
  color: #f8eddb;
  text-align: center;
  border: 0;
  background: transparent;
}

.section-links button {
  cursor: pointer;
}

.section-links span > span,
.nav-static > span {
  font-family: "Songti SC", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.section-links small {
  font: 8px/1.2 "Courier New", monospace;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.section-links .is-active > span {
  border-bottom: 1px solid currentColor;
}

.lamp-switch {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 316px;
  width: 82px;
  height: 246px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.switch-cord {
  position: absolute;
  top: 0;
  left: 40px;
  width: 3px;
  height: 174px;
  background: repeating-linear-gradient(155deg, transparent 0 3px, #ac926455 3px 4px, transparent 4px 6px), linear-gradient(90deg, #241b12, #9a8057 45%, #43321e);
  box-shadow: 3px 2px 3px #10090466;
  transition: height 380ms var(--ease);
}

.switch-knob {
  position: absolute;
  top: 163px;
  left: 28px;
  width: 27px;
  height: 54px;
  border: 1px solid #352114;
  border-radius: 38% 38% 46% 46% / 22% 22% 30% 30%;
  background: repeating-linear-gradient(87deg, transparent 0 4px, #14090329 5px, transparent 6px 9px), radial-gradient(ellipse at 28% 25%, #efc27e52, transparent 58%), linear-gradient(90deg, #352013, #82502c 24%, #a47545 43%, #694022 74%, #2e1c11);
  box-shadow:
    6px 8px 7px #1109036b,
    inset 1px 0 2px #f4d4a140, inset -3px -4px 5px #190b0359;
  transition:
    background 420ms ease,
    box-shadow 420ms ease,
    transform 240ms var(--ease);
}

.switch-knob::before {
  position: absolute;
  content: "";
  top: -6px;
  left: 7px;
  width: 11px;
  height: 8px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #3b3020, #baa175 35%, #6e5837 67%, #332718);
  box-shadow: 0 1px 2px #21150d;
}

.lamp-switch:hover .switch-knob {
  filter: brightness(1.12);
}

.lamp-switch:active .switch-knob {
  transform: translateY(13px);
}

.switch-caption {
  position: absolute;
  top: 238px;
  left: 50%;
  width: 96px;
  color: rgba(247, 230, 202, 0.55);
  font: 8px "Courier New", monospace;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.lamp-rig {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 800px;
  width: 240px;
  height: 390px;
  transform: translateX(-50%);
  pointer-events: none;
}

.lamp-cord {
  position: absolute;
  top: 0;
  left: 119px;
  width: 5px;
  height: 94px;
  background: linear-gradient(90deg, #1b100b, #4a2d1a 48%, #140c08);
}

.lamp-shade {
  position: absolute;
  top: 79px;
  left: 17px;
  width: 208px;
  height: 92px;
  border-radius: 50% 50% 9% 9% / 94% 94% 9% 9%;
  border-bottom: 3px solid #47301b;
  background:
    url("assets/grain.svg"),
    radial-gradient(ellipse at 32% 27%, #ffe4ac85, transparent 35%),
    linear-gradient(90deg, #30261b, #746043 13%, #b49a68 31%, #9d8051 48%, #6d5535 71%, #35291c 94%, #211a13);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 2px 2px #e9d19e66, inset 0 -8px 8px #23170c66;
  filter: drop-shadow(0 16px 16px rgba(25, 10, 2, 0.34));
  transition:
    filter 620ms ease,
    opacity 620ms ease;
}

.lamp-shade::before {
  position: absolute;
  content: "";
  top: -13px;
  left: 91px;
  width: 25px;
  height: 20px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(90deg, #382c1d, #b09968 38%, #6e5736 70%, #302419);
  box-shadow: inset 0 2px 1px #e0c9974d;
}

.lamp-shade::after {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -7px;
  height: 17px;
  content: "";
  border-radius: 50%;
  border: 3px solid #6d5635;
  border-top-color: #a78a58;
  border-bottom-color: #3e2b18;
  background: radial-gradient(ellipse, #fff2c9, #eac785 48%, #9a7340 83%, #4c351f);
  box-shadow: 0 5px 13px #ffc96b40, inset 0 3px 4px #39220c99;
}

.lamp-light {
  position: absolute;
  top: 162px;
  left: -90px;
  width: 420px;
  height: 410px;
  opacity: 0.52;
  background: radial-gradient(ellipse at 50% 0%, #ffe4aeb3, #ffd28724 38%, transparent 72%);
  filter: blur(18px);
  mix-blend-mode: screen;
  transition: opacity 720ms ease;
}

.lamp-glow {
  position: absolute;
  top: 118px;
  left: -262px;
  width: 760px;
  height: 550px;
  background: radial-gradient(ellipse, rgba(255, 208, 112, 0.22), rgba(255, 192, 84, 0.08) 42%, transparent 70%);
  mix-blend-mode: screen;
  transition: opacity 720ms ease;
}

.archive-wrap {
  position: absolute;
  z-index: 8;
  top: 358px;
  left: 800px;
  width: 760px;
  height: 462px;
  transform: translateX(-50%);
  filter: drop-shadow(24px 27px 26px rgba(20, 10, 5, 0.38));
  perspective: 1600px;
}

.archive {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1050ms cubic-bezier(.22, .68, .18, 1);
  will-change: transform;
}

.archive__left,
.archive__right {
  position: absolute;
  top: 0;
  width: var(--folder-half);
  height: 100%;
  background:
    repeating-linear-gradient(2deg, rgba(91, 55, 21, 0.035) 0 1px, transparent 2px 11px),
    linear-gradient(140deg, #d0ab6f, #bd8e50);
  box-shadow:
    inset 0 0 0 1px rgba(77, 47, 20, 0.17),
    inset -14px 0 24px rgba(77, 42, 15, 0.05);
}

.archive__left {
  left: 0;
  z-index: 3;
  border-radius: 5px 1px 2px 5px;
  opacity: 1;
  transform-origin: right center;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  transition:
    transform 1050ms cubic-bezier(.22, .68, .18, 1);
  will-change: transform;
}

.archive__right {
  right: 0;
  z-index: 2;
  border-radius: 1px 5px 4px 2px;
}

.archive[data-open="true"] .archive__left {
  opacity: 1;
  transform: rotateY(0deg);
}

.paper-stack {
  position: absolute;
  inset: 20px auto 22px 28px;
  width: 330px;
  border: 1px solid rgba(98, 63, 31, 0.1);
  background: rgba(234, 215, 179, 0.18);
  transform: rotate(-0.7deg);
}

.folder-spine {
  position: absolute;
  z-index: 9;
  top: -6px;
  left: 369px;
  width: 25px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d3cdc0, #72716a);
  box-shadow: 0 5px 5px rgba(34, 20, 8, 0.35);
}

.archive-cover {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  width: var(--folder-half);
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px 5px 4px 2px;
  background:
    linear-gradient(104deg, transparent 0 47%, rgba(255, 248, 212, 0.08) 48%, transparent 50%),
    repeating-linear-gradient(2deg, rgba(90, 56, 22, 0.035) 0 1px, transparent 2px 9px),
    linear-gradient(145deg, #d1ab6c, #c09254 54%, #ad7e44);
  box-shadow:
    inset 0 0 0 1px rgba(86, 53, 21, 0.18),
    inset -13px 0 22px rgba(84, 50, 20, 0.08);
  transform-origin: left center;
  backface-visibility: hidden;
  cursor: pointer;
  transition:
    transform 1050ms cubic-bezier(.22, .68, .18, 1);
  will-change: transform;
}

.archive[data-open="true"] .archive-cover {
  opacity: 1;
  pointer-events: none;
  transform: rotateY(-180deg);
}

.cover-clip {
  position: absolute;
  z-index: 3;
  top: -31px;
  left: 50%;
  width: 59px;
  height: 40px;
  border: 5px solid #7f7b70;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #c8c3b5, #77766f);
  box-shadow: 0 3px 3px rgba(35, 24, 15, 0.35);
  transform: translateX(-50%);
}

.cover-clip::after {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 30px;
  height: 9px;
  border-radius: 2px;
  background: #55564f;
  content: "";
}

.cover-sheet {
  position: absolute;
  top: 58px;
  left: 66px;
  display: block;
  width: 224px;
  height: 240px;
  padding: 22px 19px 18px;
  color: #3c2c20;
  background:
    repeating-linear-gradient(3deg, rgba(80, 54, 30, 0.025) 0 1px, transparent 2px 9px),
    #e9dfcc;
  clip-path: polygon(0 2%, 8% 0, 23% 1%, 41% 0, 61% 1%, 79% 0, 100% 2%, 99% 25%, 100% 49%, 98% 72%, 100% 98%, 79% 99%, 58% 98%, 39% 100%, 18% 99%, 1% 97%, 0 73%, 2% 51%, 0 28%);
  transform: rotate(-0.8deg);
  box-shadow: 0 4px 9px rgba(51, 30, 13, 0.14);
}

.cover-sheet > small {
  display: block;
  color: rgba(70, 47, 28, 0.6);
  font: 7px "Courier New", monospace;
  letter-spacing: 0.08em;
}

.cover-index {
  position: absolute;
  top: 49px;
  left: 20px;
  color: rgba(76, 53, 31, 0.38);
  font: 10px/0.9 "Courier New", monospace;
}

.cover-index span {
  font-size: 35px;
}

.cover-sheet strong {
  position: absolute;
  top: 57px;
  right: 21px;
  font: 34px/0.92 Georgia, serif;
  text-align: right;
}

.cover-sheet em {
  position: absolute;
  top: 145px;
  left: 35px;
  width: 154px;
  color: rgba(66, 47, 30, 0.64);
  font: 8px "Courier New", monospace;
  font-style: normal;
  letter-spacing: 0.06em;
  text-align: center;
}

.cover-rule {
  position: absolute;
  right: 29px;
  bottom: 50px;
  width: 138px;
  height: 1px;
  background: rgba(72, 48, 27, 0.25);
}

.cover-hand {
  position: absolute;
  right: 27px;
  bottom: 23px;
  color: rgba(73, 48, 27, 0.65);
  font: 18px "Bradley Hand", "Kaiti SC", cursive;
  transform: rotate(-4deg);
}

.cover-code {
  position: absolute;
  left: 20px;
  bottom: 22px;
  color: rgba(72, 48, 27, 0.4);
  font: 6px "Courier New", monospace;
}

.cover-stamp {
  position: absolute;
  right: 38px;
  bottom: 54px;
  padding: 8px 12px;
  color: rgba(134, 47, 27, 0.62);
  font: bold 12px/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  border: 3px double currentColor;
  transform: rotate(-7deg);
}

.folder-paperclip {
  position: absolute;
  left: 37px;
  bottom: 29px;
  width: 16px;
  height: 50px;
  border: 3px solid #8e7556;
  border-radius: 8px 8px 5px 5px;
  transform: rotate(17deg);
}

.folder-paperclip--right {
  right: 94px;
  bottom: 8px;
}

.folder-tab {
  position: absolute;
  z-index: 10;
  top: 76px;
  right: -44px;
  width: 58px;
  height: 150px;
  padding: 0;
  color: rgba(66, 62, 43, 0.74);
  font: 9px/1 "Courier New", monospace;
  letter-spacing: 0.07em;
  border: 0;
  border-radius: 0 5px 5px 0;
  background: #d6dfc2;
  box-shadow: 5px 7px 14px rgba(30, 17, 8, 0.22);
  writing-mode: vertical-rl;
  cursor: pointer;
}

.artifact {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  transition: filter 180ms ease;
}

.artifact:hover {
  filter: brightness(1.08) drop-shadow(0 7px 9px rgba(46, 24, 8, 0.2));
}

.artifact--film {
  top: 31px;
  left: 34px;
  width: 106px;
  height: 328px;
  transform: rotate(-1.5deg);
}

.film-strip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  height: 100%;
  padding: 11px 9px;
  background: #292723;
}

.film-hole-row {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 7px;
  background: repeating-linear-gradient(180deg, #e3d8ba 0 5px, transparent 5px 14px);
}

.film-hole-row:first-child {
  left: 4px;
}

.film-hole-row:last-child {
  right: 4px;
}

.film-frame {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #d3c7a4;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.95) saturate(0.42) contrast(1.08) brightness(0.8);
}

.artifact--ticket {
  top: 31px;
  left: 160px;
  width: 106px;
  height: 302px;
  transform: rotate(0.4deg);
}

.ticket {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 12px 9px 9px;
  color: #31251b;
  background: #ead6b0;
  clip-path: polygon(0 0, 48% 0, 52% 4px, 55% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 7px 0 0 rgba(150, 44, 23, 0.87);
}

.ticket-kicker,
.ticket-code {
  font: 6px/1.25 "Courier New", monospace;
  letter-spacing: 0.08em;
}

.ticket strong {
  margin-top: 8px;
  font: 18px/0.95 Georgia, serif;
}

.ticket-rule {
  height: 1px;
  margin: 8px 0;
  background: rgba(58, 38, 23, 0.25);
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}

.ticket-row b {
  min-width: 22px;
  color: #b14324;
  font: 21px/1 Georgia, serif;
}

.ticket-row em {
  min-width: 0;
  font: 4.4px/1.25 "Courier New", monospace;
  letter-spacing: 0;
  white-space: nowrap;
}

.ticket-code {
  margin-top: auto;
}

.artifact--list {
  top: 72px;
  left: 274px;
  width: 84px;
  height: 145px;
  transform: rotate(-1.8deg);
}

.list-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 9px 7px;
  color: #3d342a;
  background: #eee5d1;
  clip-path: polygon(1% 1%, 99% 0, 97% 98%, 51% 100%, 3% 97%);
  box-shadow: 0 3px 7px rgba(42, 27, 14, 0.18);
}

.list-sheet small {
  font: 5px "Courier New", monospace;
  letter-spacing: 0.05em;
}

.list-sheet strong {
  margin: 6px 0 7px;
  font: 8px/1.2 Georgia, serif;
}

.list-sheet > span:not(.list-barcode) {
  font: 5.5px/1.85 "Courier New", monospace;
}

.list-barcode {
  width: 48px;
  height: 14px;
  margin-top: auto;
  background: repeating-linear-gradient(90deg, #3c352c 0 1px, transparent 1px 3px);
}

.paper-scrap {
  position: absolute;
  padding: 8px 11px;
  color: #5a4733;
  font: 8px/1.55 "Kaiti SC", "Songti SC", serif;
  background: #e8dcc3;
  box-shadow: 0 3px 7px rgba(42, 27, 14, 0.16);
}

.paper-scrap--one {
  bottom: 27px;
  left: 194px;
  width: 127px;
  transform: rotate(-1deg);
}

.paper-scrap--two {
  bottom: 7px;
  left: 247px;
  width: 100px;
  transform: rotate(1.4deg);
}

.artifact--experience {
  top: 42px;
  right: 29px;
  width: 300px;
  height: 344px;
  transform: rotate(0.3deg);
}

.experience-sheet {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 17px 18px;
  color: #302922;
  background: #f1e8d8;
  clip-path: polygon(0 0, 100% 0, 99% 99%, 1% 98%);
  box-shadow: 0 4px 10px rgba(43, 27, 13, 0.2);
}

.experience-heading {
  display: block;
  font: bold 18px/1.1 Georgia, serif;
  text-align: center;
}

.experience-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
  margin-top: 11px;
  padding: 8px 0;
  border-top: 1px solid rgba(48, 41, 34, 0.18);
  border-bottom: 1px solid rgba(48, 41, 34, 0.18);
  font: 6.5px/1.3 "Courier New", monospace;
}

.experience-meta b {
  display: inline-block;
  width: 37px;
}

.experience-photo {
  position: absolute;
  top: 77px;
  right: 18px;
  width: 68px;
  height: 86px;
  overflow: hidden;
  border: 3px solid #e8dfcf;
  box-shadow: 0 2px 4px rgba(40, 24, 12, 0.2);
}

.experience-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.75);
}

.experience-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-right: 72px;
  font: 7.2px/1.55 "Songti SC", serif;
}

.experience-grid b {
  display: block;
  margin-bottom: 2px;
  font: bold 7.5px "Courier New", monospace;
}

.experience-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(55, 42, 30, 0.48);
  font: 6px "Courier New", monospace;
  letter-spacing: 0.1em;
}

.experience-stamp {
  position: absolute;
  bottom: 47px;
  left: 18px;
  padding: 3px 6px;
  color: rgba(143, 52, 30, 0.68);
  font: bold 8px "Courier New", monospace;
  border: 2px solid currentColor;
  transform: rotate(-4deg);
}

.artifact--tag {
  right: 230px;
  bottom: 24px;
  width: 112px;
  height: 139px;
  transform: rotate(-3deg);
}

.welcome-tag {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px 12px;
  color: #543d29;
  background: #e2cfad;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(43, 25, 11, 0.2);
}

.welcome-tag::before {
  position: absolute;
  top: -8px;
  left: 44px;
  width: 24px;
  height: 24px;
  border: 2px solid #8a6344;
  border-radius: 50%;
  content: "";
}

.welcome-tag span {
  font: 12px/1.4 Georgia, serif;
  letter-spacing: 0.04em;
}

.welcome-tag small {
  margin-top: 20px;
  font: 5.5px "Courier New", monospace;
}

.archive-box {
  position: absolute;
  right: 28px;
  bottom: 23px;
  width: 78px;
  height: 62px;
  padding: 17px 8px;
  color: #f2ddc4;
  font: bold 8px/1 "Courier New", monospace;
  text-align: center;
  background: #9c3c25;
  border: 3px solid #71301e;
  box-shadow: 0 4px 7px rgba(42, 22, 10, 0.22);
}

.scene-caption {
  position: absolute;
  z-index: 16;
  left: 50%;
  bottom: 70px;
  width: 740px;
  display: flex;
  justify-content: space-between;
  color: rgba(245, 229, 205, 0.58);
  font: 9px "Courier New", monospace;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.light-off-wash {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: rgba(9, 7, 6, 0.42);
  opacity: 0;
  transition: opacity 720ms ease;
}

.lights-off .room {
  filter: brightness(0.7) saturate(0.72);
}

.lights-off .lamp-light,
.lights-off .lamp-glow {
  opacity: 0.015;
}

.lights-off .lamp-shade {
  filter: brightness(0.32) saturate(0.5) drop-shadow(0 10px 12px rgba(8, 5, 3, 0.3));
}

.lights-off .switch-knob {
  filter: brightness(0.72);
}

.lights-off .lamp-shade::after {
  background: radial-gradient(ellipse, #8e7855, #4e3c25 75%, #2d2116);
  box-shadow: inset 0 3px 5px #140c05b3;
}

.lights-off .switch-cord {
  height: 184px;
}

.lights-off .switch-knob {
  top: 173px;
}

.lights-off .light-off-wash {
  opacity: 1;
}

.scene-vignette {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.42), transparent 12%, transparent 88%, rgba(8, 6, 5, 0.36)),
    radial-gradient(ellipse at center, transparent 55%, rgba(8, 6, 5, 0.35) 100%);
}

.interface-hint {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  color: rgba(247, 232, 209, 0.64);
  font: 10px/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 238, 211, 0.1);
  border-radius: 99px;
  background: rgba(27, 18, 12, 0.4);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  pointer-events: none;
}

.interface-hint__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4c66e;
  box-shadow: 0 0 10px rgba(244, 198, 110, 0.8);
  transition: opacity 400ms ease;
}

.lights-off .interface-hint__dot {
  opacity: 0.25;
  box-shadow: none;
}

.detail-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.detail-layer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(13, 9, 7, 0.65);
  opacity: 0;
  backdrop-filter: blur(0);
  transition:
    opacity 360ms var(--ease),
    backdrop-filter 360ms var(--ease);
  cursor: zoom-out;
}

.detail-layer.is-open .detail-backdrop {
  opacity: 1;
  backdrop-filter: blur(7px) brightness(0.58) saturate(0.72);
}

.detail-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.detail-clone {
  position: fixed !important;
  z-index: 2;
  margin: 0 !important;
  pointer-events: none;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.38));
  transition: transform 430ms cubic-bezier(0.16, 0.78, 0.22, 1);
}

.detail-clone.artifact:hover {
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.38));
}

.detail-close {
  position: fixed;
  z-index: 3;
  top: 26px;
  right: 28px;
  padding: 8px 13px;
  color: rgba(248, 236, 218, 0.8);
  font: 10px/1 "Courier New", monospace;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 239, 215, 0.22);
  border-radius: 99px;
  background: rgba(28, 18, 12, 0.55);
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.detail-layer.is-open .detail-close {
  opacity: 1;
}

body.detail-open #experience {
  cursor: default;
}

@media (max-width: 680px) {
  .scene-nav {
    top: 32px;
    left: 460px;
    right: 460px;
  }

  .brand {
    gap: 8px;
    padding: 7px 9px;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
  }

  .brand-cn {
    font-size: 16px;
  }

  .brand-en {
    display: none;
  }

  .section-links {
    gap: 11px;
  }

  .section-links button,
  .nav-static {
    min-width: 38px;
  }

  .section-links span > span,
  .nav-static > span {
    font-size: 12px;
  }

  .section-links small {
    display: none;
  }

  .lamp-switch {
    left: 468px;
  }

  .scene-caption {
    width: 680px;
    bottom: 76px;
  }

  .interface-hint {
    bottom: 18px;
    white-space: nowrap;
  }

  .detail-close {
    top: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Collage positions follow the supplied folder sketch. */
.archive__left .artifact--film { left: 23px; top: 59px; width: 76px; height: 330px; z-index: 1; transform: rotate(-1deg); }
.poster-card { display: block; height: auto; line-height: 0; background: #f6f2e8; box-shadow: 2px 4px 6px #38210e33; }
.poster-card img { display: block; width: 100%; height: auto; }
/* Independent uncoated-paper surface; original artwork stays unfiltered.
   Multiply retains dark ink and the texture never intercepts interaction. */
.poster-card:not(.desk-card):not(.poster-card--note-yellow):not(.poster-card--note-green) { isolation: isolate; }
.poster-card:not(.desk-card):not(.poster-card--note-yellow):not(.poster-card--note-green)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78 .52' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23808080' filter='url(%23paper)' opacity='.2' d='M0 0h160v160H0z'/%3E%3C/svg%3E"),
    linear-gradient(112deg, #ffffff00 15%, #6b59430a 48%, #ffffff00 73%),
    linear-gradient(178deg, #ffffff00 88%, #68543a0c 100%);
  background-size: 96px 96px, 100% 100%, 100% 100%;
  mix-blend-mode: multiply;
  box-shadow: inset 0.45px 0.5px 0.35px #fff9, inset -0.55px -0.65px 0.5px #4b39292e;
}
/* Preserve the circulation poster's transparent silhouette. */
.poster-card--10::after {
  -webkit-mask: url("assets/poster-10.webp") center / 100% 100% no-repeat;
  mask: url("assets/poster-10.webp") center / 100% 100% no-repeat;
  box-shadow: none !important;
}
.poster-card--05 { left: 67px; top: 12px; width: 80px; z-index: 5; transform: rotate(0deg); }
.poster-card--03 { left: 117px; top: 62px; width: 98px; z-index: 2; transform: rotate(0deg); }
.poster-card--02 { left: 206px; top: 25px; width: 136px; z-index: 4; transform: rotate(-10deg); }
.poster-card--04 { left: 78px; top: 157px; width: 94px; z-index: 3; transform: rotate(0deg); }
.poster-card--06 { left: 128px; top: 271px; width: 140px; z-index: 4; transform: rotate(-1deg); }
.poster-card--07 { left: 28px; top: 342px; width: 190px; z-index: 7; transform: rotate(3deg); }
.poster-card--10 { left: 213px; top: 198px; width: 164px; z-index: 6; transform: rotate(0deg); background: transparent; box-shadow: none; filter: drop-shadow(2px 4px 3px #38210e33); }
.poster-card--overview { left: 50px; top: 20px; width: 289px; z-index: 2; transform: rotate(0deg); }
.poster-card--08 { left: 18px; top: 262px; width: 142px; z-index: 5; transform: rotate(-3deg); }
.poster-card--neural { left: 190px; top: 125px; width: 180px; z-index: 5; transform: rotate(3deg); }
.poster-card--note-yellow { left: 115px; top: 9px; width: 112px; z-index: 6; transform: rotate(2deg); }
.poster-card--note-green { left: 115px; top: 167px; width: 96px; z-index: 7; transform: rotate(2deg); }
.poster-card--note-yellow, .poster-card--note-green { background: transparent; box-shadow: none; filter: drop-shadow(2px 3px 2px #38210e33); }
.archive__right::before { content: ""; position: absolute; left: 28px; top: 46px; width: 272px; height: 380px; background: #eeece2; box-shadow: 1px 2px 4px #38210e22; transform: rotate(-2deg); }
.detail-clone.poster-card { box-shadow: none; }

/* A sealed sticker sleeve tucked behind the right folder leaf. */
.sticker-pack {
  left: 501px;
  top: -25px;
  width: 177px;
  height: 326px;
  z-index: 1;
  transform: rotate(5deg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.archive[data-open="true"] .sticker-pack,
.detail-clone.sticker-pack { opacity: 1; visibility: visible; }
.sticker-pack__sleeve {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 7px 6px 10px;
  border: 1px solid rgba(245, 245, 236, 0.65);
  border-radius: 2px 3px 4px 3px;
  background: rgba(220, 230, 226, 0.16);
  box-shadow: 3px 5px 7px #160b0759, inset 1px 0 2px #ffffff80, inset -2px 0 3px #ffffff4d;
  overflow: hidden;
}
.sticker-pack img { display: block; width: 100%; height: 100%; object-fit: fill; }
.sticker-pack__sleeve::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px double #ffffff36;
  background:
    linear-gradient(112deg, transparent 0 19%, #ffffff08 20%, #ffffff66 21%, #ffffff16 23%, transparent 25% 68%, #ffffff35 69%, transparent 72%),
    linear-gradient(77deg, transparent 0 43%, #ffffff21 46%, transparent 49%),
    linear-gradient(175deg, #ffffff40, transparent 9% 90%, #ffffff45 98%);
  pointer-events: none;
}
.sticker-pack__sleeve::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  height: 4px;
  border-top: 1px solid #ffffffa3;
  border-bottom: 1px solid #ffffff70;
  box-shadow: 0 1px 2px #271c1933;
  pointer-events: none;
}

.detail-clone.sticker-pack { pointer-events: auto; }
.pack-tear-trigger { position: absolute; left: 0; top: 0; width: 100%; height: 15%; z-index: 10; border: 0; background: transparent; cursor: grab; }
.pack-tear-trigger::after { content: "点击撕开包装"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap; font: 10px "Songti SC", serif; color: #f6e5cd; padding: 6px 10px; border-radius: 20px; background: #20160de0; }
.pack-tearing .sticker-pack__sleeve { clip-path: polygon(0 4%, 8% 3%, 17% 4.5%, 29% 3%, 40% 4%, 52% 3%, 66% 4.5%, 78% 3%, 90% 4%, 100% 3%, 100% 100%, 0 100%); }
.pack-torn-strip { position: absolute; inset: 0 0 auto; height: 13px; background: linear-gradient(175deg,#ffffff45,#b9c8cb0d 45%,#ffffff80 51%,#ffffff12); border: 1px solid #ffffff80; transform-origin: left; }
.sticker-play-layer { position: absolute; inset: 0; z-index: 45; pointer-events: none; }
.sticker-board { position: absolute; width: 177px; height: 326px; background: #050505; box-shadow: 4px 12px 17px #1c100c60; }
.sticker-board::before { content: ""; position: absolute; inset: 0 0 auto; height: 34px; background: #d92c39; }
.sticker-board::after { content: ""; position: absolute; top: 9px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.sticker-ghost { position: absolute; filter: brightness(0) invert(1); }
.loose-sticker { position: absolute; padding: 0; border: 0; background: transparent; pointer-events: auto; cursor: grab; filter: drop-shadow(1px 2px 1px #27170e50); transform-origin: center; touch-action: none; }
.loose-sticker img { display: block; width: 100%; height: 100%; pointer-events: none; }
.loose-sticker.is-flying { pointer-events: none; }
.loose-sticker.is-held { cursor: grabbing; z-index: 100; filter: drop-shadow(8px 13px 5px #20100965); }
.stickers-busy .detail-close { pointer-events: none; opacity: 0 !important; }

/* Frame the supplied OCTO cover at its original printed proportions. */
.archive-cover {
  top: -16px;
  height: 495px;
  border-radius: 4px 15px 16px 3px;
  background: #b8b1a7;
  box-shadow: 3px 7px 12px rgba(24, 15, 9, .28);
}
.cover-artwork {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("assets/archive-cover-observation-20261107.webp");
  background-size: 204.7222% 113.6315%;
  background-position: 12.2016% 50.7813%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.archive-cover:focus-visible {
  outline: 3px solid #e7dcc2;
  outline-offset: 6px;
}
.archive[data-open="false"] .folder-spine {
  visibility: hidden;
}

.film-photograph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(2px 3px 3px rgba(20, 12, 5, .3));
}
.archive__left .artifact--film { width: 110px; }
.film-photograph { object-fit: contain; }

/* Files can be rearranged on the open desktop with mouse or touch. */
.archive[data-open="true"] [data-detail] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.archive[data-open="true"] [data-detail].is-dragging { cursor: grabbing; transition: none; filter: brightness(1.06) drop-shadow(0 12px 12px #20100555); }
.archive [data-detail] img { -webkit-user-drag: none; }

/* Center the visible closed cover (380 × 495) in the 1600 × 1000 scene.
   The whole folder glides back as its two cover faces turn around one hinge. */
.archive[data-open="false"] { transform: translate3d(-190px, -89.5px, 0); }
.archive[data-open="true"] { transform: translate3d(0, 0, 0); }
.archive.is-turning [data-detail] { pointer-events: none; }

/* A quiet visitor beneath the loose backing paper. */
.archive__right::before { content: none; }
.secret-paper { position: absolute; left: 28px; top: 46px; width: 272px; height: 380px; background: #eeece2; box-shadow: 1px 2px 4px #38210e22; transform: rotate(-2deg); isolation: isolate; }
.secret-paper__fold { position: absolute; right: 0; bottom: 0; width: 49px; height: 49px; background: linear-gradient(135deg, transparent 49%, #ddd7c8 50%, #faf7eb 85%); clip-path: polygon(100% 0,100% 100%,0 100%); opacity: 0; transform-origin: right bottom; transition: opacity 400ms ease, transform 700ms var(--ease); pointer-events: none; z-index: 2; }
.keeper-peek { position: absolute; right: -15px; bottom: -22px; width: 82px; height: 56px; border: 0; padding: 0; background: transparent; cursor: pointer; z-index: 1; -webkit-tap-highlight-color: transparent; }
.keeper-octopus { position: absolute; width: 95px; height: 95px; right: -4px; bottom: -4px; transform: translateY(0) rotate(-12deg); clip-path: inset(73% 0 0 0); transition: transform 800ms var(--ease), clip-path 800ms var(--ease); filter: drop-shadow(1px 3px 2px #38210e25); }
.archive[data-open="true"] .keeper-peek:not([aria-expanded="true"]) .keeper-octopus { animation: keeper-fidget 6s ease-in-out infinite; }
.keeper-peek:hover .keeper-octopus, .keeper-peek:focus-visible .keeper-octopus { filter: brightness(1.1) drop-shadow(1px 3px 2px #38210e25); }
.secret-paper.is-discovered .secret-paper__fold { opacity: 1; transform: translate(-5px,-5px) rotate(-8deg); }
.secret-paper.is-discovered .keeper-peek { height: 114px; }
.secret-paper.is-discovered .keeper-octopus { clip-path: inset(0); transform: translateY(-12px) rotate(5deg); animation: none; }
.keeper-stamp { position: absolute; bottom: 30px; left: 25px; width: 163px; padding: 13px 5px 10px; color: #a64c38; text-align: center; border: 2px solid currentColor; border-radius: 48% 44% 46% 42%; font: 11px/1.8 "Songti SC", serif; letter-spacing: 1px; opacity: 0; transform: rotate(-9deg) scale(1.35); pointer-events: none; }
.keeper-stamp::before { content: "◌ ◌ ◌"; display: block; font: 19px/1 Georgia, serif; letter-spacing: 5px; margin-bottom: 5px; }
.keeper-stamp.is-stamped { animation: keeper-stamp-in 550ms ease-out both; }
.archive.is-turning .keeper-peek, .archive[data-open="false"] .keeper-peek { pointer-events: none; }
@keyframes keeper-fidget { 0%,65%,100% { transform: rotate(-12deg); } 72% { transform: translate(3px,4px) rotate(-7deg); } 80% { transform: translate(-2px,-2px) rotate(-16deg); } 88% { transform: translate(1px,2px) rotate(-10deg); } }
@keyframes keeper-stamp-in { 0% { opacity: 0; transform: rotate(-9deg) scale(1.35); } 55% { opacity: .9; transform: rotate(-9deg) scale(.96); } 100% { opacity: .78; transform: rotate(-9deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .keeper-octopus { animation: none !important; } }

/* Nine familiar stickers, one secret dance floor. */
.loose-sticker.is-party { cursor: default; }
.loose-sticker.is-party img { animation: sticker-jive 900ms ease-in-out infinite; animation-delay: var(--dance-delay,0s); transform-origin: 50% 85%; }
.loose-sticker.is-party:nth-child(3n) img { animation-name: sticker-twirl; animation-duration: 1250ms; }
.secret-paper.is-dance-floor { box-shadow: 1px 2px 4px #38210e22, 0 0 32px #e9bf7133; }
.secret-paper.is-dance-floor .keeper-octopus { animation: keeper-fidget 1.5s ease-in-out infinite; }
@keyframes sticker-jive { 0%,100% { transform: translateY(0) rotate(-9deg) scale(1.05,.94); } 25% { transform: translateY(-17px) rotate(8deg) scale(.95,1.05); } 50% { transform: translateY(0) rotate(10deg) scale(1.07,.92); } 75% { transform: translateY(-13px) rotate(-8deg) scale(.97,1.04); } }
@keyframes sticker-twirl { 0%,100% { transform: translateY(0) rotate(-12deg); } 30% { transform: translateY(-20px) rotate(15deg); } 55% { transform: translateY(0) rotate(-7deg) scale(1.08,.92); } 78% { transform: translateY(-11px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .loose-sticker.is-party img { animation: none; } }

.archive [data-detail].is-clearing { pointer-events: none; }

.archive [data-detail].is-party-file { pointer-events: none; }

/* A flat sticker-style helper reaches from below; the wooden pull stays intact. */
.lamp-helper { position: absolute; z-index: 13; top: 190px; left: 248px; width: 240px; height: 850px; pointer-events: none; visibility: hidden; transform: translateY(850px); transform-origin: 75% 100%; filter: drop-shadow(3px 5px 3px #24170d35); }
.lamp-helper.is-reaching { visibility: visible; }
.switch-knob { transition: top 380ms var(--ease), filter 420ms ease, transform 240ms var(--ease); }
@media (max-width: 680px) { .lamp-helper { left: 400px; } }
@media (prefers-reduced-motion: reduce) { .lamp-helper { display: none; } }

/* Interactive observations alongside the circulation poster. */
.circulation-hotspots { position: fixed; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 400ms 380ms ease; }
.circulation-hotspots.is-ready { opacity: 1; }
.circulation-hotspot { position: absolute; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; pointer-events: auto; transition: background 200ms, border-color 200ms; }
.circulation-hotspot span { position: absolute; left: 0; top: 0; display: grid; place-items: center; min-width: 36px; min-height: 30px; padding: 3px 5px; border: 1px solid #f5e0b9; border-radius: 16px; background: #663e2ee8; color: #fff2d9; font: 10px/1 monospace; box-shadow: 0 2px 8px #28150855; }
.circulation-hotspot:hover, .circulation-hotspot[aria-pressed="true"] { border-color: #923923; background: #92392315; }
.circulation-hotspot[aria-pressed="true"] span { background: #923923; }
.circulation-panel { position: fixed; z-index: 5; padding: 25px; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; background: #f1e9d7; color: #493a2b; border: 1px solid #d6c8ad; border-radius: 4px 12px 12px 4px; box-shadow: 10px 18px 45px #0b070760; font: 13px/1.8 "Songti SC", Georgia, serif; scrollbar-width: thin; }
.circulation-eyebrow { color: #98735d; font: 9px/1.5 monospace; letter-spacing: .15em; }
.circulation-panel h2 { margin: 12px 0 16px; font: 24px/1.4 "Songti SC", serif; font-weight: normal; }
.circulation-panel p { margin: 14px 0; }
.circulation-intro { margin: 32px 0; padding: 20px 0; border-top: 1px solid #bca88c; border-bottom: 1px solid #bca88c; color: #923923; }
.circulation-intro span { font-size: 11px; color: #78624e; }
.circulation-crop { margin: 0; padding: 10px; background: #ead8a6; border: 1px solid #d1b77d; border-radius: 3px; }
.circulation-crop svg { display: block; width: 100%; max-height: 205px; }
.circulation-crop figcaption { margin-top: 6px; font-size: 10px; color: #806b4b; }
.circulation-motion { padding: 10px 8px; border: 1px solid #d6c8ad; border-radius: 6px; background: #faf5ea; }
.circulation-motion-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: #7c6653; }
.circulation-pause { border: 1px solid #c5ae8f; border-radius: 12px; padding: 3px 8px; background: transparent; color: #734e39; font-size: 10px; cursor: pointer; }
.circulation-diagram { width: 100%; display: block; margin-top: 8px; }
.circulation-node rect { fill: #e8d1c3; stroke: #c19580; }
.circulation-node text { fill: #573d32; text-anchor: middle; font: 12px "Songti SC", serif; }
.circulation-node { animation: circulation-beat 3s ease-in-out infinite; }
.circulation-flow { stroke-dasharray: 4 6; animation: circulation-stream 1.8s linear infinite; }
.circulation-small { font-size: 10px; line-height: 1.7; color: #8d7962; }
.circulation-source { font-size: 10px; color: #79503c; text-underline-offset: 3px; }
.circulation-panel.is-paused * { animation-play-state: paused !important; }
@keyframes circulation-stream { to { stroke-dashoffset: -40; } }
@keyframes circulation-beat { 0%,70%,100% { opacity: .65; } 35% { opacity: 1; } }
@media (max-width: 759px) { .circulation-panel { padding: 16px 20px; } .circulation-panel h2 { font-size: 21px; } .circulation-hotspot span { min-width: 30px; min-height: 28px; font-size: 9px; } }

.circulation-guide { position: fixed; z-index: 4; margin: 0; max-width: calc(100vw - 40px); width: max-content; transform: translateX(-50%); color: #ecddc3; text-align: center; font: 12px/1.8 "Songti SC", serif; letter-spacing: .06em; pointer-events: none; }
.circulation-guide[hidden], .circulation-panel[hidden] { display: none; }
.circulation-panel { opacity: 0; transform: translateY(12px); transition: opacity 350ms ease, transform 430ms var(--ease); }
.circulation-panel.is-visible { opacity: 1; transform: translateY(0); }
.circulation-hotspots { transition: left 430ms var(--ease), top 430ms var(--ease), width 430ms var(--ease), height 430ms var(--ease), opacity 400ms ease; }

/* Perception map: small discoveries stay on the paper. */
.perception-overlay { position: fixed; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 400ms ease; }
.perception-overlay.is-ready { opacity: 1; }
.perception-guide { position: fixed; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 30px); margin: 0; color: #eadfc9; text-align: center; font: 12px/1.8 "Songti SC", serif; pointer-events: none; }
.perception-area { position: absolute; pointer-events: auto; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: border-color 200ms, background 200ms; }
.perception-area:hover, .perception-area:focus-visible { border-color: #b87c8870; background: #bb8eac0c; }
.perception-touch { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #fff7e9; border-radius: 50%; color: #fff7e9; background: #976a7be6; font: 16px/1 Georgia, serif; box-shadow: 0 2px 5px #42273322; }
.perception-map-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.is-map-playing .perception-map-motion { opacity: 1; }
.perception-play { position: absolute; top: 54%; left: 4%; width: 92%; min-height: 145px; padding: 13px 12px 9px; border: 1px solid #ddc3ca; border-radius: 18px 6px 18px 6px; background: #fff8efeF; box-shadow: 0 7px 25px #54314530; pointer-events: auto; color: #775663; text-align: center; }
.perception-play[hidden] { display: none; }
.perception-play-close { position: absolute; right: 6px; top: 4px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #9c7887; font: 23px/1 Georgia; cursor: pointer; z-index: 2; }
.perception-play-scene { position: relative; height: 95px; display: flex; align-items: center; justify-content: center; gap: 7%; overflow: hidden; }
.perception-actor { width: 23%; height: 76px; object-fit: contain; filter: drop-shadow(1px 3px 2px #64403122); }
.perception-play p { margin: 7px 0 3px; font: 12px/1.7 "Songti SC", serif; }
.perception-play-note { font: 9px/1.5 "Songti SC", serif; color: #b19a98; letter-spacing: .12em; }
.actor-hop { animation: perception-hop 950ms ease-in-out 3; transform-origin: 50% 90%; }
.actor-delay { animation-delay: -240ms !important; }
.actor-later { animation-delay: -480ms !important; }
.actor-dive { animation: perception-dive 3s ease-in-out both; }
.perception-play[data-scene="dive"] .perception-play-scene { border-radius: 10px; background: linear-gradient(#ecf1e8,#b6ced5); }
.perception-bubble { position: absolute; color: #fff; font-size: 22px; animation: perception-bubble 2s ease-out infinite; }
.bubble-one { left: 40%; bottom: 0; }.bubble-two { left: 62%; bottom: 0; animation-delay: -1s; font-size: 14px; }
.actor-color { animation: perception-color 3s ease-in-out both; width: 31%; }
.perception-spark { color: #c5a0b7; font-size: 29px; animation: perception-hop 1s ease-in-out 3; }
.perception-hearts { display: flex; gap: 15px; color: #c37988; font-size: 42px; }
.perception-hearts span { display: inline-block; animation: perception-heart 1s ease-in-out 3; }
.perception-hearts span:nth-child(2) { animation-delay: 180ms; }.perception-hearts span:nth-child(3) { animation-delay: 360ms; }
.perception-suckers { display: grid; grid-template-columns: repeat(4,25px); gap: 10px; }
.perception-suckers span { width: 25px; height: 25px; border: 4px solid #ddb1bc; border-radius: 50%; color: #a16c7b; background: #f8e6d7; font: 9px/18px "Songti SC", serif; animation: perception-pop 1.2s ease-in-out 2; animation-delay: calc(var(--i) * 90ms); }
.actor-swim { animation: perception-swim 2.8s ease-in-out both; }
@keyframes perception-hop { 0%,100% { transform: translateY(3px) rotate(-7deg) scale(1.03,.97); } 50% { transform: translateY(-12px) rotate(9deg) scale(.98,1.02); } }
@keyframes perception-dive { 0% { transform: translateY(-65px) rotate(-10deg); } 35% { transform: translateY(-14px) rotate(8deg); } 70% { transform: translateY(9px) rotate(-6deg); } 100% { transform: translateY(55px) rotate(6deg); } }
@keyframes perception-bubble { from { transform: translateY(10px); opacity: 0; } 30% { opacity: .9; } to { transform: translateY(-80px); opacity: 0; } }
@keyframes perception-color { 0%,100% { filter: hue-rotate(0deg); transform: rotate(-4deg); } 35% { filter: hue-rotate(100deg); transform: rotate(6deg); } 70% { filter: hue-rotate(220deg); transform: rotate(-7deg); } }
@keyframes perception-heart { 0%,65%,100% { transform: scale(.85); } 25% { transform: scale(1.13); } 40% { transform: scale(.98); } }
@keyframes perception-pop { 0%,100% { transform: scale(.8); } 40% { transform: scale(1.14); } }
@keyframes perception-swim { 0% { transform: translateX(-45px) rotate(-9deg); opacity: 0; } 25% { opacity: 1; } 55% { transform: translate(4px,-12px) rotate(8deg); } 100% { transform: translateX(45px) rotate(-5deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .perception-play * { animation: none !important; } }

/* Keep interactive targets above every cloned poster, including dragged files. */
.detail-clone { z-index: 2 !important; }
.perception-overlay { z-index: 20; pointer-events: auto; isolation: isolate; }
.perception-area { z-index: 2; pointer-events: auto; touch-action: manipulation; }
.perception-map-motion { z-index: 1; pointer-events: none; }
.perception-play { z-index: 3; }
.perception-guide { z-index: 21; }
.detail-close { z-index: 30; }

/* Small marks on the print; the animated discoveries live in the margins. */
.perception-touch { width: 13px; height: 13px; font-size: 11px; line-height: 1; border-width: .7px; background: #976a7bb8; box-shadow: none; }
.perception-area { border-color: transparent; }
.perception-play { position: fixed; left: auto; top: auto; z-index: 23; width: 230px; min-height: 150px; padding: 14px 12px 10px; border-radius: 14px 4px 14px 4px; background: #fff8eff5; }
.perception-connector { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 22; }
.perception-connector[hidden] { display: none; }
.perception-overlay { transition: left 430ms var(--ease), top 430ms var(--ease), width 430ms var(--ease), height 430ms var(--ease), opacity 400ms ease; }
.perception-play p { font-size: 11px; }

/* Quiet circulation annotations; retain the full invisible click regions. */
.circulation-hotspot span { min-width: 22px; min-height: 18px; padding: 2px 4px; border-width: .7px; border-radius: 10px; font-size: 8px; background: #663e2ec9; box-shadow: 0 1px 3px #28150825; }
.circulation-hotspot:hover, .circulation-hotspot[aria-pressed="true"] { border-color: #92392355; background: #92392306; }
@media (max-width: 759px) { .circulation-hotspot span { min-width: 20px; min-height: 17px; font-size: 7px; } }

/* The depth table is a quiet, bidirectional index to the movable files. */
.archive [data-detail].is-depth-match { outline: 1px solid #e7bc83; outline-offset: 3px; filter: brightness(1.08) drop-shadow(0 7px 6px #38210e45); }
.depth-connections { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; }
.detail-layer .depth-connections { z-index: 7; }
.depth-overview-targets { position: fixed; z-index: 8; pointer-events: none; }
.depth-overview-targets button { position: absolute; pointer-events: auto; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 3px; }
.depth-overview-targets button:hover,.depth-overview-targets button[aria-pressed="true"] { border-color: #c99c7380; background: #d8ad7c0c; }
.depth-species-preview { position: fixed; z-index: 8; border: 0; background: transparent; color: #efddc1; padding: 0; text-align: center; cursor: zoom-in; }
.depth-species-preview[hidden] { display: none; }
.depth-species-preview img { display: block; max-width: 100%; max-height: 310px; width: auto; height: auto; margin: 0 auto 13px; box-shadow: 5px 12px 20px #140c0840; }
.depth-species-preview span,.depth-species-preview small,.depth-species-preview em { display: block; font: 12px/1.8 "Songti SC",serif; }
.depth-species-preview small { font-size: 10px; color: #c2a687; }.depth-species-preview em { font-size: 10px; color: #a99075; margin-top: 6px; }
.depth-guide { position: fixed; left: 50%; z-index: 8; transform: translateX(-50%); max-width: calc(100vw - 30px); width: max-content; margin: 0; color: #ead9bd; font: 11px/1.8 "Songti SC",serif; text-align: center; pointer-events: none; }
@media(max-width:719px) { .depth-species-preview img { max-height: 190px; }.depth-species-preview span { font-size: 10px; } }

/* Keep the lens center aligned with the actual pointer across the whole scene. */
@media (any-pointer: fine) {
  html, body, body *, body *::before, body *::after {
    cursor: url("assets/magnifier-cursor.svg") 16 16, zoom-in !important;
  }
}

/* Neural study: restrained signal motion accompanies the original plate. */
.neural-hotspots { z-index: 20; }
.neural-panel { z-index: 22; }
.neural-crop { background: #f3dfc3; border-color: #d3ab8f; }
.neural-diagram { display: block; width: 100%; margin-top: 8px; }
.neural-diagram text { fill: #654a40; font: 11px "Songti SC", serif; text-anchor: middle; }
.neural-dot { fill: #bc8879; animation: neural-pulse 3s ease-in-out infinite; }
.neural-arm-dot { fill: #8c514b; }
.neural-center { fill: #edcbb4; stroke: #a77160; }
.neural-node { fill: #c08369; stroke: #f6e6c9; stroke-width: 3; animation: neural-pulse 3s ease-in-out infinite; }
.neural-arm { fill: none; stroke: #e4cdb5; stroke-width: 32; stroke-linecap: round; }
.neural-wire { fill: none; stroke: #87647d; stroke-width: 3; stroke-dasharray: 3 9; animation: neural-signal 2.4s linear infinite alternate; }
.neural-input { fill: none; stroke: #c18e72; stroke-width: 2; stroke-dasharray: 2 12; animation: neural-signal 2.4s linear infinite; }
@keyframes neural-signal { to { stroke-dashoffset: -72; } }
@keyframes neural-pulse { 0%,80%,100% { opacity: .45; } 35%,50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .neural-panel * { animation: none !important; } }

/* Familiar sticker companions soften the study notes without covering the diagram. */
.neural-companions { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0 2px; border-top: 1px dashed #d9c5ad; }
.neural-buddy { margin: 0; flex: 0 1 96px; text-align: center; }
.neural-buddy img { display: block; width: 62px; height: 62px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(1px 3px 2px #67403222); animation: neural-buddy-nod 3s ease-in-out infinite; animation-delay: var(--buddy-delay); transform-origin: 50% 85%; }
.neural-buddy figcaption { color: #775a50; font-size: 10px; line-height: 1.6; }
.neural-buddy-signal { color: #977089; font-size: 14px; white-space: nowrap; animation: neural-pulse 2.4s ease-in-out infinite; }
.neural-panel .neural-companion-caption { margin: 9px 0 1px; text-align: center; font-size: 11px; color: #806456; }
.neural-companions--2 .neural-buddy img { animation-name: neural-buddy-hop; }
@keyframes neural-buddy-nod { 0%,65%,100% { transform: translateY(0) rotate(-4deg); } 30% { transform: translateY(-5px) rotate(5deg); } }
@keyframes neural-buddy-hop { 0%,65%,100% { transform: translateY(0) scale(1); } 28% { transform: translateY(-7px) scale(1.04,.96); } 45% { transform: translateY(0) scale(.98,1.02); } }
.neural-connector { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 23; pointer-events: none; }
.neural-hotspots .circulation-hotspot[aria-pressed="true"] { border-color: #c59076; background: #9239230a; }
.neural-panel h2 { margin: 8px 0 12px; font-size: 21px; }
@media (max-width: 759px) {
  .neural-panel .neural-diagram { max-height: 145px; }
  .neural-panel .neural-buddy img { width: 46px; height: 46px; }
}

/* Loose cards live on the wooden desktop, outside both folder leaves. */
.desktop-cards { position: fixed; z-index: 9; left: var(--desk-cards-left, 48px); top: var(--desk-cards-top, 37%); width: var(--desk-cards-width, 100px); display: flex; flex-direction: column; align-items: center; gap: var(--desk-cards-gap, 12px); visibility: hidden; pointer-events: none; }
.is-file-open .desktop-cards { visibility: visible; pointer-events: auto; }
/* The card rail uses viewport coordinates, independent of the folder scale. */
.desktop-cards .desk-card { position: relative; left: auto; top: auto; width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; filter: drop-shadow(3px 5px 3px #24150b55); }
.desk-card--warning { transform: rotate(-3deg); }
.desk-card--favorites { transform: rotate(2deg); }
.desk-card--ordinary { transform: rotate(-2deg); }
.detail-clone.desk-card { background: transparent; box-shadow: none; }
@media (max-width: 759px) { .is-file-open .archive-wrap { left: 860px; transform: translateX(-50%) scale(.82); } }

.lights-off .desktop-cards { filter: brightness(.406) saturate(.72); }
.desktop-cards .desk-card { touch-action: none; user-select: none; -webkit-user-select: none; }
.desktop-cards img { -webkit-user-drag: none; }
.desktop-cards .desk-card.is-dragging { filter: drop-shadow(7px 12px 5px #24150b66); }
.desk-card-hotspots { position: fixed; z-index: 20; pointer-events: none; }
.desk-card-touch { position: absolute; border: 1px solid transparent; border-radius: 18px; background: transparent; pointer-events: auto; padding: 0; }
.desk-card-touch:hover,.desk-card-touch:focus-visible,.desk-card-touch[aria-pressed="true"] { border-color: #cda97b70; background: #d9b8810a; }
.desk-card-touch span { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #f7ebd2; color: #fff1d7; background: #96735ec9; font: 17px/20px Georgia; }
.desk-card-guide { position: fixed; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 30px); margin: 0; z-index: 21; color: #e9d7bd; text-align: center; font: 11px/1.7 "Songti SC",serif; pointer-events: none; }
.desk-card-response { position: fixed; left: 50%; transform: translateX(-50%); z-index: 22; display: flex; align-items: center; justify-content: center; gap: 12px; width: max-content; max-width: calc(100vw - 40px); padding: 8px 16px; border: 1px solid #d5bc98; border-radius: 16px 5px; background: #f8edd8; color: #735141; font: 12px/1.7 "Songti SC",serif; box-shadow: 0 6px 20px #160c0840; pointer-events: none; }
.desk-card-response[hidden] { display: none; }
.desk-card-response img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }

/* Quiet staggered arrival; independent translate preserves each paper rotation. */
.desktop-cards { transition: filter 720ms ease; }
.desktop-cards .desk-card { opacity: 0; translate: -4px 2px; transition: opacity 380ms ease-out, translate 520ms cubic-bezier(.22,.61,.36,1); }
.is-file-open .desktop-cards .desk-card { opacity: 1; translate: 0 0; transition-delay: 430ms; }
.is-file-open .desktop-cards .desk-card:nth-child(2) { transition-delay: 510ms; }
.is-file-open .desktop-cards .desk-card:nth-child(3) { transition-delay: 590ms; }
@media (prefers-reduced-motion: reduce) { .desktop-cards, .desktop-cards .desk-card { transition: none !important; translate: none; } }

/* Extend only the wood surface; the composed scene keeps its original bounds. */
.room::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--desktop-extend-y, 0px)) calc(-1 * var(--desktop-extend-x, 0px));
  z-index: -1;
  pointer-events: none;
  background-color: #533a29;
  background-image:
    radial-gradient(ellipse at 50% 38%, rgba(255, 222, 166, 0.1) 0%, transparent 45%, rgba(20, 12, 7, 0.4) 100%),
    linear-gradient(rgba(35, 22, 13, 0.12), rgba(35, 22, 13, 0.12)),
    url("assets/walnut-desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.room::after, .light-off-wash { inset: calc(-1 * var(--desktop-extend-y, 0px)) calc(-1 * var(--desktop-extend-x, 0px)); }
.observation-dialog { width: min(960px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 18px; border: 1px solid #aa8863; border-radius: 7px; background: #241b14; color: #eadcc4; box-shadow: 0 24px 70px #0009; }
.observation-dialog::backdrop { background: #100c09d9; backdrop-filter: blur(5px); }
.observation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.observation-heading h2 { margin: 0; font: 16px/1.6 "Songti SC",serif; letter-spacing: .08em; }
.observation-heading button { border: 1px solid #8c7053; border-radius: 20px; padding: 5px 12px; background: transparent; font-size: 12px; }
.observation-dialog video { display: block; width: 100%; max-height: calc(100dvh - 125px); background: #080605; }

/* The depth scale keeps its original exploration cursor over the global magnifier. */
@media (any-pointer: fine) {
  body.depth-submarine, body.depth-submarine *,
  body.depth-submarine *::before, body.depth-submarine *::after {
    cursor: url("assets/submarine-cursor.svg") 23 18, pointer !important;
  }
}
.sound-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 24; border: 1px solid #b99d744d; border-radius: 20px; padding: 7px 12px; background: #261a10b0; color: #c7b697; font: 11px/1.4 "Songti SC",serif; }

/* The printed backing and the clear outer sleeve are independent layers. */
.sticker-pack > .sticker-pack__backing { position: absolute; left: 7px; top: 18px; width: calc(100% - 14px); height: calc(100% - 30px); object-fit: fill; }
.sticker-pack__sleeve { position: absolute; inset: 0; padding: 0; border: 1px solid #f5f4e968; background: linear-gradient(99deg,#ffffff16,transparent 8% 89%,#f6faff26); box-shadow: inset 2px 0 2px #fff6,inset -2px 0 2px #fff4,2px 4px 5px #160b0733; }
.sticker-pack__sleeve::before { border: 3px double #ffffff29; background: linear-gradient(116deg,transparent 12%,#fff3 12.3%,transparent 12.8% 40%,#fff1 41%,transparent 43%),linear-gradient(76deg,transparent 60%,#ffffff38 60.3%,transparent 61%),linear-gradient(165deg,transparent 80%,#ffffff35 80.4%,transparent 81%); }
.pack-tear-trigger { height: 22px; }
.pack-tear-trigger::after { content: "沿袋口撕开透明塑料袋"; }
.plastic-discard { position: absolute; width: 177px; height: 326px; pointer-events: none; transform-origin: center; filter: drop-shadow(3px 5px 3px #170e0845); }
.plastic-discard svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lights-off .plastic-discard { filter: brightness(.406) saturate(.72) drop-shadow(3px 5px 3px #170e0845); }
.detail-clone .pack-tear-trigger::after { font-size: 4px; padding: 2px 4px; top: -10px; }
.sticker-pack__sleeve::before { border-width: .8px; }

/* Companion studies on the clear desktop to the right of the open folder. */
.observation-cards { position: fixed; z-index: 9; left: var(--observation-left); top: var(--observation-top); width: var(--observation-width); visibility: hidden; pointer-events: none; }
.is-file-open .observation-cards { visibility: visible; pointer-events: auto; }
.observation-card { left: 0; top: 0; width: 100%; background: transparent; box-shadow: none; filter: drop-shadow(2px 4px 3px #24150b55); touch-action: none; user-select: none; -webkit-user-select: none; }
.observation-card--specimen { transform: rotate(3deg); }
.observation-card--suction { left: -8px; top: var(--observation-offset); transform: rotate(-4deg); }
.observation-card::after { display: none; }
.observation-card.is-dragging { filter: drop-shadow(6px 10px 5px #24150b66); }
.lights-off .observation-cards { filter: brightness(.406) saturate(.72); }
