:root {
  --ink: #050707;
  --night: #10191b;
  --deep: #1d3439;
  --moss: #60745f;
  --gold: #d8b66d;
  --gold-bright: #f0d58a;
  --ivory: #f7efdf;
  --muted: #cbbf9f;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(239, 229, 199, 0.2);
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  color: var(--ivory);
}

body {
  overflow: hidden;
}

button {
  appearance: none;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(244, 218, 146, 0.72);
  background:
    linear-gradient(180deg, rgba(69, 53, 29, 0.98), rgba(10, 12, 10, 0.94)),
    rgba(240, 213, 138, 0.26);
  color: #fff9e8;
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 14px/1 Inter, "Microsoft YaHei", sans-serif;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 246, 214, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button:hover,
button:focus-visible {
  background:
    linear-gradient(180deg, rgba(64, 50, 28, 0.96), rgba(18, 20, 17, 0.86)),
    rgba(232, 202, 134, 0.24);
  outline: none;
}

.ghost-button {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.sound-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  border: 1px solid rgba(244, 214, 151, 0.32);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ivory);
  background: rgba(16, 15, 13, 0.62);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.sound-toggle.is-enabled {
  border-color: rgba(246, 211, 132, 0.66);
  color: #ffe3a3;
}

.sound-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.cinema {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.cinema::before,
.cinema::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9vh;
  min-height: 54px;
  background: #030303;
  z-index: 30;
  pointer-events: none;
}

.cinema::before {
  top: 0;
}

.cinema::after {
  bottom: 0;
}

.cinema.intro-playing:not(.intro-ready) .shot,
.cinema.intro-playing:not(.intro-ready) .topline {
  opacity: 0;
  pointer-events: none;
}

.topline {
  position: absolute;
  top: 3.2vh;
  left: 50%;
  z-index: 42;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.grain,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 36;
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.24), transparent 1px),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.18), transparent 1px);
  background-size: 17px 19px, 23px 29px;
}

.vignette {
  z-index: 34;
  background: radial-gradient(circle at 50% 42%, transparent 32%, rgba(0, 0, 0, 0.58) 100%);
}

.opening {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 56%, rgba(224, 191, 112, 0.18), transparent 36%),
    linear-gradient(135deg, #050707, #121a18 54%, #4f4936);
  transition: opacity 1800ms ease;
}

.opening.exiting {
  background: #050505;
}

.opening.done {
  opacity: 0;
  pointer-events: none;
}

.opening.removed {
  display: none;
}

.opening-blackout {
  position: absolute;
  inset: 0;
  z-index: 82;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1700ms ease;
}

.opening.exiting .opening-blackout {
  opacity: 1;
}

.opening-frame {
  position: relative;
  z-index: 81;
  display: grid;
  place-items: center;
  width: min(760px, 82vw);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(236, 212, 137, 0.18);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  transition: opacity 1700ms ease, transform 1700ms ease, filter 1700ms ease;
}

.opening.exiting .opening-frame {
  opacity: 0;
  transform: scale(1.035);
  filter: blur(12px);
}

.opening-frame::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(236, 212, 137, 0), rgba(236, 212, 137, 0.12));
}

.opening-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(244, 239, 229, 0.09) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 0 49.8%, rgba(244, 239, 229, 0.07) 50%, transparent 50.2%);
}

.opening-curtain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent 34%, transparent 66%, rgba(0, 0, 0, 0.6)),
    radial-gradient(circle at 50% 100%, rgba(234, 209, 139, 0.2), transparent 42%);
  animation: curtainOpen 16s ease forwards;
}

.opening-light {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 24%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform-origin: left center;
  animation: lightTravel 16s ease-in-out forwards;
}

.opening-fireflies {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.opening-fireflies span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 24px var(--gold-bright);
  opacity: 0;
  animation: fireflyRise 16s ease-in-out forwards;
}

.opening-fireflies span:nth-child(1) { left: 18%; bottom: 18%; animation-delay: 0.8s; }
.opening-fireflies span:nth-child(2) { left: 34%; bottom: 28%; animation-delay: 2.4s; }
.opening-fireflies span:nth-child(3) { left: 52%; bottom: 20%; animation-delay: 4s; }
.opening-fireflies span:nth-child(4) { left: 68%; bottom: 30%; animation-delay: 5.6s; }
.opening-fireflies span:nth-child(5) { left: 80%; bottom: 19%; animation-delay: 7.2s; }

.opening-line {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 34px;
  color: #f6edd7;
  text-align: center;
  font: 700 clamp(28px, 5vw, 58px)/1.35 Georgia, "Times New Roman", serif;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  transition: opacity 1000ms ease, filter 1000ms ease, transform 1000ms ease;
  animation: lineBreathe 5.5s ease-in-out infinite;
}

.opening-line > span {
  display: inline;
}

.opening-line.line-changing {
  opacity: 0;
  filter: blur(6px);
}

.opening-line small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font: 400 13px/1.4 Inter, "Microsoft YaHei", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.opening-caption {
  position: absolute;
  bottom: 13vh;
  left: 50%;
  z-index: 83;
  margin: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.skip-intro {
  position: absolute;
  right: 6vw;
  bottom: 6vh;
  z-index: 84;
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.opening.exiting .opening-caption {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

.opening.exiting .skip-intro {
  opacity: 0;
  transform: translateY(12px);
}

.shot-stage {
  position: absolute;
  inset: 0;
  z-index: 38;
}

.shot {
  position: absolute;
  inset: 0;
  z-index: 38;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.035);
  filter: blur(8px);
  transition: opacity 980ms ease, transform 1400ms ease, filter 1100ms ease;
}

.shot.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  filter: blur(0);
}

.shot.active .shot-bg {
  animation: sceneCameraIn 1800ms cubic-bezier(0.2, 0.75, 0.18, 1) both;
}

.shot.active .lamp,
.shot.active .projector-glow {
  animation: lightBloomIn 1900ms ease both;
}

.shot.active .road-line {
  animation: roadLineIn 1700ms ease 180ms both;
}

.shot.active .mist {
  animation: mistIn 2200ms ease both;
}

.shot.active .copy-block h1,
.shot.active .game-panel h2,
.shot.active .memory-panel h2,
.shot.active .finale-panel h2 {
  animation: titleEnter 1100ms cubic-bezier(0.18, 0.72, 0.16, 1) 360ms both;
}

.shot.active .copy-block p,
.shot.active .game-panel p,
.shot.active .memory-panel p,
.shot.active .finale-panel p {
  animation: textEnter 1100ms cubic-bezier(0.18, 0.72, 0.16, 1) 620ms both;
}

.shot.active .scene-slate {
  animation: slateEnter 980ms cubic-bezier(0.18, 0.72, 0.16, 1) 300ms both;
}

.shot.active .visual,
.shot.active .memory-visual {
  animation: visualEnter 1500ms cubic-bezier(0.18, 0.72, 0.16, 1) 240ms both;
}

.shot.active .detail-strip span {
  animation: detailCueIn 900ms cubic-bezier(0.18, 0.72, 0.16, 1) both;
}

.shot.active .detail-strip span:nth-child(1) {
  animation-delay: 760ms;
}

.shot.active .detail-strip span:nth-child(2) {
  animation-delay: 900ms;
}

.shot.active .detail-strip span:nth-child(3) {
  animation-delay: 1040ms;
}

.shot.active .prop-field span {
  animation: propCueIn 1300ms cubic-bezier(0.18, 0.72, 0.16, 1) both;
}

.shot.active .prop-field span:nth-child(1) {
  animation-delay: 720ms;
}

.shot.active .prop-field span:nth-child(2) {
  animation-delay: 940ms;
}

.shot.active .prop-field span:nth-child(3) {
  animation-delay: 1160ms;
}

.shot.active .memory-fragments span {
  animation: fragmentEnter 900ms cubic-bezier(0.18, 0.72, 0.16, 1) both;
}

.shot.active .memory-fragments span:nth-child(1) {
  animation-delay: 840ms;
}

.shot.active .memory-fragments span:nth-child(2) {
  animation-delay: 990ms;
}

.shot.active .memory-fragments span:nth-child(3) {
  animation-delay: 1140ms;
}

.shot.active .game-panel,
.shot.active .memory-panel,
.shot.active .finale-panel,
.shot.active .memory-art {
  animation: panelEnter 1250ms cubic-bezier(0.18, 0.72, 0.16, 1) 540ms both;
}

.shot.active .interaction-zone,
.shot.active .progress-track,
.shot.active .soft-feedback,
.shot.active .keepsake-strip {
  animation: textEnter 1000ms ease 900ms both;
}

.shot.active .shot-actions {
  animation: controlsEnter 520ms cubic-bezier(0.18, 0.72, 0.16, 1) 260ms both;
}

.shot.active .caption {
  animation: captionEnter 1100ms ease 1180ms both;
}

.shot.leaving {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(10px);
  transition: opacity 720ms ease, transform 720ms ease, filter 720ms ease;
}

.shot.entering {
  opacity: 0;
  transform: scale(1.035);
  filter: blur(8px);
}

.shot-transition {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity 720ms ease;
}

.shot-transition.active {
  opacity: 0.92;
}

.shot-transition span {
  position: absolute;
  left: -20vw;
  right: -20vw;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(240, 213, 138, 0.88), transparent);
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.shot-transition.active span {
  animation: shotLightSweep 1400ms ease forwards;
}

.shot-inner {
  position: absolute;
  inset: 9vh 0;
  overflow: hidden;
}

.shot-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: center;
}

.shot-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 7, 0.08), rgba(5, 7, 7, 0.74));
}

.shot-road {
  background: linear-gradient(135deg, var(--night), var(--deep) 48%, #8d805e);
}

.shot-window {
  background: linear-gradient(135deg, #0a1113, #1d3439 52%, #796f55);
}

.shot-projector {
  background: linear-gradient(135deg, #151411, #3b3328 50%, #866f48);
}

.shot-finale {
  background:
    radial-gradient(circle at 50% 42%, rgba(224, 191, 112, 0.22), transparent 38%),
    linear-gradient(135deg, #0d1110, #26352e 55%, #b59b62);
}

.motif-light .shot-bg {
  background:
    radial-gradient(circle at 72% 34%, rgba(245, 220, 143, 0.32), transparent 26%),
    linear-gradient(135deg, #07100f, #17312f 48%, #9a8b65);
}

.motif-road .shot-bg {
  background:
    linear-gradient(115deg, rgba(240, 213, 138, 0.12), transparent 44%),
    linear-gradient(135deg, #070a0c, #132023 54%, #756942);
}

.motif-window .shot-bg {
  background:
    radial-gradient(circle at 78% 35%, rgba(157, 194, 191, 0.2), transparent 28%),
    linear-gradient(135deg, #061114, #20363a 52%, #4e665e);
}

.motif-pulse .shot-bg {
  background:
    radial-gradient(circle at 50% 48%, rgba(240, 213, 138, 0.2), transparent 38%),
    linear-gradient(135deg, #07090b, #182228 55%, #6c6048);
}

.motif-photo .shot-bg {
  background:
    radial-gradient(circle at 76% 38%, rgba(234, 223, 190, 0.24), transparent 30%),
    linear-gradient(135deg, #0f0d0b, #342d25 52%, #8c7651);
}

.motif-drawer .shot-bg {
  background:
    radial-gradient(circle at 22% 58%, rgba(240, 213, 138, 0.22), transparent 26%),
    linear-gradient(135deg, #0b0d0b, #262217 54%, #705b3c);
}

.motif-umbrella .shot-bg {
  background:
    radial-gradient(circle at 50% 36%, rgba(247, 239, 223, 0.18), transparent 30%),
    linear-gradient(135deg, #071012, #183036 54%, #536757);
}

.motif-secret .shot-bg {
  background:
    radial-gradient(circle at 42% 48%, rgba(240, 213, 138, 0.16), transparent 38%),
    linear-gradient(135deg, #060607, #171311 50%, #4f4534);
}

.motif-future .shot-bg {
  background:
    radial-gradient(circle at 78% 24%, rgba(168, 191, 154, 0.2), transparent 30%),
    linear-gradient(135deg, #070d0c, #162b27 56%, #7e8260);
}

.motif-final .shot-bg {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 235, 171, 0.34), transparent 32%),
    linear-gradient(135deg, #070707, #1d1c17 52%, #a38850);
}

.lamp {
  position: absolute;
  width: clamp(210px, 25vw, 380px);
  height: clamp(210px, 25vw, 380px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 212, 137, 0.78), rgba(236, 212, 137, 0.22) 42%, transparent 72%);
  filter: blur(2px);
  transform-origin: center;
}

.road-line {
  position: absolute;
  left: 12vw;
  bottom: 24vh;
  width: 52vw;
  height: 4px;
  background: linear-gradient(90deg, rgba(220, 186, 102, 0), rgba(220, 186, 102, 0.9), rgba(220, 186, 102, 0));
  box-shadow: 12vw -5vh 0 rgba(220, 186, 102, 0.22), 26vw -2vh 0 rgba(220, 186, 102, 0.12);
  transform: rotate(-8deg);
}

.mist {
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: 0;
  height: 34vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(219, 229, 216, 0.16), rgba(255, 255, 255, 0));
  filter: blur(18px);
}

.rain {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(110deg, transparent 0 46%, rgba(235, 242, 236, 0.22) 48%, transparent 50%);
  background-size: 42px 90px;
  opacity: 0.16;
}

.projector-glow {
  position: absolute;
  right: 10vw;
  bottom: 18vh;
  width: clamp(190px, 22vw, 330px);
  height: clamp(190px, 22vw, 330px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c2, #c19a4e 50%, rgba(193, 154, 78, 0.06));
  box-shadow: 0 0 80px rgba(222, 184, 96, 0.28);
  transform-origin: center;
}

.motion-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

.motion-layer i {
  position: absolute;
  display: block;
  opacity: 0;
}

.motion-fireflies .motion-layer i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6e6a5;
  box-shadow: 0 0 20px rgba(246, 230, 165, 0.86);
  animation: fireflyRise 6.8s ease-in-out infinite;
}

.motion-fireflies .motion-layer i:nth-child(1) { left: 56vw; bottom: 24vh; animation-delay: 0.2s; }
.motion-fireflies .motion-layer i:nth-child(2) { left: 66vw; bottom: 18vh; animation-delay: 1.4s; }
.motion-fireflies .motion-layer i:nth-child(3) { left: 74vw; bottom: 34vh; animation-delay: 2.3s; }
.motion-fireflies .motion-layer i:nth-child(4) { left: 61vw; bottom: 45vh; animation-delay: 3.2s; }

.motion-road-lamps .motion-layer i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f0d58a;
  box-shadow: 0 0 34px rgba(240, 213, 138, 0.78);
  animation: roadLampBlink 4.8s ease-in-out infinite;
}

.motion-road-lamps .motion-layer i:nth-child(1) { left: 42vw; top: 58vh; animation-delay: 0.1s; }
.motion-road-lamps .motion-layer i:nth-child(2) { left: 58vw; top: 48vh; animation-delay: 0.8s; }
.motion-road-lamps .motion-layer i:nth-child(3) { left: 72vw; top: 36vh; animation-delay: 1.5s; }

.motion-rain-window .motion-layer i {
  width: 1px;
  height: 18vh;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(247, 239, 223, 0.42), transparent);
  transform: rotate(12deg);
  animation: windowRainSlide 4.6s linear infinite;
}

.motion-rain-window .motion-layer i:nth-child(1) { right: 16vw; top: -12vh; animation-delay: 0s; }
.motion-rain-window .motion-layer i:nth-child(2) { right: 24vw; top: -18vh; animation-delay: 1.1s; }
.motion-rain-window .motion-layer i:nth-child(3) { right: 32vw; top: -10vh; animation-delay: 2.2s; }
.motion-rain-window .motion-layer i:nth-child(4) { right: 10vw; top: -22vh; animation-delay: 3.3s; }

.motion-pulse-wave .motion-layer i {
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(240, 213, 138, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseWave 5.2s ease-out infinite;
}

.motion-pulse-wave .motion-layer i:nth-child(2) { animation-delay: 1.25s; }
.motion-pulse-wave .motion-layer i:nth-child(3) { animation-delay: 2.5s; }

.motion-photo-drift .motion-layer i {
  width: clamp(88px, 10vw, 150px);
  aspect-ratio: 4 / 3;
  border: 8px solid rgba(247, 239, 223, 0.74);
  border-bottom-width: 20px;
  background: linear-gradient(135deg, rgba(240, 213, 138, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  animation: photoDrift 7s ease-in-out infinite;
}

.motion-photo-drift .motion-layer i:nth-child(1) { right: 12vw; top: 20vh; transform: rotate(-8deg); animation-delay: 0s; }
.motion-photo-drift .motion-layer i:nth-child(2) { right: 26vw; top: 42vh; transform: rotate(5deg); animation-delay: 1.3s; }
.motion-photo-drift .motion-layer i:nth-child(3) { right: 8vw; top: 56vh; transform: rotate(9deg); animation-delay: 2.5s; }

.motion-drawer-props .motion-layer i {
  width: 76px;
  height: 38px;
  border: 1px solid rgba(247, 239, 223, 0.22);
  border-radius: 8px;
  background: rgba(240, 213, 138, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  animation: drawerPropFloat 6.2s ease-in-out infinite;
}

.motion-drawer-props .motion-layer i:nth-child(1) { left: 14vw; top: 48vh; animation-delay: 0.2s; }
.motion-drawer-props .motion-layer i:nth-child(2) { left: 27vw; top: 39vh; animation-delay: 1.4s; }
.motion-drawer-props .motion-layer i:nth-child(3) { left: 21vw; top: 61vh; animation-delay: 2.2s; }

.motion-umbrella-rain .motion-layer i {
  width: 1px;
  height: 16vh;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(247, 239, 223, 0), rgba(247, 239, 223, 0.44), rgba(247, 239, 223, 0));
  animation: umbrellaRainDrop 3.8s linear infinite;
}

.motion-umbrella-rain .motion-layer i:nth-child(1) { left: 38vw; top: 22vh; animation-delay: 0.1s; }
.motion-umbrella-rain .motion-layer i:nth-child(2) { left: 48vw; top: 18vh; animation-delay: 0.9s; }
.motion-umbrella-rain .motion-layer i:nth-child(3) { left: 58vw; top: 22vh; animation-delay: 1.7s; }
.motion-umbrella-rain .motion-layer i:nth-child(4) { left: 66vw; top: 28vh; animation-delay: 2.5s; }

.motion-hidden-words .motion-layer i {
  left: 18vw;
  width: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(240, 213, 138, 0.9), transparent);
  animation: hiddenWordReveal 5.8s ease-in-out infinite;
}

.motion-hidden-words .motion-layer i:nth-child(1) { top: 42vh; max-width: 26vw; animation-delay: 0s; }
.motion-hidden-words .motion-layer i:nth-child(2) { top: 48vh; max-width: 38vw; animation-delay: 1.2s; }
.motion-hidden-words .motion-layer i:nth-child(3) { top: 54vh; max-width: 30vw; animation-delay: 2.4s; }

.motion-wish-orbit .motion-layer i {
  left: 68vw;
  top: 38vh;
  width: 76px;
  height: 42px;
  border: 1px solid rgba(240, 213, 138, 0.28);
  border-radius: 12px;
  background: rgba(247, 239, 223, 0.08);
  transform-origin: -120px 90px;
  animation: wishOrbit 9s linear infinite;
}

.motion-wish-orbit .motion-layer i:nth-child(2) { animation-delay: -2.2s; }
.motion-wish-orbit .motion-layer i:nth-child(3) { animation-delay: -4.4s; }
.motion-wish-orbit .motion-layer i:nth-child(4) { animation-delay: -6.6s; }

.motion-final-beam .motion-layer i {
  left: 50%;
  top: -12vh;
  width: 1px;
  height: 124vh;
  background: linear-gradient(180deg, transparent, rgba(240, 213, 138, 0.5), transparent);
  transform-origin: center;
  animation: finalBeamBreathe 6.4s ease-in-out infinite;
}

.motion-final-beam .motion-layer i:nth-child(1) { transform: translateX(-50%) rotate(-8deg); animation-delay: 0s; }
.motion-final-beam .motion-layer i:nth-child(2) { transform: translateX(-50%) rotate(0deg); animation-delay: 1.2s; }
.motion-final-beam .motion-layer i:nth-child(3) { transform: translateX(-50%) rotate(8deg); animation-delay: 2.4s; }

.copy-block {
  position: absolute;
  left: 8vw;
  bottom: 17vh;
  z-index: 42;
  max-width: 760px;
}

.scene-slate {
  position: absolute;
  left: 8vw;
  top: 12vh;
  z-index: 44;
  max-width: min(420px, 42vw);
  color: rgba(247, 239, 223, 0.94);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.54);
}

.scene-slate span {
  display: inline-block;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(240, 213, 138, 0.36);
}

.memory-slate {
  position: static;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  max-width: none;
  margin-bottom: 0;
  color: rgba(247, 239, 223, 0.82);
  transform: none;
}

.memory-layout .memory-slate span {
  border-bottom-color: rgba(240, 213, 138, 0.34);
}

.shot.active .memory-layout .memory-slate {
  animation: none;
}

.prop-field {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.prop-field span {
  position: absolute;
  min-width: 64px;
  padding: 7px 10px;
  border: 1px solid rgba(247, 239, 223, 0.16);
  border-radius: 999px;
  background: rgba(7, 11, 10, 0.26);
  color: rgba(247, 239, 223, 0.72);
  font-size: 12px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.prop-field span:nth-child(1) {
  left: 60vw;
  top: 24vh;
}

.prop-field span:nth-child(2) {
  left: 70vw;
  top: 49vh;
}

.prop-field span:nth-child(3) {
  left: 49vw;
  top: 66vh;
}

.scene-road-low .prop-field span:nth-child(1) { left: 18vw; top: 60vh; }
.scene-road-low .prop-field span:nth-child(2) { left: 52vw; top: 45vh; }
.scene-road-low .prop-field span:nth-child(3) { left: 76vw; top: 30vh; }

.scene-window-split .prop-field span:nth-child(1) { left: 66vw; top: 26vh; }
.scene-window-split .prop-field span:nth-child(2) { left: 74vw; top: 45vh; }
.scene-window-split .prop-field span:nth-child(3) { left: 58vw; top: 66vh; }

.scene-centered-pulse .prop-field span:nth-child(1) { left: 18vw; top: 38vh; }
.scene-centered-pulse .prop-field span:nth-child(2) { left: 72vw; top: 42vh; }
.scene-centered-pulse .prop-field span:nth-child(3) { left: 46vw; top: 70vh; }

.scene-photo-stage .prop-field span:nth-child(1) { left: 64vw; top: 21vh; }
.scene-photo-stage .prop-field span:nth-child(2) { left: 76vw; top: 44vh; }
.scene-photo-stage .prop-field span:nth-child(3) { left: 56vw; top: 63vh; }

.scene-drawer-right .prop-field span:nth-child(1) { left: 12vw; top: 40vh; }
.scene-drawer-right .prop-field span:nth-child(2) { left: 29vw; top: 34vh; }
.scene-drawer-right .prop-field span:nth-child(3) { left: 21vw; top: 66vh; }

.scene-rain-shelter .prop-field span:nth-child(1) { left: 33vw; top: 33vh; }
.scene-rain-shelter .prop-field span:nth-child(2) { left: 48vw; top: 29vh; }
.scene-rain-shelter .prop-field span:nth-child(3) { left: 62vw; top: 34vh; }

.scene-hidden-line .prop-field span:nth-child(1) { left: 18vw; top: 40vh; }
.scene-hidden-line .prop-field span:nth-child(2) { left: 50vw; top: 47vh; }
.scene-hidden-line .prop-field span:nth-child(3) { left: 74vw; top: 54vh; }

.scene-future-horizon .prop-field span:nth-child(1) { left: 58vw; top: 39vh; }
.scene-future-horizon .prop-field span:nth-child(2) { left: 73vw; top: 29vh; }
.scene-future-horizon .prop-field span:nth-child(3) { left: 66vw; top: 62vh; }

.scene-final-center .prop-field span:nth-child(1) { left: 22vw; top: 32vh; }
.scene-final-center .prop-field span:nth-child(2) { left: 46vw; top: 21vh; }
.scene-final-center .prop-field span:nth-child(3) { left: 69vw; top: 32vh; }

.detail-strip {
  position: absolute;
  z-index: 44;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: min(620px, 58vw);
}

.detail-strip span,
.memory-fragments span {
  border: 1px solid rgba(247, 239, 223, 0.14);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(247, 239, 223, 0.07);
  color: rgba(247, 239, 223, 0.82);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.visual,
.memory-visual {
  position: absolute;
  z-index: 16;
  pointer-events: none;
}

.visual-arc {
  right: 10vw;
  top: 18vh;
  width: min(420px, 32vw);
  height: min(420px, 32vw);
  border: 1px solid rgba(240, 213, 138, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(240, 213, 138, 0.08);
}

.visual-arc::before,
.visual-arc::after,
.visual-window-frame::before,
.visual-photo-stack::before,
.visual-drawer::before,
.visual-umbrella::before,
.visual-hidden-line::before,
.visual-horizon::before,
.memory-ticket::before,
.memory-window::before,
.memory-gallery-strip::before,
.memory-table::before,
.memory-rain-arc::before,
.memory-letter::before,
.memory-wish-orbit::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.visual-arc::before {
  left: 50%;
  top: 50%;
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 213, 138, 0.28), transparent 68%);
  transform: translate(-50%, -50%);
}

.visual-arc::after {
  right: 18%;
  top: 24%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f7efdf;
  box-shadow: 0 0 28px rgba(240, 213, 138, 0.78);
}

.visual-road-marker {
  left: 12vw;
  bottom: 16vh;
  width: 54vw;
  height: 16px;
  background: repeating-linear-gradient(90deg, rgba(240, 213, 138, 0.9) 0 48px, transparent 48px 90px);
  transform: perspective(280px) rotateX(58deg) rotateZ(-4deg);
  opacity: 0.72;
}

.visual-window-frame {
  right: 8vw;
  top: 14vh;
  width: min(470px, 36vw);
  height: 54vh;
  border: 1px solid rgba(247, 239, 223, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
}

.visual-window-frame::before {
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: rgba(247, 239, 223, 0.18);
  box-shadow: 0 -16vh 0 rgba(247, 239, 223, 0.1), 0 16vh 0 rgba(247, 239, 223, 0.1);
}

.visual-pulse-ring {
  left: 50%;
  top: 48%;
  width: min(520px, 44vw);
  height: min(520px, 44vw);
  border: 1px solid rgba(240, 213, 138, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 80px rgba(240, 213, 138, 0.12);
}

.visual-photo-stack,
.visual-drawer,
.visual-umbrella,
.visual-hidden-line,
.visual-horizon,
.visual-final-beam {
  background: rgba(247, 239, 223, 0.08);
  border: 1px solid rgba(247, 239, 223, 0.14);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.visual-photo-stack {
  right: 12vw;
  top: 18vh;
  width: min(370px, 30vw);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  transform: rotate(-5deg);
}

.visual-photo-stack::before {
  inset: 18px;
  border: 1px solid rgba(247, 239, 223, 0.18);
  background:
    linear-gradient(135deg, rgba(247, 239, 223, 0.18), transparent),
    radial-gradient(circle at 70% 35%, rgba(240, 213, 138, 0.32), transparent 24%);
}

.visual-drawer {
  left: 9vw;
  bottom: 18vh;
  width: min(420px, 34vw);
  height: 180px;
  border-radius: 24px;
}

.visual-drawer::before {
  inset: 26px;
  border-top: 1px solid rgba(247, 239, 223, 0.16);
  border-bottom: 1px solid rgba(247, 239, 223, 0.1);
  box-shadow: 0 42px 0 rgba(247, 239, 223, 0.08), 0 84px 0 rgba(247, 239, 223, 0.08);
}

.visual-umbrella {
  left: 50%;
  top: 18vh;
  width: min(500px, 48vw);
  height: 240px;
  border-radius: 240px 240px 28px 28px;
  transform: translateX(-50%);
}

.visual-umbrella::before {
  left: 50%;
  bottom: -86px;
  width: 2px;
  height: 110px;
  background: linear-gradient(180deg, rgba(247, 239, 223, 0.32), transparent);
}

.visual-hidden-line {
  left: 15vw;
  top: 44vh;
  width: 70vw;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(240, 213, 138, 0.78), transparent);
}

.visual-horizon {
  left: 0;
  right: 0;
  bottom: 18vh;
  height: 120px;
  border-width: 1px 0 0;
  background: linear-gradient(180deg, rgba(240, 213, 138, 0.16), transparent);
}

.visual-horizon::before {
  right: 18vw;
  top: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 213, 138, 0.5), transparent 68%);
}

.visual-final-beam {
  left: 50%;
  top: 0;
  width: min(360px, 30vw);
  height: 100vh;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(240, 213, 138, 0.32), rgba(240, 213, 138, 0.02));
  border: 0;
  filter: blur(18px);
}

.scene-wide-left .copy-block {
  left: 8vw;
  bottom: 15vh;
  max-width: 720px;
}

.scene-wide-left .scene-slate {
  left: 8vw;
  top: 14vh;
}

.scene-wide-left .detail-strip {
  left: 8vw;
  top: 24vh;
}

.scene-wide-left .shot-actions {
  right: auto;
  left: 8vw;
  bottom: 7vh;
}

.scene-road-low .copy-block {
  left: 9vw;
  bottom: 32vh;
  max-width: 620px;
}

.scene-road-low .scene-slate {
  left: auto;
  right: 9vw;
  top: 15vh;
  text-align: right;
}

.scene-road-low .detail-strip {
  left: 9vw;
  bottom: 22vh;
}

.scene-road-low .shot-actions {
  right: auto;
  left: 9vw;
}

.scene-window-split .copy-block {
  left: 9vw;
  top: 17vh;
  bottom: auto;
  max-width: 520px;
}

.scene-window-split .scene-slate {
  right: 12vw;
  left: auto;
  top: 18vh;
  text-align: right;
}

.scene-window-split .detail-strip {
  right: 10vw;
  bottom: 18vh;
  flex-direction: column;
  align-items: flex-end;
}

.scene-window-split .shot-actions {
  right: auto;
  left: 9vw;
  bottom: 17vh;
}

.scene-centered-pulse .copy-block,
.scene-final-center .copy-block {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: min(780px, 78vw);
  max-width: none;
  text-align: center;
  transform: translate(-50%, -50%);
}

.scene-centered-pulse .scene-slate,
.scene-final-center .scene-slate {
  left: 50%;
  top: 14vh;
  text-align: center;
  transform: translateX(-50%);
}

.scene-centered-pulse .detail-strip,
.scene-final-center .detail-strip {
  left: 50%;
  bottom: 20vh;
  justify-content: center;
  transform: translateX(-50%);
}

.scene-centered-pulse .copy-block p,
.scene-final-center .copy-block p {
  margin: 0 auto;
}

.scene-centered-pulse .shot-actions,
.scene-final-center .shot-actions {
  left: 50%;
  right: auto;
  justify-content: center;
  transform: translateX(-50%);
}

.scene-photo-stage .copy-block {
  left: 8vw;
  top: 19vh;
  bottom: auto;
  max-width: 520px;
}

.scene-photo-stage .scene-slate {
  left: auto;
  right: 11vw;
  top: 14vh;
  text-align: right;
}

.scene-photo-stage .detail-strip {
  left: 8vw;
  top: 53vh;
  flex-direction: column;
}

.scene-photo-stage .shot-actions {
  left: 8vw;
  right: auto;
}

.scene-drawer-right .copy-block {
  right: 8vw;
  left: auto;
  bottom: 21vh;
  max-width: 560px;
  text-align: right;
}

.scene-drawer-right .scene-slate {
  left: 9vw;
  top: 17vh;
}

.scene-drawer-right .detail-strip {
  right: 8vw;
  bottom: 42vh;
  justify-content: flex-end;
}

.scene-drawer-right .copy-block p {
  margin-left: auto;
}

.scene-drawer-right .shot-actions {
  left: auto;
  right: 8vw;
}

.scene-rain-shelter .copy-block {
  left: 50%;
  bottom: 16vh;
  width: min(820px, 82vw);
  max-width: none;
  text-align: center;
  transform: translateX(-50%);
}

.scene-rain-shelter .scene-slate {
  left: 50%;
  top: 12vh;
  text-align: center;
  transform: translateX(-50%);
}

.scene-rain-shelter .detail-strip {
  left: 50%;
  bottom: 35vh;
  justify-content: center;
  transform: translateX(-50%);
}

.scene-rain-shelter .copy-block p {
  margin: 0 auto;
}

.scene-rain-shelter .shot-actions {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.scene-hidden-line .copy-block {
  left: 14vw;
  top: 24vh;
  bottom: auto;
  max-width: 680px;
}

.scene-hidden-line .scene-slate {
  right: 14vw;
  left: auto;
  top: 16vh;
  text-align: right;
}

.scene-hidden-line .detail-strip {
  left: 14vw;
  bottom: 19vh;
}

.scene-hidden-line .shot-actions {
  right: auto;
  left: 14vw;
  bottom: 12vh;
}

.scene-future-horizon .copy-block {
  left: 12vw;
  bottom: 22vh;
  max-width: 760px;
}

.scene-future-horizon .scene-slate {
  left: 12vw;
  top: 14vh;
}

.scene-future-horizon .detail-strip {
  right: 12vw;
  bottom: 28vh;
  flex-direction: column;
  align-items: flex-end;
}

.scene-future-horizon .shot-actions {
  right: 12vw;
}

.copy-block h1 {
  margin: 0 0 24px;
  font: 700 clamp(42px, 7vw, 92px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  color: var(--ivory);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.shot.active .copy-block,
.shot.active .copy-block h1,
.shot.active .copy-block p {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.shot.active .scene-layout .shot-actions,
.shot.active .memory-layout .shot-actions,
.shot.active .finale-panel {
  opacity: 1 !important;
  visibility: visible !important;
}

.shot.active .scene-slate,
.shot.active .detail-strip span,
.shot.active .prop-field span,
.shot.active .memory-fragments span,
.shot.active .shot-actions button {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.preview-mode .shot.active .copy-block h1,
.preview-mode .shot.active .copy-block p,
.preview-mode .shot.active .scene-slate,
.preview-mode .shot.active .detail-strip span,
.preview-mode .shot.active .prop-field span,
.preview-mode .shot.active .memory-panel,
.preview-mode .shot.active .memory-panel h2,
.preview-mode .shot.active .memory-panel p,
.preview-mode .shot.active .memory-fragments span,
.preview-mode .shot.active .memory-art,
.preview-mode .shot.active .shot-actions,
.preview-mode .shot.active .caption {
  opacity: 1;
  visibility: visible;
  filter: none;
  animation-duration: 1ms;
  animation-delay: 0ms;
}

.copy-block p {
  max-width: min(680px, 100%);
  margin: 0;
  color: #efe4cf;
  font-size: clamp(17px, 1.65vw, 24px);
  line-height: 1.85;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.48);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shot-actions {
  position: absolute;
  right: 8vw;
  bottom: 15vh;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: min(520px, 84vw);
}

.caption {
  position: absolute;
  left: 50%;
  bottom: 4.1vh;
  z-index: 42;
  width: min(760px, 84vw);
  margin: 0;
  transform: translateX(-50%);
  color: #efe7d9;
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
}

.game-panel,
.memory-panel,
.finale-panel {
  position: absolute;
  z-index: 24;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 10, 9, 0.34);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.game-panel {
  top: 18vh;
  right: 8vw;
  width: min(460px, 38vw);
  min-height: 320px;
  padding: 30px;
}

.game-panel h2,
.memory-panel h2,
.finale-panel h2 {
  margin: 0 0 18px;
  color: var(--ivory);
  font: 700 clamp(26px, 3vw, 42px)/1.24 Georgia, "Times New Roman", serif;
}

.game-panel p,
.memory-panel p,
.finale-panel p {
  margin: 0 0 24px;
  color: #d9cfbd;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.interaction-zone {
  position: relative;
  min-height: 148px;
  margin: 22px 0;
}

.light-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4b8, #d7b667 60%, rgba(215, 182, 103, 0.2));
  box-shadow: 0 0 28px rgba(240, 213, 138, 0.72);
}

.light-dot.used {
  opacity: 0.25;
  pointer-events: none;
}

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

.choice {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f6edd7;
  font-size: 13px;
  line-height: 1.4;
}

.choice.selected {
  border-color: rgba(232, 202, 134, 0.66);
  background: rgba(232, 202, 134, 0.2);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8ea879, var(--gold));
  transition: width 420ms ease;
}

.soft-feedback {
  min-height: 24px;
  margin-top: 12px;
  color: #f3e1aa;
  font-size: 13px;
  line-height: 1.5;
}

.memory-panel {
  top: 18vh;
  left: 8vw;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  row-gap: 22px;
  width: min(560px, 44vw);
  padding: 32px 34px 30px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(247, 239, 223, 0.14), rgba(247, 239, 223, 0.035)),
    rgba(8, 10, 9, 0.26);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.memory-copy {
  z-index: 46;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.memory-copy h2,
.memory-copy p,
.memory-copy .memory-slate,
.memory-copy .memory-fragments,
.memory-copy .keepsake-strip {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.memory-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(240, 213, 138, 0.74), transparent);
  opacity: 0.72;
}

.memory-panel h2 {
  margin: 0;
  color: var(--ivory);
  font: 700 clamp(22px, 2.4vw, 34px)/1.2 Georgia, "Times New Roman", serif;
}

.memory-panel p {
  margin: 0;
  color: #d9cfbd;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.memory-panel h2,
.memory-panel p,
.memory-panel .memory-slate,
.memory-panel .memory-fragments,
.memory-panel .keepsake-strip {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
}

.memory-polaroid-right .memory-panel {
  left: 8vw;
  top: 16vh;
  transform: none;
}

.memory-polaroid-right .memory-fragments {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.memory-polaroid-right .memory-fragments span {
  max-width: 100%;
}

.memory-polaroid-right .memory-art {
  right: 11vw;
  top: 18vh;
}

.memory-ticket-left .memory-panel {
  right: 9vw;
  left: auto;
  top: 22vh;
  transform: rotate(1.2deg);
}

.memory-ticket-left .memory-art {
  left: 10vw;
  right: auto;
  top: 24vh;
  transform: rotate(4deg);
}

.memory-glass-note .memory-panel {
  left: 50%;
  top: 17vh;
  width: min(680px, 58vw);
  transform: translateX(-50%);
  background:
    linear-gradient(135deg, rgba(168, 202, 198, 0.14), rgba(247, 239, 223, 0.035)),
    rgba(8, 10, 9, 0.24);
}

.memory-glass-note .memory-art {
  right: 8vw;
  bottom: 16vh;
  top: auto;
  width: min(300px, 24vw);
  opacity: 0.7;
}

.memory-sound-wave .memory-panel {
  left: 50%;
  top: 50%;
  width: min(720px, 72vw);
  text-align: center;
  transform: translate(-50%, -50%);
}

.memory-sound-wave .keepsake-strip {
  justify-content: center;
}

.memory-gallery .memory-panel {
  left: 8vw;
  bottom: 16vh;
  top: auto;
  transform: rotate(-0.8deg);
}

.memory-gallery .memory-art {
  right: 9vw;
  top: 15vh;
  width: min(430px, 34vw);
}

.memory-object-table .memory-panel {
  right: 8vw;
  left: auto;
  bottom: 16vh;
  top: auto;
  text-align: right;
}

.memory-object-table .memory-panel::before {
  left: auto;
  right: 0;
}

.memory-object-table .keepsake-strip {
  justify-content: flex-end;
}

.memory-object-table .memory-art {
  left: 9vw;
  right: auto;
  top: 20vh;
}

.memory-umbrella-wide .memory-panel {
  left: 50%;
  top: 18vh;
  width: min(840px, 78vw);
  text-align: center;
  transform: translateX(-50%);
}

.memory-umbrella-wide .keepsake-strip {
  justify-content: center;
}

.memory-umbrella-wide .memory-art {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 15vh;
  width: min(500px, 48vw);
  transform: translateX(-50%) rotate(-2deg);
}

.memory-secret-letter .memory-panel {
  left: 12vw;
  top: 16vh;
  width: min(520px, 42vw);
  background:
    linear-gradient(135deg, rgba(240, 213, 138, 0.15), rgba(247, 239, 223, 0.04)),
    rgba(18, 14, 11, 0.32);
}

.memory-secret-letter .memory-art {
  right: 12vw;
  top: 22vh;
  width: min(390px, 30vw);
  transform: rotate(2deg);
}

.memory-wish-cards .memory-panel {
  left: 10vw;
  top: 18vh;
  width: min(620px, 52vw);
}

.memory-wish-cards .memory-art {
  right: 10vw;
  top: 18vh;
  width: min(360px, 30vw);
  transform: rotate(7deg);
}

.memory-final-letter .memory-panel {
  left: 50%;
  top: 50%;
  width: min(760px, 76vw);
  text-align: center;
  transform: translate(-50%, -50%);
}

.memory-final-letter .memory-panel::before,
.memory-sound-wave .memory-panel::before,
.memory-umbrella-wide .memory-panel::before {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 0;
  width: min(420px, 62%);
  height: 2px;
  transform: translateX(-50%);
}

.memory-final-letter .memory-art {
  display: none;
}

.memory-light-spill {
  right: 16vw;
  bottom: 18vh;
  width: 26vw;
  height: 26vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 213, 138, 0.3), transparent 68%);
}

.memory-ticket {
  left: 8vw;
  bottom: 18vh;
  width: min(380px, 32vw);
  height: 120px;
  border: 1px dashed rgba(240, 213, 138, 0.42);
  border-radius: 18px;
  transform: rotate(-5deg);
}

.memory-ticket::before {
  inset: 18px;
  border-top: 1px dashed rgba(240, 213, 138, 0.28);
  border-bottom: 1px dashed rgba(240, 213, 138, 0.2);
}

.memory-window {
  inset: 14vh 9vw auto auto;
  width: min(420px, 34vw);
  height: 56vh;
  border: 1px solid rgba(247, 239, 223, 0.16);
  border-radius: 28px;
}

.memory-window::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(247, 239, 223, 0.12);
  box-shadow: -90px 0 0 rgba(247, 239, 223, 0.06), 90px 0 0 rgba(247, 239, 223, 0.06);
}

.memory-wave {
  left: 14vw;
  right: 14vw;
  top: 50%;
  height: 80px;
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(240, 213, 138, 0.28) 24px 28px);
  transform: translateY(-50%);
}

.memory-gallery-strip,
.memory-table,
.memory-rain-arc,
.memory-letter,
.memory-wish-orbit,
.memory-final-glow {
  border: 1px solid rgba(247, 239, 223, 0.14);
  background: rgba(247, 239, 223, 0.07);
}

.memory-gallery-strip {
  right: 7vw;
  bottom: 15vh;
  width: 48vw;
  height: 110px;
  border-radius: 22px;
}

.memory-gallery-strip::before {
  inset: 18px;
  background: repeating-linear-gradient(90deg, rgba(247, 239, 223, 0.16) 0 70px, transparent 70px 92px);
}

.memory-table {
  left: 8vw;
  bottom: 14vh;
  width: 42vw;
  height: 150px;
  border-radius: 24px;
}

.memory-table::before {
  left: 28px;
  right: 28px;
  top: 42px;
  height: 1px;
  background: rgba(247, 239, 223, 0.16);
  box-shadow: 0 42px 0 rgba(247, 239, 223, 0.1);
}

.memory-rain-arc {
  left: 50%;
  top: 18vh;
  width: min(620px, 58vw);
  height: 300px;
  border-radius: 320px 320px 30px 30px;
  transform: translateX(-50%);
}

.memory-rain-arc::before {
  left: 50%;
  bottom: -58px;
  width: 2px;
  height: 88px;
  background: linear-gradient(180deg, rgba(247, 239, 223, 0.28), transparent);
}

.memory-letter {
  right: 13vw;
  bottom: 18vh;
  width: min(360px, 30vw);
  height: 220px;
  border-radius: 18px;
  transform: rotate(4deg);
}

.memory-letter::before {
  left: 34px;
  right: 34px;
  top: 58px;
  height: 1px;
  background: rgba(240, 213, 138, 0.24);
  box-shadow:
    0 30px 0 rgba(240, 213, 138, 0.18),
    0 60px 0 rgba(240, 213, 138, 0.12);
}

.memory-wish-orbit {
  right: 9vw;
  bottom: 18vh;
  width: min(420px, 34vw);
  height: min(420px, 34vw);
  border-radius: 50%;
}

.memory-wish-orbit::before {
  left: 50%;
  top: 50%;
  width: 58%;
  height: 58%;
  border: 1px solid rgba(240, 213, 138, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.memory-final-glow {
  left: 50%;
  top: 50%;
  width: min(680px, 68vw);
  height: min(680px, 68vw);
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 213, 138, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
}

.memory-art {
  position: absolute;
  right: 10vw;
  top: 20vh;
  z-index: 20;
  width: min(360px, 32vw);
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08)),
    #eadfbe;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(-3deg);
}

.memory-art::before {
  content: attr(data-keepsake);
  position: absolute;
  left: 28px;
  top: 28px;
  color: #5e513c;
  font: 700 26px/1.2 Georgia, "Times New Roman", serif;
}

.memory-art::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 10px;
  border-top: 1px solid rgba(94, 81, 60, 0.2);
  border-bottom: 1px solid rgba(94, 81, 60, 0.14);
}

.memory-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
}

.memory-fragments span {
  border-color: rgba(240, 213, 138, 0.24);
  background: rgba(240, 213, 138, 0.12);
  color: #f2e6cb;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.memory-panel .keepsake-strip {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 239, 223, 0.12);
}

.keepsake-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keepsake {
  border: 1px solid rgba(232, 202, 134, 0.34);
  border-radius: 999px;
  padding: 7px 10px;
  color: #e7dcc6;
  background: rgba(232, 202, 134, 0.1);
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.finale-panel {
  top: 50%;
  left: 50%;
  width: min(720px, 78vw);
  min-height: 380px;
  padding: 46px;
  transform: translate(-50%, -50%);
  background: rgba(247, 239, 218, 0.9);
  color: #30291f;
}

.finale-panel h2,
.finale-panel p {
  color: #30291f;
}

.finale-panel p {
  font-size: 17px;
}

.finale-panel .keepsake {
  color: #473c2d;
  border-color: rgba(93, 70, 34, 0.22);
  background: rgba(216, 182, 109, 0.18);
}

@keyframes lightTravel {
  0% { transform: scaleX(0); opacity: 0.2; }
  22% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.75; }
}

@keyframes lineBreathe {
  0%, 100% { transform: translateY(5px); }
  48% { transform: translateY(0); }
}

@keyframes fireflyRise {
  0% { transform: translateY(40px) scale(0.6); opacity: 0; }
  22% { opacity: 1; }
  70% { opacity: 0.86; }
  100% { transform: translateY(-170px) scale(1.08); opacity: 0; }
}

@keyframes roadLampBlink {
  0%, 100% { opacity: 0.22; transform: scale(0.72); }
  42%, 58% { opacity: 1; transform: scale(1); }
}

@keyframes windowRainSlide {
  0% { opacity: 0; transform: translateY(-18vh) rotate(12deg); }
  14% { opacity: 0.65; }
  100% { opacity: 0; transform: translateY(112vh) rotate(12deg); }
}

@keyframes pulseWave {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.36); }
  18% { opacity: 0.72; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(5.2); }
}

@keyframes photoDrift {
  0%, 100% { opacity: 0.48; translate: 0 0; }
  50% { opacity: 0.82; translate: 0 -18px; }
}

@keyframes drawerPropFloat {
  0%, 100% { opacity: 0.44; transform: translateY(0) rotate(-3deg); }
  50% { opacity: 0.86; transform: translateY(-16px) rotate(3deg); }
}

@keyframes umbrellaRainDrop {
  0% { opacity: 0; transform: translateY(-14vh) rotate(7deg); }
  18% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(58vh) rotate(7deg); }
}

@keyframes hiddenWordReveal {
  0%, 100% { width: 0; opacity: 0; }
  32%, 66% { width: var(--line-width, 34vw); opacity: 0.82; }
}

@keyframes wishOrbit {
  0% { opacity: 0.3; transform: rotate(0deg) translateX(120px) rotate(0deg); }
  18%, 82% { opacity: 0.86; }
  100% { opacity: 0.3; transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes finalBeamBreathe {
  0%, 100% { opacity: 0.2; filter: blur(1px); }
  50% { opacity: 0.82; filter: blur(4px); }
}

@keyframes curtainOpen {
  0% { opacity: 1; filter: blur(2px); }
  100% { opacity: 0.45; filter: blur(0); }
}

@keyframes shotLightSweep {
  0% { opacity: 0; transform: translateY(-50%) scaleX(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-50%) scaleX(1); }
}

@keyframes sceneCameraIn {
  0% { transform: scale(1.08) translateY(18px); filter: blur(5px); }
  100% { transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes lightBloomIn {
  0% { opacity: 0; transform: scale(0.74); filter: blur(16px); }
  42% { opacity: 0.92; }
  100% { opacity: 1; transform: scale(1); filter: blur(2px); }
}

@keyframes roadLineIn {
  0% { opacity: 0; transform: rotate(-8deg) scaleX(0.2); filter: blur(6px); }
  100% { opacity: 1; transform: rotate(-8deg) scaleX(1); filter: blur(0); }
}

@keyframes mistIn {
  0% { opacity: 0; transform: translateY(34px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes titleEnter {
  0% { opacity: 0; transform: translateY(34px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes textEnter {
  0% { opacity: 0; transform: translateY(22px); filter: blur(7px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes panelEnter {
  0% { opacity: 0; translate: 0 26px; scale: 0.975; filter: blur(9px); }
  100% { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }
}

@keyframes controlsEnter {
  0% { opacity: 0; translate: 0 12px; }
  100% { opacity: 1; translate: 0 0; }
}

@keyframes captionEnter {
  0% { opacity: 0; transform: translateX(-50%) translateY(12px); filter: blur(6px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); filter: blur(0); }
}

@keyframes slateEnter {
  0% { opacity: 0; translate: 0 -14px; filter: blur(8px); }
  100% { opacity: 1; translate: 0 0; filter: blur(0); }
}

@keyframes visualEnter {
  0% { opacity: 0; filter: blur(10px); }
  100% { opacity: 1; filter: blur(0); }
}

@keyframes detailCueIn {
  0% { opacity: 0; translate: 0 14px; filter: blur(6px); }
  100% { opacity: 1; translate: 0 0; filter: blur(0); }
}

@keyframes propCueIn {
  0% { opacity: 0; translate: 0 16px; scale: 0.92; filter: blur(8px); }
  100% { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }
}

@keyframes fragmentEnter {
  0% { opacity: 0; translate: 0 14px; filter: blur(7px); }
  100% { opacity: 1; translate: 0 0; filter: blur(0); }
}

@media (max-width: 820px) {
  .cinema {
    min-height: 640px;
  }

  button {
    max-width: 100%;
    padding: 11px 15px;
    font-size: 13px;
    line-height: 1.25;
  }

  .copy-block {
    left: 6vw;
    right: auto;
    bottom: 25vh;
    top: auto;
    width: min(86vw, 340px);
    max-width: 340px;
    text-align: left;
    transform: none;
    padding-right: 0;
  }

  .scene-centered-pulse .copy-block,
  .scene-final-center .copy-block,
  .scene-rain-shelter .copy-block,
  .scene-road-low .copy-block,
  .scene-window-split .copy-block,
  .scene-photo-stage .copy-block,
  .scene-hidden-line .copy-block,
  .scene-future-horizon .copy-block,
  .scene-drawer-right .copy-block {
    left: 6vw;
    right: auto;
    top: auto;
    bottom: 25vh;
    width: min(86vw, 340px);
    max-width: 340px;
    text-align: left;
    transform: none;
  }

  .scene-centered-pulse .copy-block p,
  .scene-final-center .copy-block p,
  .scene-rain-shelter .copy-block p,
  .scene-road-low .copy-block p,
  .scene-window-split .copy-block p,
  .scene-photo-stage .copy-block p,
  .scene-hidden-line .copy-block p,
  .scene-future-horizon .copy-block p,
  .scene-drawer-right .copy-block p {
    margin: 0;
  }

  .copy-block h1 {
    margin-bottom: 14px;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .copy-block p {
    max-width: 100%;
    font-size: clamp(14px, 4.1vw, 17px);
    line-height: 1.72;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .scene-slate,
  .scene-wide-left .scene-slate,
  .scene-road-low .scene-slate,
  .scene-window-split .scene-slate,
  .scene-centered-pulse .scene-slate,
  .scene-photo-stage .scene-slate,
  .scene-drawer-right .scene-slate,
  .scene-rain-shelter .scene-slate,
  .scene-hidden-line .scene-slate,
  .scene-future-horizon .scene-slate,
  .scene-final-center .scene-slate {
    left: 6vw;
    right: 6vw;
    top: 11vh;
    max-width: none;
    text-align: left;
    transform: none;
    font-size: 12px;
    line-height: 1.55;
  }

  .detail-strip,
  .scene-wide-left .detail-strip,
  .scene-road-low .detail-strip,
  .scene-window-split .detail-strip,
  .scene-centered-pulse .detail-strip,
  .scene-photo-stage .detail-strip,
  .scene-drawer-right .detail-strip,
  .scene-rain-shelter .detail-strip,
  .scene-hidden-line .detail-strip,
  .scene-future-horizon .detail-strip,
  .scene-final-center .detail-strip {
    left: 6vw;
    right: auto;
    top: 18vh;
    bottom: auto;
    width: min(86vw, 340px);
    max-width: 340px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    transform: none;
  }

  .detail-strip span {
    max-width: min(100%, calc(50% - 5px));
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 1.28;
  }

  .prop-field span {
    opacity: 0.42;
    scale: 0.86;
  }

  .prop-field span:nth-child(1) {
    left: 62vw !important;
    top: 18vh !important;
  }

  .prop-field span:nth-child(2) {
    left: 70vw !important;
    top: 37vh !important;
  }

  .prop-field span:nth-child(3) {
    display: none;
  }

  .shot-actions {
    left: 6vw;
    right: auto;
    bottom: 12vh;
    justify-content: flex-start;
    width: min(86vw, 340px);
    max-width: 340px;
    transform: none;
  }

  .scene-centered-pulse .shot-actions,
  .scene-final-center .shot-actions,
  .scene-rain-shelter .shot-actions,
  .scene-road-low .shot-actions,
  .scene-window-split .shot-actions,
  .scene-photo-stage .shot-actions,
  .scene-drawer-right .shot-actions,
  .scene-hidden-line .shot-actions,
  .scene-future-horizon .shot-actions {
    left: 6vw;
    right: auto;
    bottom: 12vh;
    justify-content: flex-start;
    width: min(86vw, 340px);
    max-width: 340px;
    transform: none;
  }

  .game-layout .copy-block {
    left: 6vw;
    right: 6vw;
    top: 13vh;
    bottom: auto;
    width: auto;
    max-width: none;
  }

  .game-layout .copy-block h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 8.6vw, 38px);
  }

  .game-layout .copy-block p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.55;
  }

  .game-panel,
  .memory-panel {
    left: 6vw;
    right: 6vw;
    top: 28vh;
    width: auto;
    padding: 24px;
    text-align: left;
    transform: none;
  }

  .game-panel {
    min-height: 300px;
    max-height: 48vh;
    overflow: visible;
  }

  .interaction-zone {
    min-height: 150px;
    margin: 16px 0;
  }

  .memory-polaroid-right .memory-panel,
  .memory-ticket-left .memory-panel,
  .memory-glass-note .memory-panel,
  .memory-sound-wave .memory-panel,
  .memory-gallery .memory-panel,
  .memory-object-table .memory-panel,
  .memory-umbrella-wide .memory-panel,
  .memory-secret-letter .memory-panel,
  .memory-wish-cards .memory-panel,
  .memory-final-letter .memory-panel {
    left: 6vw;
    right: 6vw;
    top: 16vh;
    bottom: auto;
    width: auto;
    text-align: left;
    transform: none;
  }

  .memory-panel {
    padding: 22px;
    max-height: 54vh;
    overflow: auto;
    overflow-x: visible;
  }

  .memory-panel h2 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .memory-panel p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .memory-fragments {
    gap: 7px;
    margin-top: 16px;
  }

  .memory-fragments span,
  .detail-strip span,
  .keepsake {
    font-size: 11px;
  }

  .memory-sound-wave .keepsake-strip,
  .memory-object-table .keepsake-strip,
  .memory-umbrella-wide .keepsake-strip {
    justify-content: flex-start;
  }

  .memory-art {
    right: 8vw;
    top: auto;
    bottom: 16vh;
    width: 44vw;
    opacity: 0.38;
  }

  .visual,
  .memory-visual {
    opacity: 0.34;
  }

  .visual-window-frame,
  .visual-photo-stack,
  .visual-drawer,
  .visual-umbrella,
  .memory-ticket,
  .memory-window,
  .memory-gallery-strip,
  .memory-table,
  .memory-rain-arc,
  .memory-letter,
  .memory-wish-orbit {
    left: auto;
    right: 6vw;
    top: auto;
    bottom: 17vh;
    width: 52vw;
    max-width: none;
    height: 26vh;
    transform: none;
  }

  .caption {
    width: 88vw;
    font-size: 12px;
  }

  .opening-caption {
    width: 86vw;
    white-space: normal;
    text-align: center;
  }

  .opening {
    padding: 0 18px;
  }

.opening-frame {
    width: min(88vw, 500px);
    min-height: 330px;
    border-radius: 28px;
  }

  .opening-frame::after {
    border-radius: 28px;
  }

  .opening-line {
    width: 100%;
    max-width: 300px;
    padding: 0 18px;
    font-size: clamp(24px, 7.4vw, 34px);
    line-height: 1.32;
    overflow-wrap: anywhere;
  }

  .opening-line > span {
    display: block;
  }

  .opening-line small {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .skip-intro {
    left: 50%;
    right: auto;
    bottom: 5.8vh;
    transform: translateX(-50%);
  }

  .opening.exiting .skip-intro {
    transform: translateX(-50%) translateY(12px);
  }
}

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