/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #1a5c2e;
  --green-mid:    #2e7d4f;
  --green-light:  #4caf76;
  --green-pale:   #e8f5ee;
  --gold:         #d4a017;
  --gold-light:   #f5e6a3;
  --red:          #c0392b;
  --blue:         #2471a3;
  --gray-50:      #fafbfa;
  --gray-100:     #f5f6f5;
  --gray-200:     #e8eae8;
  --gray-300:     #cdd3cd;
  --gray-400:     #9eaaa0;
  --gray-500:     #77857b;
  --gray-700:     #3d4a42;
  --white:        #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10);
  --shadow-md:    0 4px 12px rgba(0,0,0,.12);
  --radius:       8px;
  --radius-lg:    12px;
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-100);
  color: var(--gray-700);
  line-height: 1.5;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top Nav ──────────────────────────────────────────────────────────────── */
.topnav {
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-brand { font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: .01em; display:flex; align-items:center; gap:.5rem; }
.nav-logo  { height: 36px; width: auto; object-fit: contain; }
.nav-links  { display: flex; align-items: center; gap: 1.2rem; font-size: .9rem; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--gold); }
.nav-user      { color: rgba(255,255,255,.65); font-size: .85rem; }
.nav-logout    { color: rgba(255,255,255,.75) !important; font-size: .85rem; }
.nav-hamburger { display: none; }

/* ── Page ─────────────────────────────────────────────────────────────────── */
.page-content { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.page-title   { font-size: 1.5rem; font-weight: 700; color: var(--green-dark); margin-bottom: 1.25rem; }
.section-title { font-size: 1.1rem; font-weight: 600; color: var(--green-dark); margin: 1.5rem 0 .75rem; }

/* ── Auth Page ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.auth-logo    { font-size: 3rem; margin-bottom: .5rem; }
.auth-title   { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); }
.auth-subtitle { color: var(--gray-400); margin-bottom: 1.75rem; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group  { text-align: left; margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .65rem .75rem;
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46,125,79,.12);
}
.form-row    { display: flex; gap: .75rem; }
.form-row .form-group { flex: 1; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--green-mid); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-400); color: var(--white); }
.btn-gold      { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b8860f; }
.btn-danger    { background: var(--red); color: var(--white); }
.btn-ghost     { background: transparent; color: var(--green-mid); border: 1.5px solid var(--green-mid); }
.btn-ghost:hover { background: var(--green-pale); }
.btn-block     { display: flex; width: 100%; }
.btn-sm        { padding: .4rem .85rem; font-size: .82rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--gray-200);
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--green-dark); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 600px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green-mid);
  text-align: center;
}
.dash-card--tournament { border-top-color: var(--gold); }
.dash-card--scorecard  { border-top-color: var(--blue); }
.dash-card__icon { font-size: 2.5rem; margin-bottom: .5rem; }
.dash-card h2    { font-size: 1.2rem; font-weight: 700; color: var(--green-dark); margin-bottom: .4rem; }
.dash-meta       { font-size: .85rem; color: var(--gray-400); margin-bottom: .25rem; }
.dash-actions    { margin-top: 1.25rem; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1rem; }
.alert-error   { background: #fde8e8; color: var(--red); border: 1px solid #f5c6c6; }
.alert-success { background: #e8f5ee; color: var(--green-dark); border: 1px solid #b8ddc7; }
.alert-info    { background: #e8f0f8; color: var(--blue); border: 1px solid #b8ceea; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th {
  background: var(--green-dark);
  color: var(--white);
  text-align: left;
  padding: .6rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.data-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--green-pale); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .center { text-align: center; }

/* ── Handicap History Table ───────────────────────────────────────────────── */
.hcp-history-table thead th {
  vertical-align: bottom;
}
.hcp-history-table thead th .hcp-col-labels {
  display: flex;
  justify-content: space-between;
  font-size: .6rem;
  font-weight: 500;
  margin-top: .2rem;
  border-top: 1px solid rgba(255,255,255,.3);
  padding-top: .2rem;
  gap: .25rem;
}
.hcp-legend-in  { color: rgba(255,255,255,.55); flex: 1; text-align: left; }
.hcp-legend-op  { color: rgba(255,255,255,.9); flex: 1; text-align: center; }
.hcp-legend-out { color: rgba(255,255,255,.55); flex: 1; text-align: right; }
.hcp-history-table thead th.hcp-wk-col,
.hcp-week-cell { border-left: 1px solid var(--gray-200) !important; }
.hcp-week-cell { vertical-align: middle; padding: .35rem .5rem !important; }
.hcp-cell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .2rem;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hcp-cell-row .hcp-in  { color: var(--gray-400); min-width: 1.4rem; text-align: left; }
.hcp-cell-row .hcp-op  { font-weight: 700; min-width: 2rem; text-align: center; }
.hcp-cell-row .hcp-op.positive { color: var(--red, #c0392b); }
.hcp-cell-row .hcp-op.negative { color: var(--green-dark); }
.hcp-cell-row .hcp-out { color: var(--green-dark); font-weight: 600; min-width: 1.4rem; text-align: right; }

/* ── Scorecard / Hole Grid ────────────────────────────────────────────────── */
.scorecard-wrap { overflow-x: auto; }
table.scorecard {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.scorecard th, .scorecard td {
  border: 1px solid var(--gray-200);
  text-align: center;
  padding: .45rem .5rem;
  min-width: 36px;
}
.scorecard th { background: var(--green-dark); color: var(--white); font-size: .75rem; }
.scorecard .row-label { text-align: left; font-weight: 600; white-space: nowrap; padding-left: .75rem; min-width: 80px; }
.scorecard td.player-cell { white-space: normal; min-width: 72px; max-width: 80px; padding: .35rem .4rem; }
.scorecard .total-col { background: var(--green-pale); font-weight: 700; }
.scorecard thead th.total-col { background: var(--green-dark); color: var(--white); }
.scorecard .par-row td { background: #f0f7f4; color: var(--green-dark); font-weight: 600; }
.scorecard .hcp-row td { background: var(--gray-100); color: var(--gray-400); font-size: .75rem; }
.scorecard .score-cell { font-weight: 700; }
.scorecard .net-cell   { color: var(--green-mid); }
.scorecard .strokes-dot::after { content: '•'; color: var(--gold); font-size: .6rem; vertical-align: super; }

/* ── Score Entry (mobile) ─────────────────────────────────────────────────── */
.score-entry-page { max-width: 480px; margin: 0 auto; }
.match-banner {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.match-banner .team-score { font-size: 1.8rem; font-weight: 800; }
.match-banner .vs { font-size: .85rem; opacity: .75; }
.match-banner .team-name { font-size: .82rem; opacity: .85; }

.hole-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hole-pip {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  background: var(--white);
  color: var(--gray-700);
}
.hole-pip.scored  { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }
.hole-pip.current { border-color: var(--gold); background: var(--gold-light); }

.hole-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.hole-info {
  display: flex; gap: 1rem; margin-bottom: 1.25rem;
  justify-content: center; flex-wrap: wrap;
}
.hole-stat { text-align: center; }
.hole-stat .val  { font-size: 1.4rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.hole-stat .lbl  { font-size: .72rem; color: var(--gray-400); text-transform: uppercase; }

.player-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.player-score-row:last-child { border-bottom: none; }
.player-info { flex: 1; }
.player-info .name  { font-weight: 600; }
.player-info .strokes { font-size: .78rem; color: var(--gold); }
.score-controls { display: flex; align-items: center; gap: .6rem; }
.score-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.score-btn:hover { background: var(--gray-400); color: var(--white); }
.score-display {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  font-size: 1.4rem; font-weight: 800;
  text-align: center;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.score-display.is-birdie { border-color: var(--green-mid); color: var(--green-mid); }
.score-display.is-eagle  { border-color: var(--gold); color: var(--gold); }
.score-display.is-bogey  { border-color: var(--gray-400); }
.score-display.is-double { border-color: var(--red); color: var(--red); }

.hole-nav-btns { display: flex; gap: .75rem; margin-top: .75rem; }
.hole-nav-btns .btn { flex: 1; }

/* ── Standings ────────────────────────────────────────────────────────────── */
.standings-row td:first-child { font-weight: 700; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: .75rem; font-weight: 700;
}
.rank-1 { background: var(--gold); color: var(--white); }
.rank-2 { background: var(--gray-400); color: var(--white); }
.rank-3 { background: #cd7f32; color: var(--white); }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: .6rem;
  margin-bottom: 1.25rem;
}
.tab-btn {
  padding: .42rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.tab-btn:hover { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-400); }
.tab-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Sub-nav ──────────────────────────────────────────────────────────────── */
.subnav {
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  padding: .6rem .75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.subnav a {
  padding: .4rem .85rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: .88rem; font-weight: 500;
  color: var(--gray-700);
}
.subnav a:hover { background: var(--green-pale); color: var(--green-dark); text-decoration: none; }
.subnav a.active { background: var(--green-dark); color: var(--white); }

/* ── Match Result ─────────────────────────────────────────────────────────── */
.result-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.result-team { text-align: center; }
.result-score { font-size: 2rem; font-weight: 900; text-align: center; }
.win-highlight { color: var(--green-mid); }
.loss-dim      { color: var(--gray-400); }
.pts-breakdown { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.pts-chip {
  padding: .25rem .6rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--gray-200);
  color: var(--gray-700);
}
.pts-chip.win { background: var(--green-pale); color: var(--green-dark); }
.pts-chip.tie { background: var(--gold-light); color: #7a5800; }

/* ── Compact Matchup Row (standings recent results) ───────────────────────── */
.matchup-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .25rem .75rem;
  align-items: center;
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--gray-100);
}
.matchup-row:last-of-type { border-bottom: none; }
.mr-left  { text-align: right; }
.mr-right { text-align: left; }
.mr-name {
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.2;
  display: block;
}
.mr-win  .mr-name { color: var(--green-dark); }
.mr-loss .mr-name { color: var(--gray-400); }
.mr-players {
  font-size: .72rem;
  color: var(--gray-400);
  display: block;
  margin-top: .05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch;
}
.mr-left  .mr-players { margin-left: auto; }
.mr-center { text-align: center; }
.mr-score-line {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.mr-s-win  { color: var(--green-mid); }
.mr-s-loss { color: var(--gray-400); }
.mr-dash   { color: var(--gray-300); margin: 0 .2rem; font-weight: 400; }
.mr-chips {
  display: flex;
  gap: .2rem;
  justify-content: center;
  margin-top: .25rem;
  flex-wrap: nowrap;
}
.mr-chip {
  font-size: .67rem;
  font-weight: 600;
  padding: .1rem .35rem;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-500);
  white-space: nowrap;
}
.mr-chip.win { background: var(--green-pale); color: var(--green-dark); }
.mr-chip.tie { background: var(--gold-light); color: #7a5800; }

/* ── Payout Cards ─────────────────────────────────────────────────────────── */
.payout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.payout-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.payout-card .category { font-size: .78rem; color: var(--gray-400); text-transform: uppercase; font-weight: 600; }
.payout-card .amount   { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); }
.payout-card .winner   { font-size: .9rem; font-weight: 600; margin-top: .25rem; }

/* ── Admin ────────────────────────────────────────────────────────────────── */
.admin-panel { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.admin-section { margin-bottom: 2rem; }
.admin-section h3 { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: .75rem; border-bottom: 2px solid var(--green-pale); padding-bottom: .4rem; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form .form-group { margin-bottom: 0; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-muted    { color: var(--gray-400); }
.text-green    { color: var(--green-mid); }
.text-gold     { color: var(--gold); }
.text-red      { color: var(--red); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.fw-bold       { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-green  { background: var(--green-pale); color: var(--green-dark); }
.badge-gold   { background: var(--gold-light); color: #7a5800; }
.badge-gray   { background: var(--gray-200); color: var(--gray-700); }
.badge-red    { background: #fde8e8; color: var(--red); }

/* ── Sticky first column (for wide scorecards) ────────────────────────────── */
.scorecard-sticky thead th:first-child,
.scorecard-sticky tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--white);
    box-shadow: 2px 0 4px rgba(0,0,0,.07);
}
.scorecard-sticky thead th:first-child {
    background: var(--green-dark);
    z-index: 3;
}
.scorecard-sticky .par-row td:first-child { background: #f0f7f4; }
.scorecard-sticky .hcp-row td:first-child { background: var(--gray-100); }
.scorecard-sticky tr:hover td:first-child  { background: var(--green-pale); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-content  { padding: 1rem .6rem 2rem; }
  .topnav     { padding: .55rem .75rem; flex-wrap: wrap; gap: 0; }
  .nav-brand  { font-size: .97rem; flex: 1; }

  /* Hamburger button */
  .nav-hamburger {
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 6px;
    color: #fff;
    font-size: 1.15rem;
    width: 36px; height: 36px;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Nav-links: hidden panel that drops below the brand row when open */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    gap: 0;
    padding: .3rem 0 .1rem;
    border-top: 1px solid rgba(255,255,255,.15);
    margin-top: .4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block !important;
    padding: .65rem .25rem;
    font-size: .95rem;
    color: rgba(255,255,255,.9) !important;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-bottom-width: 1px !important; /* reset gold underline */
  }
  .nav-links a:last-child { border-bottom: none !important; }
  .nav-links a:hover, .nav-links a.active {
    color: #fff !important;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    text-decoration: none;
    border-bottom-color: transparent !important;
  }
  .nav-user { display: inline !important; color: rgba(255,255,255,.75); font-size: .9rem; }

  /* Subnav wraps into rows on mobile — no sideways scrolling */
  .subnav {
    flex-wrap: wrap;
    gap: .3rem;
    padding: .45rem .5rem;
  }
  .subnav a { padding: .3rem .6rem; font-size: .8rem; white-space: nowrap; }



  /* Page titles & layout */
  .page-title   { font-size: 1.2rem; }
  .section-title { font-size: 1rem; }
  .flex-between  { flex-wrap: wrap; gap: .5rem; }

  /* Cards */
  .card         { padding: .9rem .85rem; }
  .card-header  { flex-wrap: wrap; gap: .4rem; }

  /* Tables */
  .data-table th, .data-table td { padding: .45rem .4rem; font-size: .8rem; }

  /* Hole pips slightly smaller so 9 fit on one row */
  .hole-pip  { width: 28px; height: 28px; font-size: .75rem; }
  .hole-nav  { gap: .35rem; }

  /* Admin inline forms stack */
  .inline-form { flex-direction: column; }
  .form-row    { flex-direction: column; }

  /* Round selector buttons wrap nicely */
  .btn-sm { padding: .35rem .7rem; font-size: .8rem; }
}

@media (max-width: 480px) {
  .page-content  { padding: .75rem .5rem 2rem; }
  .topnav        { padding: .55rem .6rem; }
  .nav-brand     { font-size: .92rem; }

  /* Dashboard */
  .payout-grid   { grid-template-columns: 1fr; }
  .dash-actions  { flex-direction: column; }
  .dash-actions .btn { width: 100%; justify-content: center; }

  /* Score entry card padding */
  .score-btn     { width: 42px; height: 42px; font-size: 1.4rem; }
  .score-display { width: 52px; height: 52px; font-size: 1.5rem; }
}

/* Round selector bar (shared across tournament pages) */
.round-sel-bar { display:flex; align-items:center; gap:.75rem; background:#fff;
                 border-radius:var(--radius-lg); box-shadow:var(--shadow-sm);
                 padding:.65rem 1rem; margin-bottom:1rem; flex-wrap:wrap; }
.round-sel-label { font-weight:600; font-size:.9rem; color:var(--gray-700); white-space:nowrap; }
.round-sel { flex:1; min-width:0; max-width:400px; padding:.4rem .75rem;
             border-radius:6px; border:1.5px solid var(--gray-200); font-size:.9rem; background:#fff; }

/* ── Player Profile ──────────────────────────────────────────────────────── */
.nav-avatar { width:30px; height:30px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,255,255,.4); vertical-align:middle; }
.nav-user-link { display:flex; align-items:center; gap:.45rem; text-decoration:none; color:rgba(255,255,255,.65); font-size:.85rem; }
.nav-user-link:hover { color:#fff; text-decoration:none; }
.nav-user-link .nav-user { /* inherits existing nav-user styles */ }

/* ── Cowbell overlay ─────────────────────────────────────────────────────── */
@keyframes cowbell-fadein { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
