:root {
  --green-900: #0b3d2e;
  --green-700: #14603f;
  --green-500: #1f8a5b;
  --green-300: #57c98a;
  --sand: #f4efe3;
  --ink: #10241c;
  --paper: #ffffff;
  --muted: #6b7d75;
  --gold: #d9a441;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win, even over flex/grid display rules
   (e.g. .user-chip, .feed-compose) that would otherwise keep it visible. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #e8f5ee 0%, transparent 60%),
    linear-gradient(180deg, #f7f9f5 0%, #eef3ec 100%);
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; object-fit: cover; padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); flex: none;
}
.site-header h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .2px; }
.tagline { margin: 2px 0 0; font-size: 13px; opacity: .82; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 12px;
  border-radius: 999px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.1; text-align: right; }
.user-name { font-weight: 700; font-size: 15px; }
.user-sub { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .8px; }
.balance {
  font-size: 20px; font-weight: 800; color: var(--gold);
  background: rgba(0,0,0,.18); padding: 4px 12px; border-radius: 999px; min-width: 54px; text-align: center;
}

/* Layout */
.layout {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* Market cards */
.markets { display: flex; flex-direction: column; gap: 20px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

.market {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(20,96,63,.08);
}
.market-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 18px 20px 8px;
}
.market-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.market-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.market-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--green-700); background: #e7f4ec; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.market-tag.settled { color: #8a6d1f; background: #fbf1d8; }
.market-tag.closed { color: #8a6d1f; background: #fbf1d8; }
.market-tag.void { color: #6b6b6b; background: #ececec; }
.market-void-note {
  margin: 0 14px 8px; padding: 8px 12px; border-radius: 10px;
  background: #f3f3f3; border: 1px solid #e2e2e2; color: #5a5a5a; font-size: 12.5px; font-weight: 600;
}

/* Post-tournament results summary */
.results-summary {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(20,96,63,.12); padding: 20px; display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.results-champ {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(120deg, #0f5133, #1f8a5b); color: #fff;
  border-radius: 14px; padding: 16px 18px;
}
.results-trophy { font-size: 42px; line-height: 1; }
.results-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; opacity: .85; }
.results-champ-name { font-size: 26px; font-weight: 800; margin-top: 2px; }
.results-champ-score { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.champ-gross { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.champ-gross-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; opacity: .82; }
.champ-net { font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; margin-left: 4px; }
.results-narrative { display: flex; flex-direction: column; gap: 8px; }
.results-narrative p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #2a3d34; }
.results-h3 { margin: 4px 0 0; font-size: 15px; }
.results-standings { display: flex; flex-direction: column; gap: 4px; }
.rstand-row {
  display: grid; grid-template-columns: 28px 1fr auto auto; align-items: baseline; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: #f7faf8; font-size: 14px;
}
.rstand-row.champ { background: #f2fbf6; border: 1px solid #cdeedd; }
.rstand-rank { font-weight: 800; color: var(--muted); text-align: center; }
.rstand-name { font-weight: 700; }
.rstand-gross { font-weight: 800; font-size: 17px; color: var(--green-700); font-variant-numeric: tabular-nums; }
.rstand-net { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
.results-markets { display: flex; flex-direction: column; gap: 4px; }
.rmkt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 10px; background: #f7faf8; font-size: 13.5px;
}
.rmkt-title { font-weight: 600; color: #2a3d34; }
.rmkt-outcome { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.rmkt-outcome.win { color: var(--green-700); }
.rmkt-outcome.void { color: #7a7a7a; }
.rmkt-outcome.pending { color: #8a6d1f; }
.results-notes { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Hole-by-hole scorecard (traditional grid, like the course scorecard) */
.sc-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 6px; }
.sc-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.sc-swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sc-swatch.sc-par { background: #e3e9e5; }
.sc-swatch.sc-birdie { background: #ccefd9; }
.sc-swatch.sc-eagle { background: #f2e0a6; }
.sc-swatch.sc-bogey { background: #f5ddc2; }
.sc-swatch.sc-double { background: #f1cfc9; }

.scorecard-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid #e6efe9; border-radius: 12px;
  min-width: 0; max-width: 100%;
}
.scorecard-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.scorecard-table th, .scorecard-table td {
  text-align: center; padding: 7px 0; min-width: 26px; font-size: 12.5px; white-space: nowrap;
}
.scorecard-table thead th { background: #0f5133; color: #fff; font-weight: 700; font-size: 11.5px; }
.scorecard-table .par-row td, .scorecard-table .par-row th {
  background: #eef3f0; color: #2a3d34; font-weight: 700; font-size: 11.5px;
}
/* Sticky player/label column so scores scroll under the names */
.sc-corner, .sc-player {
  text-align: left; padding-left: 12px; padding-right: 10px; position: sticky; left: 0;
  min-width: 78px; z-index: 1;
}
.scorecard-table thead .sc-corner { background: #0f5133; }
.scorecard-table .par-row .sc-corner { background: #eef3f0; }
.sc-player { background: #fff; font-weight: 700; }
.scorecard-table tbody tr + tr td, .scorecard-table tbody tr + tr th { border-top: 1px solid #eef1ef; }
.sc-champ-row .sc-player { color: var(--green-700); }
.sc-champ-row td.sc-sub.sc-grandcol { color: var(--green-700); }
.sc-sub { background: #f2f6f3; font-weight: 800; }
.sc-grandcol { border-left: 2px solid #dfe7e2; }
.scorecard-table tbody td.sc-scell { font-weight: 700; }
/* Score cells relative to par */
td.sc-eagle { background: #f7ecc6; color: #8a6d1f; }
td.sc-birdie { background: #d8f2e2; color: #1a7a4d; }
td.sc-par { color: #2a3d34; }
td.sc-bogey { background: #f8ead9; color: #a6641d; }
td.sc-double { background: #f6d9d3; color: #b23b30; }
td.sc-blank { color: #c3ccc7; }
.sc-share-row { display: flex; justify-content: center; margin-top: 4px; }
.sc-share-btn { font-size: 13px; padding: 8px 16px; }
@media (max-width: 720px) {
  .rmkt-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .results-champ-name { font-size: 22px; }
}

.market-trend {
  margin: 0 14px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6fbf8;
  border: 1px solid rgba(20, 96, 63, .12);
}
.market-trend-head {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.trend-chart {
  width: 100%;
  height: 60px;
  display: block;
}
.trend-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trend-1 { color: #1f8a5b; }
.trend-2 { color: #3b6fb6; }
.trend-line.trend-1 { stroke: #1f8a5b; }
.trend-line.trend-2 { stroke: #3b6fb6; }
.trend-area { stroke: none; }
.trend-area.trend-1 { fill: rgba(31, 138, 91, .12); }
.trend-end.trend-1 { fill: #1f8a5b; stroke: #fff; stroke-width: 1.5; }
.trend-end.trend-2 { fill: #3b6fb6; stroke: #fff; stroke-width: 1.5; }
.market-trend-legend {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #2a3d34;
  background: #ffffff;
  border: 1px solid #dce9e2;
  border-radius: 999px;
  padding: 3px 8px;
}
.trend-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.trend-delta.up { color: #1f8a5b; }
.trend-delta.down { color: #c0403a; }
.trend-delta.flat { color: var(--muted); }
.trend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.trend-dot.trend-1 { background: #1f8a5b; }
.trend-dot.trend-2 { background: #3b6fb6; }

.bet-status {
  border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.4;
  box-shadow: var(--shadow);
}
.bet-status.open { background: #eef8f1; border: 1px solid #cfe9d9; color: #1c4d38; }
.bet-status.closed { background: #fbf1d8; border: 1px solid #f0dfae; color: #7a5c00; }
.bet-status b { font-weight: 800; }

/* Clubhouse anchor should clear the sticky header + nav when linked to */
#clubhouse { scroll-margin-top: 140px; }

/* Sign out lives in the account modal now */
.account-signout { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eceee9; text-align: center; }
.danger-link { color: var(--danger); font-weight: 600; }

.outcomes { padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.outcome {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
  position: relative;
  overflow: hidden;
}
.outcome:hover { border-color: var(--green-300); background: #eef8f1; }
.outcome:active { transform: scale(.995); }
.outcome.winner { border-color: var(--gold); background: #fdf7e8; }
.outcome[disabled] { cursor: default; opacity: .75; }

.bar {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(31,138,91,.16), rgba(87,201,138,.10));
  z-index: 0;
}
.outcome > * { position: relative; z-index: 1; }

.o-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.o-name small { color: var(--muted); font-weight: 500; }
.o-prob { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 600; }
.o-odds {
  font-variant-numeric: tabular-nums;
  font-weight: 800; color: var(--green-700);
  background: #e7f4ec; padding: 4px 10px; border-radius: 8px; min-width: 58px; text-align: center;
}
.o-odds small { font-weight: 600; font-size: 10px; color: var(--muted); }
.trophy { color: var(--gold); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.card {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px; border: 1px solid rgba(20,96,63,.08);
}
.card h2 { margin: 0 0 12px; font-size: 16px; }
.how { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: #2a3d34; }
.how em { color: var(--green-700); font-style: normal; font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }

.leaderboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leaderboard li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 10px; background: #f7faf8; font-size: 14px;
}
.leaderboard li .rank { font-weight: 700; color: var(--muted); width: 22px; }
.leaderboard li .lname { flex: 1; font-weight: 600; }
.leaderboard li .lbal { font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.leaderboard li.me { background: #fdf7e8; }

.admin-link {
  background: none; border: 1px dashed rgba(20,96,63,.35); color: var(--green-700);
  padding: 10px; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 13px;
}
.admin-link:hover { background: #eef8f1; }

/* Field / contestant bios */
.field-list { display: flex; flex-direction: column; gap: 10px; }
.field-item { padding: 9px 11px; border-radius: 10px; background: #f7faf8; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fname { font-weight: 700; font-size: 14px; }
.fhcp {
  font-size: 11px; font-weight: 700; color: var(--green-700);
  background: #e7f4ec; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.field-meta { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.field-note { font-size: 12.5px; color: #2a3d34; margin-top: 4px; line-height: 1.45; }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(9,30,22,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
  backdrop-filter: blur(3px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--paper); border-radius: 18px; padding: 24px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: pop .16s ease;
}
.admin-modal { max-width: 640px; max-height: 86vh; overflow-y: auto; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal h2 { margin: 0 0 6px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal input[type=text], .modal input[type=number], .modal input[type=password], .modal input[type=email] {
  width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #d5e0da; font-family: inherit; font-size: 15px; box-sizing: border-box;
}
.field { display: block; margin-top: 14px; }
.field span { font-size: 13px; font-weight: 600; color: #2a3d34; }
.field input { margin-top: 6px; }
.field textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #d5e0da; font-family: inherit; font-size: 15px; line-height: 1.45;
  min-height: 110px; resize: vertical; box-sizing: border-box;
}

.quick-stakes { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.quick-stakes button {
  flex: 1; min-width: 56px; padding: 8px; border-radius: 10px; border: 1px solid #d5e0da;
  background: #f7faf8; cursor: pointer; font-family: inherit; font-weight: 600;
}
.quick-stakes button:hover { background: #eef8f1; border-color: var(--green-300); }

.bet-odds {
  margin-top: 12px; padding: 12px; border-radius: 12px; background: #f7faf8;
  display: flex; justify-content: space-between; align-items: center; font-size: 14px;
}
.bet-odds b { font-size: 18px; color: var(--green-700); }

.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.primary-btn {
  flex: 1; padding: 12px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  color: #fff; font-family: inherit; font-weight: 700; font-size: 15px;
}
.primary-btn:hover { filter: brightness(1.05); }
.ghost-btn {
  padding: 12px 16px; border: 1px solid #d5e0da; border-radius: 12px; cursor: pointer;
  background: #fff; font-family: inherit; font-weight: 600; color: var(--ink);
}
.ghost-btn:hover { background: #f2f6f3; }
.bet-error { color: var(--danger); font-size: 13px; margin: 10px 0 0; font-weight: 600; }

/* Admin panel */
.admin-section { margin-top: 18px; }
.admin-section h3 { margin: 0 0 8px; font-size: 15px; }
.player-row {
  display: grid; grid-template-columns: 1fr 70px 1fr; gap: 8px; margin-bottom: 8px; align-items: center;
}
.player-row input { width: 100%; padding: 8px 10px; border: 1px solid #d5e0da; border-radius: 8px; font-family: inherit; }
.admin-market {
  border: 1px solid #e3ebe6; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.admin-market .amtitle { font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.settle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.settle-row select { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid #d5e0da; font-family: inherit; }
.mini-btn {
  padding: 8px 12px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--green-700); color: #fff; font-family: inherit; font-weight: 600; font-size: 13px;
}
.mini-btn.danger { background: var(--danger); }
.mini-btn.subtle { background: #e7f4ec; color: var(--green-700); }
.line-row { display: flex; gap: 8px; align-items: center; }
.line-row input { width: 100px; padding: 8px; border: 1px solid #d5e0da; border-radius: 8px; font-family: inherit; }

/* People & activity table */
.people-wrap { overflow-x: auto; margin-bottom: 8px; }
.people-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.people-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid #e3ebe6; white-space: nowrap;
}
.people-table td { padding: 8px; border-bottom: 1px solid #f0f4f2; vertical-align: middle; }
.people-table tr.is-bot { background: #f7faf8; }
.ppl-name { font-weight: 600; color: #223a2f; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ppl-email { color: var(--muted); font-size: 12px; word-break: break-all; }
.ppl-num { text-align: right; font-variant-numeric: tabular-nums; }
.ppl-time { color: var(--muted); white-space: nowrap; }
.ppl-tag {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 2px 6px; border-radius: 999px; line-height: 1.4;
}
.tag-host { background: var(--gold); color: #3a2a00; }
.tag-ai { background: #12432c; color: #eaf6ee; }
.tag-on { background: #dff0e6; color: var(--green-700); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--green-900); color: #fff; padding: 12px 20px; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 80; font-weight: 600; font-size: 14px;
  animation: pop .16s ease;
}
.toast.err { background: var(--danger); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.signin-btn { flex: none; padding: 10px 18px; font-size: 14px; }
#logoutBtn, #editNameBtn { padding: 8px 10px; }

/* Main column wrapper */
.main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* AI Caddie */
.caddie {
  background: linear-gradient(135deg, #12432c, #1f5c3a);
  color: #eaf6ee; border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow);
}
.caddie-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.caddie-head h2 { margin: 0; font-size: 18px; color: #fff; }
.caddie-head .muted { color: #b7d6c3; }
.caddie-text { margin: 12px 0 14px; line-height: 1.55; font-size: 14.5px; }
.caddie-probs { display: flex; flex-direction: column; gap: 6px; }
.prob-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.prob-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prob-track { background: rgba(255,255,255,.15); border-radius: 999px; height: 8px; overflow: hidden; }
.prob-fill { height: 100%; background: var(--gold); border-radius: 999px; }
.prob-pct { text-align: right; font-weight: 700; color: var(--gold); }
.caddie .mini-btn.subtle { background: rgba(255,255,255,.16); color: #fff; }

/* Comments / clubhouse chat */
.comment-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.comment-form textarea {
  flex: 1; padding: 9px 11px; border: 1px solid #d5e0da; border-radius: 10px;
  font-family: inherit; font-size: 13.5px; resize: vertical; min-height: 40px;
}
.comment-signin { margin: 0 0 12px; }
.comments { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.comment { padding: 9px 11px; border-radius: 10px; background: #f7faf8; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.comment-name { font-weight: 700; font-size: 13px; color: var(--green-700); }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 13.5px; margin-top: 3px; line-height: 1.45; word-wrap: break-word; }
.comment-meta { font-size: 11px; color: var(--muted); font-weight: 600; }
.admin-feedback { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.comment-bet { background: #eef8f1; border: 1px solid #cfe9d9; }
.bet-badge {
  margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--green-700);
  background: #dff0e6; padding: 3px 9px; border-radius: 999px; display: inline-block;
}

/* Config + resolve forms */
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #2a3d34; }
.cfg-field input, .cfg-field select, .cfg-field textarea {
  padding: 8px 10px; border: 1px solid #d5e0da; border-radius: 8px; font-family: inherit; font-weight: 500; font-size: 14px;
}
.cfg-field textarea { min-height: 64px; resize: vertical; }
.admin-section textarea { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid #d5e0da; border-radius: 8px; font-family: inherit; }
.inline-label { font-size: 13px; font-weight: 600; color: #2a3d34; }
.line-row select { padding: 8px; border-radius: 8px; border: 1px solid #d5e0da; font-family: inherit; }

.paste-box { width: 100%; min-height: 54px; padding: 8px 10px; border: 1px solid #d5e0da; border-radius: 8px; font-family: inherit; margin-bottom: 8px; resize: vertical; }
.score-grid { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.score-row { display: grid; grid-template-columns: 1fr 80px 70px; gap: 8px; align-items: center; }
.score-name { font-size: 13.5px; }
.score-input { padding: 7px 9px; border: 1px solid #d5e0da; border-radius: 8px; font-family: inherit; }
.score-net { font-size: 12px; color: var(--muted); }
.resolve-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 10px 0; }
.results-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #eef8f1; border: 1px solid var(--green-300); }
.dev-code { margin-top: 10px; padding: 10px; border-radius: 8px; background: #fff7e0; border: 1px solid #f0d98a; font-size: 13px; font-weight: 600; color: #7a5c00; }

@media (max-width: 560px) {
  .config-grid, .resolve-opts { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Mobile — most guests open this from a text message, so tune for small screens
--------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .site-header { padding: 12px 16px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-logo { width: 42px; height: 42px; }
  .site-header h1 { font-size: 17px; line-height: 1.15; }
  .tagline { font-size: 11px; }
  .header-actions { gap: 8px; }
  .signin-btn { padding: 9px 14px; font-size: 13px; }
  .user-chip { gap: 8px; padding: 6px 8px; }
  .user-meta { display: none; }
  .balance { font-size: 17px; min-width: 44px; padding: 4px 10px; }

  .layout { margin: 16px auto; padding: 0 12px; gap: 16px; }
  .sidebar { position: static; top: auto; }
  .main-col { gap: 16px; }

  .market-head { padding: 14px 14px 6px; }
  .market-head h3 { font-size: 16px; }
  .market-trend { margin: 0 10px 8px; padding: 7px 8px; }
  .market-trend-head { font-size: 10px; }
  .trend-chip { font-size: 10px; padding: 2px 7px; }
  .outcomes { padding: 6px 10px 12px; }
  .outcome { grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 10px; }
  .o-name { font-size: 14px; }
  .o-odds { min-width: 50px; }

  .caddie { padding: 16px; }
  .prob-row { grid-template-columns: 84px 1fr 40px; gap: 8px; }

  /* Modals become bottom sheets that are easy to reach with a thumb */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal {
    max-width: 100%; border-radius: 18px 18px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    max-height: 92vh; overflow-y: auto;
  }
  .admin-modal { max-width: 100%; max-height: 92vh; }
  @keyframes pop { from { transform: translateY(24px); opacity: .4; } }
  .modal-actions { position: sticky; bottom: 0; background: var(--paper); padding-top: 10px; }

  .comments { max-height: none; }
}

/* Comfortable tap targets on touch devices */
@media (hover: none) {
  .outcome, .quick-stakes button, .mini-btn, .primary-btn, .ghost-btn, .details-btn, .share-btn, .nav-link { min-height: 44px; }
}

/* ---------------------------------------------------------------------------
   Nav bar
--------------------------------------------------------------------------- */
.site-nav {
  display: flex; gap: 6px; align-items: center;
  padding: 0 28px; background: var(--green-900);
  position: sticky; top: 0; z-index: 15;
  box-shadow: 0 2px 8px rgba(11, 61, 46, .18);
  overflow-x: auto;
}
.nav-link {
  color: #d7ece0; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 12px 14px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; border-bottom-color: var(--gold); }

/* ---------------------------------------------------------------------------
   Market detail button + modal
--------------------------------------------------------------------------- */
.market-head-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.share-btn {
  border: 1px solid #cfe0d7; background: #fff; color: var(--green-700);
  font-weight: 700; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.share-btn:hover { background: #eef8f1; }
.share-btn:disabled { opacity: .6; cursor: default; }
.share-btn span { font-size: 14px; line-height: 1; }
.details-btn {
  border: 1px solid #cfe0d7; background: #fff; color: var(--green-700);
  font-weight: 700; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.details-btn:hover { background: #eef8f1; }

.detail-modal { max-width: 560px; }
.detail-status {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--green-700); background: #e7f4ec; padding: 4px 10px; border-radius: 999px;
}
.detail-status.settled { color: #8a6d1f; background: #fbf1d8; }
.detail-sub { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.detail-narrative { font-size: 15px; line-height: 1.55; margin: 12px 0 4px; }
.detail-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.vs-card { background: #f7faf8; border: 1px solid #e0ece5; border-radius: 12px; padding: 12px; }
.vs-name { font-weight: 800; color: var(--green-900); font-size: 16px; }
.vs-hcp { font-size: 12.5px; color: var(--green-700); font-weight: 700; margin-top: 2px; }
.vs-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.detail-board { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.detail-h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 16px 0 8px; }
.detail-note { background: #eef8f1; border: 1px solid #cfe9d9; border-radius: 10px; padding: 8px 11px; margin-bottom: 8px; }
.detail-note-head { font-weight: 700; font-size: 13px; color: var(--green-700); }
.detail-note-text { font-size: 13px; margin-top: 3px; line-height: 1.45; }
.detail-cta { width: 100%; margin-top: 14px; }

/* AI Caddie journal entries inside the clubhouse feed */
.feed-hint { margin: -4px 0 12px; font-size: 12.5px; }
.comment-caddie { background: #fff8ea; border: 1px solid #f0dfae; }
.comment-caddie .comment-name { color: #8a6d1f; }
.comment-weather { background: #eef6fd; border: 1px solid #cfe3f5; }
.comment-weather .comment-name { color: #1f5f8a; }

/* Game-day weather card */
.weather-top { display: flex; align-items: center; gap: 10px; }
.weather-icon { font-size: 34px; line-height: 1; }
.weather-temps b { font-size: 26px; color: var(--green-700); }
.weather-lo { font-size: 16px; color: var(--muted); }
.weather-label { font-weight: 600; margin-top: 4px; }
.weather-meta { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; color: #45564e; }
.weather-day { margin: 8px 0 0; font-size: 12px; }
.weather-src { margin: 8px 0 0; font-size: 11px; }

/* Pairings & tee times */
.tee-times { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tee-times li { display: flex; gap: 10px; align-items: baseline; padding: 7px 9px; border-radius: 9px; background: #f7faf8; }
.tee-time { font-weight: 800; color: var(--green-700); font-size: 13px; min-width: 38px; }
.tee-group { font-size: 13.5px; }

@media (max-width: 720px) {
  .site-nav {
    padding: 4px 8px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
    overflow-x: visible;
  }
  .nav-link {
    font-size: 13px;
    padding: 9px 11px;
    border-bottom-width: 2px;
  }
  .detail-vs { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Content pages (The Course, Gallery)
--------------------------------------------------------------------------- */
.page-wrap { max-width: 860px; margin: 26px auto; padding: 0 20px; }
.page-hero {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.page-hero h1 { margin: 0 0 6px; font-size: 28px; }
.page-hero p { margin: 0; color: #d7ece0; font-size: 15px; }
.article { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-top: 18px; }
.article h2 { color: var(--green-900); font-size: 21px; margin: 22px 0 8px; }
.article h2:first-child { margin-top: 0; }
.article p { line-height: 1.65; font-size: 15.5px; margin: 10px 0; }
.article ul { line-height: 1.7; font-size: 15.5px; padding-left: 20px; }

/* Bettors board */
.bettors-board { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.bettor-card {
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(20,96,63,.08); overflow: hidden;
}
.bettor-card.open { border-color: var(--green-300); }
.bettor-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit;
}
.bettor-head:hover { background: #f6faf8; }
.bettor-rank {
  font-weight: 800; color: var(--muted); font-size: 15px; min-width: 22px; text-align: center;
}
.bettor-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bettor-name { font-weight: 800; font-size: 16px; color: #1b2a24; }
.bettor-sub { font-size: 12px; color: var(--muted); }
.bettor-bal { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bettor-tokens { font-weight: 800; font-size: 18px; color: var(--gold); font-variant-numeric: tabular-nums; }
.bettor-net { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bettor-net.up { color: #1f8a5b; }
.bettor-net.down { color: #c0403a; }
.bettor-net.flat { color: var(--muted); }
.bettor-caret { color: var(--muted); font-size: 14px; transition: transform .18s ease; }
.bettor-card.open .bettor-caret { transform: rotate(180deg); }
.bettor-bets {
  border-top: 1px solid #eef1ef; padding: 8px 16px 14px; display: flex; flex-direction: column; gap: 6px;
  background: #fbfdfc;
}
.bet-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 10px; background: #f5f8f6;
}
.bet-line-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bet-line-market { font-size: 12px; color: var(--muted); }
.bet-line-pick { font-weight: 700; font-size: 14px; color: #1b2a24; }
.bet-line-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bet-line-stake {
  font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green-700); font-size: 14px;
}
.bet-status-chip {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.bs-won { background: #d8f2e2; color: #1a7a4d; }
.bs-lost { background: #f6d9d3; color: #b23b30; }
.bs-refunded { background: #ececec; color: #6b6b6b; }
.bs-open { background: #fbf1d8; color: #8a6d1f; }
.article a { color: var(--green-500); font-weight: 600; }
.risk-list { line-height: 1.7; font-size: 15.5px; padding-left: 20px; margin: 10px 0; }
.risk-list li { margin: 8px 0; }
.article.warn { border-left: 5px solid var(--gold); background: #fffdf6; }
.article.warn h2 { color: #8a6d1f; }
.warn-bottom { font-weight: 700; color: var(--green-900); margin-top: 16px; }
.how-more { margin: 10px 0 0; font-size: 14px; }
.how-more a { color: var(--green-500); font-weight: 700; text-decoration: none; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: #f2f8f4; border: 1px solid #dcebe2; border-radius: 12px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--green-900); }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.recap { background: #fff8ea; border: 1px solid #f0dfae; border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.recap h3 { margin: 0 0 6px; color: #8a6d1f; }
.course-banner { margin: 0 0 16px; border-radius: 14px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.course-banner img { display: block; width: 100%; height: clamp(160px, 32vw, 320px); object-fit: cover; }
.course-banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, transparent, rgba(6, 32, 22, .72));
}
.link-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.link-list a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f2f8f4; border: 1px solid #dcebe2; border-radius: 10px; padding: 10px 14px; text-decoration: none;
}
.scorecard { margin: 18px 0; }
.scorecard a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #dcebe2; }
.scorecard img { display: block; width: 100%; height: auto; background: #fff; }
.scorecard figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.video-card { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.video-card video { width: 100%; display: block; background: #000; aspect-ratio: 9 / 16; object-fit: cover; }
.video-card img { width: 100%; display: block; background: #eef3ec; }
.video-card .vcap { padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--green-700); }
.video-feature { margin: 8px auto 22px; max-width: 460px; }
.video-card.featured { position: relative; border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(11,61,46,.22); }
.video-card.featured .vcap { font-size: 15px; text-align: center; }
.feature-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold); color: #3a2a06; font-weight: 800; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.gallery-note { background: #f2f8f4; border: 1px dashed #b7d5c4; border-radius: 12px; padding: 16px 18px; color: var(--muted); }
.host-club { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #eaf4ee; text-align: center; }
.host-club p { color: #d7ece0; }
.host-club a { color: #a9e6c4; }
.host-logo { display: block; max-width: 220px; width: 60%; margin: 0 auto 6px; }
.back-link { display: inline-block; margin-top: 18px; color: var(--green-500); font-weight: 600; text-decoration: none; }

@media (max-width: 620px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Honoree page
--------------------------------------------------------------------------- */
.honoree-lead { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 26px; align-items: start; }
.honoree-portrait { margin: 0; border-radius: 14px; overflow: hidden; position: relative; box-shadow: var(--shadow); background: #eef3ec; }
.honoree-portrait img { display: block; width: 100%; height: auto; filter: saturate(1.02); }
.honoree-portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px; color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .3px;
  background: linear-gradient(180deg, transparent, rgba(6, 32, 22, .78));
}
.honoree-intro h2 { margin-top: 0; }
.honoree-kicker {
  margin: 2px 0 12px !important; color: var(--gold); font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; font-size: 12.5px !important;
}
.honoree-trophy { text-align: left; }
.honoree-trophy h2 { color: #fff; }
.honoree-trophy p { color: #d7ece0; }
.honoree-trophy strong { color: #fff; }
.honoree-cta {
  display: inline-block; margin-top: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--gold); color: #3a2a05 !important; font-weight: 700; text-decoration: none;
}
.honoree-cta:hover { filter: brightness(1.05); }

@media (max-width: 620px) {
  .honoree-lead { grid-template-columns: 1fr; }
  .honoree-portrait { max-width: 320px; margin: 0 auto; }
}

/* Live Scores (18Birdies) */
.nav-live { color: var(--gold) !important; font-weight: 700; }
.live-scores-card {
  display: block; text-decoration: none; color: #eaf4ee;
  background: linear-gradient(120deg, var(--green-900), var(--green-500));
  border: 1px solid rgba(255, 255, 255, .12);
}
.live-scores-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: #d7ece0;
}
.live-scores-card .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff5a5a;
  box-shadow: 0 0 0 0 rgba(255, 90, 90, .7); animation: livePulse 1.8s infinite;
}
.live-scores-title { display: block; margin: 8px 0 4px; font-size: 16.5px; font-weight: 700; color: #fff; }
.live-scores-note { display: block; font-size: 12.5px; color: #cfe6d8; line-height: 1.5; }
.live-scores-card:hover { filter: brightness(1.05); }

/* ---------------------------------------------------------------------------
   Clubhouse live-feed page
--------------------------------------------------------------------------- */
.feed-card { padding: 22px; }
.feed-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feed-topline h2 { margin: 0; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: #eef8f1; border: 1px solid #cfe9d9; color: var(--green-700);
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(31,138,91,.6); animation: livePulse 2s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(31,138,91,.55); }
  70% { box-shadow: 0 0 0 7px rgba(31,138,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,138,91,0); }
}

.feed-compose { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.feed-compose textarea {
  width: 100%; resize: vertical; border: 1px solid #d8e2dc; border-radius: 12px;
  padding: 11px 13px; font: inherit; font-size: 14.5px; background: #fbfdfb;
}
.feed-compose textarea:focus { outline: none; border-color: var(--green-300); }
.feed-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-updated { font-size: 12px; color: var(--muted); }

.linklike { background: none; border: none; padding: 0; color: var(--green-500); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

.feed-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip {
  background: #f2f8f4; border: 1px solid #dcebe2; color: var(--green-700);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.feed { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.feed-item {
  display: flex; gap: 12px; padding: 13px 14px;
  background: #fbfdfb; border: 1px solid #eaf0ec; border-radius: 13px;
  border-left: 4px solid #dbe6e0;
}
.feed-item.feed-bet { border-left-color: var(--gold); background: #fffdf6; }
.feed-item.feed-caddie { border-left-color: var(--green-500); background: #fff8ea; }
.feed-item.feed-banter { border-left-color: #2f8f6b; background: #f2fbf6; }
.feed-icon { font-size: 20px; line-height: 1.2; flex: none; }
.feed-body { flex: 1; min-width: 0; }
.feed-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-name { font-weight: 800; color: var(--green-900); font-size: 14px; }
.feed-chip { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; border-radius: 6px; padding: 2px 7px; }
.chip-chat { background: #e7f4ec; color: var(--green-700); }
.chip-bet { background: #fbf1d8; color: #7a5c00; }
.chip-caddie { background: #eaf6ef; color: var(--green-700); }
.chip-banter { background: #d8f3e5; color: #1f6b4d; }
.feed-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.feed-text { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.feed-caddie .feed-text { font-size: 14px; }

.summary-card .bet-status { margin: 4px 0 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 4px; }
.summary-cell { background: #f2f8f4; border: 1px solid #dcebe2; border-radius: 12px; padding: 12px; text-align: center; }
.summary-n { font-size: 20px; font-weight: 800; color: var(--green-900); font-variant-numeric: tabular-nums; }
.summary-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.caddie-latest { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin: 6px 0 4px; }

@media (max-width: 720px) {
  .feed-topline { flex-direction: row; }
}

/* ---------------------------------------------------------------------------
   Social wall page
--------------------------------------------------------------------------- */
.social-compose { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.social-compose .field { display: flex; flex-direction: column; gap: 5px; }
.social-compose .field > span { font-size: 12.5px; font-weight: 700; color: var(--green-700); }
.social-compose input {
  width: 100%; border: 1px solid #d8e2dc; border-radius: 12px;
  padding: 11px 13px; font: inherit; font-size: 14.5px; background: #fbfdfb;
}
.social-compose input:focus { outline: none; border-color: var(--green-300); }
.social-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.social-platforms { font-size: 12px; }

.social-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }

.social-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.social-empty { grid-column: 1 / -1; }
.social-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fbfdfb; border: 1px solid #eaf0ec; border-radius: 14px;
  border-top: 4px solid #dbe6e0; padding: 13px 14px; min-width: 0;
}
.pf-instagram { border-top-color: #d6249f; }
.pf-youtube { border-top-color: #ff0000; }
.pf-tiktok { border-top-color: #111; }
.pf-x { border-top-color: #111; }
.pf-facebook { border-top-color: #1877f2; }

.social-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.social-badge { font-size: 12px; font-weight: 800; color: var(--green-900); }
.social-del {
  background: none; border: none; color: var(--muted); font-size: 15px; line-height: 1;
  cursor: pointer; padding: 2px 4px; border-radius: 6px;
}
.social-del:hover { color: #b3261e; background: #fbeceb; }

.social-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.social-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; font-size: 18px;
}

.social-caption { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); word-break: break-word; }
.social-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.social-who { display: flex; flex-direction: column; min-width: 0; }
.social-name { font-weight: 700; font-size: 13px; color: var(--green-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-time { font-size: 11.5px; color: var(--muted); }
.social-view { flex: none; font-size: 12.5px; font-weight: 700; color: var(--green-500); text-decoration: none; white-space: nowrap; }
.social-view:hover { text-decoration: underline; }

.social-how { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }

@media (max-width: 620px) {
  .social-wall { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Reactions (clubhouse feed + social wall)
--------------------------------------------------------------------------- */
.reactions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.social-card .reactions { margin-top: auto; padding-top: 2px; }
.react-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #e2eae4; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13px;
  line-height: 1.4; cursor: pointer; transition: background .12s, border-color .12s, transform .06s;
}
.react-btn:hover { background: #f2f7f3; border-color: var(--green-300); }
.react-btn:active { transform: scale(.94); }
.react-btn.active { background: #eafaf0; border-color: var(--green-500); }
.react-emoji { font-size: 14px; line-height: 1; }
.react-count { font-weight: 700; font-size: 12.5px; color: var(--green-900); }

/* ---------------------------------------------------------------------------
   Home hero (crest showcase)
--------------------------------------------------------------------------- */
.home-hero {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(120deg, #ffffff, #f2f8f4);
  border: 1px solid #e4ede7; border-radius: 16px;
  padding: 18px 22px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.home-hero-crest {
  width: 100px; height: 100px; border-radius: 50%; flex: none;
  background: #fff; padding: 5px; object-fit: contain;
  border: 2px solid var(--gold); box-shadow: 0 3px 12px rgba(11, 61, 46, .18);
}
.home-hero-kicker {
  margin: 0 0 4px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--green-700);
}
.home-hero-title { margin: 0; font-size: 23px; font-weight: 800; color: var(--green-900); line-height: 1.14; }
.home-hero-sub { margin: 7px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 520px) {
  .home-hero { gap: 14px; padding: 15px 16px; }
  .home-hero-crest { width: 74px; height: 74px; }
  .home-hero-title { font-size: 18px; }
  .home-hero-sub { font-size: 12.5px; }
}

