/* 開 the opening (intro.js). The canvas sits over everything, the page lays out beneath it untouched. */
html.intro-cover::after{content:"";position:fixed;inset:0;z-index:10000;background:#0b0908} /* first paint is already dark: no flash of the page */
#intro{position:fixed;inset:0;width:100vw;height:100vh;z-index:9999;image-rendering:pixelated;pointer-events:none;transition:opacity .24s ease;will-change:transform}
#intro.out,.intro-cap.out,.intro-ink.out,.intro-dim.out,.intro-imp.out{opacity:0}
/* the camera moves the stage as one (intro.js camAt): our layers + the page's top-level blocks, by transform only, on their own layers */
html.intro-cam body>*{will-change:transform}
/* while the canvas still covers everything (cold open → the cut) the page beneath is not painted at all: measured, its painting under the
   moving camera dropped a frame every ~70 ms in the first half second */
html.intro-hide body>*:not(#intro):not(.intro-cap):not(.intro-dim):not(.intro-imp):not(.intro-ink):not(.intro-markw){visibility:hidden}
/* intentional darkness over the page (under the canvas, the written title and the seal): a spotlight, its gradient set by intro.js */
.intro-dim{position:fixed;inset:0;z-index:9998;background:#050403;opacity:0;pointer-events:none;will-change:opacity;transition:opacity .24s ease}
/* impact frames: pre-rendered, shown for 1-3 frames by opacity alone */
.intro-imp{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:10003;opacity:0;pointer-events:none;image-rendering:pixelated;will-change:opacity,transform}
html.intro-seal #seal-d{opacity:0} /* the real mark waits for the stamp */
html.intro-write .slip .daisen{opacity:0} /* the title waits for the brush */
.intro-ink{position:fixed;z-index:10001;pointer-events:none;transition:opacity .24s ease}
.intro-cap{position:fixed;left:0;right:0;bottom:max(28px,calc(env(safe-area-inset-bottom) + 18px));z-index:10001;margin:0;height:16px;pointer-events:none;
  font:400 11px/16px "DotGothic16",monospace;letter-spacing:.26em;text-align:center;transition:opacity .24s ease}
.intro-cap span{position:absolute;left:0;right:0;color:var(--c);opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .3s cubic-bezier(.2,.8,.2,1);text-shadow:0 0 12px color-mix(in srgb,var(--c) 55%,transparent)}
.intro-cap span.on{opacity:.92;transform:none}
.intro-markw{position:fixed;z-index:10002;pointer-events:none;opacity:.001;will-change:opacity,transform} /* made ahead (painted, nearly invisible, so its mask is decoded), shown at the press */
.intro-mark{position:absolute;inset:0;pointer-events:none;background:#e0452a;-webkit-mask-size:100% 100%;mask-size:100% 100%;
  filter:drop-shadow(0 0 10px rgba(224,69,42,.75));transform:scale(1.06)}
.intro-mark.cool{opacity:0;transform:none;filter:drop-shadow(0 0 0 rgba(224,69,42,0));transition:opacity .9s cubic-bezier(.4,0,.6,1) .12s,transform .25s cubic-bezier(.2,.9,.2,1),filter .9s ease}
@media (prefers-reduced-motion:reduce){#intro,.intro-cap,.intro-markw,.intro-ink,.intro-dim,.intro-imp{display:none}}
