*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--green-dark:#1a5c38;--green-mid:#2d7a50;--green-light:#e8f5ee;--green-pale:#f2faf6;--white:#fff;--grey-50:#f8f9fa;--grey-100:#f1f3f5;--grey-200:#e9ecef;--grey-300:#dee2e6;--grey-400:#ced4da;--grey-500:#adb5bd;--grey-600:#6c757d;--grey-700:#495057;--grey-800:#343a40;--grey-900:#212529;--red:#c0392b;--red-light:#fdecea;--gold:#d4af37;--gold-light:#fdf8e8;--shadow-sm:0 1px 3px #00000014;--shadow-md:0 4px 12px #0000001a;--shadow-lg:0 8px 24px #0000001f;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:24px;--radius-full:9999px;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif}html{-webkit-text-size-adjust:100%;font-size:16px}body{font-family:var(--font);background-color:var(--grey-50);color:var(--grey-900);-webkit-font-smoothing:antialiased;min-height:100dvh;line-height:1.5}#root{flex-direction:column;min-height:100dvh;display:flex}.app-container{background:var(--white);flex-direction:column;flex:1;width:100%;max-width:480px;min-height:100dvh;margin:0 auto;display:flex;position:relative}.page{flex:1;padding:16px 16px 32px}.app-header{background:var(--green-dark);color:var(--white);z-index:100;box-shadow:var(--shadow-md);align-items:center;gap:10px;padding:14px 16px;display:flex;position:sticky;top:0}.app-header h1{letter-spacing:.01em;flex:1;font-size:1.1rem;font-weight:700}.app-header .back-btn{color:var(--white);cursor:pointer;border-radius:var(--radius-sm);opacity:.9;background:0 0;border:none;align-items:center;padding:4px;display:flex}.app-header .back-btn:active{opacity:.7}.btn{border-radius:var(--radius-md);cursor:pointer;min-height:52px;font-size:1rem;font-weight:600;font-family:var(--font);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;border:none;justify-content:center;align-items:center;gap:8px;padding:12px 24px;text-decoration:none;transition:all .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn-primary{background:var(--green-dark);color:var(--white);box-shadow:0 2px 8px #1a5c384d}.btn-primary:hover{background:var(--green-mid)}.btn-secondary{background:var(--white);color:var(--green-dark);border:2px solid var(--green-dark)}.btn-secondary:hover{background:var(--green-light)}.btn-ghost{color:var(--green-dark);background:0 0}.btn-danger{background:var(--red);color:var(--white)}.btn-full{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-sm{min-height:40px;padding:8px 16px;font-size:.875rem}.form-group{margin-bottom:16px}.form-label{color:var(--grey-700);letter-spacing:.01em;margin-bottom:6px;font-size:.875rem;font-weight:600;display:block}.form-input{border:2px solid var(--grey-300);border-radius:var(--radius-md);width:100%;height:52px;font-size:1rem;font-family:var(--font);color:var(--grey-900);background:var(--white);-webkit-appearance:none;padding:0 14px;transition:border-color .15s}.form-input:focus{border-color:var(--green-dark);outline:none;box-shadow:0 0 0 3px #1a5c381a}.form-input.error{border-color:var(--red)}.form-error{color:var(--red);margin-top:4px;font-size:.8rem}.form-input-sm{height:44px;font-size:.9375rem}.card{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);border:1px solid var(--grey-200);padding:16px}.card+.card{margin-top:12px}.home-hero{text-align:center;padding:48px 16px 32px}.home-logo{background:var(--green-dark);border-radius:50%;justify-content:center;align-items:center;width:80px;height:80px;margin:0 auto 20px;display:flex}.home-title{color:var(--green-dark);letter-spacing:-.02em;font-size:2rem;font-weight:800}.home-subtitle{color:var(--grey-600);margin-top:8px;font-size:.9375rem}.home-actions{flex-direction:column;gap:12px;padding:0 0 32px;display:flex}.home-recent{margin-top:8px}.home-recent h3{text-transform:uppercase;letter-spacing:.06em;color:var(--grey-500);margin-bottom:8px;font-size:.8125rem;font-weight:700}.stepper{justify-content:center;align-items:center;gap:0;padding:20px 16px 8px;display:flex}.stepper-step{flex-direction:column;flex:1;align-items:center;gap:4px;display:flex}.stepper-dot{background:var(--grey-300);width:28px;height:28px;color:var(--grey-600);border-radius:50%;justify-content:center;align-items:center;font-size:.75rem;font-weight:700;transition:all .2s;display:flex}.stepper-step.active .stepper-dot{background:var(--green-dark);color:var(--white);box-shadow:0 0 0 4px #1a5c3826}.stepper-step.done .stepper-dot{background:var(--green-mid);color:var(--white)}.stepper-label{color:var(--grey-500);font-size:.6875rem;font-weight:500}.stepper-step.active .stepper-label{color:var(--green-dark);font-weight:700}.stepper-line{background:var(--grey-300);flex:1;height:2px;margin-top:-14px}.stepper-line.done{background:var(--green-mid)}.course-card{background:var(--white);border:2px solid var(--grey-200);border-radius:var(--radius-lg);cursor:pointer;text-align:left;width:100%;font-family:var(--font);padding:20px;transition:all .15s}.course-card:active{transform:scale(.98)}.course-card.selected{border-color:var(--green-dark);background:var(--green-pale);box-shadow:0 0 0 4px #1a5c381a}.course-card-name{color:var(--grey-900);font-size:1.1rem;font-weight:700}.course-card-location{color:var(--grey-600);margin-top:4px;font-size:.875rem}.course-card-stats{gap:16px;margin-top:10px;display:flex}.course-stat{color:var(--grey-700);font-size:.8125rem}.course-stat span{font-weight:700}.team-setup{flex-direction:column;gap:20px;display:flex}.team-block{background:var(--grey-50);border-radius:var(--radius-lg);border:1px solid var(--grey-200);padding:16px}.team-block-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.team-block-title{text-transform:uppercase;letter-spacing:.06em;color:var(--green-dark);font-size:.8125rem;font-weight:700}.player-row{grid-template-columns:1fr auto;align-items:end;gap:8px;margin-bottom:8px;display:grid}.player-row-inner{grid-template-columns:1fr 80px;gap:8px;display:grid}.add-player-btn{border:1.5px dashed var(--grey-400);border-radius:var(--radius-sm);color:var(--grey-600);cursor:pointer;width:100%;font-size:.875rem;font-weight:500;font-family:var(--font);background:0 0;padding:10px;transition:all .15s}.add-player-btn:hover{border-color:var(--green-dark);color:var(--green-dark)}.remove-player-btn{color:var(--grey-500);cursor:pointer;border-radius:var(--radius-sm);background:0 0;border:none;align-self:flex-end;align-items:center;height:44px;padding:8px;display:flex}.remove-player-btn:hover{color:var(--red)}.game-code-display{background:var(--green-pale);border:2px solid var(--green-dark);border-radius:var(--radius-xl);text-align:center;margin:20px 0;padding:32px 20px}.game-code-label{text-transform:uppercase;letter-spacing:.08em;color:var(--green-mid);margin-bottom:8px;font-size:.8125rem;font-weight:700}.game-code-value{letter-spacing:.15em;color:var(--green-dark);font-variant-numeric:tabular-nums;font-size:2.5rem;font-weight:800}.game-code-hint{color:var(--grey-600);margin-top:8px;font-size:.875rem}.code-input{text-align:center;letter-spacing:.2em;text-transform:uppercase;color:var(--green-dark);font-size:2rem;font-weight:800}.lobby-code{text-align:center;padding:20px}.lobby-status{text-align:center;background:var(--green-pale);border-radius:var(--radius-md);color:var(--green-dark);margin:12px 0;padding:12px;font-size:.9375rem;font-weight:600}.players-list{flex-direction:column;gap:6px;list-style:none;display:flex}.player-item{background:var(--grey-50);border-radius:var(--radius-sm);align-items:center;gap:10px;padding:10px 12px;font-size:.9375rem;display:flex}.player-hcp{color:var(--grey-600);margin-left:auto;font-size:.8125rem;font-weight:600}.match-status-bar{background:var(--green-dark);color:var(--white);text-align:center;letter-spacing:.02em;padding:10px 16px;font-size:1rem;font-weight:700}.match-status-bar.all-square{background:var(--grey-700)}.hole-info-header{background:var(--grey-100);border-radius:var(--radius-md);border:1px solid var(--grey-200);grid-template-columns:repeat(4,1fr);gap:0;margin-bottom:16px;display:grid;overflow:hidden}.hole-stat{text-align:center;border-right:1px solid var(--grey-200);padding:12px 8px}.hole-stat:last-child{border-right:none}.hole-stat-label{text-transform:uppercase;letter-spacing:.06em;color:var(--grey-500);margin-bottom:3px;font-size:.6875rem;font-weight:700}.hole-stat-value{color:var(--grey-900);font-size:1.25rem;font-weight:800;line-height:1}.hole-stat-value.par-3{color:var(--green-dark)}.team-scoring-section{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-lg);margin-bottom:12px;overflow:hidden}.team-scoring-header{background:var(--grey-50);border-bottom:1px solid var(--grey-200);justify-content:space-between;align-items:center;padding:10px 14px;display:flex}.team-scoring-name{color:var(--grey-800);font-size:.9375rem;font-weight:700}.team-best-net{color:var(--grey-600);font-size:.8125rem;font-weight:600}.player-score-row{border-bottom:1px solid var(--grey-100);align-items:center;gap:12px;padding:12px 14px;display:flex}.player-score-row:last-child{border-bottom:none}.player-score-info{flex:1;min-width:0}.player-score-name{color:var(--grey-800);white-space:nowrap;text-overflow:ellipsis;font-size:.9375rem;font-weight:600;overflow:hidden}.stroke-dots{gap:3px;margin-top:3px;display:flex}.stroke-dot{background:var(--gold);border:1px solid #b8962e;border-radius:50%;width:7px;height:7px}.score-net-badge{color:var(--grey-500);margin-top:2px;font-size:.8rem;font-weight:500}.score-controls{flex-shrink:0;align-items:center;gap:8px;display:flex}.score-btn{border:2px solid var(--grey-300);background:var(--white);width:44px;height:44px;color:var(--grey-700);cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:1.4rem;font-weight:700;line-height:1;transition:all .1s;display:flex}.score-btn:active{background:var(--grey-100);transform:scale(.9)}.score-btn.minus{color:var(--red);border-color:var(--red)}.score-btn.minus:active{background:var(--red-light)}.score-btn.plus{color:var(--green-dark);border-color:var(--green-dark)}.score-btn.plus:active{background:var(--green-light)}.score-display{text-align:center;width:40px;color:var(--grey-900);font-variant-numeric:tabular-nums;font-size:1.5rem;font-weight:800}.score-display.empty{color:var(--grey-400);font-size:1.125rem}.closest-to-pin{background:var(--gold-light);border:1.5px solid var(--gold);border-radius:var(--radius-md);margin:4px 14px 14px;padding:12px 14px}.closest-to-pin-label{color:#7a6008;align-items:center;gap:6px;margin-bottom:10px;font-size:.8125rem;font-weight:700;display:flex}.toggle-group{gap:8px;display:flex}.toggle-option{border:2px solid var(--grey-300);border-radius:var(--radius-sm);background:var(--white);color:var(--grey-600);cursor:pointer;text-align:center;font-size:.875rem;font-weight:600;font-family:var(--font);flex:1;padding:8px 4px;transition:all .15s}.toggle-option.selected{border-color:var(--gold);background:var(--gold);color:var(--white)}.hole-nav{background:var(--white);border-top:1px solid var(--grey-200);justify-content:space-between;align-items:center;padding:12px 16px;display:flex;position:sticky;bottom:0;box-shadow:0 -4px 12px #00000014}.hole-nav-indicator{align-items:center;gap:3px;display:flex}.hole-pip{background:var(--grey-300);border-radius:50%;width:6px;height:6px;transition:all .2s}.hole-pip.active{background:var(--green-dark);border-radius:3px;width:18px}.hole-pip.completed{background:var(--green-mid)}.scorecard-wrapper{-webkit-overflow-scrolling:touch;border-radius:var(--radius-md);border:1px solid var(--grey-200);margin-bottom:16px;overflow-x:auto}.scorecard-table{border-collapse:collapse;width:100%;min-width:400px;font-size:.8125rem}.scorecard-table th,.scorecard-table td{text-align:center;border-bottom:1px solid var(--grey-200);white-space:nowrap;padding:7px 6px}.scorecard-table th{background:var(--green-dark);color:var(--white);letter-spacing:.02em;font-size:.75rem;font-weight:700}.scorecard-table tr:last-child td{border-bottom:none}.scorecard-table tr:nth-child(2n) td{background:var(--grey-50)}.scorecard-table .col-hole{background:var(--grey-100);font-weight:700}.scorecard-table .result-win0{color:var(--green-dark);background:#e8f5ee;font-weight:700}.scorecard-table .result-win1{color:#1a3c8c;background:#eaf0fb;font-weight:700}.scorecard-table .result-halved{color:var(--grey-600)}.scorecard-section-header{background:var(--grey-200)!important;color:var(--grey-700)!important;font-weight:700!important}.scorecard-totals td{background:var(--green-pale)!important;border-top:2px solid var(--green-dark)!important;font-weight:700!important}.results-banner{background:var(--green-dark);color:var(--white);text-align:center;border-radius:var(--radius-xl);margin-bottom:20px;padding:32px 20px}.results-trophy{margin-bottom:8px;font-size:4rem}.results-winner{letter-spacing:-.01em;font-size:1.75rem;font-weight:800}.results-score{opacity:.85;margin-top:6px;font-size:1.25rem}.results-subtitle{opacity:.7;margin-top:4px;font-size:.875rem}.match-summary{background:var(--grey-50);border-radius:var(--radius-md);grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-bottom:12px;padding:16px;display:grid}.summary-team{text-align:center}.summary-team-name{color:var(--grey-800);margin-bottom:4px;font-size:.9375rem;font-weight:700}.summary-points{color:var(--green-dark);font-size:2.5rem;font-weight:800;line-height:1}.summary-vs{color:var(--grey-400);font-size:.875rem;font-weight:700}.tabs{border-bottom:2px solid var(--grey-200);gap:0;margin-bottom:16px;display:flex}.tab-btn{color:var(--grey-500);cursor:pointer;font-size:.9375rem;font-weight:600;font-family:var(--font);background:0 0;border:none;border-bottom:2px solid #0000;flex:1;margin-bottom:-2px;padding:12px 8px;transition:all .15s}.tab-btn.active{color:var(--green-dark);border-bottom-color:var(--green-dark)}.loading-screen{color:var(--grey-600);flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:64px 32px;display:flex}.spinner{border:3px solid var(--grey-200);border-top-color:var(--green-dark);border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.error-screen{text-align:center;color:var(--grey-700);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:64px 32px;display:flex}.error-screen h2{color:var(--grey-800);font-size:1.25rem}.section-title{color:var(--grey-800);margin-bottom:12px;font-size:1.125rem;font-weight:700}.section-title-sm{text-transform:uppercase;letter-spacing:.06em;color:var(--grey-500);margin-bottom:8px;font-size:.8125rem;font-weight:700}.confirm-row{border-bottom:1px solid var(--grey-100);justify-content:space-between;align-items:center;padding:10px 0;font-size:.9375rem;display:flex}.confirm-row:last-child{border-bottom:none}.confirm-label{color:var(--grey-600)}.confirm-value{color:var(--grey-900);font-weight:600}.share-link{background:var(--grey-50);border:1px solid var(--grey-200);border-radius:var(--radius-md);align-items:center;margin-top:8px;display:flex;overflow:hidden}.share-link-text{color:var(--grey-600);white-space:nowrap;text-overflow:ellipsis;flex:1;padding:12px 14px;font-size:.875rem;overflow:hidden}.share-link-copy{background:var(--green-dark);color:var(--white);cursor:pointer;font-size:.875rem;font-weight:600;font-family:var(--font);border:none;flex-shrink:0;padding:12px 16px;transition:background .15s}.share-link-copy:hover{background:var(--green-mid)}.hole-selector-grid{grid-template-columns:repeat(9,1fr);gap:4px;margin-bottom:12px;display:grid}.hole-selector-btn{aspect-ratio:1;border-radius:var(--radius-sm);border:1.5px solid var(--grey-300);background:var(--white);color:var(--grey-700);cursor:pointer;font-size:.75rem;font-weight:700;font-family:var(--font);justify-content:center;align-items:center;min-height:36px;padding:0;transition:all .1s;display:flex}.hole-selector-btn.active{background:var(--green-dark);border-color:var(--green-dark);color:var(--white)}.hole-selector-btn.completed{background:var(--green-light);border-color:var(--green-mid);color:var(--green-dark)}.divider{background:var(--grey-200);height:1px;margin:16px 0}.text-center{text-align:center}.text-green{color:var(--green-dark)}.text-muted{color:var(--grey-600)}.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.gap-8{gap:8px}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}@supports (padding-bottom:env(safe-area-inset-bottom)){.hole-nav{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}
