.character-photo{display:block;position:relative;aspect-ratio:1;width:100%;overflow:hidden;background:#e6deed;border-radius:5px}
.character-photo svg{display:block;width:100%;height:100%;overflow:hidden}
.portrait.real-portrait{height:auto;aspect-ratio:1.3;background:#ded8e5;padding:0}
.real-portrait>.character-photo{height:100%;aspect-ratio:auto;border-radius:0}
.real-portrait svg{height:100%;width:100%}
.portrait-note{background:#fffdf7ed;color:#5737a8;transform:none;padding:3px 8px;border-radius:3px}
.cast{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cast-person{margin:0;min-width:0;background:#fffdf7;border:1px solid #d8d2df;border-radius:7px;overflow:hidden}
.cast .character-photo{border:0;padding:0;border-radius:0;font-size:inherit;background:#e6deed}
.cast-person figcaption{padding:9px 8px}
.cast-person strong{display:block;font-size:13px}
.cast-person small{display:block;font-size:10px;line-height:1.6;color:#797482;margin-top:4px}
.scene-photo{display:flex;gap:12px;align-items:center;margin-top:19px;border-bottom:1px dashed #ddd5e3;padding-bottom:15px}
.scene-photo .character-photo{width:66px;flex-shrink:0;border:1px solid #d4c6df}
.scene-photo strong{display:block;font-size:13px;color:#5737a8}
.scene-photo span:not(.character-photo){display:block;font-size:10px;color:#797482;margin-top:4px}
.result-photo{margin:20px 0 12px;max-width:252px}
.result-photo .character-photo{border:1px solid #d4c6df;border-radius:3px;box-shadow:4px 4px 0 #e4dbec}
.result-photo figcaption{font-size:10px;color:#797482;margin-top:9px}
.result-card h3{margin-top:12px}
.buddy-photo{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.buddy-photo .character-photo{width:52px;flex-shrink:0}
.buddy-photo h4{margin:0}
.rank-photo{width:34px;flex-shrink:0}
.rank-row{gap:8px}
footer a{text-underline-offset:3px}
@media(max-width:700px){.cast{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cast-person strong{font-size:12px}.cast-person small{font-size:9px}.result-photo{max-width:260px;margin-left:auto;margin-right:auto}.portrait.real-portrait{height:auto}.scene-photo{margin-top:14px}.scene-photo .character-photo{width:58px}}
@media(max-width:360px){.cast{grid-template-columns:repeat(2,minmax(0,1fr))}.cast-person figcaption{padding:8px}.rank-name{width:60px}.rank-photo{width:28px}}
