[hidden] { display: none !important; }
:root {
  --green: #173f30; --green-2: #23573f; --green-soft: #e3ece4;
  --cream: #f6f3ea; --card: #ffffff; --ink: #1b2420; --muted: #6a736e; --line: #e2ddcf;
  --gold: #c69a3c; --red: #b8402f; --birdie: #c0392b; --bogey: #2b5d8a;
  --radius: 16px; --display: 'Fraunces', Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--cream); color: var(--ink); }
body { font: 16px/1.45 Inter, system-ui, sans-serif; min-height: 100dvh; }
h1 { font: 700 30px/1.15 var(--display); margin: 6px 0 10px; letter-spacing: -.01em; }
h2 { font: 600 13px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; }
a { color: var(--green-2); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; } .gap { gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.page { max-width: 560px; margin: 0 auto; padding: 18px 16px calc(96px + var(--safe-b)); }
.loading { display: grid; place-items: center; height: 100dvh; font-size: 40px; animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.demo { background: var(--gold); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 5px; }
.back { display: inline-block; text-decoration: none; font-weight: 600; margin-bottom: 4px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: block; }
label { display: block; font-size: 14px; font-weight: 600; }
input, select { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--green-2); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 16px Inter, sans-serif; padding: 14px 20px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; width: 100%; }
.btn.primary { background: var(--green); color: #fff; } .btn.primary:active { background: var(--green-2); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.danger { color: var(--red); } .btn.sm { padding: 8px 14px; font-size: 14px; width: auto; }
.btn:disabled { opacity: .35; }
.big-btn { padding: 18px; font-size: 18px; margin-top: 16px; }
.row.gap .btn { flex: 1; }

/* segmented & tee pickers */
.seg { display: flex; gap: 6px; flex-wrap: wrap; } .seg legend { width: 100%; }
.seg label { flex: 1; } .seg input, .tees input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; background: #fff; }
.seg input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.tees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tees legend { grid-column: 1 / -1; }
.tees span { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tees i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; border: 1px solid #0002; vertical-align: -1px; }
.tees small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; font-size: 12px; }
.tees input:checked + span { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }

/* auth */
.auth { max-width: 420px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.auth h1 { font-size: 38px; } .auth h1 em { color: var(--green-2); }
.auth form { text-align: left; margin-top: 24px; } .auth form > * + * { margin-top: 14px; }
.crest { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 22px; display: block; box-shadow: 0 6px 18px #0002; }

/* home */
.hello h1 { margin-top: 0; }
.hero { background: var(--green); color: #fff; border-radius: 22px; padding: 22px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff22, transparent 60%), repeating-radial-gradient(circle, #ffffff10 0 2px, transparent 2px 9px); }
.hero .label { opacity: .75; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.hero .big { font: 700 64px/1 var(--display); margin: 8px 0; color: var(--gold); }
.hero .small { opacity: .8; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.live { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; text-decoration: none; color: inherit; border: 2px solid var(--gold); }

/* lists */
.list { list-style: none; padding: 0; margin: 12px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #0002; flex: none; }
.score { text-align: right; } .score strong { font: 700 22px var(--display); }
.board { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; } .board li + li { border-top: 1px solid var(--line); }
.board li.me { background: var(--green-soft); } .board .pos { width: 22px; color: var(--muted); font-weight: 600; }
.board small { display: block; color: var(--muted); font-size: 12px; } .board b { font: 700 20px var(--display); }
.board li:nth-child(-n+3) .pos { color: var(--gold); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.stats.small4 { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; }
.stats b { display: block; font: 700 24px var(--display); } .stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.spark { margin: 0 0 16px; } .spark svg { width: 100%; height: 70px; display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
.spark polyline { fill: none; stroke: var(--green-2); stroke-width: 2; vector-effect: non-scaling-stroke; } .spark circle { fill: var(--gold); }

/* scorecard table */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sc { border-collapse: collapse; width: 100%; background: var(--card); margin-bottom: 10px; font-size: 13px; }
.sc th, .sc td { padding: 6px 1px; text-align: center; border-bottom: 1px solid var(--line); }
.sc th { background: var(--green); color: #fff; font-weight: 600; }
.sc td:first-child, .sc th:first-child { text-align: left; padding-left: 8px; font-weight: 600; }
.sc tr.m td { color: var(--muted); font-size: 10.5px; } .sc tr.me td { font-weight: 700; font-size: 16px; }
.sc sup { color: var(--gold); font-size: 8px; position: absolute; margin-left: -2px; }
.sc span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; }
.sc .birdie { border: 2px solid var(--birdie); border-radius: 50%; color: var(--birdie); }
.sc .eagle { border: 2px solid var(--birdie); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--birdie); color: var(--birdie); }
.sc .bogey { border: 2px solid var(--bogey); border-radius: 3px; } .sc .dbl { border: 2px solid var(--bogey); border-radius: 3px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bogey); }
.sc.edit input { width: 38px; padding: 6px 2px; margin: 0; text-align: center; font-size: 14px; }
.sc.edit { min-width: 860px; } .sc.edit th { white-space: nowrap; }
.ratings { width: 100%; border-collapse: collapse; font-size: 13px; } .ratings td, .ratings th { padding: 4px; text-align: left; }
.ratings input { margin: 0; padding: 8px; }

/* bottom tabs */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fffffff2; backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); z-index: 5; }
.tabs a { flex: 1; text-align: center; padding: 9px 0 10px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs .ico { display: block; font-size: 20px; filter: grayscale(1); opacity: .6; }
.tabs a.on { color: var(--green); } .tabs a.on .ico { filter: none; opacity: 1; }

/* play screen */
.play { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); }
.playtop { background: var(--green); color: #fff; display: flex; align-items: center; padding: 12px 16px; gap: 12px; }
.playtop .x { color: #fff; text-decoration: none; font-size: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #ffffff1a; }
.totals { flex: 1; display: flex; justify-content: space-around; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.totals div { text-align: center; } .totals span { display: block; font: 700 22px var(--display); text-transform: none; color: var(--gold); }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--green-2); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffff22; color: #fff; font-weight: 700; font-size: 14px; }
.strip .cur { background: #fff; color: var(--green); box-shadow: 0 0 0 2px var(--gold); }
.strip .under { background: var(--birdie); } .strip .even { background: #ffffff55; } .strip .over { background: var(--bogey); } .strip .over2 { background: #1b2f45; }
.holecard { padding: 18px 16px 8px; }
.holeno { font: 500 18px var(--display); color: var(--muted); } .holeno b { font-size: 44px; color: var(--ink); font-weight: 700; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.meta div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 8px 4px; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.meta b { display: block; font: 700 22px var(--display); color: var(--ink); text-transform: none; letter-spacing: 0; }
.entry { padding: 8px 16px; flex: 1; }
.lbl { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 8px; }
.rel { float: right; color: var(--green-2); text-transform: none; letter-spacing: 0; font-size: 15px; }
.stepper { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stepper button { width: 64px; height: 56px; border: 0; background: transparent; font-size: 28px; color: var(--green); cursor: pointer; }
.stepper button:active { background: var(--green-soft); }
.stepper output { flex: 1; text-align: center; font: 700 30px var(--display); }
.stepper.big button { width: 88px; height: 96px; font-size: 40px; } .stepper.big output { font-size: 64px; }
.stepper output.unset { color: #c3bfb2; }
.quick { display: flex; gap: 8px; margin-top: 10px; }
.quick button { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: 700 18px var(--display); }
.quick button.on { background: var(--green); color: #fff; border-color: var(--green); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fw { display: flex; gap: 6px; } .fw button { flex: 1; height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; }
.fw .on { background: var(--green); color: #fff; border-color: var(--green); } .fw .on.miss { background: var(--bogey); border-color: var(--bogey); }
.playnav { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--cream) 30%); }
.playnav .btn.ghost { flex: 0 0 110px; } .playnav .btn.primary { flex: 1; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 50; max-width: 90vw; animation: up .2s; box-shadow: 0 8px 24px #0003; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } }

/* tournaments */
.tag { display: inline-block; font-size: 10px; font-weight: 700; background: var(--gold); color: #fff; border-radius: 4px; padding: 1px 5px; vertical-align: 2px; margin-left: 4px; }
.tbanner { margin-top: 16px; text-decoration: none; color: inherit; border-left: 5px solid var(--gold); }
.tbanner strong { display: block; font: 700 20px var(--display); margin: 2px 0; }
.tbanner.t-live { border-color: var(--birdie); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--birdie); margin-right: 6px; animation: pulse .9s infinite alternate; vertical-align: 1px; }
.tstrip { background: var(--gold); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 5px; }
.tlink { display: block; margin: -2px 0 6px; font-weight: 600; text-decoration: none; }
.monthnav { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--muted); }
.monthnav a { text-decoration: none; font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.monthnav a:active { background: var(--green-soft); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.pill.live { background: #f7e1dd; color: var(--birdie); } .pill.final { background: #ece9df; color: var(--muted); }
.tfacts { margin: 14px 0; padding: 6px 16px; }
.tfacts div { padding: 9px 0; font-size: 14px; } .tfacts div + div { border-top: 1px solid var(--line); }
.tfacts span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.lb { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.lb th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.lb td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.lb tr:last-child td { border-bottom: 0; } .lb tr[data-go] { cursor: pointer; } .lb tr[data-go]:active { background: var(--green-soft); }
.lb .l { text-align: left; } .lb small { display: block; color: var(--muted); font-size: 11px; }
.lb .pos { width: 30px; font-weight: 700; color: var(--muted); } .lb tr:nth-child(2) .pos { color: var(--gold); }
.lb b { font: 700 19px var(--display); } .lb .tp { color: var(--muted); font-size: 13px; width: 34px; }
.lb tr.me { background: var(--green-soft); }
.warn { color: var(--red); margin-top: 6px; }
.tinfo { background: #fbf6e8; border-color: #ead9ad; }
.tinfo strong { display: block; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; } .check input { width: auto; margin: 0; }
.two > * { min-width: 0; } .two input { min-width: 0; }
.flightrow { margin-top: 8px; } .flightrow input { margin: 0; }
.tabs a { font-size: 10.5px; }
.fh { display: flex; align-items: center; gap: 8px; } .fh::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.fh-cc::before { background: var(--gold); } .fh-mm::before { background: var(--green-2); }
.tfacts em { display: block; font-style: normal; color: var(--green-2); margin-top: 4px; }
/* official index & committee */
.official { background: var(--green-soft); border-radius: 12px; padding: 12px 14px; }
.official b { font: 700 30px var(--display); display: block; margin: 2px 0; }
.hc li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.hc .hcnow { text-align: center; min-width: 46px; } .hc .hcnow span { display: block; font-size: 10px; text-transform: uppercase; }
.hc .hcnow b { font: 700 18px var(--display); }
.hc input { width: 70px; margin: 0; text-align: center; padding: 10px 6px; }
.sticky-save { position: sticky; bottom: calc(70px + var(--safe-b)); box-shadow: 0 6px 18px #0003; }
textarea { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.h2c { margin: 0 0 4px; }
.filebtn { cursor: pointer; }
.pv { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips span { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.changes { columns: 2; padding-left: 18px; margin: 8px 0; } @media (max-width: 420px) { .changes { columns: 1; } }
.hc li { align-items: flex-start; } .hc .linkin { margin-top: 6px; padding: 8px 10px; font-size: 14px; width: 100%; text-align: left; }
.hc .hcnow { padding-top: 2px; }
.pick { margin: 0; } .pick button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 16px; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.pick button:disabled { opacity: .45; } .pick button:active { background: var(--green-soft); }
.pick:empty { display: none; }
details summary { cursor: pointer; color: var(--green-2); font-weight: 600; }
.sheet-wrap { position: fixed; inset: 0; background: #1b242099; display: flex; align-items: flex-end; justify-content: center; z-index: 60; padding: 16px; padding-bottom: calc(16px + var(--safe-b)); }
.sheet { background: var(--card); border-radius: 20px; padding: 20px; width: 100%; max-width: 480px; box-shadow: 0 -8px 30px #0003; animation: sheetup .18s ease-out; }
@keyframes sheetup { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .sheet, .toast { animation: none; } }
.sheet p { margin: 0 0 6px; font-size: 16px; } .sheet .row.gap { margin-top: 12px; }
/* points */
.lb .pts { font: 700 15px var(--display); color: var(--green); width: 40px; font-variant-numeric: tabular-nums; }
.lb .ptsh { color: var(--green); }
.season td, .season th { font-variant-numeric: tabular-nums; }
.card.flat { padding: 0; overflow: hidden; }
.mbm { min-width: 0; } .mbm td, .mbm th { padding: 6px 6px; white-space: nowrap; }
.mbm td:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
.mbm th:first-child { position: sticky; left: 0; z-index: 2; }
.mbm small { display: block; color: var(--muted); font-size: 10px; } .mbm tr.me td { background: var(--green-soft); }
.fund { min-width: 0; } .fund td, .fund th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 6px 8px; }
.fund td:first-child, .fund th:first-child { text-align: left; } .fund small { display: block; color: var(--muted); font-size: 10px; }
.fund input { width: 76px; margin: 0; padding: 6px 6px; text-align: right; font-size: 14px; }
.fund td, .fund th { padding: 6px 5px; }
.mbm th a { color: inherit; }
/* tasks, workflow, registration */
.task { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 12px; }
.task > span { font-size: 22px; color: var(--muted); } .task.urgent { border: 2px solid var(--gold); }
.ok { color: var(--green-2); font-weight: 600; }
.workflow { margin-top: 14px; } .steps { list-style: none; padding: 0; margin: 8px 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; } .steps li + li { border-top: 1px solid var(--line); }
.steps b { display: block; font-size: 15px; } .steps small { color: var(--muted); font-size: 13px; }
.step-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.step-ic.ok { background: var(--green); border-color: var(--green); color: #fff; } .step-ic.bad { background: var(--red); border-color: var(--red); color: #fff; }
.reg .btn.sm { flex: none; } .reg li[hidden] { display: none; }
.checks { display: grid; gap: 6px; max-height: 260px; overflow: auto; } .checks .check small { margin-left: 4px; }
select + small, label > small { display: block; margin-top: 4px; font-weight: 400; }
.prize { color: var(--gold); font-weight: 700; }
.demo-hint { background: #fbf6e8; border: 1px solid #ead9ad; border-radius: 10px; padding: 8px 10px; }
.regbar { margin-top: 0; flex-wrap: nowrap; } .regbar input { margin: 0; flex: 1; min-width: 0; } .regbar .btn { flex: none; width: auto; }
.tight { flex: none; max-width: 110px; text-align: right; }
.alias { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; } .alias select { flex: 1; margin: 0; min-width: 0; }
.boardsw { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.boardsw a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.boardsw a.on { background: var(--green); color: #fff; }
.lb .played { color: var(--muted); font-variant-numeric: tabular-nums; width: 46px; }
.lb td small.tp { display: block; font-size: 11px; color: var(--muted); }
.mbm-wrap { margin: 8px 0 4px; } .mbm-wrap summary { cursor: pointer; color: var(--green-2); font-weight: 600; padding: 6px 0; }
.fh .jump { margin-left: auto; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 700; text-decoration: none;
  color: var(--green); background: var(--green-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.fh .fname { white-space: nowrap; } .fh .cnt { font-size: 11px; background: var(--line); color: var(--muted); border-radius: 999px; padding: 1px 7px; letter-spacing: 0; }
.season td.hi { color: var(--muted, #6b7280); font-size: .92em; }
.lb td small.adjn { color: #8a6d1f; font-weight: 600; }
.notice { border-left: 4px solid var(--gold, #b8932f); line-height: 1.45; }
.notice b { color: var(--ink); margin-right: 4px; }
/* Registration desk */
.regform select, .regform input { width: 100%; }
.regfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.regfacts div { background: var(--cream); border-radius: 10px; padding: 8px 10px; }
.regfacts span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.regfacts b { font-size: 17px; } .regfacts small { display: block; font-size: 11px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .grid3 label:last-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr 1fr; } .grid3 label:last-child { grid-column: auto; } }
.addm { border-left: 3px solid var(--gold, #b8932f); padding-left: 10px; }
.gameno-box { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: #13372b; color: #fff; border-radius: 12px; padding: 12px 16px; }
.gameno-box span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.gameno-box b { font: 700 22px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: #f3d77a; }
.gno { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.regtbl td small { display: block; color: var(--muted); font-size: 11px; }
.regtbl td, .regtbl th { white-space: nowrap; }
/* Group card at the desk */
.person { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; display: grid; gap: 8px; margin: 0; }
.person legend { font-weight: 600; font-size: 13px; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.person.marker { border-style: dashed; border-color: var(--gold, #b8932f); }
.person label { display: grid; gap: 4px; font-size: 13px; }
.x.sm { border: 0; background: var(--cream); border-radius: 50%; width: 24px; height: 24px; font-size: 12px; cursor: pointer; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grp { padding: 12px 14px; } .grp table { margin-top: 8px; }
.msgprev { margin-top: 8px; } .msgprev pre { white-space: pre-wrap; font: 12px/1.4 ui-monospace, Menlo, monospace; background: var(--cream); padding: 8px 10px; border-radius: 8px; margin: 4px 0 0; }
.tag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: var(--cream); color: var(--muted); border-radius: 6px; padding: 2px 6px; }
/* Group scoring */
.gtitle { display: grid; text-align: right; } .gtitle b { font-size: 16px; } .gtitle span { font-size: 12px; opacity: .8; }
.gentry { display: grid; gap: 8px; padding: 0 16px 12px; }
.gp { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.gp.locked { opacity: .6; }
.gpn { display: grid; gap: 2px; min-width: 0; } .gpn b { font-size: 16px; } .gpn small { color: var(--muted); font-size: 12px; }
.gp .stepper { flex: none; } .gp .stepper output { min-width: 44px; font-size: 26px; }
.gfoot { padding: 0 16px 90px; }
.ghead { margin: 4px 0 12px; } .ghead .label { font-weight: 600; }
.gplayers { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 14px; }
.gsum { display: grid; gap: 8px; padding: 12px 14px; }
.sigs { display: grid; gap: 2px; }
.guest { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }
.gtitle { margin-left: auto; }
.person .regfacts { grid-template-columns: auto auto 1fr; } .person .regfacts div { white-space: nowrap; }
/* Members' details */
.mdet li { display: grid; gap: 8px; padding: 12px 16px; }
.mfields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mfields input { width: 100%; font-size: 14px; padding: 8px 10px; }
.mfields input[type=email] { grid-column: 1 / -1; }
@media (min-width: 720px) { .mdet li { grid-template-columns: 1fr 2fr; align-items: center; } .mfields { grid-template-columns: 1fr 1fr 1.4fr; } .mfields input[type=email] { grid-column: auto; } }
input.saved { border-color: #2e7d4f !important; box-shadow: 0 0 0 2px #2e7d4f33; transition: box-shadow .3s; }
#mSearch { width: 100%; margin-bottom: 8px; }
.mdet li.mhead { display: block; padding: 10px 16px 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--cream); }
.codebig { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: #13372b; color: #fff; border-radius: 12px; padding: 12px 16px; }
.codebig span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.codebig b { font-size: 28px; color: #f3d77a; letter-spacing: .06em; }
table.codes td { padding: 8px 4px; } table.codes td b { font-size: 20px; } table.codes td small { display: block; color: var(--muted); font-size: 12px; }
.addbanner { background: var(--cream); border-radius: 10px; padding: 10px 12px; margin: 0; line-height: 1.5; }
/* Captains' tournament scorecards */
.cardsbar select, .cardsbar input { flex: 1 1 160px; }
.capcards td, .capcards th { padding: 4px 2px; }
.capcards td.pl { min-width: 150px; white-space: normal; position: sticky; left: 0; background: var(--card); z-index: 1; }
.capcards td.pl small { display: block; color: var(--muted); font-size: 11px; margin: 2px 0 4px; }
.capcards input.hs { width: 30px; padding: 4px 0; text-align: center; font: 600 14px/1 var(--body, system-ui); border: 1px solid var(--line); border-radius: 6px; background: var(--cream); color: var(--ink); }
.capcards input.hs:focus { outline: 2px solid var(--gold, #b8932f); background: var(--card); }
.capcards td.tot { font-variant-numeric: tabular-nums; min-width: 30px; }
.capcards td.acts { white-space: nowrap; padding-left: 8px; }
.capcards td.acts .btn { margin: 2px 0; }
.capcards tr.dqrow td { opacity: .6; } .capcards tr.dqrow td.acts, .capcards tr.dqrow td.pl { opacity: 1; }
.capcards tr.dqnote td { padding: 0 6px 8px; color: var(--muted); }
.chip { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 6px; background: var(--cream); color: var(--muted); }
.chip.ok { background: #e3f1e7; color: #1f6b3a; } .chip.bad { background: #f8d7da; color: #8a1c24; } .chip.warn { background: #fcefc7; color: #7a5a00; }
.btn.danger.primary { background: #b3261e; border-color: #b3261e; color: #fff; }
.page.wide { max-width: 1320px; } .page.wide > p.muted { max-width: 760px; }
.hiowarn { position: absolute; z-index: 70; max-width: 260px; background: var(--card); color: var(--ink); border: 2px solid var(--gold, #b8932f); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 24px #0003; font-size: 13px; line-height: 1.4; }
.hiowarn .row { margin-top: 8px; }
/* Testing switcher (admin): Registration / Captain / Sebastian / Bas */
.switcher { background: #1f3a2e; color: #fff; font-size: 13px; padding: 6px 12px; display: flex; justify-content: center; }
.switcher label { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 600; }
.switcher select { width: auto; padding: 4px 8px; font-size: 13px; border-radius: 8px; margin: 0; }
.row.wrap { flex-wrap: wrap; gap: 6px; }
/* Fees owed (captain registered without payment) */
.tag.owed { background: #fbe9e7; color: #b3261e; }
.owedbox { border-left: 4px solid #b3261e; }
.owedbox .list li { display: flex; align-items: center; gap: 10px; }
label.check.unpaid { display: flex; gap: 8px; align-items: center; font-size: 14px; background: #fff8e6; border: 1px solid #ead9ad; border-radius: 10px; padding: 8px 10px; }
label.check.unpaid input { width: auto; margin: 0; }
.owedbox .list li { padding: 8px 10px; }
/* Monthly handicap list */
.tblwrap { overflow-x: auto; }
table.hcpl td, table.hcpl th { text-align: center; padding: 6px 8px; }
table.hcpl td.l, table.hcpl th.l { text-align: left; }
table.hcpl th.tee-blue { color: #2563eb; } table.hcpl th.tee-gold { color: #b8932f; } table.hcpl th.tee-red { color: #dc2626; }
table.hcpl td.prev, table.hcpl th.prevh { color: #8a8a80; }
.hdown { color: #15803d; font-size: 10px; } .hup { color: #b3261e; font-size: 10px; }
table.hcpl td.phi { color: #d66e68; } table.hcpl td.plo { color: #5caa74; }
table.hcpl td b { font-family: Inter, system-ui, sans-serif; font-size: inherit; font-weight: 700; }
.hlhead { display: flex; align-items: center; gap: 14px; }
.hlhead img { width: 64px; height: auto; flex: none; }
.hlhead h1 { margin: 0; }
@media (max-width: 480px) { table.hcpl td, table.hcpl th { padding: 6px 4px; font-size: 13px; } table.hcpl th { font-size: 11px; } }
/* Activity column: scores posted last month */
.ack { color: #2e8c50; font-weight: 700; }
.adot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 1px; vertical-align: middle; }
.adot.g { background: #2e8c50; } .adot.r { background: #c83c32; }
td.act { white-space: nowrap; }

/* Card link (player opened their WhatsApp link, no password) */
#cardbar { position: static; max-width: 560px; margin: 0 auto; box-sizing: border-box; display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card, #fff); border-top: 1px solid var(--line, #ddd); font-size: 14px; }
#cardbar span { flex: 1; }

/* Group card (opened from the WhatsApp link) */
.tee-blue { --tc: #2563eb; --tt: #fff; } .tee-white { --tc: #f4f4f2; --tt: #1f2a24; } .tee-gold { --tc: #c9a227; --tt: #1f2a24; } .tee-red { --tc: #dc2626; --tt: #fff; }
.gtop { position: relative; background: var(--green); color: #fff; text-align: center; padding: 14px 16px 16px; display: grid; gap: 2px; }
.gtop .x { position: absolute; left: 12px; top: 12px; color: #fff; text-decoration: none; font-size: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #ffffff1a; }
.gtop .gdate { font-size: 14px; opacity: .85; } .gtop .gev { font: 700 22px var(--display); letter-spacing: .02em; } .gtop .ggrp { font-size: 14px; opacity: .9; }
.gnames { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.tchip { background: var(--tc, #fff); color: var(--tt, #000); border: 1px solid #0000001f; border-radius: 8px; padding: 4px 9px; font-size: 14px; font-weight: 600; }
.tchip small { font-weight: 500; opacity: .8; }
.ghole { display: grid; justify-items: center; padding: 14px 16px 6px; } .ghole span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ghole b { font: 700 54px/1 var(--display); color: var(--green); } .ghole small { color: var(--muted); font-size: 13px; margin-top: 4px; }
.g2 .gp { justify-content: flex-start; }
.gini { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: .03em;
  background: var(--tc, #eee); color: var(--tt, #000); border: 1px solid #0000002a; }
.gini.sm { width: 34px; height: 26px; border-radius: 7px; font-size: 12px; }
.g2 .gp .stepper { flex: 1; }
.g2 .stepper .gsc { flex: 1; width: auto; height: 56px; font: 700 30px var(--display); color: var(--ink, #1f2a24); }
.g2 .stepper .gsc.unset { color: #c3bfb2; }
.gnet { flex: none; width: 34px; text-align: center; font-size: 13px; color: var(--muted); display: grid; line-height: 1.1; }
.gnet i { font-style: normal; font-size: 10px; color: var(--gold); }
.playnav .btn.wait { opacity: .55; }
.g2 .playnav .btn.ghost { flex: 0 0 auto; }
.gfullbtn { margin: 0 16px calc(16px + var(--safe-b)); }
.gfull .playnav.static { position: static; background: none; }
.fullsc th button { background: none; border: 0; color: #fff; font: inherit; padding: 2px 4px; cursor: pointer; }
.fullsc td { position: relative; } .fullsc .dots { position: absolute; top: 1px; right: 1px; font-style: normal; font-size: 8px; color: var(--gold); }
.rotate-hint { text-align: center; padding: 8px 16px 0; }
@media (orientation: landscape) { .gfull { max-width: none; } .gfull .rotate-hint { display: none; } .gfull .gtop { padding: 8px 16px; } .gfull .gnames { margin-top: 4px; } .fullsc { font-size: 14px; } }
.g2 .playnav .btn, .g2 .playnav .btn.ghost, .g2 .playnav .btn.primary { flex: 1 1 0; width: auto; min-width: 0; white-space: nowrap; }
.g2 .gfullbtn { display: block; width: calc(100% - 32px); box-sizing: border-box; }
.g2 { overflow-x: hidden; }
/* Bigger numbers on the course (easier to read with glasses) */
.g2 .stepper .gsc { height: 72px; font-size: 48px; }
.g2 .stepper button { height: 72px; font-size: 34px; }
.g2 .gini { width: 54px; height: 54px; font-size: 20px; }
.g2 .gnet { width: 40px; font-size: 20px; font-weight: 700; }
.g2 .gnet i { font-size: 13px; }
.g2 .gp { padding: 8px 10px; gap: 8px; }
.fullsc { font-size: 15px; } .fullsc span { min-width: 26px; height: 26px; }
/* Sans-serif numbers on the course card */
.g2 .stepper .gsc, .g2 .ghole b, .g2 .gtop .gev, .g2 .gnet, .fullsc { font-family: Inter, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.g2 .stepper .gsc { font-weight: 700; }
.g2 .ghole b { font-weight: 800; }
/* End of tournament */
.endstats { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; gap: 4px; }
.endstats b { display: block; font-size: 22px; } .endstats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.endstats .warn b { color: #b45309; }
.endrow { gap: 10px; align-items: center; }
.anntext { width: 100%; box-sizing: border-box; font: 14px/1.45 ui-monospace, Menlo, monospace; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.annpre { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 13px/1.45 ui-monospace, Menlo, monospace; }
.annrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; } .annrow input { font-size: 14px; padding: 8px 10px; min-width: 0; }
.annrow input[data-f=mobile] { grid-column: 1; } .annrow button { grid-column: 2; justify-self: start; }
p.card.ok { color: inherit; border-color: #9fd3b0; background: #eef8f1; } p.card.warn { border-color: #f2c48d; background: #fff6ea; }
