/* Kamui sweep cinematic */
#blKamui { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; contain: strict; }
#blKamui * { pointer-events: none; }
.km-dim { position: absolute; inset: 0; opacity: 0; background:
  radial-gradient(circle at var(--ex, 50%) var(--ey, 40%), rgba(120, 0, 20, .0) 0, rgba(60, 0, 14, .55) 28%, rgba(6, 0, 4, .93) 70%, #000 100%);
  transition: opacity .5s ease; }
#blKamui.on .km-dim { opacity: 1; }
.km-grain { position: absolute; inset: -50%; opacity: 0; mix-blend-mode: overlay; transition: opacity .6s;
  background-image: repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 73% 61%, rgba(0,0,0,.08) 0 1px, transparent 1px 4px);
  animation: kmGrain .5s steps(4) infinite; }
#blKamui.on .km-grain { opacity: .9; }
@keyframes kmGrain { 0% { transform: translate(0, 0) } 25% { transform: translate(-3%, 2%) } 50% { transform: translate(2%, -3%) } 75% { transform: translate(-2%, -1%) } 100% { transform: translate(0, 0) } }
.km-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.km-bar { position: absolute; left: 0; right: 0; height: 11vh; background: #000; transition: transform .6s cubic-bezier(.7, 0, .2, 1); box-shadow: 0 0 40px rgba(0, 0, 0, .9); }
.km-bar.t { top: 0; transform: translateY(-101%); border-bottom: 1px solid rgba(255, 40, 60, .35); }
.km-bar.b { bottom: 0; transform: translateY(101%); border-top: 1px solid rgba(255, 40, 60, .35); }
#blKamui.on .km-bar { transform: none; }
.km-kanji { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(1.3); font-size: min(58vh, 46vw); line-height: 1; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255, 40, 70, .16); opacity: 0; letter-spacing: -.04em; white-space: nowrap; font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; transition: opacity 1s ease, transform 5s cubic-bezier(.2, .6, .2, 1); }
#blKamui.eye .km-kanji { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.km-figure { position: absolute; left: 50%; top: 56%; height: min(92vh, 760px); -webkit-mask-image: linear-gradient(#000 62%, transparent 88%); mask-image: linear-gradient(#000 62%, transparent 88%); aspect-ratio: 400 / 520; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .9)) drop-shadow(0 0 34px rgba(255, 30, 60, .28)); will-change: transform, opacity, filter; }
.km-figure svg { width: 100%; height: 100%; display: block; overflow: visible; }
.km-float { animation: kmFloat 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes kmFloat { 0%, 100% { transform: translateY(0) rotate(-.6deg) } 50% { transform: translateY(-7px) rotate(.6deg) } }
.km-iris { transform-box: fill-box; transform-origin: center; animation: kmSpin 2.4s linear infinite; }
#blKamui.pull .km-iris { animation-duration: .35s; }
@keyframes kmSpin { to { transform: rotate(360deg) } }
.km-eyeglow { opacity: 0; transition: opacity .25s; }
#blKamui.eye .km-eyeglow { opacity: 1; animation: kmPulse 1.1s ease-in-out infinite; }
@keyframes kmPulse { 0%, 100% { opacity: .75 } 50% { opacity: 1 } }
.km-tomoe { transition: opacity .3s; } .km-mange { opacity: 0; transition: opacity .3s; }
#blKamui.pull .km-tomoe { opacity: 0; } #blKamui.pull .km-mange { opacity: 1; }
.km-cap { position: absolute; left: 0; right: 0; bottom: calc(11vh + 5.5vh); text-align: center; color: #fff; }
.km-line { font-size: clamp(15px, 2.1vw, 24px); font-style: italic; letter-spacing: .04em; color: #f3dfe3; text-shadow: 0 2px 14px #000, 0 0 22px rgba(255, 40, 70, .5); min-height: 1.4em; opacity: 0; transition: opacity .4s; }
.km-line.show { opacity: 1; }
.km-line i { font-style: normal; opacity: .55; font-size: .72em; letter-spacing: .22em; text-transform: uppercase; margin-left: .9em; }
.km-shout { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(2.6); opacity: 0; font-weight: 900; font-size: clamp(64px, 17vw, 250px); letter-spacing: .12em; padding-left: .12em; color: #fff; white-space: nowrap; mix-blend-mode: screen;
  text-shadow: 0 0 2px #fff, 0 0 30px rgba(255, 30, 60, .95), 0 0 90px rgba(255, 0, 40, .8), 6px 0 0 rgba(255, 0, 60, .55), -6px 0 0 rgba(90, 60, 255, .5); }
.km-shout.hit { animation: kmShout 1.5s cubic-bezier(.1, .9, .2, 1) forwards; }
@keyframes kmShout { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); filter: blur(14px) } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0) } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); filter: blur(6px); letter-spacing: .5em } }
.km-flash { position: absolute; inset: 0; background: radial-gradient(circle at var(--ex, 50%) var(--ey, 40%), #fff 0, rgba(255, 60, 90, .9) 12%, rgba(255, 0, 40, 0) 55%); opacity: 0; }
.km-flash.go { animation: kmFlash .7s ease-out forwards; }
@keyframes kmFlash { 0% { opacity: 0 } 18% { opacity: 1 } 100% { opacity: 0 } }
.km-ring { position: absolute; left: var(--ex, 50%); top: var(--ey, 40%); width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; border-radius: 50%; border: 3px solid rgba(255, 90, 110, .9); box-shadow: 0 0 60px rgba(255, 30, 60, .8), inset 0 0 60px rgba(255, 30, 60, .6); opacity: 0; transform: scale(1); }
.km-ring.go { animation: kmRing .75s cubic-bezier(.6, 0, .9, .3) forwards; }
@keyframes kmRing { 0% { opacity: 0; transform: scale(1) } 20% { opacity: 1 } 100% { opacity: 1; transform: scale(0) } }
.km-words { position: absolute; inset: 0; }
.km-w { position: fixed; left: 0; top: 0; margin: 0; white-space: pre; will-change: transform, opacity; transform-origin: 50% 50%; }
.km-w.ava { border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 700; }
.km-w.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.km-shake { animation: kmShake .5s linear; }
@keyframes kmShake { 0%, 100% { transform: translate(0, 0) } 15% { transform: translate(-7px, 3px) } 30% { transform: translate(6px, -4px) } 45% { transform: translate(-4px, -3px) } 60% { transform: translate(4px, 4px) } 80% { transform: translate(-2px, 1px) } }
.km-hidden-log > * { visibility: hidden !important; }
.km-calm { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .8); color: #fff; font-size: 22px; font-weight: 700; }
