#horrorPeripheral{position:absolute;inset:0;z-index:19;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at center,transparent 35%,#080a0dc9);animation:horrorPeripheralFade .58s ease-out both}
#horrorPeripheral[hidden]{display:none}
.horrorShadow{position:absolute;right:-4vw;top:16%;height:68%;width:19vw;max-width:270px;background:#080a0df5;border-radius:45% 48% 12% 10%;transform:rotate(-17deg);filter:blur(1.2px);box-shadow:0 0 50px #0009}
.horrorShadow:before{content:'';position:absolute;left:25%;top:-9%;width:62%;height:28%;background:#080a0d;border-radius:45% 44% 38% 48%}
.horrorShadow:after{content:'';position:absolute;left:42%;top:4%;width:5%;height:1.4%;background:#c7bca9;box-shadow:2.6vw 0 #c7bca9;opacity:.66}
#horrorPeripheral[data-side=left] .horrorShadow{right:auto;left:-4vw;transform:rotate(17deg) scaleX(-1)}
@keyframes horrorPeripheralFade{0%{opacity:0}7%,24%{opacity:.94}100%{opacity:0}}
#resultScreen[data-horror-result=true]{background:linear-gradient(180deg,transparent 35%,#08070bdb 75%);padding:20px 24px max(24px,env(safe-area-inset-bottom));align-items:flex-end}
#resultScreen[data-horror-result=true] .modalInner{width:min(670px,100%);padding:23px 28px;border:1px solid #a3555366;border-left:3px solid var(--ui-gold,#ffce48);background:linear-gradient(120deg,#190f18ed,#23131be8);border-radius:13px;text-align:left;box-shadow:0 14px 56px #0007}
#resultScreen[data-horror-result=true] #resultTag{font-size:10px;letter-spacing:.18em;color:#efb8a9}
#resultScreen[data-horror-result=true] #resultTitle{font-size:clamp(24px,4.2vw,46px);line-height:1.08;color:#fff1db!important;margin:12px 0}
#resultScreen[data-horror-result=true] #resultText{font:14px/1.55 system-ui;max-width:58ch;color:#dfcfc7;margin:10px 0}
.horrorResultSummary{display:none}#resultScreen[data-horror-result=true] .horrorResultSummary{display:block;font:10px/1.5 monospace;letter-spacing:.13em;color:var(--ui-gold,#ffce48);margin:14px 0}
#resultScreen[data-horror-result=true] .buttonRow{gap:12px;justify-content:flex-start}
@media(max-width:650px),(max-height:550px){#resultScreen[data-horror-result=true]{padding:12px}#resultScreen[data-horror-result=true] .modalInner{padding:16px 18px}#resultScreen[data-horror-result=true] #resultTitle{font-size:26px}#resultScreen[data-horror-result=true] #resultText{font-size:12px}}
@media(prefers-reduced-motion:reduce){#horrorPeripheral{animation:none;opacity:.12}.horrorShadow{display:none}}
