/* Long names are achievements, not numeric receipts. Preserve the art frame. */
html body :is(#modal,.palace-stage) .result-reading .report-distinctions{flex-wrap:wrap!important;align-items:stretch!important}
html body :is(#modal,.palace-stage) .result-reading .report-distinctions>div{min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;padding:16px 20px!important}
html body :is(#modal,.palace-stage) .result-reading .report-distinctions b{white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;width:100%;line-height:1.45!important}
html body :is(#modal,.palace-stage) .result-reading .report-rewards>div.is-long-reward:not(.has-reward-gauge){flex:0 1 300px!important;width:300px!important;max-width:100%!important;height:auto!important;max-height:none!important;min-height:80px!important;padding:12px 16px!important;flex-direction:column!important;gap:8px!important}
html body :is(#modal,.palace-stage) .result-reading .report-rewards>div.is-long-reward:not(.has-reward-gauge)>b{white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;width:100%;font-size:22px!important;line-height:1.45!important;text-align:center!important}
html body :is(#modal,.palace-stage) .result-reading .result-skill-card{height:auto!important;max-height:none!important;overflow:visible!important}
html body :is(#modal,.palace-stage) .result-reading .result-skill-card b{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important}
/* Only an indivisible oversized receipt scrolls; paging controls stay outside. */
html body :is(#modal,.palace-stage) .result-reading .companion-result-page.is-oversize[data-active=true]{justify-content:flex-start!important;overflow-y:auto!important;overflow-x:hidden!important;padding:8px!important;box-sizing:border-box!important}
html body :is(#modal,.palace-stage) .result-reading .companion-result-page.is-oversize> *{flex-shrink:0!important}
@media(max-width:700px){
 html body :is(#modal,.palace-stage) .result-reading .report-distinctions>div{flex-basis:100%!important;padding:12px 16px!important}
 html body :is(#modal,.palace-stage) .result-reading .report-distinctions b{font-size:21px!important}
}

/* Keep the follow-up title intact; move the reward rather than crushing its copy. */
html body :is(#modal,.palace-stage) .result-reading .aftermath-receipt{flex-wrap:wrap!important;max-width:100%!important;column-gap:12px!important;row-gap:6px!important}
html body :is(#modal,.palace-stage) .result-reading .aftermath-receipt>div{flex:0 0 auto!important;max-width:100%;min-width:0}
html body :is(#modal,.palace-stage) .result-reading .aftermath-receipt strong{display:block;word-break:keep-all;overflow-wrap:break-word}
html body :is(#modal,.palace-stage) .result-reading .aftermath-receipt>b{flex:0 0 auto!important;max-width:100%!important;word-break:keep-all}
