.memory-actor{width:100%;height:100%;display:block;overflow:hidden;pointer-events:none}
.memory-pose{opacity:0;transition:opacity 160ms ease-out}.memory-pose.is-active{opacity:1}
.memory-actor-portrait{display:block;overflow:hidden;border-radius:24px;background:#fff9;aspect-ratio:1;max-width:155px;margin:12px auto 6px;border:2px solid #fff}
.memory-actor-portrait[hidden]{display:none}
body[data-kd-game="memory"] .companion img[hidden]{display:none}
#memoryReactionActors{display:none;pointer-events:none}
#memoryFinaleActors{height:190px;display:flex;align-items:flex-end;justify-content:center;gap:0;margin:12px auto;max-width:320px}
#memoryFinaleActors .memory-actor[data-character="KD01"]{width:60px;height:47.5px;flex:none}
#memoryFinaleActors .memory-actor[data-character="KD02"]{width:201px;height:190px;flex:none}
@media(max-width:680px),(max-height:700px){
 #memoryReactionActors{display:flex;flex:none;gap:5px;height:58px;justify-content:center}
 #memoryReactionActors .memory-actor-portrait{width:56px;height:56px;margin:0;border-radius:18px;flex:none}
 body[data-kd-game="memory"] .board-footer{display:grid;grid-template-columns:1fr 1fr;gap:4px}
 .memory-reaction-line{display:flex;align-items:center;gap:12px;min-width:0;grid-column:1/-1;grid-row:1;text-align:left}
 body[data-kd-game="memory"] .board-footer>button{justify-content:center}
 body[data-kd-game="memory"] #feedback{min-width:0}
}
@media(min-width:681px) and (min-height:701px){.memory-reaction-line{flex:1;text-align:center}}
@media(max-height:460px){body[data-kd-game="memory"] .board-footer{display:flex}#memoryReactionActors{height:32px;gap:0}#memoryReactionActors .memory-actor-portrait{width:30px;height:30px}.memory-reaction-line{gap:2px;flex:1}}
@media(prefers-reduced-motion:reduce){.memory-pose{transition:none}}
