.character-art,.visitor-portrait{position:relative}
.character-art .visitor-sprite{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 7px #0b0e10aa)}
.visitor-portrait .visitor-sprite{width:100%;height:100%;object-fit:cover;object-position:50% 12%;transform:none;filter:brightness(.88) contrast(1.1) saturate(.86)}
.visitor-portrait .person-10{object-position:50% 52%}
.visitor-sprite.uncanny{filter:contrast(1.18) saturate(.72) brightness(.82) sepia(.12)}
.portrait-anomaly{position:absolute;inset:0;z-index:2;display:block;pointer-events:none;animation:wrong-blink 8s ease-in-out infinite;opacity:.9}
.portrait-anomaly i{position:absolute;display:block}
.horror-bag{top:32%;width:13%;height:5%;border-radius:48%;background:radial-gradient(ellipse,#120c10d9 0 35%,#54262dba 66%,transparent 100%);filter:blur(1.2px)}
.horror-left{left:34%}.horror-right{left:55%}
.horror-eye{top:24%;left:47%;width:9%;height:6%;border-radius:50% 42% 48% 42%;background:radial-gradient(ellipse at 52% 52%,#08080b 0 24%,#9a1820 28% 38%,#eee0cb 43% 68%,#462329 75% 82%,transparent 88%);transform:rotate(-12deg);filter:drop-shadow(0 0 2px #770d18)}
.horror-wound{top:37%;left:63%;width:4%;height:19%;background:linear-gradient(90deg,transparent 0 19%,#601018 25% 46%,#bd2523 53% 72%,#471016 80% 88%,transparent 100%);clip-path:polygon(40% 0,100% 16%,50% 34%,90% 49%,25% 66%,73% 82%,0 100%,28% 73%,5% 56%,61% 43%,16% 28%,55% 18%);filter:drop-shadow(0 1px 2px #17090a)}
.horror-mouth{top:50%;left:41%;width:20%;height:3.5%;border-radius:48% 12% 44% 20%;background:linear-gradient(#170c0f 0 40%,#73151b 45% 76%,#1b0c0f 82%);transform:rotate(-8deg);box-shadow:0 2px 0 #d6b6a377}
.horror-blood{top:53%;left:59%;width:5%;height:9%;border-radius:45% 50% 65% 30%;background:radial-gradient(ellipse at 45% 15%,#c6322d 0 18%,#78171d 50%,#421016 72%,transparent 80%);filter:blur(.4px)}
.anomaly-0 .horror-eye{top:20%;left:49%;width:11%;height:7%}.anomaly-0 .horror-wound{left:35%;top:38%;height:15%;transform:rotate(7deg)}.anomaly-0 .horror-mouth{top:52%;left:43%;transform:rotate(6deg)}
.anomaly-1 .horror-eye{top:31%;left:57%;width:8%;height:6%;transform:rotate(18deg) scale(.8,1.5)}.anomaly-1 .horror-wound{left:31%;top:39%;height:23%;transform:rotate(-11deg)}.anomaly-1 .horror-mouth{top:55%;left:48%;width:17%;transform:rotate(13deg)}.anomaly-1 .horror-blood{top:60%;left:35%;height:7%}
.anomaly-2 .horror-eye{top:23%;left:39%;width:10%;height:8%;transform:rotate(8deg) scale(1.15,.8)}.anomaly-2 .horror-wound{left:62%;top:34%;height:21%;transform:rotate(-8deg)}.anomaly-2 .horror-mouth{top:48%;left:39%;width:22%;height:4.5%;transform:rotate(-12deg)}.anomaly-2 .horror-blood{top:55%;left:61%;height:10%}
.portrait-anomaly.person-10 .horror-eye{top:45%;left:46%;width:11%;height:8%}.portrait-anomaly.person-10 .horror-bag{top:50%;height:6%}.portrait-anomaly.person-10 .horror-wound{top:55%;left:66%;height:18%}.portrait-anomaly.person-10 .horror-mouth{top:71%;left:43%;width:22%;height:4.5%}.portrait-anomaly.person-10 .horror-blood{top:75%;left:63%;height:9%}
.phase-4 .portrait-anomaly,.shelter-screen[data-dread="3"] .portrait-anomaly,.shelter-screen[data-dread="4"] .portrait-anomaly{opacity:1;filter:drop-shadow(0 0 5px #a32b2b)}
@keyframes wrong-blink{0%,91%,100%{opacity:.2}94%{opacity:.85}}
.peephole{top:19%;filter:drop-shadow(0 14px 22px #000d)}
.peephole-inner{width:clamp(250px,27vw,310px);height:clamp(250px,27vw,310px);border:13px ridge #a58258;background:radial-gradient(circle at 45% 35%,#aeb1a4,#344044 72%,#070b0e);box-shadow:0 0 0 6px #211b17,inset 0 0 38px 10px #0b1115,inset 0 0 0 2px #f4d5a344}
.peephole-inner:after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;background:linear-gradient(135deg,#fff2 0 10%,transparent 28% 72%,#05090c55);box-shadow:inset 0 0 18px 5px #080d1099}
.visitor-portrait{background:radial-gradient(ellipse at 50% 28%,#b6b7aa,#42494a 68%,#101619);border-radius:50%}
.peephole>span{margin-top:13px;padding:7px 16px;background:#171d20ee;border-color:#d0ae79;box-shadow:0 3px 12px #0008;letter-spacing:.16em}
.story-area{gap:16px}
.dialogue-box,.deal-area{border-radius:7px;box-shadow:0 12px 32px #000a,inset 0 0 0 1px #f0d6a51c,inset 0 0 0 4px #373b32}
.dialogue-box{background:linear-gradient(140deg,#202a29f2,#141d21f5);border-color:#c3a878}
.deal-area{background:linear-gradient(145deg,#232a26f2,#151b1cf5);border-color:#c3a878}
.offer-chip{border-radius:3px;background:#c0a07135}
.primary-button,.secondary-button,.ghost-button,.finish-button{transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}
.primary-button:hover:not(:disabled),.secondary-button:hover:not(:disabled),.ghost-button:hover:not(:disabled),.finish-button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.12);box-shadow:0 5px 14px #0005}
.shelter-status,.shelter-event{backdrop-filter:blur(5px)}
.shelter-event{border-radius:7px;box-shadow:0 14px 34px #000c,inset 0 0 0 1px #f0d6a51c,inset 0 0 0 4px #373b32}
.shelter-choices button{border-radius:5px;transition:transform .16s ease,filter .16s ease,background .16s ease}
.shelter-choices button:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.12)}
@media(max-width:760px){.peephole{top:24%}.peephole-inner{width:212px;height:212px;border-width:10px}.peephole>span{margin-top:9px}.story-area{gap:8px}}
.character-art .visitor-sprite,.visitor-portrait .visitor-sprite{position:relative;z-index:2}
.visitor-sprite.uncanny{animation:portrait-writhe 3.4s ease-in-out infinite;transform-origin:50% 38%;filter:contrast(1.38) saturate(.86) brightness(.69) sepia(.24) hue-rotate(326deg)}
.visitor-sprite.visitor-echo{position:absolute;inset:0;z-index:1;opacity:.56;mix-blend-mode:screen;filter:sepia(.85) saturate(3.1) hue-rotate(305deg) contrast(1.5) brightness(.8);transform:translate(5px,-2px) scale(1.035);clip-path:polygon(5% 12%,94% 8%,86% 39%,99% 55%,84% 83%,19% 88%,0 67%);animation:echo-drift 2.8s steps(2,end) infinite}
.visitor-sprite.visitor-echo.late-uncanny{opacity:.82;filter:sepia(1) saturate(4) hue-rotate(300deg) contrast(1.8) brightness(.74);animation:echo-late .72s steps(2,end) infinite}
.visitor-sprite.uncanny.late-uncanny{filter:contrast(1.55) saturate(1.05) brightness(.62) sepia(.36) hue-rotate(324deg);animation:portrait-late 1.8s ease-in-out infinite}
.portrait-anomaly{z-index:4;animation:monster-pulse 4.2s ease-in-out infinite;opacity:.96}
.horror-bag{top:30%;width:17%;height:8%;border-radius:48% 55% 42% 62%;background:radial-gradient(ellipse,#07070bdc 0 28%,#211018ed 45%,#721d2abf 72%,transparent 100%);filter:blur(1.5px);mix-blend-mode:multiply}
.horror-left{left:30%;transform:rotate(-8deg)}.horror-right{left:55%;transform:rotate(11deg)}
.horror-eye{top:23%;left:46%;width:12%;height:9%;border-radius:47% 53% 39% 61%;background:radial-gradient(ellipse at 52% 50%,#050408 0 18%,#a20d1b 22% 35%,#f5dfd0 40% 64%,#53111c 72% 84%,transparent 90%);transform:rotate(-17deg);filter:drop-shadow(0 0 5px #c20c21)}
.horror-eye-second,.horror-eye-third{width:9%;height:7%;border-radius:53% 39% 62% 45%;background:radial-gradient(ellipse at 48% 46%,#09070b 0 20%,#7c0715 27% 36%,#ead8c5 43% 62%,#45131a 72% 81%,transparent 90%);filter:drop-shadow(0 0 4px #9a0614)}
.horror-eye-second{top:35%;left:62%;transform:rotate(21deg) scale(1.18,.82)}.horror-eye-third{top:19%;left:38%;transform:rotate(-9deg) scale(.84,1.2)}
.horror-wound,.horror-wound-second{width:5%;height:23%;background:linear-gradient(90deg,transparent 0 12%,#400b12 18%,#c21f2c 36% 56%,#5b1019 64% 75%,transparent 88%);clip-path:polygon(34% 0,100% 7%,52% 21%,86% 34%,20% 48%,72% 59%,8% 78%,53% 85%,0 100%,21% 70%,0 55%,52% 39%,17% 29%,61% 16%);filter:drop-shadow(0 1px 3px #180509)}
.horror-wound{top:36%;left:68%;transform:rotate(7deg)}.horror-wound-second{top:40%;left:28%;height:18%;transform:rotate(-15deg) scale(.72,1)}
.horror-mouth{top:49%;left:37%;width:31%;height:9%;border:2px solid #26070d;border-radius:47% 26% 51% 34%;background:radial-gradient(ellipse,#070308 0 50%,#4d0712 58%,#bd1b29 70%,#26070d 82%);transform:rotate(-7deg) skewX(-9deg);box-shadow:0 0 7px #990d1d,0 3px 0 #efc7ad66;clip-path:polygon(0 20%,13% 0,29% 12%,41% 0,55% 12%,72% 0,88% 12%,100% 8%,94% 75%,80% 100%,64% 84%,48% 100%,31% 84%,13% 100%,4% 74%)}
.horror-mouth-two{top:58%;left:49%;width:16%;height:4%;border-radius:50%;background:#0b0308;border-bottom:3px solid #9e1221;transform:rotate(13deg);filter:drop-shadow(0 0 4px #9b0b18)}
.horror-teeth{top:51%;left:40%;width:25%;height:5%;background:repeating-linear-gradient(90deg,#f3dfc9 0 3%,#54121b 3.5% 5%,transparent 5.5% 10%);clip-path:polygon(0 0,100% 0,92% 100%,81% 45%,72% 100%,62% 43%,50% 100%,39% 45%,28% 100%,17% 42%,8% 100%);transform:rotate(-7deg)}
.horror-crack{top:16%;left:42%;width:20%;height:15%;background:linear-gradient(118deg,transparent 0 25%,#4b0b14 27% 31%,#db3b35 32% 34%,transparent 36% 48%,#68101b 50% 53%,transparent 55%);clip-path:polygon(38% 0,58% 22%,45% 43%,75% 63%,53% 69%,62% 100%,42% 75%,23% 58%,43% 42%,31% 23%);filter:drop-shadow(0 0 3px #9a111d)}
.horror-blood{top:56%;left:64%;width:8%;height:17%;border-radius:42% 55% 68% 35%;background:radial-gradient(ellipse at 40% 12%,#ff3931 0 9%,#bd1222 25%,#690913 58%,#25050c 77%,transparent 84%);filter:drop-shadow(0 0 4px #9c0617)}
.horror-blood-two{top:54%;left:31%;width:6%;height:12%;border-radius:50% 38% 65% 45%;background:radial-gradient(ellipse,#d7202b 0 24%,#74101b 60%,transparent 80%);transform:rotate(-13deg)}
.anomaly-0 .horror-mouth{top:51%;left:35%;width:36%;height:11%;transform:rotate(4deg) skewX(-13deg)}.anomaly-0 .horror-eye-third{top:17%;left:47%;width:13%;height:10%}
.anomaly-1 .horror-eye-second{top:28%;left:60%;transform:rotate(28deg) scale(1.35,.72)}.anomaly-1 .horror-wound{left:32%;top:37%;height:26%;transform:rotate(-17deg)}.anomaly-1 .horror-mouth{top:55%;left:45%;width:28%;transform:rotate(14deg) skewX(13deg)}
.anomaly-2 .horror-eye-third{top:30%;left:49%;width:12%;height:9%;transform:rotate(17deg)}.anomaly-2 .horror-wound-second{left:67%;top:30%;height:29%}.anomaly-2 .horror-mouth-two{top:62%;left:35%;width:23%;height:5%;transform:rotate(-18deg)}
.portrait-anomaly.person-10 .horror-eye{top:46%;left:44%;width:13%;height:10%}.portrait-anomaly.person-10 .horror-eye-second{top:52%;left:64%}.portrait-anomaly.person-10 .horror-eye-third{top:41%;left:28%}.portrait-anomaly.person-10 .horror-bag{top:50%;height:7%}.portrait-anomaly.person-10 .horror-wound{top:56%;left:70%;height:19%}.portrait-anomaly.person-10 .horror-mouth{top:69%;left:36%;width:38%;height:11%}.portrait-anomaly.person-10 .horror-teeth{top:72%;left:40%;width:31%;height:6%}.portrait-anomaly.person-10 .horror-blood{top:77%;left:66%;height:9%}
.portrait-anomaly.late-uncanny .horror-wound,.portrait-anomaly.late-uncanny .horror-blood,.portrait-anomaly.late-uncanny .horror-blood-two{filter:drop-shadow(0 0 8px #ff172e) saturate(1.6)}
.portrait-anomaly.late-uncanny .horror-eye,.portrait-anomaly.late-uncanny .horror-eye-second,.portrait-anomaly.late-uncanny .horror-eye-third{filter:drop-shadow(0 0 9px #f40023)}
.phase-4 .character-art .portrait-anomaly,.shelter-screen[data-dread="3"] .portrait-anomaly,.shelter-screen[data-dread="4"] .portrait-anomaly{opacity:1;filter:drop-shadow(0 0 9px #ed122b)}
@keyframes portrait-writhe{0%,100%{transform:translate(0,0) skew(0)}22%{transform:translate(-2px,1px) skew(-.5deg)}49%{transform:translate(1px,-1px) skew(.8deg)}73%{transform:translate(0,1px) skew(-.3deg)}}
@keyframes portrait-late{0%,100%{transform:translate(0,0) scale(1)}24%{transform:translate(-3px,1px) scale(1.015,.99)}51%{transform:translate(2px,-1px) scale(.99,1.015)}76%{transform:translate(-1px,0) skew(1deg)}}
@keyframes echo-drift{0%,100%{transform:translate(4px,-2px) scale(1.035)}50%{transform:translate(-3px,1px) scale(1.025)}}
@keyframes echo-late{0%,100%{transform:translate(8px,-2px) scale(1.06);clip-path:polygon(8% 3%,100% 0,89% 42%,100% 56%,81% 92%,17% 84%,0 61%)}50%{transform:translate(-7px,2px) scale(1.01);clip-path:polygon(0 13%,88% 5%,100% 39%,86% 61%,96% 80%,14% 100%,4% 55%)}}
@keyframes monster-pulse{0%,100%{opacity:.92}47%{opacity:1}49%{opacity:.28}52%{opacity:1}}
