/* Approved clean result concept; renderer and rewards remain unchanged. */
#modal:has(.wp-gameover){padding:14px;background:#25263db8;backdrop-filter:blur(3px)}
#modalBody:has(.wp-gameover){max-height:calc(100% - 8px);padding:20px 20px 14px;border:3px solid #b78560;border-radius:28px;box-shadow:0 6px 0 #76503b,0 12px 30px #1f152d40;overscroll-behavior:contain}
.wp-gameover{color:#60412e}
.wp-gameover h1{font-size:32px;line-height:1.1;margin:0 0 9px;font-weight:900;letter-spacing:-.8px}
.wp-gameover p{margin:8px 0;line-height:1.35;overflow-wrap:anywhere}
.wp-gameover .go-reason{font-size:14px;color:#87634d}
.go-portrait{width:84px;height:84px;display:grid;place-items:center;margin:10px auto 4px;border-radius:50%;background:#e0ecc7}
.go-portrait:empty{display:none}
.go-portrait canvas{width:80px;height:80px;touch-action:auto}
.go-score{display:grid;justify-items:center;margin:3px 0 8px}
.go-score strong{font-size:clamp(40px,12vw,58px);font-weight:950;line-height:1.05;letter-spacing:-1.8px;overflow-wrap:anywhere;max-width:100%}
.go-score span{font-size:13px;letter-spacing:2px;font-weight:800;margin-top:3px}
.wp-gameover .go-best{font-size:13px;color:#87634d;margin:8px 0 14px}
.go-stats{display:grid;grid-template-columns:1fr 1fr;border:1.5px solid #c2a17d;border-radius:15px;padding:9px 4px;background:#f8eace}
.go-stats>div{display:grid;gap:1px;justify-items:center}
.go-stats>div+div{border-left:1px solid #c9ac88}
.go-stats strong{font-size:23px;line-height:1.1;overflow-wrap:anywhere;max-width:100%}
.go-stats span{font-size:11px;color:#87634d}
.wp-gameover .go-xp{font-size:12px;color:#87634d;margin:11px 0}
.wp-gameover .go-status{font-size:12px;font-weight:650;margin:12px 0 2px;line-height:1.35}
.go-link{border:0;background:transparent;color:#825a42;font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:8px 12px;cursor:pointer;touch-action:manipulation;border-radius:8px}
.go-link:focus-visible,.wp-gameover button:focus-visible{outline:3px solid #6557ab;outline-offset:2px}
.go-details{padding:6px 10px;border:1px solid #dbc49d;border-radius:12px;background:#f8ecd3;text-align:left;font-size:12px}
.go-details[hidden]{display:none}
.go-details .go-link{padding-left:0}
.wp-gameover .result-main-actions{margin-top:12px;gap:10px;grid-template-columns:1.45fr 1fr}
.wp-gameover .result-main-actions button{min-height:52px;font-size:18px;box-shadow:0 3px #8d6a4c;border-width:2px;border-radius:15px}
.wp-gameover #gameHome{background:#fff5da}
.wp-gameover .go-share{margin-top:8px}
.wp-gameover #shareStatus{font-size:12px}
.wp-gameover #shareStatus:empty{display:none}
.wp-gameover .challenge-result{font-size:12px;padding:7px}
.wp-result-arriving button,.wp-result-arriving summary,.wp-result-arriving a{opacity:.52;cursor:default}
@media(max-height:740px){#modalBody:has(.wp-gameover){padding:14px 16px 10px}.wp-gameover h1{font-size:28px}.go-portrait{width:64px;height:64px;margin:6px auto 2px}.go-portrait canvas{width:62px;height:62px}.go-score strong{font-size:44px}.wp-gameover .go-best{margin:6px 0 9px}.wp-gameover .go-xp{margin:7px 0}.wp-gameover .go-status{margin:8px 0 0}.wp-gameover .result-main-actions{margin-top:7px}.wp-gameover .go-share{margin-top:3px}}
@media(max-height:600px){#modal:has(.wp-gameover){padding:8px}.go-portrait{width:48px;height:48px}.go-portrait canvas{width:46px;height:46px}.wp-gameover h1{font-size:25px}.wp-gameover .go-reason{font-size:12px;margin:5px 0}.go-score strong{font-size:37px}.go-score{margin-bottom:4px}.go-stats{padding:6px 4px}.go-stats strong{font-size:20px}.wp-gameover .result-main-actions button{min-height:48px;font-size:16px}}
@media(prefers-reduced-motion:reduce){#modal:has(.wp-gameover){backdrop-filter:none}}

#wpGameOverTitle:focus{outline:none}
