/* Horror finale effects. Existing backgrounds and assets remain unchanged. */
.end-confession{position:fixed;inset:0;z-index:48;pointer-events:none;background:#0a0004f7;color:#ff153a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(9px,2.8vh,25px);text-align:center;padding:22px 5vw;text-shadow:0 0 9px #ff00009c,3px 4px 0 #310007;animation:confessionIn .23s ease-out both}
.end-confession[hidden]{display:none!important}
.end-confession strong{display:block;font:900 clamp(44px,10.5vw,130px)/1.22 'Noto Serif JP',serif;letter-spacing:-.035em;max-width:100%;overflow-wrap:anywhere}
.end-confession strong:last-child{font-size:clamp(28px,9vw,115px);white-space:nowrap}
@keyframes confessionIn{0%{opacity:0;filter:brightness(2);transform:scale(1.07)}100%{opacity:1;filter:brightness(1);transform:scale(1)}}
.end-wanted-official-poster{height:100%;width:100%;min-height:0;display:flex;justify-content:center;align-items:center;overflow:hidden;filter:drop-shadow(0 7px 16px #000b)}
.end-wanted-official-poster img{display:block;max-width:100%;max-height:100%;height:auto;width:auto;object-fit:contain;box-shadow:0 0 0 2px #c4a877;animation:posterSlap .32s ease-out both}
.end-scene:has(.end-wanted-official-poster) .end-scene-content{height:100%;min-height:0;max-width:min(100%,800px)}
.end-scene:has(.end-wanted-official-poster) .end-scene-title{margin-bottom:6px}
@keyframes posterSlap{from{opacity:.42;transform:translateY(-12px) scale(1.045);filter:brightness(1.8)}to{opacity:1;transform:none;filter:brightness(1)}}
/* Keep share art in its authored 4:5 frame, never crop the card. */
.ending-card .end-image-btn img{object-fit:contain!important;image-rendering:auto!important}
.ending-card .end-image-btn{background:#111c24!important}
@media(prefers-reduced-motion:reduce){.end-confession,.end-wanted-official-poster img{animation:none!important}}
@media(max-height:560px){.end-confession strong{font-size:clamp(37px,8vw,80px)}.end-confession strong:last-child{font-size:clamp(38px,7vw,75px)}}

/* Present the whole wanted document above dialogue on wide desktops. */
@media(min-width:900px) and (min-height:700px){.end-scene:has(.end-wanted-official-poster){bottom:31vh}}
.ending-recruit-notice{position:absolute;left:3%;right:3%;bottom:clamp(130px,30dvh,300px);z-index:3;padding:clamp(10px,2vw,22px);border:2px solid #f1cd91;background:#081623f2;color:#fff1df;text-align:center;box-shadow:0 0 28px #000a;animation:posterSlap .28s ease-out both}
.ending-recruit-notice small{display:block;color:#f6c780;font:800 clamp(11px,1.6vw,16px)/1.4 system-ui,sans-serif;letter-spacing:.08em}
.ending-recruit-notice strong{display:block;margin-top:4px;font:900 clamp(15px,3.5vw,30px)/1.32 'Noto Serif JP',serif}
@media(prefers-reduced-motion:reduce){.ending-recruit-notice{animation:none!important}}
