/* Readability proposal: scoped to scoring cards; retain format/brand colours. */
.hole-player h3,.shared-player h2{font-size:24px!important;line-height:1.2!important;overflow-wrap:anywhere}
.shot-allocation-note{display:flex!important;flex-wrap:wrap;gap:6px;font-size:18px!important;line-height:1.35}
.round-shot-note,.shot-badge{font-size:18px!important;white-space:normal!important}
.gross-box,.net-box,.point-result{min-height:80px!important;box-sizing:border-box}
.gross-box span,.net-box span,.point-result span{font-size:18px!important;line-height:1.3}
.gross-box strong,.net-box strong,.point-result strong{font-size:40px!important;line-height:1.15}
.scoring-details{margin-top:12px;font-size:18px;line-height:1.4}
.scoring-details>summary{min-height:48px;display:list-item;box-sizing:border-box;padding:12px 4px;cursor:pointer;font-weight:700}
.scoring-details p{font-size:18px!important;line-height:1.4}
.hole-nav select,#hole-select{font-size:24px!important;min-height:48px}

#scoring-more-options{position:fixed;top:calc(8px + env(safe-area-inset-top));right:12px;z-index:1005;min-width:52px;min-height:52px;border:2px solid #10243a;border-radius:14px;background:white;color:#10243a;font-size:26px;font-weight:800;letter-spacing:2px}
#scoring-more-options[hidden]{display:none}
#scoring-more-dialog{box-sizing:border-box;width:min(92vw,440px);max-height:85dvh;overflow:auto;border:2px solid #10243a;border-radius:18px;padding:18px;background:white;color:#10243a}
#scoring-more-dialog::backdrop{background:#10243a77}
#scoring-more-dialog h2{font-size:24px;margin:0 0 12px}
#scoring-more-dialog button{display:block;width:100%;box-sizing:border-box;min-height:52px;font-size:18px;padding:12px;margin:8px 0;text-align:left;border:1px solid #bdd4cc;border-radius:12px;background:#eef7f3;color:#10243a}
body.readable-scoring :is(.sharing-options-button,#mobile-share-toggle,#share-round,.match-share-label,.shared-options,#team-scoring-qr,#team-view-qr,#tab-setup,#tab-scorecard,.round-tabs [data-screen="setup"],.round-tabs [data-screen="results"],.rules-help-float){display:none!important}
body.readable-scoring header{padding-right:76px!important}
body.readable-scoring .shot-allocation-note :is(.round-shot-note,.shot-badge){font-size:18px!important}
body.readable-scoring .team-members{font-size:22px!important;line-height:1.25;display:block}
body.readable-scoring .scoring-details :is(.hole-note,.player-running,.scoring-tee-note){font-size:18px!important}

@media(max-width:600px){body.readable-scoring :is(#hole-scores,#scores,#players){grid-template-columns:minmax(0,1fr)!important}body.readable-scoring .hole-player{width:100%!important;box-sizing:border-box!important}}
body.readable-scoring :is(.compact-scores,.score-boxes){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;margin-top:12px!important}
body.readable-scoring :is(.gross-box,.point-result,.net-box){height:auto!important;max-height:none!important;min-height:96px!important;padding:12px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:6px!important}
body.readable-scoring :is(.gross-box,.point-result,.net-box) :is(span,strong){position:static!important;display:block!important;padding:0!important;margin:0!important;transform:none!important}
body.readable-scoring .shot-allocation-note{margin-top:10px!important}

body.readable-scoring .shot-allocation-note{flex-direction:column!important;align-items:flex-start!important;gap:4px!important}body.readable-scoring :is(#try-practice,#scoring-player-withdrawal){display:none!important}
body.readable-scoring :is(.practice-entry,.hole-alert-options,#scoring-player-withdrawal){display:none!important}
@media(min-width:601px){body.readable-scoring :is(#hole-scores,#scores,#players){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;gap:16px!important;align-items:start!important}}
body.readable-scoring :is(#refresh,.live-sync-status button){display:none!important}

/* Reserve the full toolbar row and keep the competition's primary navigation visible. */
body.readable-scoring .shell>header{box-sizing:border-box!important;min-height:68px!important;height:auto!important;padding-top:8px!important;padding-bottom:8px!important;margin-bottom:8px!important;align-items:center!important}
body.readable-scoring .native-page-title{left:60px!important;right:80px!important;top:18px!important;line-height:1.25!important;overflow-wrap:anywhere}
body.readable-scoring .round-tabs :is(#competition-leaderboard,#viewer-leaderboard):not([hidden]){display:flex!important;align-items:center!important;justify-content:center!important;min-height:52px!important;font-size:18px!important;font-weight:750!important;background:#145f49!important;color:white!important}
body.readable-scoring .shell>header>a:not(.brand){display:none!important}

/* Compact phone scoring: four players in two rows, secondary details stay scrollable. */
@media(max-width:600px){
 body.readable-scoring :is(#hole-scores,#scores,#players):has(>.hole-player,>.shared-player){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;scroll-margin-top:72px}
 body.readable-scoring :is(.hole-player,.shared-player){min-width:0!important;width:auto!important;box-sizing:border-box!important;margin:0!important;padding:10px!important;border-radius:12px!important}
 body.readable-scoring :is(.hole-player h3,.shared-player h2){font-size:18px!important;line-height:1.2!important;margin:0 0 6px!important}
 body.readable-scoring .team-members{font-size:16px!important}
 body.readable-scoring .shot-allocation-note{margin-top:6px!important;gap:2px!important;font-size:14px!important;line-height:1.25!important}
 body.readable-scoring .shot-allocation-note :is(.round-shot-note,.shot-badge){font-size:14px!important;line-height:1.25!important}
 body.readable-scoring :is(.compact-scores,.score-boxes){gap:5px!important;margin-top:8px!important}
 body.readable-scoring :is(.gross-box,.point-result,.net-box){min-height:72px!important;padding:6px!important;gap:4px!important;margin:0!important;min-width:0!important}
 body.readable-scoring :is(.gross-box,.point-result,.net-box) span{font-size:13px!important;line-height:1.2!important;overflow-wrap:anywhere}
 body.readable-scoring :is(.gross-box,.point-result,.net-box) strong{font-size:32px!important;line-height:1.1!important}
 body.readable-scoring .hole-player>.validation:empty{display:none!important}
 body.readable-scoring .scoring-details{margin-top:6px!important;font-size:14px!important}
 body.readable-scoring .scoring-details>summary{font-size:14px!important;line-height:1.2!important;min-height:44px!important;padding:10px 0!important}
 body.readable-scoring .scoring-details p{font-size:14px!important}
}
@media(max-width:360px){
 body.readable-scoring .shot-allocation-note :is(.round-shot-note,.shot-badge){font-size:12px!important;white-space:nowrap!important}
 body.readable-scoring .scoring-details>summary{font-size:12px!important}
 body.readable-scoring :is(.compact-scores,.score-boxes){grid-template-columns:minmax(0,1fr)!important}
 body.readable-scoring :is(.gross-box,.point-result,.net-box){flex-direction:row!important;justify-content:space-between!important;min-height:44px!important;padding:5px!important}
 body.readable-scoring :is(.gross-box,.point-result,.net-box) span{font-size:12px!important;text-align:left;overflow-wrap:normal!important}
 body.readable-scoring :is(.gross-box,.point-result,.net-box) strong{font-size:28px!important}
}
/* The floating menu sits over a solid toolbar, never over an exposed score input. */
body.readable-scoring .shell>header{position:sticky!important;top:0!important;z-index:1004!important;background:#f2f1f7!important;min-height:calc(68px + env(safe-area-inset-top))!important;padding-top:calc(8px + env(safe-area-inset-top))!important}
body.readable-scoring .native-page-title{top:calc(18px + env(safe-area-inset-top))!important}
