.fm-replay-panel{background:#fff8eb!important;color:#301c38!important;border:2px solid #d8bb85;border-radius:18px;padding:16px;margin-top:12px;text-align:center;box-sizing:border-box}
.fm-replay-panel h3{color:#301c38!important;font-size:32px!important;line-height:1.15!important;margin:0 0 10px!important}
.fm-replay-challenge{font-size:17px!important;font-weight:700;margin:8px 0 14px!important}
.fm-replay-panel p,.fm-replay-panel label,.fm-replay-panel summary{color:#301c38!important;line-height:1.4!important}
.fm-replay-panel .fm-replay-tickets.is-confirmed{font-size:17px!important;font-weight:800!important;color:#076043!important;background:#e3f5e9;border-radius:12px;padding:10px;margin:10px 0!important}
.fm-replay-panel .fm-replay-status{font-size:14px!important;margin:8px 0!important}
.fm-replay-actions{display:flex;justify-content:center;margin:12px 0}
.fm-replay-panel button{font:700 16px/1.3 system-ui!important;min-height:48px;white-space:normal!important;cursor:pointer;border:2px solid #613253;border-radius:12px;padding:12px 16px;background:#fff!important;color:#482136!important}
.fm-replay-panel .fm-replay-primary{width:100%;background:#64244f!important;color:#fff!important;font-size:21px!important;min-height:54px;box-shadow:none!important}
.fm-replay-panel button:disabled{opacity:.65;cursor:wait}
.fm-replay-panel :focus-visible{outline:3px solid #086cb4!important;outline-offset:3px}
.fm-replay-conversation{border-top:1px solid #d9c7ac;padding-top:12px;text-align:left}
.fm-replay-conversation summary{cursor:pointer;font-weight:800;font-size:16px!important;min-height:44px}
.fm-replay-composer{display:grid;gap:8px;margin:12px 0}
.fm-replay-composer label{font-weight:800}
.fm-replay-composer textarea{width:100%!important;max-width:100%!important;box-sizing:border-box;background:#fff!important;color:#291930!important;-webkit-text-fill-color:#291930!important;border:2px solid #87677d!important;border-radius:10px;padding:10px;font:16px/1.4 system-ui!important;resize:vertical;min-height:78px}
.fm-replay-composer textarea::placeholder{color:#665367!important;opacity:1}
.fm-replay-panel .fm-replay-hint{font-size:12px!important;margin:0!important}
.fm-replay-comment-status{font-size:14px!important;overflow-wrap:anywhere}
.fm-replay-comments p{background:#fff;border-radius:8px;padding:10px;font-size:14px!important;overflow-wrap:anywhere}
.fm-replay-carnival{display:inline-block;color:#65224d!important;padding:12px 0 0;font-weight:800;font-size:15px!important}
.fm-replay-done{display:inline-block;color:#65435a!important;font:500 14px/1.4 system-ui;margin:0 0 12px;padding:8px;text-decoration:underline}
.fm-replay-breakdown{margin-top:14px;color:#301c38!important;font:15px/1.4 system-ui;text-align:left}
.fm-replay-breakdown>summary{min-height:44px;cursor:pointer;padding:8px;box-sizing:border-box}
.fm-replay-results .fm-lounge-invite,.fm-replay-results .fm-return-status{display:none!important}
.fm-replay-results>.result-score,.fm-replay-results .game-over-text>.fm-result-score{display:none!important}
.fm-replay-dialog{width:min(560px,calc(100vw - 20px));max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px);padding:10px;box-sizing:border-box;border:2px solid #d8bb85;border-radius:20px;background:#fff8eb;color:#301c38;margin:auto;overflow:auto}
.fm-replay-dialog::backdrop{background:rgba(22,14,30,.78)}
.fm-replay-dialog>.fm-replay-results{position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;padding:8px!important;box-sizing:border-box;background:#fff8eb!important;color:#301c38!important;transform:none!important;box-shadow:none!important}
.fm-replay-close{display:block;margin:0 0 4px auto;min-height:44px;padding:8px 14px;border:1px solid #9f8195;border-radius:10px;background:#fff;color:#482136;font:700 14px/1.3 system-ui;cursor:pointer}
#gameOver.fm-replay-results{max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;overscroll-behavior:contain}
#resultScreen.fm-replay-results{max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;overscroll-behavior:contain}
@media(max-width:480px){.fm-replay-panel{padding:12px}.fm-replay-panel h3{font-size:29px!important}#gameOver.fm-replay-results{inset:16px 8px auto!important}}
