/* ==================================================
   GOLF COMPANION
   Project Eagle
   Alpha 4 - New Round Setup
================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green-dark: #073314;
    --green-main: #0b4b22;
    --green-light: #0f652e;
    --off-white: #f6f3ea;
    --gold: #d4af37;
    --danger: #b63232;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.35);
}

html, body { width: 100%; min-height: 100%; }

body {
    min-height: 100vh;
    overflow: hidden;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--white);
    background: linear-gradient(160deg, var(--green-dark), var(--green-main) 55%, var(--green-light));
}

button, input, select {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.app {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.screen {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 36%),
        linear-gradient(160deg, var(--green-dark), var(--green-main) 55%, var(--green-light));
    transition: transform 350ms ease;
    will-change: transform;
}

.screen-active { transform: translate3d(0,0,0); }
.screen-right { transform: translate3d(100%,0,0); }
.screen-left { transform: translate3d(-100%,0,0); }

.app-header {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 110px;
    background: rgba(4, 37, 15, 0.94);
    border-bottom: 5px solid var(--gold);
    box-shadow: 0 8px 20px var(--shadow);
}

.app-header h1 {
    text-align: center;
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 800;
    letter-spacing: 3px;
}

.page-header { position: relative; }

.back-button {
    position: absolute;
    left: 22px;
    top: 50%;
    width: 78px;
    height: 78px;
    transform: translateY(-50%);
    border: none;
    border-radius: 18px;
    background: var(--off-white);
    color: var(--green-main);
    font-size: 48px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px var(--shadow);
}

.back-button:active { transform: translateY(-50%) scale(0.96); }

.screen-content {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 34px;
}

.clubhouse-menu {
    display: grid;
    gap: 26px;
}

.menu-button,
.action-button,
.selection-button,
.save-button,
.secondary-button,
.delete-button,
.choice-button {
    border: none;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 10px 22px var(--shadow);
}

.menu-button {
    width: 100%;
    min-height: 112px;
    border-radius: 22px;
    padding: 26px 28px;
    background: var(--off-white);
    color: var(--green-main);
    font-size: clamp(30px, 5vw, 40px);
    letter-spacing: 1px;
}

.menu-button-main {
    min-height: 138px;
    border: 4px solid var(--gold);
    background: linear-gradient(180deg, #fffdf7, var(--off-white));
    box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 0 4px rgba(212,175,55,0.18);
}

.menu-button:active,
.action-button:active,
.selection-button:active,
.save-button:active,
.secondary-button:active,
.delete-button:active,
.choice-button:active,
.data-card:active,
.select-player-card:active,
.tee-button:active {
    transform: scale(0.98);
}

.round-introduction {
    text-align: center;
    margin-bottom: 28px;
}

.round-icon { font-size: 76px; line-height: 1; margin-bottom: 16px; }
.round-introduction h2 { margin-bottom: 12px; font-size: clamp(32px, 5vw, 44px); }
.round-introduction p { font-size: clamp(21px, 3vw, 28px); }

.selection-button {
    width: 100%;
    min-height: 104px;
    display: grid;
    grid-template-columns: 70px 1fr 50px;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px 24px;
    border-radius: 22px;
    background: var(--off-white);
    color: var(--green-main);
    font-size: clamp(27px, 4vw, 36px);
}

.selection-button span:first-child { font-size: 44px; }
.selection-button span:nth-child(2) { text-align: left; }
.selection-button span:last-child { text-align: right; font-size: 54px; }

.round-status,
.selection-count,
.review-course {
    margin-bottom: 22px;
    padding: 18px 22px;
    border: 3px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    background: rgba(4,37,15,0.46);
    text-align: center;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.start-round-button {
    width: 100%;
    min-height: 112px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(180deg, #e4c65a, var(--gold));
    color: var(--green-dark);
    font-size: clamp(30px, 5vw, 40px);
    font-weight: 900;
}

.start-round-button:disabled,
.save-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.action-button,
.save-button {
    width: 100%;
    min-height: 104px;
    border: 4px solid var(--gold);
    border-radius: 22px;
    background: var(--off-white);
    color: var(--green-main);
    font-size: clamp(28px, 4vw, 38px);
}

.action-button { margin-bottom: 24px; }

.save-button {
    margin-top: 18px;
    background: linear-gradient(180deg, #e4c65a, var(--gold));
    color: var(--green-dark);
}

.empty-message {
    padding: 34px;
    text-align: center;
    font-size: 28px;
    color: rgba(255,255,255,0.86);
}

.card-list {
    display: grid;
    gap: 20px;
}

.data-card,
.select-player-card {
    width: 100%;
    min-height: 105px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    border: none;
    border-radius: 22px;
    background: var(--off-white);
    color: var(--green-main);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 22px var(--shadow);
}

.select-player-card.selected {
    border: 5px solid var(--gold);
    background: #fffdf7;
}

.card-title {
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
}

.card-subtitle {
    font-size: 20px;
    opacity: 0.8;
}

.card-chevron,
.selection-tick {
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
}

.data-form {
    display: grid;
    gap: 18px;
}

.data-form label,
.distance-field span {
    margin-top: 8px;
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 800;
}

.data-form input {
    width: 100%;
    min-height: 92px;
    padding: 18px 24px;
    border: 4px solid transparent;
    border-radius: 20px;
    outline: none;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    box-shadow: 0 10px 22px var(--shadow);
}

.data-form input:focus { border-color: var(--gold); }

.secondary-button,
.delete-button {
    width: 100%;
    min-height: 92px;
    border-radius: 20px;
    color: var(--white);
    font-size: clamp(25px, 4vw, 34px);
}

.secondary-button { background: rgba(4, 37, 15, 0.92); border: 3px solid var(--off-white); }
.delete-button { background: var(--danger); }
.hidden { display: none !important; }

.choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.choice-button {
    min-height: 96px;
    border-radius: 20px;
    background: rgba(255,255,255,0.18);
    color: var(--white);
    font-size: clamp(25px, 4vw, 34px);
}

.choice-active {
    border: 4px solid var(--gold);
    background: var(--off-white);
    color: var(--green-main);
}

.hole-heading {
    text-align: center;
    margin-bottom: 24px;
}

.hole-heading h2 {
    font-size: clamp(42px, 7vw, 62px);
    line-height: 1;
    margin-bottom: 10px;
}

.hole-heading p { font-size: clamp(22px, 3vw, 30px); }

.two-column-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.two-column-fields > div {
    display: grid;
    gap: 10px;
}

.distance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 8px;
}

.distance-field {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.11);
}

.distance-field input {
    min-height: 82px;
    font-size: 36px;
}

.blue-tee { border: 4px solid #5291d8; }
.white-tee { border: 4px solid #ffffff; }
.yellow-tee { border: 4px solid #f1d647; }
.red-tee { border: 4px solid #e14d4d; }

.hole-navigation {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 18px;
    margin-top: 6px;
}

.hole-navigation .save-button,
.hole-navigation .secondary-button { margin-top: 0; }

/* ROUND REVIEW */

.review-instruction {
    margin-bottom: 22px;
    text-align: center;
    font-size: clamp(21px, 3vw, 28px);
}

.round-player-list {
    display: grid;
    gap: 22px;
}

.round-player-card {
    padding: 24px;
    border: 4px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    background: rgba(4,37,15,0.48);
    box-shadow: 0 10px 22px var(--shadow);
}

.round-player-name {
    margin-bottom: 18px;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 900;
    text-align: center;
}

.handicap-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.handicap-row label {
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 800;
}

.handicap-row input {
    width: 100%;
    min-height: 76px;
    padding: 10px;
    border: 4px solid transparent;
    border-radius: 16px;
    background: var(--off-white);
    color: var(--green-dark);
    text-align: center;
    font-size: 34px;
    font-weight: 900;
}

.handicap-row input:focus {
    border-color: var(--gold);
    outline: none;
}

.tee-label {
    margin-bottom: 12px;
    text-align: center;
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 800;
}

.tee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tee-button {
    min-height: 82px;
    border: 4px solid transparent;
    border-radius: 16px;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.tee-button.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}

.round-ready-panel {
    text-align: center;
}

.round-ready-panel h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 48px);
}

.round-ready-panel p {
    margin-bottom: 28px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.6;
}

.sticky-action {
    position: sticky;
    bottom: 18px;
}

@media (max-width: 600px) {
    .app-header {
        min-height: 102px;
        padding: 20px 82px;
    }

    .app-header h1 {
        font-size: 29px;
        letter-spacing: 1px;
    }

    .back-button {
        left: 14px;
        width: 62px;
        height: 62px;
        font-size: 38px;
    }

    .screen-content { padding: 22px 18px 28px; }
    .clubhouse-menu { gap: 18px; }
    .menu-button { min-height: 94px; font-size: 29px; }
    .menu-button-main { min-height: 116px; }

    .two-column-fields,
    .distance-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .data-form input {
        min-height: 78px;
        padding: 12px;
        font-size: 31px;
    }

    .distance-field { padding: 12px; }
    .distance-field span { font-size: 20px; }

    .hole-navigation { grid-template-columns: 1fr; }

    .handicap-row {
        grid-template-columns: 1fr 110px;
    }

    .tee-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tee-button {
        min-height: 72px;
        font-size: 21px;
    }
}

@media (orientation: landscape) and (min-width: 760px) {
    .clubhouse-menu { grid-template-columns: 1fr 1fr; }
    .menu-button-main { grid-column: 1 / -1; }
    .card-list { grid-template-columns: 1fr 1fr; }
    .round-player-list { grid-template-columns: 1fr 1fr; }
}


/* ==================================================
   ALPHA 5 - LIVE SCORING
================================================== */

.hole-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 22px 26px;
    border: 4px solid var(--gold);
    border-radius: 24px;
    background: rgba(4, 37, 15, 0.58);
    box-shadow: 0 10px 22px var(--shadow);
}

.hole-number {
    display: block;
    font-size: clamp(42px, 7vw, 64px);
    font-weight: 900;
    line-height: 1;
}

.hole-progress {
    display: block;
    margin-top: 8px;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
}

.hole-facts {
    display: grid;
    gap: 10px;
    text-align: right;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
}

.score-player-list {
    display: grid;
    gap: 22px;
}

.score-player-card {
    padding: 22px;
    border: 4px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    background: rgba(4,37,15,0.50);
    box-shadow: 0 10px 22px var(--shadow);
}

.score-player-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 16px;
}

.score-player-name {
    font-size: clamp(30px, 5vw, 43px);
    font-weight: 900;
}

.score-player-distance {
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 900;
}

.score-controls {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    gap: 14px;
    align-items: center;
}

.score-change-button {
    min-height: 96px;
    border: none;
    border-radius: 20px;
    background: var(--off-white);
    color: var(--green-main);
    font-size: 55px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px var(--shadow);
}

.score-change-button:active,
.pick-up-button:active {
    transform: scale(0.96);
}

.gross-score {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--gold);
    border-radius: 22px;
    background: #fffdf7;
    color: var(--green-dark);
    font-size: clamp(62px, 10vw, 92px);
    font-weight: 900;
    line-height: 1;
}

.score-information {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.score-stat {
    padding: 12px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.13);
    text-align: center;
}

.score-stat strong {
    display: block;
    font-size: clamp(24px, 4vw, 34px);
}

.score-stat span {
    font-size: 17px;
    font-weight: 700;
}

.pick-up-button {
    width: 100%;
    min-height: 68px;
    margin-top: 14px;
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    background: transparent;
    color: var(--white);
    font-size: 23px;
    font-weight: 900;
    cursor: pointer;
}

.pick-up-button.active {
    border-color: var(--gold);
    background: var(--danger);
}

.scoring-navigation {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 18px;
    margin-top: 26px;
}

.scoring-navigation .save-button,
.scoring-navigation .secondary-button {
    margin-top: 0;
}

.results-heading {
    margin-bottom: 24px;
    text-align: center;
}

.results-heading h2 {
    font-size: clamp(36px, 6vw, 54px);
}

.results-heading p {
    margin-top: 10px;
    font-size: clamp(23px, 3vw, 31px);
}

.results-list {
    display: grid;
    gap: 18px;
}

.result-card {
    display: grid;
    grid-template-columns: 75px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 22px;
    background: var(--off-white);
    color: var(--green-main);
    box-shadow: 0 10px 22px var(--shadow);
}

.result-position {
    font-size: 42px;
    text-align: center;
}

.result-name {
    font-size: clamp(28px, 4vw, 39px);
    font-weight: 900;
}

.result-points {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    text-align: right;
}

.result-points small {
    display: block;
    font-size: 17px;
}

@media (orientation: landscape) and (min-width: 760px) {
    .score-player-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hole-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hole-facts {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .score-controls {
        grid-template-columns: 82px 1fr 82px;
        gap: 10px;
    }

    .score-change-button {
        min-height: 86px;
        font-size: 48px;
    }

    .gross-score {
        min-height: 100px;
    }

    .score-information {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .scoring-navigation {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   ALPHA 7 - CLEAN SCORING AND ROUND SUMMARY
================================================== */

.compact-hole-bar {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.2fr 1.2fr;
    gap: 12px;
    margin-bottom: 22px;
}

.compact-hole-block {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 3px solid rgba(255,255,255,0.24);
    border-radius: 18px;
    background: rgba(4,37,15,0.5);
    text-align: center;
}

.compact-label {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 800;
    opacity: 0.85;
}

.compact-hole-block strong {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
}

.compact-progress strong {
    font-size: clamp(21px, 3vw, 28px);
}

.score-player-card {
    padding: 22px;
    border: 4px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    background: rgba(4,37,15,0.50);
    box-shadow: 0 10px 22px var(--shadow);
}

.score-player-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.score-player-name {
    font-size: clamp(30px, 5vw, 43px);
    font-weight: 900;
}

.score-player-distance {
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 900;
}

.score-entry-panel {
    padding: 18px;
    border-radius: 22px;
    border: 4px solid var(--gold);
    background: rgba(255,255,255,0.06);
}

.score-controls {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    gap: 14px;
    align-items: center;
}

.score-change-button {
    min-height: 94px;
    border: none;
    border-radius: 20px;
    background: var(--off-white);
    color: var(--green-main);
    font-size: 54px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px var(--shadow);
}

.gross-score {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fffdf7;
    color: var(--green-dark);
    font-size: clamp(62px, 10vw, 92px);
    font-weight: 900;
    line-height: 1;
}

.current-hole-points {
    margin-top: 14px;
    text-align: center;
}

.current-hole-points span {
    display: block;
    font-size: 19px;
    font-weight: 800;
}

.current-hole-points strong {
    display: block;
    margin-top: 4px;
    font-size: 46px;
    line-height: 1;
}

.cumulative-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.cumulative-box {
    padding: 15px;
    border-radius: 16px;
    background: rgba(255,255,255,0.13);
    text-align: center;
}

.cumulative-box span {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.cumulative-box strong {
    display: block;
    margin-top: 5px;
    font-size: 36px;
    line-height: 1;
}

.pick-up-button {
    width: 100%;
    min-height: 66px;
    margin-top: 14px;
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    background: transparent;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.pick-up-button.active {
    border-color: var(--gold);
    background: var(--danger);
}

.scorecard-summary-section {
    margin-top: 30px;
    padding: 22px;
    border: 4px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    background: rgba(4,37,15,0.45);
}

.scorecard-summary-section h2 {
    margin-bottom: 18px;
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
}

.scorecard-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
}

.scorecard-table {
    min-width: 1050px;
    width: 100%;
    border-collapse: collapse;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: 18px;
}

.scorecard-table th,
.scorecard-table td {
    min-width: 52px;
    padding: 10px 8px;
    border: 2px solid rgba(7,51,20,0.25);
    text-align: center;
    font-weight: 800;
}

.scorecard-table th:first-child,
.scorecard-table td:first-child {
    position: sticky;
    left: 0;
    min-width: 140px;
    z-index: 2;
    background: #fffdf7;
    text-align: left;
}

.scorecard-table thead th {
    background: var(--gold);
    color: var(--green-dark);
}

.scorecard-table .points-row td {
    background: #edf5e9;
}

.scorecard-table .total-cell {
    min-width: 80px;
    background: #e4c65a;
    font-size: 21px;
}

@media (max-width: 600px) {
    .compact-hole-bar {
        grid-template-columns: 1fr 1fr;
    }

    .score-player-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .score-player-distance {
        justify-self: center;
    }

    .score-controls {
        grid-template-columns: 78px 1fr 78px;
        gap: 10px;
    }

    .score-change-button {
        min-height: 84px;
        font-size: 46px;
    }

    .gross-score {
        min-height: 98px;
    }
}


/* ==================================================
   ALPHA 9 - GAME FORMATS
================================================== */

.game-format-panel {
    margin-top: 26px;
    padding: 22px;
    border: 4px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    background: rgba(4,37,15,0.48);
    box-shadow: 0 10px 22px var(--shadow);
}

.game-format-panel h2,
.game-format-panel h3 {
    margin-bottom: 16px;
    text-align: center;
}

.game-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.game-type-button,
.alliance-count-button {
    min-height: 82px;
    border: 4px solid transparent;
    border-radius: 17px;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: clamp(18px, 2.4vw, 25px);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px var(--shadow);
}

.game-type-button.active,
.alliance-count-button.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.20);
}

.format-options {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 3px solid rgba(255,255,255,0.22);
}

.partner-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.partner-row label {
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 900;
}

.partner-row select {
    min-height: 72px;
    padding: 10px 14px;
    border: 4px solid transparent;
    border-radius: 16px;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: 23px;
    font-weight: 900;
}

.partner-row select:focus {
    border-color: var(--gold);
    outline: none;
}

.alliance-count-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.live-team-totals,
.team-results-section,
.individual-results-section {
    margin-top: 24px;
}

.live-team-totals {
    display: grid;
    gap: 14px;
}

.live-team-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    border: 4px solid var(--gold);
    border-radius: 20px;
    background: rgba(4,37,15,0.62);
    box-shadow: 0 8px 18px var(--shadow);
}

.live-team-name {
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 900;
}

.live-team-hole,
.live-team-total {
    text-align: center;
}

.live-team-hole strong,
.live-team-total strong {
    display: block;
    font-size: 34px;
}

.live-team-hole span,
.live-team-total span {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.team-results-section h2,
.individual-results-section h2 {
    margin-bottom: 16px;
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
}

@media (max-width: 600px) {
    .game-type-grid {
        grid-template-columns: 1fr;
    }

    .alliance-count-grid {
        grid-template-columns: 1fr 1fr;
    }

    .partner-row {
        grid-template-columns: 1fr;
    }

    .live-team-card {
        grid-template-columns: 1fr 1fr;
    }

    .live-team-name {
        grid-column: 1 / -1;
        text-align: center;
    }
}


/* ==================================================
   ALPHA 11 - START ANY HOLE / SCORECARD IMAGE
================================================== */

.compact-introduction {
    margin-bottom: 20px;
}

.start-hole-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.start-hole-button {
    min-height: 86px;
    border: 4px solid transparent;
    border-radius: 18px;
    background: var(--off-white);
    color: var(--green-dark);
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px var(--shadow);
}

.start-hole-button.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.20);
}

.start-hole-button:active {
    transform: scale(0.96);
}

.results-return-button {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .start-hole-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ALPHA 12 OPIRIA SCORECARD */
.scorecard-wrapper{background:linear-gradient(180deg,#020910,#06151e);border:3px solid #d4af37;border-radius:22px;padding:18px}.scorecard-table{color:#f5dfb5;background:rgba(0,8,14,.9)}.scorecard-table th,.scorecard-table td{border-color:#b98712}.scorecard-info-row th{color:#f4c13d;text-align:left;padding:12px}.scorecard-info-row span{display:inline-block;margin-right:24px}.player-name-cell{min-width:170px;text-align:left!important;padding-left:10px!important}.player-name-cell small{display:block}.team-ab .player-name-cell,.pair-0 .player-name-cell{color:#35bfff}.team-cd .player-name-cell,.pair-1 .player-name-cell{color:#ff5b3e}.group-top th,.group-top td{border-top-width:4px!important}.pair-result-row th,.pair-result-row td{border-bottom-width:4px!important}.split-column{border-left-width:4px!important;border-right-width:4px!important}.score-mark{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;font-weight:900}.score-mark-eagle{border:2px solid #35bfff;border-radius:50%;color:#7cff2d}.score-mark-birdie{border:2px solid #35bfff;border-radius:50%;color:#fff}.score-mark-par{color:inherit}.score-mark-bogey{border:2px solid #ff4025;color:#fff}.score-mark-double-bogey,.score-mark-blob{border:2px solid #ff4025;color:#ff4025}.alliance-row th{color:#f4c13d;text-align:left;padding-left:16px}


/* ==================================================
   ALPHA 12.1 - OFFICIAL SCORECARD FINISH
================================================== */

.official-results-heading {
    margin-bottom: 14px;
}

.official-scorecard-section {
    margin-top: 0;
    transform-origin: center top;
}

.official-scorecard-section.scorecard-reveal {
    animation: officialScorecardReveal 0.55s ease-out both;
}

@keyframes officialScorecardReveal {
    0% {
        opacity: 0;
        transform: scale(1.02) translateY(12px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.official-scorecard-table {
    min-width: 1480px;
}

.alliance-row th small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #f5dfb5;
    letter-spacing: 0.4px;
}


/* ==================================================
   ALPHA 13.1 - SINGLE RENDERER DISPLAY
================================================== */

.official-scorecard-image-wrap {
    width: 100%;
    overflow: auto;
    border: 3px solid #d4af37;
    border-radius: 18px;
    background: #02080e;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.official-scorecard-image {
    display: block;
    width: 100%;
    min-width: 1180px;
    height: auto;
}

.official-scorecard-table {
    display: none !important;
}


/* ==================================================
   ALPHA 13.3 - STANDARD FOUR-PLAYER CARD
================================================== */

.official-scorecard-image {
    min-width: 1100px;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

.official-scorecard-image-wrap {
    background: #02070b;
}


/* ==================================================
   ALPHA 14 - RESERVED DISTANCE-TO-PIN SPACE
================================================== */

/*
The former Pick Up / Blob control area is intentionally left free.
It is reserved for the future distance-to-pin display.
*/

.home-version{margin-top:14px;text-align:center;font-size:.78rem;font-weight:700;letter-spacing:.08em;opacity:.68}
.round-length-panel{margin-top:16px;padding:16px;border-radius:18px;background:rgba(255,255,255,.08)}
.round-length-title{margin-bottom:10px;font-weight:800;letter-spacing:.08em}
.round-length-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gps-panel{margin:12px 0 16px;padding:14px;border:2px solid #d7b137;border-radius:16px;background:rgba(0,0,0,.2)}
.gps-distance-block{text-align:center;padding-bottom:10px}.gps-label{display:block;font-size:.78rem;font-weight:800;letter-spacing:.08em;opacity:.82}
#gpsGreenDistance{display:inline-block;margin-top:2px;font-size:clamp(2.8rem,12vw,5.4rem);line-height:1}.gps-unit{margin-left:6px;font-weight:800}
.gps-tee-block{padding-top:10px;border-top:1px solid rgba(255,255,255,.22);text-align:center}#gpsTeeLocation{display:block;margin-top:5px;font-size:.92rem}
.gps-status{margin-top:8px;text-align:center;font-size:.75rem;opacity:.72}
.get-distance-button{width:100%;margin:12px 0 16px;padding:18px;border:2px solid #d7b137;border-radius:16px;background:rgba(0,0,0,.28);color:#f1c84a;font:inherit;font-weight:900;font-size:1.05rem}.distance-card{text-align:center}.distance-result{margin:22px 0 18px;padding:22px 12px;border:2px solid #d7b137;border-radius:18px;background:rgba(0,0,0,.28)}.distance-number-row{display:flex;justify-content:center;align-items:baseline;gap:8px}.distance-number-row strong{font-size:clamp(4.8rem,22vw,8rem);line-height:1}.distance-number-row span{font-size:1.5rem;font-weight:900}.distance-tee{margin-bottom:18px;padding:14px;border-radius:14px;background:rgba(255,255,255,.07)}.distance-tee span{display:block;font-size:.76rem;font-weight:800}.distance-error{min-height:24px;margin:10px 0;font-weight:700}
html,body{width:100%;min-height:100%;margin:0;background:#07110d;overscroll-behavior-y:none}body{min-height:100vh;min-height:100dvh;overflow-x:hidden}.screen{min-height:100vh;min-height:100dvh;overscroll-behavior-y:contain}.distance-label{margin-bottom:8px;font-size:.8rem;font-weight:900;letter-spacing:.06em}.shot-distance-result{margin-top:12px}

/* Alpha 16.1 GPS action styling */
.recalculate-distance-button{
    background:#79c9f2 !important;
    color:#06233a !important;
    border:2px solid #bde8ff !important;
    box-shadow:0 0 0 1px rgba(0,0,0,.25),0 5px 14px rgba(0,0,0,.22);
    font-weight:900;
}
.recalculate-distance-button:active{
    transform:translateY(1px);
}

/* Keep the installed iPad PWA painted through the safe-area and prevent bottom rubber-band white exposure */
html{
    background:#07110d !important;
    min-height:100%;
    overscroll-behavior:none;
}
body{
    background:#07110d !important;
    min-height:100vh;
    min-height:100dvh;
    padding-bottom:env(safe-area-inset-bottom);
    overscroll-behavior:none;
}
@supports (-webkit-touch-callout:none){
    html,body{
        height:100%;
        min-height:-webkit-fill-available;
    }
    .screen{
        min-height:-webkit-fill-available;
    }
}


/* ==================================================
   ALPHA 16.2 CLEAN - DISTANCE BUTTON + SAFE EXIT
================================================== */

.recalculate-distance-button {
    display: block;
    width: 100%;
    min-height: 74px;
    margin: 28px 0 18px;
    padding: 16px 22px;
    border: 3px solid #d7b137 !important;
    border-radius: 18px;
    background: linear-gradient(180deg, #63bfe9 0%, #3497c9 100%) !important;
    color: #06263a !important;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(0,0,0,.24);
}

.recalculate-distance-button:active {
    transform: translateY(1px);
}

#btnBackToScore {
    margin-top: 0;
}

.exit-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,.75);
}

.exit-confirm-overlay.hidden {
    display: none !important;
}

.exit-confirm-card {
    width: min(92vw, 560px);
    padding: 26px 22px;
    border: 3px solid #d7b137;
    border-radius: 22px;
    background: linear-gradient(180deg, #0b4229 0%, #062b1c 100%);
    color: white;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.48);
}

.exit-confirm-card h2 {
    margin: 0 0 14px;
    color: #f1c84a;
    font-size: 1.28rem;
}

.exit-confirm-card p {
    margin: 0 0 22px;
    line-height: 1.45;
}

.exit-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.exit-confirm-actions button {
    min-height: 62px;
    border: 3px solid #d7b137;
    border-radius: 17px;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 900;
}

.exit-confirm-no {
    background: #123e2b;
    color: white;
}

.exit-confirm-yes {
    background: #69bce5;
    color: #06263a;
}


/* ==================================================
   ALPHA 28.7 - MDL TO IPS PLAYER CONVERSION
================================================== */

/* Small mode badge beside the player's name. */
.player-mode-badge{
    display:inline-block;
    margin-left:10px;
    padding:5px 10px;
    border:2px solid rgba(255,255,255,.55);
    border-radius:10px;
    color:#fff;
    font-size:16px;
    font-weight:900;
    vertical-align:middle;
}

.player-mode-badge.mdl{
    background:#31506A;
}

.player-mode-badge.ips{
    background:#1f6f3a;
}

/* Amber = caution. Only MDL players see this button. */
.ips-change-button{
    width:100%;
    min-height:64px;
    margin-top:14px;
    border:3px solid #ffd46c;
    border-radius:16px;
    background:#c77a00;
    color:#fff;
    font-size:21px;
    font-weight:900;
    letter-spacing:.02em;
    cursor:pointer;
    box-shadow:0 7px 16px rgba(0,0,0,.25);
}

.ips-change-button:active{
    transform:scale(.98);
}

.ips-confirm-overlay{
    position:fixed;
    inset:0;
    z-index:100000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
    background:rgba(0,0,0,.78);
}

.ips-confirm-overlay.hidden{
    display:none !important;
}

.ips-confirm-card{
    width:min(92vw,590px);
    padding:26px 22px;
    border:3px solid #ffd46c;
    border-radius:22px;
    background:linear-gradient(180deg,#6b4300 0%,#392400 100%);
    color:#fff;
    text-align:center;
    box-shadow:0 18px 50px rgba(0,0,0,.5);
}

.ips-confirm-card h2{
    margin:0 0 12px;
    color:#ffd46c;
    font-size:1.35rem;
}

.ips-confirm-card p{
    margin:0 0 15px;
    line-height:1.45;
    font-weight:800;
}

.ips-confirm-card #ipsConfirmPlayer{
    font-size:1.25rem;
    color:#fff;
}

.ips-confirm-warning{
    color:#ffd46c;
}

.ips-confirm-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:20px;
}

.ips-confirm-actions button{
    min-height:62px;
    border:3px solid #ffd46c;
    border-radius:17px;
    font:inherit;
    font-size:1.08rem;
    font-weight:900;
}

.ips-confirm-no{
    background:#123e2b;
    color:#fff;
}

.ips-confirm-yes{
    background:#c77a00;
    color:#fff;
}

/* ==================================================
   ALPHA 17 - ROUND RECOVERY
================================================== */
.resume-round-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,.78);
}
.resume-round-overlay.hidden { display: none !important; }
.resume-round-card {
    width: min(92vw, 560px);
    padding: 26px 22px;
    border: 3px solid #d7b137;
    border-radius: 22px;
    background: linear-gradient(180deg,#0b4229 0%,#062b1c 100%);
    color: white;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.48);
}
.resume-round-card h2 {
    margin: 0 0 14px;
    color: #f1c84a;
}
.resume-round-card p {
    margin: 0 0 22px;
    line-height: 1.45;
}
.resume-round-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.resume-round-actions button {
    min-height: 64px;
    border: 3px solid #d7b137;
    border-radius: 17px;
    font: inherit;
    font-weight: 900;
}
.resume-discard {
    background: #123e2b;
    color: white;
}
.resume-continue {
    background: #69bce5;
    color: #06263a;
}


/* ==================================================
   ALPHA 18 - ROUND OPTIONS / MANAGEMENT / SHOT MEASURE
================================================== */
.round-options-panel {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.round-option-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.07);
}
.round-option-field span { font-size: .76rem; font-weight: 900; letter-spacing: .06em; }
.round-option-field input {
    width: 100%; min-height: 48px; box-sizing: border-box;
    border: 2px solid #d7b137; border-radius: 12px;
    background: rgba(0,0,0,.25); color: white; padding: 8px 10px; font-size: 1rem;
}
.round-review-meta { margin: 8px 0 16px; text-align: center; font-weight: 800; opacity: .85; }
.manage-round-button { width: 100%; margin: 12px 0 18px; }
.round-management-note { margin-bottom: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.07); line-height: 1.4; }
.manage-round-player-list { display: grid; gap: 14px; }
.manage-player-card { padding: 16px; border: 2px solid #d7b137; border-radius: 18px; background: rgba(0,0,0,.22); }
.manage-player-title { font-size: 1.15rem; font-weight: 900; margin-bottom: 12px; }
.manage-player-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.manage-player-grid label { display:flex; flex-direction:column; gap:6px; font-size:.72rem; font-weight:900; }
.manage-player-grid input,.manage-player-grid select { min-height:46px; border:1px solid #d7b137; border-radius:10px; padding:8px; font-size:1rem; background:#fff; color:#111; }
.manage-playing-hcp { margin-top: 10px; font-size:.86rem; }
.remove-round-player { width:100%; min-height:46px; margin-top:12px; border:2px solid #d7b137; border-radius:12px; background:#6b1d1d; color:white; font-weight:900; }
.manage-add-heading { margin:22px 0 10px; font-weight:900; letter-spacing:.08em; }
.shot-measure-entry-button { display:block; width:100%; min-height:68px; margin:18px 0; padding:14px; border:3px solid #d7b137; border-radius:18px; background:#153f59; color:white; font:inherit; font-weight:900; }
.shot-distance-screen-content { text-align:center; }
.shot-distance-instruction,.shot-position-status { margin: 14px 0; line-height:1.4; font-weight:800; }
@media (max-width: 480px) {
    .round-options-panel, .manage-player-grid { grid-template-columns: 1fr; }
}


/* ==================================================
   ALPHA 19 - SHOT DISTANCE START / STOP
================================================== */
.shot-action-button {
    display: block;
    width: 100%;
    min-height: 78px;
    margin: 26px 0 18px;
    padding: 17px 22px;
    border: 4px solid #d7b137;
    border-radius: 20px;
    font: inherit;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    font-weight: 900;
    letter-spacing: .055em;
    box-shadow: 0 7px 18px rgba(0,0,0,.28);
}

.shot-start-button {
    background: #35e65d !important;
    color: #052713 !important;
}

.shot-stop-button {
    background: #ff3131 !important;
    color: #ffffff !important;
}

.shot-action-button:disabled {
    opacity: .72;
}

.shot-gps-status {
    min-height: 28px;
    margin: 10px 0 0;
    text-align: center;
    font-size: .82rem;
    font-weight: 800;
}


/* ==================================================
   ALPHA 20 - GREEN + HAZARD DISTANCE DISPLAY
================================================== */
.distance-loading {
    min-height: 24px;
    margin: 8px 0 10px;
    text-align: center;
    font-size: .82rem;
    font-weight: 800;
}

.course-distance-section-title {
    margin: 18px 0 10px;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .12em;
    color: #f1c84a;
}

.course-hazards-section.hidden {
    display: none !important;
}

.course-hazard-list,
.green-distance-section {
    width: 100%;
}

.course-distance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin-bottom: 12px;
    padding: 16px 18px;
    border: 2px solid rgba(215,177,55,.72);
    border-radius: 17px;
    background: rgba(255,255,255,.07);
}

.course-distance-row-primary {
    border-width: 3px;
    background: rgba(255,255,255,.11);
}

.course-distance-label {
    min-width: 0;
    text-align: left;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .035em;
}

.course-distance-value {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.course-distance-value strong {
    font-size: clamp(2rem, 9vw, 3.4rem);
    line-height: 1;
}

.course-distance-row-primary .course-distance-value strong {
    font-size: clamp(2.5rem, 11vw, 4rem);
}

.course-distance-value span {
    font-size: 1rem;
    font-weight: 900;
}

.hazard-distance-row {
    border-color: rgba(121,201,242,.72);
}

@media (max-width: 380px) {
    .course-distance-row {
        padding: 14px 15px;
        gap: 12px;
    }

    .course-distance-label {
        font-size: .8rem;
    }
}

/* ==================================================
   ALPHA 21 - APPROVED COSMETIC PASS
================================================== */
.round-length-title { font-size: 1.35rem !important; font-weight: 900; }
.round-length-buttons .choice-button { min-height: 64px; font-size: 1.15rem; font-weight: 900; }
.round-options-panel { grid-template-columns: 1fr !important; }
.round-option-field > span { font-size: 1.08rem; font-weight: 900; }
.tee-time-custom { align-items: stretch; }
.tee-time-picker { display:flex; justify-content:center; align-items:center; gap:20px; padding:12px; }
.tee-time-column { display:grid; grid-template-columns:56px 82px 56px; grid-template-rows:auto 56px; gap:7px; align-items:center; }
.tee-time-caption { grid-column:1/-1; text-align:center; font-size:.9rem; font-weight:900; letter-spacing:.08em; }
.tee-time-column strong { grid-column:2; grid-row:2; font-size:2.25rem; text-align:center; }
.tee-time-step { grid-row:2; min-width:52px; min-height:52px; border:2px solid #d7b137; border-radius:12px; background:#102f25; color:#fff; font-size:1.2rem; }
.tee-time-step:first-of-type { grid-column:1; }
.tee-time-step:last-of-type { grid-column:3; }
.tee-time-colon { font-size:2.6rem; font-weight:900; margin-top:22px; }
.selected-tee-time { text-align:center; font-size:1.05rem; padding:10px; border-top:1px solid rgba(215,177,55,.35); }
.review-instruction { font-size:1.35rem !important; font-weight:900; text-align:center; }
#btnStartRound { margin-top:16px; min-height:68px; font-size:1.18rem; }

.hole-quick-actions { display:grid; grid-template-columns:1fr; gap:10px; margin:12px 0 14px; }
.hole-quick-actions button { width:100%; min-height:58px; font-size:1.02rem; font-weight:900; }

#distanceHoleTitle { font-size:2.15rem !important; }
.distance-card .section-heading p,
.course-distance-section-title,
.course-distance-label,
.distance-loading,
.distance-error { font-size:1.08rem !important; font-weight:900; }
.course-distance-value strong { font-size:clamp(2.6rem,10vw,4.2rem) !important; }
.course-distance-row-primary .course-distance-value strong { font-size:clamp(3rem,12vw,4.8rem) !important; }
#btnRefreshDistance, #btnBackToScore { min-height:68px; font-size:1.1rem; font-weight:900; }
#btnBackToScore { border:3px solid #d7b137; color:#fff; }

.shot-club-panel { width:100%; margin:4px 0 18px; padding:14px; border:2px solid rgba(215,177,55,.75); border-radius:18px; }
.shot-club-title { text-align:center; font-size:1.1rem; font-weight:900; margin-bottom:12px; }
.shot-club-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.shot-club { min-height:50px; border:2px solid rgba(255,255,255,.45); border-radius:10px; background:#143a2d; color:#fff; font-weight:900; font-size:1rem; }
.shot-club.active { background:#d7b137; color:#13251d; border-color:#f5d66b; }
.score-card-return-button { width:100%; min-height:66px; margin-top:12px; border:3px solid #d7b137; border-radius:16px; background:#d7b137; color:#13251d; font:inherit; font-size:1.05rem; font-weight:900; }

@media (min-width:700px) {
  .hole-quick-actions { grid-template-columns:1fr 1fr; }
  .shot-club-grid { grid-template-columns:repeat(6,1fr); }
}


/* ==================================================
   ALPHA 21.1 - LARGE TEXT + STACKED HOLE QUICK ACTIONS
================================================== */

/* Global readability rule for status/instruction text */
.shot-distance-screen-content .distance-label,
.shot-gps-status,
.distance-loading,
.distance-error,
.round-status,
.round-management-note,
.review-instruction,
.selection-count,
.empty-message {
    font-size: clamp(1.15rem, 3.5vw, 1.55rem) !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
}

/* Shot Distance title/label should never look tiny */
#shotDistanceScreen .distance-label {
    font-size: clamp(1.45rem, 4.5vw, 2rem) !important;
    letter-spacing: .035em;
}

/* GPS/status messages on Shot Distance screen */
#shotPositionStatus {
    min-height: 42px !important;
    margin: 14px 0 4px !important;
    font-size: clamp(1.2rem, 4vw, 1.7rem) !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
}

/* Every hole: quick buttons vertically stacked, never side-by-side */
.hole-quick-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 14px 0 18px !important;
}

/* Prominent outdoor-readable button text */
.hole-quick-actions button {
    width: 100% !important;
    min-height: 74px !important;
    padding: 16px 18px !important;
    font-size: clamp(1.25rem, 4vw, 1.7rem) !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
}

/* Override the Alpha 21 tablet rule that placed them side-by-side */
@media (min-width:700px) {
    .hole-quick-actions {
        grid-template-columns: 1fr !important;
    }
}

/* ALPHA 21.3 */
.handicap-allowance-compact{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important}
.handicap-allowance-compact>span{flex:0 1 auto;font-size:clamp(1.05rem,3.4vw,1.4rem)!important}
.handicap-allowance-compact input{flex:0 0 92px!important;width:92px!important;max-width:92px!important;min-height:58px!important;padding:8px!important;text-align:center!important;font-size:clamp(1.65rem,5vw,2.15rem)!important;font-weight:900!important}
.course-distance-row{flex-wrap:wrap}
.club-recommendation{width:100%;flex-basis:100%}
.club-recommendation-text{margin-top:8px;padding-top:8px;border-top:1px solid rgba(215,177,55,.28);text-align:right;font-size:clamp(1.3rem,4vw,1.8rem);font-weight:900;color:#f1c84a}
.shot-recorded-status{min-height:34px;margin:4px 0 10px;text-align:center;font-size:clamp(1.15rem,3.7vw,1.55rem);font-weight:900;color:#f1c84a}


/* ==================================================
   ALPHA 22.2 - OPTIONAL HNA / PLAYER ID
================================================== */
#playerHnaId {
    min-height: 58px;
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: .025em;
}

.setup-home-button{width:100%;min-height:62px;margin-top:12px;font-size:1.2rem;font-weight:900}
.setup-screen-content{display:flex;flex-direction:column;gap:18px}
.setup-panel{padding:18px;border:2px solid rgba(215,177,55,.7);border-radius:18px;background:rgba(255,255,255,.05)}
.setup-panel h2{margin:0 0 14px;font-size:clamp(1.35rem,4vw,1.8rem)}
.setup-note{font-size:1.05rem;font-weight:700}
.club-distance-setup-list{display:flex;flex-direction:column;gap:8px;margin:14px 0 18px}
.club-setup-row{display:grid;grid-template-columns:90px 120px 35px;align-items:center;gap:12px}
.club-setup-name{font-size:1.2rem;font-weight:900}
.club-distance-input{width:120px;min-height:54px;text-align:center;font-size:1.55rem;font-weight:900}
.club-setup-unit{font-size:1.1rem;font-weight:900}
.scoreboard-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.scoreboard-toggle-row>span{font-size:1.2rem;font-weight:900}
.choice-pair{display:flex;gap:10px}
.choice-pair .choice-button{min-width:100px;min-height:54px;font-size:1.1rem;font-weight:900}
.competition-name-input{width:100%;min-height:60px;padding:12px 14px;font-size:1.35rem;font-weight:800;margin-bottom:12px}
.setup-status{min-height:28px;margin-top:10px;text-align:center;font-size:1.05rem;font-weight:900;color:#f1c84a}


/* ==================================================
   VERSION 23 — HOME VISUAL REDESIGN
================================================== */
#clubhouseScreen{
    background:
        radial-gradient(circle at 50% 22%, rgba(49,132,73,.24), transparent 36%),
        linear-gradient(180deg,#00351b 0%,#075025 48%,#075a29 100%);
}
.home-shell{min-height:100%;display:flex;flex-direction:column}
.home-hero{
    display:flex;align-items:center;justify-content:center;gap:18px;
    padding:22px 22px 18px;
    background:linear-gradient(180deg,#002b18,#003b20);
    border-bottom:4px solid var(--gold);
    box-shadow:0 8px 26px rgba(0,0,0,.28)
}
.home-brand-mark{
    width:82px;height:82px;border:3px solid var(--gold);border-radius:50%;
    display:flex;align-items:center;justify-content:center;font-size:48px;
    background:radial-gradient(circle,#176c2f,#073c1b)
}
.home-brand-copy h1{
    margin:0;color:#fff;font-size:clamp(34px,6vw,64px);line-height:.95;
    letter-spacing:.035em;font-weight:950
}
.home-tagline{
    margin-top:10px;color:#e9c65a;font-size:clamp(12px,2vw,19px);
    font-weight:850;letter-spacing:.08em
}
.home-menu-v23{max-width:1050px;width:100%;margin:0 auto;padding-top:28px}
.home-card{
    width:100%;border:3px solid rgba(215,169,33,.8);border-radius:24px;
    background:linear-gradient(180deg,#fffdf7,#f4efe1);
    color:var(--green-dark);padding:20px 24px;display:grid;
    grid-template-columns:auto 1fr auto;gap:18px;align-items:center;text-align:left;
    box-shadow:0 12px 26px rgba(0,0,0,.25);cursor:pointer
}
.home-card-main{min-height:145px}
.home-card-dark{
    background:linear-gradient(145deg,#06431f,#033117);color:#fff
}
.home-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.home-card-wide{margin-top:18px}
.home-card-icon{font-size:clamp(38px,5vw,60px)}
.home-card-copy strong{display:block;font-size:clamp(26px,4vw,44px);font-weight:950}
.home-card-copy small{display:block;margin-top:6px;font-size:clamp(14px,2.2vw,20px);font-weight:700;opacity:.82}
.home-card-arrow{
    width:52px;height:52px;border:3px solid var(--gold);border-radius:50%;
    display:flex;align-items:center;justify-content:center;font-size:38px;font-weight:900
}
.home-footer-strip{
    margin-top:22px;padding:14px 18px;border-radius:18px;background:rgba(0,34,18,.88);
    border:2px solid rgba(215,169,33,.55);display:grid;grid-template-columns:repeat(4,1fr);
    gap:10px;text-align:center;align-items:center;color:#f5dfb5;font-weight:850
}
.home-footer-strip .home-version{margin:0}

@media(max-width:700px){
    .home-hero{align-items:flex-start}
    .home-brand-mark{width:64px;height:64px;font-size:36px}
    .home-card-grid{grid-template-columns:1fr}
    .home-footer-strip{grid-template-columns:1fr 1fr}
}

/* ==================================================
   VERSION 23 — SETUP MENU
================================================== */
.setup-menu-v23{display:flex;flex-direction:column;gap:18px}
.setup-menu-card{
    width:100%;min-height:108px;padding:18px 20px;border:3px solid var(--gold);
    border-radius:22px;background:linear-gradient(145deg,#06451f,#032f17);
    color:#fff;display:grid;grid-template-columns:auto 1fr auto;gap:18px;
    align-items:center;text-align:left;box-shadow:0 10px 22px rgba(0,0,0,.24)
}
.setup-menu-icon{font-size:42px}
.setup-menu-card strong{display:block;font-size:clamp(22px,3vw,32px)}
.setup-menu-card small{display:block;margin-top:5px;font-size:16px;color:#d9e8dd}
.setup-menu-card>span:last-child{font-size:42px;color:var(--gold)}
.setup-focus-panel{max-width:760px;width:100%;margin:0 auto;text-align:center}
.send-score-state{
    margin:18px auto;padding:20px;border:3px solid rgba(255,255,255,.35);
    border-radius:18px;background:#5b1818;color:#fff;font-size:clamp(34px,6vw,56px);font-weight:950
}
.send-score-state.enabled{background:#0a672f}
.send-score-choice{justify-content:center}
.send-score-choice .choice-button{min-width:180px}

/* ==================================================
   VERSION 23 — DIRECT STROKE ENTRY
================================================== */
.score-direct-entry{
    padding:18px;border:3px solid rgba(215,169,33,.8);border-radius:24px;
    background:
      radial-gradient(circle at 50% 50%,rgba(22,114,51,.22),transparent 60%),
      linear-gradient(180deg,rgba(0,69,31,.95),rgba(0,52,23,.98));
    box-shadow:inset 0 0 28px rgba(0,0,0,.18)
}
.score-direct-title{
    text-align:center;color:#e9b832;font-size:clamp(24px,4vw,36px);
    font-weight:950;letter-spacing:.03em;margin:4px 0 16px
}
.score-number-row{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.score-number-button{
    min-height:92px;border:3px solid #d9b13a;border-radius:20px;
    background:linear-gradient(180deg,#fffdf7,#eee8da);color:#003b1c;
    font-size:clamp(36px,7vw,66px);font-weight:950;box-shadow:0 8px 16px rgba(0,0,0,.28)
}
.score-number-button.active{
    background:linear-gradient(180deg,#f5d763,#d4a921);
    transform:translateY(-2px);box-shadow:0 0 0 3px rgba(255,255,255,.28),0 10px 20px rgba(0,0,0,.3)
}
.score-main-windows{
    display:grid;grid-template-columns:1.65fr 1fr;gap:14px;margin:16px 0
}
.score-window{
    min-height:210px;border:3px solid var(--gold);border-radius:22px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    background:linear-gradient(180deg,#004922,#003517)
}
.score-window span{
    color:#e8b733;font-size:clamp(21px,3vw,31px);font-weight:950;text-align:center
}
.score-window strong{
    margin-top:8px;color:#fff;font-size:clamp(76px,13vw,118px);line-height:.9;font-weight:950
}
.score-window-points strong{font-size:clamp(64px,10vw,96px)}
.cumulative-strip-v23{margin-top:16px}
.cumulative-box-v23{
    min-height:120px;border:2px solid rgba(215,169,33,.65);
    background:linear-gradient(180deg,#0c582b,#08421f);
    display:flex;flex-direction:column;justify-content:center;align-items:center
}
.cumulative-box-v23 span{
    font-size:clamp(16px,2.4vw,22px);line-height:1.15;color:#fff
}
.cumulative-box-v23 strong{
    margin-top:10px;font-size:clamp(42px,7vw,66px);color:#fff;line-height:1
}

@media(max-width:600px){
    .score-number-row{gap:7px}
    .score-number-button{min-height:74px;border-radius:16px;font-size:36px}
    .score-main-windows{grid-template-columns:1.55fr 1fr}
    .score-window{min-height:175px}
}


/* ==================================================
   ALPHA 23.1 — HOME SCREEN ONLY
   Locked to approved visual reference.
================================================== */

#clubhouseScreen{
    background:#003018;
}

.home-shell-v231{
    min-height:100%;
    display:flex;
    flex-direction:column;
    background:#003018;
}

.home-hero-v231{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
    padding:20px 28px 16px;
    background:
        radial-gradient(circle at 50% 0%,rgba(18,98,48,.22),transparent 42%),
        linear-gradient(180deg,#002714 0%,#00391d 100%);
    border-bottom:4px solid #d9ab2a;
    box-shadow:0 6px 18px rgba(0,0,0,.22);
}

.home-logo-v231{
    width:108px;
    height:108px;
    border-radius:50%;
    border:4px solid #e0b739;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:60px;
    background:radial-gradient(circle,#3f8f38 0%,#0d5a27 52%,#063a1c 100%);
    box-shadow:
        inset 0 0 18px rgba(255,255,255,.16),
        0 8px 18px rgba(0,0,0,.28);
    flex:0 0 auto;
}

.home-title-wrap-v231{
    text-align:left;
}

.home-title-wrap-v231 h1{
    margin:0;
    color:#fff;
    font-size:clamp(42px,6vw,72px);
    line-height:.95;
    font-weight:950;
    letter-spacing:.035em;
    text-shadow:0 4px 6px rgba(0,0,0,.3);
}

.home-tagline-v231{
    margin-top:12px;
    color:#e6bf56;
    font-size:clamp(15px,2vw,22px);
    font-weight:800;
    letter-spacing:.08em;
}

.home-course-bg-v231{
    flex:1;
    position:relative;
    background:
        linear-gradient(rgba(255,255,255,.06),rgba(0,0,0,.05)),
        radial-gradient(circle at 52% 18%,rgba(114,182,90,.38),transparent 30%),
        linear-gradient(180deg,#75b8d8 0 20%,#78aa55 20% 60%,#507d2f 60% 100%);
    overflow:auto;
}

.home-course-bg-v231::before,
.home-course-bg-v231::after{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:72%;
    pointer-events:none;
}

.home-course-bg-v231::before{
    background:
        radial-gradient(ellipse at 12% 60%,#315f27 0 10%,transparent 11%),
        radial-gradient(ellipse at 88% 58%,#315f27 0 11%,transparent 12%),
        radial-gradient(ellipse at 0% 72%,#214e21 0 15%,transparent 16%),
        radial-gradient(ellipse at 100% 70%,#214e21 0 16%,transparent 17%);
    opacity:.9;
}

.home-course-bg-v231::after{
    background:
        linear-gradient(165deg,transparent 0 42%,rgba(212,199,120,.4) 43% 46%,transparent 47%),
        linear-gradient(195deg,transparent 0 45%,rgba(212,199,120,.32) 46% 49%,transparent 50%);
    opacity:.55;
}

.home-menu-v231{
    position:relative;
    z-index:2;
    max-width:1040px;
    width:100%;
    margin:0 auto;
    padding:34px 24px 42px;
}

.home-main-card-v231,
.home-sub-card-v231,
.home-courses-card-v231{
    border:3px solid #d2a72c;
    border-radius:24px;
    box-shadow:
        0 10px 24px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.65);
    cursor:pointer;
}

.home-main-card-v231{
    width:100%;
    min-height:160px;
    display:grid;
    grid-template-columns:230px 1fr auto;
    align-items:center;
    gap:22px;
    padding:20px 28px;
    background:linear-gradient(180deg,#fffdfa,#f5efe1);
    color:#063d1e;
    text-align:left;
}

.home-main-visual-v231{
    font-size:92px;
    display:flex;
    justify-content:center;
    align-items:center;
    filter:drop-shadow(0 8px 8px rgba(0,0,0,.15));
}

.home-main-copy-v231 strong{
    display:block;
    font-size:clamp(42px,5.5vw,66px);
    line-height:1;
    font-weight:950;
    letter-spacing:.02em;
}

.home-main-copy-v231 small{
    display:block;
    margin-top:12px;
    color:#555;
    font-size:clamp(17px,2.2vw,25px);
    font-weight:500;
}

.home-two-col-v231{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:20px;
}

.home-sub-card-v231{
    min-height:170px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:18px;
    align-items:center;
    padding:20px 24px;
    text-align:left;
}

.setup-card-v231{
    background:linear-gradient(145deg,#074a22,#02371a);
    color:#fff;
}

.players-card-v231{
    background:linear-gradient(180deg,#fffdfa,#f5efe1);
    color:#063d1e;
}

.home-icon-circle-v231{
    width:108px;
    height:108px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:58px;
    border:3px solid;
    flex:0 0 auto;
}

.gold-circle{
    border-color:#d6ab35;
    background:radial-gradient(circle,#0f5c2b,#063d1d);
}

.purple-circle{
    border-color:#8d6ab7;
    background:#f8f3e6;
}

.home-sub-copy-v231 strong{
    display:block;
    font-size:clamp(30px,4vw,48px);
    font-weight:950;
}

.home-sub-copy-v231 small{
    display:block;
    margin-top:8px;
    font-size:clamp(15px,2vw,22px);
    line-height:1.25;
    font-weight:500;
    opacity:.88;
}

.home-courses-card-v231{
    width:100%;
    min-height:138px;
    margin-top:20px;
    display:grid;
    grid-template-columns:220px 1fr auto;
    gap:20px;
    align-items:center;
    padding:18px 28px;
    background:linear-gradient(180deg,#fffdfa,#f5efe1);
    color:#063d1e;
    text-align:left;
}

.home-course-icon-v231{
    font-size:78px;
    display:flex;
    justify-content:center;
}

.home-courses-copy-v231 strong{
    display:block;
    font-size:clamp(34px,4.7vw,54px);
    font-weight:950;
}

.home-courses-copy-v231 small{
    display:block;
    margin-top:7px;
    color:#555;
    font-size:clamp(16px,2vw,22px);
}

.home-arrow-v231{
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:44px;
    line-height:1;
    font-weight:700;
    background:rgba(255,255,255,.18);
    border:3px solid currentColor;
}

.home-arrow-v231.gold{ color:#d2a62a; }
.home-arrow-v231.purple{ color:#6a3e9c; }
.home-arrow-v231.green{ color:#2f7e36; }

.home-footer-v231{
    min-height:70px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:10px 28px 12px;
    background:linear-gradient(180deg,#002c17,#00351b);
    border-top:3px solid #d9ab2a;
}

.home-footer-v231 span{
    border:2px solid #c8a13a;
    border-radius:16px;
    padding:10px 18px;
    color:#e8c664;
    font-size:18px;
    font-weight:850;
    background:rgba(0,0,0,.08);
}

@media(max-width:800px){
    .home-hero-v231{
        gap:14px;
        padding:16px 14px 14px;
    }

    .home-logo-v231{
        width:78px;
        height:78px;
        font-size:44px;
    }

    .home-title-wrap-v231 h1{
        font-size:clamp(34px,7vw,54px);
    }

    .home-tagline-v231{
        font-size:clamp(11px,2vw,16px);
    }

    .home-main-card-v231{
        grid-template-columns:120px 1fr auto;
        min-height:140px;
        padding:16px 18px;
    }

    .home-main-visual-v231{
        font-size:64px;
    }

    .home-two-col-v231{
        grid-template-columns:1fr;
    }

    .home-sub-card-v231{
        min-height:136px;
    }

    .home-icon-circle-v231{
        width:84px;
        height:84px;
        font-size:46px;
    }

    .home-courses-card-v231{
        grid-template-columns:120px 1fr auto;
    }

    .home-course-icon-v231{
        font-size:60px;
    }
}

@media(max-width:520px){
    .home-menu-v231{
        padding:22px 12px 30px;
    }

    .home-main-card-v231{
        grid-template-columns:90px 1fr auto;
        gap:10px;
        border-radius:18px;
    }

    .home-main-copy-v231 strong{
        font-size:32px;
    }

    .home-main-copy-v231 small{
        font-size:14px;
    }

    .home-sub-card-v231,
    .home-courses-card-v231{
        border-radius:18px;
        padding:14px;
    }

    .home-sub-copy-v231 strong{
        font-size:28px;
    }

    .home-sub-copy-v231 small{
        font-size:14px;
    }

    .home-courses-card-v231{
        grid-template-columns:82px 1fr auto;
    }

    .home-courses-copy-v231 strong{
        font-size:31px;
    }

    .home-courses-copy-v231 small{
        font-size:14px;
    }

    .home-arrow-v231{
        width:46px;
        height:46px;
        font-size:34px;
    }
}


/* ==================================================
   ALPHA 23.3 - FIELD TEST USABILITY UPDATE
================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
}
.app {
    max-width: 100vw;
    overflow-x: clip;
}
.screen {
    max-width: 100vw;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}
.hole-quick-actions { gap: 9px !important; margin: 10px 0 14px !important; }
.hole-quick-actions button { margin: 0 !important; }
.hole-jump-button { border-color: var(--gold) !important; }

.club-range-head,
.club-setup-row {
    display:grid;
    grid-template-columns:72px minmax(82px,1fr) minmax(82px,1fr) 28px;
    align-items:center;
    gap:8px;
}
.club-range-head {
    padding:0 2px 4px;
    text-align:center;
    font-size:.88rem;
    font-weight:900;
    color:#f1c84a;
}
.club-range-head span:first-child { text-align:left; }
.club-distance-input {
    width:100% !important;
    min-width:0;
    min-height:54px;
    padding:6px;
    text-align:center;
    font-size:1.35rem;
    font-weight:900;
}

.hole-jump-overlay {
    position:fixed; inset:0; z-index:10000;
    display:flex; align-items:center; justify-content:center;
    padding:20px; background:rgba(0,0,0,.78);
}
.hole-jump-card {
    width:min(560px,100%); max-height:90dvh; overflow-y:auto;
    padding:22px; border:3px solid var(--gold); border-radius:22px;
    background:#073314; box-shadow:0 18px 50px rgba(0,0,0,.55);
    text-align:center;
}
.hole-jump-card h2 { font-size:clamp(1.5rem,5vw,2rem); margin-bottom:8px; }
.hole-jump-card p { margin-bottom:16px; font-size:1rem; }
.hole-jump-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:9px; }
.hole-jump-number {
    min-height:58px; border:2px solid var(--gold); border-radius:12px;
    background:var(--off-white); color:var(--green-dark);
    font-size:1.35rem; font-weight:900;
}
.hole-jump-number.current { background:var(--gold); }
.hole-jump-number:disabled { opacity:.28; filter:grayscale(1); }
.hole-jump-cancel { margin-top:16px; min-height:62px !important; }
@media (max-width:420px){
    .hole-jump-grid{grid-template-columns:repeat(3,1fr);}
    .club-range-head,.club-setup-row{grid-template-columns:58px minmax(72px,1fr) minmax(72px,1fr) 24px;}
}


/* ==================================================
   ALPHA 23.4 - TEE TIME DIRECT ENTRY
================================================== */
.tee-time-compact-v234 { align-items: stretch; }
.tee-time-summary-window { width:100%; min-height:64px; display:flex; align-items:center; justify-content:center; box-sizing:border-box; border:2px solid #d7b137; border-radius:14px; background:rgba(0,0,0,.25); color:#fff; font-size:clamp(2rem,7vw,2.8rem); font-weight:900; letter-spacing:.05em; }
.tee-time-set-button { width:100%; min-height:58px; border:2px solid #d7b137; border-radius:14px; background:#123e2b; color:#fff; font-size:1.08rem; font-weight:900; cursor:pointer; }
.tee-time-entry-content { width:min(900px,100%); }
.tee-time-entry-card { width:100%; max-width:620px; margin:0 auto; padding:20px; border:3px solid #d7b137; border-radius:22px; background:rgba(4,37,15,.58); }
.tee-time-entry-label { text-align:center; font-size:1.15rem; font-weight:900; letter-spacing:.06em; }
.tee-time-entry-display { width:100%; min-height:86px; display:flex; align-items:center; justify-content:center; margin-top:14px; box-sizing:border-box; border:3px solid #d7b137; border-radius:16px; background:#0d2e21; color:#fff; font-size:clamp(2.35rem,10vw,4rem); font-weight:900; letter-spacing:.08em; }
.tee-time-entry-help { margin:10px 0 16px; text-align:center; font-size:.95rem; line-height:1.35; opacity:.9; }
.tee-time-keypad { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.tee-time-keypad button { min-height:68px; border:2px solid rgba(255,255,255,.5); border-radius:14px; background:#143a2d; color:#fff; font-size:1.8rem; font-weight:900; cursor:pointer; }
.tee-time-keypad .tee-time-key-clear { color:#ff6b5b; border-color:#b63232; }
.tee-time-keypad .tee-time-key-back { font-size:1.55rem; }
.tee-time-entry-status { min-height:28px; margin-top:10px; text-align:center; color:#ffd36a; font-weight:900; }
.tee-time-confirm-button { margin-top:8px; }
@media (max-width:480px) { .tee-time-entry-card { padding:16px; } .tee-time-keypad button { min-height:62px; } }


/* ==================================================
   ALPHA 23.5 - APPROVED NEW ROUND VISUAL REFINEMENT
   Presentation only: round setup logic remains unchanged.
================================================== */
#newRoundScreen .screen-content{max-width:760px;margin:0 auto;padding-bottom:34px}
#newRoundScreen .round-introduction{margin-bottom:18px}
#newRoundScreen .selection-button{background:linear-gradient(180deg,#fffdf5 0%,#f1eee4 100%);border:1px solid rgba(215,177,55,.45);box-shadow:0 7px 18px rgba(0,0,0,.18)}
#newRoundScreen .selection-button span:nth-child(2){color:#0b522c}
#newRoundScreen .round-length-panel,#newRoundScreen .round-options-panel{background:linear-gradient(180deg,rgba(31,104,58,.92),rgba(20,82,44,.96));border:1px solid rgba(255,255,255,.08);box-shadow:0 8px 20px rgba(0,0,0,.16)}
#newRoundScreen .round-length-buttons{gap:12px}
#newRoundScreen .round-length-buttons .choice-button{min-height:64px;border-radius:16px}
#newRoundScreen .round-length-buttons .choice-active{background:linear-gradient(180deg,#fffdf6,#f2eee2)!important;color:#0a4f2a!important;border:3px solid #d7b137!important;box-shadow:0 5px 13px rgba(0,0,0,.16)}
#newRoundScreen .round-option-field{padding:0!important}
#newRoundScreen .tee-time-compact-v235{display:block!important}
#newRoundScreen .tee-time-compact-v235>span{display:block;margin-bottom:10px;font-weight:900;letter-spacing:.06em}
#newRoundScreen .tee-time-row-v235{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
#newRoundScreen .tee-time-set-button,#newRoundScreen .tee-time-summary-window{width:100%;height:64px;min-height:64px;margin:0;box-sizing:border-box;border:2px solid #d7b137;border-radius:16px}
#newRoundScreen .tee-time-set-button{background:linear-gradient(180deg,#416d29 0%,#315c23 100%);color:#fff;font-size:1.08rem;box-shadow:inset 0 1px rgba(255,255,255,.12),0 5px 12px rgba(0,0,0,.16)}
#newRoundScreen .tee-time-summary-window{background:#123e2b;color:#fff;font-size:clamp(2rem,7vw,2.65rem)}
#newRoundScreen .tee-clock-v235{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-right:9px;border:2px solid #e0b735;border-radius:6px;color:#e0b735;font-size:0;vertical-align:middle}
#newRoundScreen .tee-clock-v235:after{content:'◷';font-size:23px;line-height:1}
#newRoundScreen .handicap-allowance-compact{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important;padding:14px 0!important}
#newRoundScreen .handicap-allowance-compact>span{flex:0 1 auto!important}
#newRoundScreen .handicap-allowance-compact input{flex:0 0 92px!important;width:92px!important;max-width:92px!important}
#newRoundScreen #btnReviewRound{background:linear-gradient(180deg,#8b9d42 0%,#748c32 100%);color:#083d23;border:2px solid rgba(215,177,55,.55);box-shadow:0 7px 18px rgba(0,0,0,.18)}
#newRoundScreen #btnReviewRound:not(:disabled){background:linear-gradient(180deg,#d7b137 0%,#b89122 100%);color:#073d22}
#newRoundScreen .start-banner-v235{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:58px!important;height:42px!important;overflow:hidden;border-radius:7px;background:linear-gradient(180deg,#050505 0%,#1a1a1a 42%,#444 44%,#111 48%,#050505 100%);color:#fff!important;font-size:14px!important;font-weight:1000!important;letter-spacing:.06em!important;text-shadow:0 1px 2px #000;box-shadow:inset 0 0 0 2px rgba(255,255,255,.18),0 2px 5px rgba(0,0,0,.3)}
#newRoundScreen .start-banner-v235:before,#newRoundScreen .start-banner-v235:after{content:'';position:absolute;left:0;right:0;height:2px;background:rgba(255,255,255,.65);box-shadow:0 5px rgba(255,255,255,.35),0 -5px rgba(255,255,255,.35)}
#newRoundScreen .start-banner-v235:before{top:6px}#newRoundScreen .start-banner-v235:after{bottom:6px}
#newRoundScreen .start-banner-v235{z-index:0}#newRoundScreen .start-banner-v235::first-line{z-index:2}
@media(max-width:480px){#newRoundScreen .tee-time-row-v235{gap:10px}#newRoundScreen .tee-time-set-button{font-size:.92rem}#newRoundScreen .start-banner-v235{width:52px!important}}

/* ==================================================
   ALPHA 23.5 - NEW ROUND SCREEN MATCHED TO APPROVED MOCKUP
   Visual-only replacement. Existing setup controls/IDs remain unchanged.
================================================== */
#newRoundScreen{
    background:
        radial-gradient(circle at 10% 34%, rgba(196,132,33,.28), transparent 26%),
        radial-gradient(circle at 86% 48%, rgba(13,82,43,.26), transparent 30%),
        linear-gradient(180deg,#07131c 0%,#081a20 46%,#07130f 100%) !important;
    color:#fff;
}
#newRoundScreen::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(90deg, rgba(7,19,28,.18), rgba(7,19,28,.48)),
        radial-gradient(ellipse at 18% 68%, rgba(182,128,37,.18), transparent 34%),
        radial-gradient(ellipse at 74% 70%, rgba(18,92,48,.17), transparent 35%);
}
#newRoundScreen .app-header{display:none!important;}
#newRoundScreen .screen-content{
    position:relative;
    z-index:1;
    width:min(940px,96vw)!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:28px 20px 34px!important;
}
#newRoundScreen .round-introduction{
    position:relative;
    margin:0 0 26px!important;
    text-align:center;
}
#newRoundScreen .round-introduction::before,
#newRoundScreen .round-introduction::after{
    content:"";
    position:absolute;
    top:34px;
    width:27%;
    height:1px;
    background:linear-gradient(90deg,transparent,#d7b137);
}
#newRoundScreen .round-introduction::before{left:4%;}
#newRoundScreen .round-introduction::after{right:4%;transform:scaleX(-1);}
#newRoundScreen .round-icon{
    margin:0 0 8px!important;
    font-size:62px!important;
    line-height:1!important;
    filter:sepia(1) saturate(1.7) hue-rotate(352deg) brightness(1.15);
}
#newRoundScreen .round-introduction h2{
    margin:0 0 6px!important;
    font-size:clamp(34px,5.2vw,62px)!important;
    line-height:1.05!important;
    letter-spacing:.01em!important;
    background:linear-gradient(180deg,#fff3b0 0%,#e4bd55 36%,#b98217 78%,#f2d579 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent!important;
    text-shadow:0 5px 13px rgba(0,0,0,.45);
}
#newRoundScreen .round-introduction p{
    margin:0!important;
    color:#f2eee6!important;
    font-size:clamp(16px,2.3vw,24px)!important;
    text-shadow:0 2px 4px rgba(0,0,0,.5);
}
#newRoundScreen .selection-button{
    min-height:104px!important;
    margin:0 0 14px!important;
    padding:16px 24px!important;
    grid-template-columns:86px 1fr 54px!important;
    border:1px solid rgba(204,161,57,.85)!important;
    border-radius:24px!important;
    background:linear-gradient(180deg,#fffdf7 0%,#f1eadb 100%)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.95)!important;
    color:#092f1f!important;
}
#newRoundScreen .selection-button span:first-child{
    font-size:54px!important;
    text-align:center!important;
}
#newRoundScreen .selection-button span:nth-child(2){
    color:#0a321f!important;
    font-size:clamp(25px,3.5vw,36px)!important;
    font-weight:900!important;
}
#newRoundScreen .selection-button span:last-child{
    color:#b68424!important;
    font-size:52px!important;
    text-shadow:0 1px 1px #fff;
}
#newRoundScreen .start-banner-v235{
    width:126px!important;
    height:40px!important;
    object-fit:cover!important;
    border-radius:7px!important;
    box-shadow:0 2px 6px rgba(0,0,0,.45)!important;
    background:#111!important;
}
#newRoundScreen .round-length-panel,
#newRoundScreen .round-options-panel{
    margin:14px 0 0!important;
    padding:17px 20px!important;
    border:1px solid rgba(203,162,62,.42)!important;
    border-radius:24px!important;
    background:linear-gradient(180deg,rgba(4,20,31,.97),rgba(4,15,23,.97))!important;
    box-shadow:0 12px 26px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
#newRoundScreen .round-length-title,
#newRoundScreen .round-option-field>span{
    color:#e0ab3b!important;
    font-size:clamp(18px,2.6vw,26px)!important;
    font-weight:900!important;
    letter-spacing:.03em!important;
    margin-bottom:12px!important;
}
#newRoundScreen .round-length-title::before{content:"▦";margin-right:10px;color:#e0ab3b;}
#newRoundScreen .round-length-buttons{gap:18px!important;}
#newRoundScreen .round-length-buttons .choice-button{
    min-height:76px!important;
    border:2px solid rgba(255,255,255,.28)!important;
    border-radius:17px!important;
    background:linear-gradient(180deg,#0f2230,#08141e)!important;
    color:#fff!important;
    font-size:clamp(22px,3vw,31px)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
#newRoundScreen .round-length-buttons .choice-active{
    border:2px solid #d7b137!important;
    background:linear-gradient(180deg,#146b34 0%,#074722 100%)!important;
    color:#fff!important;
    box-shadow:0 0 0 1px rgba(255,233,144,.22),0 0 16px rgba(215,177,55,.24),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
#newRoundScreen .round-options-panel{
    display:grid!important;
    gap:14px!important;
}
#newRoundScreen .tee-time-compact-v235{display:block!important;}
#newRoundScreen .tee-time-compact-v235>span::before{content:"◷";margin-right:10px;color:#e0ab3b;font-size:1.05em;}
#newRoundScreen .tee-time-row-v235{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:18px!important;
}
#newRoundScreen .tee-time-set-button,
#newRoundScreen .tee-time-summary-window{
    height:80px!important;
    min-height:80px!important;
    border:2px solid #d7b137!important;
    border-radius:17px!important;
    margin:0!important;
}
#newRoundScreen .tee-time-set-button{
    background:linear-gradient(180deg,#176f38 0%,#0a5128 100%)!important;
    color:#fff!important;
    font-size:clamp(18px,2.6vw,26px)!important;
    box-shadow:0 0 14px rgba(215,177,55,.12),inset 0 1px rgba(255,255,255,.15)!important;
}
#newRoundScreen .tee-time-summary-window{
    background:linear-gradient(180deg,#071823,#030c12)!important;
    color:#fff!important;
    font-size:clamp(2.2rem,6vw,3.4rem)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
#newRoundScreen .tee-clock-v235{border-color:#e0ab3b!important;color:#e0ab3b!important;}
#newRoundScreen .handicap-allowance-compact{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:18px!important;
    min-height:78px!important;
    margin-top:2px!important;
    padding:14px 18px!important;
    border:1px solid rgba(203,162,62,.28)!important;
    border-radius:20px!important;
    background:linear-gradient(180deg,#071823,#030d15)!important;
}
#newRoundScreen .handicap-allowance-compact>span{
    color:#e0ab3b!important;
    margin:0!important;
    font-size:clamp(17px,2.4vw,25px)!important;
    font-weight:900!important;
}
#newRoundScreen .handicap-allowance-compact>span::before{content:"♙";margin-right:10px;color:#e0ab3b;}
#newRoundScreen .handicap-allowance-compact input{
    width:112px!important;
    max-width:112px!important;
    min-height:64px!important;
    margin:0!important;
    border:2px solid #d7b137!important;
    border-radius:15px!important;
    background:#071823!important;
    color:#fff!important;
    text-align:center!important;
    font-size:clamp(28px,4vw,38px)!important;
    font-weight:900!important;
}
#newRoundScreen #btnReviewRound{
    min-height:100px!important;
    margin-top:18px!important;
    border:2px solid #d7b137!important;
    border-radius:23px!important;
    background:linear-gradient(180deg,#166c36 0%,#075126 100%)!important;
    color:#fff!important;
    font-size:clamp(24px,3.8vw,36px)!important;
    font-weight:900!important;
    box-shadow:0 0 0 1px rgba(255,235,160,.16),0 10px 24px rgba(0,0,0,.36)!important;
}
#newRoundScreen #btnReviewRound::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;margin-right:16px;border:3px solid #d7b137;border-radius:50%;color:#d7b137;font-size:34px;vertical-align:middle;}
#newRoundScreen #btnReviewRound:disabled{opacity:.55!important;filter:saturate(.7)!important;}
@media(max-width:620px){
    #newRoundScreen .screen-content{width:min(96vw,620px)!important;padding:20px 12px 26px!important;}
    #newRoundScreen .round-introduction::before,#newRoundScreen .round-introduction::after{width:21%;top:28px;}
    #newRoundScreen .round-icon{font-size:48px!important;}
    #newRoundScreen .selection-button{min-height:82px!important;grid-template-columns:74px 1fr 42px!important;padding:12px 16px!important;border-radius:18px!important;}
    #newRoundScreen .selection-button span:first-child{font-size:42px!important;}
    #newRoundScreen .selection-button span:last-child{font-size:42px!important;}
    #newRoundScreen .start-banner-v235{width:96px!important;height:32px!important;}
    #newRoundScreen .round-length-panel,#newRoundScreen .round-options-panel{padding:14px!important;border-radius:18px!important;}
    #newRoundScreen .round-length-buttons{gap:10px!important;}
    #newRoundScreen .round-length-buttons .choice-button{min-height:62px!important;}
    #newRoundScreen .tee-time-row-v235{gap:10px!important;}
    #newRoundScreen .tee-time-set-button,#newRoundScreen .tee-time-summary-window{height:68px!important;min-height:68px!important;}
    #newRoundScreen .handicap-allowance-compact{min-height:68px!important;padding:10px 12px!important;gap:10px!important;}
    #newRoundScreen .handicap-allowance-compact input{width:88px!important;max-width:88px!important;min-height:58px!important;}
    #newRoundScreen #btnReviewRound{min-height:82px!important;margin-top:14px!important;}
    #newRoundScreen #btnReviewRound::before{width:42px;height:42px;font-size:27px;margin-right:10px;}
}


/* ==================================================
   ALPHA 24 - 10+ STROKE ENTRY OVERLAY
================================================== */
.score-number-extended{
    letter-spacing:-.04em;
}
.stroke-entry-overlay{
    position:fixed;
    inset:0;
    z-index:100000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(3px);
}
.stroke-entry-overlay.hidden{display:none!important;}
.stroke-entry-card{
    width:min(92vw,440px);
    padding:24px;
    border:3px solid #d7b137;
    border-radius:24px;
    background:linear-gradient(180deg,#0b4229 0%,#052819 100%);
    color:#fff;
    text-align:center;
    box-shadow:0 22px 60px rgba(0,0,0,.55);
}
.stroke-entry-card h2{
    margin:0 0 14px;
    color:#f4c13d;
    font-size:clamp(28px,6vw,38px);
    letter-spacing:.04em;
}
.stroke-entry-display{
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:8px;
    border:3px solid #d7b137;
    border-radius:18px;
    background:#f6f3ea;
    color:#073314;
    font-size:clamp(48px,12vw,72px);
    font-weight:1000;
    line-height:1;
}
.stroke-entry-help{
    margin-bottom:14px;
    font-size:17px;
    opacity:.88;
}
.stroke-entry-keypad{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}
.stroke-entry-keypad button{
    min-height:68px;
    border:2px solid #d7b137;
    border-radius:14px;
    background:#f6f3ea;
    color:#073314;
    font-size:32px;
    font-weight:1000;
    cursor:pointer;
}
.stroke-entry-keypad button:active{transform:scale(.97);}
.stroke-entry-keypad .stroke-entry-clear{color:#b63232;}
.stroke-entry-keypad .stroke-entry-backspace{font-size:28px;}
.stroke-entry-status{
    min-height:24px;
    margin-top:10px;
    color:#ffd35b;
    font-size:15px;
    font-weight:900;
}
.stroke-entry-confirm{margin-top:8px!important;}
.stroke-entry-cancel{margin-top:10px!important;min-height:64px!important;}


/* ==================================================
   ALPHA 25.4 - IN-ROUND GOLF OFFICE MESSAGING
================================================== */

.hole-message-panel {
    margin-top: 26px;
    padding: 22px 24px;
    border: 4px solid var(--gold);
    border-radius: 20px;
    background: #3b176b;
    color: #ffffff;
    box-shadow: 0 10px 22px var(--shadow);
}

.hole-message-heading {
    margin-bottom: 10px;
    text-align: center;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 900;
    letter-spacing: 1px;
}

.hole-message-subject {
    margin-bottom: 8px;
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 900;
}

.hole-message-text {
    font-size: clamp(18px, 2.7vw, 24px);
    line-height: 1.35;
    white-space: pre-wrap;
}

.message-confirm-button {
    width: 100%;
    min-height: 64px;
    margin-top: 18px;
    padding: 14px 18px;
    border: 3px solid #ffffff;
    border-radius: 14px;
    background: #d98200;
    color: #ffffff;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 1000;
    letter-spacing: .4px;
    cursor: pointer;
}

.message-confirm-button:active {
    transform: scale(.985);
}

#btnNextScoringHole.gc-message-locked,
#btnNextScoringHole:disabled.gc-message-locked {
    opacity: .42;
    cursor: not-allowed;
    filter: grayscale(.55);
}


/* ============================================================
   ALPHA 26 - OFFICIAL GCM COMPETITION ENTRY
   Isolated from the existing manual/private competition workflow.
   ============================================================ */

.home-competition-card-v26{
    background:linear-gradient(145deg,#5b2487,#351052 68%,#250a3c);
    color:#ffffff;
    border:4px solid #d4af37;
    box-shadow:
        0 12px 28px rgba(34,7,54,.48),
        inset 0 1px 0 rgba(255,255,255,.28);
}

.home-competition-card-v26:hover{
    filter:brightness(1.06);
}

.home-competition-visual-v26{
    color:#f3cf58;
}

.home-competition-copy-v26 strong{
    color:#ffffff;
}

.home-competition-copy-v26 small{
    color:#f1e7f8;
}

.home-new-round-v26{
    margin-top:20px;
}

.home-arrow-v231.competition-gold-v26{
    color:#f0c94e;
    background:rgba(255,255,255,.10);
}

.competition-header-v26{
    background:linear-gradient(145deg,#421566,#28103f);
}

.competition-entry-content-v26,
.competition-review-content-v26{
    max-width:820px;
}

.competition-entry-card-v26,
.competition-review-card-v26{
    border:3px solid #d4af37;
    border-radius:22px;
    padding:28px;
    background:linear-gradient(160deg,rgba(73,29,108,.96),rgba(32,12,50,.97));
    box-shadow:0 14px 30px rgba(0,0,0,.38);
}

.competition-entry-card-v26{
    text-align:center;
}

.competition-badge-v26{
    font-size:72px;
    margin-bottom:8px;
}

.competition-entry-card-v26 h2{
    color:#f1c84a;
    font-size:clamp(26px,5vw,42px);
    margin-bottom:12px;
}

.competition-entry-card-v26 p{
    max-width:650px;
    margin:0 auto 24px;
    font-size:clamp(16px,3vw,22px);
    line-height:1.4;
    color:#f4eef8;
}

.competition-entry-card-v26 label{
    display:block;
    text-align:left;
    margin:0 0 8px;
    color:#f1c84a;
    font-size:18px;
    font-weight:900;
}

.competition-code-input-v26{
    width:100%;
    min-height:66px;
    border:3px solid #d4af37;
    border-radius:14px;
    padding:10px 14px;
    background:#ffffff;
    color:#2f0d48;
    text-align:center;
    font-size:clamp(25px,5vw,38px);
    font-weight:950;
    letter-spacing:.08em;
    outline:none;
}

#competitionCodeEntryInput{
    text-transform:uppercase;
}

.competition-code-input-v26:focus{
    box-shadow:0 0 0 4px rgba(212,175,55,.28);
}

/* Alpha 27.5 - in-app competition QR scanner */
.competition-qr-button-v275{
    display:block;
    width:min(100%,440px);
    min-height:46px;
    margin:12px auto 0;
    border:2px solid #d4af37;
    border-radius:11px;
    padding:9px 14px;
    background:#31506a;
    color:#ffffff;
    font-size:clamp(14px,2.5vw,18px);
    font-weight:900;
    cursor:pointer;
}

.competition-qr-button-v275:active{
    transform:translateY(1px);
}

.competition-qr-overlay-v275{
    position:fixed;
    inset:0;
    z-index:5000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(0,0,0,.88);
}

.competition-qr-overlay-v275.hidden{
    display:none;
}

.competition-qr-card-v275{
    width:min(620px,96vw);
    border:3px solid #d4af37;
    border-radius:20px;
    padding:18px;
    background:linear-gradient(160deg,#491d6c,#200c32);
    color:#ffffff;
    text-align:center;
    box-shadow:0 18px 40px rgba(0,0,0,.5);
}

.competition-qr-card-v275 h2{
    margin:0 0 8px;
    color:#f1c84a;
    font-size:clamp(23px,4vw,34px);
}

.competition-qr-card-v275 p{
    margin:0 0 14px;
    color:#f4eef8;
    font-size:16px;
}

.competition-qr-video-wrap-v275{
    position:relative;
    overflow:hidden;
    width:100%;
    aspect-ratio:4/3;
    border:2px solid rgba(255,255,255,.45);
    border-radius:14px;
    background:#000000;
}

#competitionQrVideo{
    width:100%;
    height:100%;
    object-fit:cover;
}

.competition-qr-target-v275{
    position:absolute;
    left:50%;
    top:50%;
    width:min(68%,320px);
    aspect-ratio:1/1;
    transform:translate(-50%,-50%);
    border:4px solid #f1c84a;
    border-radius:18px;
    box-shadow:0 0 0 999px rgba(0,0,0,.18);
    pointer-events:none;
}

.competition-qr-status-v275{
    min-height:24px;
    margin-top:12px;
    color:#f6d65f;
    font-size:15px;
    font-weight:900;
}

.competition-qr-cancel-v275{
    width:100%;
    min-height:50px;
    margin-top:12px;
    border:2px solid #d4af37;
    border-radius:11px;
    background:#6d2525;
    color:#ffffff;
    font-size:17px;
    font-weight:950;
    cursor:pointer;
}

.competition-primary-button-v26,
.competition-start-button-v26{
    width:100%;
    min-height:66px;
    margin-top:22px;
    border:3px solid #d4af37;
    border-radius:14px;
    background:#1f6f3a;
    color:#ffffff;
    font-size:clamp(20px,4vw,30px);
    font-weight:950;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(0,0,0,.28);
}

.competition-primary-button-v26:disabled,
.competition-start-button-v26:disabled{
    opacity:.55;
    cursor:default;
}

.competition-status-v26{
    min-height:30px;
    margin-top:14px;
    color:#f6d65f;
    font-size:16px;
    font-weight:850;
    line-height:1.35;
    text-align:center;
}

.competition-review-title-v26{
    color:#f1c84a;
    text-align:center;
    font-size:clamp(28px,5vw,44px);
    font-weight:950;
}

.competition-review-code-v26{
    margin-top:6px;
    text-align:center;
    color:#ffffff;
    font-size:18px;
    font-weight:850;
    letter-spacing:.08em;
}

.competition-detail-grid-v26{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:22px;
}

.competition-detail-v26{
    min-height:82px;
    border:1px solid rgba(212,175,55,.65);
    border-radius:12px;
    padding:12px 14px;
    background:rgba(0,0,0,.20);
}

.competition-detail-v26 span{
    display:block;
    color:#d7c6e4;
    font-size:13px;
    font-weight:850;
}

.competition-detail-v26 strong{
    display:block;
    margin-top:5px;
    color:#ffffff;
    font-size:20px;
    font-weight:950;
}

.competition-fourball-title-v26{
    margin-top:24px;
    color:#f1c84a;
    font-size:22px;
    font-weight:950;
    text-align:center;
}

.competition-fourball-v26{
    margin-top:10px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.competition-player-row-v26{
    display:grid;
    grid-template-columns:48px 1fr auto;
    gap:12px;
    align-items:center;
    border:1px solid rgba(212,175,55,.55);
    border-radius:12px;
    padding:12px 14px;
    background:rgba(255,255,255,.06);
}

.competition-player-slot-v26{
    width:42px;
    height:42px;
    border:2px solid #d4af37;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#f1c84a;
    font-weight:950;
}

.competition-player-name-v26{
    font-size:20px;
    font-weight:950;
    color:#ffffff;
}

.competition-player-meta-v26{
    text-align:right;
    color:#f0e7f5;
    font-weight:850;
    white-space:nowrap;
}

.competition-rules-v26{
    margin-top:18px;
    border:1px solid rgba(212,175,55,.65);
    border-radius:12px;
    padding:14px;
    background:rgba(0,0,0,.18);
    color:#ffffff;
    line-height:1.4;
}

.competition-rules-v26 strong{
    display:block;
    margin-bottom:6px;
    color:#f1c84a;
}

@media(max-width:620px){
    .competition-entry-card-v26,
    .competition-review-card-v26{
        padding:18px 14px;
        border-radius:17px;
    }

    .competition-detail-grid-v26{
        grid-template-columns:1fr;
    }

    .competition-player-row-v26{
        grid-template-columns:44px 1fr;
    }

    .competition-player-meta-v26{
        grid-column:2;
        text-align:left;
        white-space:normal;
        font-size:14px;
    }
}


/* ==================================================
   ALPHA 27 - AMERICAN SCRAMBLE DRIVE
================================================== */
.american-drive-panel{
    margin:14px 0 18px;
    padding:16px;
    border:2px solid var(--gold);
    border-radius:14px;
    background:#0a2f18;
}
.american-drive-heading{
    font-size:17px;
    font-weight:900;
    color:var(--gold);
    text-align:center;
}
.american-drive-subtitle{
    margin-top:5px;
    font-size:12px;
    font-weight:800;
    color:#d8e6dc;
    text-align:center;
}
.american-drive-buttons{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}
.american-drive-button{
    min-height:62px;
    border:2px solid #557d61;
    border-radius:10px;
    background:#103b20;
    color:#fff;
    padding:10px 12px;
    text-align:left;
    cursor:pointer;
}
.american-drive-button strong{
    display:block;
    font-size:14px;
}
.american-drive-button span{
    display:block;
    margin-top:5px;
    font-size:11px;
    font-weight:800;
    color:#d8e6dc;
}
.american-drive-button.active{
    border-color:var(--gold);
    background:#1b5a2e;
    box-shadow:0 0 0 2px rgba(226,184,62,.18) inset;
}
.american-drive-status{
    margin-top:12px;
    padding:9px 10px;
    border-radius:9px;
    background:#071d10;
    color:#fff;
    font-size:12px;
    font-weight:800;
    text-align:center;
}
.american-drive-status strong{color:var(--gold)}
@media(max-width:620px){
    .american-drive-buttons{grid-template-columns:1fr}
}


/* ==================================================
   ALPHA 29 - CLEAR PLAYER + MARKER SCORECARD ACCEPTANCE
   Each person is shown beside their own confirmation button.
================================================== */
.scorecard-acceptance-panel{
    margin:18px 0 16px;
    padding:18px;
    border:2px solid var(--gold);
    border-radius:18px;
    background:linear-gradient(180deg,rgba(9,38,50,.98),rgba(4,22,31,.98));
    box-shadow:0 12px 28px rgba(0,0,0,.28);
}
.scorecard-acceptance-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:8px;
}
.scorecard-acceptance-heading h2{
    margin:2px 0 0;
    color:#fff;
    font-size:20px;
    letter-spacing:.35px;
}
.scorecard-acceptance-kicker{
    color:var(--gold);
    font-size:12px;
    font-weight:900;
    letter-spacing:1px;
}
.scorecard-acceptance-lock{
    min-width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--gold);
    border-radius:12px;
    background:#07151d;
    font-size:22px;
}
.scorecard-acceptance-help{
    margin:0 0 14px;
    color:var(--muted);
    line-height:1.45;
}
.scorecard-confirm-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(180px,.72fr);
    gap:12px;
    align-items:stretch;
    margin-top:12px;
}
.scorecard-confirm-person{
    min-width:0;
    padding:11px 13px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:12px;
    background:#07151d;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.scorecard-confirm-person span,
.scorecard-marker-label{
    display:block;
    color:var(--gold);
    font-size:11px;
    font-weight:900;
    letter-spacing:.8px;
    margin-bottom:5px;
}
.scorecard-confirm-person strong{
    display:block;
    color:#fff;
    font-size:17px;
    line-height:1.2;
}
.marker-person{padding:9px 11px;}
.scorecard-marker-label{margin:0 0 4px;}
.scorecard-marker-select{
    width:100%;
    min-height:40px;
    margin:0;
    border:1px solid var(--gold);
    border-radius:9px;
    background:#07151d;
    color:#fff;
    padding:0 9px;
    font-size:14px;
    font-weight:800;
}
.scorecard-marker-select:disabled{
    opacity:.42;
    cursor:not-allowed;
}
.scorecard-confirm-button{
    width:100%;
    min-height:58px;
    border-radius:13px;
    border:3px solid #6d2d91;
    background:#b51f2e;
    color:#fff;
    font-weight:950;
    font-size:15px;
    line-height:1.15;
    letter-spacing:.2px;
    padding:10px 12px;
    cursor:pointer;
    box-shadow:0 6px 14px rgba(0,0,0,.25);
}
.scorecard-confirm-button.player-confirm,
.scorecard-confirm-button.marker-confirm{
    background:#b51f2e;
    color:#fff;
    border-color:#6d2d91;
}
.scorecard-confirm-button:disabled{
    opacity:.42;
    cursor:not-allowed;
}
.scorecard-confirm-button.confirmed,
.scorecard-confirm-button.confirmed:disabled{
    background:#17633a;
    border-color:#6d2d91;
    color:#fff;
    opacity:1;
}
.scorecard-acceptance-status{
    margin-top:12px;
    padding:7px 10px;
    border-radius:9px;
    background:#07151d;
    border:1px solid rgba(255,255,255,.14);
    color:#f6dfac;
    font-size:12px;
    font-weight:900;
    line-height:1.3;
    text-align:center;
}
.scorecard-acceptance-status.accepted{
    border-color:#58d58a;
    color:#d8ffe7;
}
.scorecard-acceptance-status.pending-sync{
    border-color:#e6a52a;
    color:#ffe0a0;
}
.results-return-button:disabled{
    opacity:.42;
    cursor:not-allowed;
}
@media(max-width:600px){
    .scorecard-acceptance-panel{padding:14px;}
    .scorecard-acceptance-heading h2{font-size:18px;}
    .scorecard-confirm-row{grid-template-columns:minmax(0,1fr) 165px;gap:8px;}
    .scorecard-confirm-person{padding:9px 10px;}
    .scorecard-confirm-person strong{font-size:15px;}
    .scorecard-marker-select{font-size:12px;padding:0 6px;}
    .scorecard-confirm-button{font-size:13px;padding:8px;min-height:54px;}
}


/* ==================================================
   ALPHA 27.13 - SCORE CHECK REQUIRED
   Reuses the existing purple attention panel.
================================================== */

.hole-message-panel.score-check-active .hole-message-subject,
.hole-message-panel.score-check-active .hole-message-text {
    color: #ff4b4b;
}

.hole-message-panel.score-check-active .hole-message-subject {
    font-weight: 1000;
}

.hole-message-panel.score-check-active .hole-message-text {
    font-weight: 900;
}

/* ==================================================
   ALPHA 27.13.2 - MOBILE SCREEN ISOLATION
   Prevent iPhone/PWA from exposing the previous screen at the edge.
================================================== */
html,body,.app{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
    overscroll-behavior-x:none !important;
}
.screen{
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
    transition:none !important;
}
.screen-left,.screen-right{
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translate3d(0,0,0) !important;
}
.screen-active{
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translate3d(0,0,0) !important;
}


/* ALPHA 27.13.4 - OFFICIAL COMPETITION HNA HANDICAP CONFIRMATION */
.competition-player-handicap-row-v27134{
    align-items:center;
    gap:12px;
}
.competition-player-handicap-row-v27134 .competition-player-name-v26{
    min-width:0;
}
.competition-gcm-hcp-v27134{
    margin-top:4px;
    font-size:12px;
    line-height:1.25;
    opacity:.78;
    font-weight:700;
}
.competition-hna-owner-v27134{
    display:inline-block;
    margin-left:6px;
    padding:2px 6px;
    border:1px solid var(--gold);
    border-radius:999px;
    color:var(--gold);
    font-size:10px;
    line-height:1.2;
    vertical-align:middle;
}
.competition-hcp-edit-v27134{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
    min-width:112px;
}
.competition-hcp-edit-v27134 label{
    font-size:9px;
    letter-spacing:.04em;
    opacity:.78;
    white-space:nowrap;
}
.competition-hna-handicap-input-v27134{
    width:96px;
    max-width:100%;
    border:2px solid var(--gold);
    border-radius:9px;
    background:#07151d;
    color:#fff;
    padding:8px 9px;
    font-size:20px;
    font-weight:900;
    text-align:center;
}
.competition-hna-handicap-input-v27134:focus{
    outline:2px solid rgba(226,184,62,.35);
    outline-offset:2px;
}
.competition-hcp-edit-v27134 small{
    font-size:10px;
    white-space:nowrap;
    opacity:.9;
}
.competition-hcp-edit-v27134 small strong{
    color:var(--gold);
    font-size:13px;
}
#btnStartOfficialCompetition:disabled{
    opacity:.45;
    cursor:not-allowed;
}
@media(max-width:620px){
    .competition-player-handicap-row-v27134{
        gap:8px;
    }
    .competition-hcp-edit-v27134{
        grid-column:2;
        align-items:flex-start;
        min-width:0;
        width:100%;
    }
    .competition-hna-handicap-input-v27134{
        width:100px;
        font-size:18px;
    }
    .competition-gcm-hcp-v27134{
        font-size:11px;
    }
}

/* ALPHA 28 - CURRENT HNA HANDICAP CONFIRMATION + CACHE ISOLATION */


/* ==================================================
   ALPHA 28.1 - QR INSTALL ASSISTANT
================================================== */
.gc-install-overlay-v281{
    position:fixed;
    inset:0;
    z-index:20000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(2,12,16,.94);
    overflow-y:auto;
}
.gc-install-overlay-v281.hidden,
.gc-install-device-v281.hidden{
    display:none !important;
}
.gc-install-card-v281{
    width:min(520px,100%);
    padding:26px 22px 22px;
    border:2px solid var(--gold);
    border-radius:18px;
    background:#07151d;
    color:#fff;
    text-align:center;
    box-shadow:0 18px 55px rgba(0,0,0,.5);
}
.gc-install-logo-v281{
    width:76px;
    height:76px;
    margin:0 auto 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid var(--gold);
    border-radius:50%;
    background:#123d28;
    font-size:40px;
}
.gc-install-card-v281 h2{
    margin:0 0 12px;
    color:var(--gold);
    font-size:27px;
    line-height:1.08;
}
.gc-install-device-v281 p{
    margin:0 0 18px;
    color:#fff;
    font-size:16px;
    line-height:1.4;
}
.gc-install-primary-v281,
.gc-install-secondary-v281{
    width:100%;
    border-radius:11px;
    padding:14px 16px;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
}
.gc-install-primary-v281{
    border:2px solid var(--gold);
    background:#4B1F6F;
    color:#fff;
}
.gc-install-primary-v281:disabled{
    opacity:.55;
    cursor:wait;
}
.gc-install-secondary-v281{
    margin-top:16px;
    border:1px solid #58707a;
    background:#0f3040;
    color:#fff;
}
.gc-install-status-v281{
    margin-top:12px;
    color:#b7cad2;
    font-size:13px;
    line-height:1.4;
}
.gc-install-steps-v281{
    display:grid;
    gap:10px;
    margin:4px 0 12px;
    text-align:left;
}
.gc-install-steps-v281 div{
    display:grid;
    grid-template-columns:36px 1fr;
    align-items:center;
    gap:10px;
    padding:11px 12px;
    border:1px solid #2d4d59;
    border-radius:10px;
    background:#0b2430;
}
.gc-install-steps-v281 strong{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#123d28;
    color:var(--gold);
    font-size:16px;
}
.gc-install-steps-v281 span{
    font-size:15px;
    line-height:1.25;
}
@media(max-width:520px){
    .gc-install-card-v281{
        padding:22px 16px 18px;
    }
    .gc-install-card-v281 h2{
        font-size:23px;
    }
    .gc-install-logo-v281{
        width:66px;
        height:66px;
        font-size:34px;
    }
}


/* ==================================================
   ALPHA 28.5 - SCORE CHECK SCROLL LOCK
   Keep SCORE CHECK REQUIRED fixed in view until acknowledged/resolved.
================================================== */
#scoringScreen.gc-score-check-scroll-locked {
    overflow-y: hidden !important;
    overscroll-behavior-y: none !important;
    -webkit-overflow-scrolling: auto !important;
}


/* ==================================================
   ALPHA 28.10 - OFFICIAL COMPETITION TEE CORRECTION
   Allow each golfer's tee to be confirmed beside the player name.
================================================== */
.competition-player-name-line-v2810{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.competition-player-name-line-v2810 > span{
    min-width:0;
}
.competition-tee-picker-v2810{
    display:inline-flex;
    align-items:center;
    gap:5px;
    margin-left:4px;
}
.competition-tee-picker-v2810 > span{
    color:var(--gold);
    font-size:9px;
    font-weight:900;
    letter-spacing:.04em;
}
.competition-tee-select-v2810{
    width:auto;
    min-width:108px;
    border:1px solid var(--gold);
    border-radius:7px;
    background:#07151d;
    color:#fff;
    padding:5px 7px;
    font-size:11px;
    font-weight:900;
}
.competition-tee-select-v2810:focus{
    outline:2px solid rgba(226,184,62,.35);
    outline-offset:2px;
}
@media(max-width:620px){
    .competition-player-name-line-v2810{
        align-items:flex-start;
        gap:6px;
    }
    .competition-tee-picker-v2810{
        margin-left:0;
    }
    .competition-tee-select-v2810{
        min-width:104px;
        font-size:10px;
    }
}

/* ==================================================
   ALPHA 28.12 - PLAYER-CHOSEN BETTERBALL TEAMS
================================================== */
.competition-team-picker-v2812{
    margin-top:18px;
    border:2px solid rgba(212,175,55,.85);
    border-radius:12px;
    padding:14px;
    background:rgba(0,0,0,.22);
}

.competition-team-picker-title-v2812{
    color:#f1c84a;
    font-size:22px;
    font-weight:950;
    text-align:center;
}

.competition-team-picker-note-v2812{
    margin-top:6px;
    color:#ffffff;
    font-size:15px;
    font-weight:800;
    line-height:1.35;
    text-align:center;
}

.competition-team-picker-grid-v2812{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:12px;
}

.competition-team-picker-choice-v2812{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:58px;
    padding:10px 12px;
    border:1px solid rgba(212,175,55,.55);
    border-radius:10px;
    background:rgba(255,255,255,.06);
    color:#ffffff;
    cursor:pointer;
}

.competition-team-picker-choice-v2812 input{
    width:24px;
    height:24px;
    flex:0 0 24px;
    accent-color:#2f8f46;
}

.competition-team-picker-choice-v2812 input:disabled{
    opacity:.45;
}

.competition-team-picker-choice-v2812 b{
    display:block;
    font-size:16px;
    line-height:1.2;
}

.competition-team-picker-choice-v2812 small{
    display:block;
    margin-top:3px;
    color:#d7c6e4;
    font-size:13px;
    font-weight:850;
}

.competition-team-picker-summary-v2812{
    margin-top:12px;
    padding:10px 12px;
    border-radius:9px;
    background:rgba(255,255,255,.06);
    color:#ffffff;
    font-size:15px;
    font-weight:850;
    line-height:1.45;
}

.competition-team-picker-summary-v2812 strong{
    color:#f1c84a;
}

.competition-betterball-team-v2812 + .competition-betterball-team-v2812{
    margin-top:12px;
}

.competition-betterball-team-v2812 small{
    display:block;
    margin-top:3px;
    color:#ffffff;
    font-size:14px;
    font-weight:850;
}

@media(max-width:620px){
    .competition-team-picker-grid-v2812{
        grid-template-columns:1fr;
    }
}


/* ==================================================
   ALPHA 28.13 - BETTERBALL LIVE TEAM CARD IDENTITY
   Bird name first, player names second, then THRU and TEAM TOTAL.
================================================== */
.live-team-identity-v2813{
    min-width:0;
}
.live-team-bird-v2813{
    margin-bottom:6px;
    color:var(--gold);
    font-size:clamp(19px,2.5vw,26px);
    font-weight:900;
    text-transform:uppercase;
}
.live-betterball-team-card-v2813 .live-team-name{
    font-size:clamp(21px,2.8vw,29px);
}
@media (max-width:600px){
    .live-team-identity-v2813{
        grid-column:1 / -1;
        text-align:center;
    }
}

/* ==================================================
   ALPHA 29.6 - GC GUEST REGISTRATION
================================================== */
.competition-guest-row-v296{
    align-items:start;
}
.competition-guest-register-v296{
    grid-column:2 / -1;
    min-width:0;
}
.competition-guest-head-v296{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}
.competition-guest-head-v296 strong{
    display:block;
    color:#fff;
    font-size:20px;
    font-weight:950;
}
.competition-guest-head-v296 small{
    display:block;
    margin-top:4px;
    color:#d8cfe2;
    font-size:11px;
    font-weight:850;
}
.competition-guest-fields-v296{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-top:12px;
}
.competition-guest-fields-v296 label{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-width:0;
}
.competition-guest-fields-v296 label > span{
    color:#f1c84a;
    font-size:9px;
    font-weight:950;
    letter-spacing:.04em;
}
.competition-guest-fields-v296 input{
    width:100%;
    min-width:0;
    border:1px solid var(--gold);
    border-radius:8px;
    background:#07151d;
    color:#fff;
    padding:9px 10px;
    font-size:15px;
    font-weight:850;
}
.competition-guest-fields-v296 input:focus{
    outline:2px solid rgba(226,184,62,.35);
    outline-offset:2px;
}
.competition-guest-fields-v296 input:disabled{
    opacity:.65;
}
.competition-guest-actions-v296{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:10px;
}
.competition-guest-help-v296{
    color:#d8cfe2;
    font-size:11px;
    font-weight:850;
}
.competition-register-guest-v296{
    border:2px solid var(--gold);
    border-radius:9px;
    background:#4B1F6F;
    color:#fff;
    padding:9px 14px;
    font-size:13px;
    font-weight:950;
    cursor:pointer;
}
.competition-register-guest-v296:disabled{
    opacity:.5;
    cursor:not-allowed;
}
@media(max-width:760px){
    .competition-guest-fields-v296{
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width:520px){
    .competition-guest-register-v296{
        grid-column:2;
    }
    .competition-guest-fields-v296{
        grid-template-columns:1fr;
    }
    .competition-guest-actions-v296{
        align-items:stretch;
        flex-direction:column;
    }
    .competition-register-guest-v296{
        width:100%;
        min-height:44px;
    }
}
.competition-visitor-badge-v296{
    display:inline-block;
    margin-left:6px;
    padding:2px 6px;
    border:1px solid #d4af37;
    border-radius:999px;
    color:#f1c84a;
    font-size:10px;
    line-height:1.2;
    vertical-align:middle;
}


/* ============================================================
   ALPHA 29.7 - ONLINE / OFFLINE COURSE LIBRARY
   ============================================================ */

.online-course-library-button {
    background: linear-gradient(180deg, #fffdf7, var(--off-white));
}

.online-course-library-status {
    margin-bottom: 22px;
    padding: 18px 22px;
    border: 3px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    background: rgba(4,37,15,0.46);
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
}

.online-course-list {
    display: grid;
    gap: 20px;
}

.online-course-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 22px;
    background: var(--off-white);
    color: var(--green-main);
    box-shadow: 0 10px 22px var(--shadow);
}

.online-course-title {
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
}

.online-course-meta,
.online-course-version {
    margin-top: 5px;
    font-size: clamp(17px, 2.4vw, 21px);
    font-weight: 700;
    opacity: 0.82;
}

.online-course-actions {
    display: grid;
    gap: 10px;
    min-width: 180px;
}

.online-course-download,
.online-course-remove {
    min-height: 58px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 3px solid var(--gold);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.online-course-download {
    background: var(--green-main);
    color: #fff;
}

.online-course-download:disabled {
    background: #31506a;
    color: #fff;
    opacity: 0.82;
    cursor: default;
}

.online-course-remove {
    background: #8b1e1e;
    color: #fff;
}

@media (max-width: 650px) {
    .online-course-card {
        grid-template-columns: 1fr;
    }

    .online-course-actions {
        min-width: 0;
        grid-template-columns: 1fr 1fr;
    }

    .online-course-actions .online-course-download:only-child {
        grid-column: 1 / -1;
    }
}

.tee-grid.single-tee-grid { grid-template-columns: 1fr; }


/* ==================================================
   ALPHA 29.10 - ALLIANCE LIVE SUMMARY STRIP
   Compact four-column strip: format, THRU, hole points, team total.
================================================== */
.live-alliance-summary-v2910{
    grid-template-columns:minmax(0,1.8fr) minmax(0,.58fr) minmax(0,.9fr) minmax(0,1fr);
    gap:0;
    padding:10px 12px;
    border-width:2px;
    border-radius:12px;
}
.live-alliance-summary-v2910 .live-team-name{
    min-width:0;
    padding-right:10px;
    font-size:clamp(15px,2.4vw,24px);
    line-height:1.08;
    white-space:nowrap;
}
.alliance-summary-stat-v2910{
    min-width:0;
    padding:0 8px;
    border-left:2px solid var(--gold);
    text-align:center;
}
.alliance-summary-stat-v2910 span{
    display:block;
    margin-bottom:2px;
    font-size:clamp(8px,1.45vw,13px);
    font-weight:900;
    line-height:1;
    white-space:nowrap;
}
.alliance-summary-stat-v2910 strong{
    display:block;
    font-size:clamp(15px,2.35vw,24px);
    font-weight:900;
    line-height:1.05;
    white-space:nowrap;
}
@media(max-width:600px){
    .live-alliance-summary-v2910{
        grid-template-columns:minmax(0,1.75fr) minmax(0,.58fr) minmax(0,.88fr) minmax(0,1fr);
        padding:9px 8px;
    }
    .live-alliance-summary-v2910 .live-team-name{
        grid-column:auto;
        text-align:left;
        padding-right:6px;
        font-size:clamp(13px,4vw,18px);
    }
    .alliance-summary-stat-v2910{
        padding:0 5px;
    }
    .alliance-summary-stat-v2910 span{
        font-size:clamp(7px,2.2vw,10px);
    }
    .alliance-summary-stat-v2910 strong{
        font-size:clamp(13px,3.8vw,18px);
    }
}


/* Alpha 29.16 - Match Play status uses dedicated three-line match boxes. */
.live-match-play-card-v2913 {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 16px 18px;
}

.live-match-play-topline-v2914 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(13px, 2.8vw, 17px);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f7f3d8;
}

.live-match-play-topline-v2914 .live-match-play-match-v2914,
.live-match-play-topline-v2914 .live-match-play-thru-v2914 {
    white-space: nowrap;
}

.live-match-play-name-v2914 {
    font-size: clamp(20px, 4.3vw, 29px);
    font-weight: 900;
    line-height: 1.18;
    color: #ffffff;
}

.live-match-play-statusline-v2914 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.live-match-play-label-v2914 {
    font-size: clamp(12px, 2.6vw, 16px);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f2c236;
}

.live-match-play-status-v2914 {
    font-size: clamp(18px, 3.6vw, 24px);
    font-weight: 900;
    line-height: 1.18;
    color: #ffffff;
}

@media (max-width: 600px) {
    .live-match-play-topline-v2914 {
        font-size: 12px;
        gap: 10px;
    }

    .live-match-play-name-v2914 {
        font-size: clamp(18px, 5vw, 24px);
    }

    .live-match-play-status-v2914 {
        font-size: clamp(16px, 4.4vw, 21px);
    }
}

/* ============================================================
   GOLFXSTREAM PLAY 30.1 — HOME HEADER REFINEMENT
   Public-facing only. Existing IDs and application behaviour stay unchanged.
   ============================================================ */

.home-hero-v231{
    position:relative;
    align-items:center;
    padding:18px 28px 14px;
}

.home-title-wrap-v231{
    text-align:left;
}

.home-title-wrap-v231 h1{
    text-transform:none;
    letter-spacing:-.02em;
    white-space:nowrap;
    font-size:clamp(42px,6vw,70px);
}

.home-brand-white-v30{
    color:#ffffff;
}

.home-brand-gold-v30{
    color:#e7bd3d;
}

.home-version-v30{
    display:flex;
    width:max-content;
    align-items:center;
    justify-content:center;
    margin:9px auto 0;
    min-width:120px;
    padding:5px 18px;
    border:1px solid rgba(255,255,255,.55);
    border-radius:999px;
    color:#ffffff;
    background:rgba(74,124,146,.68);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
    font-size:clamp(14px,1.8vw,19px);
    line-height:1;
    font-weight:800;
}

.home-tagline-v231{
    margin-top:16px;
}

.home-menu-v30{
    max-width:1040px;
    padding-top:30px;
    padding-bottom:36px;
}

.home-card-gap-v30{
    margin-top:20px;
}

.home-setup-card-v30{
    background:linear-gradient(145deg,#075025,#02391b 72%,#022f17);
    color:#ffffff;
}

.home-setup-copy-v30 strong,
.home-setup-copy-v30 small{
    color:#ffffff;
}

.home-setup-visual-v30{
    width:110px;
    height:110px;
    justify-self:center;
    border:3px solid #d6ab35;
    border-radius:50%;
    background:radial-gradient(circle,#0f5c2b,#063d1d);
    font-size:60px;
}

.home-players-card-v30,
.home-new-round-v30,
.home-courses-card-v30{
    background:linear-gradient(180deg,#fffdfa,#f5efe1);
    color:#063d1e;
}

.home-players-visual-v30{
    width:110px;
    height:110px;
    justify-self:center;
    border:3px solid #8d6ab7;
    border-radius:50%;
    background:#f8f3e6;
    font-size:58px;
}

.home-players-copy-v30 strong,
.home-courses-copy-v30 strong{
    color:#063d1e;
}

.home-players-copy-v30 small,
.home-courses-copy-v30 small{
    color:#555;
}

.home-courses-visual-v30{
    font-size:76px;
}

@media(max-width:800px){
    .home-title-wrap-v231 h1{
        font-size:clamp(30px,6.4vw,48px);
    }

    .home-version-v30{
        min-width:96px;
        padding:4px 14px;
    }

    .home-setup-visual-v30,
    .home-players-visual-v30{
        width:84px;
        height:84px;
        font-size:45px;
    }
}

@media(max-width:520px){
    .home-hero-v231{
        padding:13px 10px 11px;
    }

    .home-logo-v231{
        width:66px;
        height:66px;
        font-size:37px;
    }

    .home-title-wrap-v231 h1{
        font-size:clamp(25px,7.2vw,36px);
    }

    .home-version-v30{
        margin-top:6px;
        min-width:82px;
        padding:3px 10px;
        font-size:12px;
    }

    .home-tagline-v231{
        margin-top:11px;
        font-size:clamp(9px,2.1vw,12px);
        letter-spacing:.055em;
    }

    .home-menu-v30{
        padding-top:18px;
    }

    .home-main-card-v231{
        min-height:126px;
    }

    .home-card-gap-v30{
        margin-top:14px;
    }

    .home-setup-visual-v30,
    .home-players-visual-v30{
        width:72px;
        height:72px;
        font-size:39px;
    }
}

/* ==================================================
   GOLFXSTREAM PLAY 30.6 — DEBBIE VISIBILITY UPDATE
   Larger, stronger primary scoring values for outdoor use.
================================================== */
.score-window-strokes strong{
    font-size:clamp(94px,16vw,144px);
    font-weight:950;
    line-height:.86;
}
.score-window-points strong{
    font-size:clamp(84px,14vw,126px);
    font-weight:950;
    line-height:.86;
}

@media(max-width:600px){
    .score-window-strokes strong{
        font-size:clamp(92px,22vw,124px);
    }
    .score-window-points strong{
        font-size:clamp(82px,19vw,112px);
    }
}

/* Play 30.7: hole-by-hole Better Ball and permanent sharing controls. */
.gx-betterball-subtotals { display:grid; gap:10px; margin:16px 0; }
.gx-betterball-subtotal { display:grid; grid-template-columns:minmax(0,1fr) 70px 80px; gap:8px; align-items:center; padding:14px 10px; border:2px solid var(--gold, #caa85b); border-radius:12px; background:#103a2c; color:#fff; }
.gx-betterball-subtotal small { display:block; font-size:11px; margin-top:5px; overflow-wrap:anywhere; }
.gx-betterball-subtotal>div:not(:first-child) { text-align:center; }
.gx-betterball-subtotal>div:not(:first-child)>strong { font-size:28px; }
.gx-round-share { display:grid; gap:8px; margin:16px 0; }
.gx-round-share input { width:100%; min-width:0; box-sizing:border-box; padding:10px; font-size:12px; }
.gx-round-share p { margin:0; font-size:12px; line-height:1.4; }

/* Play 30.9: personal scoring-method selector */
.play-medal-help { font-size: .85rem; opacity: .85; margin: 9px 0 0; text-align: center; }
