/* Match the in-round return prompt to the Chicago card and button system. */
body.chicago-theme .chicago-return-dialog{width:min(440px,calc(100vw - 32px));padding:24px;background:linear-gradient(155deg,#102944,#091827 75%);border:1px solid #5b94c8;border-radius:22px;box-shadow:0 24px 70px #000b,0 0 28px #126fbd35}
body.chicago-theme .chicago-return-dialog h2{margin-bottom:10px}
body.chicago-theme .chicago-return-dialog p{margin:0;color:#cbdcf0;line-height:1.5}
body.chicago-theme .chicago-return-dialog .dialog-actions{margin-top:24px;gap:12px}
body.chicago-theme .chicago-return-dialog .dialog-actions button{width:100%;min-height:52px;border-radius:13px;font:700 16px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.chicago-theme .chicago-return-dialog .dialog-actions .secondary{background:#172c44;border:1px solid #5a83aa;color:#f4f8ff}
body.chicago-theme .chicago-return-dialog .dialog-actions button:not(.secondary){background:#137acb;border:1px solid #70bbff;color:#fff}
body.chicago-theme .chicago-return-dialog .dialog-actions .cancel-from-leave{background:#331c2a;border:1px solid #f87171;color:#fecaca}
@media(max-width:390px){body.chicago-theme .chicago-return-dialog{padding:20px}}

/* Current-hole handicap guidance uses the scorer's existing calculation. */
#play .score-player-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;margin-bottom:4px;min-width:0}
#play .score-player-heading .player-name{min-width:0;max-width:100%;margin:0!important}
#play .hcp-stroke-badge{display:inline-flex;align-items:center;flex:none;padding:3px 8px;border:1px solid #8ed1ff;border-radius:999px;background:#176baf;color:#fff;font-size:12px;font-weight:800;line-height:1.2;white-space:nowrap}
body.mode-2 #play .score-team .score-player-heading{margin-bottom:10px}
@media(max-width:640px){
 body.mode-3 #play .score-player-heading,body.mode-4 #play .score-player-heading{display:block}
 body.mode-3 #play .score-player-heading .player-name,body.mode-4 #play .score-player-heading .player-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.mode-3 #play .hcp-stroke-badge,body.mode-4 #play .hcp-stroke-badge{margin-top:4px;font-size:11px;padding:2px 6px}
}
.handicap-toast{z-index:40}
.handicap-toast-card{width:min(92vw,420px);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #8ed1ff;border-radius:20px;background:linear-gradient(155deg,#0b2b49,#081a2e);box-shadow:0 16px 48px #000c,0 0 28px #159aff65;text-align:left}
.handicap-toast-card h2{margin:0 0 12px;font-size:21px;line-height:1.2}
.handicap-toast-player{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-top:1px solid #426785;overflow-wrap:anywhere}
.handicap-toast-player strong{font-size:17px}
.handicap-toast-player span{color:#c3d2e2;font-size:14px;text-align:right;white-space:nowrap}
.handicap-toast-player .has-strokes{color:#b8e8ff;font-size:18px;font-weight:800}
.handicap-toast-card p{margin:11px 0 0;padding-top:10px;border-top:1px solid #426785;color:#c3d2e2;font-size:13px;line-height:1.4}
.handicap-toast-card small{display:block;margin-top:12px;color:#9eb8cf;text-align:center;font-size:12px}