/* The memory text and its sky share the frame, without covering one another. */
.welcome.depart{transition:none;transform:none}
body.story-active #experience{min-height:0}
body.story-active .masthead,body.story-active .side-note,body.story-active .chapter{visibility:hidden}
.scene.memory{inset:49% 7% auto;text-align:center;align-items:center}
.scene.memory .scene-inner{max-width:900px}
.scene.memory .scene-date{font:14px/2 var(--serif);letter-spacing:3px;color:#c4b7aa;margin:0 0 27px}
.scene.memory h2{font-size:clamp(25px,2.7vw,40px);letter-spacing:.10em;line-height:1.85}
.scene.memory .scene-subtitle{font-size:clamp(14px,1.4vw,19px);line-height:2.1;margin:17px 0 0;color:#c5c1d0}
.scene.memory .scene-ornament,.scene.wish .scene-ornament{display:none}
.scene.memory.sunset .scene-date{color:#e2b786}
.scene.memory.sunset h2{text-shadow:0 0 40px #cf995523}
.scene.memory.build-1 h2{font-size:clamp(26px,2.8vw,41px)}
.scene.memory.build-2 h2{font-size:clamp(27px,2.9vw,43px)}
.scene.memory.build-3 h2{font-size:clamp(28px,3vw,45px)}
.scene.memory.emphasis h2{font-size:clamp(30px,3.3vw,49px);color:#f3dfc1}
.scene.winter{inset:0;pointer-events:none}
.scene.winter h2{font-size:calc(clamp(17px,1.6vw,23px) + 13px);letter-spacing:.4em}
.scene.birthday{inset:53% 5% auto;display:block}
.scene.birthday .scene-date{font-size:clamp(11px,1.2vw,15px);letter-spacing:.16em;color:#d6bfaf;margin:0 0 18px}
.scene.birthday h2{font-size:clamp(34px,4.5vw,65px);letter-spacing:.10em;line-height:1.65}
.scene.firework-note{inset:65% 6% auto;display:block}
.scene.firework-note h2{font-size:clamp(23px,2.4vw,33px);letter-spacing:.16em;line-height:1.65}
.scene.firework-note .scene-subtitle{font-size:clamp(13px,1.3vw,18px);line-height:1.85;margin:12px 0 0;color:#d5c6c6}
@media(max-aspect-ratio:114/100){
  .scene.memory{inset:48% 7% auto;text-align:center;align-items:center}
  .scene.memory .scene-inner{max-width:550px}
  .scene.memory .scene-date{font-size:14px;letter-spacing:2px;margin-bottom:20px}
  .scene.memory h2{font-size:clamp(23px,6.4vw,34px);letter-spacing:.075em;line-height:1.8}
  .scene.memory .scene-subtitle{font-size:clamp(13px,3.6vw,18px);letter-spacing:.10em;margin-top:13px}
  .scene.memory.build-1 h2{font-size:clamp(24px,6.5vw,35px)}
  .scene.memory.build-2 h2{font-size:clamp(25px,6.7vw,36px)}
  .scene.memory.build-3 h2{font-size:clamp(26px,6.9vw,37px)}
  .scene.memory.emphasis h2{font-size:clamp(28px,7.5vw,42px);letter-spacing:.035em}
  .scene.birthday{inset:54% 4% auto}
  .scene.birthday h2{font-size:clamp(31px,8.8vw,48px);letter-spacing:.04em}
  .scene.birthday .scene-date{font-size:11px;letter-spacing:.08em;margin-bottom:17px}
  .scene.firework-note{inset:63% 5% auto}
  .scene.firework-note h2{font-size:24px;letter-spacing:.12em}
  .scene.firework-note .scene-subtitle{font-size:13px;letter-spacing:.07em}
}
@media(max-height:500px) and (min-aspect-ratio:115/100){
  .scene.memory{inset:43% 7% auto}
  .scene.memory .scene-date{margin-bottom:4px;font-size:13px;line-height:1.3}
  .scene.memory h2,.scene.memory.build-1 h2,.scene.memory.build-2 h2,.scene.memory.build-3 h2{font-size:24px;line-height:1.4}
  .scene.memory.emphasis h2{font-size:27px}
  .scene.memory .scene-subtitle{margin:4px 0 0;font-size:13px;line-height:1.6}
  .scene.birthday .scene-date{margin-bottom:8px}
  .scene.birthday h2{font-size:34px}
  .scene.firework-note{inset:60% 5% auto}
  .scene.firework-note h2{font-size:22px}
  .scene.firework-note .scene-subtitle{font-size:12px;margin-top:7px}
  body.story-active:not(.playing) .scene.birthday,body.story-active.controls-revealed .scene.birthday{top:38%}
  body.story-active:not(.playing) .scene.firework-note,body.story-active.controls-revealed .scene.firework-note{top:43%}
}

/* Fade the whole footer, including the progress bar and helper text, on idle. */
body.playing .controls,body.credits-ended .controls{opacity:0;pointer-events:none}
body.controls-revealed .controls,body.controls-keyboard .controls:focus-within{opacity:.9;pointer-events:auto}

/* Hide the pointer with idle playback controls, including over child elements. */
body.playing:not(.controls-revealed):not(.controls-keyboard) #experience,
body.playing:not(.controls-revealed):not(.controls-keyboard) #experience *{cursor:none}
