:root{--bg:#0b1f14;--surface:#12301f;--surface-2:#1a4029;--border:#2a5a3d;--text:#f2f7f3;--muted:#a3bcab;--primary:#f2c94c;--primary-text:#1b1400;--on:#2f9e5d;--on-text:#fff;--good:#4cd486;--fair:#f2c94c;--poor:#ff7a6b;--eagle:#3aa0ff;--birdie:#4cd486;--par:#c9d6cd;--bogey:#f2a94c;--double:#ff6b6b;--radius:14px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=sun]{--bg:#fff;--surface:#f1f4f2;--surface-2:#e2e9e4;--border:#9db3a5;--text:#000;--muted:#3c5546;--primary:#0f5132;--primary-text:#fff;--on:#0f5132;--on-text:#fff;--good:#0a7a3d;--fair:#8a6100;--poor:#b3261e;--eagle:#0b5cad;--birdie:#0a7a3d;--par:#3c5546;--bogey:#9a5800;--double:#b3261e;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:17px;line-height:1.4}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input{font:inherit}.screen{max-width:560px;padding:max(12px, env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));flex-direction:column;gap:14px;min-height:100dvh;margin:0 auto;display:flex}.muted{color:var(--muted)}.center{text-align:center}.stack{flex-direction:column;gap:10px;display:flex}.grid2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.row-between{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:14px}.topbar{grid-template-columns:44px 1fr auto;align-items:center;gap:8px;min-height:48px;display:grid}.topbar h1{text-align:center;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:1.15rem;overflow:hidden}.topbar-right{justify-content:flex-end;min-width:44px;display:flex}.icon-btn{border:1px solid var(--border);background:var(--surface);border-radius:50%;place-items:center;width:44px;height:44px;font-size:1.6rem;line-height:1;display:grid}.icon-btn.danger{color:var(--poor)}.icon-spacer{width:44px}.btn{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:52px;padding:10px 16px;font-weight:600;display:flex}.btn small{opacity:.85;font-size:.85rem;font-weight:400}.btn-primary{background:var(--primary);color:var(--primary-text);border-color:#0000}.btn-ghost{background:0 0}.btn-xl{min-height:64px;font-size:1.15rem}.link-btn{color:var(--primary);background:0 0;border:0;padding:8px 0;font-size:.95rem;text-decoration:underline}:root[data-theme=sun] .link-btn{color:var(--primary)}.mini-btn{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;width:40px;height:40px;margin-left:6px;font-size:1.2rem}.hero{text-align:center;padding:28px 0 8px}.hero h1{margin:4px 0;font-size:2rem}.logo{font-size:3rem}.field{flex-direction:column;gap:6px;display:flex}.field input{border:1px solid var(--border);background:var(--bg);min-height:50px;color:var(--text);border-radius:12px;padding:0 14px}.section{flex-direction:column;gap:8px;display:flex}.section-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.section h2{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0;font-size:.85rem;font-weight:700}.chips{grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:8px;display:grid}.chips-big .chip{min-height:58px;font-size:1.05rem}.chip{border:1px solid var(--border);background:var(--surface);border-radius:12px;min-height:48px;padding:6px 8px;font-weight:600}.chip.on{background:var(--on);color:var(--on-text);border-color:var(--on);box-shadow:0 0 0 2px var(--on) inset}.chips-big{grid-template-columns:repeat(5,1fr)}.clubs{grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:8px;display:grid}.club{min-height:52px;font-size:1.05rem}.toggle{cursor:pointer;text-transform:none;letter-spacing:0;min-height:40px;color:var(--text);justify-content:space-between;align-items:center;gap:12px;font-size:1rem;font-weight:600;display:flex}.toggle input{opacity:0;pointer-events:none;position:absolute}.toggle-track{background:var(--surface-2);border:1px solid var(--border);border-radius:15px;flex:none;width:50px;height:30px;transition:background .15s;position:relative}.toggle-track:after{content:"";background:var(--muted);border-radius:50%;width:22px;height:22px;transition:transform .15s;position:absolute;top:3px;left:3px}.toggle input:checked+.toggle-track{background:var(--on)}.toggle input:checked+.toggle-track:after{background:#fff;transform:translate(20px)}.toggle input:focus-visible+.toggle-track{outline:2px solid var(--primary);outline-offset:2px}.strip{gap:4px;padding-bottom:4px;display:flex;overflow-x:auto}.strip-cell{background:var(--surface);border:1px solid var(--border);text-align:center;border-radius:8px;flex-direction:column;flex:none;min-width:38px;padding:4px 6px;font-size:.8rem;display:flex}.strip-cell b{font-size:1rem}.strip-total{margin-left:auto}.center-block{text-align:center;padding:30px 0}.hole-number{font-size:2.6rem;font-weight:800}.par-buttons{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px;display:grid}.par-btn{min-height:110px;font-size:2.4rem;font-weight:800}.par-btn small{font-size:.9rem;font-weight:600}.score-pill{background:var(--surface-2);white-space:nowrap;border-radius:999px;padding:6px 10px;font-size:.9rem;font-weight:700}.shot-list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.shot-list li{background:var(--surface);border-radius:10px;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;padding:6px 10px;font-size:.95rem;display:grid}.shot-list em{color:var(--muted);font-style:normal}.shot-n{background:var(--surface-2);border-radius:50%;place-items:center;width:24px;height:24px;font-size:.8rem;font-weight:700;display:grid}.shot-res{text-align:right}.shot-title{justify-content:space-between;align-items:baseline;margin-top:4px;font-size:1.3rem;font-weight:800;display:flex}.gps{background:var(--surface-2);border-radius:999px;padding:3px 8px;font-size:.85rem;font-weight:700}.gps.good{color:var(--good)}.gps.fair{color:var(--fair)}.gps.poor{color:var(--poor)}.measure{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:10px;padding:12px;display:flex}.measure-row{grid-template-columns:1fr auto;align-items:center;gap:10px;display:grid}.measure-row .btn{min-width:140px}.measure-label{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:.8rem}.big-distance{font-size:1.6rem}.warn{color:var(--poor);margin:0;font-size:.9rem}.warn-inline{color:var(--poor);font-size:.85rem;font-weight:600}.sticky-actions{padding:10px 0 calc(6px + env(safe-area-inset-bottom));background:linear-gradient(transparent, var(--bg) 30%);flex-direction:column;display:flex;position:sticky;bottom:0}.small-actions{font-size:.95rem}.penalty{align-items:center;gap:4px;display:flex}.result-hero{text-align:center;border-radius:var(--radius);background:var(--surface);border:2px solid;padding:20px}.result-hero .muted{color:var(--muted)}.result-strokes{font-size:3.4rem;font-weight:800;line-height:1}.result-name{margin:4px 0;font-size:1.3rem;font-weight:700}.d-eagle{color:var(--eagle)}.d-birdie{color:var(--birdie)}.d-par{color:var(--par)}.d-bogey{color:var(--bogey)}.d-double{color:var(--double)}.notes{flex-direction:column;gap:8px;display:flex}.note-list{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.note-list li{background:var(--surface-2);border-radius:999px;padding:5px 10px;font-size:.9rem;font-weight:600}.note-list.good li{color:var(--good)}.note-list.good li:before{content:"✓ "}.note-list.bad li{color:var(--poor)}.note-list.bad li:before{content:"✗ "}.shot-detail{color:var(--muted);flex-direction:column;gap:2px;margin:0;padding-left:0;font-size:.92rem;list-style:none;display:flex}.stats-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stat{background:var(--surface);border:1px solid var(--border);text-align:center;border-radius:12px;padding:10px 6px}.stat-value{font-size:1.5rem;font-weight:800}.stat-label{color:var(--muted);font-size:.78rem;font-weight:600}.stat-sub{color:var(--muted);font-size:.75rem}.distribution{flex-wrap:wrap;gap:6px 12px;font-size:.9rem;font-weight:700;display:flex}.insights{flex-direction:column;gap:10px;display:flex}.insight{background:var(--surface);border:1px solid var(--border);border-left:5px solid var(--muted);border-radius:12px;padding:12px 14px}.insight.priority{border-left-color:var(--poor)}.insight.tip{border-left-color:var(--fair)}.insight.strength{border-left-color:var(--good)}.insight header{text-transform:uppercase;letter-spacing:.05em;justify-content:space-between;font-size:.78rem;font-weight:700;display:flex}.insight.priority .tag{color:var(--poor)}.insight.tip .tag{color:var(--fair)}.insight.strength .tag{color:var(--good)}.insight .area{color:var(--muted)}.insight h3{margin:4px 0;font-size:1.05rem}.insight p{color:var(--muted);margin:0;font-size:.95rem}.hole-cards{flex-direction:column;gap:6px;display:flex}.hole-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 12px}.hole-card summary{cursor:pointer;grid-template-columns:32px 52px 1fr auto;align-items:center;gap:8px;min-height:52px;list-style:none;display:grid}.hole-card summary::-webkit-details-marker{display:none}.hole-card[open]{padding-bottom:12px}.hole-badge{background:var(--surface-2);border-radius:50%;place-items:center;width:30px;height:30px;font-weight:800;display:grid}.hole-card .score-pill{justify-self:start}.club-table{flex-direction:column;gap:8px;display:flex}.club-row{background:var(--surface);border:1px solid var(--border);border-radius:12px;grid-template-columns:1fr auto;gap:6px 10px;padding:10px 12px;display:grid}.club-head{flex-direction:column;display:flex}.club-head .muted{font-size:.85rem}.club-dist{text-align:right;flex-direction:column;display:flex}.club-dist .big{font-size:1.3rem;font-weight:800}.club-dist .muted{font-size:.8rem}.shape-bar{border-radius:8px;grid-column:1/-1;gap:2px;font-size:.72rem;font-weight:700;display:flex;overflow:hidden}.seg{white-space:nowrap;text-overflow:ellipsis;color:#fff;min-width:0;padding:4px 6px;overflow:hidden}.seg-hook{background:#b3261e}.seg-draw{background:#3a7bd5}.seg-straight{background:#2f9e5d}.seg-fade{background:#8a63d2}.seg-slice{background:#c25a00}.round-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.round-item{grid-template-columns:1fr auto;align-items:center;gap:8px;display:grid}.round-main{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:12px;justify-content:space-between;align-items:center;gap:10px;min-height:64px;padding:12px 14px;display:flex}.round-main .muted{font-size:.85rem}.round-score{text-align:right;flex-direction:column;display:flex}.round-score b{font-size:1.4rem}@media (width<=380px){.chips-big{grid-template-columns:repeat(3,1fr)}.measure-row .btn{min-width:120px}}
