:root{color-scheme:light;--ink:#16392f;--muted:#55685c;--line:#d5dfd4;--bg:#f5f6ef;--green:#155942;--lime:#d7f28b;font:16px/1.48 "Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}header{background:#133e33;color:white;display:flex;align-items:center;justify-content:space-between;padding:12px max(5vw,calc((100vw - 960px)/2));min-height:66px}header a{color:inherit;text-decoration:none}.brand{font-size:25px;font-weight:780;letter-spacing:-1.5px;display:flex;gap:8px;align-items:center}.mark,.flag{font-family:Georgia,serif;color:var(--lime)}.mark{display:grid;place-content:center;width:33px;height:33px;border:1px solid #92b086;border-radius:9px}.flag{font-size:27px}nav,.inline,.heading,.toolbar,.actions,.minor{display:flex;align-items:center;gap:10px;flex-wrap:wrap}nav{font-size:.92rem;gap:18px}.account{position:relative}.account summary{list-style:none;border:1px solid #8da79b;border-radius:50%;width:34px;height:34px;text-align:center;line-height:32px}.account>div{position:absolute;z-index:3;top:42px;right:0;background:white;box-shadow:0 4px 20px #18362424;padding:14px;border-radius:10px;color:var(--ink)}
main{width:min(910px,92%);margin:30px auto 70px}h1,h2,h3,p{margin:0 0 .65em}h1{font-size:clamp(2rem,5vw,3rem);line-height:1.1;letter-spacing:-.055em;font-weight:740}h2{letter-spacing:-.035em;font-size:1.55rem}h3{font-size:1.08rem}small{font-size:.72rem;letter-spacing:.12em;font-weight:750;text-transform:uppercase;color:#536f60}a{color:var(--green)}.heading{justify-content:space-between;margin:20px 0}.heading h1{margin:.15em 0}.heading p{margin:6px 0;color:var(--muted)}.panel,.listing,.hero{border:1px solid var(--line);border-radius:16px;background:#fff;margin:14px 0;padding:22px}.hero{background:#194d3b;color:white;display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:22px;padding:26px;margin-bottom:28px}.hero h2{font-size:1.9rem}.hero p{color:#dbe9db}.hero button,.hero .button{background:var(--lime);color:var(--ink)}.hero label{color:#edf6e8}.form{display:grid;gap:15px}.cols{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth{max-width:470px;margin:7vh auto}.auth h1{margin:.3em 0 .65em}.auth li,.helptext{font-size:.84rem}.errorlist,.notice{color:#8a3528}.auth input{width:100%}label{display:block;font-weight:600;font-size:.88rem}input,select{width:100%;margin:4px 0 10px;padding:10px 12px;border:1px solid #acbcae;background:white;color:var(--ink);border-radius:8px;font:inherit;min-height:42px}.inline input{width:auto;max-width:100%}.button,button{border:0;border-radius:9px;background:var(--green);color:white;padding:11px 16px;min-height:42px;font:650 .92rem/1.25 inherit;font-family:inherit;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.button.secondary,.secondary{background:#e9efe6;color:var(--green)}.plain{background:transparent;color:var(--green)}button:disabled{opacity:.45;cursor:default}summary{cursor:pointer;font-weight:650;min-height:32px}details[open]>summary{margin-bottom:10px}.listing{padding:0 16px}.listing>p{padding:15px 0}.row{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.row:last-child{border:0}.row div{flex:1}.row span{display:block;color:var(--muted);font-size:.86rem}.row i{font-size:23px;color:#68836f}.tag,.num{display:inline-flex;align-items:center;border-radius:15px;background:#e6efdf;color:#346344;font-size:.76rem;padding:4px 9px}.num{border-radius:8px;height:38px;min-width:38px;justify-content:center;font-size:1rem}.muted,.mapinfo{color:var(--muted);font-size:.9rem}.mapinfo{margin:10px 0}.toolbar{align-items:end;justify-content:space-between}.toolbar select{width:auto;display:block}.tabs{display:flex;padding:4px;border-radius:12px;background:#e3e9df;margin:20px 0}.tabs button{background:transparent;color:var(--muted);flex:1}.tabs button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #1a32231a}.shothead{padding:6px 0 15px}.shothead h2{font-size:2rem}.actions>*{flex:1}.minor{margin-top:14px;justify-content:space-between}.mapbox{position:relative;overflow:hidden;border-radius:14px;border:1px solid var(--line);background:#e3e9df}.mapbox canvas{display:block;width:100%;height:clamp(290px,53vh,540px);touch-action:none}.zoom{display:flex;position:absolute;right:8px;top:8px;gap:3px}.zoom button{background:#fff;color:var(--ink);width:36px;min-height:36px;padding:0;box-shadow:0 1px 4px #16392f25}.cardrow,.rankrow{border-top:1px solid var(--line);padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.cardrow strong{flex:1}.cardrow small{display:block;letter-spacing:0;text-transform:none}.cardrow input{width:66px;margin:0}.cardrow button{min-height:34px;padding:8px}.rankrow span{margin-left:auto}.dot{display:inline-block;border-radius:50%;width:12px;height:12px;margin:0 4px}.notice,#feedback:not(:empty){padding:12px 16px;background:#fff3d6;border-radius:9px}#feedback:not(:empty){position:fixed;bottom:14px;left:50%;transform:translateX(-50%);width:max-content;max-width:92vw;box-shadow:0 2px 16px #172b1730;z-index:5}.errorlist{padding-left:18px}[hidden]{display:none!important}:focus-visible{outline:3px solid #c08719;outline-offset:2px}@media(max-width:600px){main{margin-top:18px}.hero{grid-template-columns:1fr;gap:10px}.panel{padding:16px}nav{gap:10px}.row{gap:7px}.cols{gap:8px}.heading{gap:4px}.tag{font-size:.7rem}.tabs button{padding:9px 6px}.inline{gap:6px}}

.tablewrap{overflow-x:auto}table{border-collapse:collapse;min-width:100%;font-variant-numeric:tabular-nums}td,th{border-bottom:1px solid var(--line);padding:8px;text-align:center}th:first-child{position:sticky;left:0;background:white}

/* Shared colors and the folded pennant keep the identity light on mobile. */
:root {
  --ink:#30213e;
  --muted:#685e70;
  --line:#e1d8d9;
  --bg:#fbf7ef;
  --green:#543172;
  --lime:#d9ed83;
  --coral:#ff825f;
}
header {background:#fffaf2;color:var(--ink);border-bottom:1px solid var(--line)}
.brand {display:inline-flex;flex:0 1 auto;min-width:0;align-items:center;line-height:1}
.brand img {display:block;width:clamp(106px,29vw,144px);height:auto;max-width:100%}
.account summary {border-color:#ac99b3}
small {color:#755c7c}
h1,h2,.brand,.hero h2 {font-family:"Segoe UI",system-ui,sans-serif}
h1 {font-weight:825}
.hero {
  position:relative;overflow:hidden;isolation:isolate;
  background:#473055;border:0;border-radius:22px;color:#fffaf2;
  align-items:center;padding:clamp(20px,4vw,40px);
}
.hero::before {
  content:"";position:absolute;z-index:-1;inset:0;
  background:repeating-radial-gradient(ellipse at 5% 155%,transparent 0 22px,#ffffff0e 23px 24px,transparent 25px 42px);
}
.hero h2 {font-size:clamp(2.3rem,5.5vw,3.7rem);line-height:.97;letter-spacing:-.075em;font-weight:850;margin:.3em 0 .2em}
.hero h2 span {color:var(--coral)}
.hero p,.hero label {color:#fff7ec}
.hero input,.hero select {background:#fffaf4}
.hero button,.hero .button {color:var(--ink);border-radius:30px}
.pennant-print {display:flex;gap:3px;width:max-content;transform:rotate(-7deg);border-top:2px solid #fff2df}
.pennant-print i {width:22px;height:24px;background:var(--coral);clip-path:polygon(0 0,100% 0,52% 100%)}
.pennant-print i:nth-child(2){background:var(--lime);height:17px}
.pennant-print i:nth-child(3){background:#c6a6d7;height:20px}
.tag,.num {background:#f0e9f4;color:#59396b}
.num {font-weight:800}
.tabs {background:#ece4ef}
.tabs button.active {background:var(--ink);color:white}
.button.secondary,.secondary {background:#efe8f2;color:var(--green)}
.invitation {border-top:6px solid var(--coral)}
#play {border-top:5px solid var(--coral)}
#shot {background:var(--lime);color:var(--ink)}
#current {font-variant-numeric:tabular-nums}
.ref-panel {padding:16px;background:white;border:1px solid var(--line);border-radius:16px;margin:10px 0}
.ref-panel h2 {font-size:1.18rem;margin:0 0 10px}
.ref-panel p,.ref-panel output {font-size:.87rem;color:var(--muted)}
.ref-panel output {display:block;padding:12px 0}
.point-choices {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.point-choices button {background:#f2ecf4;color:var(--green);min-width:42px;padding:8px 12px;border-radius:20px}
.point-choices button[aria-pressed="true"] {background:var(--ink);color:#fff}
#anchor {background:var(--lime);color:var(--ink)}
@media(max-width:600px) {
  .hero {gap:14px}
  .hero button,.ref-panel>#anchor {width:100%}
  .hero p {margin-bottom:0}
  .ref-panel .plain {padding:7px}
}

/* Round scorecard */
.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
.match-title,.match-tools,.board-heading,.play-title,.play-extras,.sheet-head,.gps-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.match-title{margin:12px 0 18px}.match-title h1{margin:.1em 0;font-size:clamp(1.7rem,5vw,3rem);overflow-wrap:anywhere}
.match-tools{justify-content:flex-start;margin:0 0 12px}.hole-select{margin-right:auto}.match-tools select{margin:0;width:auto;max-width:100%}.more{font-size:1.3rem;min-width:44px}
.match-board{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden}
.board-heading{padding:11px 15px}.board-heading h2{margin:0;font-size:1.22rem}.board-heading span,.review-key,.play-title>span,.gps-row,.match-unit{font-size:.84rem;color:var(--muted)}
.score-scroll{overflow:auto;max-height:48vh;isolation:isolate;overscroll-behavior-x:contain}
.score-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;text-align:center}
.score-grid th,.score-grid td{box-sizing:border-box;min-width:64px;padding:0;border-bottom:1px solid #e5e1de;border-right:1px solid #e5e1de}
.score-grid thead th{position:sticky;top:0;z-index:2;background:#44334e;color:white;font-size:.88rem;padding:5px}
.score-grid th:first-child{position:sticky;left:0;z-index:1;text-align:left;width:114px;min-width:114px;max-width:114px;padding:6px 10px;background:white;box-shadow:2px 0 3px #32213814}
.score-grid thead th:first-child{background:#44334e;z-index:3}.score-grid thead th.selected-hole{background:#6d407d;box-shadow:inset 0 -3px #ffc477}
.score-grid th strong{display:block;overflow-wrap:anywhere;font-size:.94rem}.score-grid th span,.score-box span,.score-box small{display:block;font-size:.75rem;font-weight:650;line-height:1.25}.score-grid tbody th span{color:var(--muted)}
.score-grid .score-box{margin:0;border:0;border-radius:0;background:transparent;color:inherit;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:55px;padding:4px 3px;gap:2px;font-size:1.14rem;font-weight:760}.score-box small{font-size:.68rem}.score-box:focus-visible{outline-offset:-3px}
.score-grid td{background:#fff;color:#54475b}.score-grid .score-under2{background:#a5d6a7;color:#143d25}.score-grid .score-under1{background:#d7eed3;color:#21442c}.score-grid .score-par{background:#fff4bd;color:#4e421e}.score-grid .score-over1{background:#ffe2bf;color:#6e3612}.score-grid .score-over2{background:#f7c0bc;color:#692425}.score-grid .score-pending{background:#f1eaf5;color:#563468}
.review-key{margin:0;padding:7px 12px}.play-strip{margin-top:12px}.play-title h2{font-size:1.35rem;margin:0}.play-strip #distance:empty,.play-strip #shotHint:empty{display:none}.play-strip #shotHint,.play-strip #distance{margin:6px 0}.play-strip .actions{margin:12px 0 6px}.play-extras{margin-top:8px}.incident{background:#ffe2bf;color:#67350b;gap:7px;border:1px solid #c98d4a}.gps-row{margin-top:8px}.match-unit{width:max-content;margin:12px 0}.match-unit select{width:auto;margin:0}
.match-sheet{width:min(430px,94vw);box-sizing:border-box;max-height:84vh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:20px;background:#fffaf4;color:var(--ink);box-shadow:0 14px 60px #25182e40}
.match-sheet::backdrop{background:#241b2f69}.sheet-head{align-items:flex-start;margin-bottom:10px}.sheet-head h2{margin:0}.dismiss{background:#eee6ef;color:var(--ink);width:44px;height:44px;font-size:1.5rem;padding:0}.match-sheet>details{border-top:1px solid var(--line);padding:12px 0}
.incident-choice{display:flex;gap:12px;background:#f2eaf5;color:var(--ink);width:100%;margin:8px 0;justify-content:flex-start;font-size:1rem}.ob-icon{font-size:1.3rem;color:#953d31}.incident-choice span{width:26px}#acceptProposal{width:100%;margin-bottom:12px}#editForm{border-top:1px solid var(--line);padding-top:12px}
@media(max-width:550px){.match-tools{gap:5px}.match-tools button{padding:9px}.score-grid th:first-child{width:99px;min-width:99px;max-width:99px}.match-sheet{margin:auto auto 0;width:100%;max-width:100%;border-radius:18px 18px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom))}}
#shot.secondary{background:#efe8f2;color:var(--green)}

#editForm{display:grid;grid-template-columns:minmax(4rem,1fr) auto;gap:10px;align-items:end}
#editForm input{width:100%;margin:4px 0 0}#saveOfficial{background:#50345f;color:white;min-height:44px}
.card-list-item{display:flex;align-items:center;border-bottom:1px solid var(--line);background:white}
.card-list-item .row{flex:1;min-width:0;border:0}.card-list-item .row div{overflow-wrap:anywhere}.card-list-item form{padding-right:6px}
.delete-link{color:#8a323d}.course-status{margin:20px 0}.rename-form{margin-top:14px}
#exportArea button,#closeRound{width:100%;margin-bottom:8px}
#exportArea a{display:inline-block;padding:9px 0}#exportArea a[hidden]{display:none}
#exportStatus{color:var(--muted);font-size:.875rem;margin:5px 0}

.account[open]{z-index:8}.account>div{min-width:165px;max-width:74vw;overflow-wrap:anywhere}
.account>div a{display:block;color:var(--ink);padding:9px 0}
.member-search{margin:12px 0}.member-list article{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--line)}
.member-list article>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.member-list article strong,.member-list article span:not(.tag){display:block}
.member-list article span:not(.tag),.member-pages{font-size:.85rem;color:var(--muted)}
.member-state{display:grid;justify-items:end;gap:4px}.member-pages{display:flex;align-items:center;gap:16px;margin:16px 0}
@media(max-width:480px){.member-list article{display:grid;grid-template-columns:1fr auto;gap:4px 9px}.member-list article form{grid-column:2}.member-list article form button{font-size:.85rem;padding:5px}.member-search input{min-width:0}}
