#yutResult{display:block;min-height:236px;padding:18px 12px;background:#fffdf8}
.yut-pieces{display:flex;align-items:center;justify-content:center;gap:clamp(9px,3vw,17px);padding:6px 4px 14px;direction:ltr}
.yut-piece{display:block;flex:0 1 44px;min-width:26px;max-width:44px;aspect-ratio:48/150;transform:rotate(var(--rest));transform-origin:50% 70%}
.yut-face-svg{display:block;width:100%;height:100%;filter:drop-shadow(1px 5px 2px rgba(77,48,20,.18))}
.yut-outcome{display:flex;align-items:baseline;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:5px}
.yut-outcome strong{font-size:32px;line-height:1.2}.yut-outcome span{font-size:16px;font-weight:750;color:var(--text)}
.yut-count{margin:10px 0 0;font-size:14px;font-weight:600;color:var(--muted)}.yut-count b{color:var(--text)}
.yut-again{margin:7px 0 0;font-size:14px;color:#765424;font-weight:800}
.yut-legend{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-top:14px;padding-top:11px;border-top:1px solid var(--line);font-size:12px;font-weight:650;color:var(--muted)}
.yut-ready{margin:52px 0;font-size:16px;font-weight:750}
.yut-rolling .yut-piece{animation:yutFaceToss .82s cubic-bezier(.2,.7,.25,1) both;animation-delay:var(--delay)}
@keyframes yutFaceToss{0%{transform:translateY(22px) rotate(calc(var(--rest) - 35deg));opacity:.65}40%{transform:translateY(-19px) rotate(calc(var(--rest) + 38deg));opacity:1}72%{transform:translateY(3px) rotate(calc(var(--rest) - 8deg))}100%{transform:translateY(0) rotate(var(--rest))}}
@media(max-width:360px){#yutResult{padding-inline:8px}.yut-piece{max-width:36px}.yut-pieces{gap:10px}.yut-outcome{gap:9px}}
@media(prefers-reduced-motion:reduce){.yut-rolling .yut-piece{animation:none}}
