/* Ver.51: identical square crop viewport at every display size. */
.portrait-frame,.rank .portrait-frame{width:64px;height:auto;aspect-ratio:1/1;border-radius:0}
.portrait-frame .portrait,.rank .portrait-frame .portrait,.wide .portrait-frame .portrait,.posteritem .portrait-frame .portrait,.ss-item .portrait-frame .portrait{display:block;width:100%;height:100%;border-radius:0;object-fit:cover;object-position:var(--px) var(--py);transform:scale(var(--zoom));transform-origin:var(--px) var(--py);filter:none}
.wide .portrait-frame{width:48%;height:auto;aspect-ratio:1/1;top:50%;right:0;bottom:auto;transform:translateY(-50%)}
.posteritem .portrait-frame{width:min(26.57%,125px);height:auto;aspect-ratio:1/1;top:50%;right:0;bottom:auto;transform:translateY(-50%)}
.statportrait .portrait-frame{width:100%;height:100%;aspect-ratio:1/1}
.ss-item .portrait-frame{position:absolute;right:0;top:0;bottom:auto;width:auto;height:100%;aspect-ratio:1/1;transform:none;overflow:hidden}
.portraitbox{width:76px;height:76px;border:0;aspect-ratio:1/1}
.portraitbox img{border-radius:0}
@media(max-width:600px){.wide .portrait-frame{width:62%}.posteritem .portrait-frame{width:min(32%,110px)}}
@media(max-width:420px){.portraitbox{width:62px;height:62px}}
[data-row47]{align-items:flex-start;flex-wrap:wrap;gap:14px}
[data-row47] > .crop-choice51{width:min(100%,184px)!important;flex-shrink:0;align-self:flex-start}
[data-row47] > .crop-choice51 .portrait-frame,.crop-result51 .portrait-frame{width:100%;height:auto;aspect-ratio:1/1;position:relative;outline:2px solid #b36aa9;outline-offset:-2px;background:var(--preview-tone,#f6edf8);touch-action:none;cursor:grab;isolation:isolate}
.crop-choice51 .portrait-frame::after,.crop-result51 .portrait-frame::after{content:'';position:absolute;inset:0;border:2px solid #b36aa9;pointer-events:none;background:linear-gradient(90deg,transparent 33.1%,#fff8 33.1%,#fff8 33.7%,transparent 33.7%,transparent 66.3%,#fff8 66.3%,#fff8 66.9%,transparent 66.9%),linear-gradient(0deg,transparent 33.1%,#fff8 33.1%,#fff8 33.7%,transparent 33.7%,transparent 66.3%,#fff8 66.3%,#fff8 66.9%,transparent 66.9%)}
.crop-choice51::before,.crop-result51::before{display:block;font-size:12px;font-weight:700;color:#98538f;margin-bottom:6px;content:'選択肢用・枠内が表示範囲'}
.crop-result51::before{content:'結果・みんなのランキング共通の表示範囲'}
.crop-result51{width:min(100%,184px);margin:10px 0}
.cropcontrols{display:grid;grid-template-columns:auto minmax(90px,1fr);gap:7px;align-items:center;max-width:360px}
.cropcontrols input[type=range],.result-controls input[type=range]{width:100%;max-width:260px!important;min-width:0!important}
.crop-note51{font-size:12px;color:#876a8e;line-height:1.5;margin:5px 0}
@media(max-width:600px){[data-row47] > .crop-choice51{width:min(100%,184px)!important;flex-basis:100%}[data-row47] > div:nth-child(2){flex-basis:100%!important}}
