/* Phone scoring: four score entry buttons fit together; other screens retain their layout. */
@media(max-width:600px){
body.in-play .shell,body.shared-scoring .shell{padding:0 10px}
body.in-play header,body.shared-scoring header{min-height:42px;height:42px;padding:0;margin:0}
body.in-play main,body.shared-scoring main{padding-top:0}
body.in-play .round-tabs,body.shared-scoring .round-tabs{margin:4px 0;padding:3px}
body.in-play .round-tabs button,body.shared-scoring .round-tabs button{min-height:34px;padding:5px}
body.in-play #cup-status,body.in-play .round-review-nav{display:none!important}
body.in-play .match-status,body.shared-scoring .match-banner{padding:8px 12px;margin:5px 0;border-radius:16px;min-height:0;font-size:18px}
body.in-play .match-status small,body.shared-scoring .match-banner p{font-size:11px;margin:2px 0}
body.in-play .match-status-score,body.shared-scoring .match-result{font-size:25px}
body.in-play .score-name,body.shared-scoring .name-chip{font-size:12px;padding:1px 4px;display:inline-block}
body.in-play .hole-nav,body.shared-scoring .share-hole{padding:0 8px;margin:4px 0;min-height:44px;border-radius:14px}
body.in-play .hole-nav button,body.in-play .hole-nav select,body.shared-scoring .share-hole button,body.shared-scoring .share-hole select{min-height:44px;padding:2px 8px}
body.in-play #scores,body.in-play #hole-scores,body.shared-scoring #players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.in-play .hole-player,body.shared-scoring .shared-player{padding:8px;margin:0;border-radius:16px;min-width:0}
body.in-play .hole-player h3,body.shared-scoring .shared-player h2{font-size:14px;line-height:1.2;margin:0 0 4px;min-height:40px}
body.in-play .shot-badge,body.shared-scoring .shot-badge{font-size:10px;padding:2px 4px;margin:3px 0 0;display:block;width:fit-content;line-height:1.2}
body.in-play .compact-scores,body.shared-scoring .score-boxes{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0}
body.in-play .gross-box,body.in-play .point-result,body.shared-scoring .gross-box,body.shared-scoring .net-box{min-height:48px;padding:4px;border-radius:10px;font-size:11px;margin:0}
body.in-play .gross-box span,body.in-play .point-result span,body.shared-scoring .score-boxes span{font-size:10px}
body.in-play .gross-box strong,body.in-play .point-result strong,body.shared-scoring .score-boxes strong{font-size:25px;line-height:1;margin:0}
body.in-play .hole-note,body.shared-scoring .hole-notes,body.in-play .scoring-tee-note{font-size:10px!important;line-height:1.2;margin:4px 0 0!important}
body.in-play .scoring-tee-note strong,body.shared-scoring .hole-notes strong{font-size:10px!important}
body.in-play .scoring-panel{margin:0;padding:0!important}
body.in-play #hole-result{margin:5px 0;font-size:12px}
body.in-play #scoring>.round-panel{padding:0;margin:0;background:transparent}
body.shared-scoring .share-status,body.shared-scoring #share-round,body.shared-scoring #access,body.shared-scoring .shared-options{display:none}
body.shared-scoring.sharing-open .share-status{display:flex}body.shared-scoring.sharing-open #share-round,body.shared-scoring.sharing-open #access,body.shared-scoring.sharing-open .shared-options{display:block}
#mobile-share-toggle{font-size:12px;min-height:32px;padding:4px 10px;margin:3px 0}
}
@media(max-width:600px){
body.in-play.no-cup #cup-sync{display:none}
body.in-play .hole-nav{padding:0!important;margin:3px 0!important}
body.in-play .hole-nav label{margin:0!important;display:flex;align-items:center;gap:6px}
body.in-play .hole-nav select{margin:0!important}
body.in-play .gross-box,body.in-play .point-result{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:54px!important;height:54px!important;padding:3px!important;gap:3px!important}
body.in-play .gross-box span,body.in-play .point-result span{white-space:nowrap;line-height:1.1!important;margin:0!important}
body.in-play .gross-box strong,body.in-play .point-result strong{padding:0!important;margin:0!important}
body.in-play #scores{gap:6px!important}body.in-play .hole-player{margin:0!important}
}
@media(max-width:600px){
body.in-play .scoring-panel>.help{display:none}
body.in-play .hole-edit{font-size:10px;margin:3px 0;padding:0}
body.in-play .hole-edit summary{min-height:24px!important;padding:3px!important;font-size:10px}
body.in-play .player-running,body.in-play .validation{font-size:10px;line-height:1.2;margin:3px 0}
body.in-play #chair-status{padding:5px 8px;margin:4px 0;font-size:12px}
body.in-play #chair-status p{display:none}
}

/* Consistent sharing choices on phone and desktop. */
.live-round-sharing { margin: 0; padding: 0; border: 0; background: transparent; }
.sharing-choice { padding: 14px; margin: 12px 0; border-radius: 16px; background: #f1f4f8; }
.sharing-choice button { width: 100%; min-height: 48px; text-align: left; }
.sharing-choice p { margin: 8px 0 0; font-size: 14px; color: #526174; }
.live-round-sharing [data-stop] { color: #b42332; background: #fff0f1; margin-bottom: 12px; }
.shared-options { padding: 14px; border-radius: 16px; background: #fff; }
.shared-options button { width: 100%; margin-top: 12px; min-height: 48px; }

/* Keep metric labels inside phone cards, including 6-Point Game. */
@media(max-width:600px){
body.in-play .compact-scores,body.shared-scoring .score-boxes{grid-template-columns:repeat(2,minmax(0,1fr))}
body.in-play .gross-box,body.in-play .point-result,body.shared-scoring .gross-box,body.shared-scoring .net-box{min-width:0}
body.in-play .gross-box span,body.in-play .point-result span,body.shared-scoring .score-boxes span{white-space:normal;text-align:center;overflow-wrap:break-word}
}

.sharing-options-button{display:block;width:100%;min-height:44px!important;padding:10px 14px!important;text-align:left;border-radius:12px!important;background:#e2efff!important;color:#164c87!important;font-weight:700!important;margin:8px 0!important}.sharing-choice{padding:12px;border-radius:14px;background:#f0f6fc;margin:10px 0}.sharing-choice:nth-of-type(2){background:#eef6f3}.sharing-choice:nth-of-type(3){background:#f5f0fa}.sharing-choice button{width:100%;min-height:44px;text-align:left}.sharing-choice p{margin:7px 0 0;font-size:14px;line-height:1.4}

#summary.running-score-grid{display:grid;grid-template-columns:repeat(var(--score-count),minmax(0,1fr));gap:6px;padding:8px;border-radius:18px;background:#10283b}.running-score-total{--score-colour:#086ca0;--score-tint:#e6f4ff;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:3px;padding:7px 5px;border-radius:12px;background:var(--score-tint);color:var(--score-colour);text-align:center;min-width:0}.running-score-1{--score-colour:#9b22aa;--score-tint:#faeafb}.running-score-2{--score-colour:#a75b05;--score-tint:#fff0df}.running-score-3{--score-colour:#07757e;--score-tint:#e3f7f7}.running-score-name{font-size:13px;font-weight:750;line-height:1.2;overflow-wrap:anywhere}.running-score-total strong{font-size:28px;line-height:1.05;font-variant-numeric:tabular-nums}.running-score-total small{font-size:11px;line-height:1.2;font-weight:650}.running-score-group{grid-column:1/-1;margin:2px 4px;color:#d0fb50;font-size:13px;font-weight:700}

.round-tabs.shared-round-navigation{gap:8px;background:transparent;padding:0;margin:6px 0}.shared-round-navigation button{flex:1;min-height:44px;border:1px solid #c6ddd5;border-radius:12px;background:#edf7f3;color:#176b60;font-size:13px;font-weight:700;padding:8px}.shared-round-navigation button[hidden]{display:none!important}.view-only-badge{display:inline-block;margin:6px 0 8px;padding:6px 10px;border-radius:999px;background:#e8f1fc;color:#185caa;font-size:12px;font-weight:700}.view-only-badge[hidden]{display:none}

:is(.hole-nav,.share-hole){border:1px solid #cbded8!important;background:linear-gradient(110deg,#fff,#eef7f3)!important;box-shadow:0 2px 5px #103c2810;border-radius:18px!important;padding:7px!important;gap:8px!important}:is(.hole-nav,.share-hole) #previous,:is(.hole-nav,.share-hole) [aria-label="Previous hole"]{background:#fdebed!important;color:#a52a3b!important;border:1px solid #edbdc6!important}:is(.hole-nav,.share-hole) #next,:is(.hole-nav,.share-hole) [aria-label="Next hole"]{background:#e1f4e7!important;color:#126343!important;border:1px solid #a9d7bb!important}:is(.hole-nav,.share-hole) button{min-width:44px!important;min-height:44px!important;border-radius:12px!important;font-size:25px!important;font-weight:800!important;padding:4px!important}:is(.hole-nav,.share-hole) button:disabled{opacity:.35!important}:is(.hole-nav,.share-hole) select{color:#145941!important;font-weight:750!important;background:transparent!important}:is(.hole-nav,.share-hole) label{color:#174b3b;font-weight:750}

[data-player-preview]{cursor:pointer;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:4px;text-decoration-thickness:1px}[data-player-preview]:focus-visible{outline:2px solid #176b60;outline-offset:4px}.player-card-preview{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:88vh;overflow:auto;border:0;border-radius:20px;padding:18px;color:#10283b}.player-card-preview h2{font-size:21px;margin:0 0 10px}.player-card-preview p{font-size:13px;line-height:1.4}.player-card-preview table{width:100%;border-collapse:collapse;font-size:15px;text-align:center}.player-card-preview th,.player-card-preview td{padding:7px 4px;border-bottom:1px solid #dbe6e1}.player-card-preview thead{background:#123046;color:#fff}.player-card-preview td:nth-child(3){background:#eaf4ff}.player-card-preview td:nth-child(4){background:#eaf6ef}.player-card-preview td:nth-child(5){background:#f1f8dd}.player-card-total{font-weight:750}.player-card-preview button{width:100%;min-height:44px;margin-top:12px;border:0;border-radius:12px;background:#12634f;color:#fff;font-weight:700}

:is(.hole-nav,.share-hole) select,:is(.hole-nav,.share-hole) #hole,:is(.hole-nav,.share-hole) #hole-select{font-size:27px!important;line-height:1.2!important;font-weight:800!important;color:#105c42!important;background:#dff3e6!important;border:1px solid #add2bd!important;border-radius:12px!important;min-height:48px!important;padding:5px 12px!important;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px #ffffff90}

:is(.hole-nav,.share-hole) select,:is(.hole-nav,.share-hole) #hole,:is(.hole-nav,.share-hole) #hole-select{box-sizing:border-box!important;width:100px!important;min-width:100px!important;flex:0 0 100px!important;max-width:100px!important;appearance:none!important;-webkit-appearance:none!important;text-align:center!important;text-align-last:center!important;padding:6px 30px 6px 10px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%23105c42' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 9px center!important;background-size:14px 10px!important}

.player-card-preview[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);overflow:hidden;padding:18px 18px 0}.player-card-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:8px}.player-card-footer{flex-shrink:0;background:#fff;padding:6px 4px max(18px,env(safe-area-inset-bottom));}.player-card-preview .player-card-footer button{margin:0;min-height:48px}.player-card-footer button:focus-visible{outline-offset:2px}

.hole-alert-options{box-sizing:border-box;margin:8px 0!important;padding:8px 12px!important;min-height:40px;border:1px solid #b9d7c9!important;border-radius:12px!important;background:#edf7f1!important;color:#175b45!important;font-size:13px!important;font-weight:700!important}.hole-alert-dialog{box-sizing:border-box;width:min(450px,calc(100vw - 24px));max-height:calc(100dvh - 40px);overflow:auto;border:0;border-radius:20px;padding:20px;color:#10283b}.hole-alert-dialog h2{font-size:21px}.hole-alert-dialog p{font-size:15px;line-height:1.4}.hole-alert-dialog button{display:block;width:100%;min-height:48px;margin:12px 0;border-radius:12px}.hole-alert-dialog .enable-alerts{background:#145f49;color:white;font-weight:750}.hole-alert-dialog .enable-alerts:disabled{opacity:.55}.hole-alert-dialog .close-alerts{background:#eef4f8;color:#235b83}

.shared-quick-options{display:flex;gap:8px;align-items:stretch;margin:4px 0 6px}.shared-quick-options>button{box-sizing:border-box;flex:1;min-width:0;min-height:40px!important;margin:0!important;padding:6px 8px!important;font-size:12px!important;line-height:1.25;font-weight:700;border-radius:12px}.shared-quick-options .hole-alert-options{background:#e3f3e9!important;border:1px solid #9acdb2!important;color:#13583e!important}

.confirm-hole-scores{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px;margin:8px 0;border:1px solid #a6d1b8;border-radius:12px;background:#dff3e6;color:#145941;font-weight:750}.confirm-hole-scores:disabled{opacity:.55}
