:root { color-scheme: light; font-family: "Noto Serif CJK SC", "Songti SC", "STSong", serif; color: #5d5651; background: #faf9f6; }
* { box-sizing: border-box; }
html { margin: 0; overflow-x: hidden; scroll-behavior: auto; }
body { margin: 0; min-width: 240px; background: #faf9f6; -webkit-tap-highlight-color: transparent; }
#scroll-space { height: 700vh; height: 700svh; width: 1px; pointer-events: none; }
#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#stage canvas { display: block; width: 100%; height: 100%; }
.title { position: fixed; z-index: 2; top: max(29px, env(safe-area-inset-top)); left: max(32px, env(safe-area-inset-left)); margin: 0; font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: .18em; pointer-events: none; }
.caption { position: fixed; z-index: 2; inset: auto 32px max(27px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 11px; line-height: 1.5; letter-spacing: .12em; color: #8b837b; pointer-events: none; }
.progress { width: clamp(72px, 10vw, 140px); height: 1px; overflow: hidden; background: #ded9d1; }
.progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #ba603c; }
.status { position: fixed; z-index: 4; top: 50%; left: 50%; width: min(310px, calc(100% - 44px)); transform: translate(-50%, -50%); margin: 0; padding: 17px 19px; background: rgb(250 249 246 / 96%); font-size: 12px; line-height: 1.9; text-align: center; letter-spacing: .06em; }
.status p { margin: 0; }
.status button { margin-top: 12px; border: 0; border-bottom: 1px solid #b9afa4; padding: 2px 0; background: transparent; color: #65564c; font: inherit; cursor: pointer; }
.status button:focus-visible { outline: 1px solid #ba603c; outline-offset: 5px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .title { top: max(22px, env(safe-area-inset-top)); left: max(21px, env(safe-area-inset-left)); font-size: 12px; }
  .caption { left: max(21px, env(safe-area-inset-left)); right: max(21px, env(safe-area-inset-right)); bottom: max(23px, env(safe-area-inset-bottom)); font-size: 10px; }
}

#stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23635d55' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
