:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#173c32;background:#f4f5ef}*{box-sizing:border-box}body{margin:0}header{background:#173c32;color:white;padding:18px max(20px,calc((100vw - 1000px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:12px}.mark{background:#d96d2e;color:white;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;font-size:30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;opacity:.7}h1{font-size:25px;margin:0}h1 span{color:#f4ad6b}.connection{font-size:12px;background:#ffffff1c;border-radius:30px;padding:8px 12px;white-space:nowrap}main{max-width:1000px;margin:auto;padding:18px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);background:white;border-radius:13px;padding:5px;gap:4px;margin-bottom:16px;box-shadow:0 3px 15px #173c320b}.tabs button{border:0;background:transparent;color:#49655a;padding:12px 4px;border-radius:9px;font-weight:750;cursor:pointer}.tabs button.active{background:#173c32;color:white}.panel{display:none}.panel.active{display:block}.hero{background:linear-gradient(125deg,#245844,#173c32);color:white;border-radius:17px;padding:24px;margin-bottom:14px}.hero h2{font-size:32px;margin:8px 0}.meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px}.pill{background:#ffffff2b;border-radius:30px;padding:5px 10px}.duo{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tile{background:white;border:1px solid #e2e7de;border-radius:15px;padding:18px;margin-bottom:14px;box-shadow:0 3px 14px #173c3208}.person{font-size:22px;font-weight:800;margin-top:8px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px}h3{margin:0 0 14px;font-size:18px}.muted{font-size:12px;color:#6a7c71}.standing{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #e9eee8}.rank{background:#edf3ec;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:800}.standing:first-child .rank{background:#f7e8ba}.standing .name{font-weight:700}.standing .score{font-size:18px;font-weight:850}.standing .score small{font-size:12px;font-weight:500;color:#728077}.shooter{border-top:1px solid #e9eee8;padding:13px 0}.shooter summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px;font-weight:750}.shooter summary span:last-child{color:#62796a}.round-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:12px}.round{background:#f3f6f1;border-radius:8px;padding:7px 3px;text-align:center}.round-label{font-size:10px;color:#708175;margin-bottom:5px}.birds{display:flex;justify-content:center;gap:2px;font-weight:850;font-size:13px}.birds .miss{color:#bc4c38}.birds .money{color:#d27a1c}.birds .blank{color:#a8b5ac}.round-score{font-size:11px;color:#5e7566;margin-top:5px}.error{background:#fff0e9;color:#9e392a;padding:12px;border-radius:10px}footer{text-align:center;color:#718477;font-size:12px;padding:16px}@media(max-width:600px){header{padding:14px 16px}main{padding:12px}.duo{gap:8px}.tile{padding:14px}.person{font-size:17px}.round-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero h2{font-size:27px}.connection{font-size:10px}}

/* Helice brand logo: transparent orange artwork on a dark header. */
header{background:#080808}
.brand-logo{width:58px;height:46px;object-fit:contain;display:block;flex:none}
@media(max-width:600px){.brand-logo{width:52px;height:42px}}

/* Barbour Creek identity: black, target orange, warm metallic gold and white. */
:root{color:#191919;background:#f7f4ed}
body{background:#f7f4ed;color:#191919}
header{background:#080808;color:#fff;border-bottom:3px solid #ed741c}
header .eyebrow{color:#d9b77b;opacity:1}
h1 span{color:#fa7b1b}
.connection{background:#26211b;color:#fff;border:1px solid #a78955}
.tabs{background:#fff;border:1px solid #e5d9c7;box-shadow:0 3px 15px #0000000b}
.tabs button{color:#38332b}
.tabs button.active{background:#101010;color:#fff;box-shadow:inset 0 -3px #f47719}
.tabs button:focus-visible,.shooter summary:focus-visible{outline:3px solid #f47719;outline-offset:2px}
.hero{background:linear-gradient(125deg,#28211a,#080808 72%);border:1px solid #9b7749;border-left:5px solid #f47719;color:#fff}
.hero .eyebrow{color:#d9b77b;opacity:1}
.pill{background:#513a21;border:1px solid #b98b4e;color:#fff}
.tile{background:#fff;border:1px solid #e3d6c5;box-shadow:0 3px 14px #0000000a}
.tile .eyebrow{color:#9b6c32;opacity:1}
h3,.person{color:#171717}
.muted{color:#756b5f}
.standing,.shooter{border-top-color:#e9dfd3}
.rank{background:#f4ead9;color:#322517}
.standing:first-child .rank{background:#f47719;color:#fff}
.standing .score{color:#171717}
.standing .score small,.shooter summary span:last-child{color:#776b5b}
.round{background:#f6efe5;border:1px solid #eee0cd}
.round-label,.round-score{color:#75664f}
.birds .money{color:#d56700}
.birds .miss{color:#b43f2f}
.birds .blank{color:#a69b8d}
.error{background:#fff0e9;color:#9e392a}
footer{color:#756b5f}
/* Archived results, profiles, and records */
.search{width:100%;padding:13px;border:1px solid #cbbda8;border-radius:10px;font:inherit;margin:8px 0 14px;background:#fff;color:#171717}
.search:focus-visible{outline:3px solid #f47719;outline-offset:2px}
.history summary{align-items:center}.history-body{padding:12px 0 4px}.history-body h3{margin:18px 0 8px}.history-body .standing small{font-size:11px;color:#756b5f;font-weight:400}

/* Welcome screen: shown on every fresh page open, below the navigation. */
.tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.home-hero{background:#080808;border:1px solid #a78955;border-radius:18px;min-height:65vh;padding:clamp(16px,4vw,42px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center;overflow:hidden}
.home-logo{display:block;width:min(100%,610px);height:auto;object-fit:contain;border-radius:18px}
.home-caption{margin:0;color:#d9b77b;font-size:clamp(16px,2.5vw,22px);font-weight:700;letter-spacing:.035em}
.home-live-button{background:#f47719;border:0;border-radius:11px;color:#101010;font:inherit;font-weight:800;padding:13px 22px;cursor:pointer}
.home-live-button:focus-visible{outline:3px solid #fff;outline-offset:4px}
@media(max-width:600px){.tabs button{font-size:12px;padding:12px 2px}.home-hero{min-height:60vh;border-radius:15px;padding:16px;gap:18px}.home-logo{border-radius:13px}}

/* Shooter profile: search-first, responsive desktop-inspired card layout. */
.tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.profile-search-tile{position:relative;z-index:2}
.profile-search-wrap{position:relative;max-width:620px}
.profile-search-label{display:block;font-weight:750;font-size:13px;margin-top:12px}
.profile-search-wrap .search{margin:7px 0 0}
.profile-suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #d9c6aa;border-radius:0 0 12px 12px;box-shadow:0 10px 22px #0002;max-height:280px;overflow-y:auto;z-index:5}
.profile-suggestions:empty{display:none}
.profile-option{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background:#fff;border:0;border-bottom:1px solid #eee5da;padding:12px 14px;text-align:left;font:inherit;font-weight:700;cursor:pointer;color:#171717}
.profile-option:hover,.profile-option:focus-visible{background:#fff0df;outline:2px solid #f47719;outline-offset:-2px}
.profile-option small{font-size:11px;color:#786c5c;font-weight:500}
.profile-no-match{margin:0;padding:14px;color:#756b5f}
.profile-empty{padding:32px 16px;text-align:center;border:1px dashed #cbbda8;border-radius:13px;color:#756b5f;background:#fff}
.profile-banner{background:#101010;color:#fff;border:1px solid #ad8958;border-left:5px solid #f47719;border-radius:13px;padding:19px 22px;margin-bottom:14px}
.profile-banner h2{margin:0 0 6px;font-size:25px}.profile-banner>div{font-size:12px;color:#e0c79f;display:flex;flex-wrap:wrap;gap:8px 24px}
.profile-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.profile-card{background:#fff;border:1px solid #e3d6c5;border-radius:12px;overflow:hidden;min-width:0}
.profile-card h3{margin:0;background:#161616;color:#e8c48c;font-size:14px;padding:12px 15px;border-bottom:2px solid #f47719}
.profile-card-body{padding:16px 15px}.stat-row{display:flex;justify-content:space-between;gap:12px;padding:4px 0;font-size:12px}.stat-row strong{color:#161616;font-variant-numeric:tabular-nums;text-align:right}
.profile-best{text-align:center}.profile-best h3{text-align:left}.best-score{font-size:34px;font-weight:850;margin:21px 0 0}.best-percent{font-size:18px;color:#b55a09;font-weight:800}.best-date{font-size:13px;font-weight:750;margin:16px 0 5px}.profile-best .muted{margin-bottom:16px}
.profile-wide{margin-bottom:12px}.profile-table-wrap{overflow:auto;max-height:340px}.profile-table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.profile-table th{text-align:left;background:#f4ebdd}.profile-table th,.profile-table td{padding:10px 12px;border-bottom:1px solid #e8dfd3}.profile-table tr:nth-child(even){background:#faf7f2}.profile-table th:nth-child(n+3),.profile-table td:nth-child(n+3){text-align:right}
.trend-chart{display:flex;gap:8px;height:180px;padding:20px 18px 0 12px}.trend-axis{display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:#786c5c;padding-bottom:3px}.trend-chart svg{width:100%;height:100%;overflow:visible}.trend-grid{fill:none;stroke:#e8dfd3;stroke-width:.35;vector-effect:non-scaling-stroke}.trend-line{fill:none;stroke:#f47719;stroke-width:2.3;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}.trend-dot{fill:#161616;stroke:#f47719;stroke-width:.5;vector-effect:non-scaling-stroke}.trend-dates{display:flex;justify-content:space-between;margin:6px 18px 18px 55px;font-size:11px;color:#756b5f}
.profile-scorecards{padding:6px 16px 14px}
@media(max-width:760px){.profile-cards{grid-template-columns:1fr 1fr}.profile-best{grid-column:1/-1}.profile-banner{padding:15px}.profile-table th,.profile-table td{padding:9px 8px}}
@media(max-width:500px){.profile-cards{grid-template-columns:1fr}.profile-best{grid-column:auto}.profile-banner h2{font-size:22px}.profile-card-body{padding:12px}.trend-chart{height:150px;padding-right:10px}.profile-table{font-size:11px}}


/* Results dashboard */
#results{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:0 max(18px,calc((100vw - 1500px)/2))}
.results-shell{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:16px;align-items:start}
.results-browser,.result-detail{background:#fff;border:1px solid #e3d6c5;border-radius:16px;box-shadow:0 4px 18px #0000000b;overflow:hidden}
.results-browser{position:sticky;top:12px;max-height:calc(100vh - 120px);display:flex;flex-direction:column}
.results-browser-head{padding:20px 18px 10px}.results-browser-head h2{margin:0 0 8px;font-size:24px}.results-browser-head p{margin:0 0 8px;color:#756b5f;font-size:12px}.results-browser-head .search{margin-bottom:0}
.result-events{padding:0 10px 12px;overflow:auto}.result-event{width:100%;display:grid;grid-template-columns:58px 1fr 18px;gap:12px;align-items:center;border:1px solid #e8dfd3;background:#fff;border-radius:12px;padding:8px;margin:0 0 7px;text-align:left;cursor:pointer;font:inherit;color:#171717}.result-event:hover,.result-event:focus-visible{border-color:#f47719;outline:none}.result-event.selected{background:linear-gradient(110deg,#fff0d6,#ffb65f);border-color:#f47719;box-shadow:inset 4px 0 #f47719}.event-datebox{height:58px;border-radius:9px;background:#f4efe7;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}.event-datebox b{font-size:10px}.event-datebox strong{font-size:23px;margin:2px 0}.event-datebox small{font-size:9px}.event-copy{display:flex;flex-direction:column;min-width:0}.event-copy>strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-copy>span{font-size:11px;color:#665e54;margin:4px 0}.event-copy>small{font-size:10px;color:#756b5f}.event-arrow{font-size:27px}.results-none{padding:14px;color:#756b5f}
.result-detail{padding:18px}.result-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.result-heading h2{margin:0;font-size:30px}.result-heading p{margin:3px 0 0;color:#756b5f;font-size:13px}.result-title-row{display:flex;align-items:center;gap:10px}.result-calendar{font-size:27px}.shooter-count,.practice-badge{background:#fbf0dc;border-radius:11px;padding:10px 14px;font-size:12px;font-weight:800;white-space:nowrap}.practice-badge{padding:5px 9px;background:#ece7df;color:#665e54}
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.podium-card{min-height:170px;border-radius:12px;padding:15px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #5e4c31;color:#fff;background:#171717;overflow:hidden}.podium-card.gold{background:radial-gradient(circle at 50% 30%,#4c3507,#15110a 70%);border-color:#dcae2e}.podium-card.silver{background:radial-gradient(circle at 50% 30%,#454545,#151515 70%);border-color:#aaa}.podium-card.bronze{background:radial-gradient(circle at 50% 30%,#4a260e,#17100b 70%);border-color:#b66d38}.podium-cup{font-size:36px}.podium-card span{font-size:11px;font-weight:850;border-radius:20px;background:#ffffff1a;padding:5px 15px;margin:4px 0 8px}.podium-card strong{font-size:21px}.podium-card b{font-size:27px;margin-top:4px;color:#ffd45c}.podium-card.silver b{color:#e1e1e1}.podium-card.bronze b{color:#e3a16e}
.result-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#f1eee8;border-radius:10px;overflow:hidden;margin-bottom:12px}.result-tabs button{border:0;border-right:1px solid #ddd4c8;background:transparent;padding:12px 8px;font:inherit;font-size:12px;cursor:pointer}.result-tabs button.active{background:#f47719;color:#111;font-weight:850}.result-tabs button:last-child{border-right:0}
.result-table-wrap{overflow:auto;border:1px solid #e2d9ce;border-radius:10px}.result-table{width:100%;border-collapse:collapse;min-width:680px;font-size:12px}.result-table th{background:#171717;color:#fff;padding:10px 8px;text-align:center}.result-table th:nth-child(2){text-align:left}.result-table td{padding:10px 8px;border-bottom:1px solid #e7dfd5;text-align:center}.result-table td:nth-child(2){text-align:left}.result-table tr:nth-child(even){background:#faf8f4}.result-table .place-1{background:#fff0b8}.result-table .place-2{background:#f0f0f0}.result-table .place-3{background:#f4d6bd}.table-rank{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-weight:850}.shooter-cell{font-weight:700}.shooter-cell small{display:block;color:#a04b3a;font-weight:500}.result-scorecards{padding:0 5px}.round-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.round-result-card{border:1px solid #e3d6c5;border-radius:11px;overflow:hidden}.round-result-card h4{margin:0;background:#171717;color:#fff;padding:10px 12px}.round-result-card>div{display:flex;justify-content:space-between;padding:8px 12px;border-top:1px solid #eee5da;font-size:12px}.round-result-card>div:nth-child(odd){background:#faf7f2}
.results-extras{margin-top:14px;border:1px solid #e3d6c5;border-radius:12px;padding:14px;background:#fffaf3}.results-extras h3{margin-bottom:10px}.extras-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.extra-card{background:#fff;border:1px solid #e6d8c5;border-radius:10px;padding:12px}.extra-card h4{margin:0 0 8px;color:#e86108}.extra-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:4px 0}.extra-row strong{text-align:right}.extra-value{font-weight:800}.results-loading{background:#fff;border:1px solid #e3d6c5;border-radius:14px;padding:30px;text-align:center}
@media(max-width:900px){#results{margin:0;padding:0}.results-shell{grid-template-columns:1fr}.results-browser{position:static;max-height:none}.result-events{display:flex;overflow-x:auto;padding-bottom:12px}.result-event{min-width:260px}.podium-card{min-height:145px}.result-detail{padding:14px}}
@media(max-width:600px){.result-heading{align-items:flex-start}.result-heading h2{font-size:23px}.result-heading p{font-size:11px}.shooter-count{padding:8px;font-size:10px}.podium{grid-template-columns:1fr}.podium-card{min-height:118px;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto auto;text-align:left;column-gap:10px}.podium-cup{grid-row:1/4;font-size:32px}.podium-card span,.podium-card strong,.podium-card b{justify-self:start;margin:1px 0}.podium-card strong{font-size:18px}.podium-card b{font-size:21px}.result-tabs{grid-auto-flow:row;grid-template-columns:1fr 1fr}.result-tabs button{border-bottom:1px solid #ddd4c8}.round-results-grid{grid-template-columns:1fr}.results-browser-head h2{font-size:21px}}

/* Structured historical payouts */
.extras-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.extra-card{min-width:0;padding:16px;overflow-wrap:anywhere}
.extra-card h4{font-size:19px;margin-bottom:4px}
.pot-subtitle{margin:0 0 14px;color:#6b6053;font-size:13px}
.pot-round{border-top:1px solid #eadfce;padding:12px 0}
.pot-round-head,.pot-summary,.pot-winner{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.pot-round-head{font-size:14px}.pot-round-head span,.pot-summary strong{color:#db630c;font-weight:800}
.pot-meta{font-size:12px;color:#786d61;margin:5px 0 9px}
.pot-winner{padding:7px 0;border-bottom:1px solid #f0e9e0;font-size:13px}
.pot-winner span{min-width:0}.pot-winner small{color:#776c61;font-size:11px}
.pot-winner strong{flex-shrink:0;white-space:nowrap}
.pot-carry{font-size:12px;background:#fff2de;border-radius:7px;padding:8px;margin-top:9px}
.pot-no-winner{font-size:12px;color:#756b5f}
.pot-summary{padding:11px 0;border-top:1px solid #eadfce;border-bottom:1px solid #eadfce}
.hoa-entrants{margin-top:15px;font-size:12px}.hoa-entrants summary{cursor:pointer;color:#b7500c;font-weight:700}
.hoa-entrants p{line-height:1.6;color:#675e54}
@media(max-width:700px){.extras-grid{grid-template-columns:minmax(0,1fr)}}

.hoa-card{grid-column:1/-1}.hoa-races{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.hoa-race{border:1px solid #eadfce;border-radius:10px;padding:12px;background:#fff}.hoa-overall{background:#fff7ea;border-color:#e9c98e}@media(max-width:700px){.hoa-races{grid-template-columns:minmax(0,1fr)}}

/* Consistent shooter/person icon (replaces platform-dependent chess pawn glyph) */
.shooter-icon{width:1em;height:1em;display:inline-block;vertical-align:-0.12em;flex:0 0 auto}


/* Beta environment marker */
.beta-badge{display:inline-block;vertical-align:.18em;margin-left:7px;padding:3px 7px;border-radius:999px;background:#f47719;color:#080808;font-size:10px;font-weight:900;letter-spacing:1px;line-height:1;border:1px solid #ffb56f;box-shadow:0 0 0 1px #0003}
@media(max-width:600px){.beta-badge{margin-left:4px;padding:3px 6px;font-size:9px}}
