/* Keep opaque character art separate from the pastel scenery. */
.sprite,.stage-card .sprite,.enemy .sprite,.game:not(.boss-mode) .enemy .sprite,.base .sprite,.chapter-body{filter:none}
.sprite{clip-path:inset(3%)}
.game .arena-path,.game .shield{display:none}
.base:before{content:'';position:absolute;left:15%;right:15%;bottom:7%;height:18%;background:radial-gradient(ellipse,#52674345,transparent 70%);border:0;border-radius:46% 54% 57% 43%}
.cast{background-image:url('assets/battle-cast.png');mask-image:var(--cast-mask);mask-size:400% 200%;mask-position:var(--cast-position,0% 0%);mask-repeat:no-repeat;mix-blend-mode:normal;filter:none;clip-path:inset(1%)}
.boss-actor,.candidates{mix-blend-mode:normal;opacity:1}
.boss-sprite,.candidate,.candidate-hit{filter:none;opacity:1}
.candidate{clip-path:inset(1% 8%)}
.boss-actor{width:min(46vh,370px);height:min(46vh,370px);left:53%;top:13%;z-index:4}
.candidates{left:53%;bottom:1%;width:380px;height:205px;z-index:5}
.candidate{width:205px;height:205px}
.candidate-hit{width:265px;height:265px}
.boss-choice,.boss-choice:nth-child(n){left:12px;right:auto;top:22%;width:25%;max-width:260px;animation:singleQuestionFloat 4s ease-in-out infinite alternate;outline:none;box-shadow:0 4px 12px #755b7b18}
.boss-choice.selected{outline:none;border-color:#c99ec3}
.boss-timer{left:50%;top:8px;bottom:auto;right:auto;transform:translateX(-50%);width:220px}
.phase-3 .boss-timer{left:50%;top:8px;bottom:auto;right:auto;transform:translateX(-50%);width:220px}
.phase-3 .boss-actor{left:53%;top:24%;width:300px;height:300px}
.phase-3 .history-orb{left:53%;top:2%}
.chapter-actor{left:55%;top:18%}
.game.chapter-mode .enemy p{-webkit-line-clamp:unset;font-size:13px}
.game.chapter-mode .enemy.nearest .enemy-paper{box-shadow:0 4px 12px #755b7b18}
@keyframes singleQuestionFloat{to{translate:0 10px}}
@media(max-width:680px) and (min-height:581px){
 .boss-choice,.boss-choice:nth-child(n){left:6%;right:auto;top:10%;width:88%;max-width:none;padding:9px 12px}
 .choice-text{font-size:12px;line-height:1.55}.choice-meta{margin-bottom:4px}.choice-meta small{display:inline}
 .boss-actor{left:50%;top:29%;width:min(73vw,300px);height:min(73vw,300px)}
 .candidates{left:50%;bottom:1%;width:310px;height:168px}.candidate{width:168px;height:168px}.candidate-hit{width:220px;height:220px}
 .phase-3 .boss-actor{left:50%;top:39%;width:220px;height:220px}.phase-3 .history-orb{left:50%;top:20%;width:150px}
 .chapter-actor{left:50%;top:33%;width:min(70vw,285px);height:min(70vw,285px)}
 .chapter-hud{top:8px}.game.chapter-mode .enemy p{font-size:12px}.game.chapter-mode .enemy .meta>span:nth-child(2){display:inline}
}
@media(max-height:580px){
 .boss-actor,.boss-mode .scene-active.phase-1 .boss-actor,.boss-mode .scene-active.phase-2 .boss-actor{left:65%;top:9%;width:185px;height:185px}
 .candidates{left:64%;bottom:0;width:218px;height:118px}.candidate{width:118px;height:118px}.candidate-hit{width:152px;height:152px}
 .boss-choice,.boss-choice:nth-child(n){left:7px;top:23%;width:31%;max-width:240px;padding:7px}.choice-text{font-size:11px;line-height:1.5}
 .boss-timer,.phase-3 .boss-timer{left:7px;top:6px;width:145px;transform:none;padding:5px 8px}.phase-3 .boss-timer>div:first-child{display:flex}
 .phase-3 .boss-actor,.scene-gather .boss-actor{left:65%;top:31%;width:150px;height:150px}.phase-3 .history-orb,.scene-gather .history-orb{left:65%;top:-3%;width:110px}
 .chapter-actor{left:65%;top:17%;width:185px;height:185px}.chapter-hud{left:65%;width:180px}
 .game.chapter-mode.chapter-pushed .base{left:65%;top:86%;width:78px;height:75px}
 .game.chapter-mode .enemy p{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.boss-choice{animation:none}}

.boss-sprite{mask-position:var(--boss-mask-position,0% 0%)}
.candidate.man{--cast-position:0% 100%}.candidate.woman{--cast-position:33.333333% 100%}.candidate-hit{--cast-position:66.666667% 100%}

.review-tools,.review-card-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.review-card-actions small{font-size:11px;color:#8a788e;margin-left:auto}.review-delete{background:#fff4f4;border:1px solid #edccda;border-radius:10px;color:#a55974;padding:7px 12px;cursor:pointer}.review-undo{padding:12px 16px;border-radius:14px;background:#f1e8f7;margin:14px 0}.review-undo[hidden]{display:none}
