.scene-photo-outgoing,
.scene-photo-montage,
.scene-photo-montage > img {
  position: absolute;
  z-index: 2;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border-radius: 3px;
  background: var(--photo-mat, #17222d);
  object-fit: contain;
  pointer-events: none;
}

.scene-photo-montage {
  z-index: 4;
}

.scene-original-photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 65%;
  background: var(--photo-mat, #17222d);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-frame.is-leaving-for-diary .scene-art {
    animation: album-diary-photo-depart var(--diary-photo-exit-duration) ease-in-out both;
  }

  .scene-frame.is-leaving-for-diary .scene-photo-mat,
  .scene-frame.is-leaving-for-diary .scene-story > :not(.album-lyrics-slot) {
    animation: album-diary-depart var(--diary-photo-exit-duration) ease-in-out both;
  }

  .journal-entry.is-arriving .journal-entry-heading {
    animation: album-diary-heading-arrive 440ms ease-out both;
  }

  .journal-entry.is-arriving .journal-entry-body {
    animation: album-diary-arrive 440ms ease-out both;
  }
}

@keyframes album-diary-photo-depart {
  15% { transform: none; }
  100% { transform: translateY(-6px) scale(.97); }
}

@keyframes album-diary-depart {
  15% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes album-diary-heading-arrive {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

@keyframes album-diary-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scene-quote {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  inset-block-end: clamp(6px, 2.4vmin, 22px);
  inline-size: max-content;
  max-inline-size: min(88%, 37rem);
  margin: 0 auto;
  padding: clamp(5px, 1.7vmin, 12px) clamp(10px, 3vmin, 24px);
  border: 1px solid #e4c59a7a;
  border-radius: 5px;
  background: #101923ed;
  color: #fff4e4;
  text-align: center;
  pointer-events: none;
}

.scene-quote blockquote {
  margin: 0;
  font: 650 clamp(.92rem, 4vmin, 1.55rem)/1.35 var(--heading);
  white-space: pre-line;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.scene-quote figcaption {
  margin-block-start: .2em;
  color: #e5c491;
  font: 600 clamp(.69rem, 2.6vmin, .91rem)/1.3 var(--heading);
}

.scene-quote.is-handwritten blockquote {
  font-family: "Gaegu Diary", var(--heading);
  font-weight: 400;
  font-size: clamp(1.15rem, 4.6vmin, 1.85rem);
}

.scene-quote.is-handwritten blockquote span {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-quote.is-handwritten:not([hidden], .is-awaiting-photo) blockquote span {
    animation: album-quote-write 1.3s linear var(--scene-quote-delay) both var(--scene-quote-play-state, running);
  }

  .scene-quote.is-handwritten:not([hidden], .is-awaiting-photo) blockquote span + span {
    animation-delay: calc(var(--scene-quote-delay) + 1.5s);
  }

  .scene-quote.is-handwritten:not([hidden], .is-awaiting-photo) figcaption {
    animation: album-diary-arrive .5s ease-out calc(var(--scene-quote-delay) + 3s) both var(--scene-quote-play-state, running);
  }
}

@keyframes album-quote-write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

.scene-quote.is-awaiting-photo,
.scene-picture:has(> .scene-photo-montage:not([hidden])) > #scene-quote,
.scene-picture:has(> :is(.scene-photo-outgoing, .scene-drawing, .day-turn-stage):not([hidden])) > #scene-quote {
  visibility: hidden;
}

.scene-picture:has(> .scene-photo-montage:not([hidden])) > #scene-quote:not([data-delayed]),
.scene-picture:has(> :is(.scene-photo-outgoing, .scene-drawing, .day-turn-stage):not([hidden])) > #scene-quote {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .scene-quote[data-delayed]:not([hidden], .is-awaiting-photo) {
    /* Keep the delay with a single static appearance. */
    animation: album-scene-quote-reveal 0ms linear var(--scene-quote-delay) both var(--scene-quote-play-state, running) !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scene-quote:not([hidden], [data-delayed], .is-static) {
    animation: album-scene-quote-arrive 520ms ease-out 250ms both;
  }

  .scene-picture:has(> .scene-art[data-scene-id="a0045"]) > .scene-quote:not([hidden], .is-static) {
    animation-delay: 0ms;
    animation-duration: 120ms;
  }

  .scene-picture:has(> .scene-photo-outgoing[data-transition="ticket-dissolve"]) #scene-meta {
    animation: ticket-caption-in var(--scene-transition-duration) ease-in-out both;
  }

  .scene-quote[data-delayed]:not([hidden], .is-awaiting-photo) {
    animation: album-scene-quote-arrive 520ms ease-out var(--scene-quote-delay) both var(--scene-quote-play-state, running);
  }
}

.scene-quote[data-delayed].is-static,
.scene-picture:has(> .scene-photo-montage:not([hidden])) > #scene-quote[data-delayed] {
  --scene-quote-play-state: paused;
}

@keyframes album-scene-quote-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ticket-caption-in {
  0%, 55% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes album-scene-quote-arrive {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.day-turn-stage {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: calc(var(--reader-top) + var(--reader-gutter)) var(--reader-gutter) var(--reader-gutter);
  pointer-events: none;
}

#experience:has(.reading-page[data-day-turn="resting"]) #music-lyrics {
  visibility: hidden;
}

.day-turn-card {
  position: relative;
  max-inline-size: 100%;
  padding: clamp(8px, 2.8vmin, 20px) clamp(14px, 4.2vmin, 36px);
  border: 1px solid #e4c59a66;
  border-radius: 5px;
  background: #141f2bea;
  color: #fff2de;
  text-align: center;
  overflow-wrap: anywhere;
}

.day-turn-date {
  margin: 0;
  color: #e5c491;
  font: 700 clamp(.9rem, 3.5vmin, 1.25rem)/1.25 var(--heading);
}

.day-turn-title {
  margin: 5px 0 0;
  font: 400 clamp(1.1rem, 4.3vmin, 2rem)/1.27 "Gaegu Diary", var(--heading);
  text-wrap: balance;
  white-space: pre-line;
  word-break: keep-all;
}

.day-turn-credit {
  margin: .4em 0 0;
  font: 500 clamp(.73rem, 2.5vmin, .95rem)/1.3 var(--album-sans);
}

@media (prefers-reduced-motion: no-preference) {
  .reading-page[data-day-turn="leaving"] :is(.journal-entry-heading, .journal-entry-body, .diary-photo-stamp, .scene-photo-mat, .scene-story > :not(.album-lyrics-slot)) {
    animation: album-day-content-fade-out var(--day-turn-cover-duration) ease-in-out both;
  }

  .reading-page[data-day-turn="arriving"] :is(.scene-photo-mat, .scene-portrait) {
    animation: album-day-photo-arrive var(--day-turn-reveal-duration) ease-out both;
  }

  .reading-page:is([data-day-turn="arriving"], [data-day-turn="reflection"]) .day-turn-card {
    animation: album-day-date-caption var(--day-line-duration) ease-in-out both;
  }
}

@keyframes album-day-content-fade-out {
  to { opacity: 0; }
}

@keyframes album-day-photo-arrive {
  0% { opacity: 0; }
  45%, 100% { opacity: 1; }
}

@keyframes album-day-date-caption {
  0% { opacity: 0; transform: translateY(5px); }
  15%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

.closing-photos-frame .is-loading-photo {
  opacity: 0;
}

.closing-photos-frame .closing-photo-outgoing {
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .closing-photos-frame .is-entering-photo {
    --photo-shift: 10px;
    animation: album-closing-photo-enter 320ms ease-out both;
  }

  .closing-photos-frame .closing-photo-outgoing[data-direction] {
    --photo-shift: -10px;
    animation: album-closing-photo-leave 320ms ease-out both;
  }

  .closing-photos-frame .is-entering-photo[data-direction="back"] {
    --photo-shift: -10px;
  }

  .closing-photos-frame .closing-photo-outgoing[data-direction="back"] {
    --photo-shift: 10px;
  }
}

@keyframes album-closing-photo-enter {
  from { transform: translateX(var(--photo-shift)); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes album-closing-photo-leave {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(var(--photo-shift)); opacity: 0; }
}

.camera-viewfinder,
.camera-flash {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.camera-viewfinder {
  --finder-edge: clamp(16px, 2.6vw, 31px);
  --finder-mark: #fff6df;
  inset: clamp(15px, 3.8vw, 45px);
  background:
    linear-gradient(var(--finder-mark) 0 0) left top / var(--finder-edge) 2px,
    linear-gradient(var(--finder-mark) 0 0) left top / 2px var(--finder-edge),
    linear-gradient(var(--finder-mark) 0 0) right top / var(--finder-edge) 2px,
    linear-gradient(var(--finder-mark) 0 0) right top / 2px var(--finder-edge),
    linear-gradient(var(--finder-mark) 0 0) left bottom / var(--finder-edge) 2px,
    linear-gradient(var(--finder-mark) 0 0) left bottom / 2px var(--finder-edge),
    linear-gradient(var(--finder-mark) 0 0) right bottom / var(--finder-edge) 2px,
    linear-gradient(var(--finder-mark) 0 0) right bottom / 2px var(--finder-edge);
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px #141c27de);
}

.camera-viewfinder::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(14px, 2.2vw, 24px);
  aspect-ratio: 1;
  border: 1px solid var(--finder-mark);
  border-radius: 3px;
  transform: translate(-50%, -50%);
  content: "";
}

.camera-flash {
  inset: 0;
  background: radial-gradient(ellipse at center, #fff9ec 0, #fff4e0 68%, #f7e1c9 100%);
}

.scene-art.is-capturing .camera-viewfinder {
  animation: album-camera-focus 360ms ease-out both;
}

.scene-art.is-capturing .camera-flash {
  animation: album-camera-exposure 360ms linear both;
}

@keyframes album-camera-focus {
  0% { opacity: 0; transform: scale(1.045); }
  24%, 44% { opacity: 1; transform: scale(1); }
  64% { opacity: 0.74; }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes album-camera-exposure {
  0%, 37%, 100% { opacity: 0; }
  43% { opacity: 0.5; }
}

#card-dialog.is-photo-capture[open] #card-image {
  animation: album-photo-settle 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes album-photo-settle {
  from { opacity: 0.38; transform: translateY(-10px) rotate(-1.2deg) scale(0.984); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .camera-viewfinder,
  .camera-flash {
    display: none;
  }
}

.scene-photo-stack {
  --stack-shift: 10%;
  --stack-rotation: 6deg;
  position: absolute;
  z-index: 2;
  inset: 11% 15%;
  inline-size: 70%;
  block-size: 78%;
  border: clamp(3px, 1vmin, 7px) solid #f6ecd8;
  border-radius: 2px;
  background: #f6ecd8;
  box-shadow: 0 9px 24px #101620a6;
  object-fit: contain;
  pointer-events: none;
}

.scene-picture:has(.scene-photo-outgoing[data-transition="stack"][data-direction="back"]) .scene-photo-stack {
  --stack-shift: -10%;
  --stack-rotation: -6deg;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture:has(.scene-photo-outgoing[data-transition="shutter"]) > .camera-viewfinder {
    animation: album-camera-focus var(--scene-transition-duration) ease-out both;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="shutter"]) > .camera-flash {
    animation: album-camera-exposure var(--scene-transition-duration) linear both;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="stack"]) > .scene-photo-outgoing {
    box-shadow: 0 0 0 clamp(3px, 1.1vmin, 8px) #fff3dc, 0 9px 27px #101620b0;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="stack"]) > .scene-photo-stack {
    animation: album-photo-stack-print var(--scene-transition-duration) ease both;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="wipe"])::after,
  .scene-picture:has(.scene-photo-outgoing[data-transition="iris"])::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    content: "";
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="wipe"])::after {
    background: linear-gradient(98deg, transparent 32%, #f7e6c65c 50%, transparent 68%);
    animation: album-photo-edge-light 420ms ease-out both;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="wipe"][data-direction="back"])::after {
    animation-direction: reverse;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="iris"])::after {
    background: radial-gradient(circle at center, #fff5d726, transparent 40%, #0c142750);
    animation: album-photo-aperture-light 290ms ease-out both;
  }

  .reading-page[data-day-turn="arriving"] .day-turn-stage::before {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 18% 25%, #fff9e6b0 0 1px, transparent 1.9px) 0 0 / 113px 131px,
      radial-gradient(circle at 72% 67%, #e3f1ff8c 0 1px, transparent 1.8px) 0 0 / 141px 91px;
    animation: album-new-day-snow var(--day-turn-reveal-duration) ease-out both;
    content: "";
  }

  .journal-entry.is-arriving .journal-entry-paper {
    transform-origin: center top;
    animation: album-diary-paper-land 440ms cubic-bezier(.19, .64, .24, 1) both;
  }
}

@keyframes album-photo-edge-light {
  from { opacity: 0; transform: translateX(47%); }
  30% { opacity: .8; }
  to { opacity: 0; transform: translateX(-47%); }
}

@keyframes album-photo-aperture-light {
  from { opacity: 0; }
  35% { opacity: .8; }
  to { opacity: 0; }
}

@keyframes album-photo-stack-print {
  from { opacity: 0; transform: scale(.87) rotate(0); }
  32%, 72% {
    opacity: 1;
    transform: translateX(var(--stack-shift)) rotate(var(--stack-rotation));
  }
  to { opacity: 0; transform: translateX(calc(var(--stack-shift) * 1.5)) rotate(var(--stack-rotation)); }
}

@keyframes album-new-day-snow {
  from { opacity: 0; transform: translate(-13px, -19px); }
  28% { opacity: .65; }
  to { opacity: 0; transform: translate(21px, 14px); }
}

@keyframes album-diary-paper-land {
  from { transform: translateY(9px) rotate(-.38deg); }
  to { transform: none; }
}

.scene-drawing-filters {
  position: absolute;
  pointer-events: none;
}

.scene-drawing {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #6a666313 24px, transparent 25px),
    radial-gradient(ellipse at 40% 30%, #fff8e9, #e9dbbd);
  pointer-events: none;
}

.scene-drawing > img {
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
  filter: url("#scene-pencil-edges");
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture[data-drawing] > .scene-drawing {
    animation: album-drawing-paper var(--scene-drawing-duration) ease both;
  }

  .scene-picture[data-drawing] .scene-drawing > img {
    animation: album-drawing-strokes var(--scene-drawing-duration) ease both;
  }

  .scene-picture[data-drawing] > .scene-art {
    animation: album-drawing-color var(--scene-drawing-duration) ease both;
  }
}

@keyframes album-drawing-paper {
  0%, 45% { opacity: 1; }
  91%, 100% { opacity: 0; }
}

@keyframes album-drawing-strokes {
  0%, 12% { clip-path: polygon(0 0, 0 0, 0 27%, 0 48%, 0 70%, 0 100%, 0 100%); }
  29% { clip-path: polygon(0 0, 40% 0, 48% 27%, 33% 48%, 45% 70%, 25% 100%, 0 100%); }
  52%, 100% { clip-path: polygon(0 0, 100% 0, 100% 27%, 100% 48%, 100% 70%, 100% 100%, 0 100%); }
}

@keyframes album-drawing-color {
  0%, 35% { opacity: 0; filter: saturate(.25); }
  70% { opacity: .77; filter: saturate(.65); }
  94%, 100% { opacity: 1; filter: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .scene-photo-outgoing[data-transition="fold"] {
    transform-origin: left center;
    backface-visibility: hidden;
    box-shadow: 14px 0 21px #0a0e16bd;
  }

  .scene-photo-outgoing[data-transition="fold"][data-direction="back"] {
    transform-origin: right center;
    box-shadow: -14px 0 21px #0a0e16bd;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="print"]) > .scene-art {
    z-index: 3;
    animation: album-instant-print var(--scene-transition-duration) ease-out both;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="film"]) {
    --film-direction: 1;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="film"][data-direction="back"]) {
    --film-direction: -1;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="film"]) > .scene-art {
    animation: album-film-feed var(--scene-transition-duration) ease both;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="film"])::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    background:
      repeating-linear-gradient(0deg, #fff3d8 0 9px, #241b17 9px 19px) left center / 7px 100%,
      repeating-linear-gradient(0deg, #fff3d8 0 9px, #241b17 9px 19px) right center / 7px 100%;
    background-repeat: no-repeat;
    animation: album-film-perforations var(--scene-transition-duration) ease both;
    content: "";
    pointer-events: none;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="snow"])::after {
    position: absolute;
    z-index: 3;
    inset: -12%;
    background:
      radial-gradient(circle at 23% 34%, #fff8ecce 0 1.3px, transparent 2.4px) 0 0 / 81px 103px,
      radial-gradient(circle at 67% 42%, #fff9e8bc 0 1px, transparent 1.9px) 14px 13px / 144px 101px,
      radial-gradient(ellipse at 90% 85%, #e6f2ff90 1%, transparent 54%);
    animation: album-snow-pass var(--scene-transition-duration) ease both;
    content: "";
    pointer-events: none;
  }
}

@keyframes album-instant-print {
  0%, 10% { opacity: 0; transform: translateY(-26%) rotate(-3deg) scale(.85); clip-path: inset(0 0 95%); }
  46% { opacity: 1; transform: translateY(3%) rotate(2deg) scale(.88); clip-path: inset(0); box-shadow: 0 0 0 7px #fff1d8, 0 8px 22px #121a23a6; }
  70% { transform: translateY(1%) rotate(-.65deg) scale(.96); box-shadow: 0 0 0 3px #fff1d8, 0 5px 12px #121a2359; }
  100% { opacity: 1; transform: none; clip-path: inset(0); box-shadow: none; }
}

/* The entire printed strip moves through a stationary aperture. */
.scene-reel {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-picture > .beat-cut-outgoing {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.scene-film-strip,
.scene-film-feed,
.scene-film-cell {
  position: absolute;
  inset: 0;
}

.scene-film-strip {
  will-change: transform;
}

.scene-film-strip > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  background: var(--photo-mat);
}

.scene-film-cell {
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  background: var(--photo-mat);
}

#scene-reel-exposure,
#scene-reel-exposure > img {
  display: block;
  max-inline-size: 100%;
  max-block-size: var(--scene-picture-height);
}

.scene-reel:not([data-blend]) > .scene-film-feed,
.scene-reel[data-blend] > .scene-film-strip,
.scene-reel[data-blend]::after { display: none; }

.scene-art[data-pencil-reveal] {
  background-image: var(--pencil-underlay);
  background-size: 100% 100%;
}

/* Keep the perforated border steady while the exposures travel through it. */
.scene-reel::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(100%, calc(var(--scene-picture-height) * 1.83 + 24px));
  block-size: 100%;
  --holes: repeating-linear-gradient(to bottom, transparent 0 4px, #ddcdaa 4px 10px, transparent 10px 20px);
  --edge: linear-gradient(to right, #302822 0 13px, transparent 13px calc(100% - 13px), #302822 calc(100% - 13px));
  background:
    var(--holes) left 4px top / 5px 100% no-repeat,
    var(--holes) right 4px top / 5px 100% no-repeat,
    var(--edge);
  opacity: var(--film-edge-opacity, 0);
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture[data-film-quote] > #scene-quote:not([hidden], [data-delayed], .is-static) {
    animation: album-scene-quote-arrive 300ms ease-out 160ms both;
    filter: opacity(var(--film-quote-opacity, 1));
  }

  .scene-picture[data-film-detail] :is(.scene-image, #scene-pencil-reveal) {
    transform: scale(var(--film-detail-scale, 1));
    transform-origin: var(--film-focus-origin, 50% 60%);
  }
}

@keyframes album-film-feed {
  0%, 20% { transform: translateY(calc(var(--film-direction) * 78%)); filter: sepia(.24) brightness(.8); }
  62% { transform: translateY(calc(var(--film-direction) * -4%)); filter: sepia(.17); }
  78% { transform: translateY(calc(var(--film-direction) * 1%)); }
  100% { transform: none; filter: none; }
}

@keyframes album-film-perforations {
  0%, 100% { opacity: 0; }
  27%, 65% { opacity: .66; }
  10% { background-position-y: 0; }
  86% { background-position-y: calc(var(--film-direction) * -38px); }
}

@keyframes album-snow-pass {
  0% { opacity: 0; transform: translate(-7%, -7%); }
  37% { opacity: .9; }
  100% { opacity: 0; transform: translate(9%, 10%); }
}


.flight-connection {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px;
  pointer-events: none;
}

.scene-picture:has(> .scene-photo-outgoing[data-transition="flight-arrival"]:not([hidden])) #scene-meta {
  visibility: hidden;
}

.flight-connection::before {
  position: absolute;
  inset: -24% -35%;
  background:
    radial-gradient(ellipse at 28% 60%, #eff6f8 1%, transparent 43%),
    radial-gradient(ellipse at 65% 37%, #e8f2f9f2 1%, transparent 43%),
    radial-gradient(ellipse at 70% 71%, #cbddeaed 2%, transparent 50%),
    linear-gradient(112deg, transparent 6%, #48687e8c 34%, #bed7e2e8 52%, #789aaaab 67%, transparent 90%);
  content: "";
}

.flight-route {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(7px, 2vmin, 14px);
  max-inline-size: 100%;
  padding: .58em .9em;
  border: 1px solid #c0d6e18a;
  border-radius: 6px;
  color: #faf3e6;
  background: #182a3be8;
  box-shadow: 0 5px 14px #11192673;
  font: 650 clamp(.76rem, 2.7vmin, 1.12rem)/1.15 var(--text);
  white-space: nowrap;
}

.flight-route-track {
  position: relative;
  inline-size: clamp(36px, 12vw, 125px);
  border-block-end: 1px dashed #e8d0aa9e;
  flex: 0 1 auto;
}

.flight-plane {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  color: #ffdfa8;
  font-size: 1.2em;
  transform: translateY(43%) rotate(-8deg);
}

@media (prefers-reduced-motion: no-preference) {
  .flight-connection:not([hidden])::before {
    animation: flight-cloud-pass var(--scene-transition-duration) ease-in-out var(--flight-start-delay, 0ms) both;
  }

  .flight-connection:not([hidden]) .flight-route {
    animation: flight-route-pass var(--scene-transition-duration) ease var(--flight-start-delay, 0ms) both;
  }

  .flight-connection:not([hidden]) .flight-plane {
    animation: flight-plane-cross var(--scene-transition-duration) ease var(--flight-start-delay, 0ms) both;
  }

  .scene-art[data-scene-id="r0003"] ~ .flight-connection:not([hidden]) .flight-route {
    animation-name: haneda-route-pass;
  }

  .scene-art[data-scene-id="r0003"] ~ .flight-connection:not([hidden]) .flight-plane {
    animation-name: haneda-plane-cross;
    animation-timing-function: linear;
  }
}

@keyframes haneda-route-pass {
  0% { opacity: .8; transform: none; }
  12%, 76% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes haneda-plane-cross {
  0% { inset-inline-start: 0; }
  74%, 100% { inset-inline-start: calc(100% - 1em); }
}

@keyframes flight-cloud-pass {
  0% { opacity: 0; transform: translate(-40%, 2%) scale(.94); }
  32%, 47% { opacity: .94; }
  53% { transform: translate(0, -3%) scale(1.05); }
  100% { opacity: 0; transform: translate(41%, -12%) scale(1.21); }
}

@keyframes flight-route-pass {
  0%, 11% { opacity: 0; transform: translateY(5px); }
  29%, 72% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes flight-plane-cross {
  0%, 20% { inset-inline-start: 0; }
  75%, 100% { inset-inline-start: calc(100% - 1em); }
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture:has(> .scene-photo-outgoing[data-transition="snow-drift"])::after,
  .scene-picture:has(> .scene-photo-outgoing[data-transition="lantern-light"])::after,
  .scene-picture:has(> .scene-photo-outgoing[data-transition="train-window"])::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    content: "";
    pointer-events: none;
  }

  .scene-picture:has(> .scene-photo-outgoing[data-transition="snow-drift"])::after {
    background:
      radial-gradient(circle at 17px 23px, #f2f9ffe6 0 1.5px, transparent 2.5px) 0 0 / 63px 48px,
      radial-gradient(circle at 31px 15px, #f2f9ff77 0 1px, transparent 2px) 0 0 / 79px 62px,
      linear-gradient(169deg, transparent 22%, #bfd8f066 48%, #ebf6ffd9 55%, transparent 76%);
    animation: album-snow-drift var(--scene-transition-duration) ease-in-out both;
  }

  .scene-picture:has(> .scene-photo-outgoing[data-transition="lantern-light"])::after {
    background:
      radial-gradient(ellipse at 49% 62%, #ffdb87c7 0%, #ffc76954 20%, transparent 57%),
      radial-gradient(ellipse at 55% 68%, transparent 22%, #100a0b99 94%);
    animation: album-lantern-light var(--scene-transition-duration) ease-in-out both;
  }

  .scene-picture:has(> .scene-photo-outgoing[data-transition="train-window"])::after {
    background:
      linear-gradient(107deg, transparent 27%, #c3daf824 41%, #d9e9ff91 44%, #192330da 46% 50%, #d9e9ff66 52%, transparent 66%);
    animation: album-train-window var(--scene-transition-duration) ease-in-out both;
  }

  .scene-picture:has(> .scene-photo-outgoing:is([data-transition="train-window"], [data-transition="snow-drift"])[data-direction="back"])::after {
    animation-direction: reverse;
  }
}

@keyframes album-snow-drift {
  0% { opacity: 0; transform: translate(-9%, -75%) scale(1.3); }
  45% { opacity: .93; }
  100% { opacity: 0; transform: translate(16%, 80%) scale(1.3); }
}

@keyframes album-lantern-light {
  0% { opacity: 0; transform: scale(.62); }
  35% { opacity: .72; }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes album-train-window {
  0% { opacity: 0; transform: translateX(90%); }
  47% { opacity: .79; }
  100% { opacity: 0; transform: translateX(-90%); }
}

.scene-quote.is-behind-comment {
  visibility: hidden;
}


.scene-picture:has(> .scene-photo-montage:not([hidden])) > #scene-comment {
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture.is-lyric-shutter > .camera-viewfinder {
    animation: album-camera-focus 500ms ease-out both;
  }

  .scene-picture.is-lyric-shutter > .camera-flash {
    animation: album-camera-exposure 500ms linear both;
  }

  /* The Feb 4 camera lyric keeps the viewfinder and shutter sound. */
  .scene-picture.is-lyric-shutter > .scene-art[data-scene-id="a0620"] ~ .camera-flash {
    visibility: hidden;
  }

  .scene-photo-montage[data-mode="collage"] {
    background: radial-gradient(ellipse at center, #f7eedc, #e0cbaa);
  }

  .scene-photo-montage[data-mode="collage"] > img {
    --card-angle: -7deg;
    --card-drop: 11px;
    position: absolute;
    inset: auto;
    top: 6%;
    left: 7%;
    inline-size: 46%;
    block-size: 55%;
    border: clamp(3px, 1vmin, 8px) solid #fff8eb;
    border-block-end-width: clamp(6px, 1.7vmin, 13px);
    border-radius: 2px;
    background: #302a24;
    box-shadow: 0 4px 13px #28201666;
    transform: rotate(var(--card-angle));
    animation: day6-photo-layer 330ms ease-out both;
  }

  .scene-photo-montage[data-mode="collage"] > img:nth-child(2) {
    --card-angle: 7deg;
    top: 4%;
    left: 46%;
  }

  .scene-photo-montage[data-mode="collage"] > img:nth-child(3) {
    --card-angle: 3deg;
    top: 40%;
    left: 12%;
  }

  .scene-photo-montage[data-mode="collage"] > img:nth-child(4) {
    --card-angle: -6deg;
    top: 38%;
    left: 48%;
  }

  .scene-photo-montage.is-paused > img { animation-play-state: paused; }
}

.lyric-album-page {
  position: absolute;
  z-index: 3;
  inset: clamp(7px, 2.2vmin, 19px);
  border: 1px solid #ffe2a4;
  border-inline-end-width: 3px;
  border-radius: 3px;
  background: linear-gradient(104deg, #eac49814, transparent 74%, #fbe3b44f);
  box-shadow: inset 0 0 0 5px #fcdeb32c, 0 0 14px #f7cc8d55;
  opacity: 0;
  pointer-events: none;
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture.is-lyric-page-fill > .lyric-album-page {
    animation: album-lyric-page-fill 1330ms ease-out both;
  }
}

@keyframes album-lyric-page-fill {
  0% { opacity: 0; transform: perspective(800px) rotateY(-72deg); }
  26% { opacity: .92; }
  62% { opacity: .82; transform: perspective(800px) rotateY(0); }
  100% { opacity: 0; transform: perspective(800px) rotateY(0); }
}

.scene-page-photos {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(105deg, #80635030, transparent 14%, transparent 91%, #80635036),
    repeating-linear-gradient(0deg, #ad856221 0 1px, transparent 1px 23px),
    #f3e5cc;
  box-shadow: inset 0 0 0 1px #8b6c4d4a, inset 0 0 26px #b58e5140;
}

.scene-page-photo {
  --page-photo-angle: -7deg;
  position: absolute;
  top: 15%;
  left: 7%;
  box-sizing: border-box;
  inline-size: 39%;
  block-size: 70%;
  border: clamp(3px, 1vmin, 8px) solid #fff8e9;
  border-block-end-width: clamp(5px, 1.7vmin, 12px);
  border-radius: 2px;
  background: #fff8e9;
  object-fit: contain;
  box-shadow: 0 6px 13px #40312666;
  transform: rotate(var(--page-photo-angle));
}

.scene-page-photo:nth-child(2) {
  --page-photo-angle: 5deg;
  top: 12%;
  left: 31%;
}

.scene-page-photo:nth-child(3) {
  --page-photo-angle: -3deg;
  top: 20%;
  left: 54%;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-page-photo {
    animation: album-page-photo-land 310ms cubic-bezier(.19, .74, .33, 1) both;
  }

  .scene-picture:has(.scene-photo-outgoing[data-transition="ink"])::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    background: linear-gradient(108deg, transparent 39%, #eed3a741 48%, #fff3d677 50%, transparent 53%);
    pointer-events: none;
    animation: album-ink-trace var(--scene-transition-duration) ease-out both;
  }
}

@keyframes album-page-photo-land {
  from { opacity: 0; transform: translateY(-11px) rotate(calc(var(--page-photo-angle) - 5deg)) scale(1.05); }
  to { opacity: 1; transform: rotate(var(--page-photo-angle)); }
}

@keyframes album-ink-trace {
  from { opacity: 0; transform: translateX(-49%); }
  22% { opacity: .73; }
  to { opacity: 0; transform: translateX(55%); }
}

@keyframes day6-photo-layer {
  from { opacity: 0; transform: translateY(var(--card-drop)) rotate(var(--card-angle)) scale(1.07); }
  to { opacity: 1; transform: rotate(var(--card-angle)); }
}

.scene-photo-montage[data-mode="film-strip"] {
  overflow: hidden;
  background: radial-gradient(ellipse at center, #3b3029, #151210 80%);
}

.film-strip-track {
  --film-gutter: clamp(14px, 4vmin, 24px);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  display: flex;
  flex-direction: column;
  inline-size: min(100%, calc(var(--scene-photo-height) * 1.85));
  block-size: 100%;
  transform: translate(-50%, var(--film-shift, 0%));
  will-change: transform;
}

.film-strip-track > img {
  display: block;
  flex: 0 0 100%;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  padding: 6px var(--film-gutter);
  border-block: 2px solid #362c25;
  background: #16120f;
  object-fit: contain;
  filter: sepia(.24) saturate(.8) contrast(1.06);
}

.film-strip-track::after,
.scene-picture.is-lyric-film::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, #e7cfaa 0 8px, transparent 8px 19px) left 4px top / 7px 100%,
    repeating-linear-gradient(to bottom, #e7cfaa 0 8px, transparent 8px 19px) right 4px top / 7px 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  content: "";
}

.film-strip-track::after {
  inset-block-end: auto;
  block-size: calc(var(--film-frames, 1) * 100%);
}

.scene-photo-montage[data-mode="film-strip"]::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, #21191081 100%);
  pointer-events: none;
  content: "";
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture.is-lyric-film::after {
    animation: album-film-perforations 680ms ease both;
  }

  .scene-picture.is-lyric-film > .scene-art {
    animation: album-lyric-film-hold 680ms ease both;
  }
}

@keyframes album-lyric-film-hold {
  18% { filter: sepia(.2) brightness(.82); transform: translateY(4%); }
  55% { filter: sepia(.08); transform: translateY(-2%); }
  100% { filter: none; transform: none; }
}

.scene-film-quote {
  z-index: 5;
}

.experience .book-sheet .scene-picture.is-lyric-thumbnail {
  --photo-meta-ink: #382e28;
  background: #ddd0b8;
}

.experience .book-sheet .scene-picture.is-lyric-thumbnail > .scene-art {
  transform: scale(.82);
  box-shadow: 0 .55rem 0 .34rem #fbf3df, 0 0 0 .34rem #fbf3df, 0 10px 18px #26222261;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-picture.is-lyric-thumbnail .scene-art {
    animation: album-thumbnail-frame-in 430ms cubic-bezier(.24, .74, .26, 1) both;
  }
}

@keyframes album-thumbnail-frame-in {
  0% { transform: scale(1); filter: brightness(1); }
  20% { filter: brightness(1.22); }
  100% { transform: scale(.82); filter: brightness(1); }
}

.scene-photo-montage[data-mode="thumbnail"] {
  background: #ddd0b8;
}

.scene-photo-montage[data-mode="thumbnail"] > img {
  inset: 5% 13%;
  inline-size: 74%;
  block-size: 90%;
  border: clamp(4px, 1.6vmin, 9px) solid #fbf3df;
  border-block-end-width: clamp(9px, 2.7vmin, 15px);
  border-radius: 2px;
  background: #191a19;
  box-shadow: 0 6px 18px #26222261;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-photo-montage[data-mode="lyric-photo"] > img {
    animation: album-lyric-frame-appear 250ms ease-out both;
  }

  .scene-photo-montage[data-mode="thumbnail"] > img {
    animation: album-thumbnail-print 450ms cubic-bezier(.24,.74,.26,1) both;
  }
}

@keyframes album-lyric-frame-appear {
  from { opacity: .4; }
  to { opacity: 1; }
}

@keyframes album-thumbnail-print {
  0% { filter: brightness(1.45); opacity: .62; transform: scale(1.055) rotate(-1.8deg); }
  100% { filter: brightness(1); opacity: 1; transform: none; }
}

.scene-montage-speech {
  z-index: 5;
}
