*{box-sizing:border-box}
html{background:#080909}
body{margin:0;background:#080909;color:#d2d5d2;font-family:'Courier New',monospace;font-size:17px;min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden}
/* cinematic overlay: vignette + faint scanlines */
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:5;background:radial-gradient(ellipse at center,transparent 45%,rgba(0,0,0,.65) 100%)}
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:6;opacity:.02;background:repeating-linear-gradient(0deg,#fff 0,#fff 1px,transparent 1px,transparent 3px)}
header,footer{padding:20px;border-bottom:1px solid #242424;font-size:14px;letter-spacing:2px;position:relative;z-index:7}
header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
header .right{display:flex;align-items:center;gap:18px}
header .live{color:#8fb49a}
header .live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#789580;margin-right:6px;animation:blink 1.6s steps(2,end) infinite}
@keyframes blink{50%{opacity:.15}}
#snd{font:inherit;font-size:14px;letter-spacing:2px;padding:6px 10px;background:none;color:#9a9d9a;border:1px solid #353535;cursor:pointer}
#snd[aria-pressed=true]{color:#e0b3b3;border-color:#833238}
main{max-width:640px;margin:auto;padding:36px 24px;text-align:center;min-height:75vh;width:100%;position:relative;z-index:7;flex:1}
h1{font-size:clamp(30px,6.5vw,48px);font-weight:700;letter-spacing:4px;color:#f2f2ef;line-height:1.4;margin:.67em 0}
p{font-size:18px;line-height:1.9;color:#c4c7c4}
.tag{color:#d0575f;font-size:15px;font-weight:700;letter-spacing:3px;margin:22px 0}
button{font:inherit;font-size:17px;font-weight:700;cursor:pointer;letter-spacing:2px;padding:18px 28px;background:#190d0f;color:#e0b3b3;border:1px solid #833238;transition:.3s;max-width:100%}
button:hover{background:#4b171c}
button.secondary{display:block;margin:10px auto;background:none;border:0;color:#a8aaa8;font-size:15px;font-weight:400}
label{display:block;text-align:left;font-size:15px;letter-spacing:2px;margin:20px 0 10px}
input,select{background:#101111;color:#eee;border:1px solid #4a4a4a;padding:16px;width:100%;font:inherit;font-size:17px}
input:focus,select:focus,button:focus-visible,#snd:focus-visible,a:focus-visible{outline:2px solid #9c4146;outline-offset:2px}
footer{text-align:center;color:#a0a3a0;border-top:1px solid #222;border-bottom:0;line-height:1.9}
footer a{color:#d2d5d2}
.box{border:1px solid #333;padding:20px;text-align:left;line-height:2}
.small{font-size:14px}
a.btnlink{display:inline-block;text-decoration:none;letter-spacing:2px;padding:18px 28px;background:#190d0f;color:#f0c4c4;border:1px solid #a33a42;font-size:17px;font-weight:700}
a.btnlink:hover{background:#4b171c}
svg{max-width:100%;height:auto}

/* scene transitions + typewriter */
.scene{animation:fadein 1.1s ease both}
.scene.out{animation:fadeout .38s ease both}
@keyframes fadein{from{opacity:0;transform:translateY(8px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@keyframes fadeout{to{opacity:0;transform:translateY(-6px);filter:blur(3px)}}
.typing button,.typing input,.typing select,.typing a.btnlink{opacity:0;pointer-events:none}
.scene button,.scene input,.scene select,.scene a.btnlink{transition:opacity .8s ease,background .3s}
.cur::after{content:"\25AE";margin-left:2px;color:#9c4146;animation:blink .9s steps(2,end) infinite}
.glitch{animation:glitch 6s infinite}
@keyframes glitch{0%,93%,100%{transform:none;text-shadow:none}94%{transform:translateX(-2px);text-shadow:2px 0 #833238,-2px 0 #3a5a4a}96%{transform:translateX(2px);text-shadow:-2px 0 #833238,2px 0 #3a5a4a}98%{transform:none;text-shadow:none}}
@media(prefers-reduced-motion:reduce){.scene,.scene.out{animation:none}.glitch,header .live i,.cur::after{animation:none}}
@media(max-width:480px){main{padding:28px 16px}button,a.btnlink{padding:16px 18px;letter-spacing:1px;font-size:16px}header{padding:14px;font-size:13px}p{font-size:17px}}

/* the robed watcher: stands at the left edge and steps closer as the visitor chooses */
.watcher{position:fixed;left:0;bottom:0;height:90vh;height:90svh;z-index:4;pointer-events:none;opacity:0;transform-origin:left bottom;transform:translateX(-30px) scale(.94);transition:opacity 3.5s ease,transform 6s ease;filter:drop-shadow(0 0 26px rgba(131,50,56,.35))}
.watcher img{display:block;height:100%;width:auto;-webkit-mask-image:linear-gradient(to bottom,#000 82%,transparent 100%);mask-image:linear-gradient(to bottom,#000 82%,transparent 100%);animation:breathe 7s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
body[data-step="0"] .watcher,body[data-step="boot"] .watcher{opacity:.88;transform:translateX(-6px) scale(.97)}
body[data-step="1"] .watcher{opacity:.92;transform:translateX(0) scale(1)}
body[data-step="2"] .watcher{opacity:.96;transform:translateX(14px) scale(1.06)}
body[data-step="3"] .watcher{opacity:1;transform:translateX(26px) scale(1.12)}
@media(max-width:1100px){.watcher{height:78vh;height:78svh}body[data-step="0"] .watcher,body[data-step="boot"] .watcher,body[data-step="1"] .watcher,body[data-step="2"] .watcher,body[data-step="3"] .watcher{opacity:.3}}
@media(max-width:600px){.watcher{height:64vh;height:64svh;left:-14%}}
@media(prefers-reduced-motion:reduce){.watcher{transition:opacity .5s}.watcher img{animation:none}body[data-step="2"] .watcher,body[data-step="3"] .watcher{transform:none}}

/* the black envelope: large and imposing */
.env{display:block;margin:6px auto 4px;width:min(360px,72%);height:auto;filter:drop-shadow(0 0 34px rgba(131,50,56,.5)) drop-shadow(0 18px 30px rgba(0,0,0,.8));animation:envpulse 5s ease-in-out infinite}
@keyframes envpulse{0%,100%{filter:drop-shadow(0 0 26px rgba(131,50,56,.35)) drop-shadow(0 18px 30px rgba(0,0,0,.8))}50%{filter:drop-shadow(0 0 48px rgba(170,50,60,.65)) drop-shadow(0 18px 30px rgba(0,0,0,.8))}}
@media(prefers-reduced-motion:reduce){.env{animation:none}}
