/* Falkners Golf — live scoring app.
   Same crest palette as the website, tuned for a phone held in one
   hand in bright daylight: big targets, high contrast, no hover. */

:root {
  --navy: #1B3A6C;
  --navy-dark: #10233F;
  --navy-mid: #274B85;
  --gold: #B8923C;
  --gold-light: #D9BE7C;
  --paper: #EEF1F6;
  --panel: #FFFFFF;
  --ink: #171F30;
  --ink-soft: #57617A;
  --line: rgba(27, 58, 108, 0.16);
  --good: #1E7A46;
  --bad: #B3261E;
  --birdie: #1E7A46;
  --bogey: #C0392B;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --tabbar-h: 62px;
  --shadow: 0 1px 2px rgba(16,35,63,.06), 0 12px 28px -18px rgba(16,35,63,.5);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
/* Solid navy behind the phone's status bar and when the page is pulled down, never a grey blur */
html { background: var(--navy-dark); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: calc(24px + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + 16px + var(--safe-bottom)); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--navy);
  margin: 0 0 .4em;
  line-height: 1.15;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 16px 14px;
  min-height: calc(68px + var(--safe-top));
  background: var(--navy-dark);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.topbar-brand img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-light); }
.topbar-brand { min-width: 0; }
.topbar-brand span { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .topbar-brand span { font-size: 1.12rem; } }
@media (max-width: 360px) { .topbar-brand span { font-size: .9rem; } .topbar-brand img { width: 34px; height: 34px; } }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: 0; color: #fff; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.sync-pill { font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); }
.sync-pill.offline { background: #fff; color: var(--bad); }

.menu {
  position: fixed; z-index: 30; right: 12px; top: calc(70px + var(--safe-top));
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-width: 200px; overflow: hidden;
  border: 1px solid var(--line);
}
.menu a, .menu button { padding: 14px 16px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.menu > :last-child { border-bottom: 0; color: var(--bad); }

/* ---------- Layout ---------- */
.view { max-width: 640px; margin: 0 auto; padding: 16px; animation: fade-in .22s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.loading, .empty { text-align: center; color: var(--ink-soft); padding: 48px 16px; }
.card {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 16px; margin-bottom: 14px;
}
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 10px; border: 0;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.block { width: 100%; }
.btn.gold { background: var(--gold); color: var(--navy-dark); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.danger { background: var(--bad); }
.btn:disabled { opacity: .5; }

.status-msg { font-size: .9rem; padding: 10px 12px; border-radius: 8px; background: #eef2f8; margin-top: 10px; }
.status-msg.err { background: #fdecea; color: var(--bad); }
.status-msg.ok { background: #e7f4ec; color: var(--good); }

label.field { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-weight: 400; color: var(--ink);
}
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; }
.check-chip input { accent-color: var(--navy); }

/* ---------- Round list ---------- */
.round-item { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.round-date { width: 52px; text-align: center; flex: none; border-radius: 8px; background: var(--navy); color: #fff; padding: 6px 0; }
.round-date b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.round-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.round-meta { flex: 1; min-width: 0; }
.round-meta strong { display: block; font-family: var(--font-display); text-transform: uppercase; color: var(--navy); font-size: 1.05rem; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: #e6eaf2; color: var(--navy); }
.badge.live { background: var(--bad); color: #fff; animation: pulse 2s infinite; }
.badge.final { background: var(--gold); color: var(--navy-dark); }
@keyframes pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .badge.live { animation: none; } }
.section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 22px 4px 8px; }

/* ---------- Round header & tabs ---------- */
.round-head { margin-bottom: 12px; }
.round-head h1 { margin-bottom: 2px; }
.tabs { display: flex; gap: 4px; background: #e2e7f0; border-radius: 12px; padding: 4px; margin-bottom: 14px; position: sticky; top: calc(68px + var(--safe-top)); z-index: 10; }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.subtabs button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.subtabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Score entry ---------- */
.hole-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-bottom: 12px; }
.hole-strip button { min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; font-size: .85rem;
  padding: 3px 0 4px; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; position: relative; }
.hole-strip button b { line-height: 1.1; }
/* tiny scores under the hole number: one per player in the group */
.minis { display: grid; gap: 0 3px; line-height: 1; }
.minis-1 { grid-template-columns: 1fr; }
.minis-2 { grid-template-columns: 1fr 1fr; }
.minis-3, .minis-4 { grid-template-columns: 1fr 1fr; }
.minis-1 .mini { font-size: .9rem; }
.mini { font-style: normal; font-size: .66rem; font-weight: 700; color: var(--ink); min-width: .7em; text-align: center; }
.mini.under { color: var(--birdie); }
.mini.over { color: var(--bogey); }
.mini.pu { color: #6b7280; }
.hole-strip button.current .mini { color: #fff; }
.hole-strip button.current .mini.under { color: #8ee0ab; }
.hole-strip button.current .mini.over { color: #ffb4ab; }
.hole-strip button.gap { border-color: var(--bad); }
.hole-strip button.gap::before { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.hole-strip button.done { background: #dfe7f3; color: var(--navy); border-color: transparent; }
.hole-strip button.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.hole-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; color: #fff; border-radius: var(--radius); padding: 14px 8px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); box-shadow: var(--shadow), inset 0 -3px 0 var(--gold); }
.hole-head .facts { flex: 1; justify-content: flex-end; }
.hh-arrow { flex: none; width: 36px; height: 52px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--gold-light); font-size: 1.8rem; line-height: 1; }
.hh-arrow:disabled { opacity: .25; }
.hole-head .num { font-family: var(--font-display); font-size: 2.6rem; line-height: .9; }
.hole-head .num small { font-size: .8rem; letter-spacing: .1em; display: block; color: var(--gold-light); }
.hole-head .facts { display: flex; gap: 18px; text-align: center; }
.hole-head .facts div { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); }
.hole-head .facts b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: 0; }

.score-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.score-card + .score-card { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.score-name strong { display: block; font-size: 1.02rem; }
.score-name .shots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.score-name .shots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.score-name .shots i.minus { background: var(--bad); }
.score-name .sub { font-size: .8rem; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.5rem; font-weight: 600; color: var(--navy); line-height: 1; }
.stepper .val { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; background: #eef2f8; color: var(--ink-soft); border: 0; }
.stepper .val.set { background: var(--navy); color: #fff; }
.stepper .val.under { background: var(--birdie); color: #fff; }
.stepper .val.over { background: var(--bogey); color: #fff; }
.stepper .val.pu { font-size: 1rem; background: #6b7280; color: #fff; }
.mini-actions { display: flex; gap: 6px; margin-top: 6px; }
.mini-actions button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.score-card .stepper { align-self: start; }
.pu-btn { font-size: .72rem !important; font-weight: 700 !important; width: auto !important; padding: 0 10px; border-radius: 999px !important; height: 34px !important; }
.pts { font-size: .78rem; font-weight: 700; color: var(--navy); }
.hole-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px -16px 0;
  position: sticky; bottom: 0; padding: 10px 16px calc(10px + var(--safe-bottom));
  z-index: 5;
  background: linear-gradient(to bottom, rgba(243,245,249,0), var(--paper) 30%);
}
.hole-nav .btn.ghost { background: #fff; }
.group-picker { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.group-picker button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; }
.group-picker button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

/* ---------- Leaderboards ---------- */
.board { width: 100%; border-collapse: collapse; }
.board th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); text-align: left; padding: 6px 6px; font-weight: 700; }
.board td { padding: 11px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.board tr[data-player] { cursor: pointer; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .pos { width: 34px; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--font-display); font-size: .95rem; background: #e6eaf2; color: var(--navy); }
.medal.p1 { background: var(--gold); color: var(--navy-dark); }
.medal.p2 { background: #c9ced8; }
.medal.p3 { background: #d8b48f; }
.big { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.thru { font-size: .75rem; color: var(--ink-soft); }
.me td { background: #fff8e6; }
.under-par { color: var(--birdie); font-weight: 700; }
.over-par { color: var(--bogey); }

.skin-holes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.skin { border-radius: 8px; padding: 6px 4px; text-align: center; background: #eef2f8; font-size: .72rem; }
.skin b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--navy); }
.skin.won { background: var(--navy); color: #fff; }
.skin.won b { color: var(--gold-light); }
.skin.carried { background: #fff3d6; }

/* ---------- Scorecard table ---------- */
.sc-wrap { overflow-x: auto; margin: 0 -4px; }
.sc { border-collapse: collapse; width: 100%; font-size: .82rem; font-variant-numeric: tabular-nums; }
.sc th, .sc td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.sc th { color: var(--ink-soft); font-weight: 600; text-align: left; }
.sc .tot { font-weight: 700; background: #eef2f8; }

/* ---------- Setup ---------- */
.hcp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hcp-table td, .hcp-table th { padding: 8px 4px; border-top: 1px solid var(--line); text-align: left; }
.hcp-table th { font-size: .7rem; text-transform: uppercase; color: var(--ink-soft); border-top: 0; }
.hcp-table input { width: 62px; min-height: 38px; padding: 6px; border: 1.5px solid var(--line); border-radius: 6px; text-align: center; }
.hcp-table .ph { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }

.holes-editor { width: 100%; border-collapse: collapse; }
.holes-editor th { font-size: .7rem; text-transform: uppercase; color: var(--ink-soft); padding: 4px; }
.holes-editor td { padding: 3px; }
.holes-editor input { width: 100%; min-height: 40px; padding: 6px; border: 1.5px solid var(--line); border-radius: 6px; text-align: center; }
.holes-editor td:first-child { font-weight: 700; color: var(--navy); text-align: center; width: 36px; }

/* ---------- Sheet & toast ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(16,35,63,.5); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: 18px 18px 0 0; padding: 22px 16px calc(24px + var(--safe-bottom));
  max-width: 640px; margin: 0 auto;
}
.sheet-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e2e7f0; font-size: 1.4rem; line-height: 1; }
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(20px + var(--safe-bottom));
  animation: toast-in .2s ease-out; transform: translateX(-50%);
  background: var(--navy-dark); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: .9rem;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
.toast.err { background: var(--bad); }

.install-tip { background: #fff8e6; border: 1px solid var(--gold-light); }

.tick { color: var(--good); font-weight: 700; }

/* ---------- personal card & disputes ---------- */
.me-card { border-left: 4px solid var(--gold); }
.dispute-banner { border: 1.5px solid var(--bad); background: #fff6f5; }
.dispute-banner strong { color: var(--bad); }
.dispute-row { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; gap: 2px;
  padding: 8px 10px; margin-top: 6px; border-radius: 8px; border: 1px solid #f1c7c3; background: #fff; }
.dispute-box { grid-column: 1 / -1; background: #fff6f5; border: 1px solid #f1c7c3; border-radius: 8px; padding: 8px 10px; font-size: .85rem; }
.dispute-box b { color: var(--bad); }
.hole-strip button.disputed { box-shadow: inset 0 0 0 2px var(--bad); }
.hole-strip button.disputed::after { content: "!"; position: absolute; top: 1px; left: 4px; color: var(--bad); font-size: .7rem; }
.stepper .val.disputed { box-shadow: 0 0 0 3px var(--bad); }
.stepper button:disabled { opacity: .4; }
.flag-disputed { color: var(--bad); font-weight: 700; }
.sc-disputed { color: var(--bad); font-weight: 700; }
.sc-edit { width: 30px; height: 30px; text-align: center; border: 1.5px solid var(--line); border-radius: 6px; padding: 0; font: inherit; }
.sc-edit.disputed { border-color: var(--bad); background: #fff6f5; }
.settle-row, .submit-row { border-top: 1px solid var(--line); padding: 10px 0; }
.settle-row { display: flex; flex-direction: column; gap: 6px; }
.submit-row { gap: 8px; }
.submit-row:first-child, .settle-row:first-of-type { border-top: 0; }

/* ---------- yardage strip ---------- */
.gps-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; margin: -4px 0 12px; }
.gps-yds b { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.mv-link { background: none; border: 0; color: var(--navy); font-weight: 600; text-decoration: underline; padding: 0; }

/* ---------- full-screen hole map ---------- */
.map-view { position: fixed; inset: 0; z-index: 60; background: #0b1626; display: flex; flex-direction: column; }
.mv-top, .mv-bottom { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #fff; background: var(--navy-dark); }
.mv-top { padding-top: calc(10px + var(--safe-top)); }
.mv-title { flex: 1; text-align: center; font-size: .95rem; }
.mv-title b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em; }
.mv-btn { min-width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1.1rem; font-weight: 600; padding: 0 12px; }
.mv-map { flex: 1; min-height: 0; }
.mv-map .loading { color: #c9d3e3; }
.mv-yds { flex: 1; text-align: center; }
.mv-big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-light); }
.mv-big small { font-size: 1rem; color: #fff; }
.mv-note { font-size: .78rem; color: #c9d3e3; }
.mv-foot { background: var(--navy-dark); text-align: center; padding: 0 12px calc(10px + var(--safe-bottom)); }
.mv-foot .mv-link { color: var(--gold-light); font-size: .8rem; }
.pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: .8rem;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.pin-tee { background: var(--navy); color: #fff; }
.pin-green { background: #1E7A46; color: #fff; }
.pin-icon { background: none; border: 0; }

/* ---------- committee pin editor ---------- */
.pe-host { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pe-map { height: 62vh; min-height: 340px; }

/* ---------- check-in ---------- */
.checkin-card { border-left: 4px solid var(--gold); }
.checkin-row { border-top: 1px solid var(--line); padding: 8px 0; }
.checkin-row:first-of-type { border-top: 0; }
.checkin-done { gap: 8px; }

/* ---------- preview before publishing ---------- */
.preview-banner { border-left: 4px solid var(--navy); background: #eef2f8; }
.preview-group { padding: 8px 0; border-top: 1px solid var(--line); }
.preview-group:first-of-type { border-top: 0; }
.preview-group.mine { background: #fff8e6; margin: 0 -16px; padding: 8px 16px; }
.preview-group .row { padding: 2px 0; }
.preview-sc .sc { font-size: .74rem; table-layout: fixed; }
.preview-sc .sc th, .preview-sc .sc td { padding: 5px 1px; }
.preview-sc .sc th:first-child { width: 42px; }
.preview-sc .sc td.small { font-size: .62rem; }

/* =====================================================================
   App polish (v8): bottom tab bar, score chips, leaderboards, home
   ===================================================================== */

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
body.has-tabbar .toast { bottom: calc(var(--tabbar-h) + 12px + var(--safe-bottom)); }
body.has-tabbar .hole-nav { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: 10px; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  padding: 6px 8px calc(6px + var(--safe-bottom));
  background: rgba(16,35,63,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 rgba(217,190,124,.35);
}
.tabbar button {
  flex: 1; max-width: 140px; min-height: 50px; border: 0; background: none; color: #9fb0cc;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 12px;
}
.tabbar button[aria-selected="true"] { color: var(--gold-light); }
.tabbar button[aria-selected="true"] svg { stroke: var(--gold-light); }
.tabbar button:active { background: rgba(255,255,255,.06); }

/* ---------- round header ---------- */
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; box-sizing: border-box; padding: 0 16px 0 12px; margin: -2px 0 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line, #d5dbe5); box-shadow: 0 1px 3px rgba(16,35,63,.08); font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--navy, #1b3a6c); }
.back-link:active { background: #eef1f6; transform: translateY(1px); }
.home-btn { margin-right: 2px; }
.home-btn[hidden] { display: none; }
.round-head h1 { font-size: 1.7rem; }
.anim-fwd .swipe-zone { animation: in-fwd .22s ease-out; }
.anim-back .swipe-zone { animation: in-back .22s ease-out; }
@keyframes in-fwd { from { opacity: .3; transform: translateX(28px); } }
@keyframes in-back { from { opacity: .3; transform: translateX(-28px); } }
@media (prefers-reduced-motion: reduce) { .view, .anim-fwd .swipe-zone, .anim-back .swipe-zone, .toast { animation: none; } }

/* ---------- avatars ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #dfe5ef; color: var(--navy); font-family: var(--font-display); font-size: .85rem; letter-spacing: .03em; }
.avatar.me { background: var(--gold); color: var(--navy-dark); }
.avatar-pair { display: inline-flex; }
.avatar-pair .avatar { width: 28px; height: 28px; font-size: .72rem; border: 2px solid #fff; }
.avatar-pair .avatar + .avatar { margin-left: -9px; background: #cdd6e4; }

/* ---------- score entry ---------- */
.score-list { padding: 4px 14px; }
.score-card { display: block; padding: 12px 0; }
.score-card + .score-card { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 0; }
.score-top { display: flex; align-items: center; gap: 10px; }
.score-top .score-name { flex: 1; min-width: 0; }
.score-top .score-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-top .val { flex: none; width: 54px; height: 54px; border-radius: 14px; border: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.9rem; background: #eef2f8; color: var(--ink-soft); }
.score-top .val.set { background: var(--navy); color: #fff; }
.score-top .val.under { background: var(--birdie); color: #fff; }
.score-top .val.over { background: var(--bogey); color: #fff; }
.score-top .val.pu { font-size: 1rem; background: #6b7280; color: #fff; }
.score-top .val.disputed { box-shadow: 0 0 0 3px var(--bad); }
.chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.chip { min-height: 44px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-family: var(--font-display);
  font-size: 1.2rem; color: var(--ink); padding: 0; transition: transform .08s; }
.chip:active { transform: scale(.94); }
.chip.c-under { color: var(--birdie); }
.chip.c-over { color: var(--bogey); }
.chip.c-par { border-color: rgba(27,58,108,.35); }
.chip.step { background: #eef2f8; border-color: transparent; color: var(--navy); font-family: var(--font-body); font-size: 1.4rem; }
.chip.on { color: #fff; border-color: transparent; }
.chip.c-under.on { background: var(--birdie); }
.chip.c-par.on { background: var(--navy); }
.chip.c-over.on { background: var(--bogey); }
.score-card .mini-actions { margin-top: 8px; }
.mini-actions button.on { background: #6b7280; border-color: #6b7280; color: #fff; }
.locked-note { margin-top: 6px; }
.swipe-hint { text-align: center; margin: -4px 0 4px; }
@media (hover: hover) { .swipe-hint { display: none; } }

/* ---------- leaderboards ---------- */
.live-line { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bad); margin: 0 2px 10px; }
.live-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.6s infinite; }
.leader-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--navy-mid) 0%, var(--navy-dark) 60%); box-shadow: var(--shadow), inset 0 -3px 0 var(--gold); }
.leader-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; border: 2px solid rgba(217,190,124,.25); }
.lc-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-light); }
.lc-name { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; margin-top: 2px; line-height: 1.15; }
.lc-score { margin-top: 6px; color: #c9d3e3; }
.lc-score b { font-family: var(--font-display); font-size: 2.4rem; color: #fff; line-height: 1; }
.lc-sub { font-size: .8rem; color: #c9d3e3; }
.board-card { padding: 6px 10px 12px; }
.board td { padding: 10px 4px; }
.board td.av { width: 40px; padding-right: 6px; }
.board .pos { width: 40px; white-space: nowrap; }
.board tr.me td { background: #fff6e0; }
.board tr.me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.medal { width: 30px; height: 30px; font-size: .9rem; }
.move { display: block; font-size: .62rem; font-weight: 700; margin-top: 2px; text-align: center; width: 30px; }
.move.up { color: var(--birdie); }
.move.down { color: var(--bogey); }

/* ---------- home ---------- */
.hello { margin: 4px 2px 14px; }
.hello-hi { font-family: var(--font-display); font-size: 1.9rem; text-transform: uppercase; color: var(--navy); line-height: 1.05; }
.hello-sub { font-size: .8rem; color: var(--ink-soft); letter-spacing: .02em; }
.hero { border-radius: 18px; padding: 18px; margin-bottom: 14px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(130% 120% at 100% 0%, var(--navy-mid) 0%, var(--navy-dark) 62%); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(217,190,124,.22); }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-when { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-light); }
.hero-name { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; line-height: 1.05; margin-top: 6px; }
.hero-venue { color: #c9d3e3; margin-bottom: 14px; }
.hero-facts { display: flex; gap: 0; margin-bottom: 16px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-facts div { flex: 1; padding: 10px 0; }
.hero-facts div + div { border-left: 1px solid rgba(255,255,255,.12); padding-left: 12px; }
.hero-facts span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb0cc; }
.hero-facts b { font-weight: 600; }
.hero .btn.gold { min-height: 52px; font-size: 1.02rem; }
.btn.ghost-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.hero-link { display: block; text-align: center; margin-top: 10px; color: var(--gold-light); font-size: .88rem; font-weight: 600; text-decoration: none; }
.hero .badge { background: rgba(255,255,255,.14); color: #fff; }
.hero .badge.live { background: var(--bad); }
.hero .badge.final { background: var(--gold); color: var(--navy-dark); }
.last-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-decoration: none; color: inherit; text-align: center; }
.last-card .big small { font-size: .6em; }
.last-card .big .of { font-size: .55em; color: var(--ink-soft); }
.lc-what { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.round-item .chev { color: var(--ink-soft); font-size: 1.4rem; margin-left: 2px; }
.round-item .playing { color: var(--good); font-weight: 600; }
.round-item { padding: 12px 14px; }
.more-rounds summary { list-style: none; text-align: center; font-size: .88rem; font-weight: 600; color: var(--navy); padding: 10px; cursor: pointer; }
.more-rounds summary::-webkit-details-marker { display: none; }

/* ---------- install guide ---------- */
.install-tip { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--gold-light); position: relative; padding-right: 30px; }
.it-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.it-text { flex: 1; min-width: 0; }
.it-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-soft); font-size: 1.2rem; }
.i-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.i-head img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow); }
.i-steps { list-style: none; padding: 0; margin: 14px 0; }
.i-step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.i-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); }
.i-ico { display: inline-grid; place-items: center; vertical-align: middle; width: 30px; height: 30px; border-radius: 8px; background: #eef2f8; color: #0a84ff; margin: 0 2px; }
.i-url { margin-top: 6px; font-weight: 600; background: #eef2f8; border-radius: 8px; padding: 8px 10px; user-select: all; }

/* the hole header has its own arrows, so the bottom buttons sit at the end of the list instead of over the cards */
.hole-nav { position: static; background: none; margin-top: 4px; }
body.has-tabbar .hole-nav { padding-bottom: 4px; }

/* =====================================================================
   Golfify-style card (v8): group board, whole-card grid, big keypad
   ===================================================================== */
.group-board { padding: 10px 10px 12px; }
.gb-head, .gb-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 36px 40px 40px 40px; gap: 4px; align-items: center; }
.gb-head { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); text-align: center; padding: 0 2px 6px; }
.gb-title { text-align: left; color: var(--navy); font-size: .72rem; }
.gb-live { color: var(--good); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 4px; }
.gb-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; margin-right: 3px; vertical-align: 1px; }
.gb-row { width: 100%; border: 0; background: #f6f8fb; border-radius: 12px; padding: 6px 2px 6px 6px; margin-top: 5px; text-align: center; color: var(--ink); }
.gb-row.me { background: #fff6e0; }
.gb-name { display: flex; align-items: center; gap: 7px; min-width: 0; text-align: left; }
.gb-name .avatar { width: 30px; height: 30px; font-size: .74rem; }
.gb-name b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.gb-c { justify-self: center; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; font-size: .85rem; }
.gb-c.dark { background: var(--navy-dark); color: #fff; }
.gb-c.under { background: var(--birdie); color: #fff; }
.gb-c.over { background: var(--bogey); color: #fff; }
.gb-c.pts { background: var(--gold); color: var(--navy-dark); font-family: var(--font-display); font-size: 1rem; }
.gb-links { display: flex; gap: 8px; margin-top: 10px; }
.gb-links .btn { flex: 1; min-height: 40px; font-size: .9rem; }

.gps-hole { font-weight: 700; color: var(--navy); font-size: .85rem; white-space: nowrap; }

.score-grid { padding: 0 6px 10px; overflow: visible; }
.sg-sticky { position: sticky; top: calc(68px + var(--safe-top)); z-index: 6; background: var(--panel); border-radius: var(--radius) var(--radius) 0 0; margin: 0 -6px; padding: 0 6px; }
.sg-row { display: grid; gap: 4px; align-items: center; padding: 3px 0; }
.sg-head { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); text-align: center; }
.sg-head .tee-dot { justify-self: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.sg-who { display: grid; place-items: center; }
.sg-who .avatar { width: 30px; height: 30px; font-size: .72rem; }
.sg-hole, .sg-yds, .sg-par { text-align: center; font-variant-numeric: tabular-nums; }
.sg-hole { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
.sg-yds { font-size: .78rem; color: var(--ink-soft); }
.sg-par { font-weight: 600; }
.sg-si { justify-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.sg-row.gap .sg-hole { color: var(--bad); }
.sg-row.gap .sg-hole::after { content: "!"; font-size: .7rem; vertical-align: super; margin-left: 1px; }
.sg-cell { position: relative; height: 46px; border-radius: 12px; border: 1.5px dashed rgba(27,58,108,.22); background: #fff; color: var(--navy-mid); font-size: 1.25rem; font-weight: 500; padding: 0; display: grid; place-items: center; }
.sg-cell.set { border-style: solid; border-color: transparent; background: #eef2f8; color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; }
.sg-cell.under { background: var(--birdie); color: #fff; }
.sg-cell.over { background: #fbe4e1; color: var(--bogey); }
.sg-cell.pu { background: #6b7280; color: #fff; font-size: 1rem; }
.sg-row.gap .sg-cell:not(.set) { border-color: var(--bad); background: #fff6f5; }
.sg-cell.disputed { box-shadow: 0 0 0 2.5px var(--bad); }
.sg-cell.disputed::after { content: "!"; position: absolute; top: -6px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font: 700 .65rem/16px var(--font-body); }
.sg-cell.locked { opacity: .75; }
.sg-shots { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-size: .55rem; line-height: 1; letter-spacing: 1px; color: var(--gold); }
.sg-cell.under .sg-shots, .sg-cell.pu .sg-shots { color: var(--gold-light); }
.sg-shots.minus { color: var(--bad); }
.sg-pts { position: absolute; bottom: 2px; right: 5px; font: 700 .6rem/1 var(--font-body); opacity: .75; }
.sg-tot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.sg-label { grid-column: 1 / 5; text-align: right; padding-right: 8px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.sg-tv { text-align: center; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.sg-tv small { display: block; font: 600 .62rem/1.2 var(--font-body); color: var(--ink-soft); }
.sg-tv b { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-weight: 400; }
.sg-key { text-align: center; margin: 10px 0 0; }
.grid-actions { margin: 4px 0 8px; }
.grid-actions .btn { min-height: 52px; }

/* keypad sheet */
.kp-title { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; color: var(--navy); line-height: 1.1; padding-right: 40px; }
.kp-facts { color: var(--ink-soft); font-size: .9rem; margin: 4px 0 12px; }
.kp-facts b { color: var(--navy); }
.kp-dispute { margin-bottom: 10px; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp-key { min-height: 72px; border-radius: 16px; border: 0; background: #fff; box-shadow: 0 1px 2px rgba(16,35,63,.08), 0 0 0 1px var(--line);
  font-family: var(--font-display); font-size: 2.1rem; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: transform .08s; }
.kp-key small { font: 600 .62rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; color: var(--ink-soft); min-height: .62rem; }
.kp-key:active { transform: scale(.95); }
.kp-key.k-under { color: var(--birdie); }
.kp-key.k-over { color: var(--bogey); }
.kp-key.k-par { box-shadow: 0 1px 2px rgba(16,35,63,.08), 0 0 0 2px var(--navy); }
.kp-key.on { background: var(--navy); color: #fff; }
.kp-key.k-under.on { background: var(--birdie); }
.kp-key.k-over.on { background: var(--bogey); }
.kp-key.on small { color: rgba(255,255,255,.8); }
.kp-key.k-pu, .kp-key.k-clear, .kp-key.k-close { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.kp-key.k-pu { color: #4b5563; }
.kp-key.k-pu.on { background: #6b7280; color: #fff; }
.kp-key.k-clear { color: var(--bad); }
.kp-key.k-clear:disabled { opacity: .35; }
.kp-key.k-close { background: #e2e7f0; color: var(--ink-soft); }
.sg-head { font-size: .58rem; letter-spacing: 0; }
.kp-title { font-size: 1.35rem; }
.kp-key.k-ok { background: var(--good); color: #fff; font-family: var(--font-body); font-size: 2.2rem; font-weight: 700; box-shadow: none; }
.kp-key.k-ok:disabled { background: #cfd8e3; color: #fff; }

/* =====================================================================
   v9: side contests, feed, stats, yardages
   ===================================================================== */
.tabbar button { position: relative; }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 .66rem/18px var(--font-body); font-style: normal; }
.sg-tag { display: block; font: 700 .5rem/1 var(--font-body); font-style: normal; color: var(--gold); letter-spacing: .02em; margin-top: 1px; }
.contests-card { padding: 12px 12px 6px; }
.contests-card h2 { margin-bottom: 6px; }
.contest-row { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: #f6f8fb; border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; text-align: left; color: var(--ink); }
.ct-ico { font-size: 1.3rem; width: 28px; text-align: center; }
.ct-what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-who { text-align: right; font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; }
.stake { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 6px 10px; margin-top: 4px; background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(27,58,108,.05) 46px 47px); }
.stake-name { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stake-name:last-child { border-bottom: 0; }
.stake-name.lead b { font-size: 1.08rem; }
.sn-n { width: 22px; height: 22px; border-radius: 50%; background: #e6eaf2; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--navy); }
.sn-who { flex: 1; display: flex; flex-direction: column; }
.stake-claims { display: flex; flex-wrap: wrap; gap: 8px; }
.stake-claims .btn { flex: 1 1 45%; min-height: 48px; }
.ct-board { padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ct-board:first-child { border-top: 0; }
.ct-names { margin: 6px 0 0 38px; font-size: .92rem; }
.ct-names s { color: var(--ink-soft); }
.share-btn { margin-bottom: 14px; }

.composer textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; min-height: 48px; }
.gallery-opt { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.post { padding: 12px 14px; }
.post-auto { display: flex; align-items: center; gap: 12px; }
.pa-ico { font-size: 1.7rem; width: 40px; height: 40px; display: grid; place-items: center; background: #fff6e0; border-radius: 50%; flex: none; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-body { margin: 10px 0 0; white-space: pre-wrap; }
.post-photo { display: block; width: calc(100% + 28px); margin: 10px -14px 0; max-height: 420px; object-fit: cover; }
.post-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.pf-btn { border: 0; background: #f2f5f9; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.pf-btn.on { background: #fff0cc; color: var(--navy-dark); }
.comments { margin-top: 8px; }
.comment { font-size: .9rem; padding: 6px 0; border-top: 1px solid var(--line); }
.comment-input { flex: 1; min-height: 38px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }

.kp-grid.compact .kp-key { min-height: 56px; font-size: 1.8rem; }
.kp-stats { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.kps-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.kps-row > span { width: 64px; font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.kps-chip { flex: 1; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--navy); }
.kps-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.kp-stats-toggle { display: block; margin: 12px auto 0; font-size: .88rem; }

.fcb { display: inline-flex; gap: 12px; align-items: baseline; }
.fcb span { display: inline-flex; flex-direction: column; align-items: center; font-weight: 600; color: var(--ink-soft); }
.fcb small { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.fcb .m b { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 400; }
.mv-fcb { display: flex; justify-content: center; gap: 18px; align-items: flex-end; color: #fff; }
.mv-fcb span { display: flex; flex-direction: column; align-items: center; font-family: var(--font-display); font-size: 1.6rem; color: #c9d3e3; }
.mv-fcb span.mid { font-size: 2.6rem; color: var(--gold-light); }
.mv-fcb small { font: 600 .6rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: #9fb0cc; }
.pin-edge { background: #fff; color: var(--navy-dark); width: 22px; height: 22px; font-size: .7rem; }
.mv-tip { font: 600 .85rem/1.3 var(--font-body); text-align: center; }

.big-av { width: 56px; height: 56px; font-size: 1.2rem; margin-right: 12px; }
.pts-chart { width: 100%; height: 140px; display: block; }
.dist-row { display: grid; grid-template-columns: 110px 1fr 34px; gap: 8px; align-items: center; font-size: .85rem; padding: 3px 0; }
.dist-row b { text-align: right; font-variant-numeric: tabular-nums; }
.dist-bar { height: 12px; background: #eef2f8; border-radius: 6px; overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 6px; background: var(--navy); }
.dist-bar i.e, .dist-bar i.b { background: var(--birdie); }
.dist-bar i.p { background: var(--navy); }
.dist-bar i.o { background: #e8a39a; }
.dist-bar i.d, .dist-bar i.w { background: var(--bogey); }
.dist-bar i.u { background: #6b7280; }
.stat-round { padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.stat-round:first-of-type { border-top: 0; }
#season-card .board td { padding: 8px 4px; }
.push-list { margin: 0 0 14px; padding-left: 20px; }
.push-list li { margin: 4px 0; }
.avatar { position: relative; overflow: hidden; }
.avatar i { font-style: normal; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-img i { visibility: hidden; }
.avatar.me.has-img { box-shadow: 0 0 0 2px var(--gold); }
.profile-head { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.photo-link { display: inline-block; margin-top: 6px; font-size: .88rem; cursor: pointer; }
.oom-card { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: inherit; margin-top: 12px; border-left: 4px solid var(--gold); }
.oom-pos { font-family: var(--font-display); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.oom-pos small { font-size: .9rem; color: var(--ink-soft); font-family: var(--font-body); }
.fx-item { padding: 10px 0; border-top: 1px solid var(--line); }
.fx-item:first-of-type { border-top: 0; }
.hello { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; }
.hello-av { width: 52px; height: 52px; font-size: 1.05rem; }
.hello-link { color: var(--navy); font-weight: 600; }

/* Text size, chosen from the menu */
html.text-lg { font-size: 112.5%; }
html.text-xl { font-size: 125%; }
.ts-opt { display: flex; align-items: center; gap: 12px; width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; margin-bottom: 8px; text-align: left; color: var(--ink); }
.ts-opt.on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.ts-opt b { font-family: var(--font-display); color: var(--navy); width: 44px; text-align: center; }

/* forecast */
.wx-chip { margin-top: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: .82rem; color: var(--ink); }
.wx-chip b { font-family: var(--font-display); font-weight: 400; color: var(--navy); }
.hero-wx { margin: -6px 0 14px; font-size: .88rem; color: #c9d3e3; }
.hero-wx b { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.wx { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.wx-head { display: flex; align-items: center; gap: 12px; }
.wx-icon { font-size: 2.2rem; line-height: 1; }
.wx-head b { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 400; }
.wx-head small { display: block; color: var(--ink-soft); font-size: .8rem; }
.wx-hours { display: flex; gap: 6px; margin-top: 10px; }
.wx-hours span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--paper); border-radius: 10px; padding: 6px 2px; font-size: 1.15rem; }
.wx-hours small { font-size: .66rem; color: var(--ink-soft); }
.wx-hours b { font-size: .85rem; }
.wx-src { font-size: .68rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- prize-giving screen ---------- */
body.presenting .topbar, body.presenting .tabbar { display: none !important; }
body.presenting { padding: 0; background: var(--navy-dark); }
body.presenting .view { max-width: none; padding: 0; animation: none; }
.present { position: fixed; inset: 0; color: #fff; overflow: hidden; cursor: pointer; user-select: none;
  background: radial-gradient(120% 120% at 100% 0%, var(--navy-mid) 0%, var(--navy-dark) 60%); }
.present::before { content: ""; position: absolute; right: -18vmin; top: -18vmin; width: 70vmin; height: 70vmin; border-radius: 50%; border: .5vmin solid rgba(217,190,124,.18); }
.present::after { content: ""; position: absolute; left: -12vmin; bottom: -22vmin; width: 55vmin; height: 55vmin; border-radius: 50%; border: .4vmin solid rgba(217,190,124,.12); }
.pz-slide { position: absolute; inset: 0; padding: 6vmin 7vmin 12vmin; display: flex; flex-direction: column; justify-content: center; animation: pz-in .5s ease-out; z-index: 1; }
@keyframes pz-in { from { opacity: 0; transform: translateY(2vmin); } }
.pz-kicker { font: 600 2.2vmin var(--font-body); letter-spacing: .25em; text-transform: uppercase; color: var(--gold-light); }
.pz-title { text-align: center; }
.pz-title img { width: 22vmin; height: 22vmin; border-radius: 50%; border: .6vmin solid var(--gold-light); margin: 0 auto 4vmin; display: block; }
.pz-title h1 { color: #fff; font-size: 10vmin; margin: 1.5vmin 0; }
.pz-sub { font-size: 3vmin; color: #c9d3e3; }
.pz-h { color: #fff; font-size: 6vmin; margin: 1vmin 0 3vmin; }
.pz-award { text-align: center; }
.pz-ico { font-size: 12vmin; line-height: 1; }
.pz-label { font: 600 4vmin var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); margin-top: 2vmin; }
.pz-meta { font-size: 2.4vmin; color: #9fb0cc; margin-top: 1vmin; }
.pz-winner { font: 500 9vmin/1.1 var(--font-display); text-transform: uppercase; margin-top: 2vmin; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2vmin 5vmin; }
.pz-winner span { display: inline-block; }
.pz-pts-big { font: 500 6vmin var(--font-display); color: var(--gold-light); margin-top: 2vmin; }
.pz-pts-big small { font-size: 2.6vmin; color: #c9d3e3; font-family: var(--font-body); }
.pz-medal { width: 16vmin; height: 16vmin; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font: 600 9vmin var(--font-display); color: var(--navy-dark); box-shadow: 0 1.5vmin 4vmin rgba(0,0,0,.35); }
.pz-medal.gold { background: linear-gradient(145deg, #f2d48a, #b8923c); }
.pz-medal.silver { background: linear-gradient(145deg, #eef1f6, #a9b1be); }
.pz-medal.bronze { background: linear-gradient(145deg, #e8c19b, #a9744a); }
.pz-first .pz-winner { color: #fff; text-shadow: 0 0 6vmin rgba(217,190,124,.45); }
.avatar.pz-big-av { width: 13vmin; height: 13vmin; font-size: 4.5vmin; }
.pz-board { columns: 2; column-gap: 5vmin; }
.pz-row { break-inside: avoid; display: flex; align-items: center; gap: 2vmin; padding: 1.3vmin 2vmin; margin-bottom: 1.2vmin; background: rgba(255,255,255,.06); border-radius: 1.5vmin; font-size: 3vmin; }
.pz-row.gold { background: rgba(217,190,124,.22); box-shadow: inset .6vmin 0 0 var(--gold); }
.pz-pos { width: 5vmin; font: 600 3.4vmin var(--font-display); color: var(--gold-light); text-align: center; }
.pz-av .avatar { width: 5.5vmin; height: 5.5vmin; font-size: 2vmin; }
.pz-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pz-thru { font-size: 2.2vmin; color: #9fb0cc; }
.pz-pts { font: 500 4vmin var(--font-display); min-width: 7vmin; text-align: right; }
.pz-contests { display: grid; grid-template-columns: 1fr 1fr; gap: 3vmin; }
.pz-ct { display: flex; align-items: center; gap: 3vmin; background: rgba(255,255,255,.06); border-radius: 2vmin; padding: 3vmin; font-size: 7vmin; }
.pz-ct small { display: block; font-size: 2.4vmin; color: var(--gold-light); text-transform: uppercase; letter-spacing: .08em; }
.pz-ct b { font: 500 4.5vmin var(--font-display); text-transform: uppercase; }
.pz-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; cursor: default; opacity: .55; transition: opacity .2s; }
.pz-bar:hover { opacity: 1; }
.pz-bar button { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; border-radius: 10px; min-width: 44px; height: 40px; padding: 0 14px; font-weight: 600; }
.pz-bar button:disabled { opacity: .3; }
.pz-bar span { color: #c9d3e3; font-size: .9rem; }
.pz-live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff5b4f; margin-right: 6px; animation: pulse 1.6s infinite; }
@media (orientation: portrait) { .pz-board { columns: 1; } .pz-contests { grid-template-columns: 1fr; } .pz-row { font-size: 3.6vmin; } }

/* ---------- print pack ---------- */
.print-pack { display: flex; flex-direction: column; gap: 16px; }
.pp-page { background: #fff; color: #111; border-radius: 8px; box-shadow: var(--shadow); padding: 18px; font-size: .78rem; overflow-x: auto; }
.pp-head { display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--gold); padding-bottom: 8px; margin-bottom: 10px; }
.pp-head img { width: 46px; height: 46px; border-radius: 50%; }
.pp-head h1 { font-size: 1.4rem; margin: 0; }
.pp-kick { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pp-sub { color: #444; font-size: .74rem; }
.pp-facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 10px; }
.pp-facts b { font-family: var(--font-display); font-size: 1rem; color: var(--navy); font-weight: 500; }
.pp-table, .pp-card { width: 100%; border-collapse: collapse; }
.pp-table th, .pp-table td, .pp-card th, .pp-card td { border: 1px solid #9aa3b2; padding: 4px 5px; text-align: left; }
.pp-table th, .pp-card thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .7rem; }
.pp-table tr.pp-first td { border-top: 2px solid var(--navy); }
.pp-box { width: 34px; }
.pp-stake td { height: 30px; }
.pp-card td, .pp-card th { text-align: center; }
.pp-card th small { display: block; font-weight: 400; font-size: .62rem; opacity: .85; }
.pp-card .pp-sub2 th { background: #e6eaf2; color: var(--navy); font-size: .62rem; }
.pp-card td.pp-h { font-weight: 700; color: var(--navy); }
.pp-card td.pp-sc { width: 44px; height: 26px; position: relative; vertical-align: top; }
.pp-dots { color: var(--gold); font-size: .7rem; letter-spacing: 1px; position: absolute; top: 0; left: 3px; }
.pp-card td.pp-pt { width: 30px; background: #f6f8fb; }
.pp-card tr.pp-tot td { background: #e6eaf2; font-weight: 700; }
.pp-sign { display: flex; gap: 30px; margin-top: 22px; }
.pp-sign span { flex: 1; border-top: 1px solid #555; padding-top: 4px; font-size: .7rem; color: #555; }
.pp-note { font-size: .7rem; color: #555; margin: 8px 0 0; }
.pp-page h3 { font-size: .9rem; margin: 12px 0 4px; }
.pp-toolbar { margin-bottom: 14px; }
.pp-parts { display: flex; gap: 8px; margin-top: 8px; }
.pp-parts .btn { flex: 1; min-width: 0; padding-left: 6px; padding-right: 6px; font-size: .88rem; }
.pdf-stage { position: fixed; left: -10000px; top: 0; width: 760px; background: #fff; }
.pdf-stage .pp-page { box-shadow: none; border-radius: 0; padding: 0 0 4px; font-size: 13px; overflow: visible; margin-bottom: 0; }
.pdf-stage .pp-card td.pp-sc { height: 34px; width: 90px; }
.pdf-stage .pp-card td.pp-pt { width: 50px; }
.pdf-stage .pp-card tbody td:nth-child(-n+4) { width: 40px; }
.pdf-stage .pp-dots { font-size: 12px; }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; padding: 0 !important; }
  .topbar, .tabbar, .no-print, .toast, #menu, #sheet { display: none !important; }
  .view { max-width: none; padding: 0; animation: none; }
  .print-pack { gap: 0; }
  .pp-page { box-shadow: none; border-radius: 0; padding: 0; font-size: 10pt; overflow: visible; }
  .pp-page + .pp-page { page-break-before: always; break-before: page; }
  body[data-print-part="start"] .pp-page:not(.pp-part-start),
  body[data-print-part="cards"] .pp-page:not(.pp-part-cards),
  body[data-print-part="stakes"] .pp-page:not(.pp-part-stakes) { display: none !important; }
  .pp-card td.pp-sc { height: 9mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- records ---------- */
.rec-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.rec-row:first-of-type { border-top: 0; }
.rec-pos { width: 20px; font-family: var(--font-display); color: var(--gold); text-align: center; }
.rec-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; }
.rec-row b { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); font-weight: 400; }
.rec-row small { color: var(--ink-soft); font-size: .72rem; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .rec-grid { grid-template-columns: 1fr; } }
.rec-sel { flex: 1; min-width: 0; min-height: 42px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; font: inherit; }
.h2h { display: flex; align-items: center; justify-content: space-around; margin-top: 14px; }
.h2h-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h2h-side b { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); font-weight: 400; line-height: 1; }
.h2h-side small { color: var(--ink-soft); }
.avatar.h2h-av { width: 52px; height: 52px; font-size: 1rem; }
.h2h-mid { text-align: center; color: var(--ink-soft); font-size: .8rem; }
.hon-row { display: grid; grid-template-columns: 74px 1fr; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.hon-row:first-of-type { border-top: 0; }
.hon-date { font-size: .74rem; color: var(--ink-soft); grid-row: span 2; padding-top: 2px; }
.hon-what { display: flex; flex-direction: column; }
.hon-who { font-weight: 600; }
.hon-who small { color: var(--ink-soft); font-weight: 400; }

/* ---------- Ryder Cup ---------- */
.rc-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.rc-team { border-radius: var(--radius); color: #fff; padding: 14px 12px; text-align: center; box-shadow: var(--shadow); }
.rc-team small { display: block; font: 600 .8rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-team b { font: 500 3rem/1 var(--font-display); }
.rc-mid { display: flex; flex-direction: column; justify-content: center; text-align: center; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.rc-mid span { font-weight: 400; }
.rc-proj { text-align: center; margin: 0 0 12px; }
.rc-session { padding: 12px; }
.rc-match { display: grid; grid-template-columns: 1fr 74px 1fr; gap: 8px; align-items: center; text-decoration: none; color: inherit; padding: 10px 0; border-top: 1px solid var(--line); }
.rc-match:first-of-type { margin-top: 8px; }
.rc-match.mine { background: #fff6e0; margin: 0 -12px; padding: 10px 12px; }
.rc-side { display: flex; flex-direction: column; gap: 4px; border-left: 4px solid; padding-left: 8px; min-width: 0; }
.rc-side.right { border-left: 0; border-right: 4px solid; padding: 0 8px 0 0; align-items: flex-end; text-align: right; }
.rc-pl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; min-width: 0; }
.rc-side.right .rc-pl { flex-direction: row-reverse; }
.rc-pl .avatar { width: 26px; height: 26px; font-size: .62rem; }
.rc-pl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-status { border-radius: 10px; text-align: center; padding: 6px 4px; font: 500 1.05rem var(--font-display); }
.rc-status small { display: block; font: 600 .62rem var(--font-body); opacity: .85; }
.rc-banner { color: #fff; border-radius: var(--radius); padding: 12px 14px; font: 500 1.25rem var(--font-display); text-transform: uppercase; text-align: center; margin-bottom: 12px; box-shadow: var(--shadow); }
.rc-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-vs-side { border-left: 4px solid; padding-left: 10px; font-weight: 600; }
.rc-vs-side.right { border-left: 0; border-right: 4px solid; padding: 0 10px 0 0; text-align: right; }
.rc-vs-side small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.rc-res { justify-self: center; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--navy-dark); border: 1.5px dashed var(--line); }
.rc-res[style*="background"] { border: 0; }
.rc-ball { display: block; color: #fff; border-radius: 8px; padding: 3px 4px; font-size: .6rem; line-height: 1.2; text-transform: none; white-space: normal; }
.rc-av { display: inline-block; border-radius: 50%; }
.rc-teams { display: grid; grid-template-columns: 1fr 64px; gap: 0 10px; }
.rc-col input { padding: 4px !important; }
.rc-prow { padding: 6px 0; border-top: 1px solid var(--line); }
.rc-pname { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.rc-seg button { border: 0; background: #fff; min-width: 54px; min-height: 36px; font-weight: 700; font-size: .78rem; color: var(--ink-soft); padding: 0 6px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-seg button + button { border-left: 1.5px solid var(--line); }
.rc-seg button.on { color: #fff; }
.rc-seg button.on0 { background: #eef2f8; color: var(--navy); }
.rc-sname { flex: 1; font: 500 1.2rem var(--font-display); text-transform: uppercase; color: var(--navy); border: 0; border-bottom: 1.5px dashed var(--line); background: none; padding: 4px 0; min-width: 0; }
.rc-sess-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; margin: 10px 0; }
.rc-sess-row select, .rc-sess-row input, .rc-sel { min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 0 6px; font: inherit; font-size: .85rem; min-width: 0; width: 100%; }
.rc-medit { display: grid; grid-template-columns: 22px 1fr auto 1fr 22px; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.rc-mno { font-family: var(--font-display); color: var(--gold); text-align: center; }
.rc-mside { display: flex; flex-direction: column; gap: 4px; border-left: 4px solid; padding-left: 6px; min-width: 0; }
@media (max-width: 380px) { .rc-sess-row { grid-template-columns: 1fr 1fr; } .rc-sess-row select[data-field="tee_id"] { grid-column: 1 / -1; } }

/* ---------- handicap review ---------- */
.hc-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hc-who { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.hc-vals { display: flex; align-items: center; gap: 6px; }
.hc-old { font-family: var(--font-display); color: var(--ink-soft); font-size: 1.1rem; }
.hc-new { font-family: var(--font-display); color: var(--navy); font-size: 1.2rem; }
.hc-input, .hc-cut { width: 64px; min-height: 36px; border: 1.5px solid var(--line); border-radius: 8px; text-align: center; font: inherit; }

.hc-big { display: block; margin-top: 3px; font-size: .74rem; font-weight: 600; color: #9a5b00; }
.pz-slide > .pz-kicker { margin-bottom: 3vmin; }
.pz-slide:has(.pz-award) > .pz-kicker { text-align: center; }

/* results for rounds scored off the app */
.rs-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin-bottom: 14px; }
.rs-pod { background: var(--card, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 6px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.rs-pod.p1 { order: 2; background: linear-gradient(160deg, var(--navy-mid), var(--navy-dark)); color: #fff; padding-top: 20px; box-shadow: 0 8px 22px rgba(15,34,64,.28); }
.rs-pod.p2 { order: 1; } .rs-pod.p3 { order: 3; }
.rs-pod b { font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.rs-pod b a { color: inherit; text-decoration: none; }
.rs-pod .avatar.rs-av { width: 52px; height: 52px; font-size: 1.05rem; }
.rs-pod.p1 .avatar.rs-av { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--gold-light, #d9be7c); }
.rs-pod.p2 .avatar.rs-av { box-shadow: 0 0 0 3px #b9c0cc; }
.rs-pod.p3 .avatar.rs-av { box-shadow: 0 0 0 3px #c99a6e; }
.rs-place { font: 600 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold, #b8923c); }
.rs-pod.p1 .rs-place { color: var(--gold-light, #d9be7c); }
.rs-pts { font-size: .78rem; opacity: .75; }
.rs-you { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; background: #fff8e6; box-shadow: inset 4px 0 0 var(--gold, #b8923c); }
.rs-you b { font: 600 1.9rem var(--font-display); color: var(--navy-dark); line-height: 1; }
.rs-you b small { font-size: .9rem; }
.rs-you span { font-size: .9rem; color: var(--ink-soft); }
.rs-cts { display: grid; gap: 10px; }
.rs-ct { display: flex; align-items: center; gap: 12px; }
.rs-ico { font-size: 1.5rem; width: 34px; text-align: center; }
.rs-ct small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.rs-ct b a, .rs-name { color: inherit; text-decoration: none; }

/* practice rounds */
.badge.practice { background: #e3f1e6; color: #1d6b34; vertical-align: 2px; margin-left: 4px; }
.practice-new { margin-top: 2px; }
.practice-note { margin: 6px 4px 18px; }
.pr-find { width: 100%; margin: 4px 0 8px; }
.pr-list { max-height: 38vh; overflow-y: auto; border: 1px solid var(--line, #e1e6ee); border-radius: 12px; padding: 4px 10px; }
.pr-pl { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line, #eef1f6); font-weight: 500; }
.pr-pl:last-child { border-bottom: 0; }
.pr-pl input { width: 20px; height: 20px; accent-color: var(--navy); }
.practice-banner { background: #e3f1e6; color: #1d4d2b; border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 12px; }
.danger-text { color: var(--bad, #b3261e) !important; }
.hc-cuts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.hc-cuts span { background: #fff4d9; border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.hc-new.down { color: #1d6b34; } .hc-new.up { color: #b3261e; }
.hc-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; background: #e6eaf2; border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.hc-who a { color: inherit; text-decoration: none; }
.hc-pending { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; background: #fff4d9; color: #7a5300; border-radius: 999px; padding: 3px 9px; }
.hc-hist { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line, #eef1f6); }
.hc-hist .thru { display: block; }
.hc-h-mid { min-width: 0; }
.hc-diff { font: 600 1rem var(--font-display); margin-left: 6px; }
.hc-h-val { text-align: right; white-space: nowrap; }
.hc-src { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 2px 7px; }
.hc-src.pts { background: #eef1f6; color: var(--ink-soft); } .hc-src.card { background: #e3f1e6; color: #1d6b34; } .hc-src.man { background: #fff4d9; color: #7a5300; }
.hc-table input.hc-eg { width: 58px; text-align: right; padding: 6px 8px; min-height: 36px; }
.hc-table td a { color: inherit; text-decoration: none; }
.hc-prov { background: #fff8e6; box-shadow: inset 4px 0 0 var(--gold, #b8923c); }
.rc-capt { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line, #d5dbe5); background: #fff; font: 700 .8rem var(--font-display); color: var(--ink-soft); margin-right: 8px; }
.rc-capt.on { background: var(--gold, #b8923c); border-color: var(--gold, #b8923c); color: var(--navy-dark); }
.rc-c { font-style: normal; font: 700 .62rem var(--font-display); background: var(--gold, #b8923c); color: var(--navy-dark); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }
.rc-theirs { font-size: .85rem; color: var(--ink-soft); }
.hc-tools { gap: 8px; margin: 12px 0; }
.hc-tools input { flex: 1; min-width: 0; }
.hc-tools select { flex: 0 0 auto; max-width: 46%; }
.hc-table th, .hc-table td { padding-left: 4px; padding-right: 4px; }
.hc-table td:first-child { overflow-wrap: anywhere; }
.div-tabs button { white-space: nowrap; }
.div-n { font-size: .75em; opacity: .7; margin-left: 2px; }

/* guests and private games */
body.guest-mode #menu > a, body.guest-mode #menu-push, body.guest-mode #menu-text, body.guest-mode #menu-install { display: none; }
body.guest-mode .back-link { visibility: hidden; }
.join-hero { text-align: center; padding: 18px 10px 8px; }
.join-hero img { border-radius: 50%; box-shadow: 0 0 0 3px var(--gold-light, #d9be7c); }
.join-kicker { margin-top: 10px; font: 600 .7rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold, #b8923c); }
.join-hero h1 { margin: 6px 0 8px; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.badge.private { background: #ece7fb; color: #4b3a8a; vertical-align: 2px; margin-left: 4px; }
.seg2 { display: flex; gap: 6px; margin-top: 6px; }
.seg2 button { flex: 1; min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line, #d5dbe5); background: #fff; font-weight: 600; color: var(--ink-soft); }
.seg2 button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-guest { border: 1px solid var(--line, #e1e6ee); border-radius: 12px; padding: 10px; margin-top: 8px; }
.pg-guest input { width: 100%; }
.guest-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line, #eef1f6); }
.guest-row > div:first-child { flex: 1; min-width: 0; }
.guest-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.guest-acts .btn { min-height: 34px; padding: 0 12px; }
.share-text { width: 100%; font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--line, #d5dbe5); }
.private-banner { background: #ece7fb; color: #3a2d6e; }
#pg-find, .pg-guest input, #hc-find {
  min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--ink);
}
#pg-find { display: block; width: 100%; margin: 6px 0 8px; }
.pg-guest .pg-g-hcp { flex: 0 0 104px; }

/* the bag */
.bag-head { margin-bottom: 4px; }
.bag-add { min-height: 40px; padding: 0 16px; }
.bag-tabs { margin: 10px 0 12px; }
.bag-count { margin: 0 4px 10px; color: var(--navy); font-weight: 600; }
.bag-warn { color: var(--bad, #b3261e); }
.bag-list { padding: 4px 14px; }
.kit-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line, #eef1f6); background: none; text-align: left; font: inherit; color: inherit; }
.kit-row:last-child { border-bottom: 0; }
.kit-pic { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; background: #eef1f6; display: flex; align-items: center; justify-content: center; }
.kit-ico { width: 40px; height: 40px; fill: none; stroke: var(--navy, #1b3a6c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kit-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kit-top b { font: 600 1.45rem var(--font-display); color: var(--navy-dark); }
.kit-yds { font: 500 1.45rem var(--font-display); color: var(--ink); }
.kit-yds small { font-size: .7rem; margin-left: 2px; color: var(--ink-soft); }
.kit-model { font-size: .88rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-spec { font-size: .78rem; color: var(--ink-soft); }
.kit-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.kit-type { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; min-height: 96px; border-radius: 14px; border: 1.5px solid var(--line, #d5dbe5); background: #fff; font: 600 1rem var(--font-body); color: var(--navy-dark); }
.bag-card { display: block; text-decoration: none; color: inherit; }
.bag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bag-chip { background: #eef1f6; border-radius: 999px; padding: 4px 10px; font-size: .85rem; color: var(--ink); }
.bag-chip b { color: var(--navy-dark); }
.club-tip { display: block; font-size: .85rem; margin-top: 2px; }
.club-tip b { color: var(--navy-dark); }
.gps-yds .club-tip { font-size: .88rem; color: var(--ink); margin-top: 4px; }
.gps-yds .club-tip b { font: 700 .95rem var(--font-body); color: var(--navy-dark); }

/* the + button */
.fab { position: fixed; z-index: 26; right: 18px; bottom: calc(var(--tabbar-h) + 18px + var(--safe-bottom)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--gold, #b8923c); color: var(--navy-dark, #0f2240); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(15,34,64,.35), 0 0 0 3px rgba(255,255,255,.9); }
.fab:active { transform: scale(.96); }
.fab[hidden] { display: none; }
.fab-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.fab-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; min-height: 60px; border-radius: 14px; border: 1.5px solid var(--line, #d5dbe5); background: #fff; text-align: left; font: inherit; color: var(--ink); }
.fab-item b { display: block; color: var(--navy-dark); font-size: .98rem; }
.fab-item small { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: 1px; }
.fab-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #eef1f6; display: grid; place-items: center; }
.fab-ico svg { width: 22px; height: 22px; stroke: var(--navy, #1b3a6c); }
body.has-tabbar .content, body.has-tabbar main { padding-bottom: 80px; }

/* course page */
.ci-hero { background: linear-gradient(160deg, var(--navy-dark, #0f2240), #1f5a3f); color: #fff; border-radius: 18px; padding: 20px 18px 18px; margin-bottom: 12px; }
.ci-hero h1 { color: #fff; margin: 0 0 6px; }
.ci-addr { display: inline-flex; gap: 6px; align-items: flex-start; color: #d9e4f5; font-size: .9rem; text-decoration: none; }
.ci-addr svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: #d9be7c; }
.ci-line { margin: 10px 0 0; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ci-tee { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .82rem; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px 10px; }
.ci-tee i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ci-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 16px 8px; }
.ci-stats div + div { border-left: 1px solid var(--line); }
.ci-stats b { display: block; font: 700 1.6rem var(--font-head, inherit); color: var(--navy-dark); }
.ci-stats span { font-size: .78rem; color: var(--ink-soft); }
.ci-list { padding: 0; overflow: hidden; }
.ci-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; min-height: 58px; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: none; text-align: left; }
.ci-row + .ci-row { border-top: 1px solid var(--line); }
.ci-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #eef1f6; display: grid; place-items: center; }
.ci-ico svg { width: 21px; height: 21px; stroke: var(--navy, #1b3a6c); }
.ci-row:first-child .ci-ico { background: var(--navy, #1b3a6c); }
.ci-row:first-child .ci-ico svg { stroke: #d9be7c; }
.ci-label { flex: 1; font-weight: 700; font-size: 1rem; color: var(--navy-dark); min-width: 0; }
.ci-label small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.ci-right { color: var(--ink-soft); font-size: .85rem; text-align: right; }
.ci-chev { font-size: 1.4rem; color: var(--navy); line-height: 1; }
.sc-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: center; }
.sc-table th { font-size: .75rem; color: var(--ink-soft); padding: 6px 2px; border-bottom: 1.5px solid var(--line); }
.sc-table td { padding: 6px 2px; border-bottom: 1px solid var(--line); }
.sc-table tr.sc-sum td { font-weight: 700; background: #f4f6fa; }
.sc-table a { font-weight: 700; }

/* course preview */
.pv-tee { min-height: 38px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 8px; font: inherit; background: #fff; }
.pv-top { margin-bottom: 8px; gap: 8px; }
.pv-title { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 1.05rem; color: var(--navy-dark); padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.pv-hn { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-dark, #0f2240); color: #fff; display: grid; place-items: center; font-weight: 700; }
.pv-hard { font-size: .76rem; font-weight: 700; color: #9a3412; background: #fdecdc; border-radius: 999px; padding: 3px 9px; }
.pv-hole { position: relative; height: min(64vh, 560px); min-height: 400px; overflow: hidden; margin: 0 -16px 10px; background: var(--bg, #f3f5f9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
.pv-rot { position: absolute; transform-origin: 50% 50%; }
.pv-svg { width: 100%; height: 100%; display: block; }
.pv-lbl-icon { background: none; border: 0; }
.pv-lbl-icon > span { display: inline-block; white-space: nowrap; }
.pv-lbl { display: inline-block; margin-top: -26px; background: #10233F; color: #fff; font: 700 .78rem var(--font-body, sans-serif); padding: 3px 7px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pv-lbl i { font-style: normal; font-size: .92rem; margin-left: 3px; }
.pv-flag { color: #fff; font-size: 1.2rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pv-unmapped { text-align: center; margin: -4px 0 12px; }
.pv-holes { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px calc(10px + var(--safe-bottom)); background: #fff; border-top: 1px solid var(--line); scrollbar-width: none; }
.pv-holes::-webkit-scrollbar { display: none; }
.pv-holes button { flex: 0 0 40px; height: 40px; border-radius: 50%; border: 0; background: none; font: 700 1.05rem var(--font-body, sans-serif); color: #2f6fd6; }
.pv-holes button.current { background: #2f6fd6; color: #fff; }
body.has-pvholes { padding-bottom: calc(76px + var(--safe-bottom)); }
.pv-typical { background: #fff7e6; border-radius: 10px; padding: 8px 10px; }
.pv-shots { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pv-shots li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pv-shots li:first-child { border-top: 0; }
.pv-shot-n { flex: 0 0 46px; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.pv-club { flex: 1; }
.pv-club b { color: var(--navy-dark); font-size: 1.02rem; }
.pv-yds { font-size: .88rem; color: var(--ink-soft); text-align: right; }
.pv-yds b { color: var(--ink); }
.pv-verdict { margin: 10px 0 0; font-size: .9rem; }
.pv-ok { font-weight: 700; color: #1e7a46; }
.pv-warn { font-weight: 700; color: #9a3412; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.pv-stats b { display: block; font: 700 1.4rem var(--font-head, inherit); color: var(--navy-dark); }
.pv-stats span { font-size: .76rem; color: var(--ink-soft); }
.pv-note-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.pv-note-form textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; resize: vertical; }
.pv-note { padding: 8px 0; border-top: 1px solid var(--line); }
.pv-note p { margin: 0 0 2px; }
.pv-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }

/* statistics */
.st-list { padding: 0; overflow: hidden; }
.st-row, .st-link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; text-decoration: none; }
.st-row + .st-row { border-top: 1px solid var(--line); }
.st-row:disabled { opacity: .7; }
.st-art { flex: 0 0 auto; display: grid; place-items: center; }
.st-body { flex: 1; min-width: 0; }
.st-title { display: block; font-size: 1.08rem; color: var(--navy-dark); margin-bottom: 4px; }
.st-vals { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.st-vals em { font-style: normal; font-size: 1.25rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.st-vals em i { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid; display: inline-block; }
.st-vals small { display: block; font-size: .78rem; color: var(--ink-soft); padding-left: 16px; }
.st-base { display: block; font-size: .74rem; color: var(--ink-soft); margin-top: 4px; }
.st-link { margin-top: 12px; }
.st-trend { width: 100%; height: auto; display: block; margin: 4px 0 8px; }
.st-trend-list .row { padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.pv-replay { position: absolute; z-index: 500; left: 50%; bottom: 14px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 9px 16px; background: rgba(16,35,63,.88); color: #fff; font: 700 .85rem var(--font-body, sans-serif); box-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* new private game, step by step — society navy and gold */
.wz-top { display: flex; align-items: center; gap: 8px; background: var(--navy-dark); color: #fff; margin: -16px -16px 0; padding: 10px 8px 12px; border-bottom: 3px solid var(--gold); }
.wz-title { flex: 1; text-align: center; display: flex; flex-direction: column; }
.wz-title small { font: 600 .7rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.wz-title b { font: 600 1.15rem var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.wz-x { width: 40px; height: 40px; border: 0; background: none; color: var(--gold-light); font-size: 1.5rem; line-height: 1; }
.wz-progress { height: 5px; background: #dfe4ec; border-radius: 3px; margin: 14px 0 18px; overflow: hidden; }
.wz-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; transition: width .25s; }
.wz-h { font: 600 1.6rem var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 4px; color: var(--navy-dark); }
.wz-sub { color: var(--ink-soft); margin: 0 0 16px; }
.wz-label { font: 600 .82rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 20px 0 8px; }
.wz-seg { display: flex; gap: 6px; }
.wz-seg button { flex: 1; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 600 .95rem var(--font-body); color: var(--navy-dark); }
.wz-seg button.on { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.wz-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 10px; background: #fff; font: inherit; color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.wz-card.on, .wz-pick.on, .wz-create.on { border-left-color: var(--gold); background: #fbf7ec; }
.wz-grow { flex: 1; min-width: 0; }
.wz-grow b { display: block; font-size: 1.02rem; color: var(--navy-dark); }
.wz-grow small { display: block; color: var(--ink-soft); font-size: .84rem; margin-top: 2px; }
.wz-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--navy-dark); display: grid; place-items: center; }
.wz-ico svg { width: 21px; height: 21px; stroke: var(--gold-light); }
.wz-ico.solid { background: var(--gold); } .wz-ico.solid svg { stroke: var(--navy-dark); }
.wz-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); flex: 0 0 18px; }
.wz-radio { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #b9c1cf; flex: 0 0 24px; display: grid; place-items: center; }
.wz-pick.on .wz-radio { background: var(--gold); border-color: var(--gold); }
.wz-pick.on .wz-radio::after { content: ""; width: 6px; height: 11px; border: solid var(--navy-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.wz-tag { font-style: normal; font: 600 .68rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--navy-dark); border-radius: 4px; padding: 2px 6px; vertical-align: middle; margin-left: 4px; }
.wz-note { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px dashed var(--gold); border-radius: 10px; padding: 12px 14px; margin-top: 16px; font-size: .9rem; color: var(--ink); }
.wz-note svg { width: 20px; height: 20px; flex: 0 0 20px; stroke: var(--gold); }
.wz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wz-toggle { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; box-shadow: var(--shadow); }
.wz-toggle:has(input:checked) { border-left-color: var(--gold); }
.wz-toggle > span { flex: 1; } .wz-toggle b { display: block; color: var(--navy-dark); } .wz-toggle small { display: block; color: var(--ink-soft); font-size: .84rem; }
.wz-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.wz-toggle i { width: 50px; height: 28px; border-radius: 14px; background: #d5dbe5; position: relative; flex: 0 0 50px; transition: background .15s; }
.wz-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.wz-toggle input:checked + i { background: var(--gold); }
.wz-toggle input:checked + i::after { left: 25px; }
.wz-toggle + .wz-seg { margin: -2px 0 12px; }
.wz-holes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.wz-holes button { border: 1px solid var(--line); border-radius: 50%; aspect-ratio: 1; background: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wz-holes button b { font: 600 1.1rem var(--font-display); color: var(--navy-dark); } .wz-holes button small { color: var(--ink-soft); font-size: .62rem; }
.wz-holes button.hint { border: 2px solid var(--gold); background: #fbf7ec; }
.wz-count { font-size: .95rem; margin-bottom: 10px; } .wz-count b { font: 600 1.4rem var(--font-display); color: var(--gold); }
.wz-av { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 40px; }
.wz-find { width: 100%; margin: 4px 0 6px; }
.wz-summary { background: var(--navy-dark); color: #fff; border-radius: 10px; padding: 12px 14px; margin: 16px 0 10px; font-weight: 600; border-left: 4px solid var(--gold); }
.wz-group { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.wz-group b { color: var(--navy-dark); font-family: var(--font-display); letter-spacing: .03em; }
.wz-review { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; padding: 4px 14px; box-shadow: var(--shadow); }
.wz-review div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.wz-review div:last-child { border-bottom: 0; }
.wz-review span { width: 86px; flex: 0 0 86px; color: var(--ink-soft); } .wz-review b { flex: 1; color: var(--navy-dark); }
.wz-create { margin-top: 10px; }
.wz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 16px calc(12px + var(--safe-bottom)); background: var(--navy-dark); border-top: 3px solid var(--gold); }
.wz-foot .btn { min-height: 52px; border-radius: 10px; }
.wz-foot .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.wz-foot .btn:not(.ghost) { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
body.has-wzfoot { padding-bottom: calc(96px + var(--safe-bottom)); }
/* manage a round or game */
.gear-btn { width: 42px; height: 42px; margin-left: 8px; border: 2px solid var(--gold); border-radius: 10px; background: #fff; color: var(--navy-dark); display: grid; place-items: center; flex: 0 0 42px; }
.gear-btn svg { width: 22px; height: 22px; }
.gear-btn.on { background: var(--navy-dark); color: var(--gold-light); }
.mg-title { margin: 4px 0 10px; }
.mg-status { display: flex; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--ink); border: 1.5px solid var(--line); }
.mg-status > span:first-child { flex: 1; } .mg-status b { display: block; font-size: 1.1rem; color: var(--navy-dark); } .mg-status small { color: var(--ink-soft); }
.mg-list { margin-top: 12px; }
.mg-head { margin: 0; padding: 14px 16px 4px; font: 600 .85rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.mg-badge { background: var(--navy-dark); color: var(--gold-light); border-radius: 6px; padding: 2px 9px; font-weight: 700; font-size: .82rem; }
.mg-status { border-left: 4px solid var(--gold) !important; }
.mg-delete .ci-label { color: #b42318; } .mg-delete .ci-ico svg { stroke: #b42318; }
button.back-link { font-family: inherit; cursor: pointer; }

/* course hero: photo or satellite, logo, contact */
.ci-hero { position: relative; overflow: hidden; }
.ci-hero-in { position: relative; z-index: 1; }
.ci-sat { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .5; }
.ci-sat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-sat::after, .ci-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,34,64,.35), rgba(15,34,64,.92)); }
.ci-hero.has-photo::after { z-index: 0; }
.ci-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 10px; border: 2px solid var(--gold); }
.ci-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
.ci-contact .btn { flex: 1 1 auto; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .88rem; padding: 0 12px; min-width: 0; }
.ci-contact .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-contact svg { width: 18px; height: 18px; flex: 0 0 18px; }
.ci-photos { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.ci-photos img { height: 90px; border-radius: 10px; }
.cd-pics { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-pics figure { margin: 0; width: 96px; text-align: center; }
.cd-pics figure .mv-link { font-size: 13px; white-space: nowrap; }
.cd-pics img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- match play, side games and settling up ---------- */
.mp-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mp-row:first-child { border-top: 0; padding-top: 2px; }
.mp-row.me { background: linear-gradient(90deg, rgba(184,146,60,.10), transparent 70%); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.mp-num { grid-column: 1 / -1; font: 600 .72rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.mp-side { min-width: 0; }
.mp-side:last-child { text-align: right; }
.mp-side b { display: block; color: var(--navy-dark); line-height: 1.25; overflow-wrap: anywhere; }
.mp-side.lead b { color: var(--good); }
.mp-side .thru { display: block; }
.mp-status { min-width: 68px; padding: 6px 8px; border-radius: 8px; background: var(--paper); text-align: center; font: 600 .95rem var(--font-display); color: var(--navy); white-space: nowrap; }
.mp-status small { display: block; font: 500 .7rem var(--font-body); color: var(--ink-soft); }
.mp-status.done { background: var(--navy); color: #fff; }
.mp-edit { padding: 10px 0; border-top: 1px solid var(--line); }
.mp-edit-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.mp-edit-sides select { width: 100%; margin-bottom: 6px; }
.su-pay { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.su-pay:first-of-type { border-top: 0; }
.su-pay span:nth-child(3) { font-weight: 600; color: var(--navy-dark); }
.su-pay b { font: 600 1.05rem var(--font-display); color: var(--navy); }
.su-arrow { color: var(--gold); font-weight: 700; }
.su-net { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.su-net:first-of-type { border-top: 0; }
.su-net small { display: block; color: var(--ink-soft); font-size: .8rem; }
.su-net b { font: 600 1rem var(--font-display); white-space: nowrap; }
.wz-money { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.wz-money > span:first-child { flex: 1; min-width: 0; }
.wz-money b { display: block; color: var(--navy-dark); }
.wz-money small { display: block; color: var(--ink-soft); font-size: .84rem; }
.wz-pound { display: inline-flex; align-items: center; gap: 4px; font: 600 1.05rem var(--font-display); color: var(--navy); }
.wz-pound input { width: 76px; text-align: right; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ---------- the Clubhouse ---------- */
.tabbar button span { font-size: .62rem; }
.club-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.club-head h1 { margin: 0; }
.club-tabs a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.club-tabs a[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ct-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 .66rem/18px var(--font-body); font-style: normal; text-align: center; }
.bday-banner { display: flex; gap: 12px; align-items: center; background: linear-gradient(120deg, #fff7e3, #fff); border-left: 4px solid var(--gold); }
.bday-cake { font-size: 1.9rem; }
.pk-bday { background: linear-gradient(160deg, #fffaf0 0%, #fff 55%); border: 1.5px solid rgba(184,146,60,.45); }
.bday-post { display: flex; gap: 14px; align-items: center; }
.bday-av { width: 64px; height: 64px; font-size: 1.3rem; box-shadow: 0 0 0 3px var(--gold); }
.bday-title { font: 600 1.25rem/1.15 var(--font-display); text-transform: uppercase; color: var(--navy-dark); letter-spacing: .02em; }
.ph-link { color: inherit; text-decoration: none; }
.club-post.is-hidden, .comment.is-hidden { opacity: .55; }
.club-photos { display: grid; gap: 4px; margin: 8px 0 4px; border-radius: 12px; overflow: hidden; }
.club-photos.n2, .club-photos.n4 { grid-template-columns: 1fr 1fr; }
.club-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.club-photos.n3 .cp-img:first-child { grid-row: span 2; }
.cp-img, .cm-img { display: block; padding: 0; border: 0; background: #e6eaf1; width: 100%; cursor: zoom-in; }
.cp-img img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.club-photos.n1 .cp-img img { aspect-ratio: auto; max-height: 520px; }
.club-previews { display: flex; gap: 6px; flex-wrap: wrap; }
.club-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-top: 8px; }
.likers { margin-left: 4px; }
.comment .thru { margin-left: 4px; }
.report-card blockquote { margin: 8px 0; padding: 8px 12px; background: var(--paper); border-left: 3px solid var(--line); border-radius: 6px; }
.chat-list { padding: 4px 0; }
.chat-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.chat-row:first-child { border-top: 0; }
.chat-row .avatar { width: 44px; height: 44px; }
.cr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-body b { color: var(--navy-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-body small { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.chat-row.unread .cr-body small { color: var(--ink); font-weight: 600; }
.cr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--ink-soft); font-size: .75rem; }
.grp-av { background: var(--navy); color: #fff; }
.people-list { max-height: 50vh; overflow-y: auto; }
.person-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; }
.person-row > span:not(.avatar) { flex: 1; }
.person-row .avatar { width: 34px; height: 34px; }
.person-row[hidden] { display: none; }
.check-row { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.danger { color: var(--bad) !important; }
.chat-page { display: flex; flex-direction: column; height: calc(100dvh - 120px); margin: -8px 0 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.chat-head .back-link { padding: 6px 12px; margin: 0; }
.chat-title { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; }
.chat-title b { font: 600 1.05rem var(--font-display); text-transform: uppercase; color: var(--navy-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title small { color: var(--ink-soft); font-size: .78rem; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px 2px; display: flex; flex-direction: column; gap: 3px; -webkit-overflow-scrolling: touch; }
.chat-day { align-self: center; margin: 10px 0 6px; padding: 3px 10px; border-radius: 999px; background: #e3e8f0; color: var(--ink-soft); font-size: .74rem; font-weight: 600; }
.chat-older { align-self: center; }
.chat-empty { text-align: center; margin-top: 30px; }
.cm { display: flex; flex-direction: column; max-width: 80%; }
.cm.mine { align-self: flex-end; align-items: flex-end; }
.cm.theirs { align-self: flex-start; }
.cm-name { font-size: .74rem; font-weight: 600; color: var(--gold); margin: 6px 0 2px 10px; }
.cm-bubble { padding: 8px 12px 6px; border-radius: 18px; background: #fff; box-shadow: 0 1px 1px rgba(16,35,63,.08); line-height: 1.35; overflow-wrap: anywhere; cursor: pointer; }
.cm.mine .cm-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.cm.theirs .cm-bubble { border-bottom-left-radius: 6px; }
.cm.mine .cm-bubble a { color: var(--gold-light); }
.cm-bubble small { display: block; text-align: right; font-size: .66rem; opacity: .65; margin-top: 2px; }
.cm-img img { max-width: 240px; max-height: 300px; border-radius: 12px; display: block; margin: -2px -6px 4px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.chat-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 14px; border-radius: 21px; border: 1.5px solid var(--line); font: inherit; }
.chat-compose .btn { min-height: 42px; border-radius: 21px; }
.cc-photo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); font-size: 1.1rem; flex: none; }
.details-card form { margin-top: 12px; }
.details-card .vis-sel { width: auto; margin: -4px 0 10px; font-size: .84rem; padding: 4px 8px; }
.dt-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.dt-row:first-of-type { border-top: 0; }
.dt-ico { width: 24px; text-align: center; }
.dt-body { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.dt-body small { color: var(--ink-soft); font-size: .76rem; }
.av-zoom { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 50%; }
.zoom-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(8,16,30,.92); display: grid; place-items: center; padding: 24px; animation: zoomIn .18s ease-out; }
.zoom-ov img { max-width: min(92vw, 640px); max-height: 80vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.5); object-fit: contain; }
.zoom-ov button { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* notification choices */
.note-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.note-row span { flex: 1; display: flex; flex-direction: column; }
.note-row small { color: var(--ink-soft); font-size: .8rem; }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 14px; background: #cfd6e2; position: relative; flex: none; transition: background .15s; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch:checked { background: var(--good, #2e7d32); }
.switch:checked::after { transform: translateX(20px); }

/* Mapping a course on the day */
.gps-bar.map-help { flex-wrap: wrap; gap: 6px 8px; }
.gps-bar.map-help > .small { flex: 1 1 100%; }
.map-here-btns { display: flex; gap: 8px; flex: 1 1 100%; }
.map-here-btns .btn { flex: 1; min-height: 38px; padding: 6px 8px; font-size: .86rem; }
.map-help-steps { margin: 6px 0 10px; padding-left: 20px; line-height: 1.5; }
.map-help-steps li { margin-bottom: 6px; }

/* Meal choices */
.meal-card .row { align-items: baseline; }
.meal-card-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.meal-card-btns .btn { flex: 1 1 auto; }
.meal-course { border: 0; padding: 0; margin: 0 0 12px; }
.meal-course legend { font-weight: 700; margin-bottom: 6px; }
.meal-course.is-off { opacity: .45; }
.meal-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 12px; cursor: pointer; }
.meal-option input { width: 20px; height: 20px; accent-color: var(--gold, #b0924a); flex: none; }
.meal-note { font-style: normal; font-size: .72rem; font-weight: 700; color: #8a6414; background: rgba(176,146,74,.18); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.meal-extras { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 8px 30px; }
.meal-extras[hidden] { display: none; }
.meal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; font-size: .9rem; background: var(--card, #fff); }
.meal-out { border-style: dashed; background: transparent; }
.meal-totals { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.meal-total { font-size: .8rem; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; padding: 3px 10px; }
.meal-total-wait { border-style: dashed; }
.meal-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.meal-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.meal-list .meal-name { font-weight: 600; }
.meal-list li.is-me .meal-name { color: var(--gold-dark, #8a6414); }
.meal-list .meal-pick { grid-column: 1 / -1; grid-row: 2; color: var(--muted, #5b6478); font-size: .86rem; }
.meal-list li:has(.meal-edit-btn) { grid-template-columns: 1fr auto; align-items: center; }
.meal-list li:has(.meal-edit-btn) .meal-pick { grid-row: 2; grid-column: 1; }
.meal-edit-btn { grid-row: 1 / span 2; grid-column: 2; min-height: 36px; padding: 4px 14px; font-size: .86rem; }

/* Members (committee) */
.adm-search { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line, rgba(0,0,0,.15)); border-radius: 12px; font: inherit; margin: 6px 0 4px; background: var(--card, #fff); }
.adm-h { font-size: 1.05rem; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); color: inherit; text-decoration: none; }
.adm-row:first-child { border-top: 0; }
.adm-row .avatar { width: 40px; height: 40px; flex: none; }
.adm-txt { flex: 1; min-width: 0; }
.adm-txt small { display: block; color: var(--muted, #5b6478); font-size: .8rem; margin-top: 1px; }
.adm-badge { background: var(--gold, #b0924a); color: var(--navy-dark, #0f1f3a); font-size: .62rem; vertical-align: 2px; }
.adm-warn { color: #a6461b; }
.adm-btns { display: flex; gap: 8px; }
.adm-btns .btn { flex: 1; }
.adm-hc { display: flex; gap: 8px; margin-top: 4px; }
.adm-hc input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line, rgba(0,0,0,.15)); border-radius: 10px; font: inherit; font-size: 1.05rem; }
.btn.adm-remove { margin: 14px 0 24px; color: #a33; border-color: rgba(170,51,51,.35); }
.adm-pick { max-height: 50vh; overflow: auto; margin: 6px 0 4px; }
.adm-pick .ci-row[disabled] { opacity: .45; }

/* Check-in lists (Manage) */
.ci-sub { font-size: .95rem; margin: 14px 0 4px; }
.checkin-row.is-here > span:first-child { color: #1d6b34; font-weight: 600; }
.btn.ci-undo { color: #a33; border-color: rgba(170,51,51,.35); }

.update-bar { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; background: var(--gold, #b0924a); color: var(--navy-dark, #0f1f3a); border: 0; border-radius: 14px; padding: 14px 16px; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Food only and pub money */
.meal-tag { font-style: normal; font-size: .68rem; font-weight: 700; background: #fbf1d6; color: #7a5a12; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.meal-tag.is-paid { background: #e3f1e6; color: #1d6b34; }
.meal-tools { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; align-items: center; }
.meal-list li:has(.meal-tools) { grid-template-columns: 1fr auto; align-items: center; }
.meal-list li:has(.meal-tools) .meal-pick { grid-row: 2; grid-column: 1; }
.meal-tools .meal-edit-btn { grid-row: auto; grid-column: auto; }
.meal-paid { font: inherit; font-size: .74rem; border: 1px dashed var(--line, rgba(0,0,0,.25)); background: transparent; border-radius: 999px; padding: 6px 10px; color: var(--muted, #5b6478); }
.meal-paid.is-paid { border: 1px solid #2d7a46; color: #1d6b34; background: #e3f1e6; }
.meal-remove { font: inherit; border: 0; background: none; color: #a33; padding: 6px; font-size: 1rem; }
.meal-add { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.meal-add-row { display: flex; gap: 8px; margin-top: 6px; }
.meal-add-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line, rgba(0,0,0,.15)); border-radius: 10px; font: inherit; }

/* Phones zoom in when a box with small text is tapped, and stay zoomed.
   16px is the size iPhones leave alone. */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea { font-size: max(16px, 1em) !important; }
}

/* ---------- Pay for a round (card via js/card-pay.js, bank transfer) ---------- */
.pay-card .row { align-items: baseline; }
.pay-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.pay-chip { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #F6F7FA; }
.pay-chip b { font-weight: 700; color: var(--bad); }
.pay-chip.is-paid b { color: var(--good); }
.pay-chip.is-wait b { color: #7A5A11; }
.pay-card .btn-brass { background: var(--gold); color: var(--navy-dark); width: 100%; }
.card-pay { margin-top: 12px; }
.card-pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-pay-wallets { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.card-pay-opts { display: grid; gap: 8px; margin: 10px 0; }
.card-pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.card-pay-opt:has(input:checked) { border-color: var(--gold); background: #FBF7EE; }
.card-pay-opt input { margin: 0; accent-color: var(--gold); width: 20px; height: 20px; flex: none; }
.card-pay-opt-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.card-pay-opt-name { font-weight: 600; }
.card-pay-opt-sub { font-size: .8rem; color: var(--ink-soft); }
.card-pay-opt-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.card-pay-one { margin: 8px 0; }
.card-pay-fee { font-size: .8rem; color: var(--ink-soft); margin: 4px 0 10px; }
.card-pay-msg { font-size: .85rem; margin-top: 8px; }
.card-pay-msg.is-err { color: var(--bad); }
.pay-bank { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.pay-bank summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 4px 0; }
.pay-bank .btn { width: 100%; margin-top: 6px; }
.pay-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; font-size: .92rem; }
.pay-dl dt { color: var(--ink-soft); }
.pay-dl dd { margin: 0; font-weight: 600; }
.pay-dl .mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }

/* Golf buggy beside a player's name (attendance.buggy) */
.buggy-ic { display: inline-flex; vertical-align: -3px; width: 18px; height: 18px; margin-left: 4px; color: var(--gold, #B8923C); }
.buggy-ic svg { width: 100%; height: 100%; }
.pp-table .buggy-ic { color: #1B3A6C; width: 15px; height: 15px; }

/* Round notice, e.g. the 4-club rule (events.app_notice) */
.card.round-notice { background: #fbf1d6; border: 1px solid #e3c46f; border-left: 5px solid var(--gold); font-weight: 600; line-height: 1.45; }
.round-notice-label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #7A5A11; margin-bottom: 4px; font-weight: 700; }
.hero-notice { margin: 10px 0 12px; padding: 9px 12px; border-radius: 10px; background: rgba(217,190,124,.16); border: 1px solid rgba(217,190,124,.45); color: #fff; font-size: .86rem; line-height: 1.4; }
.hero-notice b { color: #D9BE7C; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; display: block; }

/* Key under each printed scorecard explaining the shot dots */
.pp-key { margin-top: 8px; }
.pp-key .pp-dots, .pdf-stage .pp-key .pp-dots { position: static; font-size: 1.1em; letter-spacing: 0; }

/* Live shots badge by each name on the group card */
.shot-badge { display: inline-block; font-style: normal; font-size: .7rem; font-weight: 700; line-height: 1; padding: 3px 6px; margin-left: 6px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); white-space: nowrap; vertical-align: 1px; }
.shot-badge.give { background: #e7ecf5; color: var(--navy); }
.shot-badge.none { background: #eef0f4; color: var(--ink-soft); font-weight: 600; }
.gb-hole { font-weight: 600; color: var(--ink-soft); font-size: .78rem; text-transform: none; letter-spacing: 0; }

/* Hole guide */
.hole-guide-link { display: block; width: 100%; margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.hg-kick { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hg-title { margin: 2px 0 10px; }
.hg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.hg-facts div { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px; text-align: center; }
.hg-facts span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #D9BE7C; }
.hg-facts b { font-size: 1.4rem; }
.hg-sec { margin-top: 14px; }
.hg-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.hg-shots { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hg-shot { white-space: nowrap; }
.hg-text { margin: 0 0 8px; line-height: 1.5; }
.hg-haz { display: flex; flex-wrap: wrap; gap: 6px; }
.hg-haz span { font-size: .78rem; padding: 4px 9px; border-radius: 999px; background: #fbf1d6; border: 1px solid #e3c46f; color: #5b4310; }
.hg-plan { margin: 0; padding-left: 20px; }
.hg-plan li { margin: 3px 0; }
.hg-tip { margin: 0 0 6px; font-style: italic; }
.hg-edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.hg-edit summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.hg-actions { display: flex; gap: 8px; margin-top: 16px; }
.hg-actions .btn { flex: 1; }
.hg-src { margin-top: 10px; }
.gb-av { position: relative; display: inline-flex; flex: none; }
.shot-pip { position: absolute; bottom: -7px; right: -6px; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); font-style: normal; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.shot-pip.give { background: #e7ecf5; color: var(--navy); }

/* Tee time under each group chip */
.chip-time { display: block; font-size: .72rem; font-weight: 600; opacity: .75; margin-top: 1px; letter-spacing: .02em; }

/* Score pad 1 to 20: four keys a row so it still fits on a phone */
.kp-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
.kp-key { min-height: 58px; font-size: 1.9rem; }
.kp-key small { font-size: .55rem; }
.kp-grid.compact .kp-key { min-height: 48px; font-size: 1.6rem; }

/* A side contest on this hole, at the top of the hole pop-up */
.hg-contest { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 0; padding: 10px 12px; border: 1.5px solid var(--gold); border-radius: 12px; background: rgba(201,162,39,.12); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.hg-contest .ct-ico { font-size: 1.3rem; }
.hg-ct-what { flex: 1; display: flex; flex-direction: column; }
.hg-ct-what small, .hg-ct-who small { font-size: .75rem; opacity: .75; display: block; }
.hg-ct-who { text-align: right; font-weight: 700; font-size: .9rem; }

/* A finished season's rounds, folded behind a button on the home screen */
.more-rounds.past-season > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; margin: 6px 0; border: 1.5px solid var(--navy, #14213d); border-radius: 12px; background: #fff; color: var(--navy, #14213d); font-weight: 700; text-align: left; }
.more-rounds.past-season > summary::after { content: "›"; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.more-rounds.past-season[open] > summary::after { transform: rotate(90deg); }

/* Trip card on home, and "Your trip" on the Ryder Cup screen */
.trip-card { display: block; color: inherit; text-decoration: none; border: 1.5px solid var(--gold); }
.rc-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.rc-pay div { display: flex; flex-direction: column; }
.rc-pay small { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.rc-pay b { font-size: 1.25rem; color: var(--navy); }
.rc-pay.done b { color: #2E7D32; }
.rc-paybar { height: 8px; border-radius: 99px; background: rgba(27,58,108,.1); overflow: hidden; }
.rc-paybar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.rc-payhist { margin-top: 8px; }
.rc-payhist summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.rc-payhist .row { padding: 4px 0; border-bottom: 1px solid rgba(27,58,108,.08); }
.rc-todos { margin-top: 4px; }
.rc-todo { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid rgba(27,58,108,.08); }
.rc-todo.done .rc-todo-text b { text-decoration: line-through; opacity: .6; }
.rc-tick { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: #fff; font-weight: 800; cursor: pointer; }
.rc-todo.done .rc-tick { background: #2E7D32; border-color: #2E7D32; }
.rc-todo-text { flex: 1; min-width: 0; }
.err-text { color: #7A2331; font-weight: 600; }
.trip-todo-pill { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 99px; background: rgba(184,146,60,.16); color: #7a5a14; font-size: .85rem; font-weight: 700; }
