@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#1e352b;background:#f7f6ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}.hidden{display:none!important}.topbar{height:76px;background:#173a2c;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1100px)/2))}.brand{display:flex;align-items:center;gap:11px;font:700 22px 'Outfit',sans-serif;letter-spacing:-.7px}.mark{display:grid;place-items:center;width:35px;height:35px;background:#d6ed99;color:#173a2c;border-radius:10px;font-size:24px;font-style:italic}.topnote{font-size:10px;letter-spacing:2px;color:#c8d6ca;font-weight:700}main{width:min(1100px,100% - 48px);margin:0 auto;min-height:calc(100vh - 130px);padding:38px 0 90px}.hero{min-height:405px;border-radius:20px;padding:58px 64px 26px;background:#173a2c;color:#fff;position:relative;overflow:hidden;isolation:isolate}.hero:before{content:'';position:absolute;right:-95px;top:-160px;width:570px;height:570px;border:1px solid #ffffff25;border-radius:50%;box-shadow:0 0 0 70px #ffffff08,0 0 0 140px #ffffff08;z-index:-1}.hero .eyebrow{color:#d6ed99}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2.3px;color:#77936a;margin:0 0 14px}.hero h1,h1,h2{font-family:'Outfit',sans-serif;letter-spacing:-.04em}h1{font-size:clamp(36px,5vw,60px);line-height:1.04;margin:0 0 16px}h2{font-size:27px;margin:0}.hero em{font-style:normal;color:#d6ed99}.hero>p:not(.eyebrow){max-width:470px;line-height:1.65;color:#d7e1d8;margin:0 0 24px}.primary{background:#d6ed99;border:0;border-radius:10px;padding:15px 23px;color:#183928;font-weight:800;display:inline-flex;justify-content:space-between;align-items:center;gap:30px;text-decoration:none}.primary:hover{background:#e6f5bb}.hero-meta{display:flex;gap:20px;border-top:1px solid #ffffff34;margin-top:36px;padding-top:18px;color:#cbd9cd;font-size:12px}.hero-meta span+span:before{content:'·';margin-right:20px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:36px 0 16px}.section-heading .eyebrow{margin-bottom:4px}.cards{display:grid;gap:12px}.card{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;background:white;border:1px solid #e3e7de;border-radius:13px;padding:20px 24px;color:#1e352b}.card:hover{border-color:#7fa777}.card strong{font:700 21px 'Outfit',sans-serif}.card small{display:block;color:#718175;margin-top:6px}.card .arrow{font-size:26px}.empty{border:1px dashed #bbcab9;border-radius:13px;padding:33px;color:#647667;text-align:center}.back{border:0;background:none;color:#426e53;padding:0;margin:5px 0 35px;font-weight:700}.back:hover{text-decoration:underline}#newRound,#round{max-width:850px;margin:auto}#newRound>p:not(.eyebrow),#roundTitle+p{color:#718175;line-height:1.5}.course-card{display:flex;gap:55px;background:#eaf0de;border-radius:13px;padding:20px 25px;margin:26px 0}.course-card small{display:block;color:#6f856c;letter-spacing:1.4px;font-size:10px;font-weight:800}.course-card strong{display:block;margin-top:5px;font:700 19px 'Outfit',sans-serif}.panel{background:white;border:1px solid #e3e7de;padding:24px;border-radius:15px}.panel label{display:block;font-weight:700;margin-bottom:13px}.panel .primary{display:flex;width:100%;margin-top:22px}.player-field{display:flex;align-items:center;gap:10px;margin:10px 0}.player-field input,.login input{border:1px solid #cdd8cb;border-radius:9px;width:100%;padding:14px 15px;color:#1e352b;background:#fff}.player-field input:focus,.login input:focus{outline:2px solid #8fb389}.player-field button{background:none;border:0;color:#66786a;font-size:21px}.subtle{background:none;border:0;padding:11px 0;color:#326548;font-weight:700}.login{max-width:430px;margin:8vh auto}.login h1{font-size:40px}.login p:not(.eyebrow){color:#607266;line-height:1.5}.round-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}.round-heading h1{font-size:40px}.badge{background:#e9f0db;color:#436446;border-radius:30px;padding:9px 12px;font-size:10px;font-weight:800;letter-spacing:1.1px;white-space:nowrap}.upload-card{display:flex;align-items:center;gap:19px;background:#173a2c;color:#fff;padding:26px;border-radius:15px;margin-top:22px}.upload-icon{display:grid;place-items:center;flex:none;width:50px;height:50px;background:#ffffff20;border-radius:12px;font-size:27px;color:#d6ed99}.upload-card h2{font-size:22px}.upload-card p{color:#cbd9cd;font-size:13px;line-height:1.5;margin:5px 0 0}.photo-label{margin-left:auto;white-space:nowrap;font-size:13px;cursor:pointer}#photo{display:none}.notice{padding:14px 17px;border-radius:9px;background:#edf3df;color:#265039;margin-top:15px;line-height:1.5}.notice.error{background:#fff0e9;color:#a2422e}.progress{font-size:13px;color:#56705d;font-weight:700}.hint{color:#6c7e71;font-size:13px;margin:0 0 13px}.leaderboard{display:grid;gap:9px}.rank-row{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e3e7de;border-radius:11px;padding:16px 20px}.rank-row:first-child{border-color:#adc785}.position{font:700 22px 'Outfit',sans-serif;color:#54734d;width:36px}.rank-row .name{font-weight:700;flex:1}.rank-row .strokes{font:700 23px 'Outfit',sans-serif}.rank-row small{font-size:11px;color:#728171;margin-left:3px}.score-scroll{overflow:auto;background:#fff;border:1px solid #e3e7de;border-radius:12px}.score-scroll table{border-collapse:collapse;min-width:720px;width:100%;font-size:13px}.score-scroll th,.score-scroll td{padding:13px 10px;border-bottom:1px solid #edf0e9;text-align:center}.score-scroll th:first-child,.score-scroll td:first-child{text-align:left;position:sticky;left:0;background:white;min-width:145px}.score-scroll th{color:#5f7666;font-size:11px}.score-scroll td{font-weight:700}.score-scroll td.empty-cell{color:#c0c9bf}footer{background:#173a2c;color:#d6ed99;display:flex;justify-content:space-between;padding:18px max(24px,calc((100vw - 1100px)/2));font-size:11px;font-weight:800;letter-spacing:1.3px}footer span{color:#b1c5b4}@media(max-width:650px){.topbar{height:65px}.topnote{display:none}main{width:calc(100% - 32px);padding:20px 0 65px}.hero{padding:35px 24px 22px;min-height:390px}.hero-meta{gap:8px;flex-wrap:wrap}.hero-meta span+span:before{margin-right:8px}.upload-card{flex-wrap:wrap}.upload-card .photo-label{width:100%;margin:8px 0 0}.upload-card>div:nth-child(2){flex:1;min-width:180px}.round-heading h1{font-size:34px}.badge{font-size:9px}.course-card{gap:35px}footer span{display:none}}

#reviewPanel{margin-top:22px;border:2px solid #b7cb96}#reviewPanel h2{font-size:24px}#reviewPanel p{line-height:1.55}.cell-photo{display:block;max-width:100%;max-height:190px;width:auto;height:auto;background:#fafafa;margin:15px 0;border:1px solid #ddd}.answer-choices,.review-holes{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.choice{background:#fff;border:2px solid #67894c;border-radius:10px;padding:12px 18px;min-height:48px;font-weight:700;color:#173a2c}.answer-form input{display:block;width:100%;max-width:280px;padding:14px;border:1px solid #9bac91;border-radius:9px;font-size:22px}.answer-form label{margin:12px 0 8px}#reviewPanel .subtle{display:block;margin-top:10px;text-align:left;line-height:1.4}.cell-edit{border:0;background:transparent;color:inherit;min-width:32px;min-height:36px;font-weight:700;font-size:15px}.cell-edit:hover{background:#eaf0de}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #75964d;outline-offset:3px}

.saved-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.panel .saved-player{display:flex;gap:12px;align-items:center;border:1px solid #cdd8cb;border-radius:10px;padding:14px;margin:0;cursor:pointer}.saved-player input{width:22px;height:22px;accent-color:#173a2c;flex:none}.saved-player small{display:block;font-size:12px;color:#647667;margin-top:6px;font-weight:400}
.review-card-title{font-weight:700;margin:15px 0 5px}.review-digital-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:8px 0 15px;border:1px solid #cdd8cb;border-radius:10px}.review-digital-card{border-collapse:collapse;min-width:720px;width:100%;background:#fff}.review-digital-card caption{text-align:left;padding:9px 12px;background:#eaf0de;font-weight:700}.review-digital-card th,.review-digital-card td{border:1px solid #dce5db;text-align:center;min-width:44px;padding:3px}.review-digital-card th:first-child{min-width:135px;text-align:left;padding:8px;position:sticky;left:0;background:#fff;z-index:2}.review-digital-card thead th{background:#edf2e8;color:#345c3d}.review-digital-card td.review-selected{background:#ffe5a5;box-shadow:inset 0 0 0 3px #b44918}.review-digital-card td.review-unsettled:not(.review-selected){background:#fff2e9}.review-cell-button{border:0;background:transparent;width:100%;min-height:40px;font-weight:700;font-size:16px;color:#173a2c}.review-subtotal{font-weight:800;background:#f1f5e7}
.brand-logo{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:11px}.hero.hero-players{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,1.15fr);gap:44px;align-items:center;padding:34px 44px;min-height:405px}.hero.hero-players:before{display:none}.hero-action{display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center}.hero-logo-frame{background:#fff;border-radius:20px;width:min(100%,250px);height:240px;display:grid;place-items:center;overflow:hidden}.hero-logo-frame img{max-width:100%;height:100%;object-fit:contain}.hero-action .primary{min-width:220px}.handicap-panel{background:#fff;border-radius:17px;color:#173a2c;padding:23px 25px}.handicap-panel .eyebrow{color:#587857;margin-bottom:5px}.handicap-panel h1{font-size:clamp(23px,3vw,33px);margin-bottom:17px}.handicap-list{display:grid}.handicap-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5e9de;padding:10px 0;font-size:15px}.handicap-row strong{font:700 23px 'Outfit',sans-serif;color:#245c3a;white-space:nowrap}@media(max-width:690px){.hero.hero-players{grid-template-columns:1fr;gap:22px;min-height:0;padding:23px}.hero-logo-frame{width:165px;height:155px}.hero-action{gap:14px}.hero-action .primary{width:100%}.handicap-panel{padding:20px}.handicap-row{font-size:14px}}
.name-dialog{border:0;border-radius:16px;padding:28px;width:min(420px,calc(100% - 30px));color:#173a2c;box-shadow:0 20px 80px #0006}.name-dialog::backdrop{background:#0d261dbb}.name-dialog h2{margin:0 0 8px}.name-dialog p{line-height:1.5}.name-dialog label{display:block;font-weight:700;margin:16px 0 7px}.name-dialog select,.name-dialog input{width:100%;padding:13px;border:1px solid #9dac98;border-radius:9px;background:#fff;color:#173a2c}.dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px}.dialog-actions .primary{white-space:nowrap}.name-dialog .hint{margin:11px 0 0}
.read-unconfirmed{background:#fff2e9;color:#873f21}.scroll-hint{color:#607266;font-size:13px;margin:0 0 8px}.review-digital-scroll,.score-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
@media(max-width:690px){
  .topbar{padding:0 16px}.brand{font-size:19px}main{width:calc(100% - 24px);padding-top:14px}#round{max-width:100%}
  .hero.hero-players{padding:17px;gap:18px}.hero-logo-frame{width:112px;height:104px}.hero-action{gap:12px}.hero-action .primary{min-height:56px;justify-content:center;font-size:17px}.handicap-panel{padding:16px}
  .round-heading{align-items:center}.round-heading h1{font-size:29px}.round-heading .badge{font-size:9px}.upload-card{padding:18px;gap:11px}.upload-icon{display:none}.upload-card>div:nth-child(2){min-width:0}.upload-card .photo-label{min-height:52px;justify-content:center;font-size:16px}
  #reviewPanel{padding:13px}.review-digital-card{min-width:410px}.review-digital-card th:first-child{min-width:96px;max-width:96px;overflow-wrap:anywhere}.review-digital-card th,.review-digital-card td{min-width:30px;padding:1px;font-size:12px}.review-cell-button{min-height:44px;font-size:16px}.choice{min-height:48px}.rank-row{padding:13px;gap:8px}.rank-row .name{min-width:0;overflow-wrap:anywhere}
  .name-dialog{width:100%;max-width:none;height:auto;max-height:calc(100dvh - 12px);margin:auto 0 0;border-radius:18px 18px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));overflow:auto}.name-dialog select,.name-dialog input{font-size:16px;min-height:48px}.dialog-actions button{min-height:48px}.name-dialog h2{font-size:23px}
  .score-scroll td,.score-scroll th{padding:10px 7px}.score-scroll th:first-child,.score-scroll td:first-child{min-width:108px;max-width:108px;overflow-wrap:anywhere}
}
/* Mobile card review: nine labelled holes per half, with large touch targets. */
.hero-action{gap:12px}.review-digital-card button{min-width:44px;min-height:48px;font-size:18px}.review-digital-card th:first-child{min-width:110px;max-width:150px;white-space:normal}.review-digital-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:12px 0}.review-digital-card caption{text-align:left;font-weight:700;padding:12px 0}.review-digital-card th{font-size:14px}.answer-form input{font-size:20px;min-height:48px}.answer-choices button{min-height:48px;min-width:48px}
@media(max-width:600px){.hero-action{display:flex;flex-direction:column}.hero-action button{width:100%;min-height:52px}.hero-logo-frame{max-height:120px}.hero-logo-frame img{max-height:115px}.upload-card p{font-size:14px}.score-scroll{overflow:visible}.review-digital-card{min-width:600px}.round-heading h1{font-size:24px}}
/* Touch-first correction, with explicit save and no automatic keyboard. */
.mobile-card{display:none}.stroke-dialog{border:0;border-radius:20px;padding:20px;width:min(430px,calc(100% - 24px));max-height:90dvh;overflow-y:auto;color:#173a2c;background:#fff}.stroke-dialog::backdrop{background:#102b22aa}.stroke-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.stroke-header h2{font-size:28px}.stroke-dialog>p{margin:8px 0 16px}.stroke-counter{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.stroke-counter button{width:58px;height:58px;border:1px solid #9fb3a0;border-radius:14px;background:#eef5e8;color:#173a2c;font-size:32px}.stroke-counter output{font-size:38px;font-weight:800}.stroke-pad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0}.stroke-pad button{min-height:54px;border:1px solid #a7b9a6;border-radius:12px;background:#fff;font-size:25px;color:#173a2c}.stroke-pad button[aria-pressed=true]{background:#173a2c;color:white;border:3px solid #a2c76a}.stroke-dialog>small{display:block;color:#52644f;margin:10px 0}.stroke-actions{display:flex;gap:10px;position:sticky;bottom:-20px;background:#fff;padding:14px 0 max(10px,env(safe-area-inset-bottom));margin-top:8px}.stroke-actions button{flex:1;justify-content:center;min-height:54px;padding:12px;font-size:17px}.stroke-error{color:#9e331c}.stroke-dialog button{touch-action:manipulation}.stroke-dialog .subtle{min-height:48px}.hero-action>.subtle{color:#eef5dc;text-decoration:underline}
@media(max-width:690px){
 .desktop-score-card{display:none!important}.score-scroll{border:0;background:transparent;overflow:visible}.mobile-card{display:block;width:100%;padding:16px 0}.mobile-card label{display:block;font-weight:700;margin-bottom:7px}.mobile-card select{width:100%;min-height:50px;font-size:17px;border:1px solid #a0b49c;border-radius:10px;background:white;color:#173a2c;padding:10px}.half-tabs{display:flex;gap:8px;margin:8px 0 14px}.half-tabs button{flex:1;min-height:46px;border:1px solid #9aae93;border-radius:10px;font-weight:700;background:#fff;color:#173a2c}.half-tabs .active{background:#173a2c;color:white}.hole-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.hole-tile{min-height:94px;border:1px solid #bdccad;border-radius:13px;background:#fff;color:#173a2c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;touch-action:manipulation}.hole-tile strong{font-size:29px;line-height:1.1}.hole-tile small{font-size:13px}.hole-tile span{font-size:11px;color:#557048}.hole-tile.needs-review{background:#fff0df;border:2px solid #b46c28}.mobile-sum{font-size:14px;font-weight:700}.stroke-dialog{width:100%;max-width:none;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:92dvh;padding:18px 16px calc(16px + env(safe-area-inset-bottom))}.stroke-actions{bottom:calc(-16px - env(safe-area-inset-bottom))}.round-heading{flex-wrap:wrap}.round-heading h1{font-size:25px}.upload-card{display:block}.upload-card .photo-label{display:flex;margin:12px 0 0;white-space:normal}
}

.cards a.card{text-decoration:none}.hero-action #createDigital{justify-content:center;text-align:center}

/* Compact group dashboard. Players have their own view. */
.dashboard-welcome{padding:26px 24px;border-radius:20px;background:linear-gradient(125deg,#173a2c,#356e48);color:#fff}.dashboard-welcome h1{font-size:36px;margin:6px 0 10px}.dashboard-welcome .eyebrow{color:#d6ed99}.dashboard-welcome p{margin:0 0 16px}.dashboard-welcome .primary{min-width:130px;min-height:48px;justify-content:center}.dashboard-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.dashboard-stats button{border:1px solid #e3e7de;border-radius:14px;background:white;color:#173a2c;text-align:left;padding:16px;display:flex;gap:12px;align-items:center;min-height:64px}.dashboard-stats strong{font-size:25px}.dashboard-stats span{font-weight:700}.dashboard .section-heading{margin-top:24px}.dashboard h2{font-size:23px}.dashboard-card{padding:18px}.dashboard-card strong{font-size:21px}.dashboard-card .dashboard-status{font-size:10px;font-weight:800;letter-spacing:1px;color:#277749;margin:0 0 7px}.dashboard-card .dashboard-result{font-weight:700;color:#245c3a}.dashboard-empty{padding:16px;background:#edf2e8;border-radius:12px;color:#607266;font-size:14px;line-height:1.5;margin:0}.home-nav{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;position:fixed;bottom:0;left:0;right:0;z-index:5;border-top:1px solid #dae1d5;background:#fff;padding:8px max(8px,calc((100vw - 720px)/2)) max(8px,env(safe-area-inset-bottom));gap:4px}.home-nav[hidden]{display:none}.home-nav button{border:0;border-radius:12px;background:transparent;color:#607266;min-height:52px;font-size:13px;font-weight:750;padding:10px 4px;touch-action:manipulation}.home-nav button[aria-pressed=true]{background:#edf4e8;color:#1d7040}.home-nav .play-button{background:#218044;color:#fff}.play-dialog{border:0;border-radius:20px;background:#fff;color:#173a2c;padding:22px;width:min(440px,calc(100% - 24px));box-shadow:0 18px 60px #0004}.play-dialog::backdrop{background:#102b2299}.play-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.play-dialog>.primary,.play-dialog>.subtle{width:100%;min-height:54px;justify-content:center;margin:8px 0}.play-dialog .subtle{border:1px solid #ccd8c6;border-radius:10px}#playersPage h1,#historyPage h1{font-size:34px}#playersPage .handicap-panel{border:1px solid #e3e7de;padding:18px}#playersPage .handicap-row{min-height:64px}.home-nav button:focus-visible,.dashboard button:focus-visible{outline:3px solid #b38725;outline-offset:2px}@media(max-width:650px){.dashboard-welcome{padding:22px 20px}.dashboard-welcome h1{font-size:32px}.dashboard-stats button{padding:14px 12px}.dashboard .section-heading{margin-top:22px}main{padding-bottom:110px}.play-dialog{margin:auto auto 0;width:100%;max-width:none;border-radius:22px 22px 0 0;padding-bottom:max(22px,env(safe-area-inset-bottom))}}

:root{background:#fff}body{background:#fff}.player-profile-link{border:0;background:white;color:#173a2c;text-align:left;width:100%;cursor:pointer;font:inherit}.player-profile-link>span:not(.player-avatar){flex:1}.player-avatar{width:44px;height:44px;min-width:44px;border-radius:50%;object-fit:cover;background:#e5f4ea;color:#147749;display:inline-flex;align-items:center;justify-content:center;font-weight:750}.profile-dialog{border:0;border-radius:22px;background:white;color:#173a2c;width:min(460px,calc(100% - 24px));padding:22px;max-height:92dvh;overflow:auto}.profile-dialog::backdrop{background:#102b2288}.profile-dialog label{display:block;margin:16px 0;font-weight:650}.profile-dialog input{display:block;width:100%;border:1px solid #cbd8cd;border-radius:10px;padding:12px;font-size:16px;margin-top:6px;min-height:48px}.profile-avatar{text-align:center;margin:18px 0}.profile-avatar .player-avatar{width:96px;height:96px;font-size:32px}.profile-dialog #saveProfile{width:100%;justify-content:center}.profile-dialog #profileError{color:#9e331c}.profile-dialog .play-heading h2{font-size:24px}@media(max-width:650px){.profile-dialog{margin:auto auto 0;border-radius:22px 22px 0 0;width:100%;padding-bottom:max(22px,env(safe-area-inset-bottom))}}

.profile-stat-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f3f8f5;border-radius:12px;padding:12px;margin:8px 0;font-size:13px}.profile-result-bars{margin:16px 0}.profile-result-bars>div{display:grid;grid-template-columns:1fr 36px;gap:6px;margin:8px 0;font-size:12px}.stat-track{grid-column:1/3;background:#eef1ee;height:6px;border-radius:6px;overflow:hidden}.stat-track span{display:block;background:#00a969;height:100%}.profile-result-bars [data-result=birdie] .stat-track span{background:#ff002b}.profile-result-bars [data-result=eagle] .stat-track span{background:#f7a918}.profile-result-bars [data-result=bogey] .stat-track span{background:#398ded}.profile-result-bars [data-result=doubleBogey] .stat-track span,.profile-result-bars [data-result=worse] .stat-track span{background:#00458b}

/* Compact home; persistent mobile navigation. */
.dashboard-welcome{background:none;padding:0;border-radius:0;margin:10px 0 22px;box-shadow:none}.dashboard-welcome #homePlay{background:#009957;color:white;min-height:52px;width:100%;font-size:19px}.home-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:white!important;border-radius:0;color:#747b78}.home-nav svg{width:26px;height:26px}.home-nav button[aria-pressed=true]{color:#009957;background:white!important}.home-nav .play-button{color:#009957;font-weight:850}.profile-dialog select{display:block;width:100%;min-height:48px;font-size:16px;margin-top:6px;border:1px solid #cbd8cd;border-radius:10px;background:white;padding:10px}.profile-dialog .two{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px}main{padding-bottom:110px}

[hidden]{display:none!important}.profile-dialog .two:has(#profileDialLabel[hidden]){grid-template-columns:1fr}

/* Consistent rounded actions and a light navigation surface. */
.primary,.play-dialog .subtle,.profile-dialog button.subtle,#allGames,#myProfile{border-radius:16px;line-height:1.35;min-height:44px}
.dashboard-welcome #homePlay,.play-dialog>.primary,.profile-dialog #saveProfile{background:linear-gradient(145deg,#138563,#096c50);color:white;border:1px solid #08704f;box-shadow:0 4px 14px #08734f20;font-weight:650;transition:box-shadow .16s ease,transform .16s ease}
.play-dialog>.subtle,.profile-dialog button.subtle{background:#f7faf8;border:1px solid #e0e9e4;box-shadow:0 2px 8px #163a2c06;color:#214c3b;padding:12px 16px}
.play-dialog>.primary,.play-dialog>.subtle{margin:12px 0}
.play-heading>button.subtle{padding:9px 13px;min-height:40px;box-shadow:none;font-size:13px}
.home-nav{border-top:1px solid #ecf0ed;box-shadow:0 -4px 20px #163a2c06;gap:5px}
.home-nav button{border-radius:14px;min-height:58px}
.home-nav button[aria-pressed=true]{background:#f0f8f3!important;color:#087650}
@media(prefers-reduced-motion:reduce){.primary{transition:none}}

/* A single phone-sized canvas, including landscape and larger text. */
html{scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
main{width:calc(100% - 24px);max-width:480px;min-width:0;padding-top:18px;padding-bottom:calc(110px + env(safe-area-inset-bottom))}
#app,#home,#playersPage,#historyPage,#round,#liveWorkspace{min-width:0;max-width:100%}
input,select,textarea{max-width:100%;min-width:0;font-size:16px}
button,a.primary{touch-action:manipulation}
.card>div,.rank-row .name,.handicap-row>span,.player-profile-link>span:not(.player-avatar){min-width:0;overflow-wrap:anywhere}
.card{padding:16px;gap:12px}.card strong{font-size:19px}
.section-heading{gap:12px;align-items:center}.section-heading>div{min-width:0}
.section-heading h2{font-size:22px;overflow-wrap:anywhere}
.section-heading>button{flex-shrink:0;font-size:14px;min-height:44px}
.home-nav{padding:8px max(8px,calc((100vw - 480px)/2)) calc(8px + env(safe-area-inset-bottom))}
.home-nav button{min-width:0;font-size:12px;line-height:1.2}
.profile-dialog,.play-dialog,.name-dialog,.stroke-dialog{max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain}
.profile-dialog .play-heading h2,.play-heading h2{min-width:0;overflow-wrap:anywhere}
.profile-dialog input,.profile-dialog select{width:100%;font-size:16px;box-sizing:border-box}
.profile-dialog .two{grid-template-columns:1fr}
.profile-dialog #profileDialLabel{margin-top:0}
.profile-dialog #personalLink{font-size:14px;overflow-wrap:anywhere}
#personalAccess{display:grid;gap:8px}
#personalAccess button{width:100%;text-align:left;min-height:44px;padding:10px 12px;white-space:normal}
#handicapDialog{border:0;border-radius:22px;padding:20px;width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 16px);overflow:auto;color:#173a2c;background:white;box-shadow:0 18px 60px #0004}
#handicapDialog::backdrop{background:#102b2288}
#handicapDialog h2{font-size:24px}
#handicapDialog p{font-size:14px;line-height:1.5}
#handicapDialog label{display:block;font-weight:650;margin:14px 0}
#handicapDialog select{display:block;width:100%;min-height:48px;margin-top:6px;padding:10px;border:1px solid #cbd8cd;border-radius:12px;background:white;color:#173a2c}
#handicapDialog .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#handicapDialog button{min-height:48px;border:1px solid #e0e9e4;border-radius:14px;background:#f7faf8;color:#214c3b;font-weight:650;padding:10px}
#handicapDialog #saveHcp{background:#087650;color:white}
#hcpError{color:#9e331c}
.profile-dialog .dialog-actions,.name-dialog .dialog-actions{flex-wrap:wrap;gap:10px}
.profile-dialog .dialog-actions>*{flex:1;min-width:120px}
.profile-stat-row{grid-template-columns:repeat(2,minmax(0,1fr));overflow-wrap:anywhere}
#playersPage .two{display:grid;grid-template-columns:1fr;gap:10px}
#playersPage select{width:100%;min-height:48px;padding:10px;border:1px solid #d5dfd8;border-radius:12px;background:white;color:#173a2c}
.topbar{padding-left:max(12px,calc((100vw - 480px)/2));padding-right:max(12px,calc((100vw - 480px)/2))}
@media(max-width:360px){.topbar{height:60px}.brand{font-size:20px}.brand-logo{width:36px;height:36px}.dashboard-stats{gap:8px}.dashboard-stats button{gap:8px;padding:12px 10px}.dashboard-stats span{font-size:14px}.home-nav button{font-size:11px}.handicap-panel{padding:12px!important}}

#approveHandicap{width:100%;margin:12px 0;min-height:48px}#memberError{color:#9e331c}#addMember{margin:0 0 18px}#addMemberDialog #saveMember{width:100%;justify-content:center}

.personal-summary{background:white;border:1px solid #e0e9e4;border-radius:20px;padding:16px;box-shadow:0 3px 14px #173a2c08;margin-bottom:16px}.personal-summary[hidden]{display:none}.personal-summary button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;padding:0;text-align:left;color:#173a2c;min-height:48px}.personal-summary small{display:block;font-size:11px;color:#64776d;letter-spacing:1px}.personal-summary #personalName{display:block;font-size:22px;overflow-wrap:anywhere}.personal-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.personal-metrics strong{display:block;font-size:24px}.personal-metrics span{font-size:12px;color:#64776d}button:disabled{opacity:.55}

/* Compact personal golf cover and readable white scorecards. */
:root{background:#fff}body{background:#fff}.topbar{background:#fff;color:#153d2c;border-bottom:1px solid #edf1ee}.topnote{color:#6b8174}main{padding-top:20px}.personal-summary{padding:22px 18px 18px;background:linear-gradient(180deg,#123d2b22,#0e352bdd),url('/golf-landscape.svg') center 55%/cover;color:white;border:0;border-radius:24px;overflow:hidden;box-shadow:0 8px 24px #183b2914;min-height:222px}.personal-summary button{color:white;gap:14px}.personal-summary small{color:#f2f6ef;font-size:13px;letter-spacing:0;margin-bottom:3px}.personal-summary #personalName{font-size:27px;line-height:1.15}.personal-summary .player-avatar{height:60px;width:60px;flex:0 0 60px;border:3px solid #ffffffcc;box-shadow:0 3px 12px #0002;background:#f3f8ef;color:#164a33}.personal-metrics{margin-top:32px;gap:10px}.personal-metrics>div{background:#fff;color:#173e2c;border-radius:16px;padding:12px 14px;box-shadow:0 3px 10px #0001}.personal-metrics strong{font-size:25px;line-height:1.2}.personal-metrics span{display:block;margin-top:3px;font-size:11px}.dashboard-welcome{margin:14px 0}.dashboard-welcome .primary{border-radius:16px;background:#08784e;color:white;box-shadow:0 4px 12px #08784e20;padding:14px 24px}.section-heading{margin-top:25px}.section-heading h2{font-size:23px}.dashboard .dashboard-card,#history .dashboard-card{position:relative;isolation:isolate;display:block;text-decoration:none;border:0;padding:0;border-radius:22px;background:linear-gradient(145deg,#143d2bec,#164d37ad),url('/golf-landscape.svg') center 62%/cover;box-shadow:0 5px 18px #163b2912;color:white;overflow:hidden;text-align:left}.dashboard .dashboard-card:hover,#history .dashboard-card:hover{box-shadow:0 8px 23px #163b2924}.game-cover-content{padding:20px}.game-state{display:inline-block;font-size:10px;letter-spacing:1px;font-weight:750;background:#ffffff22;border:1px solid #ffffff33;border-radius:20px;padding:5px 9px;margin-bottom:13px}.card .game-title{display:block;font-size:23px;line-height:1.2;overflow-wrap:anywhere}.card .game-course{color:#fff;font-size:15px;font-weight:650;margin-top:8px}.card .game-date{color:#dcebdd;font-size:12px}.card .game-result{color:#fff;margin-top:10px;font-weight:650;line-height:1.4}.game-friends{display:flex;align-items:center;gap:0;margin-top:17px;min-width:0}.game-friends .player-avatar{width:28px;height:28px;flex:0 0 28px;border:2px solid white;font-size:10px;margin-left:-6px}.game-friends .player-avatar:first-child{margin-left:0}.game-friends>.game-friend-names{font-size:11px;margin-left:9px;line-height:1.4;color:#eef5ed;overflow-wrap:anywhere}.game-open{display:block;padding:11px 14px;background:#fff;color:#12633f;border-radius:12px;text-align:center;font-size:14px;font-weight:750;margin-top:17px}.home-nav{background:#fffffffa;box-shadow:0 -4px 18px #183b290a;border-top:1px solid #eaf0ec}.home-nav button{color:#7a847e}.home-nav button[aria-pressed=true]{color:#08784e}.home-nav .play-button{background:#08784e;color:white!important;border-radius:17px;box-shadow:0 3px 10px #08784e22}.dashboard-stats button{border-radius:17px;box-shadow:0 3px 13px #163b2908}.dashboard-empty{color:#6c7d72;font-size:14px;line-height:1.5}@media(max-width:360px){.personal-summary{padding:18px 14px}.personal-summary #personalName{font-size:23px}.personal-summary .player-avatar{width:48px;height:48px;flex-basis:48px}.personal-metrics>div{padding:10px}.personal-metrics strong{font-size:22px}.game-cover-content{padding:17px}.card .game-title{font-size:21px}}
.home-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.tournament-page h1{font-size:30px}.tournament-page .section-heading{align-items:center}.tournament-cover,.tournament-list-card{border:0!important;border-radius:22px;background:linear-gradient(145deg,#143d2be8,#164d37ad),url('/golf-landscape.svg') center/cover!important;color:white!important;padding:22px;margin:16px 0;overflow:hidden}.tournament-cover[style*="--tournament-cover"],.tournament-list-card[style*="--tournament-cover"]{background-image:var(--tournament-cover)!important}.tournament-cover h2{font-size:27px;overflow-wrap:anywhere}.tournament-cover img,.tournament-list-card img{width:60px;height:60px;object-fit:contain;border-radius:12px;background:white;margin-bottom:12px}.tournament-list-card small{color:#e5efe5}.tournament-actions{display:flex;flex-wrap:wrap;gap:8px}.tournament-actions>*{flex:1 1 140px;text-align:center;justify-content:center;font-size:13px}.tournament-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:22px 0;border-bottom:1px solid #e4ece5}.tournament-tabs button{border:0;background:white;padding:13px 3px;font-size:12px;color:#728277;min-height:44px}.tournament-tabs button[aria-pressed=true]{color:#08784e;border-bottom:3px solid #08784e;font-weight:750}.tournament-person,.tournament-rank{display:grid;width:100%;gap:5px;background:white;border:1px solid #e0e9e4;padding:14px;border-radius:14px;color:#173a2c;text-align:left;margin:10px 0;overflow-wrap:anywhere}.tournament-person small,.tournament-rank small{color:#64776d;line-height:1.5}.tournament-rank{grid-template-columns:minmax(0,1fr) auto}.tournament-rank small{grid-column:1/-1}.tournament-average{font-size:20px;font-weight:750;color:#08784e}.tournament-rule-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px}.tournament-reports{margin-top:25px;padding:18px;background:#f7faf8;border-radius:18px}.tournament-reports label{display:block;margin:12px 0;font-size:14px}.tournament-reports select{width:100%;padding:12px;font-size:16px;border:1px solid #dce6df;border-radius:12px}.tournament-reports .two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tournament-reports a{text-align:center;text-decoration:none}.profile-dialog textarea{display:block;width:100%;min-height:90px;resize:vertical;border:1px solid #dce6df;border-radius:12px;padding:12px;font:inherit;font-size:16px;color:#173a2c}.profile-dialog input[type=checkbox]{width:auto;min-height:20px;margin-right:8px}.tournament-course-option{padding:10px 0;border-bottom:1px solid #edf1ee}.tournament-course-option label{display:flex;align-items:center;gap:6px;margin:8px 0;font-size:14px}.tournament-nine{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 20px}.tournament-nine div{background:#f1f6f1;padding:12px 4px;border-radius:12px;text-align:center}.tournament-nine small{display:block;color:#697e70;font-size:11px}.tournament-nine strong{font-size:22px}.tournament-score-grid h3{font-size:17px}#tournamentNotice,#tfError,#tpError,#tcError{color:#a03828}#tpReceiptView{max-width:100%;max-height:230px;object-fit:contain}#tcReview label{display:block}#tournamentFormDialog .primary,#tournamentPlayerDialog .primary{width:100%;justify-content:center}#tournamentContent>label{display:block;margin:12px 0}#tournamentContent select{width:100%;padding:12px;border:1px solid #dce6df;border-radius:12px;font-size:16px}#tournamentContent textarea{width:100%;min-height:90px;padding:12px;font-size:16px}@media(max-width:360px){.home-nav button{font-size:10px;padding-left:2px;padding-right:2px}.tournament-tabs button{font-size:11px}}

/* Explicit colors beat the old white navigation override. */
#homeNav #navPlay{background:#08784e!important;color:#fff!important;border:1px solid #08784e;border-radius:17px;box-shadow:0 3px 10px #08784e22}#homeNav #navPlay[aria-pressed=true]{background:#066342!important;color:#fff!important}#navPlay svg{display:block;stroke:currentColor;flex:none;width:26px;height:26px}#navPlay span{color:inherit}.home-nav.without-tournaments{grid-template-columns:repeat(4,minmax(0,1fr))}.game-friends .player-avatar{width:32px;height:32px;min-width:32px;max-width:32px;flex:0 0 32px;aspect-ratio:1;border-radius:50%;object-fit:cover;overflow:hidden;margin-left:0}.game-friends{gap:6px}.game-friends>.game-friend-names{margin-left:4px;min-width:0}.friends-shortcut{width:100%;margin:10px 0 0}.friend-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eef2ef}.friend-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;object-fit:cover;background:#e6f2ea;color:#146644;font-weight:750}.friend-row small{display:block;color:#6e7e74;margin-top:4px}#friendInviteResult input,.registration input,.registration select{width:100%;box-sizing:border-box;font-size:16px;min-height:48px;padding:12px;border:1px solid #ccdacf;border-radius:12px}#friendInviteResult{margin:16px 0}#friendsDialog .primary{width:100%;justify-content:center}#friendsNotice,#registerError{overflow-wrap:anywhere}#registerError{color:#a23826}.registration{max-width:460px;padding:28px 0}.registration-logo{width:68px;height:68px;object-fit:contain}.registration h1{font-size:28px}.registration .profile-dialog{width:100%;padding:0;overflow:visible;max-height:none}.registration .primary{display:flex;width:100%;justify-content:center;margin:14px 0}#registerSuccess input{font-size:13px}.retire-trial{margin-top:14px;width:100%;color:#993d29}

/* Photographic covers: stored with each round; profile uses a fixed backdrop. */
.personal-summary{background:linear-gradient(180deg,#0a211b22,#0a211baa),var(--profile-cover,url('/images/golf/golf-13.webp')) center 55%/cover}
.dashboard .dashboard-card,#history .dashboard-card{background:linear-gradient(180deg,#09231a55,#09231ab3),var(--round-cover,url('/images/golf/golf-01.webp')) center/cover}
.tournament-cover,.tournament-list-card{background:linear-gradient(180deg,#09231a55,#09231ab3),url('/images/golf/golf-01.webp') center/cover!important}
.tournament-cover[style],.tournament-list-card[style]{background:var(--tournament-cover) center/cover!important}

/* Phone forms: one scrolling body, reachable close/save controls, compact fields. */
.profile-dialog.phone-dialog{box-sizing:border-box;width:calc(100% - 20px);max-width:480px;margin:auto;padding:0;border:1px solid #e2e9e5;border-radius:22px;max-height:90vh;max-height:calc(100dvh - 24px - env(safe-area-inset-top));overflow:hidden;box-shadow:0 16px 50px #153c3026}
.phone-dialog[open],.phone-dialog>form{display:flex;flex-direction:column;min-height:0}
.phone-dialog>form{margin:0;max-height:inherit;overflow:hidden}
.phone-dialog .phone-heading{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 16px;margin:0;border-bottom:1px solid #edf1ee;background:#fff}
.phone-dialog .phone-heading h2{margin:0;font-size:19px;line-height:1.25;min-width:0}
.phone-dialog .phone-heading button.subtle{flex:0 0 auto;padding:8px 12px;font-size:13px;min-height:44px;margin:0}
.phone-dialog .phone-body{min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px;flex:1 1 auto}
.phone-dialog .phone-footer{flex:0 0 auto;margin:0;padding:10px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e8eeea;background:#fff}
.phone-dialog .phone-footer p{margin:0 0 8px;font-size:13px;overflow-wrap:anywhere}.phone-dialog .phone-footer p:empty{display:none}
.phone-dialog .primary,.tournament-page .primary{background:linear-gradient(145deg,#138563,#096c50);color:#fff;border:1px solid #08704f;border-radius:13px;min-height:44px;box-shadow:0 3px 9px #08734f18;padding:10px 14px;font-weight:650;font-size:14px;line-height:1.35;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;box-sizing:border-box;margin:0}
.phone-dialog button.subtle,.tournament-page button.subtle,.tournament-actions a.subtle{border-radius:13px;border:1px solid #dee7e1;background:#f8faf9;box-shadow:0 2px 6px #163a2c05;color:#214c3b;min-height:44px;padding:10px 12px;font-size:14px;margin:0}
.phone-dialog .phone-section{margin:0 0 12px;min-width:0}.phone-dialog .phone-section h3{margin:0 0 12px;font-size:14px;color:#52695c}
.phone-dialog details.phone-section{border:1px solid #e3ebe6;border-radius:14px;padding:0 12px;background:#fff}
.phone-dialog details.phone-section>summary{padding:13px 0;min-height:44px;font-size:14px;font-weight:650;cursor:pointer;box-sizing:border-box}
.phone-dialog details.phone-section[open]>.compact-fields{padding-bottom:14px}
.phone-dialog .compact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;min-width:0}
.phone-dialog .compact-fields>.wide{grid-column:1/-1}
.phone-dialog label.compact-field{display:block;margin:0;min-width:0;font-size:13px;font-weight:600;line-height:1.35;color:#355344}
.phone-dialog .compact-field input,.phone-dialog .compact-field select,.phone-dialog .compact-field textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;display:block;font-family:inherit;font-size:16px;line-height:1.25;border:1px solid #d8e3dc;border-radius:10px;background:#fcfdfc;color:#173a2c;margin:5px 0 0;padding:10px;min-height:44px;height:44px}
.phone-dialog .compact-field textarea{height:auto;min-height:80px;resize:vertical}.phone-dialog #tfRules{height:104px;min-height:80px}
.phone-dialog input[type=date]::-webkit-date-and-time-value{text-align:left}.phone-dialog input[type=date]::-webkit-datetime-edit{padding:0}
.phone-dialog .compact-field input[type=checkbox]{display:inline-block;width:20px;min-height:20px;height:20px;vertical-align:middle;margin:0 6px 0 0;padding:0}
.phone-dialog input[type=file]{height:auto;min-height:44px;overflow:hidden;font-size:13px;padding:7px}
.phone-dialog input[type=file]::file-selector-button{border:0;border-radius:7px;background:#eaf2ed;color:#24513a;padding:7px 10px;font:inherit;margin-right:8px}
.phone-dialog .tournament-course-option label{display:flex;margin:8px 0;font-size:13px}.phone-dialog .tournament-course-option input[type=checkbox]{width:20px;min-height:20px;height:20px;margin:0;flex:0 0 20px;padding:0}
.phone-dialog #tfCourses{min-width:0;overflow-wrap:anywhere}.phone-dialog .hint{font-size:12px;line-height:1.4;margin:6px 0}
#friendsDialog #createFriendInvite{width:auto;margin:0 0 12px}#friendsDialog #friendInviteResult{margin:0 0 12px;padding:12px;background:#f5f9f6;border:1px solid #e2ebe5;border-radius:14px}
#friendsDialog .invite-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#friendsDialog .invite-actions>*{width:100%;min-width:0;font-size:13px}
#friendsDialog .invite-link summary,#friendsDialog .invite-management summary{font-size:12px;color:#667d6d;padding:10px 0;cursor:pointer;min-height:44px;box-sizing:border-box}
#friendsDialog #friendInviteLink{font-size:13px;min-height:40px;padding:9px;margin:0;max-width:100%}#friendsDialog #friendsNotice{font-size:13px;line-height:1.4;margin:0 0 12px}#friendsDialog #friendsNotice:empty{display:none}
#friendsDialog .friend-row{padding:10px 0;gap:10px}#friendsDialog .friend-row>div{min-width:0;overflow-wrap:anywhere}#friendsDialog .friend-row strong{font-size:14px}#friendsDialog .friend-row small{font-size:12px;margin-top:3px}
#friendsDialog .invite-management{margin-top:12px;border-top:1px solid #edf1ee}#friendsDialog #revokeFriendInvites{font-size:12px;color:#99513f;width:100%}
html:has(.phone-dialog[open]){overflow:hidden;overscroll-behavior:none}
.phone-dialog input:focus-visible,.phone-dialog select:focus-visible,.phone-dialog textarea:focus-visible{outline:2px solid #278666;outline-offset:2px}
@media(max-width:359px){.phone-dialog .compact-field:has(input[type=date]){grid-column:1/-1}.phone-dialog .phone-body{padding:12px}.phone-dialog .phone-heading{padding:12px}.phone-dialog .phone-heading h2{font-size:17px}}

/* Friends: compact mobile lists, readonly profiles and accessible notification controls. */
.friend-search-label{display:block;font-size:13px;font-weight:600;margin:0 0 10px!important}.phone-dialog #friendSearch{font-size:16px;min-height:44px;padding:10px;margin-top:6px;width:100%;box-sizing:border-box}
.friend-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #e0e9e3;margin:12px 0}.friend-tabs button{min-height:44px;padding:10px 3px;border:0;background:white;font-size:13px;color:#64786b}.friend-tabs button[aria-pressed=true]{color:#08784e;border-bottom:3px solid #08784e;font-weight:700}
#friendsDialog .friend-row{flex-wrap:wrap}#friendsDialog .friend-row>div:not(.friend-actions){flex:1;min-width:110px}#friendsDialog .friend-row .friend-actions{flex:1 0 100%;justify-content:flex-end;padding-left:52px}.friend-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.friend-actions>*{max-width:100%;font-size:13px}.friend-actions small{color:#6d7c72}.friend-actions button{min-height:44px}
#friendsDialog h3,#friendProfileDialog h3{font-size:15px;margin:18px 0 8px}#friendNotificationsList button{display:block;width:100%;text-align:left;margin:8px 0;overflow-wrap:anywhere}
.friend-bell,.friends-bell{display:inline-flex;align-items:center;justify-content:center;position:relative;min-width:44px;min-height:44px;background:#fff;border:1px solid #e2ebe5;border-radius:14px;margin:8px 0}.friends-bell svg{width:22px;height:22px;fill:none;stroke:#214c3b;stroke-width:1.8}.friends-bell span{margin-left:5px;background:#08784e;color:#fff;border-radius:12px;min-width:20px;padding:3px;font-size:12px;text-align:center}
#friendsPlayingSection{margin:16px 0}#friendsPlayingSection h2{font-size:18px}.friend-playing-card,.friend-history-row{display:block;background:#f7faf8;border:1px solid #e2eae5;border-radius:14px;padding:12px;margin:10px 0;color:#224934;text-decoration:none}.friend-playing-card small,.friend-history-row small{display:block;font-size:12px;color:#687d6e;margin-top:5px}.friend-history-row a{display:inline-block;margin-top:10px;font-size:13px}
.friend-add{display:inline-flex;align-items:center;min-height:44px;padding:6px 9px;border:1px solid #dfe9e2;background:#f7faf8;color:#08784e;border-radius:10px;font:600 11px 'DM Sans',sans-serif;margin-top:5px;max-width:100%;white-space:normal}.board-row .friend-add{display:flex}.phone-dialog #friendProfileNotice{font-size:13px;color:#9d422e;overflow-wrap:anywhere}.phone-dialog #friendProfileNotice:empty{display:none}
.friend-photo-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;font-size:12px;margin:10px 0}.friend-photo-scores span{padding:8px;background:white;border-radius:8px}

/* Compact personal overview and invitation actions for phones. */
.dashboard-stats[hidden]{display:none!important}
.personal-summary{min-height:210px;padding:20px 16px 14px}
.personal-heading{display:flex;align-items:flex-start;gap:10px}.personal-heading #personalIdentity{flex:1;min-width:0}.personal-heading #personalIdentity>span:last-child{min-width:0}
.personal-summary #personalName{font-size:24px}.personal-heading #friendsBell{flex:0 0 44px;width:44px;min-height:44px;padding:10px;justify-content:center;background:#ffffff20;border:1px solid #ffffff38;border-radius:50%;margin:0;position:relative;box-shadow:none}.personal-heading #friendsBell[hidden]{display:none}
.personal-metrics{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:0;margin-top:36px;padding:10px 0;border-radius:16px;background:#ffffffed;box-shadow:0 4px 16px #0000000d;color:#173e2c}
.personal-metrics>div,.personal-metrics>#homeFriends{background:transparent;padding:0 8px;box-shadow:none;border-radius:0;text-align:center;min-width:0;color:#173e2c;border:0}
.personal-metrics>div{border-left:1px solid #173e2c15}.personal-metrics strong{font-size:19px;line-height:1.15}.personal-metrics span{font-size:10px;margin-top:3px;color:#61766b}.personal-metrics #homeFriends{display:flex;flex-direction:column;gap:0;align-items:center;justify-content:center;min-height:54px}.personal-metrics #homeFriends strong{font-size:17px}
#homeFriendAvatars{display:flex;margin:0 0 4px;min-height:22px;justify-content:center}#homeFriendAvatars:empty{display:none}#homeFriendAvatars .friend-avatar{width:24px;height:24px;flex:0 0 24px;font-size:9px;border:2px solid #fff;margin:0 0 0 -6px;color:#146644}#homeFriendAvatars .friend-avatar:first-child{margin-left:0}
.home-social-actions{display:flex;gap:10px;margin:12px 0 20px}.home-social-actions #friendsShortcut,.home-social-actions #homeInviteQR{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0;border:1px solid #dfe9e3;border-radius:16px;background:#fff;color:#205d43;box-shadow:0 3px 12px #153d2c0a;font-weight:650;font-size:14px}.home-social-actions #friendsShortcut{flex:1;padding:12px 16px;width:auto}.home-social-actions #homeInviteQR{flex:0 0 50px;padding:12px}.home-social-actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.home-social-actions button:active{background:#eff6f1;transform:translateY(1px)}
#friendInviteQRImage{background:#fff;padding:12px;border-radius:16px;max-width:300px;margin:12px auto}#friendInviteQRImage svg{display:block;width:100%;height:auto}#friendInviteQRNotice{text-align:center;color:#61766b;font-size:14px}.invite-actions{display:flex;flex-wrap:wrap;gap:8px}.invite-actions>*{flex:1;min-width:100px}
@media(max-width:360px){.personal-summary #personalName{font-size:21px}.personal-metrics>div,.personal-metrics>#homeFriends{padding:0 5px}.personal-metrics strong{font-size:18px}}

/* Quiet mobile home: one play action and a low profile statistics strip. */
.personal-summary{min-height:190px;padding-bottom:12px}.personal-metrics{grid-template-columns:1.5fr 1fr 1fr;margin-top:30px;padding:6px 0;border-radius:14px;align-items:center}.personal-metrics>div{min-height:40px;display:flex;flex-direction:column;justify-content:center}.personal-metrics #homeFriends{flex-direction:row;gap:5px;min-height:40px;padding:0 6px}.personal-metrics #homeFriends>span:last-child{margin:0;font-size:11px}.personal-metrics #homeFriends strong{font-size:17px}.personal-metrics strong{font-size:18px}#homeFriendAvatars{margin:0 2px 0 0;min-height:22px}#homeFriendAvatars .friend-avatar{width:22px;height:22px;flex-basis:22px;margin-left:-10px;font-size:8px}.home-social-actions{margin:14px 0 18px}.home-social-actions #friendsShortcut{border-radius:14px;min-height:46px;font-weight:600;box-shadow:0 2px 8px #153d2c07}
#friendsPlayingSection{margin:0 0 22px}#friendsPlayingSection h2{display:flex;align-items:center;gap:7px;font-size:16px;font-weight:650;margin:0 0 12px}#friendsPlayingSection h2 svg{width:19px;height:19px;fill:none;stroke:#357256;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#friendsPlaying{display:flex;gap:15px;overflow-x:auto;padding:2px 1px 6px;scrollbar-width:thin}.friends-playing-empty{font-size:13px;color:#78847e;margin:0;line-height:1.5}.friend-playing-player{flex:0 0 82px;width:82px;display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:#234d3a;text-align:center;border-radius:12px;padding:3px}.friend-playing-portrait{position:relative;display:block;padding:3px;border:1.5px solid #378d62;border-radius:50%;margin-bottom:3px}.friend-playing-portrait .friend-avatar{width:48px;height:48px;flex-basis:48px;font-size:14px}.friend-live-dot{position:absolute;right:0;bottom:1px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#378d62}.friend-playing-player strong{font-size:12px;overflow-wrap:anywhere}.friend-playing-player small{font-size:10px;color:#76837b;line-height:1.3}.friend-playing-course{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#navPlay svg{stroke-width:1.5}
@media(max-width:360px){.personal-metrics #homeFriends{gap:3px;padding:0 3px}.personal-metrics #homeFriends>span:last-child{font-size:10px}.personal-metrics>div{padding:0 4px}.personal-metrics strong{font-size:17px}}

#round .upload-card{display:flex;flex-wrap:wrap;gap:10px;background:#fff;border:1px solid #e2eae5;border-radius:14px;padding:14px;margin:16px 0}#round .upload-card[hidden]{display:none!important}#round .upload-card h2{font-size:17px}#round .upload-card p,#round .upload-icon{display:none}#round .upload-card .photo-label{padding:12px;font-size:13px}#round .round-heading h1{font-size:25px;line-height:1.2}#round .round-heading{margin-bottom:16px}#round .photo-result-cards{overflow:visible;border:0}.photo-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.photo-result-actions:empty{display:none}.photo-result-actions .subtle{font-size:12px;min-height:40px}.photo-result-actions small{flex-basis:100%;font-size:11px}.photo-position{display:grid;grid-template-columns:26px 1fr;gap:5px 10px;padding:12px 0;border-bottom:1px solid #e9eeeb;color:#234a37}.photo-position>span:last-child{grid-column:2;font-size:12px;color:#6c7b72}.photo-player-name{font-size:14px;font-weight:650}#photoCourseDialog form{display:grid;gap:12px}#photoCourseDialog label{display:block;font-size:13px;margin:8px 0}#photoCourseDialog input,#photoCourseDialog select{width:100%;min-height:44px;font-size:16px;box-sizing:border-box}#round .saved-scorecard table{min-width:300px}#round .score-mark{width:20px;min-width:20px;height:20px}#round .photo-hcp{font-size:12px;color:#6c7b72}

/* Tournament workspace: organizer desktop, participant phone view. */
.tournament-page [hidden]{display:none!important}
.tournament-page .section-heading h1{font-size:28px;margin:0}.tournament-page .section-heading .eyebrow{font-size:10px;margin-bottom:5px}
#tournamentNotice:empty{display:none}#tournamentNotice{font-size:14px;line-height:1.5}
.tournament-cover{display:flex;align-items:center;gap:18px;padding:20px}.tournament-cover img{flex:0 0 60px;margin:0}.tournament-cover p{margin:8px 0;font-size:13px}.tournament-cover span,.tournament-cover small{display:block;font-size:12px;line-height:1.6}.tournament-cover small{color:#dceade}
.tournament-workspace{min-width:0}.tournament-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:16px 0;border:0}.tournament-tabs button{border:1px solid #e3ebe6;border-radius:10px;padding:10px 6px;line-height:1.3;min-width:0}.tournament-tabs button[aria-pressed=true]{border:1px solid #b8d5c6;background:#edf6f0;color:#086344}
.tournament-panel{min-width:0}.tournament-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 14px}.tournament-panel-heading h3{font-size:20px;margin:0}.tournament-panel-heading span{color:#718378;font-size:12px}
.tournament-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.tournament-filters .tournament-search{grid-column:1/-1}.tournament-filters label{font-size:12px;min-width:0;color:#57705f}.tournament-filters input,.tournament-filters select{display:block;width:100%;min-width:0;min-height:44px;padding:9px 10px;font:inherit;font-size:16px;color:#234b37;border:1px solid #dce7df;border-radius:10px;background:white;margin-top:5px}
.tournament-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.tournament-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:86px;border:1px solid #e3eae6;background:#fff;border-radius:14px;padding:14px;text-align:left;color:#214c37;box-shadow:0 2px 8px #173a2c05}.tournament-kpi strong{font-size:26px;font-weight:650}.tournament-kpi span{font-size:12px;line-height:1.4;color:#718378}
.tournament-summary{background:#fff;border:1px solid #e5ece7;padding:16px;border-radius:14px;margin-bottom:14px}.tournament-summary h4{font-size:15px;margin:0 0 12px}.tournament-summary p{font-size:14px;line-height:1.5}.tournament-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:0;font-size:13px}.tournament-facts dt{color:#708176}.tournament-facts dd{margin:0;text-align:right;color:#254d38;overflow-wrap:anywhere}.tournament-rules{border:1px solid #e5ece7;border-radius:14px;padding:0 16px}.tournament-rules summary{padding:15px 0;cursor:pointer;font-size:14px;font-weight:600}.tournament-empty{padding:24px 16px;border:1px dashed #dce6df;border-radius:14px;color:#758578;font-size:14px;line-height:1.5}
.tournament-table-wrap{min-width:0}.tournament-table{width:100%;border-collapse:collapse;font-size:14px}.tournament-table th{text-align:left;color:#718378;font-size:12px;font-weight:600;background:#f8faf9;padding:12px}.tournament-table td{border-bottom:1px solid #edf1ee;padding:12px;vertical-align:middle;overflow-wrap:anywhere}.tournament-table small{display:block;font-size:12px;color:#718378;margin-top:5px}.tournament-identity{display:flex;gap:10px;align-items:center;min-width:0}.tournament-identity img,.tournament-initials{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;object-fit:cover;border-radius:50%;background:#edf5f0;color:#47775c;font-size:11px}.tournament-name-action{background:none;border:0;text-align:left;color:#175c3b;font-weight:650;min-height:44px;padding:5px 0}.tournament-status{display:inline-block;border-radius:20px;background:#f1f4f2;color:#6a7a70;font-size:11px;padding:6px 10px;line-height:1.25}.tournament-status.accepted{background:#e9f5ed;color:#247349}.tournament-status.pending{background:#fff5df;color:#8d681a}.tournament-status.rejected{background:#fff0ed;color:#965442}.tournament-status.live{background:#eaf4f7;color:#3b7381}
.tournament-round{border:1px solid #e3ebe6;border-radius:14px;padding:16px;margin-bottom:12px}.tournament-round-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.tournament-round-link{font-size:17px;color:#214f37;font-weight:650;text-decoration:none}.tournament-round .hint{margin:7px 0 14px}.tournament-round-group{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid #edf1ee;font-size:13px;line-height:1.5}.tournament-round-group span{overflow-wrap:anywhere;color:#718378}.tournament-round>small{display:block;color:#718378;font-size:11px;margin-top:10px}
.tournament-reports{margin:0;background:white;border:1px solid #e3ebe6}.tournament-reports a{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #dce7df;background:#f8faf9;border-radius:12px;padding:10px;font-size:13px;box-shadow:0 2px 6px #173a2c05}
.tournament-score-wrap{overflow:auto;margin:10px 0 20px;border:1px solid #e2ebe5;border-radius:12px}.tournament-score-table{width:100%;min-width:380px;border-collapse:collapse;font-size:11px;text-align:center}.tournament-score-table th,.tournament-score-table td{padding:9px 3px;border-bottom:1px solid #edf2ee}.tournament-score-table th:first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:46px;text-align:left;padding-left:7px}.tournament-score-table thead{background:#f4f8f5}.tournament-score-table td:last-child{font-weight:750;background:#f4f8f5}.tournament-score-mark{display:inline-grid;place-items:center;width:24px;height:24px;font-weight:650}.tournament-score-mark[data-result=birdie],.tournament-score-mark[data-result=eagle]{border:1px solid #d6904d;border-radius:50%;background:#fff2e3;color:#9b6228}.tournament-score-mark[data-result=eagle]{box-shadow:0 0 0 2px #fff2e3,0 0 0 3px #d6904d}.tournament-score-mark[data-result=bogey],.tournament-score-mark[data-result=double]{border:1px solid #90aeb9;background:#edf3f6;color:#496d7e}.tournament-score-mark[data-result=double]{box-shadow:0 0 0 2px #edf3f6,0 0 0 3px #90aeb9}
@media(max-width:959px){.tournament-table thead{display:none}.tournament-table,.tournament-table tbody{display:block}.tournament-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0 0 12px;padding:14px;border:1px solid #e3ebe6;border-radius:14px}.tournament-table td{display:block;border:0;padding:0;min-width:0}.tournament-table td:before{content:attr(data-label);display:block;font-size:10px;color:#7d8b81;margin-bottom:5px}.tournament-table td:first-child{grid-column:1/-1;font-weight:650}.tournament-table td:last-child{align-self:end}.tournament-table td .subtle{width:100%;padding:8px}.tournament-table .tournament-name-action{min-height:32px;padding:0}}
@media(min-width:960px){body:has(#tournamentsPage.organizer-view:not(.hidden)) main{max-width:1280px;width:calc(100% - 64px)}.organizer-view #tournamentList{grid-template-columns:repeat(3,minmax(0,1fr))}.organizer-view .tournament-list-card{margin:0;min-height:150px}.organizer-view .tournament-cover{padding:24px 28px;margin:16px 0;min-height:140px}.organizer-view .tournament-cover h2{font-size:32px}.organizer-view .tournament-cover img{width:76px;height:76px;flex-basis:76px}.organizer-view .tournament-actions{justify-content:flex-end}.organizer-view .tournament-actions>*{flex:0 0 auto}.organizer-view .tournament-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px;margin-top:24px;align-items:start}.organizer-view .tournament-tabs{display:flex;flex-direction:column;gap:6px;margin:0;position:sticky;top:20px;padding:12px;background:#f8faf9;border:1px solid #e7ede9;border-radius:16px}.organizer-view .tournament-tabs button{text-align:left;font-size:14px;background:transparent;border:1px solid transparent;padding:13px 12px}.organizer-view .tournament-tabs button[aria-pressed=true]{background:white;border-color:#dce8e0;box-shadow:0 2px 6px #173a2c07}.organizer-view .tournament-panel{padding:22px;background:#fff;border:1px solid #e7ede9;border-radius:16px;min-height:440px}.organizer-view .tournament-panel-heading{margin:0 0 20px}.organizer-view .tournament-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.organizer-view .tournament-filters{display:flex;flex-wrap:wrap}.organizer-view .tournament-filters label{flex:1 1 160px}.organizer-view .tournament-filters .tournament-search{flex:2 1 230px}.organizer-view .tournament-summary{padding:20px}.organizer-view .tournament-facts{grid-template-columns:220px minmax(0,1fr);max-width:680px}.organizer-view .tournament-facts dd{text-align:left}.organizer-view .tournament-table button.subtle{font-size:12px;min-height:36px;padding:8px 10px;white-space:nowrap}.organizer-view .tournament-table td{padding:14px 10px}.participant-view{max-width:480px;margin:0 auto}.participant-view .tournament-table thead{display:none}.participant-view .tournament-table,.participant-view .tournament-table tbody{display:block}.participant-view .tournament-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 12px;padding:14px;border:1px solid #e3ebe6;border-radius:14px}.participant-view .tournament-table td{display:block;border:0;padding:0;min-width:0}.participant-view .tournament-table td:before{content:attr(data-label);display:block;font-size:10px;color:#7d8b81;margin-bottom:5px}.participant-view .tournament-table td:first-child{grid-column:1/-1}body:has(#tournamentsPage.organizer-view:not(.hidden)) :is(#tournamentFormDialog,#tournamentPlayerDialog){max-width:760px}body:has(#tournamentsPage.organizer-view:not(.hidden)) :is(#tournamentFormDialog,#tournamentPlayerDialog) .phone-body{padding:24px}body:has(#tournamentsPage.organizer-view:not(.hidden)) :is(#tournamentFormDialog,#tournamentPlayerDialog) .compact-fields{gap:16px 20px}}
#personalWhatsAppQRImage{max-width:280px;margin:15px auto;background:#fff}#personalWhatsAppQRImage svg{display:block;width:100%;height:auto}#personalWhatsAppCode{font-size:30px;letter-spacing:5px;text-align:center;color:#175d3d;background:#f1f7f3;padding:20px 8px;border-radius:14px;margin:16px 0;font-weight:650}#personalWhatsAppStatus{font-size:14px;line-height:1.5}#personalWhatsAppDialog .two{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#markerConnection{margin:14px 0}#markerConnectionStatus{font-size:13px;line-height:1.5}

.profile-photo-editor{position:relative;width:104px;margin:20px auto 24px}.profile-dialog .profile-photo-button{position:relative;display:block;width:104px;height:104px;min-height:104px;padding:4px;border:0;border-radius:50%;background:#f2f6f3;box-shadow:0 4px 14px #173a2c12;color:#173a2c;cursor:pointer}.profile-photo-button .profile-avatar{display:block;margin:0;width:96px;height:96px}.profile-photo-button .player-avatar{width:96px;height:96px;min-width:96px;border-radius:50%;object-fit:cover}.profile-photo-plus{position:absolute;right:0;bottom:0;width:30px;height:30px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;background:#176b49;color:#fff;box-shadow:0 2px 6px #173a2c26}.profile-photo-plus svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;stroke-linecap:round}.profile-photo-button:focus-visible{outline:3px solid #87ba9f;outline-offset:4px}.profile-dialog input#profilePhoto[hidden]{display:none}.profile-photo-options{position:absolute;right:-44px;top:36px;margin:0;border:0;padding:0}.profile-photo-options summary{display:grid;place-items:center;width:40px;height:40px;padding:0;list-style:none;border-radius:50%;cursor:pointer;color:#75857d}.profile-photo-options summary::-webkit-details-marker{display:none}.profile-photo-options summary svg{width:20px;height:20px;fill:currentColor}.profile-photo-options[open]{z-index:2}.profile-photo-options button{position:absolute;right:0;top:42px;white-space:nowrap;background:#fff;box-shadow:0 4px 16px #173a2c1c}.profile-photo-options[hidden]{display:none}
.handicap-panel,.card,.panel,.rank-row,.friend-playing-card,.friend-history-row,.tournament-panel{box-shadow:0 2px 4px #173a2c06,0 7px 20px #173a2c09}
#playersPage .handicap-panel{border-color:#dce9e1;border-radius:16px;padding:6px 16px}
#handicapList .handicap-row{border-top:0;border-bottom:1px solid #add6bd;padding:13px 0;background:#fff;gap:12px}
#handicapList .handicap-row:last-child{border-bottom:0}
#handicapList .handicap-row>span:not(.player-avatar){flex:1;text-align:left}
#handicapList .handicap-row>strong{font-size:20px;color:#08784e}
.friend-row,#friendsDialog .friend-row{border-bottom:1px solid #add6bd;padding:13px 0}
.friend-row:last-child{border-bottom:0}
.friend-playing-card,.friend-history-row{background:#fff;border-color:#dce9e1;box-shadow:0 2px 4px #173a2c06,0 5px 15px #173a2c08}
.dashboard-card,.tournament-list-card{box-shadow:0 3px 7px #173a2c0a,0 8px 22px #173a2c12}
.photo-position{border-bottom-color:#add6bd}
.photo-position:last-child{border-bottom:0}
@media(max-width:540px){#playersPage .handicap-panel{padding:4px 12px}#handicapList .handicap-row{gap:10px;font-size:14px}#handicapList .handicap-row>strong{font-size:19px}}

/* Tournament confirmation controls stay within the phone card. */
#tcConfirmations{display:grid;gap:10px;margin:16px 0;min-width:0}
#tcConfirmations p{margin:0;font-size:.88rem;overflow-wrap:anywhere}
#tcConfirmations select,#tcConfirmations input,#tcConfirmations textarea{box-sizing:border-box;max-width:100%;width:100%;font-size:16px}
#tcConfirmations details{border-top:1px solid #d9e7de;padding-top:10px}
#tcConfirmations details[open]{display:grid;gap:10px}
#tcConfirmations button{min-height:44px;border-radius:12px}
.tournament-status.accepted{white-space:normal}
@media(max-width:600px){
 #tournamentCardDialog .tournament-score-table{min-width:0;table-layout:fixed;font-size:clamp(9px,2.65vw,11px)}
 #tournamentCardDialog .tournament-score-table th,#tournamentCardDialog .tournament-score-table td{padding:8px 1px}
 #tournamentCardDialog .tournament-score-table th:first-child{position:static;min-width:0;width:36px;padding-left:3px}
 #tournamentCardDialog .tournament-score-mark{width:14px;height:18px;box-sizing:border-box}
 #tournamentCardDialog .tournament-score-wrap{overflow:hidden}
}

#profileWhatsAppOptIn{width:20px;min-height:20px;display:inline-block;vertical-align:middle;margin-right:6px}
/* Photo analysis is temporarily disabled; layout styles must respect hidden. */
#camera[hidden],#start[hidden],.upload-card[hidden]{display:none!important}

.access-whatsapp{display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px 20px;border-radius:16px;background:#176346;color:#fff;font-weight:700;text-decoration:none;box-shadow:0 4px 14px #123c2420;margin:22px 0}.access-whatsapp:focus-visible{outline:3px solid #87bfa1;outline-offset:4px}.login .access-help{font-size:14px;color:#65746b}

#phoneLoginForm{display:grid;gap:10px;text-align:left}#phoneLoginForm :is(input,select,button){width:100%;min-height:48px;font-size:16px;border-radius:12px}#phoneLoginForm :is(input,select){padding:12px;border:1px solid #cbded3;background:#fff;color:#173a2c}#phoneLoginForm [hidden],#phoneLoginNext[hidden]{display:none}#phoneLoginError{color:#9e331c}#phoneLoginNext{margin-top:18px}.access-whatsapp{display:flex;justify-content:center;padding:15px;background:#176346;color:white;border-radius:14px;text-decoration:none;margin-top:15px}

/* Invitation pilot home: prominent permanent cover and clear live cards. */
#personalSummary{position:relative;min-height:300px;padding:24px 20px 16px;border-radius:24px;background:linear-gradient(180deg,#092a1710 15%,#072d2199 68%,#072d21d9),var(--profile-cover) center/cover;box-shadow:0 10px 26px #123c2424;overflow:visible;margin-bottom:22px}
#personalSummary .personal-heading{min-height:188px;align-items:flex-end;padding-right:48px}
#personalSummary #personalIdentity{display:flex;flex-direction:column;align-items:flex-start;gap:14px;text-align:left}
#personalSummary .player-avatar{width:72px;height:72px;flex-basis:72px;border:3px solid #ffffffde;box-shadow:0 4px 12px #0003}
#personalSummary #personalName{font-size:28px;color:#fff;text-shadow:0 2px 8px #0003;line-height:1.15}
#personalSummary #personalGreeting{font-size:14px;color:#fff;font-weight:400}
#personalSummary .personal-metrics{display:grid;grid-template-columns:1.4fr 1fr;margin-top:22px;padding:9px 6px;background:#fffffff5;border-radius:17px;box-shadow:0 7px 18px #001e2317}
#personalSummary .personal-metrics>div:has(#personalRounds){display:none}
#personalSummary .personal-metrics>div,#personalSummary .personal-metrics>#homeFriends{border:0;background:transparent;box-shadow:none;min-height:42px}
#personalSummary .personal-metrics strong{font-size:23px;color:#078854}
#personalSummary .personal-metrics span{color:#42564a}
#homeInviteQR{position:absolute;right:17px;top:150px;width:48px;height:48px;min-height:48px;border:0;border-radius:50%;padding:12px;background:white;color:#078854;box-shadow:0 4px 13px #05271733;z-index:2}
#homeInviteQR svg{width:24px;height:24px;display:block}
.game-card-shell{position:relative;min-width:0}
.game-card-shell .dashboard-card{width:100%;height:100%;box-sizing:border-box}
.game-card-shell .game-open{margin-right:52px}
.game-trash{position:absolute;right:16px;bottom:19px;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #ffffff55;background:#ffffff20;color:white;border-radius:13px;z-index:2;box-shadow:0 3px 8px #05271821}
.game-trash svg{display:block;width:24px;height:24px}
.game-trash:disabled{opacity:.5}
#activeGames .game-cover-content{min-height:212px;padding:22px;box-sizing:border-box}
#activeGames .game-open{background:#08a969;color:white;border-radius:13px;min-height:44px;padding:12px;box-sizing:border-box}
#activeGames .game-title{font-size:22px}
.history-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 24px}
.history-metric{background:#f0f7f2;border:1px solid #dce9e1;border-radius:14px;padding:13px 8px;text-align:center}
.history-metric strong{display:block;color:#08784e;font-size:24px}.history-metric span{font-size:11px;color:#51675a}
@media(max-width:360px){#personalSummary{min-height:280px;padding:20px 14px 14px}#personalSummary #personalName{font-size:24px}#personalSummary .personal-heading{min-height:175px}#homeInviteQR{right:13px;top:137px}#activeGames .game-cover-content{padding:17px}}

/* Personal profile: photographic overview with separate editing and account settings. */
#profileDialog{padding:0;width:min(100vw,520px);max-width:100vw;max-height:94dvh;border:0;border-radius:26px;background:#f5f7f6;box-shadow:0 20px 70px #092a3540;overflow:auto}
#profileDialog #profileForm{margin:0;padding:0}
#profileDialog .play-heading{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;margin:0;padding:12px 18px;background:#fffffff2;border-bottom:1px solid #e7ede9;backdrop-filter:blur(12px)}
#profileDialog .profile-section-title{flex:1;font-size:16px;font-weight:700}
#profileDialog .profile-back{width:42px;min-height:42px;padding:0;border:0;background:white;border-radius:50%;font-size:30px;color:#12523c}
#profileDialog #closeProfile{border:0;min-height:42px;border-radius:22px;background:#eef4f0;padding:8px 16px}
#profileDialog .profile-pane[hidden]{display:none!important}
#profileDialog .profile-hero{height:210px;background-size:cover;background-position:center;position:relative;margin-bottom:48px}
#profileDialog .profile-main-avatar{position:absolute;left:50%;bottom:-42px;transform:translateX(-50%);border:5px solid white;border-radius:50%;background:white;box-shadow:0 8px 24px #17463225}
#profileDialog .profile-main-avatar .player-avatar{display:block;width:100px;height:100px;object-fit:cover;border-radius:50%;font-size:32px}
#profileDialog .profile-identity{text-align:center;padding:8px 22px 16px}
#profileDialog #profileName{font-size:27px;line-height:1.2;margin:10px 0;color:#103d2d;overflow-wrap:anywhere}
#profileDialog .profile-meta{font-size:14px;color:#66776d;margin:8px 0;line-height:1.6}
#profileDialog .profile-menu{margin:0 20px 28px;padding:4px 18px;border-radius:20px;background:white;box-shadow:0 5px 22px #173b2910}
#profileDialog .profile-menu>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:57px;padding:14px 0;margin:0;border:0;border-bottom:1px solid #e9efeb;border-radius:0;background:white;box-shadow:none;color:#194734;text-align:left;font-size:16px}
#profileDialog .profile-menu>button:last-child{border-bottom:0}
#profileDialog .profile-menu>button:after{content:'›';font-size:25px;color:#0aa368;font-weight:400}
#profileDialog #profile-edit,#profileDialog #profile-settings,#profileDialog #profile-stats{padding:22px 20px 30px}
#profileDialog #profile-edit>label{display:block;background:white;padding:14px;margin:0;border-bottom:1px solid #e7ede9;font-size:13px;color:#607568}
#profileDialog #profile-edit input:not([type=checkbox]),#profileDialog #profile-edit select{font-size:16px;border:0;background:transparent;box-shadow:none;padding:9px 0;min-height:44px;color:#183c2c;width:100%}
#profileDialog #profile-edit .two{background:white;padding:12px 14px;margin:0;border-bottom:1px solid #e7ede9}
#profileDialog #saveProfile{width:100%;margin-top:22px;border-radius:16px;min-height:50px}
#profileDialog #profile-settings button{width:100%;margin-bottom:12px;min-height:48px;border-radius:14px}
#profileDialog #logoutProfile{color:#9b3838;background:white;margin-top:24px}
@media(max-width:600px){#profileDialog{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;margin:0;border-radius:0}#profileDialog .play-heading{padding-top:max(12px,env(safe-area-inset-top))}#profileDialog .profile-pane{padding-bottom:env(safe-area-inset-bottom)}}
#profileDialog [hidden]{display:none!important}

#profileDialog #profile-overview>#logoutProfile{display:block;width:calc(100% - 40px);margin:8px 20px 28px;min-height:44px;border:0;background:transparent;box-shadow:none;font-size:13px;color:#7b514e}

/* Mobile controls: no automatic input zoom, safe areas and contained scrolling. */
html{-webkit-text-size-adjust:100%;scroll-padding-bottom:110px}
button,a,input,select,textarea,summary{touch-action:manipulation}
img{max-width:100%}
@media(max-width:700px){
 body{min-height:100dvh}
 main{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;max-width:100%;min-width:0}
 dialog{box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:24px}
 dialog form,dialog label,.panel,.card,.rank-row,.rank-row .name{min-width:0}
 dialog .two{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rank-row .name{overflow-wrap:anywhere}
 .score-scroll,.saved-scorecard-scroll{max-width:100%;overscroll-behavior-x:contain}
 #profileDialog{max-width:100vw;max-height:100dvh}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

#personalSummary .demo-winnings{position:absolute;top:18px;right:18px;display:flex;flex-direction:column;align-items:flex-end;gap:4px;padding:10px 12px;border:1px solid #ffffff38;border-radius:16px;background:#12392bcc;box-shadow:0 3px 12px #001a231c;color:white;pointer-events:none}#personalSummary .demo-winnings strong{font-size:25px;line-height:1.1;font-weight:700;letter-spacing:-.5px;color:white}#personalSummary .demo-winnings span{font-size:10px;color:#f0f5ef}#personalSummary .demo-winnings small{font-size:9px;color:#d6ed99;font-weight:650;letter-spacing:.5px;text-transform:uppercase}@media(max-width:360px){#personalSummary .demo-winnings{top:14px;right:14px;padding:8px 10px}#personalSummary .demo-winnings strong{font-size:23px}}

#personalSummary .demo-winnings{top:18px;left:20px;right:auto;align-items:flex-start;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-shadow:0 2px 8px #0007}#personalSummary .demo-winnings strong{font-size:36px;line-height:1.1}#personalSummary .demo-winnings span{font-size:12px;color:white}#personalSummary .personal-heading{padding-top:76px}@media(max-width:360px){#personalSummary .demo-winnings{top:16px;left:14px;right:auto;padding:0}#personalSummary .demo-winnings strong{font-size:34px}}

.round-advertisement video{display:block;width:100%;max-height:360px;border-radius:14px;background:#17291f}

/* GuapoGolf home-screen guide: compact entry, illustrated steps, browser-owned install. */
.home-social-actions{flex-direction:column;gap:0}
.home-social-actions #homeInstall{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;margin:8px 0 0;padding:12px 16px;border:1px solid #08784e;border-radius:14px;background:#08784e;color:#fff;box-shadow:0 2px 8px #153d2c07;text-align:center;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4}
#homeInstall svg{width:23px;height:23px;flex:none}#homeInstall>span:last-child{display:none}.home-social-actions #homeInstall:hover,.home-social-actions #homeInstall:active{background:#066342;color:#fff}#homeInstall[hidden]{display:none!important}

#installGuide{width:520px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #dce8df;border-radius:28px;background:#fbfcf8;color:#173a2c;box-shadow:0 24px 90px #082b2940;overflow:auto;overscroll-behavior:contain}
#installGuide::backdrop{background:#082b296b;backdrop-filter:blur(5px)}
.install-heading{position:sticky;top:0;z-index:2;background:#fbfcf8;display:flex;align-items:center;justify-content:space-between;padding:18px 22px 0}.install-eyebrow{font-size:10px;font-weight:750;letter-spacing:1.5px;color:#5b7a68}.install-heading button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #dae6de;border-radius:50%;background:white;color:#315540;font-size:25px;box-shadow:none}
.install-content{padding:0 24px 22px;text-align:center}.install-brand-icon{width:62px;height:62px;margin:2px auto 12px;border-radius:18px;box-shadow:0 6px 18px #173a2c16;overflow:hidden}.install-brand-icon img{width:100%;height:100%}
#installTitle{margin:0 0 10px;font-size:30px;font-weight:750;line-height:1.12;letter-spacing:-1.2px}#installIntro{margin:0 auto 18px;max-width:370px;color:#67816e;font-size:13px;line-height:1.55}
.install-device-tabs{display:flex;padding:4px;gap:3px;background:#eaf1e9;border-radius:13px;margin-bottom:14px}.install-device-tabs button{flex:1;min-width:0;min-height:38px;padding:7px 4px;border:0;border-radius:10px;background:transparent;color:#547060;font-size:12px;box-shadow:none}.install-device-tabs button[aria-pressed=true]{background:#fff;color:#126342;box-shadow:0 2px 6px #173a2c10;font-weight:700}
.install-address{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #dae6de;border-radius:14px;background:white;padding:12px 14px}.install-address>div{min-width:0;flex:1}.install-address span{display:block;margin-bottom:4px;font-size:9px;letter-spacing:1.2px;font-weight:700;color:#729080}.install-address a{color:#1b573e;font-size:13px;font-weight:650;text-decoration:none;overflow-wrap:anywhere}.install-address button{flex:none;width:40px;height:40px;display:grid;place-items:center;padding:9px;border:0;border-radius:10px;background:#edf6ef;color:#287350;box-shadow:none}.install-address svg{width:22px;height:22px}
.install-illustration{position:relative;display:flex;align-items:center;justify-content:center;gap:30px;min-height:192px;margin:16px 0 14px;padding:14px 0 10px;overflow:hidden;border-radius:20px;background:radial-gradient(ellipse at 36% 70%,#cfe4cd 0,transparent 60%),#eef4e9}
.install-phone{width:178px;padding:9px;border:3px solid #244d37;border-radius:23px;background:#fff;box-shadow:0 9px 18px #214c3320;transform:rotate(-5deg)}.install-phone-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:700;padding:0 4px 6px}.install-control{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#dff4e9;color:#05754b;outline:2px solid #05a66a33}.install-illustration svg{width:20px;height:20px;flex:none}.install-phone-cover{display:flex;align-items:center;gap:9px;background:linear-gradient(125deg,#173a2c,#398252);border-radius:12px;padding:12px 8px;color:#fff;font-size:12px;line-height:1.35;font-weight:650}.install-phone-cover img{height:47px;width:34px;object-fit:contain}.install-menu-row{display:flex;align-items:center;gap:5px;margin-top:8px;padding:8px 5px;background:#eaf6ed;border:1px solid #a8d5b5;border-radius:8px;font-size:8px;font-weight:700;color:#19523a}.install-menu-row>svg{width:15px;height:15px}.install-menu-check svg{width:14px;height:14px}.install-callout{position:absolute;top:14px;left:calc(50% - 8px);display:flex;align-items:center;gap:6px;padding:7px 9px;background:#fff;border:1px solid #cae0cf;border-radius:11px;box-shadow:0 3px 9px #214c3312;font-size:10px;font-weight:650;color:#166444}.install-callout-number{display:grid;place-items:center;width:18px;height:18px;background:#08784e;border-radius:50%;color:white;font-size:10px}.install-callout svg{width:16px;height:16px}.install-app-preview{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:28px;max-width:92px}.install-app-preview img{width:64px;height:64px;border-radius:18px;box-shadow:0 5px 13px #214c3326}.install-app-preview span{font-size:12px;font-weight:700}.install-app-preview small{font-size:9px;color:#67816e;line-height:1.35}.install-monitor{border-radius:12px;transform:rotate(-3deg)}
.install-steps{list-style:none;margin:0;padding:0;text-align:left;counter-reset:none}.install-steps li{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #e3ebe1}.install-steps li:last-child{border:0}.install-step-number{flex:none;display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#e4f0df;color:#276847;font-weight:750;font-size:13px}.install-steps strong{display:block;font-size:14px;line-height:1.35;font-weight:700}.install-steps p{margin:4px 0 0;font-size:12px;line-height:1.5;color:#6b7e70}.install-hint{margin:12px 0;font-size:11px;line-height:1.5;color:#748576;text-align:left}#nativeInstall{display:block;width:100%;min-height:45px;margin:12px 0 0;border-radius:13px}#nativeInstall[hidden]{display:none}.install-status{font-size:12px;line-height:1.45;color:#24613d;min-height:0;margin:10px 0}.install-status:empty{display:none}.install-done{width:100%;min-height:44px;padding:8px;border:0;border-radius:12px;background:transparent;color:#547462;font-size:13px;font-weight:650;box-shadow:none}.install-done:hover{background:#edf3e9}
@media(max-width:390px){.install-content{padding:0 18px 16px}.install-heading{padding:14px 18px 0}#installTitle{font-size:27px}.install-illustration{gap:22px}.install-phone{width:165px}.install-app-preview{max-width:77px}.install-address{padding:10px}.install-address a{font-size:12px}}

#homeService{position:absolute;right:17px;top:92px;width:48px;height:48px;min-height:48px;border:0;border-radius:50%;padding:12px;background:white;color:#078854;box-shadow:0 4px 13px #05271733;z-index:2;cursor:pointer}#homeService svg{width:24px;height:24px;display:block}#homeService[hidden]{display:none}
@media(max-width:640px){#homeService{right:13px;top:81px}}
.club-service-dialog{border:0;border-radius:20px;padding:22px;width:min(440px,calc(100vw - 24px));color:#173a2c;box-shadow:0 20px 70px #0006}.club-service-dialog::backdrop{background:#0d261dbb}
.club-service-dialog h2{margin:0 0 4px;font-size:22px}.club-service-dialog .club-where{display:flex;align-items:center;gap:8px;background:#eef6f0;border-radius:12px;padding:10px 12px;margin:10px 0;font-weight:700}
.club-service-dialog label{display:block;font-weight:700;margin:12px 0 6px}.club-service-dialog select,.club-service-dialog textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #b9cbbf;border-radius:10px;font:inherit;font-size:16px;background:#fff;color:#173a2c}
.club-service-dialog .club-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}.club-service-dialog .club-send{min-height:50px;border:0;border-radius:12px;background:#0b7a4b;color:#fff;font-weight:800;font-size:16px;cursor:pointer}.club-service-dialog .club-send:disabled{opacity:.55}
.club-service-dialog .club-call{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:12px;border:1px solid #b9cbbf;color:#173a2c;font-weight:700;text-decoration:none}
.club-service-dialog .club-close{position:absolute;top:10px;right:12px;border:0;background:none;font-size:26px;color:#5b7062;cursor:pointer;min-width:44px;min-height:44px}.club-service-dialog .hint{color:#5b7062;font-size:13px;line-height:1.4}.club-service-dialog .club-status{font-weight:700}

/* Historial del handicap y golpes por hoyo */
.hcp-history,.hole-stats{margin:18px 0}.hcp-history h4,.hole-stats h4{margin:0 0 8px;font-size:16px;color:#0c3b2e}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.hcp-table,.hole-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;border-radius:12px;overflow:hidden}
.hcp-table th,.hole-table th{background:#0c3b2e;color:#fff;font-weight:600;padding:8px 6px;text-align:center;white-space:nowrap}
.hcp-table td,.hole-table td{padding:8px 6px;text-align:center;border-bottom:1px solid #e6ece8}
.hcp-table td:nth-child(2){text-align:left}.hcp-table tr:nth-child(even) td,.hole-table tr:nth-child(even) td{background:#f6f9f7}
.hcp-table .hcp-after{font-weight:800;font-size:15px}
.hcp-table tr[data-reason=decrease] .hcp-after{color:#00a969}.hcp-table tr[data-reason=increase-after-three] .hcp-after{color:#c0392b}
.hole-table .hole-avg{font-weight:800}.hole-avg[data-result=under]{color:#ff002b}.hole-avg[data-result=par]{color:#00a969}.hole-avg[data-result=bogey]{color:#398ded}.hole-avg[data-result=over]{color:#00458b}
