@font-face { font-family: "Ma Shan Zheng Local"; src: url("assets/ma-shan-zheng.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --brush: "Ma Shan Zheng Local", "KaiTi", "STKaiti", serif; }
.intro-world {
  --parallax-x: 0px; --parallax-y: 0px; --weapon-angle: 32deg;
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  opacity: 1; isolation: isolate; background: #100b21;
}
.realm-backdrop { position: absolute; inset: -3%; transform: translate(calc(var(--parallax-x) * -.3), calc(var(--parallax-y) * -.3)) scale(1.03); }
.realm-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; filter: brightness(.67) saturate(.84); }
.realm-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 46% 43%, transparent 10%, #110a2438 55%, #080613c7 100%), linear-gradient(0deg, #080613d9, transparent 35%, #09071433 78%, #0907148c); }
.realm-haze { position: absolute; width: 100%; height: 46%; left: -10%; bottom: -12%; background: radial-gradient(ellipse, #ac78da20, transparent 67%); filter: blur(28px); animation: realm-drift 16s ease-in-out infinite alternate; }
.realm-haze--far { left: 18%; bottom: 20%; width: 65%; opacity: .45; animation-duration: 21s; animation-delay: -9s; }
.realm-haze--near { mix-blend-mode: screen; }
.weapon-field { position: absolute; inset: 0; transform: translate(var(--parallax-x), var(--parallax-y)); }
.hero-weapon-anchor { position: absolute; top: 44%; left: 43%; height: min(83svh, 860px); aspect-ratio: 1 / 3; transform: translate(-50%, -50%); z-index: 2; }
.hero-weapon-motion { position: relative; width: 100%; height: 100%; transform: rotate(var(--weapon-angle)); transform-origin: 50% 58%; }
.hero-weapon-float { position: relative; width: 100%; height: 100%; animation: weapon-breathe 7s ease-in-out infinite; }
.hero-weapon-image { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 3px #d6bcff70) drop-shadow(0 0 22px #a665e840); user-select: none; }
.weapon-electricity { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px #ba79ff); }
.weapon-electricity path { stroke: #ede2ff; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.blade-current { animation: blade-flicker 8s ease-in-out infinite; }
.blade-spark { animation: blade-flicker 8s 1.8s ease-in-out infinite; }
.weapon-echo { position: absolute; height: var(--echo-size); aspect-ratio: 1 / 3; left: var(--echo-left); top: var(--echo-top); opacity: var(--echo-opacity); transform: translate(-50%, -50%) rotate(var(--echo-angle)); filter: blur(var(--echo-blur, 1px)) saturate(.55); }
.weapon-echo img { display: block; width: 100%; height: 100%; object-fit: contain; animation: echo-float var(--echo-duration, 11s) ease-in-out infinite alternate; animation-delay: var(--echo-delay, -3s); }
.echo-one { --echo-left: 13%; --echo-top: 28%; --echo-size: 43svh; --echo-angle: 18deg; --echo-opacity: .21; --echo-blur: 1.3px; --echo-duration: 12s; }
.echo-two { --echo-left: 29%; --echo-top: 25%; --echo-size: 51svh; --echo-angle: 29deg; --echo-opacity: .17; --echo-blur: .7px; --echo-duration: 9s; --echo-delay: -6s; }
.echo-three { --echo-left: 65%; --echo-top: 29%; --echo-size: 39svh; --echo-angle: 38deg; --echo-opacity: .19; --echo-blur: 1.4px; --echo-duration: 13s; }
.echo-four { --echo-left: 85%; --echo-top: 64%; --echo-size: 54svh; --echo-angle: 21deg; --echo-opacity: .16; --echo-blur: 1px; --echo-delay: -9s; }
.echo-five { --echo-left: 1%; --echo-top: 78%; --echo-size: 88svh; --echo-angle: 35deg; --echo-opacity: .12; --echo-blur: 2.5px; --echo-duration: 14s; }
.echo-six { --echo-left: 71%; --echo-top: 96%; --echo-size: 67svh; --echo-angle: 38deg; --echo-opacity: .15; --echo-blur: 1.8px; --echo-delay: -7s; }
.realm-charge { position: absolute; inset: 0; background: radial-gradient(ellipse at 53% 24%, #c995ff60, transparent 35%); mix-blend-mode: screen; opacity: 0; }
.realm-cut { position: absolute; top: 45%; left: -20%; width: 140%; height: 3px; background: #f4eaff; box-shadow: 0 0 9px 3px #dec3ff, 0 0 36px 13px #a666f299; transform: rotate(-27deg) scaleX(0); opacity: 0; }
.intro-layer { cursor: pointer; transition: opacity .28s ease; }
.intro-caption { position: absolute; top: 42%; left: 7.5%; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; color: #c9b4dd99; pointer-events: none; }
.intro-caption span:first-child { font: 8px Georgia, serif; letter-spacing: .29em; }
.intro-caption i { display: block; width: 32px; height: 1px; background: #c5a5e24d; }
.intro-caption span:last-child { font-size: 12px; letter-spacing: .42em; color: #e2cdefb5; }
.intro-calligraphy { position: absolute; top: 24%; right: 14%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.intro-layer .intro-verse { position: static; font-family: var(--brush); font-weight: 400; font-size: clamp(30px, 3.1vw, 49px); line-height: 1.75; letter-spacing: .23em; color: #f3e9ff; text-shadow: 0 2px 18px #0a041c, 0 0 30px #ac77da33; }
.intro-layer .intro-verse span + span { padding-top: 1.35em; }
.intro-signature { margin-top: 27px; padding: 7px 8px; border: 1px solid #c294dd5c; color: #d6b0e6b3; font-size: 9px; letter-spacing: .2em; }
.intro-layer .intro-bottom { bottom: max(8%, 70px); pointer-events: none; }
.intro-bottom .enter-eternity { pointer-events: auto; background: #130d2533; border-color: #ccb1ed57; backdrop-filter: blur(8px); min-height: 48px; transition: border-color .25s, background .25s, box-shadow .25s; }
.intro-bottom .enter-eternity:hover { border-color: #ead5f5b5; background: #41245155; box-shadow: 0 0 25px #aa74df1c; }
.intro-layer .intro-bottom > p { margin: 0 0 18px; font-size: 12px; letter-spacing: .4em; color: #dfcfe9ba; }
.intro-layer .intro-bottom small { margin-top: 14px; color: #ded0eb94; font-size: 9px; letter-spacing: .18em; }
.character-scene:not([data-phase="ready"]) .scene-wordmark { color: #ded0ed9c; }
.character-scene[data-phase="intro"] .scene-video { opacity: 0; }
.character-scene { --cinematic-duration: 1500ms; }
#fracture-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.character-scene[data-phase="slashing"] .intro-world { animation: realm-reveal var(--cinematic-duration) linear both; }
.character-scene[data-phase="slashing"] .intro-world[data-fractured] { opacity: 0; animation: none; }
.character-scene[data-phase="slashing"] .hero-weapon-motion { animation: weapon-strike var(--cinematic-duration) cubic-bezier(.22,.61,.36,1) both; }
.character-scene[data-phase="slashing"] .hero-weapon-float { animation: none; }
.character-scene[data-phase="slashing"] .hero-weapon-image { animation: weapon-charge var(--cinematic-duration) linear both; }
.character-scene[data-phase="slashing"] .weapon-electricity path { animation: charge-current var(--cinematic-duration) linear both; }
.character-scene[data-phase="slashing"] .weapon-echo { animation: echoes-release var(--cinematic-duration) linear both; }
.character-scene[data-phase="slashing"] .realm-charge { animation: charge-bloom var(--cinematic-duration) linear both; }
.character-scene[data-phase="slashing"] .realm-cut { display: none; }
.character-scene[data-phase="slashing"] .slash-flash { animation: gentle-flash var(--cinematic-duration) linear both; }
.character-scene[data-phase="slashing"] .intro-layer { transition-duration: calc(var(--cinematic-duration) * .13); }
.character-scene[data-phase="slashing"] #scene-effects { z-index: 5; }
.cinematic-caption { position: absolute; z-index: 6; left: 0; bottom: max(9%, 70px); width: 100%; text-align: center; pointer-events: none; text-shadow: 0 2px 18px #0a041c; animation: caption-reveal calc(var(--cinematic-duration) * .13) both; }
.cinematic-caption > span { font: 400 clamp(25px, 3vw, 43px)/1.5 var(--brush); color: #f4e8ff; letter-spacing: .17em; }
.cinematic-caption > i { display: block; width: 35px; height: 1px; margin: 11px auto; background: #d6b4ed8c; }
.cinematic-caption > small { font: 9px var(--sans); letter-spacing: .26em; color: #e5ccf2b0; }
.character-scene[data-cinematic="settle"] .cinematic-caption { opacity: 0; transition: opacity calc(var(--cinematic-duration) * .1); animation: none; }
.intro-caption span:last-child, .intro-signature { font-family: var(--brush); }
.intro-layer .intro-verse { font-size: clamp(33px, 3.45vw, 54px); letter-spacing: .17em; }
@keyframes caption-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.character-scene[data-motion="paused"] .intro-world * { animation-play-state: paused !important; }
.character-scene[data-phase="intro"][data-motion="paused"] .weapon-electricity { visibility: hidden; }
@keyframes weapon-breathe { 0%,100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-11px) rotate(.6deg); } }
@keyframes echo-float { from { transform: translateY(0); } to { transform: translateY(-18px); } }
@keyframes realm-drift { from { transform: translate(-2%, 0) scale(1); } to { transform: translate(7%, -5%) scale(1.08); } }
@keyframes blade-flicker { 0%,64%,80%,100% { opacity: 0; } 70% { opacity: .4; } 75% { opacity: .12; } }
@keyframes weapon-strike { 0% { transform: rotate(var(--weapon-angle)); opacity: 1; } 18% { transform: translate(-5%, 3%) rotate(calc(var(--weapon-angle) - 14deg)) scale(1.1); opacity: 1; } 23.4% { transform: translate(-6%, 3%) rotate(calc(var(--weapon-angle) - 17deg)) scale(1.13); opacity: 1; } 29% { transform: translate(58%, -8%) rotate(calc(var(--weapon-angle) + 62deg)) scale(1.2); opacity: 1; } 33%,100% { transform: translate(185%, -28%) rotate(calc(var(--weapon-angle) + 110deg)) scale(1.28); opacity: 0; } }
@keyframes weapon-charge { 0% { filter: drop-shadow(0 0 10px #ba83ff55); } 21%,27% { filter: brightness(1.65) drop-shadow(0 0 15px #e4caff) drop-shadow(0 0 37px #b678ffb0); } 34%,100% { filter: brightness(1.8) drop-shadow(0 0 20px #dec4ff); } }
@keyframes charge-current { 0% { opacity: 0; } 12% { opacity: .3; } 23%,28% { opacity: .95; } 33%,100% { opacity: 0; } }
@keyframes echoes-release { 0% { opacity: var(--echo-opacity); } 19% { opacity: .34; } 30%,100% { opacity: 0; } }
@keyframes charge-bloom { 0% { opacity: 0; } 22% { opacity: .7; } 30% { opacity: .85; } 38%,100% { opacity: 0; } }
@keyframes realm-reveal { 0%,56% { opacity: 1; } 93%,100% { opacity: 0; } }
@keyframes gentle-flash { 0%,29.5% { opacity: 0; } 31.5% { opacity: .22; } 39%,100% { opacity: 0; } }
@media (min-aspect-ratio: 2/1) { .hero-weapon-anchor { height: 89svh; } .intro-calligraphy { top: 19%; } .intro-layer .intro-verse { font-size: clamp(26px, 5.5svh, 44px); } }
@media (max-width: 900px) { .intro-calligraphy { right: 10%; } .intro-caption { left: 6%; top: 32%; } .intro-caption span:first-child { font-size: 6px; max-width: 100px; line-height: 1.8; } .hero-weapon-anchor { left: 41%; height: 74svh; } }
@media (max-width: 600px) {
  .intro-world { --weapon-angle: 14deg; }
  .realm-image { object-position: 51% 45%; filter: brightness(.82) saturate(.8); }
  .realm-vignette { background: linear-gradient(0deg, #080613ed, #100a2430 40%, #100a2433 75%, #090714ab), radial-gradient(ellipse at 42% 40%, transparent 20%, #08061370); }
  .hero-weapon-anchor { left: 40%; top: 42%; height: 66svh; }
  .intro-calligraphy { top: 21%; right: 7%; }
  .intro-layer .intro-verse { font-size: clamp(24px, 6.8vw, 31px); line-height: 1.6; letter-spacing: .22em; }
  .intro-signature { font-size: 8px; margin-top: 19px; padding: 6px; }
  .intro-caption { left: 8%; top: 15%; gap: 10px; }
  .intro-caption span:first-child { display: none; }
  .intro-caption span:last-child { font-size: 9px; letter-spacing: .3em; }
  .intro-caption i { width: 23px; }
  .echo-two,.echo-four,.echo-six { display: none; }
  .echo-one { --echo-left: 8%; --echo-top: 39%; --echo-size: 43svh; --echo-angle: 13deg; --echo-opacity: .15; }
  .echo-three { --echo-left: 75%; --echo-top: 58%; --echo-size: 39svh; --echo-angle: 19deg; --echo-opacity: .12; }
  .echo-five { --echo-left: 5%; --echo-top: 80%; --echo-size: 53svh; --echo-angle: 18deg; --echo-opacity: .10; }
  .intro-layer .intro-bottom { bottom: max(10%, 78px); }
  .intro-layer .intro-bottom > p { font-size: 10px; margin-bottom: 16px; letter-spacing: .26em; }
  .intro-bottom .enter-eternity { padding: 14px 22px; font-size: 13px; min-height: 48px; }
  .intro-layer .intro-bottom small { font-size: 8px; }
  .realm-haze { filter: blur(18px); }
}
@media (max-height: 620px) and (min-width: 601px) {
  .hero-weapon-anchor { top: 44%; height: 80svh; } .intro-calligraphy { top: 18%; right: 12%; } .intro-layer .intro-verse { font-size: 26px; } .intro-signature { margin-top: 12px; }
  .intro-layer .intro-bottom { bottom: 35px; } .intro-layer .intro-bottom > p { display: none; } .intro-layer .intro-bottom small { margin-top: 8px; } .intro-caption { top: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-world *, .intro-world { animation: none !important; transition: none !important; }
  .weapon-electricity,.realm-charge,.realm-cut { display: none; }
  .weapon-field,.realm-backdrop { transform: none; }
}
