/* CSS Design System for settlethecard.golf */

:root {
  /* Color Palette - Premium Country Club Aesthetic */
  --bg-cream-canvas: #FAF8F2;
  --bg-cream-card: #F2EDE2;
  --bg-cream-card-light: #FAF8F5;
  --color-forest: #14321A;
  --color-forest-medium: #1C4825;
  --color-forest-light: #2A6E3B;
  --color-gold: #C2A26A;
  --color-gold-dark: #A5844D;
  --color-charcoal: #2C2B28;
  --color-muted: #7E7C74;
  --color-border: #E3DCCF;
  --color-white: #FFFFFF;
  
  /* Soft Golf Score Indicators */
  --bg-eagle: #DDF0FF;
  --color-eagle: #0D47A1;
  --bg-birdie: #E5F6EB;
  --color-birdie: #1E6B3E;
  --bg-par: transparent;
  --color-par: var(--color-charcoal);
  --bg-bogey: #FDF1ED;
  --color-bogey: #C93B2B;
  --bg-double-bogey: #FAF0F2;
  --color-double-bogey: #9E1B32;

  /* Press heat / flame (deep warm red — with bogey palette, not maroon) */
  --color-press-flame: #b0382d;
  --color-press-flame-soft: #c94a3e;

  /* Handicap stroke dots / focus bumps (blue); cell tint + net subscript stay gold */
  --color-stroke-bump: #1e6fd9;

  /* Roster slot colors (Setup order: player 1–4) — scorecards, settle match headers, badges */
  --stc-p1-fg: #8a6a24;
  --stc-p2-fg: #5a6570;
  --stc-p3-fg: #1a6b3c;
  --stc-p4-fg: #5c4a7a;
  /* Net aggregate pill: mix roster hue into this base */
  --stc-net-badge-tint-base: #e6ebe3;

  /* Live Match Standings (forest card): dollar amounts — high-contrast green, not roster hues */
  --stc-live-standings-money: #6dffb5;
  --stc-live-standings-money-shadow: 0 0 14px rgba(0, 0, 0, 0.45);
  /* Side-action rows on mint/cream panels in the same card */
  --stc-live-standings-money-on-light: #047857;

  /* Layout Utility Values */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(28, 27, 24, 0.05);
  --shadow-md: 0 8px 16px rgba(28, 27, 24, 0.08);
  --shadow-lg: 0 16px 32px rgba(28, 27, 24, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Premium Midnight Clubhouse Dark Mode Override Colors */
body.dark-mode {
  --bg-cream-canvas: #0C120E;       /* Pitch-black with premium deep clubhouse slate-emerald backing */
  --bg-cream-card: #152219;         /* Luxurious deep slate-green card */
  --bg-cream-card-light: #1D2E23;   /* High-end forest highlight panel */
  --color-forest: #EAF5EC;          /* High contrast soft-white text */
  --color-forest-medium: #A2D9B1;   /* Pale mint-gold link headers */
  --color-forest-light: #52B273;    /* Bright vibrant green */
  --color-gold: #D4AF37;            /* True metallic clubhouse gold */
  --color-gold-dark: #FFD700;       /* Luminous gold text */
  --color-charcoal: #F5F5F5;        /* Light silver body text */
  --color-muted: #8E9992;           /* Muted slate-gray */
  --color-border: #1C2B20;          /* Subtle deep slate borders */
  --color-white: #121A15;           /* Opaque slate-green backing replacing pure white */

  /* Soft score indicators adapted for dark mode */
  --bg-eagle: #0D3C61;
  --color-eagle: #99CCFF;
  --bg-birdie: #143A23;
  --color-birdie: #7CDB95;
  --bg-bogey: #471A15;
  --color-bogey: #FFA59C;
  --bg-double-bogey: #3D0D19;
  --color-double-bogey: #FF8F9E;

  --color-stroke-bump: #5ca8ff;

  /* Brighter roster accents on deep green cards (live match / settle) */
  --stc-p1-fg: #f5e6a8;
  --stc-p2-fg: #eef6fb;
  --stc-p3-fg: #a8ffbf;
  --stc-p4-fg: #efe2ff;
  --stc-net-badge-tint-base: #0d1810;
}

body.dark-mode .app-header {
  background-color: rgba(12, 18, 14, 0.95) !important; /* Same as .app-nav in dark mode */
  border-bottom-color: var(--color-border) !important;
}

body.dark-mode .app-nav {
  background-color: rgba(12, 18, 14, 0.95) !important;
  border-top-color: var(--color-border) !important;
}

body.dark-mode #theme-toggle-btn {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: var(--color-gold) !important;
}

/* Premium Midnight Clubhouse Dark Mode Structural Overrides */
body.dark-mode .scorecard-table th.col-player, 
body.dark-mode .scorecard-table td.cell-player-info {
  background-color: var(--bg-cream-card) !important;
}

body.dark-mode .scorecard-table td.cell-score {
  background-color: var(--bg-cream-card-light) !important;
  border-color: var(--color-border) !important;
}

/* Premium Dark Mode Scorecard Headers & Totals */
body.dark-mode .scorecard-table th {
  background-color: var(--bg-cream-card) !important;
  color: var(--color-gold) !important;
  border-bottom: 2.5px solid var(--color-border) !important;
}

body.dark-mode .scorecard-table th, 
body.dark-mode .scorecard-table td {
  border-bottom-color: var(--color-border) !important;
}

body.dark-mode .scorecard-table:not(.scorecard-table-vertical) td:last-child {
  background-color: var(--bg-cream-card) !important;
  color: var(--color-charcoal) !important;
  border-left: 1px solid var(--color-border) !important;
  font-weight: 700 !important;
}

body.dark-mode .scorecard-table:not(.scorecard-table-vertical) tr.total-row td:last-child {
  background-color: var(--bg-cream-card-light) !important;
}

/* ==========================================================
   ANTI-WASHOUT INLINE PROTECTION & TEAM HIGHLIGHTS
   ========================================================== */

/* Catch and override light green backgrounds injected by JS strings */
body.dark-mode .scorecard-table tr.row-team-1 td.cell-player-info,
body.dark-mode .scorecard-table tr.bestball-row.team-1-subtotal,
body.dark-mode tr[style*="background-color: #EAF5EC"],
body.dark-mode tr[style*="background-color: #eaf5ec"],
body.dark-mode td[style*="background-color: #EAF5EC"] {
  background-color: #11331A !important; /* Deep forest moss moss */
  color: #A2D9B1 !important; /* Crisp mint text */
}
body.dark-mode .scorecard-table tr.bestball-row.team-1-subtotal td.cell-player-info {
  background-color: #174223 !important;
  border-right: 2px solid #2A6E3B !important;
}

/* Fix Leader and Segment Winner sticky name cards from washing out */
body.dark-mode .scorecard-table tr.is-leader td.cell-player-info,
body.dark-mode .scorecard-table tr.row-winning-front td.cell-player-info,
body.dark-mode .scorecard-table tr.row-winning-back td.cell-player-info {
  background-color: #14271A !important; /* Deep luxury clubhouse green slot */
  color: #A2D9B1 !important; /* High contrast mint text */
}

/* Specific background adjustment for the overall tournament/round winner */
body.dark-mode .scorecard-table tr.row-winning-total td.cell-player-info {
  background-color: #1B3523 !important; /* Slightly distinct deeper green slot */
  color: var(--color-gold) !important; /* Give the overall winner high-visibility gold text */
}

/* Ensure child text elements inside winning player cells retain absolute visibility */
body.dark-mode .scorecard-table tr.is-leader td.cell-player-info .player-info-name,
body.dark-mode .scorecard-table tr.is-leader td.cell-player-info .player-info-hcp,
body.dark-mode .scorecard-table tr.is-leader td.cell-player-info .scorecard-wager-summary {
  color: inherit !important;
}

/* Maintain high-visibility left accent borders for wins without washing backgrounds */
body.dark-mode .scorecard-table tr.row-winning-front td.cell-player-info {
  border-left: 4.5px solid #2A6E3B !important;
}
body.dark-mode .scorecard-table tr.row-winning-back td.cell-player-info {
  border-left: 4.5px solid var(--color-gold) !important;
}
body.dark-mode .scorecard-table tr.row-winning-total td.cell-player-info {
  border-left: 4.5px solid var(--color-gold-dark) !important;
}

/* Catch and override light amber backgrounds injected by JS strings */
body.dark-mode .scorecard-table tr.row-team-2 td.cell-player-info,
body.dark-mode .scorecard-table tr.bestball-row.team-2-subtotal,
body.dark-mode tr[style*="background-color: #FCF5E8"],
body.dark-mode tr[style*="background-color: #fcf5e8"],
body.dark-mode td[style*="background-color: #FCF5E8"] {
  background-color: #2D200E !important; /* Deep matte charcoal amber */
  color: #F3DAB1 !important; /* Muted gold text */
}
body.dark-mode .scorecard-table tr.bestball-row.team-2-subtotal td.cell-player-info {
  background-color: #3B2B15 !important;
  border-right: 2px solid var(--color-gold) !important;
}

/* Safeguard hardcoded text color definitions in Contribution rows */
body.dark-mode td[style*="color:#1C4825"],
body.dark-mode td[style*="color: #1C4825"] {
  color: #A2D9B1 !important;
}
body.dark-mode td[style*="color:var(--color-gold-dark)"],
body.dark-mode td[style*="color: var(--color-gold-dark)"] {
  color: var(--color-gold) !important;
}

/* Fix Vegas / compact special rows from glowing white */
body.dark-mode tr.bestball-row[style*="background-color"],
body.dark-mode tr.vegas-compact-row {
  background-color: rgba(212, 175, 55, 0.03) !important;
}

/* Fix bestball contribution outline grid cells */
body.dark-mode .scorecard-table td.cell-score.is-bestball-used {
  outline: 2px solid var(--color-forest-light) !important;
  background-color: rgba(82, 178, 115, 0.08) !important;
}

/* Settle Tab Raw Balance Tables */
body.dark-mode .raw-balance-table td {
  background-color: var(--bg-cream-card) !important;
  border-bottom-color: var(--color-border) !important;
  color: var(--color-charcoal) !important;
}

/* Matrix / ledger money: sign colors must win over default td color */
body.dark-mode .raw-balance-table td.pos-money {
  color: var(--color-birdie) !important;
}
body.dark-mode .raw-balance-table td.neg-money {
  color: var(--color-bogey) !important;
}
body.dark-mode .raw-balance-table td.zero-money {
  color: var(--color-charcoal) !important;
}

body.dark-mode .raw-balance-table tbody tr:hover td {
  background-color: var(--bg-cream-card-light) !important;
}

body.dark-mode .raw-balance-table th {
  background-color: #152219 !important;
  color: var(--color-gold) !important;
  border-bottom: 2px solid var(--color-gold) !important;
}

/* Score Entry Numpad Base Styling Overrides */
body.dark-mode .num-btn, 
body.dark-mode .dot-toggle-btn {
  background-color: var(--bg-cream-card-light) !important;
  border-color: var(--color-border) !important;
  color: var(--color-charcoal) !important;
}

body.dark-mode .num-btn:active, 
body.dark-mode .dot-toggle-btn:active {
  background-color: var(--bg-cream-card) !important;
  border-color: var(--color-gold) !important;
}

/* Deep Clubhouse Green Elements & Text Contrast Fixes */
body.dark-mode .btn-primary, 
body.dark-mode .btn.btn-done, 
body.dark-mode .bg-dark-green, 
body.dark-mode .course-table th, 
body.dark-mode .segment-btn.active, 
body.dark-mode .active-badge, 
body.dark-mode .drawer-score-bubble {
  background-color: #143A23 !important;
  color: #EAF5EC !important;
  border-color: #2A6E3B !important;
}

body.dark-mode .text-forest {
  color: #A2D9B1 !important;
}

/* Dynamic color transitions for premium feels */
body, .view-card, .col-player, .cell-player-info, button, input, select, textarea, .app-header, .app-nav {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, fill 0.3s ease;
}

/* Base Settings & Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #1C2B21; /* Deep forest outside container for desktop wrapper */
  color: var(--color-charcoal);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  overflow-x: hidden;
}

/* App Shell Container (max-width mobile frame centered on desktop) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(30,63,32,0.15) 0%, rgba(0,0,0,0) 80%);
  z-index: -1;
  pointer-events: none;
}

/* Mobile Wrapper */
body > .app-header,
body > .app-main,
body > .app-nav,
body > .drawer-overlay {
  width: 100%;
  max-width: 600px;
}

/* Perfect alignment when wrapper container is used */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-cream-canvas);
}

.app-header {
  position: fixed;
  top: 0;
  z-index: 100;
  height: 60px;
  background-color: rgba(20, 50, 26, 0.98); /* Match bottom tray (.app-nav) */
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.app-header .logo-text {
  color: rgba(255, 255, 255, 0.92);
}

.app-header .logo-text span {
  color: var(--color-gold);
}

.app-header .logo-icon {
  color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 162, 106, 0.45);
}

.app-header .icon-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--color-gold) !important;
}

.app-header .icon-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stc-app-version {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(194, 162, 106, 0.55);
  margin-left: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.3rem;
  color: var(--color-forest-medium);
  background-color: var(--bg-cream-card);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-forest);
}

.logo-text span {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-gold-dark);
}

.app-main {
  flex: 1;
  padding: 80px 16px 90px 16px; /* Header & Nav pad */
  overflow-y: auto;
  width: 100%;
}

/* Scorecard tab: slightly slimmer header bar; title uses same typography as Setup / Settle (.app-header .logo-text rules) */
body.scorecard-immersive .app-header {
  height: 52px;
  padding: 0 12px 0 14px;
  border-bottom-width: 1px;
}

body.scorecard-immersive .header-logo {
  gap: 8px;
}

body.scorecard-immersive .app-header .logo-icon {
  width: 28px;
  height: 28px;
}

body.scorecard-immersive .header-actions {
  gap: 6px;
}

body.scorecard-immersive .app-header .icon-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  min-height: 34px;
}

body.scorecard-immersive .app-main {
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

/* Nav Bar Fixed Bottom */
.app-nav {
  position: fixed;
  bottom: 0;
  z-index: 100;
  height: 70px;
  background-color: rgba(20, 50, 26, 0.98); /* Deep forest background for nav */
  border-top: 2px solid var(--color-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* In-app toast (above bottom nav; non-blocking feedback) */
#stc-toast.stc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  max-width: min(520px, calc(100vw - 24px));
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--color-gold);
  background: var(--bg-cream-card);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-line;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 18px);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#stc-toast.stc-toast.stc-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.stc-dialog-open {
  overflow: hidden;
}

/* --- In-app modal (replaces browser alert/confirm; on-brand) --- */
.stc-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.stc-dialog-root.hidden {
  display: none !important;
  pointer-events: none !important;
}

.stc-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 14, 0.52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

body.dark-mode .stc-dialog-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.stc-dialog-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(420px, calc(100vw - 20px));
  padding: 22px 22px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--color-gold);
  background: var(--bg-cream-card);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  box-shadow:
    0 4px 0 rgba(194, 162, 106, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.22);
  animation: stc-dialog-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes stc-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stc-dialog-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.25rem;
  background: rgba(194, 162, 106, 0.14);
  color: var(--color-gold-dark);
  border: 1px solid rgba(194, 162, 106, 0.45);
}

.stc-dialog-root.stc-dialog--success .stc-dialog-icon {
  background: rgba(34, 88, 52, 0.12);
  color: var(--color-birdie);
  border-color: rgba(34, 88, 52, 0.35);
}

.stc-dialog-root.stc-dialog--warning .stc-dialog-icon,
.stc-dialog-root.stc-dialog--danger .stc-dialog-icon {
  background: rgba(120, 52, 28, 0.1);
  color: var(--color-bogey);
  border-color: rgba(120, 52, 28, 0.35);
}

.stc-dialog-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-charcoal);
}

.stc-dialog-body {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: pre-line;
}

.stc-dialog-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 20px;
}

@media (min-width: 400px) {
  .stc-dialog-actions {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
  .stc-dialog-actions .btn {
    min-width: 118px;
  }
}

.stc-dialog-actions .btn {
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 10px;
  padding: 10px 16px;
}

/* Scroll target when snapping to Players after roster validation toast */
#setup-players-card {
  scroll-margin-top: 12px;
}

.nav-item {
  background: none;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  gap: 4px;
  width: 33.33%;
  height: 100%;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item i {
  font-size: 1.25rem;
  transition: var(--transition);
}

.nav-item.active {
  color: var(--color-gold);
}

.nav-item.active i {
  transform: translateY(-2px);
  color: var(--color-gold);
}

/* App Views Control */
.app-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Premium Card Layout */
.view-card {
  background-color: var(--bg-cream-card-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-forest);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  font-size: 1.1rem;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.section-title-lg {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-forest);
}

.section-subtitle-lg {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.accent-gold {
  color: var(--color-gold);
}

.accent-press-flame {
  color: var(--color-press-flame);
}

/* Keep flame accent when parent title sets text color (e.g. scorecard press header). */
.stc-card-collapse-toggle .accent-press-flame,
.section-title .accent-press-flame {
  color: var(--color-press-flame);
}

/* Form Controls */
.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-medium);
  margin-bottom: 6px;
}

.form-control {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--color-forest-light);
  box-shadow: 0 0 0 3px rgba(30, 63, 32, 0.1);
}

.select-dark {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2314321A' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 96%;
  background-position-y: 50%;
  appearance: none;
  padding-right: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.btn-primary:hover, .btn-primary:active {
  background-color: var(--color-forest-medium);
}

.btn-secondary {
  background-color: var(--bg-cream-card);
  color: var(--color-forest);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover, .btn-secondary:active {
  background-color: var(--color-border);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-forest-medium);
  border: 1px solid var(--color-forest-medium);
}

.btn-outline:hover, .btn-outline:active {
  background-color: rgba(30, 63, 32, 0.05);
}

.btn-full {
  width: 100%;
}

.btn-xs {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.icon-btn {
  background: none;
  border: none;
  outline: none;
  color: var(--color-forest);
  font-size: 1.15rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:active {
  background-color: rgba(28, 43, 33, 0.08);
}

/* Helpers */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-forest { color: var(--color-forest); }
.hidden { display: none !important; }

/* Setup Player Card */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.player-item {
  display: grid;
  grid-template-columns: 2fr 1fr 40px;
  align-items: center;
  gap: 10px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.player-item:focus-within {
  border-color: var(--color-gold);
}

.delete-player-btn {
  color: var(--color-bogey);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Course specs table */
.course-specs-container {
  width: 100%;
  overflow: hidden;
}

.course-scroll-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* Recent courses picker (Setup → Course) */
.recent-courses-wrap.hidden {
  display: none !important;
}
.recent-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
button.recent-course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
  min-height: 64px;
}
button.recent-course-card:hover:not(:disabled) {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}
button.recent-course-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.recent-course-card__name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-charcoal);
  line-height: 1.25;
}
.recent-course-card__meta {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 4px;
  line-height: 1.2;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background-color: var(--color-white);
}

.course-table th, .course-table td {
  padding: 8px 10px;
  text-align: center;
  border: 1px solid var(--color-border);
  min-width: 40px;
  font-weight: 500;
}

.course-table th {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.course-table td.row-label {
  background-color: var(--bg-cream-card);
  color: var(--color-forest-medium);
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 10;
  min-width: 50px;
}

.course-table input.course-input {
  width: 100%;
  border: none;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal);
  padding: 2px 0;
}

.course-table input.course-input:focus {
  outline: 2px solid var(--color-gold);
}

/* Segmented Control Tabs */
.scorecard-controls {
  margin-bottom: 12px;
}

.segmented-control {
  display: flex;
  background-color: var(--bg-cream-card);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--color-border);
}

.segment-btn {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.segment-btn.active {
  background-color: var(--color-forest);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* Sticky Scorecard Grid - Premium Clubhouse Redesign */
.scorecard-container {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
}

.scorecard-wrapper {
  overflow-x: auto;
  position: relative; /* Create isolated scrolling anchor context */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Vertical scorecard: lock main scroll — only the table wrapper scrolls (banner + switcher stay fixed; legend is inside the wrapper) */
body.scorecard-vertical-main-lock .app-main {
  overflow-y: hidden;
}

body.scorecard-vertical-main-lock #view-scorecard.app-view.active.scorecard-vertical-scroll-layout {
  display: flex;
  flex-direction: column;
  max-height: calc(
    100dvh - 16px - env(safe-area-inset-top, 0px) - 90px - env(safe-area-inset-bottom, 0px)
  );
  overflow: hidden;
}

body.scorecard-vertical-main-lock
  #view-scorecard.app-view.active.scorecard-vertical-scroll-layout
  #grid-scorecard-wrapper {
  flex: 1 1 auto;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.scorecard-vertical-main-lock
  #view-scorecard.app-view.active.scorecard-vertical-scroll-layout
  .scorecard-wrapper {
  flex: 1 1 auto;
  min-height: 200px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Vertical scorecard (scroll layout): optional team row, ribbon row, then Hole + names */
#view-scorecard.active.scorecard-vertical-scroll-layout .scorecard-table-vertical {
  --vertical-thead-ribbon-row-height: 72px;
  --vertical-thead-team-row-height: 0px;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-team
  th {
  position: sticky;
  top: 0;
  z-index: 13;
  background-color: #faf9f5;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-team
  th.col-vertical-sticky-hole.vertical-thead-team-corner {
  z-index: 14;
  left: 0;
  background: var(--color-white) !important;
  vertical-align: middle;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-ribbons
  th {
  position: sticky;
  top: var(--vertical-thead-team-row-height, 0px);
  z-index: 9;
  background-color: #faf9f5;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-ribbons
  th.col-vertical-sticky-hole.vertical-thead-corner {
  z-index: 12;
  left: 0;
  top: var(--vertical-thead-team-row-height, 0px);
  background: var(--color-white) !important;
  vertical-align: middle;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-players
  th {
  position: sticky;
  /* Slight overlap with ribbon row hides subpixel seams where tbody would otherwise show through */
  top: calc(var(--vertical-thead-team-row-height, 0px) + var(--vertical-thead-ribbon-row-height) - 1px);
  z-index: 8;
  background-color: #faf9f5;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  > tr.vertical-thead-single:first-child
  th {
  position: sticky;
  top: 0;
  z-index: 8;
  background-color: #faf9f5;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-team
  + tr.vertical-thead-single
  th {
  position: sticky;
  top: calc(var(--vertical-thead-team-row-height, 0px) - 1px);
  z-index: 8;
  background-color: #faf9f5;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-players
  th.col-vertical-sticky-hole,
#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-single
  th.col-vertical-sticky-hole {
  z-index: 11;
  left: 0;
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  th.vertical-team-ribbon-1 {
  background: rgba(234, 245, 236, 0.98);
}

#view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  th.vertical-team-ribbon-2 {
  background: rgba(252, 245, 232, 0.98);
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-ribbons
  th {
  background-color: var(--bg-cream-card);
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-ribbons
  th.col-vertical-sticky-hole.vertical-thead-corner {
  background: var(--bg-cream-card) !important;
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-team
  th {
  background-color: var(--bg-cream-card);
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-team
  th.col-vertical-sticky-hole.vertical-thead-team-corner {
  background: var(--bg-cream-card) !important;
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-players
  th {
  background-color: var(--bg-cream-card);
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  > tr.vertical-thead-single:first-child
  th,
body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  tr.vertical-thead-team
  + tr.vertical-thead-single
  th {
  background-color: var(--bg-cream-card);
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  th.vertical-team-ribbon-1 {
  background: rgba(17, 51, 26, 0.85);
}

body.dark-mode
  #view-scorecard.active.scorecard-vertical-scroll-layout
  .scorecard-table-vertical
  thead
  th.vertical-team-ribbon-2 {
  background: rgba(45, 32, 14, 0.75);
}

/* Vertical thead: corner cell (2v2 ribbon row) aligns hole column */
.scorecard-table-vertical th.vertical-thead-corner {
  border-bottom: 2px solid var(--color-border);
  box-shadow: 4px 0 8px rgba(28, 43, 33, 0.06);
}

/* Vertical player header: Name / Team / Hcp stacked */
.scorecard-table-vertical .vertical-player-head-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  width: 100%;
}

.scorecard-table-vertical .vertical-player-head-name {
  width: 100%;
  text-align: center;
}

.scorecard-table-vertical .vertical-player-head-team {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  min-height: 1.2em;
  line-height: 1.25;
}

.scorecard-table-vertical .vertical-player-head-team-none {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(28, 43, 33, 0.2);
}

body.dark-mode .scorecard-table-vertical .vertical-player-head-team-none {
  color: rgba(255, 255, 255, 0.2);
}

/* Long-press scorecard nav: radial layout picker */
.scorecard-radial-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}

.scorecard-radial-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(12, 18, 14, 0.42);
  -webkit-tap-highlight-color: transparent;
}

body.dark-mode .scorecard-radial-backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.scorecard-radial-shelf {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.scorecard-radial-option {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  border: 3px solid var(--bg-cream-canvas);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-medium) 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--color-white);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.scorecard-radial-option i {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1;
}

.scorecard-radial-option:active {
  opacity: 0.92;
  filter: brightness(1.06);
}

.scorecard-radial-option.active {
  border-color: var(--bg-cream-canvas);
  background: var(--color-gold);
  box-shadow: 0 4px 16px rgba(194, 162, 106, 0.45);
}

.scorecard-radial-option.active i {
  color: var(--color-forest);
}

body.dark-mode .scorecard-radial-option {
  background: linear-gradient(135deg, #152219 0%, #1c2b20 100%);
  border-color: #0c120e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

body.dark-mode .scorecard-radial-option i {
  color: rgba(255, 255, 255, 0.88);
}

body.dark-mode .scorecard-radial-option.active {
  background: var(--color-gold);
  border-color: var(--bg-cream-canvas);
}

body.dark-mode .scorecard-radial-option.active i {
  color: #121a15;
}

/* Transposed scorecard: one row per hole, columns per player */
.scorecard-table-vertical {
  table-layout: fixed;
  width: 100%;
}

.scorecard-table-vertical .col-vertical-sticky-hole,
.scorecard-table-vertical th.col-vertical-sticky-hole,
.scorecard-table-vertical td.col-vertical-sticky-hole {
  position: sticky;
  left: 0;
  z-index: 6;
  text-align: center !important;
  background: var(--color-white) !important;
  border-right: 2px solid var(--color-border);
  box-shadow: 4px 0 8px rgba(28, 43, 33, 0.06);
  min-width: 36px;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 0.78rem;
}

.scorecard-table-vertical th.col-vertical-sticky-hole {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding-top: 8px;
  padding-bottom: 8px;
}

.scorecard-table-vertical td.col-vertical-sticky-hole .vertical-hole-meta {
  display: block;
  font-size: 0.56rem;
  color: var(--color-muted);
  font-weight: 500;
  line-height: 1.15;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0.01em;
}

body.dark-mode .scorecard-table-vertical .col-vertical-sticky-hole,
body.dark-mode .scorecard-table-vertical th.col-vertical-sticky-hole,
body.dark-mode .scorecard-table-vertical td.col-vertical-sticky-hole {
  background: var(--bg-cream-card) !important;
}

.scorecard-table-vertical th.col-vertical-player-head .player-info-hcp {
  font-size: 0.62rem;
}

.scorecard-table-vertical .vertical-td-team1 {
  background: rgba(234, 245, 236, 0.5);
}

.scorecard-table-vertical .vertical-td-team2 {
  background: rgba(252, 245, 232, 0.55);
}

body.dark-mode .scorecard-table-vertical .vertical-td-team1 {
  background: rgba(17, 51, 26, 0.55);
}

body.dark-mode .scorecard-table-vertical .vertical-td-team2 {
  background: rgba(45, 32, 14, 0.45);
}

.scorecard-table-vertical .cell-score {
  min-width: 0;
  width: 100%;
}

/* Las Vegas (2v2) vertical: narrow gutter column between teammates (pill vertically centered) */
.scorecard-table-vertical th.col-vertical-vegas-between-head {
  min-width: 26px;
  max-width: 36px;
  width: 32px;
  padding: 6px 1px !important;
  vertical-align: middle;
  background: rgba(194, 162, 106, 0.08);
  border-left: 1px dashed rgba(194, 162, 106, 0.28);
  border-right: 1px dashed rgba(194, 162, 106, 0.28);
}

body.dark-mode .scorecard-table-vertical th.col-vertical-vegas-between-head {
  background: rgba(0, 0, 0, 0.18);
}

.scorecard-table-vertical .col-vertical-vegas-between-head-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-dark);
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.9;
}

body.dark-mode .scorecard-table-vertical .col-vertical-vegas-between-head-inner {
  color: var(--color-gold);
  opacity: 0.95;
}

.scorecard-table-vertical td.cell-vertical-vegas-gutter {
  vertical-align: middle;
  text-align: center;
  padding: 6px 2px !important;
  min-width: 26px;
  background: rgba(194, 162, 106, 0.05);
  border-left: 1px dashed rgba(194, 162, 106, 0.22);
  border-right: 1px dashed rgba(194, 162, 106, 0.22);
}

.scorecard-table-vertical td.cell-vertical-vegas-gutter.vertical-vegas-gutter--team2 {
  background: rgba(210, 165, 90, 0.07);
}

body.dark-mode .scorecard-table-vertical td.cell-vertical-vegas-gutter {
  background: rgba(0, 0, 0, 0.12);
}

.scorecard-table-vertical .vertical-vegas-gutter-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 1.35rem;
  padding: 4px 5px;
  box-sizing: border-box;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--color-gold-dark);
  background: rgba(194, 162, 106, 0.22);
  border: 1px solid rgba(194, 162, 106, 0.5);
  border-radius: 8px;
}

/* Birdie flip: dove as faint watermark behind the combined number (no extra vertical gap) */
.scorecard-table-vertical .vertical-vegas-gutter-pill--with-flip {
  position: relative;
  overflow: hidden;
}

.scorecard-table-vertical .vertical-vegas-gutter-pill--with-flip .vertical-vegas-gutter-pill-num {
  position: relative;
  z-index: 1;
}

.scorecard-table-vertical .vertical-vegas-gutter-pill--sum {
  min-height: 2.15rem;
  font-size: 0.58rem;
}

.scorecard-table-vertical .vertical-vegas-gutter-pill--with-flip .vertical-vegas-birdie-flip-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-forest);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.scorecard-vegas-combined-cell {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.scorecard-vegas-combined-cell--with-flip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 0;
  min-width: 1.35em;
  min-height: 1.25em;
  vertical-align: middle;
}

.scorecard-vegas-combined-cell--with-flip .scorecard-vegas-combined-val {
  position: relative;
  z-index: 1;
}

.scorecard-vegas-combined-val {
  font-weight: inherit;
}

.scorecard-vegas-combined-cell--with-flip .scorecard-vegas-birdie-flip-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-forest);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

body.dark-mode .scorecard-table-vertical .vertical-vegas-gutter-pill--with-flip .vertical-vegas-birdie-flip-icon,
body.dark-mode .scorecard-vegas-combined-cell--with-flip .scorecard-vegas-birdie-flip-icon {
  color: #8fd68f;
  opacity: 0.22;
}

.scorecard-table-vertical td.vertical-vegas-gutter--team2 .vertical-vegas-gutter-pill {
  color: var(--color-charcoal);
  background: rgba(210, 165, 90, 0.28);
  border-color: rgba(160, 110, 50, 0.45);
}

body.dark-mode .scorecard-table-vertical td.vertical-vegas-gutter--team2 .vertical-vegas-gutter-pill {
  color: var(--color-gold);
}

.scorecard-table-vertical .vertical-vegas-gutter-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.12);
}

body.dark-mode .scorecard-table-vertical .vertical-vegas-gutter-empty {
  color: rgba(255, 255, 255, 0.14);
}

.scorecard-table-vertical .vertical-vegas-ribbon-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.scorecard-table-vertical .vertical-col-vegas-pts {
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--color-muted);
}

.scorecard-table-vertical .vertical-col-vegas-pts-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}

.scorecard-table-vertical .vertical-col-vegas-pts-val {
  font-weight: 800;
  color: var(--color-charcoal);
}

body.dark-mode .scorecard-table-vertical .vertical-col-vegas-pts-val {
  color: var(--color-gold);
}

/* Vertical scorecard: dedicated team row above ribbons / Hole row */
.scorecard-table-vertical thead tr.vertical-thead-team th {
  text-align: center;
  vertical-align: middle;
  padding: 6px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

.scorecard-table-vertical th.vertical-thead-team-corner {
  border-bottom: 2px solid var(--color-border);
  box-shadow: 4px 0 8px rgba(28, 43, 33, 0.06);
}

.scorecard-table-vertical thead tr.vertical-thead-team th.vertical-thead-team-band {
  padding: 8px 6px;
  border-bottom: 2px solid var(--color-border);
}

.scorecard-table-vertical .vertical-thead-team-band-inner {
  max-width: 100%;
  margin: 0 auto;
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.25;
}

.scorecard-table-vertical thead th.vertical-thead-team-band--1 {
  background: rgba(234, 245, 236, 0.96);
}

.scorecard-table-vertical thead th.vertical-thead-team-band--2 {
  background: rgba(252, 245, 232, 0.96);
}

.scorecard-table-vertical thead th.vertical-thead-team-col {
  vertical-align: middle;
}

.scorecard-table-vertical thead th.vertical-thead-team-col--1 {
  background: rgba(234, 245, 236, 0.55);
}

.scorecard-table-vertical thead th.vertical-thead-team-col--2 {
  background: rgba(252, 245, 232, 0.55);
}

.scorecard-table-vertical .vertical-thead-team-pill {
  display: inline-block;
}

.scorecard-table-vertical thead th.vertical-thead-team-vegas-gap {
  background: transparent !important;
  border-bottom: 1px solid var(--color-border);
}

body.dark-mode .scorecard-table-vertical thead th.vertical-thead-team-band--1 {
  background: rgba(17, 51, 26, 0.72);
}

body.dark-mode .scorecard-table-vertical thead th.vertical-thead-team-band--2 {
  background: rgba(45, 32, 14, 0.62);
}

body.dark-mode .scorecard-table-vertical thead th.vertical-thead-team-col--1 {
  background: rgba(17, 51, 26, 0.5);
}

body.dark-mode .scorecard-table-vertical thead th.vertical-thead-team-col--2 {
  background: rgba(45, 32, 14, 0.45);
}

/* Vertical scorecard: team status ribbon + per-player header row */
.scorecard-table-vertical thead tr.vertical-thead-ribbons th.vertical-team-ribbon {
  text-align: center;
  vertical-align: middle;
  padding: 8px 6px;
  border-bottom: 2px solid var(--color-border);
}

.scorecard-table-vertical thead th.vertical-team-ribbon-1 {
  background: rgba(234, 245, 236, 0.96);
}

.scorecard-table-vertical thead th.vertical-team-ribbon-2 {
  background: rgba(252, 245, 232, 0.96);
}

body.dark-mode .scorecard-table-vertical thead th.vertical-team-ribbon-1 {
  background: rgba(17, 51, 26, 0.78);
}

body.dark-mode .scorecard-table-vertical thead th.vertical-team-ribbon-2 {
  background: rgba(45, 32, 14, 0.68);
}

.scorecard-table-vertical .vertical-ribbon-label {
  display: inline-block;
  margin: 0 auto 4px;
  padding: 3px 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-forest) 0%, var(--color-forest-medium) 100%);
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.scorecard-table-vertical .vertical-ribbon-label--inline {
  display: block;
  margin: 0 auto 4px;
  max-width: 100%;
}

.scorecard-table-vertical .vertical-seg-trophy {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7rem;
  color: var(--color-gold-dark);
  vertical-align: middle;
  line-height: 1;
  filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.35));
}

body.dark-mode .scorecard-table-vertical .vertical-seg-trophy {
  color: var(--color-gold);
}

.scorecard-table-vertical .vertical-team-name-chip {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-muted);
}

.scorecard-table-vertical .player-info-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.scorecard-table-vertical .vertical-col-wager {
  margin-top: 4px;
  line-height: 1.25;
}

.scorecard-table-vertical thead th.col-vertical-grp-col {
  vertical-align: middle;
}

.scorecard-table-vertical thead tr.vertical-thead-players th {
  border-top: none;
}

.scorecard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.scorecard-table th, .scorecard-table td {
  padding: 12px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(227, 220, 207, 0.5);
  min-width: 44px;
  font-family: var(--font-sans);
}

.scorecard-table th {
  background-color: #FAF9F5;
  color: var(--color-forest-medium);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-border);
  padding: 10px 4px;
}

.scorecard-table:not(.scorecard-table-vertical) thead th .scorecard-hole-head-meta {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 2px;
}

/* ==========================================================
   OPTIMIZED SCORECARD SCROLLING
   ========================================================== */

/* 1. Pin the Player / Hole name column to the left (grid scorecard only — vertical uses its own sticky rules) */
.scorecard-table:not(.scorecard-table-vertical) th.col-player,
.scorecard-table:not(.scorecard-table-vertical) td.cell-player-info {
  position: sticky !important;
  left: 0 !important;
  z-index: 30 !important;
  background-color: var(--color-white) !important;
  border-right: 2px solid var(--color-border) !important;
  box-shadow: 4px 0 8px rgba(28, 43, 33, 0.04);
}

/* 2. Remove sticky from the right-most column (horizontal grid totals column only) */
.scorecard-table:not(.scorecard-table-vertical) th:last-child,
.scorecard-table:not(.scorecard-table-vertical) td:last-child {
  position: static !important; /* Forces it to scroll naturally */
  box-shadow: none !important;
  border-left: 1px solid var(--color-border);
}

/* Vertical scorecard: last body column — position:relative for match/skins/drink overlays (thead excluded so sticky headers work when P4 is last th) */
.scorecard-table-vertical tbody td:last-child {
  position: relative !important;
  box-shadow: none !important;
  border-left: 1px solid var(--color-border);
}

.scorecard-table-vertical thead th:last-child {
  border-left: 1px solid var(--color-border);
}

/* 3. Dark Mode Sticky Fix (grid scorecard only) */
body.dark-mode .scorecard-table:not(.scorecard-table-vertical) th.col-player,
body.dark-mode .scorecard-table:not(.scorecard-table-vertical) td.cell-player-info {
  background-color: var(--bg-cream-card) !important;
}

.scorecard-table tr.total-row td.cell-player-info {
  background-color: #F5F1E6;
}

.scorecard-table tr.total-row {
  background-color: #FCFAF5;
  font-weight: 600;
  color: var(--color-forest);
}

.scorecard-table tr.total-row td {
  border-bottom: none;
  font-weight: 700;
}

.player-info-name {
  font-weight: 600;
  color: var(--color-forest);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.player-info-hcp {
  font-size: 0.65rem;
  color: var(--color-muted);
  font-weight: 500;
  margin-top: 2px;
}

.scorecard-table td.cell-score {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  user-select: none;
  background-color: var(--color-white);
  transition: background-color 0.15s ease;
  padding: 8px 4px;
}

.scorecard-table td.cell-score:active {
  background-color: rgba(194, 162, 106, 0.12);
}

/* Beautiful Geometric Shapes for Golf Scores */
.scorecard-table td.cell-score span.score-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-charcoal);
  border-radius: 50%;
  transition: all 0.2s ease;
}

/* Hole cell corner slots (TL / TR / BL). Games add HTML via `buildScorecardHoleCellCorners` + optional opts on shared builder. */
.scorecard-table td.cell-score .cell-score-slot {
  position: absolute;
  pointer-events: none;
  display: flex;
  align-items: center;
  line-height: 1;
}
.scorecard-table td.cell-score .cell-score-slot--tl {
  top: 4px;
  left: 4px;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 2px;
  max-width: 48%;
  z-index: 3;
}
.scorecard-table td.cell-score .cell-score-slot--tr {
  top: 2px;
  right: 2px;
  gap: 3px;
  z-index: 4;
}
.scorecard-table td.cell-score.has-mp-hole-win .cell-score-slot--tr {
  right: 15px;
  top: 3px;
}
.scorecard-table td.cell-score .cell-score-slot--bl {
  bottom: 2px;
  left: 2px;
  gap: 2px;
  flex-wrap: nowrap;
  z-index: 4;
}

/* Skins won this hole — flag watermark behind gross score; skins count chip in TR */
.scorecard-table td.cell-score .skins-win-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.scorecard-table td.cell-score .skins-win-watermark__icon {
  font-size: 2.45rem;
  line-height: 1;
  color: var(--color-birdie);
  opacity: 0.2;
  transform: rotate(-10deg);
}

body.dark-mode .scorecard-table td.cell-score .skins-win-watermark__icon {
  opacity: 0.26;
  color: var(--color-birdie);
}

.scorecard-table td.cell-score .cell-score-slot--tr .skins-win-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  padding: 2px 5px;
  border-radius: 5px;
  line-height: 1;
  font-size: 0.56rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--bg-birdie) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-birdie) 40%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-birdie) 18%, transparent);
  color: var(--color-forest-medium);
}

body.dark-mode .scorecard-table td.cell-score .cell-score-slot--tr .skins-win-count {
  background: color-mix(in srgb, var(--bg-birdie) 78%, transparent);
  border-color: color-mix(in srgb, var(--color-birdie) 52%, transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  color: var(--color-birdie);
}

/* Circle Birdie - Soft Sage Green Pill */
.scorecard-table td.cell-score.is-birdie span.score-wrapper {
  background-color: #E2F0D9;
  color: #385723;
  border: 1.5px solid #385723;
  box-shadow: 0 1px 3px rgba(56, 87, 35, 0.15);
}

/* Double Circle Eagle - Soft Slate Blue */
.scorecard-table td.cell-score.is-eagle span.score-wrapper {
  background-color: #DDEBF7;
  color: #1F4E79;
  border: 1.5px solid #1F4E79;
  box-shadow: 0 1px 3px rgba(31, 78, 121, 0.15);
}
.scorecard-table td.cell-score.is-eagle span.score-wrapper::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border: 1px solid #1F4E79;
  border-radius: 50%;
}

/* Square Bogey - Soft Coral Red */
.scorecard-table td.cell-score.is-bogey span.score-wrapper {
  background-color: #FCE4D6;
  color: #C65911;
  border: 1.5px solid #C65911;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(198, 89, 17, 0.15);
}

/* Double Square Double Bogey+ - Deep Maroon */
.scorecard-table td.cell-score.is-double-bogey span.score-wrapper {
  background-color: #F8CBAD;
  color: #C00000;
  border: 1.5px solid #C00000;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(192, 0, 0, 0.15);
}
.scorecard-table td.cell-score.is-double-bogey span.score-wrapper::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border: 1px solid #C00000;
  border-radius: 4px;
}

/* Handicap stroke dots — inside TL corner slot */
.scorecard-table td.cell-score .cell-score-slot--tl .stroke-dots {
  position: static;
  display: flex;
  gap: 1.5px;
}

.scorecard-table td.cell-score .stroke-dot {
  width: 4.5px;
  height: 4.5px;
  background-color: var(--color-stroke-bump);
  border-radius: 50%;
}

/* Plus handicap: blue + in corner (strokes given) */
.scorecard-table td.cell-score .stroke-dots--give {
  align-items: center;
  gap: 0.5px;
}
.scorecard-table td.cell-score .stroke-bump-plus {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--color-stroke-bump);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Highly obvious visual cue for cells where players receive strokes (bumps) */
.scorecard-table td.cell-score.has-bump {
  border-left: 2px solid var(--color-gold) !important;
  background-color: #FCFAF4 !important; /* Soft warm gold/cream tint */
}

.scorecard-table td.cell-score.has-bump-negative {
  border-left-color: var(--color-muted) !important;
  background-color: rgba(124, 146, 168, 0.12) !important;
}

body.dark-mode .scorecard-table td.cell-score.has-bump-negative {
  border-left-color: rgba(142, 153, 146, 0.85) !important;
  background-color: rgba(92, 168, 255, 0.1) !important;
}

.scorecard-table td.cell-score.has-mp-hole-win::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 13px 13px 0;
  border-color: transparent #2A6E3B transparent transparent;
  z-index: 5;
  pointer-events: none;
}

body.dark-mode .scorecard-table td.cell-score.has-mp-hole-win::after {
  border-color: transparent var(--color-forest-light) transparent transparent;
}

/* Junk (greenie / sandie / snake): bottom-left slot */
.scorecard-table td.cell-score .cell-score-slot--bl .cell-junk-icons {
  position: static;
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 0.55rem;
  line-height: 1;
}

/* Drink-hole buyer: two beer mugs “cheers” as a large watermark behind the score (rotated like a stamp) */
.scorecard-table td.cell-score .drink-buyer-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  color: var(--color-gold-dark);
  opacity: 0.38;
}

/* Stamp diagonal: whole pair at 45°; each mug counter-rotated so the icon stays right-side up on screen */
.scorecard-table td.cell-score .drink-buyer-watermark .drink-cheers-mugs {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  font-size: 1.85rem;
  line-height: 1;
  transform: rotate(45deg);
}

.scorecard-table td.cell-score .drink-cheers-mug--l {
  transform: rotate(-45deg) translate(2px, 1px);
}

.scorecard-table td.cell-score .drink-cheers-mug--r {
  transform: rotate(-45deg) translate(-2px, 1px);
}

body.dark-mode .scorecard-table td.cell-score .drink-buyer-watermark {
  opacity: 0.46;
  color: var(--color-gold);
}

.scorecard-table td.cell-score .cell-junk-icons i {
  font-size: 0.58rem;
}

.junk-greenie { color: #385723; }
.junk-sandie { color: var(--color-gold-dark); }
.junk-snake { color: #C00000; }

/* Snake carrier (carry rules): icon only — no pill/chip on scorecard cells */
.cell-junk-icons .junk-snake-holder-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  background: none;
  border: none;
  box-shadow: none;
}
.cell-junk-icons .junk-snake.junk-snake--holder {
  color: #8b0000;
  font-size: 0.64rem !important;
}

body.dark-mode .cell-junk-icons .junk-snake.junk-snake--holder {
  color: #ffb4b4;
}

/* Totals column background highlight (horizontal grid only — vertical last col is a player) */
.scorecard-table:not(.scorecard-table-vertical) td:last-child {
  background-color: #FAF9F5;
  font-weight: 700;
  border-left: 1px solid var(--color-border);
}

.scorecard-table:not(.scorecard-table-vertical) tr.total-row td:last-child {
  background-color: #F5F1E6;
}

/* Scorecard Legend styling (inside .scorecard-wrapper so it scrolls with the table in vertical mode) */
.scorecard-wrapper .scorecard-legend {
  flex-shrink: 0;
  padding: 10px 8px 12px;
  margin-top: 0;
  border-top: 1px solid rgba(227, 220, 207, 0.65);
  background: var(--color-white);
}

body.dark-mode .scorecard-wrapper .scorecard-legend {
  background: var(--bg-cream-card);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.scorecard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.legend-shape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
  font-weight: 700;
}

.legend-stroke-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-stroke-bump);
  flex-shrink: 0;
}

.legend-stroke-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--color-stroke-bump);
}

.legend-par-si-sample {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-muted);
  width: 36px;
  text-align: center;
}

.legend-mp-dogear {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent #2A6E3B transparent transparent;
  vertical-align: top;
  margin-top: 1px;
}
  background-color: #E2F0D9;
  color: #385723;
  border: 1.5px solid #385723;
  border-radius: 50%;
}

.score-normal {
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.score-square-bogey {
  background-color: #FCE4D6;
  color: #C65911;
  border: 1.5px solid #C65911;
  border-radius: 4px;
}

.score-double-bogey {
  background-color: #F8CBAD;
  color: #C00000;
  border: 1.5px solid #C00000;
  border-radius: 4px;
}

/* Custom Settings Page Switches & toggles */
.game-header-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.game-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-forest);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-title i {
  color: var(--color-gold);
}

.game-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Custom CSS iOS-like Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background-color: var(--color-forest-medium);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-forest-medium);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.game-settings-body {
  transition: var(--transition);
}

/* Custom Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  display: inline-block;
  background-color: var(--color-white);
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 8px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 2px;
  left: 5px;
}

/* Pairings match-up visualizer */
.pairing-setup-card {
  background-color: var(--bg-cream-card);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px dashed var(--color-gold);
}

.pairing-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.pairing-match:last-child {
  margin-bottom: 0;
}

.vs-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--bg-cream-card);
  color: var(--color-gold-dark);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* Live Standings Panel */
.bg-dark-green {
  background-color: var(--color-forest);
}

.text-light {
  color: var(--bg-cream-canvas);
}

.card-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}

.live-standings-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Settle tab — live match standings header (title vs badge) */
.live-match-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.live-match-title-cell {
  flex: 1;
  min-width: 0;
}

.live-match-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.live-match-title-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-gold);
  font-size: 0.95rem;
}

.live-match-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.live-match-team-line {
  font-weight: 700;
  color: var(--color-gold);
  font-size: 0.92rem;
  line-height: 1.2;
}

.live-match-team-pts {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86em;
  margin-left: 3px;
  white-space: nowrap;
}

.live-match-vs {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.live-match-format-note {
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.2;
}

.live-match-title-plain {
  font-weight: 700;
  color: var(--color-gold);
  font-size: 0.95rem;
  line-height: 1.25;
}

.live-match-game-title {
  font-weight: 800;
  color: var(--color-gold);
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 2px;
}

/*
 * Live Match Standings (forest card): roster slot classes default to white on the panel;
 * leaders stay gold; cream/tint pills override names to black below.
 * Press/side lines: dollar amounts use fixed greens (no roster hues).
 */
#live-standings-card .stc-player-name--slot-1,
#live-standings-card .stc-player-name--slot-2,
#live-standings-card .stc-player-name--slot-3,
#live-standings-card .stc-player-name--slot-4 {
  color: rgba(255, 255, 255, 0.95) !important;
}

#live-standings-card .live-match-team-line--slot-1,
#live-standings-card .live-match-team-line--slot-2,
#live-standings-card .live-match-team-line--slot-3,
#live-standings-card .live-match-team-line--slot-4 {
  color: rgba(255, 255, 255, 0.95) !important;
}

#live-standings-card .nassau-medal-stroke-standings-row--leader .stc-player-name--slot-1,
#live-standings-card .nassau-medal-stroke-standings-row--leader .stc-player-name--slot-2,
#live-standings-card .nassau-medal-stroke-standings-row--leader .stc-player-name--slot-3,
#live-standings-card .nassau-medal-stroke-standings-row--leader .stc-player-name--slot-4 {
  color: var(--color-gold) !important;
}

#live-standings-card .nassau-stroke-gap-standings-row--leader .stc-player-name--slot-1,
#live-standings-card .nassau-stroke-gap-standings-row--leader .stc-player-name--slot-2,
#live-standings-card .nassau-stroke-gap-standings-row--leader .stc-player-name--slot-3,
#live-standings-card .nassau-stroke-gap-standings-row--leader .stc-player-name--slot-4 {
  color: var(--color-gold) !important;
}

/* Bet corners, net / Vegas header pills, tinted summary: black first names on cream or roster-tint panels */
#live-standings-card .nassau-mp-bet-corner .stc-player-name--slot-1,
#live-standings-card .nassau-mp-bet-corner .stc-player-name--slot-2,
#live-standings-card .nassau-mp-bet-corner .stc-player-name--slot-3,
#live-standings-card .nassau-mp-bet-corner .stc-player-name--slot-4,
#live-standings-card .match-score-badge .match-score-badge-names .stc-player-name--slot-1,
#live-standings-card .match-score-badge .match-score-badge-names .stc-player-name--slot-2,
#live-standings-card .match-score-badge .match-score-badge-names .stc-player-name--slot-3,
#live-standings-card .match-score-badge .match-score-badge-names .stc-player-name--slot-4 {
  color: #141414 !important;
}

#live-standings-card .nassau-mp-bet-corner .stc-inline-name-sep,
#live-standings-card .match-score-badge-names .stc-inline-name-sep {
  color: rgba(0, 0, 0, 0.38);
}

#live-standings-card .match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-1,
#live-standings-card .match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-2,
#live-standings-card .match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-3,
#live-standings-card .match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-4,
#live-standings-card .match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-neutral {
  color: #141414;
}

/* Stroke / skins “Overall” pill: forest fill, no tint — keep body high-contrast (not the dark text meant for tinted pills) */
#live-standings-card .match-score-badge.match-score-badge--summary:not(.match-score-badge--summary-cream):not(.match-score-badge--summary-tint-1):not(.match-score-badge--summary-tint-2):not(.match-score-badge--summary-tint-3):not(.match-score-badge--summary-tint-4):not(.match-score-badge--summary-tint-neutral) {
  color: rgba(255, 255, 255, 0.95);
}

/* Dollar / wager amounts: always roster-neutral bright green on forest; deep green on light side rows */
#live-standings-card .nassau-mp-bet-line--dark .nassau-mp-bet-line__wager {
  color: var(--stc-live-standings-money) !important;
  text-shadow: var(--stc-live-standings-money-shadow);
}

#live-standings-card .nassau-mp-bet-box--on-light .nassau-mp-bet-line__wager {
  color: var(--stc-live-standings-money-on-light) !important;
  text-shadow: none;
}

#live-standings-card .nassau-mp-bet-corner .nassau-mp-bet-corner-amt,
#live-standings-card .nassau-mp-bet-corner .nassau-mp-bet-corner-amt[class*="stc-payout-amt"] {
  color: var(--stc-live-standings-money-on-light) !important;
  text-shadow: none;
}

#live-standings-card .nassau-mp-bet-corner--even .nassau-mp-bet-corner-amt,
#live-standings-card .nassau-mp-bet-corner--cream-agg.nassau-mp-bet-corner--even .nassau-mp-bet-corner-amt {
  color: rgba(0, 0, 0, 0.42) !important;
  text-shadow: none;
}

#live-standings-card .match-score-badge-amt,
#live-standings-card .match-score-badge-amt[class*="stc-payout-amt"] {
  color: var(--stc-live-standings-money-on-light) !important;
  text-shadow: none;
}

#live-standings-card .match-score-badge.even .match-score-badge-amt,
#live-standings-card .match-score-badge--summary-cream.even .match-score-badge-amt {
  color: rgba(0, 0, 0, 0.4) !important;
  text-shadow: none;
}

#live-standings-card .nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) .nassau-mp-bounce-row-amt,
#live-standings-card .nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) .nassau-mp-bounce-row-amt[class*="stc-payout-amt"] {
  color: var(--stc-live-standings-money) !important;
  text-shadow: var(--stc-live-standings-money-shadow);
}

#live-standings-card .nassau-mp-bet-box--on-light .nassau-mp-bounce-row-amt,
#live-standings-card .nassau-mp-bet-box--on-light .nassau-mp-bounce-row-amt[class*="stc-payout-amt"] {
  color: var(--stc-live-standings-money-on-light) !important;
  text-shadow: none;
}

#live-standings-card .nassau-mp-bet-tiebreak-wager {
  color: var(--stc-live-standings-money) !important;
  text-shadow: var(--stc-live-standings-money-shadow);
}

/* Press / Main chips in bet title: dark label on gold chip; hole disc unchanged */
#live-standings-card .nassau-mp-bet-box-title .nassau-press-chip {
  color: #141414;
}

.live-match-mp-detail-wrap {
  margin-top: 10px;
}

.live-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.match-p1, .match-p2 {
  font-weight: 600;
  min-width: 80px;
}

.match-p1 { text-align: left; }
.match-p2 { text-align: right; }

.match-score-badge {
  flex-shrink: 0;
  font-weight: 700;
  background-color: var(--color-gold);
  color: var(--color-forest);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  min-width: 108px;
  max-width: 46%;
}

.match-score-badge--summary {
  background-color: var(--color-forest);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  font-size: 0.78rem;
}

/* Non-cream summary badges only: full tint wash (stroke / skins headers, etc.) */
.match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-1 {
  background: color-mix(in srgb, var(--stc-p1-fg) 32%, var(--stc-net-badge-tint-base));
  border-color: color-mix(in srgb, var(--stc-p1-fg) 55%, var(--color-gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-2 {
  background: color-mix(in srgb, var(--stc-p2-fg) 32%, var(--stc-net-badge-tint-base));
  border-color: color-mix(in srgb, var(--stc-p2-fg) 55%, var(--color-gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-3 {
  background: color-mix(in srgb, var(--stc-p3-fg) 32%, var(--stc-net-badge-tint-base));
  border-color: color-mix(in srgb, var(--stc-p3-fg) 55%, var(--color-gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-4 {
  background: color-mix(in srgb, var(--stc-p4-fg) 32%, var(--stc-net-badge-tint-base));
  border-color: color-mix(in srgb, var(--stc-p4-fg) 55%, var(--color-gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.match-score-badge--summary:not(.match-score-badge--summary-cream).match-score-badge--summary-tint-neutral {
  background: color-mix(in srgb, var(--color-muted) 28%, var(--stc-net-badge-tint-base));
  border-color: color-mix(in srgb, var(--color-muted) 45%, var(--color-gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Nassau net aggregate (live settle): cream pill, stacked name + Net; winner = colored left accent */
.match-score-badge--summary.match-score-badge--summary-cream {
  background: linear-gradient(165deg, #faf8f5 0%, #f2ede2 55%, #ebe4d8 100%);
  color: var(--color-charcoal, #2c2b28);
  border: 1px solid rgba(20, 50, 26, 0.14);
  border-left: 3px solid rgba(20, 50, 26, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.25);
}
.match-score-badge--summary.match-score-badge--summary-cream.match-score-badge--summary-tint-1 {
  border-left-color: var(--stc-p1-fg);
}
.match-score-badge--summary.match-score-badge--summary-cream.match-score-badge--summary-tint-2 {
  border-left-color: var(--stc-p2-fg);
}
.match-score-badge--summary.match-score-badge--summary-cream.match-score-badge--summary-tint-3 {
  border-left-color: var(--stc-p3-fg);
}
.match-score-badge--summary.match-score-badge--summary-cream.match-score-badge--summary-tint-4 {
  border-left-color: var(--stc-p4-fg);
}
.match-score-badge--summary.match-score-badge--summary-cream.match-score-badge--summary-tint-neutral {
  border-left-color: rgba(110, 108, 100, 0.55);
}
.match-score-badge.match-score-badge--summary-cream.even {
  color: var(--color-muted, #6b6860);
}

/* Cream net summaries (main + presses headers): player/team row 1, Net +$ row 2 */
.match-score-badge--summary.match-score-badge--summary-cream--stack {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 46%;
  min-width: 108px;
}

.match-score-badge-names,
.match-score-badge-amt {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.15;
}

.match-score-badge-amt {
  font-size: 0.82rem;
  font-weight: 800;
}

/* ---- Roster slot name colors (Setup list order P1–P4) ---- */
.stc-player-name--slot-1,
.live-match-team-line--slot-1,
.match-score-badge--summary .stc-player-name--slot-1,
.nassau-mp-bet-corner-names .stc-player-name--slot-1 {
  color: var(--stc-p1-fg);
}
.stc-player-name--slot-2,
.live-match-team-line--slot-2,
.match-score-badge--summary .stc-player-name--slot-2,
.nassau-mp-bet-corner-names .stc-player-name--slot-2 {
  color: var(--stc-p2-fg);
}
.stc-player-name--slot-3,
.live-match-team-line--slot-3,
.match-score-badge--summary .stc-player-name--slot-3,
.nassau-mp-bet-corner-names .stc-player-name--slot-3 {
  color: var(--stc-p3-fg);
}
.stc-player-name--slot-4,
.live-match-team-line--slot-4,
.match-score-badge--summary .stc-player-name--slot-4,
.nassau-mp-bet-corner-names .stc-player-name--slot-4 {
  color: var(--stc-p4-fg);
}

.scorecard-table td.cell-player-info .player-info-name.stc-player-name--slot-1,
.scorecard-table-vertical .vertical-player-head-name .stc-player-name--slot-1 {
  color: var(--stc-p1-fg);
}
.scorecard-table td.cell-player-info .player-info-name.stc-player-name--slot-2,
.scorecard-table-vertical .vertical-player-head-name .stc-player-name--slot-2 {
  color: var(--stc-p2-fg);
}
.scorecard-table td.cell-player-info .player-info-name.stc-player-name--slot-3,
.scorecard-table-vertical .vertical-player-head-name .stc-player-name--slot-3 {
  color: var(--stc-p3-fg);
}
.scorecard-table td.cell-player-info .player-info-name.stc-player-name--slot-4,
.scorecard-table-vertical .vertical-player-head-name .stc-player-name--slot-4 {
  color: var(--stc-p4-fg);
}

.scorecard-table tr.is-leader td.cell-player-info .player-info-name.stc-player-name--slot-1 {
  color: var(--stc-p1-fg) !important;
}
.scorecard-table tr.is-leader td.cell-player-info .player-info-name.stc-player-name--slot-2 {
  color: var(--stc-p2-fg) !important;
}
.scorecard-table tr.is-leader td.cell-player-info .player-info-name.stc-player-name--slot-3 {
  color: var(--stc-p3-fg) !important;
}
.scorecard-table tr.is-leader td.cell-player-info .player-info-name.stc-player-name--slot-4 {
  color: var(--stc-p4-fg) !important;
}

.stc-inline-name-sep {
  color: var(--color-muted);
  font-weight: 600;
}

/* Payout amounts: roster slot colors (Settle corners, net badges, bounce/deuce rows) */
.nassau-mp-bet-corner .nassau-mp-bet-corner-amt.stc-payout-amt--slot-1,
.match-score-badge .match-score-badge-amt.stc-payout-amt--slot-1,
.nassau-mp-bounce-row-amt.stc-payout-amt--slot-1 {
  color: var(--stc-p1-fg) !important;
}
.nassau-mp-bet-corner .nassau-mp-bet-corner-amt.stc-payout-amt--slot-2,
.match-score-badge .match-score-badge-amt.stc-payout-amt--slot-2,
.nassau-mp-bounce-row-amt.stc-payout-amt--slot-2 {
  color: var(--stc-p2-fg) !important;
}
.nassau-mp-bet-corner .nassau-mp-bet-corner-amt.stc-payout-amt--slot-3,
.match-score-badge .match-score-badge-amt.stc-payout-amt--slot-3,
.nassau-mp-bounce-row-amt.stc-payout-amt--slot-3 {
  color: var(--stc-p3-fg) !important;
}
.nassau-mp-bet-corner .nassau-mp-bet-corner-amt.stc-payout-amt--slot-4,
.match-score-badge .match-score-badge-amt.stc-payout-amt--slot-4,
.nassau-mp-bounce-row-amt.stc-payout-amt--slot-4 {
  color: var(--stc-p4-fg) !important;
}

.nassau-mp-bet-box--on-light .nassau-mp-bounce-row-amt.stc-payout-amt--slot-1 {
  color: var(--stc-p1-fg) !important;
}
.nassau-mp-bet-box--on-light .nassau-mp-bounce-row-amt.stc-payout-amt--slot-2 {
  color: var(--stc-p2-fg) !important;
}
.nassau-mp-bet-box--on-light .nassau-mp-bounce-row-amt.stc-payout-amt--slot-3 {
  color: var(--stc-p3-fg) !important;
}
.nassau-mp-bet-box--on-light .nassau-mp-bounce-row-amt.stc-payout-amt--slot-4 {
  color: var(--stc-p4-fg) !important;
}

.match-score-badge-iconrow {
  font-size: 0.85rem;
  color: var(--color-forest);
  line-height: 1;
}

.match-score-badge.even:not(.match-score-badge--summary) {
  background-color: rgba(255,255,255,0.15);
  color: var(--color-white);
}

/* Summary "Net $0" / tie: keep gold label; background comes from .summary-tint-neutral */
.match-score-badge--summary.even {
  color: var(--color-gold);
}

/* Table alignment utilities */
.text-left {
  text-align: left !important;
}
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}

/* Premium Raw Balance Table Redesign */
#raw-balance-table-container {
  width: 100%;
  overflow-x: visible; /* horizontal scroll lives on .raw-balance-table-scroll */
  border-radius: var(--radius-sm);
}

/* Find the .raw-balance-table block and update it */
.raw-balance-table {
  width: 100%;
  min-width: 100%; /* Changed from 580px */
  table-layout: auto; /* Changed from fixed */
  border-collapse: collapse;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Remove or update the width percentages to be fluid */
.raw-balance-table th:nth-child(1),
.raw-balance-table td:nth-child(1) { width: auto; text-align: left; }
.raw-balance-table th:not(:nth-child(1)),
.raw-balance-table td:not(:nth-child(1)) { width: auto; text-align: right; }

.raw-balance-table th, .raw-balance-table td {
  padding: 10px 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Safely clip long names with an ellipsis (...) */
}

.raw-balance-table th {
  font-weight: 700;
  color: var(--color-gold);
  background-color: var(--color-forest);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-gold);
  white-space: normal !important;
  line-height: 1.15;
}

.raw-balance-table td {
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  background-color: white;
  transition: background-color 0.2s ease;
}

.raw-balance-table tbody tr:last-child td {
  border-bottom: none;
}

.raw-balance-table tbody tr:hover td {
  background-color: #FAF8F2; /* Soft cream gold hover background */
}

.raw-balance-table td.player-name {
  font-weight: 700;
  color: var(--color-forest);
  font-size: 0.9rem;
}

.pos-money {
  color: var(--color-birdie);
  font-weight: 700;
}

.neg-money {
  color: var(--color-bogey);
  font-weight: 700;
}

.zero-money {
  color: var(--color-charcoal, #2c2b28);
  font-weight: 700;
}

/* Match Play Premium Stat Badges */
.mp-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  min-width: 50px;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mp-stat-badge.win {
  background-color: #E2F0D9;
  color: #385723;
  border: 1px solid #C5E0B4;
}

.mp-stat-badge.loss {
  background-color: #FCE4D6;
  color: #C65911;
  border: 1px solid #F8CBAD;
}

.mp-stat-badge.tie {
  background-color: #EDF2F8;
  color: #4A607A;
  border: 1px solid #D6E4F0;
}

.mp-stat-badge .badge-arrow {
  font-size: 0.65rem;
}

/* Premium Payout Result Badges */
.mp-result-badge {
  display: inline-block;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mp-result-badge.pos-money {
  background-color: #385723;
  color: white !important;
}

.mp-result-badge.neg-money {
  background-color: #FDF2F2;
  color: var(--color-bogey) !important;
  border: 1px solid #F8D7DA;
}

.mp-result-badge.zero-money {
  background-color: #F8F9FA;
  color: var(--color-muted) !important;
  border: 1px solid var(--color-border);
}

/* Final Settlement / Netting Section */
.highlight-card {
  border: 1px solid var(--color-gold);
  background-color: #FCFAF5;
  position: relative;
}

.card-glow {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 60%;
  height: 200px;
  background: radial-gradient(circle, rgba(194, 162, 106, 0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.payouts-container {
  display: grid;
  /* auto-fit collapses empty tracks so a single card (e.g. Group Best Ball summary) spans full width */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* Ledger (Settle): full-width stack — summary, then each transfer on its own row */
#view-settlement #settlement-optimized-payouts.payouts-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#view-settlement #settlement-optimized-payouts .stc-ledger-primary-summary-fullbleed {
  width: 100%;
  min-width: 0;
}

#view-settlement #settlement-optimized-payouts .stc-ledger-payout-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

/* Compact “who pays whom” rows (not the Group Best Ball summary card) */
#view-settlement #settlement-optimized-payouts .payout-card.stc-ledger-transfer-payout {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 14px;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

#view-settlement #settlement-optimized-payouts .payout-card.stc-ledger-transfer-payout--empty {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

#view-settlement #settlement-optimized-payouts .stc-ledger-transfer-payout .payout-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  flex-shrink: 0;
}

#view-settlement #settlement-optimized-payouts .stc-ledger-transfer-payout .payout-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

#view-settlement #settlement-optimized-payouts .stc-ledger-transfer-payout .payout-text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 0;
}

#view-settlement #settlement-optimized-payouts .stc-ledger-transfer-payout .stc-payout-flow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1;
  flex-shrink: 0;
}

#view-settlement #settlement-optimized-payouts .stc-ledger-transfer-payout .payout-info > div:last-child {
  margin-top: 0 !important;
  font-size: 1.05rem !important;
  flex-shrink: 0;
}

.payout-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.payout-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.payout-icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-birdie);
  color: var(--color-birdie);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.payout-info {
  flex: 1;
  text-align: center;
  width: 100%;
}

.payout-debtor {
  font-weight: 600;
  color: var(--color-forest);
}

.payout-creditor {
  font-weight: 600;
  color: var(--color-forest-medium);
}

.payout-text {
  font-size: 0.9rem;
  color: var(--color-charcoal);
  margin-top: 1px;
}

.payout-action-btn {
  text-decoration: none;
  background-color: var(--color-gold-dark);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.payout-action-btn:hover {
  background-color: var(--color-gold);
}

.round-share-box {
  background-color: var(--bg-cream-card);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.copy-textarea {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  background-color: var(--color-white);
  resize: none;
  border-color: var(--color-border);
  color: var(--color-forest-medium);
  line-height: 1.4;
}

/* Drawer CSS slide up modal on mobile */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 30, 23, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.drawer-overlay.active {
  display: flex;
}

.drawer-content {
  background-color: var(--bg-cream-canvas);
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 14px env(safe-area-inset-bottom) 14px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--color-border);
}

.drawer-overlay.active .drawer-content {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest);
}

.drawer-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 0.8;
  padding: 2px;
}

.drawer-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-align: center;
}

.drawer-score-bubble {
  width: 60px;
  height: 60px;
  background-color: var(--color-forest);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 8px auto 0 auto;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-md);
}

.drawer-score-bubble.empty {
  background-color: var(--color-white);
  color: var(--color-border);
  border-color: var(--color-border);
  box-shadow: none;
}

/* Custom Numpad Keyboard */
.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 500px;
  margin: 12px auto 0 auto;
}

.num-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 16px 0;
  color: var(--color-forest-medium);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.num-btn:active {
  background-color: var(--bg-cream-card);
  transform: scale(0.96);
}

.num-btn-special {
  background-color: var(--bg-cream-card);
  color: var(--color-muted);
  font-size: 1.05rem;
  padding: 16px 0;
}

.divider {
  height: 1px;
  background-color: var(--color-border);
  width: 100%;
}

/* Dots (Junk) strip in bottom drawer */
.dots-toggle-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.dot-toggle-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  font-family: var(--font-sans);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.dot-toggle-btn:active {
  transform: scale(0.96);
}

.dot-icon {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.dot-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

/* Active Dots toggled state */
.dot-toggle-btn.active[data-dot="greenie"] {
  border-color: var(--color-birdie);
  background-color: var(--bg-birdie);
}
.dot-toggle-btn.active[data-dot="greenie"] .dot-icon {
  color: var(--color-birdie);
}

.dot-toggle-btn.active[data-dot="sandie"] {
  border-color: var(--color-gold);
  background-color: #FCF7EE;
}
.dot-toggle-btn.active[data-dot="sandie"] .dot-icon {
  color: var(--color-gold-dark);
}

.dot-toggle-btn.active[data-dot="snake"] {
  border-color: var(--color-bogey);
  background-color: var(--bg-bogey);
}
.dot-toggle-btn.active[data-dot="snake"] .dot-icon {
  color: var(--color-bogey);
}

.drawer-nav-actions {
  display: flex;
  gap: 12px;
}

.drawer-nav-actions button {
  flex: 1;
}

/* Animation for custom popup */
@keyframes copyPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.copy-pop-active {
  animation: copyPop 0.3s ease-in-out;
}

/* Live Leaderboard Row Highlights for Current Segment Leaders */
.scorecard-table tr.is-leader td.cell-player-info {
  background-color: #F3F9F4 !important; /* Soft premium club green leader tint */
}

/* Subtle Row borders and backgrounds for winning each specific side */
.scorecard-table tr.row-winning-front td.cell-player-info {
  border-left: 4.5px solid #385723 !important; /* Sage/forest green accent border */
}
.scorecard-table tr.row-winning-back td.cell-player-info {
  border-left: 4.5px solid var(--color-gold) !important; /* Gold accent border */
}
.scorecard-table tr.row-winning-total td.cell-player-info {
  border-left: 4.5px solid #14321A !important; /* Deep forest accent border */
  background-color: #EEF3EF !important; /* Slightly richer green tint */
}

/* Premium Player Leader Badges Below Name */
.player-leader-badges {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.leader-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.leader-badge.front-badge {
  background-color: #E2F0D9;
  color: #385723;
  border: 1.5px solid #C5E0B4;
}

.leader-badge.back-badge {
  background-color: #FCF4E5;
  color: var(--color-gold-dark);
  border: 1.5px solid #F6E2C3;
}

.leader-badge.total-badge {
  background-color: var(--bg-birdie);
  color: var(--color-birdie);
  border: 1.5px solid #C5E0B4;
}

/* Summary Totals Cells Highlighting */
.scorecard-table td.cell-summary-leader {
  background-color: #E2F0D9 !important; /* Soft sage green highlight */
  color: #385723 !important;
  font-weight: 700 !important;
  border: 1.5px solid #C5E0B4 !important;
  animation: summaryGlow 2.5s infinite ease-in-out;
}

.scorecard-table td.cell-summary-leader.back-leader-cell {
  background-color: #FCF4E5 !important;
  color: var(--color-gold-dark) !important;
  border: 1.5px solid #F6E2C3 !important;
}

.scorecard-table td.cell-summary-leader.total-leader-cell {
  background-color: var(--bg-birdie) !important;
  color: var(--color-forest) !important;
  border: 1.5px solid #B2DFDB !important;
  font-size: 1.15rem;
}

@keyframes summaryGlow {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Score Drawer Done Button State Override */
.btn.btn-done {
  background-color: var(--color-forest) !important;
  color: var(--color-white) !important;
  border-color: var(--color-gold) !important;
  box-shadow: 0 4px 10px rgba(20, 50, 26, 0.2) !important;
}

.btn.btn-done i {
  color: var(--color-gold) !important;
}

/* Premium Interactive Games Configurations Selector Bar */
/* ── Shared selector section label row ───────────────────────────────────── */
.section-label-row {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

/* ── Holes-to-play wrapper ───────────────────────────────────────────────── */
.round-format-wrapper {
  margin-bottom: 10px;
}

/* ── Shared 3-column button grid (holes, fairway sync, etc.) ─────────────── */
.round-format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

/* Holes to play only (not Fairway Sync): compact tiles, ~44px min for touch targets */
.round-format-wrapper .round-format-grid .game-select-btn {
  min-height: 44px;
  padding: 6px 4px 5px;
  gap: 2px;
  font-size: 0.62rem;
  border-bottom-width: 2px;
}

.round-format-wrapper .round-format-grid .game-select-btn i {
  font-size: 0.82rem;
}

.round-format-wrapper .round-format-grid .game-select-btn.active {
  border-bottom-width: 2px !important;
}

.round-format-wrapper .round-format-grid.game-select-grid--green .game-select-btn.active {
  border-bottom-width: 2px !important;
}

/* ── Game selector grid: 3 columns; compact horizontal tiles ─ */
.game-selector-grid {
  --stc-game-tile-min-h: 4.125rem; /* ~2 lines + padding — keeps every tile one height */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
  width: 100%;
  align-items: stretch;
  grid-auto-rows: minmax(var(--stc-game-tile-min-h), auto);
}

/* ── Shared button shell ─────────────────────────────────────────────────── */
.game-select-btn {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 4px 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  position: relative;
  box-shadow: var(--shadow-sm);
  border-bottom: 2.5px solid var(--color-border);
  min-height: 72px;
}

.game-select-btn:active {
  transform: scale(0.95);
}

.game-select-btn i {
  font-size: 1.25rem;
  color: var(--color-muted);
  transition: var(--transition);
}

/* ── Active: selected panel/mode (gold accent) ───────────────────────────── */
.game-select-btn.active {
  border-color: var(--color-gold) !important;
  border-bottom: 3px solid var(--color-gold) !important;
  background-color: var(--bg-cream-card) !important;
  color: var(--color-forest) !important;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.game-select-btn.active i {
  color: var(--color-gold) !important;
  transform: scale(1.1);
}

/* ── Active + game enabled: green outline ────────────────────────────────── */
.game-select-btn.active.is-enabled {
  border-color: #2A6E3B !important;
  border-bottom-color: #2A6E3B !important;
  box-shadow: 0 0 0 1.5px #2A6E3B, var(--shadow-md);
}

/* ── Green-mode grids (Fairway Sync, Holes to Play) ─────────────────────── */
/* For these selectors the active button IS the choice — highlight it green  */
.game-select-grid--green .game-select-btn.active {
  border-color: #2A6E3B !important;
  border-bottom: 3px solid #2A6E3B !important;
  background-color: var(--bg-cream-card) !important;
  color: var(--color-forest) !important;
  font-weight: 700;
  box-shadow: 0 0 0 1.5px #2A6E3B, var(--shadow-md);
}

.game-select-grid--green .game-select-btn.active i {
  color: #2A6E3B !important;
  transform: scale(1.1);
}

/* Game selection grid only: icon + label centered as a group in the tile */
.game-selector-grid .game-select-btn {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  min-height: var(--stc-game-tile-min-h, 4.125rem);
  height: auto;
  padding: 7px 10px;
  gap: 8px;
  font-size: 0.72rem;
}

.game-selector-grid .game-select-btn i {
  font-size: 1.05rem;
  flex-shrink: 0;
  align-self: center;
}

.game-selector-grid .game-select-btn > i + span {
  text-align: center;
  line-height: 1.25;
  min-width: 0;
  max-width: calc(100% - 2.25rem);
  align-self: center;
}

.game-selector-grid .game-select-indicator {
  /* Selection outline is enough; hide corner dot in game picker */
  display: none !important;
}

/* Junk: base rate + points; shown when junk toggle is On */
.stc-junk-dots-values-wrap {
  margin-top: 10px;
}
.stc-junk-dots-values-wrap.hidden {
  display: none !important;
}
.stc-junk-dots-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
@media (min-width: 480px) {
  .stc-junk-dots-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Junk: label row + ? help (tooltip / screen reader) */
.stc-junk-pt-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.stc-junk-pt-label-row label {
  margin-bottom: 0;
}
/* Same width as .stc-inline-help-icon so Base lines up with Greenie / Sandie / Snake */
.stc-junk-pt-label-spacer {
  flex-shrink: 0;
  width: 28px;
  min-width: 28px;
  height: 28px;
  pointer-events: none;
}

.stc-inline-help-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.stc-inline-help-icon:hover,
.stc-inline-help-icon:focus-visible {
  color: var(--color-forest-medium);
  background: rgba(42, 110, 59, 0.08);
  outline: none;
}

/* Junk setup: tap-friendly help dialog (native <dialog>; no hover required) */
.stc-junk-help-dialog {
  max-width: calc(100vw - 1.5rem);
  width: min(22rem, calc(100vw - 1.5rem));
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg, 12px);
  background: var(--color-white);
  box-shadow: var(--shadow-md, 0 8px 28px rgba(0, 0, 0, 0.18));
  color: var(--color-charcoal);
}
.stc-junk-help-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
body.dark-mode .stc-junk-help-dialog {
  background: var(--bg-cream-card, #2a2a28);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.stc-junk-help-dialog__form {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.stc-junk-help-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px 0 16px;
}
.stc-junk-help-dialog__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1.25;
  font-family: var(--font-sans);
}
body.dark-mode .stc-junk-help-dialog__title {
  color: var(--color-gold, #c9a227);
}
.stc-junk-help-dialog__close {
  flex-shrink: 0;
  margin-top: -2px;
}
.stc-junk-help-dialog__body {
  margin: 0;
  padding: 12px 16px 4px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-charcoal);
  max-height: min(55vh, 22rem);
  overflow-y: auto;
  font-family: var(--font-sans);
}
body.dark-mode .stc-junk-help-dialog__body {
  color: rgba(255, 255, 255, 0.88);
}
.stc-junk-help-dialog__foot {
  padding: 12px 16px 16px;
}

/* ── Toggle buttons (replaces checkboxes for boolean options) ── */
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  opacity: 0.72;
}
.toggle-btn:active { transform: scale(0.96); }
.toggle-btn.active {
  border-color: #2A6E3B;
  background-color: var(--bg-cream-card);
  color: var(--color-forest);
  font-weight: 700;
  opacity: 1;
  box-shadow: 0 0 0 1px #2A6E3B, var(--shadow-sm);
}
.toggle-btn.active i { color: #2A6E3B; }

/* Press-mode selector: horizontal row of toggle buttons */
.press-mode-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Setup: icon + short label picklists (game scoring / format — replaces <select>) */
.stc-format-picklist .stc-picklist-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 4.6rem;
  min-height: 3.2rem;
  padding: 6px 8px;
  line-height: 1.12;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
}
.stc-format-picklist .stc-picklist-btn__icon {
  font-size: 1.12rem;
  line-height: 1;
  opacity: 0.9;
}
.stc-format-picklist--dense .stc-picklist-btn {
  min-width: 3.9rem;
  min-height: 3rem;
  padding: 5px 5px;
  font-size: 0.68rem;
}
.stc-format-picklist--dense .stc-picklist-btn__icon {
  font-size: 1.02rem;
}
.stc-format-picklist--balls .stc-picklist-btn {
  min-width: 2.65rem;
  padding-left: 4px;
  padding-right: 4px;
}
.stc-format-picklist .stc-picklist-btn.stc-tier-locked {
  opacity: 0.55;
}

/* Full-width picklist: equal columns across the card (Nassau scoring + stroke/match formats) */
.stc-format-picklist.stc-format-picklist--fill {
  width: 100%;
  flex-wrap: nowrap;
}
.stc-format-picklist.stc-format-picklist--fill .stc-picklist-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

/* Nassau format picklist: duo icons + 1 v 2 / team vs (Font Awesome fa-stack for paired users) */
.stc-picklist-icon-duo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  color: inherit;
}
.stc-picklist-icon-duo .fa-user {
  font-size: 1.05em;
}
.stc-picklist-icon-duo .fa-calculator,
.stc-picklist-icon-duo .fa-golf-ball-tee {
  font-size: 0.78em;
  opacity: 0.9;
}
.stc-picklist-vs-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  min-height: 1.35rem;
}
/* 1v2: solo + pair read at the same visual scale */
.stc-picklist-vs-row--1v2 .stc-picklist-user-solo {
  font-size: 1rem;
}
.stc-picklist-vs-row--1v2 .stc-picklist-team-cluster--2 .fa-user {
  font-size: 0.9rem;
}
.stc-picklist-vs-row--1v2 .stc-picklist-team-cluster--2 .fa-user + .fa-user {
  margin-left: -0.52em;
}
.stc-picklist-user-solo {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stc-picklist-vs-mark {
  font-size: 0.55rem;
  font-weight: 800;
  opacity: 0.72;
  padding: 0 1px;
  text-transform: lowercase;
  line-height: 1;
  align-self: center;
}
.stc-picklist-team-vs-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  min-height: 1.35rem;
}
/* N vs M: same cap height as solo user row; icons sized in rem (not parent em) */
.stc-picklist-team-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  height: 1.35rem;
}
.stc-picklist-team-cluster .fa-user {
  font-size: 0.84rem;
  line-height: 1;
  display: block;
  opacity: 0.95;
}
.stc-picklist-team-cluster--2 .fa-user + .fa-user {
  margin-left: -0.48em;
}
.stc-picklist-team-cluster--3 .fa-user {
  font-size: 0.78rem;
}
.stc-picklist-team-cluster--3 .fa-user + .fa-user {
  margin-left: -0.42em;
}
#matchplay-format.stc-format-picklist--dense .stc-picklist-btn {
  min-width: 4.25rem;
}

/* Nassau setup: push ties full width under match format; press lines + press setting on one row below */
.nassau-press-push-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.nassau-press-push-row__ties,
.nassau-press-push-row__press {
  min-width: 0;
  width: 100%;
}
.nassau-press-combined-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.nassau-press-lines-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.nassau-press-lines-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-medium);
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}
body.dark-mode .nassau-press-lines-heading {
  color: rgba(255, 255, 255, 0.88);
}
.nassau-press-lines-group #nassau-press-mode-btns {
  flex: 1 1 auto;
  margin-top: 0;
  min-width: 0;
}
.nassau-press-trigger-row--toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex: 0 1 auto;
}
.nassau-press-trigger-row--toolbar .nassau-press-trigger-row__label {
  margin: 0;
  flex: 0 0 auto;
}
.nassau-press-trigger-row--toolbar .stc-inline-help-icon {
  flex-shrink: 0;
}
.nassau-press-trigger-row--toolbar .nassau-press-down-btns {
  margin-top: 0;
  flex: 0 0 auto;
}
.nassau-press-push-row__ties-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nassau-press-push-row__ties .toggle-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.nassau-press-trigger-row__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-medium);
}
body.dark-mode .nassau-press-trigger-row__label {
  color: rgba(255, 255, 255, 0.9);
}
.nassau-press-trigger-row .nassau-press-down-btns {
  margin-top: 0;
}
.nassau-press-trigger-row--inline {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

@media (max-width: 560px) {
  .nassau-press-combined-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .nassau-press-trigger-row--toolbar {
    justify-content: flex-start;
  }
}

/* Live game enabled indicator dot & icon highlighting */
.game-select-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background-color: transparent;
  border-radius: 50%;
  transition: var(--transition);
}

.game-select-btn.is-enabled .game-select-indicator {
  background-color: #2A6E3B; /* Fresh active green dot */
  box-shadow: 0 0 4px rgba(42, 110, 59, 0.6);
}

.game-select-btn.is-enabled i {
  color: var(--color-forest-medium) !important;
}

.game-select-btn.active.is-enabled .game-select-indicator {
  background-color: #2A6E3B;
  box-shadow: 0 0 6px rgba(42, 110, 59, 0.9);
}

/* Nested Sub-configurations Panel Display */
.game-config-panel {
  animation: panelFade 0.25s ease-out;
}

.game-config-panel.hidden {
  display: none !important;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Active Game Indicator Banner above Scorecard */
.active-game-indicator {
  background-color: var(--bg-cream-card-light);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--color-forest); /* Premium Clubhouse solid left border */
}

/* Premium Gold Dashed Segment Switcher Container */
.grid-segment-switcher-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.segment-switcher-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  width: 100%;
}

.segment-switcher-toolbar--solo-collapse {
  justify-content: flex-end;
}

.segment-switcher-shell--nine-hole-ticker .segment-switcher-toolbar {
  display: none;
}

.segment-switcher-active-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.segment-ticker-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.segment-ticker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--bg-cream-card-light);
  color: var(--color-forest);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.segment-ticker-pill:hover {
  border-color: var(--color-gold);
}

.segment-ticker-pill.active {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  box-shadow: 0 0 0 1px rgba(194, 162, 106, 0.35);
}

body.dark-mode .segment-ticker-pill {
  background: var(--bg-cream-card);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-charcoal);
}

body.dark-mode .segment-ticker-pill.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.segment-switcher-segments-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.segment-ticker-pills--stretch {
  width: 100%;
  flex-wrap: nowrap;
  gap: 8px;
}

.segment-ticker-pills--stretch .segment-ticker-pill {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 8px 8px;
}

.segment-ticker-pill--sixes {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
}

.segment-ticker-pill__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}

.segment-ticker-pill__primary {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.segment-ticker-pill__holes {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--color-muted);
}

body.dark-mode .segment-ticker-pill__holes {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .segment-ticker-pill.active .segment-ticker-pill__holes {
  color: rgba(212, 175, 55, 0.85);
}

#scorecard-segment-cards-wrap[hidden],
.scorecard-segment-ticker-wrap[hidden] {
  display: none !important;
}

.segment-switcher-collapse-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--bg-cream-card-light);
  color: var(--color-forest);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.segment-switcher-collapse-btn:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.segment-switcher-collapse-btn-text {
  letter-spacing: 0.02em;
}

body.dark-mode .segment-switcher-collapse-btn {
  background: var(--bg-cream-card);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-charcoal);
}

.grid-segment-switcher-container {
  background-color: rgba(194, 162, 106, 0.06);
  border: 1.5px dashed var(--color-gold);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 0;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

/* Disable hover and cursor modifications in Focus Mode switcher */
.focus-mode-switcher-disable .grid-section-card {
  cursor: default !important;
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-color: var(--color-border) !important;
}

.focus-mode-switcher-disable .grid-section-card.active {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-sm) !important;
}

/* Premium Grid Section Cards */
.grid-section-card {
  flex: 1;
  background-color: var(--bg-cream-card); /* white or creamy off-white */
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 80px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.grid-section-card__title {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-muted);
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.grid-section-card__title--sixes {
  margin-bottom: 2px;
}

.grid-section-card__sub {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

/* Fills remaining card height so main copy can sit visually centered under the label */
.grid-section-card__body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Nassau MP lines on segment cards (not ticker): match centered FRONT 9 / OVERALL labels */
.grid-section-card .nassau-mp-scorecard-line {
  text-align: center;
}

.grid-section-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.grid-section-card.active {
  border-color: var(--color-gold) !important;
  background-color: var(--bg-cream-card-light) !important;
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-sm);
}

body.dark-mode .grid-section-card {
  background-color: var(--bg-cream-card) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .grid-section-card:hover {
  border-color: var(--color-gold) !important;
}

body.dark-mode .grid-section-card.active {
  border-color: var(--color-gold) !important;
  background-color: var(--bg-cream-card-light) !important;
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-sm) !important;
}

body.dark-mode .grid-segment-switcher-container {
  background-color: rgba(21, 34, 25, 0.4) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* ESPN-style horizontal ticker when segment cards are collapsed */
.scorecard-segment-ticker-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--color-gold);
  background: linear-gradient(180deg, rgba(20, 50, 26, 0.98) 0%, rgba(12, 34, 18, 0.99) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scorecard-segment-ticker-mask {
  overflow: hidden;
  height: 42px;
  display: flex;
  align-items: center;
  /* Soft edges so a rare subpixel loop seam is less noticeable */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 12px,
    #000 calc(100% - 12px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 12px,
    #000 calc(100% - 12px),
    transparent 100%
  );
}

.scorecard-segment-ticker__track {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  /* Do not use min-width: 100% here — it can widen the track past (2 × chunk), so -50% ≠ one copy and the loop jumps. */
  animation: scorecard-segment-ticker-scroll var(--ticker-marquee-dur, 62s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.scorecard-segment-ticker__chunk {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 4rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.scorecard-segment-ticker__tee {
  color: var(--color-gold);
  font-size: 0.95rem;
  margin-right: 0.45rem;
  opacity: 0.95;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.scorecard-segment-ticker__text {
  font-family: var(--font-sans);
  /* Chunk uses nowrap; reset here so inner flex can lay out without clipping extra rows in the fixed-height mask */
  white-space: normal;
  min-width: 0;
}

.scorecard-segment-ticker__text .stc-sixes-ticker-row {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  vertical-align: middle;
}

/* Sixes: one horizontal strip (pill + matchup · status). Avoid narrow max-width — it forced two-line stacks. */
.scorecard-segment-ticker__text .stc-sixes-ticker-row .ticker-segment-single-unit--sixes {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
  width: auto !important;
  max-width: none;
  flex: 0 0 auto;
  text-align: left;
}

.scorecard-segment-ticker__text .stc-sixes-ticker-row .ticker-segment-single-unit:not(.ticker-segment-single-unit--sixes) {
  width: auto !important;
  max-width: min(11.5rem, 34vw);
  min-width: 0;
  flex: 0 1 auto;
}

.scorecard-segment-ticker__text .stc-sixes-ticker-body {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.scorecard-segment-ticker__text .stc-sixes-ticker-body--empty {
  opacity: 0.65;
  font-weight: 600;
}

.scorecard-segment-ticker__text .stc-sixes-ticker-vs {
  color: rgba(255, 255, 255, 0.98);
  white-space: nowrap;
}

.scorecard-segment-ticker__text .stc-sixes-ticker-status {
  color: rgba(220, 238, 226, 0.96);
  white-space: nowrap;
}

.scorecard-segment-ticker__text .stc-sixes-ticker-sep {
  opacity: 0.5;
  flex-shrink: 0;
  font-weight: 800;
}

.scorecard-segment-ticker__text .stc-sixes-ticker-row .ticker-between-match-delim {
  align-self: center;
}

.scorecard-segment-ticker__text .ticker-match-unit {
  display: inline-block;
  padding: 0 3px;
}

.scorecard-segment-ticker__text .ticker-match-unit--rich {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  max-width: none;
}

/* One Nassau RR segment (Front / Back / Overall): inline press stacks for each matchup */
.scorecard-segment-ticker__text .ticker-match-unit--nassau-rr-segment .ticker-nassau-rr-root {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  max-width: none;
}

.scorecard-segment-ticker__text .ticker-match-unit--nassau-rr-segment .ticker-nassau-rr-root .ticker-rr-match {
  margin-bottom: 0;
}

.scorecard-segment-ticker__text .ticker-match-unit--leader {
  color: var(--color-gold) !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

/* Shared player leaderboard strip in segment ticker (Skins, Dots, stroke fallback, play-along rows, etc.) */
.scorecard-segment-ticker__text .ticker-match-unit--player-board .ticker-player-leaderboard {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 0.95rem;
  row-gap: 0.25rem;
  width: auto !important;
  max-width: none;
}

.scorecard-segment-ticker__text .ticker-match-unit--player-board .ticker-player-row {
  white-space: nowrap;
  /* Inline styles use theme charcoal; on the dark ticker strip (light mode) that hides everyone but the gold leader. */
  color: rgba(236, 232, 220, 0.9) !important;
}

.scorecard-segment-ticker__text .ticker-match-unit--player-board .ticker-player-row.ticker-player-row--leader {
  color: var(--color-gold-dark) !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.28);
}

body.dark-mode .scorecard-segment-ticker__text .ticker-match-unit--player-board .ticker-player-row.ticker-player-row--leader {
  color: var(--color-gold) !important;
}

.ticker-match-gap {
  display: inline-block;
  width: 20px;
  height: 1em;
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
}

.ticker-match-gap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 2px rgba(20, 50, 26, 0.95);
}

/* Between different matchups in the segment ticker (replaces gold dot for that role). */
.ticker-between-match-delim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 2ch;
  flex-shrink: 0;
  color: var(--color-gold);
  opacity: 0.92;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.35));
}

.ticker-between-match-delim i {
  font-size: 0.82rem;
}

/* Nassau stroke-medal (individual low net): scope pill + spaced player chips in segment ticker */
.scorecard-segment-ticker__text .ticker-nassau-medal-segment {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  max-width: none;
}

.scorecard-segment-ticker__text .ticker-nassau-medal-segment__inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  row-gap: 0.25rem;
}

.scorecard-segment-ticker__text .ticker-nassau-medal-segment .nassau-press-scope-pill--ticker-main {
  flex-shrink: 0;
}

.scorecard-segment-ticker__text .ticker-nassau-medal-segment__scores {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Ticker strip is always dark forest — do not use theme charcoal here (light mode charcoal vanishes on green). */
.scorecard-segment-ticker__text .ticker-nassau-medal-player {
  color: rgba(236, 232, 220, 0.9);
  white-space: nowrap;
}

.scorecard-segment-ticker__text .ticker-nassau-medal-player--leader {
  color: var(--color-gold-dark);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.28);
}

body.dark-mode .scorecard-segment-ticker__text .ticker-nassau-medal-player--leader {
  color: var(--color-gold);
}

/* Segment summary card (non-ticker): stack medal rows when cards are visible */
.grid-segment-switcher-shell .grid-section-card .ticker-nassau-medal-segment__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.grid-segment-switcher-shell .grid-section-card .ticker-nassau-medal-segment__scores {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

/* Segment cards: Nassau stroke/medal uses `ticker-player-leaderboard` (one row per player or team). */
.grid-segment-switcher-shell .grid-section-card .ticker-player-leaderboard {
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  text-align: center;
}

.grid-segment-switcher-shell .grid-section-card .ticker-player-row {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Space between repeated marquee chunks (avoid dot + lead icon looking like a double delimiter). */
.ticker-marquee-repeat-spacer {
  display: inline-block;
  width: 2.75rem;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Nassau / match-play ticker: full names + press lines */
.ticker-rr-names {
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1em 0.35em;
}

.ticker-nassau-single-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.65em;
  row-gap: 0.2em;
}

/* Round-robin Nassau ticker: each unit is scope/hole pill — matchup — score; delimiter between units */
.ticker-rr-match--nassau-rr-presses {
  column-gap: 0.5em;
}

.scorecard-segment-ticker__text .nassau-mp-ticker-rr-dash {
  display: inline;
  margin: 0 0.08em;
  font-weight: 600;
  opacity: 0.72;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72em;
}

.scorecard-segment-ticker__text .nassau-mp-ticker-rr-matchup-inline {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-gold-dark, #8a7349);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.scorecard-segment-ticker__text .nassau-mp-ticker-rr-score-part {
  font-weight: 700;
  white-space: nowrap;
}

.nassau-mp-ticker-press-inter-delimiter--rr-hero {
  margin: 0 0.5em;
  opacity: 0.92;
}

.nassau-mp-ticker-press-inter-delimiter--rr-hero::before {
  content: "|";
  display: inline-block;
  font-weight: 200;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2em;
  opacity: 0.88;
  color: var(--color-gold, #c4a86a);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.ticker-nassau-single-block .ticker-rr-names {
  margin-bottom: 0;
}

/* Soft separator between main name row and press stack (and RR rows). */
.ticker-rr-main-press-sep {
  display: inline;
  flex-shrink: 0;
  margin: 0 0.38em 0 0.42em;
  padding: 0;
  width: auto;
  height: auto;
  border: none;
  vertical-align: baseline;
  opacity: 0.78;
  font-weight: 700;
  color: var(--color-gold-dark);
}
.ticker-rr-main-press-sep::before {
  content: "·";
}

/* Between inline press segments in the Nassau ticker. */
.nassau-mp-ticker-press-inter-delimiter {
  display: inline;
  flex-shrink: 0;
  margin: 0 0.32em;
  padding: 0;
  width: auto;
  height: auto;
  border: none;
  vertical-align: baseline;
  opacity: 0.72;
  font-weight: 700;
  color: var(--color-gold-dark);
}
.nassau-mp-ticker-press-inter-delimiter::before {
  content: "·";
}

.nassau-mp-ticker-press-segment {
  display: inline;
  white-space: nowrap;
}

/* Space after press label chips in ticker. */
.nassau-mp-ticker-press-segment .nassau-press-chip-wrap,
.nassau-mp-ticker-press-segment .nassau-press-scope-pill {
  margin-right: 0.28em;
}

.nassau-mp-ticker-lines--press-inline {
  display: inline;
}

.nassau-mp-ticker-press-run {
  font-weight: 700;
}

/* Stroke-gap Nassau ticker: flowing name:score · name:score · Press N · … */
.nassau-stroke-gap-ticker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1em 0.2em;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.35;
}

.nassau-stroke-ticker-dot {
  display: inline;
  margin: 0 0.28em;
  font-weight: 800;
  color: var(--color-gold-dark);
  opacity: 0.85;
}

/* Nassau auto-press: gold “Press N” + hole poker chip (ticker, scorecard, settle). */
.nassau-press-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.nassau-press-chip {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gold-dark);
  white-space: nowrap;
}

.nassau-press-chip-hole {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  height: 1.45em;
  padding: 0 5px;
  font-size: 0.68em;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  background: linear-gradient(165deg, #e8d4a8 0%, var(--color-gold) 40%, var(--color-gold-dark) 100%);
  color: #1a1a1c;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.nassau-press-chip-hole--na {
  opacity: 0.55;
  font-size: 0.55em;
}

/* Ticker: one capsule — segment + hole (matches Main pill language, gold frame). */
.nassau-press-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  padding: 3px 4px 3px 10px;
  font-weight: 800;
  font-size: 0.72em;
  line-height: 1.1;
  border-radius: 999px;
  border: 1px solid var(--color-gold-dark, #8a7349);
  background: linear-gradient(165deg, rgba(255, 248, 230, 0.95) 0%, rgba(232, 212, 168, 0.35) 45%, rgba(194, 162, 106, 0.22) 100%);
  color: var(--color-charcoal, #1a1a1c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.nassau-press-scope-pill__seg {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: var(--color-gold-dark, #8a7349);
}

.nassau-press-scope-pill__sep {
  width: 1px;
  align-self: stretch;
  min-height: 1em;
  margin: 1px 0;
  background: rgba(138, 115, 73, 0.35);
  flex-shrink: 0;
}

.nassau-press-scope-pill__hole {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  height: 1.45em;
  padding: 0 5px;
  margin-right: 1px;
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  background: linear-gradient(165deg, #e8d4a8 0%, var(--color-gold) 40%, var(--color-gold-dark) 100%);
  color: #1a1a1c;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.nassau-press-scope-pill__hole--na {
  opacity: 0.55;
  font-size: 0.75em;
}

/* “Main” tag inside segment scope pill (ticker: Front + Main, etc.) — same footprint as hole chip. */
.nassau-press-scope-pill__main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  height: 1.45em;
  padding: 0 6px;
  margin-right: 1px;
  font-size: 0.58em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(165deg, #e8d4a8 0%, var(--color-gold) 40%, var(--color-gold-dark) 100%);
  color: #1a1a1c;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.nassau-stroke-gap-ticker-row .nassau-press-scope-pill--ticker-main {
  margin-right: 0.3em;
}

/* Ticker strip: green-forward capsules (less white / cream than default pills). */
.scorecard-segment-ticker__text .nassau-press-scope-pill {
  background: linear-gradient(165deg, rgba(34, 56, 40, 0.94) 0%, rgba(24, 44, 32, 0.92) 48%, rgba(18, 36, 26, 0.9) 100%);
  border-color: rgba(100, 152, 112, 0.48);
  color: rgba(236, 246, 238, 0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(72, 118, 86, 0.2);
}

.scorecard-segment-ticker__text .nassau-press-scope-pill__seg {
  color: rgba(188, 226, 198, 0.96);
}

.scorecard-segment-ticker__text .nassau-press-scope-pill__sep {
  background: rgba(120, 168, 132, 0.38);
}

.scorecard-segment-ticker__text .nassau-press-scope-pill__hole,
.scorecard-segment-ticker__text .nassau-press-scope-pill__main {
  background: linear-gradient(165deg, rgba(52, 88, 62, 0.95) 0%, rgba(36, 62, 44, 0.92) 55%, rgba(28, 48, 34, 0.9) 100%);
  color: rgba(236, 246, 238, 0.96);
  border-color: rgba(72, 118, 86, 0.45);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(120, 168, 132, 0.15);
}

.scorecard-segment-ticker__text .nassau-press-main-pill {
  color: rgba(236, 246, 238, 0.96);
  background: rgba(26, 44, 32, 0.9);
  border-color: rgba(100, 152, 112, 0.45);
  box-shadow: inset 0 1px 0 rgba(72, 118, 86, 0.2);
}

body.dark-mode .scorecard-segment-ticker__text .nassau-press-scope-pill {
  background: linear-gradient(165deg, rgba(28, 48, 34, 0.96) 0%, rgba(18, 34, 26, 0.94) 100%);
  border-color: rgba(110, 165, 125, 0.42);
  color: rgba(240, 248, 242, 0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(64, 108, 78, 0.18);
}

body.dark-mode .scorecard-segment-ticker__text .nassau-press-scope-pill__seg {
  color: rgba(196, 230, 206, 0.95);
}

body.dark-mode .scorecard-segment-ticker__text .nassau-press-scope-pill__hole,
body.dark-mode .scorecard-segment-ticker__text .nassau-press-scope-pill__main {
  background: linear-gradient(165deg, rgba(34, 56, 40, 0.98) 0%, rgba(22, 40, 30, 0.95) 100%);
  border-color: rgba(100, 155, 118, 0.42);
  color: rgba(240, 248, 242, 0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(80, 130, 95, 0.12);
}

body.dark-mode .scorecard-segment-ticker__text .nassau-press-main-pill {
  background: rgba(22, 38, 28, 0.92);
  border-color: rgba(110, 165, 125, 0.4);
  color: rgba(240, 248, 242, 0.96);
}

body.dark-mode .nassau-press-scope-pill {
  background: linear-gradient(165deg, rgba(48, 44, 38, 0.98) 0%, rgba(32, 30, 26, 0.95) 100%);
  border-color: rgba(212, 175, 105, 0.45);
  color: rgba(245, 240, 232, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .nassau-press-scope-pill__seg {
  color: rgba(232, 212, 168, 0.95);
}

body.dark-mode .nassau-press-scope-pill__sep {
  background: rgba(255, 255, 255, 0.12);
}

.nassau-press-main-pill {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  background: rgba(194, 162, 106, 0.2);
  border: 1px solid var(--color-gold-dark);
  border-radius: 6px;
  padding: 2px 8px;
}

.nassau-press-main-pill--wide {
  letter-spacing: 0.03em;
}

/* Settle tab bet cards (dark panel): light text on Main pill + chips */
.nassau-mp-bet-box-title .nassau-press-main-pill {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(194, 162, 106, 0.18);
  border-color: rgba(194, 162, 106, 0.55);
}

.nassau-mp-bet-box-title .nassau-press-chip {
  color: var(--color-gold);
}

.nassau-mp-bet-box-title .nassau-press-chip-hole {
  color: #1a1a1c;
}

.nassau-stroke-pair {
  white-space: nowrap;
}

.ticker-nassau-rr-root .ticker-rr-match {
  margin-bottom: 0.45em;
}

.ticker-nassau-rr-root .ticker-rr-match:last-child {
  margin-bottom: 0;
}

.ticker-nassau-rr-root .ticker-rr-names {
  margin-bottom: 0;
}

.ticker-slash {
  font-weight: 700;
  opacity: 0.75;
  margin: 0 0.1em;
}

.ticker-paren-status {
  font-weight: 800;
  white-space: nowrap;
}

.ticker-vs {
  font-weight: 600;
  opacity: 0.8;
  margin: 0 0.25em;
}

/* Las Vegas segment ticker — single horizontal strip: scope pill + (names + status) */
.ticker-vegas-segment-unit .ticker-vegas-unit-inner {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  width: auto;
  max-width: none;
  text-align: left;
}

.ticker-vegas-core {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  min-width: 0;
}

.ticker-vegas-names {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.2em 0.45em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.ticker-vegas-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.25;
  white-space: nowrap;
}

.ticker-vegas-status--muted {
  color: var(--color-muted);
}

.ticker-vegas-money {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35em 0.45em;
  white-space: nowrap;
}

.ticker-vegas-crown {
  font-size: 0.62rem;
  color: var(--color-gold-dark);
}

.ticker-vegas-lead-name {
  font-weight: 700;
}

.ticker-vegas-lead-amt {
  font-weight: 800;
  color: var(--color-gold-dark);
}

.scorecard-segment-ticker__text .ticker-match-unit--segment-card .ticker-vegas-segment-unit {
  min-width: 0;
  max-width: none;
}

.scorecard-segment-ticker__text .ticker-vegas-segment-unit .ticker-vegas-unit-inner {
  gap: 0.4rem 0.55rem;
}

.scorecard-segment-ticker__text .ticker-vegas-names {
  color: rgba(236, 246, 238, 0.88);
}

.scorecard-segment-ticker__text .ticker-vegas-status {
  color: rgba(255, 255, 255, 0.94);
}

.scorecard-segment-ticker__text .ticker-vegas-status--muted {
  color: rgba(255, 255, 255, 0.58);
}

.scorecard-segment-ticker__text .ticker-vegas-lead-name {
  color: rgba(255, 248, 230, 0.95);
}

.scorecard-segment-ticker__text .ticker-vegas-lead-amt {
  color: var(--color-gold);
}

/* Match play (non–round-robin) ticker: scope pill + status on one row */
.scorecard-segment-ticker__text .ticker-strip-mp-unit {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.45rem !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
}

body.dark-mode .ticker-vegas-status:not(.ticker-vegas-status--muted) {
  color: var(--color-gold);
}

body.dark-mode .ticker-vegas-names {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .ticker-vegas-lead-amt {
  color: var(--color-gold);
}

.nassau-mp-ticker-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nassau-mp-ticker-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em 0.55em;
}

.nassau-mp-ticker-line-label {
  font-weight: 800;
  flex-shrink: 0;
}

.nassau-mp-ticker-line-val {
  font-weight: 700;
}

.nassau-mp-ticker-line--plain .nassau-mp-ticker-line-val {
  font-weight: 700;
}

.ticker-rr-status-line {
  font-weight: 700;
}

.segment-switcher-shell--ticker-only .segment-switcher-collapse-btn {
  display: none !important;
}

.segment-switcher-shell--ticker-only #scorecard-segment-cards-wrap {
  display: none !important;
}

/** Cards (main segment summaries) stacked above the scrolling ticker. */
.segment-switcher-shell--cards-with-ticker .segment-switcher-toolbar {
  display: none !important;
}

.segment-switcher-shell--cards-with-ticker .grid-segment-switcher-container {
  margin-bottom: 10px;
}

.scorecard-ticker-sa-line {
  font-size: 0.7rem;
  line-height: 1.35;
  white-space: normal;
}

.scorecard-ticker-sa-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.scorecard-ticker-sa-line + .scorecard-ticker-sa-line {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .scorecard-ticker-sa-line + .scorecard-ticker-sa-line {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.stc-sixes-card-lines {
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: center;
  line-height: 1.25;
  color: var(--color-charcoal);
}

.stc-sixes-card-lines--empty {
  color: var(--color-muted);
  font-weight: 600;
}

.stc-sixes-card-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticker-vegas-card-compact {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: var(--color-charcoal);
  width: 100%;
  padding: 0 6px;
}

.ticker-vegas-card-compact__line {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticker-vegas-card-compact--muted {
  color: var(--color-muted);
  font-weight: 600;
}

body.dark-mode .stc-sixes-card-lines,
body.dark-mode .ticker-vegas-card-compact:not(.ticker-vegas-card-compact--muted) {
  color: var(--color-charcoal);
}

body.dark-mode .ticker-vegas-card-compact--muted,
body.dark-mode .stc-sixes-card-lines--empty {
  color: var(--color-muted);
}

.segment-switcher-shell--collapsed .segment-switcher-toolbar {
  margin-bottom: 6px;
}

@keyframes scorecard-segment-ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.scorecard-segment-ticker-mask:hover .scorecard-segment-ticker__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .scorecard-segment-ticker__track {
    animation: none;
    padding-left: 10px;
    padding-right: 10px;
  }

  .scorecard-segment-ticker-mask {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

body.dark-mode .active-game-indicator {
  background-color: var(--bg-cream-card) !important;
  border-color: var(--color-border) !important;
  border-left: 5px solid var(--color-gold) !important; /* Gold trim in dark mode */
}

body.dark-mode .active-badge {
  background-color: var(--color-gold) !important;
  color: #121A15 !important; /* Premium pitch-black deep slate text for high contrast */
}

body.dark-mode .active-game-title {
  color: var(--color-charcoal) !important;
}

body.dark-mode .active-game-title i {
  color: var(--color-gold) !important;
}

.active-indicator-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.active-badge {
  background-color: var(--color-forest);
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.active-game-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-game-title i {
  font-size: 1.05rem;
  color: var(--color-gold);
}

/* 2v2 Scorecard Team Spacing Spacer Row */
.scorecard-table tr.scorecard-team-spacer td {
  height: 12px;
  background-color: var(--bg-cream-canvas) !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* 2v2 Team Row Soft Visual Tints */
.scorecard-table tr.row-team-1 td.cell-player-info {
  background-color: #F4FAF5 !important; /* Solid opaque premium soft green to shield scrolling cells */
}
.scorecard-table tr.row-team-2 td.cell-player-info {
  background-color: #FAF6EF !important; /* Solid opaque premium soft gold to shield scrolling cells */
}

/* 2v2 Player Team Badges */
.team-badge {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.team-badge.team-1-badge {
  background-color: #E2F0D9;
  color: #385723;
  border: 1px solid #C5E0B4;
}

.team-badge.team-2-badge {
  background-color: #FCF4E5;
  color: var(--color-gold-dark);
  border: 1px solid #F6E2C3;
}

/* Premium Rotated Vertical Leader/Winner Bar Styles */
.scorecard-table td.cell-player-info.has-leader-bar:not(.has-team-bar) {
  padding-left: 32px !important;
}
/* Team stripe (left) + optional leader stripe — padding matches combined strip width */
.scorecard-table td.cell-player-info.has-team-bar:not(.has-leader-bar) {
  padding-left: 32px !important;
}
.scorecard-table td.cell-player-info.has-team-bar.has-leader-bar {
  padding-left: 56px !important;
}
.scorecard-table td.cell-player-info.team-leader-first {
  z-index: 35 !important; /* Stack above the adjacent teammate cell to prevent background mask overlap */
}

.scorecard-table td.cell-player-info.team-bar-first:not(.team-leader-first) {
  z-index: 34 !important; /* Spanning team stripe above next sticky name cell (leader-first keeps 35) */
}

.scorecard-table .scorecard-player-name-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Vertical team label (2v2 / team Nassau grid): spans both teammate rows; frees horizontal name space */
.vertical-team-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: auto;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 4;
  box-shadow: 1px 0 3px rgba(28, 43, 33, 0.08);
}

.vertical-team-bar.team-team-bar {
  min-height: 100%;
}

.vertical-team-bar--team1 {
  background: linear-gradient(180deg, #e2f0d9 0%, #c5e0b4 100%);
  color: #385723;
  border-right: 1px solid #a8cf92;
}

.vertical-team-bar--team2 {
  background: linear-gradient(180deg, #fcf4e5 0%, #f0e4c8 100%);
  color: var(--color-gold-dark);
  border-right: 1px solid #e8d4b0;
}

body.dark-mode .scorecard-table .vertical-team-bar--team1 {
  background: linear-gradient(180deg, #174223 0%, #11331a 100%);
  color: #c8eed2;
  border-right-color: #2a6e3b;
}

body.dark-mode .scorecard-table .vertical-team-bar--team2 {
  background: linear-gradient(180deg, #3a2d12 0%, #2d200e 100%);
  color: #e8d4a8;
  border-right-color: #8a7038;
}

.vertical-team-bar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1;
}

.scorecard-table td.cell-player-info.has-team-bar .vertical-leader-bar {
  left: 22px;
}

.vertical-leader-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1.5px; /* Extend slightly to seamlessly overlay borders between adjacent teammate rows */
  width: 22px;
  background: linear-gradient(180deg, var(--color-forest) 0%, var(--color-forest-medium) 100%);
  border-right: 2px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
  box-shadow: 1px 0 4px rgba(20, 50, 26, 0.2);
}

/* Two-row span: height from syncScorecardTeamLeaderBarHeights() (sum of tr heights; CSS 200% used first cell only and spilled). */
.vertical-leader-bar.team-leader-bar {
  bottom: auto !important;
  min-height: 100%;
}

.vertical-leader-bar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1;
}

/* Tactile Score Bubble Bounce Animation */
@keyframes scoreBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.score-bounce-active {
  animation: scoreBounce 0.18s ease-in-out;
}

/* Premium Highlighted Team Best Ball Row Styles */
.scorecard-table tr.bestball-row {
  background-color: #F2ECE1 !important;
  color: var(--color-forest) !important;
  font-weight: 700;
}
.scorecard-table tr.bestball-row td {
  border-top: 1.5px solid var(--color-gold) !important;
  border-bottom: 1.5px solid var(--color-gold) !important;
  font-weight: 700;
  padding: 10px 4px;
}
.scorecard-table tr.bestball-row td.cell-player-info {
  background-color: #EADFC9 !important; /* Slightly darker gold/cream for sticky column */
  border-right: 2px solid var(--color-gold) !important;
}

/* Subscript net score style for handicap stroke bumps */
.scorecard-table td.cell-score .cell-net-subscript {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  line-height: 1;
  z-index: 4;
}

/* Premium country-club green square border around scorecard cells used in Best Ball */
.scorecard-table td.cell-score.is-bestball-used {
  outline: 2px solid #2A6E3B !important; /* Rich active green border inside the score box */
  outline-offset: -2px;
  background-color: rgba(42, 110, 59, 0.05) !important; /* Extremely soft green background tint */
}

/* Premium country-club styling for Opponent Group best ball scorecard row */
.scorecard-table tr.opponent-row {
  background-color: rgba(194, 162, 106, 0.04) !important;
  font-weight: 600;
}
.scorecard-table tr.opponent-row td.cell-player-info {
  background-color: #FAF5EA !important;
  border-right: 2px solid var(--color-border) !important;
}

/* Subscript running match play up/down status indicators inside Team Best Ball cells */
.match-status-indicator {
  font-size: 0.62rem;
  font-weight: 700;
  display: block;
  margin-top: 1.5px;
  line-height: 1;
}
.match-status-indicator.status-as {
  color: var(--color-muted);
}
.match-status-indicator.status-up {
  color: #2A6E3B; /* Fresh active sage green for Up status */
}
.match-status-indicator.status-dn {
  color: #C00000; /* Coral red for Down status */
}

/* ===================================================
   MATCH PLAY — Scorecard (wager summary / settlement; no per-hole cell badges)
   =================================================== */

/* Scorecard player cell match summary label */
.mp-summary-up { color: #2A6E3B; font-weight: 700; }
.mp-summary-dn { color: #C00000; font-weight: 700; }
.mp-summary-as { color: var(--color-muted); font-weight: 600; }

/* Settlement view — hole result chips */
.mp-hole-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800; /* Extra bold for numbers on solid gold background */
  min-width: 25px;
  height: 22px;
  border-radius: 4px;
  padding: 0 4px;
  letter-spacing: 0.02em;
  background-color: var(--color-gold); /* Solid brand gold background matching the wager bubble */
  border: 1px solid var(--color-gold-dark); /* Accent dark-gold border */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); /* Subtle card-like depth */
}
.mp-chip-win {
  color: #1E4E2A !important; /* Deep forest green text for high contrast */
}
.mp-chip-loss {
  color: #990000 !important; /* Deep crimson red text for high contrast */
}
.mp-chip-tie {
  color: #003399 !important; /* Deep sapphire blue text for halved holes */
}
.mp-chip-gray {
  color: #7A7A7F !important; /* Muted gray text for unplayed or post-decided holes */
}

/* Settlement — match play holes: explicit Front / Back rows */
.mp-holes-summary {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.mp-holes-summary-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.mp-holes-summary-label {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.mp-holes-summary-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 2px;
  min-width: 0;
  padding: 0 2px 2px;
}

@media (max-width: 360px) {
  .mp-holes-summary-chips {
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
}

/* Course search modal + list — aligned with .stc-dialog-panel / showStcModal (cream card, gold frame, readable type) */
.stc-course-search-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}
.stc-course-search-modal.hidden {
  display: none !important;
}
.stc-course-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 14, 0.52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
body.dark-mode .stc-course-search-modal__backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.stc-course-search-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 20px));
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--bg-cream-card);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  border: 1.5px solid var(--color-gold);
  border-radius: 14px;
  box-shadow:
    0 4px 0 rgba(194, 162, 106, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: stc-dialog-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.stc-course-search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.stc-course-search-modal__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-charcoal);
}
.stc-course-search-modal__close {
  flex-shrink: 0;
}
.stc-course-search-modal__body {
  flex: 1;
  min-height: 120px;
  max-height: min(62vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-cream-card);
}
.stc-course-search-modal__foot {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--bg-cream-card);
}
.stc-course-search-modal__loading {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
}
.stc-course-search-modal__loading i {
  margin-right: 8px;
  color: var(--color-gold-dark);
}

/* Course rows: reset <button> UA chrome (fixes “white washed” rows); tokens track light/dark */
.stc-course-search-modal .api-search-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-align: left;
  font-family: inherit;
  font-size: 0.8rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--color-charcoal);
}
.stc-course-search-modal .api-search-item:hover {
  background-color: rgba(194, 162, 106, 0.14);
}
.stc-course-search-modal .api-search-item:last-child {
  border-bottom: none;
}
.stc-course-search-modal .api-search-meta {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stc-course-search-modal .api-search-item__title {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--color-charcoal);
}
.stc-course-search-modal .api-search-item__club {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 3px;
}
.stc-course-search-modal .api-search-item__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--color-muted);
}
.stc-course-search-modal .api-search-item__stat {
  white-space: nowrap;
}
.stc-course-search-modal .api-search-item__stat b {
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-right: 3px;
}

.stc-course-search-modal__empty {
  cursor: default;
  text-align: center;
  padding: 20px 16px 18px;
  border: none;
  background: rgba(194, 162, 106, 0.08);
  border-radius: 10px;
  margin: 10px 12px 12px;
  max-width: calc(100% - 24px);
}
.stc-course-search-modal__empty-title {
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.stc-course-search-modal__empty-desc {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 14px;
  white-space: normal;
  line-height: 1.45;
}

/* Active Selected Course Badge */
.selected-course-title-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  background: rgba(194, 162, 106, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(194, 162, 106, 0.2);
  margin-top: 8px;
}

/* 2v2 Team Subtotal Rows */
.scorecard-table tr.bestball-row.team-1-subtotal {
  background-color: #EAF5EC !important;
  color: #1C4825 !important;
}
.scorecard-table tr.bestball-row.team-1-subtotal td {
  border-top: 1.5px solid #C5E0B4 !important;
  border-bottom: 1.5px solid #C5E0B4 !important;
}
.scorecard-table tr.bestball-row.team-1-subtotal td.cell-player-info {
  background-color: #D6EDDB !important;
  border-right: 2px solid #C5E0B4 !important;
}

.scorecard-table tr.bestball-row.team-2-subtotal {
  background-color: #FCF5E8 !important;
  color: var(--color-gold-dark) !important;
}
.scorecard-table tr.bestball-row.team-2-subtotal td {
  border-top: 1.5px solid var(--color-gold) !important;
  border-bottom: 1.5px solid var(--color-gold) !important;
}
.scorecard-table tr.bestball-row.team-2-subtotal td.cell-player-info {
  background-color: #F4E8D2 !important;
  border-right: 2px solid var(--color-gold) !important;
}

@media (orientation: landscape) and (max-height: 600px) {
  body > .app-header, 
  body > .app-main, 
  body > .app-nav {
    max-width: 100% !important; /* Stretch components to full viewport width */
  }
  .app-main {
    padding: 55px 12px 65px !important; /* Compress top/bottom padding for short heights */
  }
  body.scorecard-immersive .app-main {
    padding: calc(58px + env(safe-area-inset-top, 0px)) 12px 65px !important;
  }
  .scorecard-wrapper {
    overflow-x: hidden; /* Prevent horizontal scrolling if 9 holes fit completely */
  }
  body.scorecard-vertical-main-lock #view-scorecard.active.scorecard-vertical-scroll-layout .scorecard-wrapper {
    overflow-x: auto; /* Vertical scorecard still needs horizontal scroll for sticky hole column */
  }
}

/* Premium Radar Chart Styling */
.radar-grid-line {
  stroke: var(--color-border);
  stroke-width: 1px;
  stroke-dasharray: 2 2;
  opacity: 0.5;
}
.radar-axis-line {
  stroke: var(--color-border);
  stroke-width: 1.5px;
  opacity: 0.7;
}
.radar-axis-label {
  font-size: 8px;
  font-weight: 700;
  fill: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.radar-grid-value-label {
  font-size: 7px;
  fill: var(--color-muted);
  opacity: 0.8;
}
.radar-player-polygon {
  stroke-width: 2.5px;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}
.radar-player-point {
  stroke-width: 1.5px;
  stroke: var(--color-white);
  transition: all 0.3s ease;
}
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}
.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--bg-cream-card-light);
  color: var(--color-charcoal);
  transition: var(--transition);
}
.radar-legend-item.inactive {
  opacity: 0.35;
  background: transparent;
  text-decoration: line-through;
}
.radar-legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
body.dark-mode .radar-legend-item {
  background: var(--bg-cream-card-light);
  color: var(--color-charcoal);
}

/* ===================================================
   PREMIUM CLUBHOUSE LANDING/SPLASH SCREEN
   =================================================== */
.app-splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #14321A; /* Deep Country Club Forest Green matching your brand */
  z-index: 9999; /* Forces presentation above everything else */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.splash-logo-wrapper {
  width: 140px;
  height: 140px;
  animation: splashPulse 2s infinite ease-in-out 0.55s both;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Elegant minimalist loading bar design instead of generic spinners */
.splash-loading-bar {
  width: 180px;
  height: 3px;
  background-color: rgba(194, 162, 106, 0.15); /* Soft background tint of gold */
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.splash-loading-progress {
  width: 100%;
  height: 100%;
  background-color: #C2A26A; /* Premium Accent Gold */
  position: absolute;
  left: -100%;
  animation: loadingProgress 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-tagline {
  font-family: var(--font-sans);
  color: #C2A26A; /* Accent Gold */
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin: 0;
}

.splash-version {
  font-family: var(--font-sans);
  color: rgba(194, 162, 106, 0.45);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
  min-height: 1em;
}

/* Subtle fading states handled by JavaScript class switches */
.app-splash-overlay.fade-away {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animations */
@keyframes splashPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes loadingProgress {
  0% { left: -100%; }
  50% { left: -30%; }
  100% { left: 0%; }
}

/* ===================================================
   PREMIUM CLUBHOUSE UPGRADES (GLASS NAVBAR & TACTILE NUMPAD)
   =================================================== */

/* 1. iOS-Style Glassmorphism Navbar Override */
.app-nav {
  background-color: rgba(20, 50, 26, 0.82) !important; /* Translucent deep forest green mask */
  backdrop-filter: blur(12px) !important; /* Soft blur window layer */
  -webkit-backdrop-filter: blur(12px) !important; /* Safari compatibility rendering */
  border-top: 1.5px solid var(--color-gold) !important;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Ensure underlying body elements can bleed slightly past nav boundary context gracefully */
.app-main {
  padding-bottom: 100px !important; /* Added safe padding margin loop */
}

/* 2. Hydraulic Numpad Tap Micro-Interactions */
.num-btn {
  transform: scale(1);
  transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.1s, box-shadow 0.1s !important;
}

/* Tactile depression compression state */
.num-btn:active {
  transform: scale(0.93) translateY(1.5px) !important; /* Soft downward plunge mechanical feel */
  background-color: var(--bg-cream-card) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0,0,0,0.02) !important;
  border-color: var(--color-gold) !important;
}

/* Tactile bounce loop matching the quick actions for dot adjustments */
.dot-toggle-btn {
  transform: scale(1);
  transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s !important;
}

.dot-toggle-btn:active {
  transform: scale(0.95) !important;
}

/* ==========================================
   FOCUS SCORE ENTRY MODE STYLES
   ========================================== */

/* Focus Score Entry Container */
.focus-scorecard-container {
  background-color: var(--bg-cream-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  transition: all 0.3s ease;
}

/* Hole Navigation Header */
.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.focus-nav-btn {
  background: var(--bg-cream-card-light);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}
.focus-nav-btn:active {
  transform: scale(0.9);
  background-color: var(--color-gold-dark);
  color: var(--bg-cream-canvas);
}
.focus-hole-details {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.focus-hole-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.focus-hole-select {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  background: transparent;
  border: none;
  padding-right: 18px;
  cursor: pointer;
  text-align-last: center;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.focus-hole-select-wrapper::after {
  content: "▼";
  font-size: 0.55rem;
  color: var(--color-gold-dark);
  position: absolute;
  right: 2px;
  pointer-events: none;
}
.focus-hole-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* Live Standings Banner */
.focus-match-banner {
  background-color: rgba(194, 162, 106, 0.05);
  border: 1px dashed var(--color-gold);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Player Focus Cards */
.focus-player-card {
  background-color: var(--bg-cream-card-light);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  padding: 13px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.focus-player-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.focus-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}
.focus-player-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}
.focus-player-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.focus-player-subtext {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.focus-player-card.t1-card {
  border-left: 4px solid var(--bg-birdie);
}
.focus-player-card.t2-card {
  border-left: 4px solid var(--color-gold);
}

/* Focus mode: team column + stacked teammates (mirrors vertical/grid team stripe) */
.focus-team-block {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 12px;
  gap: 0;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--bg-cream-card-light);
}

.focus-team-block .focus-team-bar {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  width: 26px;
  min-width: 26px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.focus-team-block .focus-team-bar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1;
}

.focus-team-players {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 10px 10px 0;
  background: var(--bg-cream-card-light);
}

.focus-team-players .focus-player-card {
  margin-bottom: 0;
  border: 1px solid var(--color-border);
  background-color: var(--bg-cream-card);
}

.focus-team-players .focus-player-card.t1-card,
.focus-team-players .focus-player-card.t2-card {
  border-left: none;
}

body.dark-mode .focus-team-block .vertical-team-bar--team1 {
  background: linear-gradient(180deg, #174223 0%, #11331a 100%);
  color: #c8eed2;
  border-right-color: #2a6e3b;
}

body.dark-mode .focus-team-block .vertical-team-bar--team2 {
  background: linear-gradient(180deg, #3a2d12 0%, #2d200e 100%);
  color: #e8d4a8;
  border-right-color: #8a7038;
}

/* Handicap bumps after name: blue dots = strokes received; blue + = strokes given (+ hcp) */
.focus-stroke-bump-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
}
.focus-stroke-bump-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-stroke-bump);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(13, 71, 161, 0.4);
  flex-shrink: 0;
}

.focus-stroke-bump-dots--give {
  gap: 2px;
}

.focus-stroke-bump-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--color-stroke-bump);
  line-height: 1;
  min-width: 0.5em;
}

/* Horizontal Score Strip */
.focus-score-strip {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}
.focus-score-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--bg-cream-card);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.focus-score-btn:active {
  transform: scale(0.85);
}

/* Color-Coded Tapping Highlights */
.focus-score-btn.is-eagle.active { background-color: var(--bg-eagle) !important; color: var(--color-eagle) !important; border-color: var(--color-eagle) !important; transform: scale(1.1); box-shadow: 0 0 6px rgba(13, 60, 97, 0.3); }
.focus-score-btn.is-birdie.active { background-color: var(--bg-birdie) !important; color: var(--color-birdie) !important; border-color: var(--color-birdie) !important; transform: scale(1.1); box-shadow: 0 0 6px rgba(20, 58, 35, 0.3); }
.focus-score-btn.is-par.active { background-color: var(--color-charcoal) !important; color: var(--bg-cream-card) !important; border-color: var(--color-charcoal) !important; transform: scale(1.1); }
.focus-score-btn.is-bogey.active { background-color: var(--bg-bogey) !important; color: var(--color-bogey) !important; border-color: var(--color-bogey) !important; transform: scale(1.1); box-shadow: 0 0 6px rgba(71, 26, 21, 0.3); }
.focus-score-btn.is-dbl.active { background-color: var(--bg-double-bogey) !important; color: var(--color-double-bogey) !important; border-color: var(--color-double-bogey) !important; transform: scale(1.1); box-shadow: 0 0 6px rgba(61, 13, 25, 0.3); }

/* Custom Adjuster Controls */
.focus-score-btn.btn-adjust {
  background-color: var(--bg-cream-card);
  color: var(--color-charcoal);
  border-color: var(--color-border);
  font-size: 1.05rem;
}
.focus-score-btn.btn-adjust:active {
  background-color: var(--color-gold-dark);
  color: var(--bg-cream-canvas);
  border-color: var(--color-gold-dark);
}

.focus-score-display-custom {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  min-width: 26px;
  text-align: center;
}

/* Focus view junk: three equal-width toggle buttons along card bottom */
.focus-junk-toggles {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  gap: 6px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}
.focus-junk-toggle {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px 9px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--bg-cream-card, #faf8f4);
  color: var(--color-charcoal);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.focus-junk-toggle:hover:not(:disabled) {
  border-color: var(--color-gold-dark);
  background: rgba(184, 148, 60, 0.08);
}
.focus-junk-toggle:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 2px;
}
.focus-junk-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.focus-junk-toggle-icon {
  font-size: 1rem;
  opacity: 0.88;
}
.focus-junk-toggle--greenie.is-on {
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.22) 0%, rgba(27, 94, 32, 0.38) 100%);
  border-color: #2e7d32;
  color: #0d3d12;
}
.focus-junk-toggle--greenie.is-on .focus-junk-toggle-icon {
  color: #1b5e20;
}
.focus-junk-toggle--sandie.is-on {
  background: linear-gradient(180deg, rgba(212, 175, 108, 0.45) 0%, rgba(184, 148, 60, 0.65) 100%);
  border-color: #a67c00;
  color: #4a3a10;
}
.focus-junk-toggle--sandie.is-on .focus-junk-toggle-icon {
  color: #7a5a12;
}
.focus-junk-toggle--snake.is-on {
  background: linear-gradient(180deg, rgba(211, 47, 47, 0.2) 0%, rgba(183, 28, 28, 0.42) 100%);
  border-color: #c62828;
  color: #5c0a0a;
}
.focus-junk-toggle--snake.is-on .focus-junk-toggle-icon {
  color: #b71c1c;
}
.focus-junk-toggle-text {
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Narrow viewports: between original and full bump (keeps room for 5–6 score pills + name) */
@media (max-width: 560px) {
  .focus-scorecard-container {
    padding: 14px;
    margin-top: 10px;
  }

  .focus-player-card {
    border-radius: 10px;
    padding: 12px 13px;
    margin-bottom: 11px;
    gap: 9px;
  }

  .focus-player-row {
    gap: 11px;
  }

  .focus-player-name {
    font-size: 1rem;
  }

  .focus-player-subtext {
    font-size: 0.76rem;
  }

  .focus-score-strip {
    gap: 6px;
  }

  .focus-score-btn {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .focus-score-btn.btn-adjust {
    font-size: 1rem;
  }

  .focus-score-display-custom {
    font-size: 1.1rem;
    min-width: 24px;
  }

  .focus-junk-toggles {
    gap: 5px;
    padding-top: 8px;
  }

  .focus-junk-toggle {
    padding: 7px 3px 8px;
    font-size: 0.62rem;
    border-radius: 8px;
  }

  .focus-junk-toggle-icon {
    font-size: 0.92rem;
  }

  .focus-team-block .focus-team-bar {
    width: 22px;
    min-width: 22px;
  }

  .focus-team-players {
    padding: 9px 8px 9px 0;
    gap: 9px;
  }
}

/* Auto-Advance Panel Options */
.focus-footer-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-muted);
}
.focus-advance-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.focus-advance-checkbox {
  width: 14px;
  height: 14px;
  accent-color: var(--color-gold-dark);
}

/* Visual Auto-Advance Banner Overlay */
.focus-advance-overlay {
  background: var(--color-gold-dark);
  color: var(--bg-cream-canvas);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 30px;
  text-align: center;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
  animation: slideUpFade 0.2s ease-out;
}

@keyframes slideUpFade {
  from { transform: translate(-50%, 10px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Tiebreak buttons styling */
.tb-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  padding: 7px 14px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
.tb-btn.active {
  background: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: var(--color-forest) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 4px 14px rgba(194, 162, 106, 0.35);
}
.tb-btn.active .tb-btn__glyph {
  color: var(--color-forest);
}
.tb-btn__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  font-size: 0.88em;
  color: rgba(212, 175, 55, 0.88);
  flex-shrink: 0;
}
.tb-btn__glyph i {
  line-height: 1;
}
.tb-btn__label {
  line-height: 1.2;
}
.dark-mode .tb-btn {
  color: rgba(255, 255, 255, 0.92);
}
.dark-mode .tb-btn__glyph {
  color: rgba(212, 175, 55, 0.9);
}
.dark-mode .tb-btn.active .tb-btn__glyph {
  color: var(--color-forest);
}

/* ==========================================================================
   PREMIUM CUSTOM SCROLLBAR UTILITIES (Add to style.css)
   ========================================================================== */

/* Universal Scrollbar Definition for Modern Engines (Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-muted) rgba(0, 0, 0, 0.02);
}

body.dark-mode * {
  scrollbar-color: var(--color-border) rgba(0, 0, 0, 0.2);
}

/* WebKit Engines Custom Scrollbar Layout (Chrome, Safari, iOS, Android) */
::-webkit-scrollbar {
  width: 6px;  /* Vertical scrollbar width */
  height: 6px; /* Horizontal scrollbar height for scrolling course specs & scorecard tables */
}

/* The background track/trough of the scrollbar */
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

/* The draggable handle/thumb elements */
::-webkit-scrollbar-thumb {
  background-color: var(--color-muted);
  border-radius: 10px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background-color var(--transition);
}

/* Dark mode thumb adjustments to avoid brightness washouts */
body.dark-mode ::-webkit-scrollbar-thumb {
  background-color: rgba(142, 153, 146, 0.35); /* Soft alpha-muted green slate */
}

/* Interactive hover feedback state for precision desktop tuning */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-gold-dark);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-gold);
}

/* Prevent unwanted scroll overflow visual bugs inside premium rounded views */
.course-scroll-wrapper, 
.scorecard-wrapper, 
.stc-course-search-modal__body {
  scrollbar-gutter: stable; /* Keeps layout from shifting when scrollbars snap into view */
}

/* ==========================================================================
   ROUND SUMMARY COPY BOX UTILITIES (Add to style.css)
   ========================================================================== */

/* Enhanced Outer Share Box Layout */
.round-share-box {
  background: rgba(0, 0, 0, 0.015);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.round-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.round-share-action-btn {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

body.dark-mode .round-share-box {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Premium round-summary textarea frame */
.round-share-box textarea.copy-textarea {
  background: var(--bg-cream-canvas) !important;
  color: var(--color-forest) !important;
  font-family: 'Outfit', -apple-system, sans-serif !important;
  font-size: 0.85rem !important; /* Slightly increased text size for legibility */
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.01em !important;
  padding: 16px 14px !important;
  border: 1.5px dashed var(--color-gold) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  resize: none !important; 
  white-space: pre-wrap !important;
  transition: border-color var(--transition), box-shadow var(--transition);

  /* Height Adjustments */
  height: 220px !important; /* Raised from default row constraints to prevent micro-scrolling */
  min-height: 220px !important;
}

body.dark-mode .round-share-box textarea.copy-textarea {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(212, 175, 55, 0.4) !important; /* Subdued gold dash in dark view */
}

/* Focused Highlight Interactions */
.round-share-box textarea.copy-textarea:focus {
  outline: none !important;
  border-color: var(--color-forest-light) !important;
  box-shadow: 0 0 0 3px rgba(82, 178, 115, 0.12) !important;
}

body.dark-mode .round-share-box textarea.copy-textarea:focus {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}

/* Micro Scrollbar adjustments customized just for the Copy Area */
.round-share-box textarea.copy-textarea::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

.round-share-box textarea.copy-textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.01) !important;
  margin: 6px 0 !important;
}

body.dark-mode .round-share-box textarea.copy-textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01) !important;
}

.round-share-box textarea.copy-textarea::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.12) !important;
  border-radius: 10px !important;
}

body.dark-mode .round-share-box textarea.copy-textarea::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.round-share-box textarea.copy-textarea::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-gold) !important;
}

/* ==========================================================================
   PREMIUM SETTLEMENT CARD GAME VERDICT SUMMARY STYLING (Add to style.css)
   ========================================================================= */
.settlement-game-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(42, 110, 59, 0.05); /* Soft premium grass fairway tint */
  border: 1.5px solid var(--color-border);
  border-left: 5px solid var(--color-forest-light); /* Direct green emphasis strip */
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

body.dark-mode .settlement-game-summary-card {
  background: rgba(82, 178, 115, 0.04);
  border-color: var(--color-border);
  border-left-color: var(--color-gold); /* Shifting anchor strip to luxury clubhouse gold */
}

.settlement-game-summary-card .summary-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-forest-light);
  color: white;
  font-size: 1.15rem;
  flex-shrink: 0;
}

body.dark-mode .settlement-game-summary-card .summary-badge-icon {
  background: #1C3D24;
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.settlement-game-summary-card .summary-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settlement-game-summary-card .summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold-dark);
}

body.dark-mode .settlement-game-summary-card .summary-title {
  color: var(--color-gold);
}

.settlement-game-summary-card .summary-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.3;
}

body.dark-mode .settlement-game-summary-card .summary-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Settle tab table scrolling: keep headings/labels fixed, scroll only table */
#raw-balance-table-container {
  overflow-x: visible !important;
}

.raw-balance-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / legacy Edge */
}
.raw-balance-table-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.match-results-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 0 8px;
  margin-top: 2px;
}
.match-results-section-label i {
  font-size: 0.65rem;
  color: var(--color-gold);
  opacity: 0.8;
}

.contributions-scroll-group {
  width: 100%;
}

.contribution-team-label {
  font-weight: 700;
  text-align: left;
  font-size: 0.75rem;
  padding: 6px 10px;
  margin-top: 10px;
  border-radius: 6px;
}

.contribution-team-label.team-1 {
  background-color: #EAF5EC;
  color: #1C4825;
}

.contribution-team-label.team-2 {
  background-color: #FCF5E8;
  color: var(--color-gold-dark);
}

/* Leaderboard (Settle): each squad in a framed panel so tables have a clear start */
#settlement-leaderboard-container .contributions-scroll-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#settlement-leaderboard-container .stc-settlement-lb-team {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(12, 18, 14, 0.07);
  overflow: hidden;
  background: var(--bg-cream-card-light, #fff);
}

#settlement-leaderboard-container .stc-settlement-lb-team--team-1 {
  background: #eaf5ec;
}

#settlement-leaderboard-container .stc-settlement-lb-team--team-2 {
  background: #fcf5e8;
}

#settlement-leaderboard-container .stc-settlement-lb-team__surface {
  padding: 0 0 8px;
}

/* Squad tint continues behind the table (not just the title strip) */
#settlement-leaderboard-container .stc-settlement-lb-team--team-1 .stc-settlement-lb-team__surface {
  background: #eaf5ec;
  border-top: none;
}

#settlement-leaderboard-container .stc-settlement-lb-team--team-2 .stc-settlement-lb-team__surface {
  background: #fcf5e8;
  border-top: none;
}

#settlement-leaderboard-container .stc-settlement-lb-team--stroke-all .stc-settlement-lb-team__surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 248, 242, 0.98) 100%);
  border-top: 1px solid rgba(20, 50, 26, 0.09);
}

#settlement-leaderboard-container .stc-settlement-lb-team--team-1 .raw-balance-table thead th:first-child,
#settlement-leaderboard-container .stc-settlement-lb-team--team-1 .raw-balance-table tbody td:first-child {
  background-color: rgba(255, 251, 245, 0.97) !important;
}

#settlement-leaderboard-container .stc-settlement-lb-team--team-1 .raw-balance-table tbody td:not(:first-child) {
  background-color: rgba(255, 255, 255, 0.38);
}

#settlement-leaderboard-container .stc-settlement-lb-team--team-2 .raw-balance-table thead th:first-child,
#settlement-leaderboard-container .stc-settlement-lb-team--team-2 .raw-balance-table tbody td:first-child {
  background-color: rgba(255, 252, 244, 0.97) !important;
}

#settlement-leaderboard-container .stc-settlement-lb-team--team-2 .raw-balance-table tbody td:not(:first-child) {
  background-color: rgba(255, 255, 255, 0.42);
}

#settlement-leaderboard-container .stc-settlement-lb-team .contribution-team-label {
  margin-top: 0;
  border-radius: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-bottom: none;
}

#settlement-leaderboard-container .stc-settlement-lb-team .raw-balance-table-scroll {
  padding: 0 8px 2px;
}

#settlement-leaderboard-container .stc-settlement-lb-team__stripe {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: rgba(20, 50, 26, 0.04);
  border-bottom: 1px solid rgba(20, 50, 26, 0.08);
}

#settlement-leaderboard-container .stc-settlement-lb-team__stripe i {
  font-size: 0.72rem;
  color: var(--color-gold-dark);
  opacity: 0.85;
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  background: rgba(22, 32, 26, 0.55);
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-1 {
  background: rgba(82, 178, 115, 0.16);
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-2 {
  background: rgba(212, 175, 55, 0.12);
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-1 .stc-settlement-lb-team__surface {
  background: rgba(82, 178, 115, 0.1);
  border-top: none;
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-2 .stc-settlement-lb-team__surface {
  background: rgba(212, 175, 55, 0.08);
  border-top: none;
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--stroke-all .stc-settlement-lb-team__surface {
  background: linear-gradient(180deg, rgba(28, 40, 32, 0.5) 0%, rgba(18, 26, 22, 0.65) 100%);
  border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-1 .raw-balance-table thead th:first-child,
body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-1 .raw-balance-table tbody td:first-child {
  background-color: rgba(22, 40, 28, 0.92) !important;
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-1 .raw-balance-table tbody td:not(:first-child) {
  background-color: rgba(18, 28, 22, 0.45);
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-2 .raw-balance-table thead th:first-child,
body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-2 .raw-balance-table tbody td:first-child {
  background-color: rgba(36, 32, 22, 0.92) !important;
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team--team-2 .raw-balance-table tbody td:not(:first-child) {
  background-color: rgba(24, 22, 18, 0.48);
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team__stripe {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode #settlement-leaderboard-container .stc-settlement-lb-team__stripe i {
  color: var(--color-gold);
}

/* Match Totals: money-matrix chips with icons */
#view-settlement .money-matrix-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 2px 2px;
}

#view-settlement .money-matrix-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  padding: 6px 11px;
  border-radius: 999px;
  line-height: 1.2;
}

#view-settlement .money-matrix-tab .money-matrix-tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  opacity: 0.55;
  color: var(--color-muted);
  transition: opacity 0.15s ease, color 0.15s ease;
}

#view-settlement .money-matrix-tab .money-matrix-tab__label {
  font-weight: inherit;
}

#view-settlement .money-matrix-tab:hover:not(.active) .money-matrix-tab__icon {
  opacity: 0.85;
  color: var(--color-forest-medium, #2a5c35);
}

#view-settlement .money-matrix-tab.active .money-matrix-tab__icon {
  opacity: 1;
  color: #1b4d2a;
}

body.dark-mode #view-settlement .money-matrix-tab:hover:not(.active) .money-matrix-tab__icon {
  color: rgba(255, 255, 255, 0.75);
}

body.dark-mode #view-settlement .money-matrix-tab.active .money-matrix-tab__icon {
  color: var(--color-gold);
}

/* ==========================================================================
   SETTLE TAB RAW BALANCE TABLE RESPONSIVE VIEWPORTS (Add to style.css)
   ========================================================================== */

/* 1. Outer shell: tabs (money-matrix) live outside the bordered table shell */
#raw-balance-table-container {
  width: 100% !important;
  overflow-x: visible !important;
  position: relative;
  margin-top: 8px;
  border: none;
  background: transparent;
}

/* Bordered inset wraps only the table(s) + related notes — not matrix filter chips */
#raw-balance-table-container .stc-match-totals-table-shell {
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

body.dark-mode #raw-balance-table-container .stc-match-totals-table-shell {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

/* 2. Lock down the internal table styling constraints */
.raw-balance-table {
  width: 100% !important;
  min-width: 480px; /* Establishes a comfortable layout footprint preventing column squash */
  margin-top: 0 !important; /* Removes any double border gaps */
  border-collapse: collapse !important;
}

/* 3. Freeze the Player Name Column to the Left Edge during horizontal scrolling */
.raw-balance-table th:first-child,
.raw-balance-table td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 4 !important;
  background-color: var(--bg-cream-card) !important;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.04) !important;
}

body.dark-mode .raw-balance-table th:first-child,
body.dark-mode .raw-balance-table td:first-child {
  background-color: #152219 !important;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.25) !important;
}

/* 4. Freeze the Final Net Column securely to the Far Right Edge 
.raw-balance-table th:last-child,
.raw-balance-table td:last-child {
  position: sticky !important;
  right: 0 !important;
  z-index: 4 !important;
  font-weight: 700 !important;
  background-color: var(--bg-cream-card-light) !important;
  border-left: 1.5px solid var(--color-border) !important;
  box-shadow: -3px 0 6px rgba(0, 0, 0, 0.04) !important;
}*/

body.dark-mode .raw-balance-table th:last-child,
body.dark-mode .raw-balance-table td:last-child {
  background-color: #1A291E !important;
  border-left-color: var(--color-border) !important;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.25) !important;
}

/* 5. Ensure overarching team header breaks bypass sticky clipping masks */
.raw-balance-table tr.contrib-team-1-header td,
.raw-balance-table tr.contrib-team-2-header td,
.raw-balance-table tr[style*="background-color"] td {
  position: relative !important;
  z-index: 1 !important;
}

/* ==========================================================================
   CENTERED MATCH PLAY HOLE RESULT CHIPS (Add to style.css)
   ========================================================================== */

/* Target the wrapper row containing the dynamic chip layout spans */
.live-match-block div[style*="display:flex"],
.live-match-block div[style*="display:flex; gap:4px; flex-wrap:wrap;"] {
  justify-content: center !important; /* Forces horizontal alignment centering */
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
}

/* Fallback anchor for the hole result container class layout inside Settle tab blocks */
#nassau-live-details div[style*="display:flex"] {
  justify-content: center !important;
  gap: 6px !important; /* Slightly expands touch targets for clean mobile layout tap grids */
}

/* ==========================================================================
   NASSAU MP — SCORECARD PRESS LINES + SETTLE PER-BET BOXES
   ========================================================================== */
.nassau-mp-scorecard-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.nassau-mp-scorecard-line {
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.28;
  text-align: left;
  width: 100%;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--color-charcoal);
}

.nassau-mp-scorecard-line:last-child {
  border-bottom: none;
}

body.dark-mode .nassau-mp-scorecard-line {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.nassau-mp-scorecard-line-label {
  color: var(--color-muted);
  font-weight: 800;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.nassau-mp-bet-boxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.nassau-mp-bet-box {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 8px);
  padding: 12px 12px 12px 12px;
  min-height: 44px;
}

.nassau-mp-bet-box--on-light {
  background: rgba(42, 110, 59, 0.06);
  border: 1px solid rgba(42, 110, 59, 0.16);
}

/* Side-action cards with no absolute corner (e.g. bounce / deuce): title can use full width */
.nassau-mp-bet-box--no-corner .nassau-mp-bet-box-title {
  padding-right: 0;
}

/* Side-action settle cards: line 1 = segment / kind / wager; line 2 = roster + status */
.nassau-mp-side-action-title--twoline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nassau-mp-side-action-title__line {
  width: 100%;
  line-height: 1.35;
}

.nassau-mp-side-action-title__line--sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.nassau-mp-bet-box--on-light .nassau-mp-side-action-title__line--sub {
  color: var(--color-charcoal, #1a1a1c);
}

.nassau-mp-bet-box--on-light .nassau-mp-bet-corner-names {
  color: var(--color-charcoal, #1a1a1c);
  opacity: 0.92;
}

.nassau-mp-bet-box--on-light .nassau-mp-bet-box-title {
  color: var(--color-charcoal, #1a1a1c);
}

.nassau-mp-bet-box-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  padding-right: 92px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.nassau-mp-bet-box-title--compact {
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.nassau-mp-bounce-list {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.65rem;
  line-height: 1.35;
}

.nassau-mp-bet-box--on-light .nassau-mp-bounce-list {
  border-top-color: rgba(42, 110, 59, 0.15);
}

.nassau-mp-bounce-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  color: rgba(255, 255, 255, 0.88);
}

.nassau-mp-bet-box--on-light .nassau-mp-bounce-row {
  color: var(--color-charcoal, #1a1a1c);
}

.nassau-mp-bounce-row-hole {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.62rem;
}

.nassau-mp-bet-box--on-light .nassau-mp-bounce-row-hole {
  color: rgba(26, 26, 28, 0.55);
}

.nassau-mp-bounce-row-amt {
  margin-left: auto;
  font-weight: 800;
  color: #9fd4a8;
}

.nassau-mp-bet-box--on-light .nassau-mp-bounce-row-amt {
  color: var(--color-gold-dark, #8a7349);
}

.nassau-mp-bet-line {
  display: inline;
  line-height: 1.45;
}

.nassau-mp-bet-line__sep {
  opacity: 0.42;
  font-weight: 500;
}

.nassau-mp-bet-line--dark .nassau-mp-bet-line__seg {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.nassau-mp-bet-line--dark .nassau-mp-bet-line__kind {
  color: #e8c878;
  font-weight: 800;
}

.nassau-mp-bet-line--dark .nassau-mp-bet-line__wager {
  color: #9fd4a8;
  font-weight: 700;
}

.nassau-mp-bet-line--dark .nassau-mp-bet-line__score {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.nassau-mp-bet-line--light .nassau-mp-bet-line__seg {
  color: var(--color-gold-dark, #8a7349);
  font-weight: 700;
}

.nassau-mp-bet-line--light .nassau-mp-bet-line__kind {
  color: var(--color-charcoal, #1a1a1c);
  font-weight: 800;
}

.nassau-mp-bet-line--light .nassau-mp-bet-line__wager {
  color: #2a6b3a;
  font-weight: 800;
}

.nassau-mp-bet-line--light .nassau-mp-bet-line__score {
  color: var(--color-charcoal, #1a1a1c);
  font-weight: 700;
}

.nassau-mp-bet-wager-note {
  color: var(--color-gold-dark, #b8955c);
  font-weight: 600;
}

.nassau-mp-bet-wager-note--rolled {
  font-style: italic;
  font-weight: 600;
  color: rgba(232, 218, 188, 0.95);
  cursor: help;
}

.nassau-mp-bet-box-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.live-match-header-row--presses-matchup {
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-match-header-row--presses-matchup .live-match-title-wrap {
  font-size: 0.88em;
}

.nassau-mp-bet-corner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  max-width: 52%;
  width: max-content;
  text-align: right;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

/* Taller cards: pin pill to first row (tiebreak / two-line side title below) */
.nassau-mp-bet-box:has(.nassau-mp-bet-tiebreak) > .nassau-mp-bet-corner,
.nassau-mp-bet-box:has(.nassau-mp-side-action-title--twoline) > .nassau-mp-bet-corner {
  top: 12px;
  transform: none;
}

/* Cream mini-pill on dark bet rows — not the two-line aggregation chip */
.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner:not(.nassau-mp-bet-corner--cream-agg) {
  background: linear-gradient(165deg, #faf8f5 0%, #f2ede2 55%, #ebe4d8 100%);
  border: 1px solid rgba(20, 50, 26, 0.14);
  border-radius: 10px;
  padding: 5px 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.28);
}

.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner-names {
  opacity: 1;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--even:not(.nassau-mp-bet-corner--cream-agg) {
  color: var(--color-muted, #6b6860);
  font-weight: 800;
}

.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner:not(.nassau-mp-bet-corner--cream-agg) {
  background: linear-gradient(165deg, #ffffff 0%, #faf8f5 100%);
  border: 1px solid rgba(42, 110, 59, 0.18);
  border-radius: 10px;
  padding: 5px 9px;
  box-shadow: 0 1px 5px rgba(20, 50, 26, 0.1);
}

.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner-names {
  opacity: 1;
  font-weight: 800;
  white-space: nowrap;
}

.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--even:not(.nassau-mp-bet-corner--cream-agg) {
  color: var(--color-muted, #7e7c74);
  font-weight: 800;
}

/* Bet-row corners: one line name + amount, no wrap (header net pills stay two-line .match-score-badge--summary-cream--stack) */
.nassau-mp-bet-corner--cream-agg {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35em;
  text-align: right;
  white-space: nowrap;
  max-width: 58%;
  width: max-content;
  min-width: 0;
}

.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg {
  background: linear-gradient(165deg, #faf8f5 0%, #f2ede2 55%, #ebe4d8 100%);
  border: 1px solid rgba(20, 50, 26, 0.14);
  border-left: 3px solid rgba(20, 50, 26, 0.22);
  border-radius: 12px;
  padding: 5px 9px 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.28);
}

.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-1 {
  border-left-color: var(--stc-p1-fg);
}
.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-2 {
  border-left-color: var(--stc-p2-fg);
}
.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-3 {
  border-left-color: var(--stc-p3-fg);
}
.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-4 {
  border-left-color: var(--stc-p4-fg);
}
.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-neutral {
  border-left-color: rgba(110, 108, 100, 0.55);
}

.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg .nassau-mp-bet-corner-names {
  display: inline;
  width: auto;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-charcoal, #2c2b28);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg .nassau-mp-bet-corner-amt {
  display: inline;
  width: auto;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.nassau-mp-bet-box:not(.nassau-mp-bet-box--on-light) > .nassau-mp-bet-corner--cream-agg.nassau-mp-bet-corner--even .nassau-mp-bet-corner-amt {
  color: var(--color-muted, #6b6860);
}

.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg {
  background: linear-gradient(165deg, #faf8f5 0%, #f2ede2 55%, #ebe4d8 100%);
  border: 1px solid rgba(20, 50, 26, 0.14);
  border-left: 3px solid rgba(20, 50, 26, 0.22);
  border-radius: 12px;
  padding: 5px 9px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 10px rgba(20, 50, 26, 0.12);
}

.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-1 {
  border-left-color: var(--stc-p1-fg);
}
.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-2 {
  border-left-color: var(--stc-p2-fg);
}
.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-3 {
  border-left-color: var(--stc-p3-fg);
}
.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-4 {
  border-left-color: var(--stc-p4-fg);
}
.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg.match-score-badge--summary-tint-neutral {
  border-left-color: rgba(110, 108, 100, 0.55);
}

.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg .nassau-mp-bet-corner-names {
  display: inline;
  width: auto;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-charcoal, #2c2b28);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg .nassau-mp-bet-corner-amt {
  display: inline;
  width: auto;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.nassau-mp-bet-box--on-light > .nassau-mp-bet-corner--cream-agg.nassau-mp-bet-corner--even .nassau-mp-bet-corner-amt {
  color: var(--color-muted, #7e7c74);
}

.nassau-mp-bet-corner-names {
  display: inline;
  font-size: 0.58rem;
  font-weight: 700;
  opacity: 0.92;
  white-space: nowrap;
}

.nassau-mp-bet-corner-amt {
  display: inline;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.nassau-mp-bet-corner--s1 .nassau-mp-bet-corner-amt {
  color: #9fd4a8;
}

.nassau-mp-bet-corner--s2 .nassau-mp-bet-corner-amt {
  color: #f0c896;
}

.nassau-mp-bet-corner--even {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
}

.nassau-mp-bet-tiebreak {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.nassau-mp-bet-tiebreak-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  line-height: 1.3;
}

.nassau-mp-bet-tiebreak-wager {
  font-weight: 700;
  color: rgba(212, 175, 55, 0.75);
}

.nassau-mp-bet-tiebreak-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   PREMIUM FLOATING CENTER ACTION NAV TRAY REDESIGN (Add to style.css)
   ========================================================================== */

/* Establish structural layout containment for the nav tray */
.app-nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important; /* Forces layout anchors to lean down for safe areas */
  padding-bottom: env(safe-area-inset-bottom) !important;
  overflow: visible !important; /* Allows the center circle button to break past the boundary */
}

/* Isolate the elevated center navigation button */
.nav-item.center-action-btn {
  position: relative !important;
  top: -14px; /* Raises the button above the top frame border line */
  height: calc(100% + 14px) !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Build the floating golf-brand accent circle casing */
.action-circle-wrapper {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-medium) 100%);
  border: 3px solid var(--bg-cream-canvas); /* Mask ring that matches your cream canvas base */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  margin-bottom: 2px;
  transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Force inner graphic icons to anchor down inside the floating element */
.nav-item.center-action-btn .action-circle-wrapper i {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.35rem !important;
  transform: none !important;
}

/* Adjust text labels to line up cleanly beneath the floating circle wrapper */
.nav-item.center-action-btn span {
  margin-top: 1px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* Active Highlight Status State Tracker toggles */
.nav-item.center-action-btn.active .action-circle-wrapper {
  background: var(--color-gold) !important;
  box-shadow: 0 4px 14px rgba(194, 162, 106, 0.4);
  border-color: var(--bg-cream-canvas) !important;
}

.nav-item.center-action-btn.active .action-circle-wrapper i {
  color: var(--color-forest) !important; /* High contrast drop-shadow text swap */
}

.nav-item.center-action-btn.active span {
  color: var(--color-gold) !important;
}

/* --- HYDRAULIC TAP MICRO-INTERACTIONS --- */
.nav-item.center-action-btn:active .action-circle-wrapper {
  transform: scale(0.9) translateY(2px); /* Soft downward depression click feel */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- MIDNIGHT CLUBHOUSE DARK MODE OVERRIDES --- */
body.dark-mode .action-circle-wrapper {
  background: linear-gradient(135deg, #152219 0%, #1c2b20 100%);
  border-color: #0C120E !important; /* Swaps the ring mask color to match pitch-black dark mode canvas */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-item.center-action-btn .action-circle-wrapper i {
  color: var(--color-charcoal) !important;
}

body.dark-mode .nav-item.center-action-btn.active .action-circle-wrapper {
  background: var(--color-gold) !important;
}

body.dark-mode .nav-item.center-action-btn.active .action-circle-wrapper i {
  color: #121A15 !important; /* Pitch black slate font inversion */
}

#contributions-section-container,
#settlement-leaderboard-container,
#contributions-section-container .section-title,
#settlement-leaderboard-container .section-title {
  position: static !important; /* Prevents drifting */
  width: 100%;
}

/* --- Settle tab: denser layout so more ledger tables fit on screen --- */
#view-settlement .view-card {
  padding: 12px 14px;
}

#view-settlement .view-card.mb-4 {
  margin-bottom: 10px;
}

#view-settlement .section-title {
  font-size: clamp(0.95rem, 2.8vw + 0.4rem, 1.15rem);
  line-height: 1.2;
}

#view-settlement .section-subtitle {
  font-size: clamp(0.68rem, 2vw + 0.3rem, 0.8rem);
  margin-bottom: 8px;
  line-height: 1.35;
}

#view-settlement .section-title-lg {
  font-size: clamp(1.15rem, 3.2vw + 0.45rem, 1.45rem);
  line-height: 1.2;
}

#view-settlement .section-subtitle-lg {
  font-size: clamp(0.75rem, 2.2vw + 0.32rem, 0.92rem);
  margin-bottom: 12px;
  line-height: 1.35;
}

#view-settlement .live-standings-grid {
  gap: 6px;
}

#view-settlement .live-standings-grid.mt-2 {
  margin-top: 6px !important;
}

#view-settlement .live-standings-grid.mt-3 {
  margin-top: 6px !important;
}

#view-settlement .drink-hole-in-match-card {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#view-settlement .drink-hole-in-match-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.42);
}

#view-settlement .drink-hole-in-match-kicker .fa-beer-mug-empty {
  font-size: 0.68rem;
  color: rgba(212, 175, 55, 0.45);
}

#view-settlement .drink-hole-in-match-grid {
  gap: 4px !important;
  margin-top: 0 !important;
}

#view-settlement .drink-hole-match-row {
  padding: 5px 8px !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035) !important;
  font-size: 0.72rem;
  line-height: 1.25;
}

#view-settlement .drink-hole-match-row .dh-hole {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  flex-shrink: 0;
}

#view-settlement .drink-hole-match-row .dh-buyer {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-weight: 600;
  color: rgba(220, 195, 120, 0.82);
  text-align: right;
}

#view-settlement #live-standings-card .drink-hole-match-row .dh-buyer,
#view-settlement #live-standings-card .drink-hole-match-row .dh-buyer-text {
  color: rgba(255, 255, 255, 0.94) !important;
}

#view-settlement .drink-hole-match-row .dh-buy-icon {
  font-size: 0.78rem;
  color: rgba(212, 175, 85, 0.88);
  flex-shrink: 0;
}

#view-settlement .drink-hole-match-row .dh-pending {
  font-style: italic;
  font-weight: 500;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: right;
}

#view-settlement .card-subtitle {
  font-size: clamp(0.7rem, 2vw + 0.28rem, 0.82rem);
  padding-bottom: 5px;
}

#view-settlement .live-match-header-row {
  margin-bottom: 8px;
}

#view-settlement #raw-balance-table-container,
#view-settlement #settlement-leaderboard-container {
  margin-top: 6px !important;
  min-width: 0;
  width: 100%;
}

#view-settlement .nassau-segment-rolled {
  color: var(--color-muted);
  font-weight: 600;
  cursor: help;
  letter-spacing: 0.03em;
}

#view-settlement .nassau-push-footnote {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 600;
  color: #ffffff;
  background: #1c4825;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-gold);
  box-shadow: 0 1px 3px rgba(12, 18, 14, 0.12);
}

#view-settlement .nassau-push-footnote .fa-right-left {
  margin-right: 6px;
  color: var(--color-gold);
  font-size: 0.75rem;
}

body.dark-mode #view-settlement .nassau-push-footnote {
  background: #14321a;
  color: #ffffff;
  border-left-color: var(--color-gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body.dark-mode #view-settlement .nassau-push-footnote .fa-right-left {
  color: var(--color-gold);
}

#view-settlement #raw-balance-table-container.mt-3 {
  margin-top: 6px !important;
}

#view-settlement .raw-balance-table-scroll {
  width: 100%;
  min-width: 0;
}

/* Fit full table width: no forced min-width, fixed layout, fluid type */
#view-settlement .raw-balance-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: fixed;
  font-size: clamp(0.58rem, 2.4vw + 0.35rem, 0.82rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-variant-numeric: tabular-nums;
}

#view-settlement .raw-balance-table th,
#view-settlement .raw-balance-table td {
  padding: clamp(2px, 0.8vw, 5px) clamp(2px, 1.2vw, 6px) !important;
}

#view-settlement .raw-balance-table th:first-child,
#view-settlement .raw-balance-table td:first-child {
  width: 20%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

#view-settlement .raw-balance-table th:not(:first-child),
#view-settlement .raw-balance-table td:not(:first-child) {
  white-space: nowrap;
  width: auto;
  text-align: right;
  padding-left: 2px !important;
  padding-right: clamp(2px, 1vw, 6px) !important;
}

#view-settlement .raw-balance-table th {
  font-size: clamp(0.48rem, 1.6vw + 0.28rem, 0.68rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  padding-top: clamp(2px, 0.6vw, 4px) !important;
  padding-bottom: clamp(2px, 0.6vw, 4px) !important;
  border-bottom-width: 1px;
}

#view-settlement .raw-balance-table td.player-name {
  font-size: clamp(0.58rem, 2.2vw + 0.32rem, 0.84rem);
}

#view-settlement .payouts-container.mt-4 {
  margin-top: 1rem !important;
}

#view-settlement .round-share-box.mt-4 {
  margin-top: 1rem !important;
}

#view-settlement .contribution-team-label {
  padding: 3px clamp(6px, 2vw, 10px);
  margin-top: 5px;
  font-size: clamp(0.6rem, 1.8vw + 0.25rem, 0.72rem);
  border-radius: 4px;
}

/* Settle tab — dark mode: tone down cream “white” panels, ledger card, and team contribution chips */
body.dark-mode #view-settlement .view-card:not(.bg-dark-green):not(.highlight-card) {
  background-color: #121a15;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

body.dark-mode #view-settlement #raw-balance-table-container {
  background-color: transparent;
  border-color: transparent;
}

body.dark-mode #view-settlement .highlight-card {
  background: linear-gradient(165deg, #161f19 0%, #121a15 50%, #101812 100%);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

body.dark-mode #view-settlement .highlight-card .card-glow {
  opacity: 0.25;
}

body.dark-mode .contribution-team-label.team-1 {
  background-color: rgba(82, 178, 115, 0.14);
  color: #9fd4ae;
}

body.dark-mode .contribution-team-label.team-2 {
  background-color: rgba(212, 175, 55, 0.12);
  color: #c9b87a;
}

body.dark-mode #view-settlement .payout-card {
  background-color: #121a15;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #view-settlement .payout-debtor,
body.dark-mode #view-settlement .payout-creditor {
  color: #c8e5cf;
}

body.dark-mode #view-settlement .payout-text {
  color: rgba(245, 245, 245, 0.72);
}

body.dark-mode #view-settlement .payout-icon {
  background-color: rgba(82, 178, 115, 0.18);
  color: #7cdb95;
}

body.dark-mode #view-settlement .round-share-box {
  background-color: #121a15;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #view-settlement .copy-textarea {
  background-color: #0e1410;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.88);
}

/* Setup / settlement cards: click title or chevron to collapse body + subtitle */
.stc-card-collapse-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

/* Setup cards: title + collapsed summary pill cluster; chevron stays at end */
.stc-card-collapse-title-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  flex: 1;
  min-width: 0;
}

/* Whole title row (heading + collapsed pill) toggles the card like the chevron */
.stc-collapsible-card:not(.stc-setup-card-host-readonly) .stc-card-collapse-title-summary {
  cursor: pointer;
}

.stc-card-collapse-title-summary .stc-card-collapse-toggle {
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

/* Settlement (and other) cards: title only in the row — let it use remaining width */
.stc-card-collapse-header-row > .stc-card-collapse-toggle {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.stc-collapsible-card .stc-card-collapse-toggle {
  cursor: pointer;
  user-select: none;
}

.stc-collapsible-card .stc-card-collapse-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.stc-card-collapse-chevron {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: var(--radius-md, 6px);
  line-height: 1;
  align-self: center;
}

.stc-card-collapse-chevron:hover {
  color: var(--color-forest);
  background: rgba(0, 0, 0, 0.04);
}

.stc-card-collapse-chevron:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.stc-card-collapse-chevron-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.5rem;
  opacity: 0.9;
}

.stc-card-collapse-chevron-icons .fa-chevron-up {
  margin-bottom: -2px;
}

.stc-card-collapse-chevron--on-dark {
  color: rgba(255, 255, 255, 0.75);
}

.stc-card-collapse-chevron--on-dark:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.stc-course-badge-edit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stc-course-badge-edit-row .selected-course-title-badge {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

.stc-course-badge-edit-row #toggle-course-edit-btn {
  flex-shrink: 0;
}

.stc-collapsible-card.is-collapsed .stc-card-collapsible-body,
.stc-collapsible-card.is-collapsed .stc-card-collapse-sub {
  display: none;
}

/* One-line summary when a setup card is collapsed — pill beside title */
.stc-card-collapse-summary {
  display: none;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 5px 11px;
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(194, 162, 106, 0.65);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.95) 0%, rgba(245, 238, 224, 0.88) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-forest);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stc-card-collapse-title-summary .stc-card-collapse-summary {
  max-width: min(100%, 280px);
}

.stc-collapsible-card.is-collapsed .stc-card-collapse-summary {
  display: inline-flex;
  align-items: center;
}

/* Play-along buddy: host-owned setup sections stay collapsed, muted, and non-expandable (summary still visible). */
.stc-setup-card-host-readonly {
  opacity: 0.88;
}

.stc-setup-card-host-readonly .stc-card-collapse-header-row .section-title {
  color: var(--color-muted);
}

.stc-setup-card-host-readonly .stc-card-collapse-summary {
  color: var(--color-muted);
  border-color: rgba(120, 120, 120, 0.28);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

body.dark-mode .stc-collapsible-card.is-collapsed .stc-card-collapse-summary {
  color: rgba(245, 245, 245, 0.92);
  border-color: rgba(194, 162, 106, 0.42);
  background: linear-gradient(180deg, rgba(40, 48, 42, 0.95) 0%, rgba(28, 36, 32, 0.92) 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body.dark-mode .stc-setup-card-host-readonly .stc-card-collapse-summary {
  color: rgba(200, 200, 200, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.stc-setup-card-host-readonly .accent-gold {
  opacity: 0.48;
}

.stc-setup-card-host-readonly .stc-card-collapse-header-row .stc-card-collapse-toggle,
.stc-setup-card-host-readonly .stc-card-collapse-header-row .stc-card-collapse-chevron {
  pointer-events: none;
  cursor: default;
}

.stc-setup-card-host-readonly .stc-card-collapse-chevron {
  opacity: 0.35;
}

/* Setup welcome (dismissible; hidden via .hidden when stc_setup_welcome_dismissed is set) */
.stc-welcome-card {
  border: 1px solid var(--color-gold);
  background: linear-gradient(145deg, #fcfaf5 0%, rgba(234, 245, 236, 0.55) 55%, rgba(194, 162, 106, 0.08) 100%);
  position: relative;
  overflow: hidden;
}

.stc-welcome-card-inner {
  position: relative;
  z-index: 1;
  padding: 2px 2px 0;
}

.stc-welcome-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-forest);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.stc-welcome-lead,
.stc-welcome-hint {
  font-size: 0.88rem;
  color: var(--color-charcoal);
  line-height: 1.45;
  margin: 0 0 10px;
}

.stc-welcome-hint {
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.stc-welcome-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

#view-setup .stc-welcome-card .btn-primary {
  font-size: 0.82rem;
  padding: 10px 16px;
}

/* Free vs Pro banner (Setup, above Fairway Sync; dismiss persists in localStorage) */
.stc-free-tier-banner {
  position: relative;
  border: 1px solid rgba(42, 110, 59, 0.32);
  background: linear-gradient(
    160deg,
    rgba(234, 245, 236, 0.95) 0%,
    var(--bg-cream-card, #faf8f3) 52%,
    rgba(194, 162, 106, 0.1) 100%
  );
  box-shadow: var(--shadow-sm);
}
body.dark-mode .stc-free-tier-banner {
  border-color: rgba(194, 162, 106, 0.38);
  background: linear-gradient(
    160deg,
    rgba(32, 52, 40, 0.98) 0%,
    var(--bg-card, #243529) 55%,
    rgba(18, 28, 22, 1) 100%
  );
}
.stc-free-tier-banner__inner {
  position: relative;
  z-index: 1;
  padding: 12px 40px 10px 14px;
}
.stc-free-tier-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted, #6b7a72);
  cursor: pointer;
  transition: var(--transition, color 0.15s ease, background 0.15s ease);
}
.stc-free-tier-banner__close:hover {
  color: var(--color-forest, #1e3d2a);
  background: rgba(0, 0, 0, 0.06);
}
body.dark-mode .stc-free-tier-banner__close {
  color: rgba(245, 240, 230, 0.65);
}
body.dark-mode .stc-free-tier-banner__close:hover {
  color: var(--color-cream, #f5f0e6);
  background: rgba(255, 255, 255, 0.08);
}
.stc-free-tier-banner__title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-forest, #1e3d2a);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
  padding-right: 8px;
}
body.dark-mode .stc-free-tier-banner__title {
  color: var(--color-cream, #f5f0e6);
}
.stc-free-tier-banner__lead,
.stc-free-tier-banner__pro,
.stc-free-tier-banner__hint {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--color-charcoal, #2c3830);
  margin: 0 0 10px;
}
body.dark-mode .stc-free-tier-banner__lead,
body.dark-mode .stc-free-tier-banner__pro,
body.dark-mode .stc-free-tier-banner__hint {
  color: rgba(245, 240, 230, 0.88);
}
.stc-free-tier-banner__subhead {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold-dark, #8a7349);
  margin: 0 0 6px;
}
.stc-free-tier-banner__list {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-charcoal, #2c3830);
}
body.dark-mode .stc-free-tier-banner__list {
  color: rgba(245, 240, 230, 0.9);
}
.stc-free-tier-banner__list li {
  margin-bottom: 6px;
}
.stc-free-tier-banner__list li:last-child {
  margin-bottom: 0;
}
.stc-free-tier-banner__pro {
  margin-bottom: 8px;
}
.stc-free-tier-banner__hint {
  font-size: 0.8rem;
  color: var(--color-muted, #6b7a72);
  margin-bottom: 12px;
}
body.dark-mode .stc-free-tier-banner__hint {
  color: rgba(200, 210, 200, 0.85);
}
.stc-free-tier-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* --- Nassau presses: floating FAB + popup (no scorecard layout height) --- */
body.nassau-press-popup-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ── Side Action FAB ─────────────────────────────────────────────────────── */
.side-action-fab-root {
  position: fixed;
  inset: 0;
  z-index: 878;
  pointer-events: none;
}
.side-action-fab-root.hidden { display: none !important; }

/* Sheet/overlay open: stack above `.nassau-press-fab-root` (880) so the dimmer blocks the other FAB. */
.side-action-fab-root.stc-fab-root-modal-open {
  z-index: 960;
}

.side-action-fab-stack {
  position: absolute;
  /* Sit just to the left of the press FAB */
  right: max(80px, calc(3.4rem + 28px + env(safe-area-inset-right, 0px)));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 879;
  pointer-events: auto;
}

.side-action-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(155deg, #4caf7d 0%, #2A6E3B 50%, #1b4d2a 100%);
  box-shadow:
    0 4px 14px rgba(42, 110, 59, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.12s ease, filter 0.15s ease;
  font-size: 1.35rem;
}
.side-action-fab:hover { transform: scale(1.05); filter: brightness(1.06); }

.side-action-fab-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: #2A6E3B;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.side-action-fab-count.hidden { display: none !important; }

/* ── Side Action creator form inside the sheet ─────────────────────────── */
.sa-form-section { padding: 14px 16px 0; }
.sa-form-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.sa-player-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.sa-team-col { display: flex; flex-direction: column; gap: 5px; }
.sa-team-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.05);
  color: var(--color-muted);
}
.sa-player-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  gap: 6px;
  transition: var(--transition);
}
.sa-player-chip.on-team1 {
  border-color: #2A6E3B;
  background: rgba(42,110,59,0.07);
  color: #1b4d2a;
}
.sa-player-chip.on-team2 {
  border-color: var(--color-gold);
  background: rgba(194,162,106,0.1);
  color: var(--color-gold-dark);
}
.sa-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sa-chip-btn {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition);
}
.sa-chip-btn.active {
  border-color: #2A6E3B;
  background: rgba(42,110,59,0.08);
  color: #1b4d2a;
  font-weight: 700;
}

/* Side Action sheet — premium chips (scoped so Settle money-matrix tabs stay unchanged) */
#side-action-sheet-body .sa-form-label--prose {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  line-height: 1.45;
  max-width: 100%;
}
#side-action-sheet-body .sa-player-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
#side-action-sheet-body .sa-player-chip {
  position: relative;
  padding: 9px 12px 9px 14px;
  border-radius: 11px;
  border: 1.5px solid rgba(45, 42, 38, 0.1);
  background: linear-gradient(168deg, #fffefb 0%, #f7f3ea 48%, #efe8dc 100%);
  box-shadow:
    0 2px 8px rgba(42, 50, 39, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#side-action-sheet-body .sa-player-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  opacity: 0.85;
  transition: background 0.2s ease;
}
#side-action-sheet-body .sa-player-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 162, 106, 0.5);
  box-shadow:
    0 5px 16px rgba(42, 50, 39, 0.12),
    0 0 0 1px rgba(194, 162, 106, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
#side-action-sheet-body .sa-player-chip:hover::before {
  background: linear-gradient(180deg, #d4b87a 0%, var(--color-gold-dark) 100%);
}
#side-action-sheet-body .sa-player-chip:active {
  transform: translateY(0);
}
#side-action-sheet-body .sa-player-chip.on-team1 {
  border-color: rgba(42, 110, 59, 0.55);
  background: linear-gradient(168deg, #f4faf6 0%, #dff0e4 45%, #c8e4d0 100%);
  color: #0f3d1f;
  box-shadow:
    0 2px 10px rgba(42, 110, 59, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
#side-action-sheet-body .sa-player-chip.on-team1::before {
  background: #2A6E3B;
}
#side-action-sheet-body .sa-player-chip.on-team2 {
  border-color: rgba(194, 162, 106, 0.75);
  background: linear-gradient(168deg, #fffbf5 0%, #f5ead8 50%, #ecd9b8 100%);
  color: var(--color-gold-dark);
  box-shadow:
    0 2px 10px rgba(160, 120, 60, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
#side-action-sheet-body .sa-player-chip.on-team2::before {
  background: var(--color-gold);
}
#side-action-sheet-body .sa-player-chip .sa-team-tag {
  min-width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-muted);
}
#side-action-sheet-body .sa-player-chip.on-team1 .sa-team-tag {
  background: #2A6E3B;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
#side-action-sheet-body .sa-player-chip.on-team2 .sa-team-tag {
  background: var(--color-gold);
  color: var(--color-charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
#side-action-sheet-body .sa-btn-row .sa-chip-btn,
#side-action-sheet-body .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn,
.nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn {
  padding: 8px 14px 10px;
  border-radius: 11px;
  border: 1.5px solid rgba(45, 42, 38, 0.1);
  border-bottom: 2.5px solid rgba(45, 42, 38, 0.12);
  background: linear-gradient(168deg, #fffefb 0%, #f4f0e6 100%);
  box-shadow: 0 2px 6px rgba(42, 50, 39, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}
#side-action-sheet-body .sa-btn-row .sa-chip-btn:hover,
#side-action-sheet-body .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn:hover,
.nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn:hover {
  border-color: rgba(194, 162, 106, 0.55);
  border-bottom-color: rgba(194, 162, 106, 0.45);
  color: var(--color-forest);
  box-shadow: 0 4px 12px rgba(42, 50, 39, 0.1);
}
#side-action-sheet-body .sa-btn-row .sa-chip-btn.active,
#side-action-sheet-body .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn.active,
.nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn.active {
  border-color: var(--color-gold);
  border-bottom-color: #2A6E3B;
  background: linear-gradient(168deg, #faf8f2 0%, #e5f0e8 52%, #d4eadd 100%);
  color: #0f3d1f;
  font-weight: 800;
  box-shadow:
    0 0 0 1.5px rgba(42, 110, 59, 0.22),
    0 4px 14px rgba(42, 110, 59, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
#side-action-sheet-body .sa-btn-row .sa-chip-btn.active:hover,
#side-action-sheet-body .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn.active:hover,
.nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn.active:hover {
  border-color: #2A6E3B;
  color: #0a2a14;
}
#side-action-sheet-body #sa-team-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(194, 162, 106, 0.08);
  border: 1px solid rgba(194, 162, 106, 0.2);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-charcoal);
}
#side-action-sheet-body #sa-team-legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#side-action-sheet-body #sa-create-form > .sa-form-section:not(:last-child) {
  border-bottom: 1px solid rgba(194, 162, 106, 0.14);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
body.dark-mode #side-action-sheet-body .sa-form-label--prose {
  color: rgba(230, 228, 220, 0.78);
}
body.dark-mode #side-action-sheet-body .sa-player-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(168deg, rgba(40, 44, 42, 0.95) 0%, rgba(28, 32, 30, 0.98) 100%);
  color: rgba(248, 246, 240, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.dark-mode #side-action-sheet-body .sa-player-chip:hover {
  border-color: rgba(194, 162, 106, 0.45);
}
body.dark-mode #side-action-sheet-body .sa-player-chip.on-team1 {
  border-color: rgba(76, 175, 125, 0.45);
  background: linear-gradient(168deg, rgba(35, 55, 42, 0.95) 0%, rgba(22, 48, 32, 0.98) 100%);
  color: rgba(210, 240, 220, 0.95);
}
body.dark-mode #side-action-sheet-body .sa-player-chip.on-team2 {
  border-color: rgba(194, 162, 106, 0.5);
  background: linear-gradient(168deg, rgba(55, 48, 36, 0.95) 0%, rgba(42, 36, 28, 0.98) 100%);
  color: rgba(240, 220, 190, 0.95);
}
body.dark-mode #side-action-sheet-body .sa-btn-row .sa-chip-btn,
body.dark-mode #side-action-sheet-body .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn,
body.dark-mode .nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn {
  border-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(0, 0, 0, 0.35);
  background: linear-gradient(168deg, rgba(44, 48, 46, 0.95) 0%, rgba(30, 34, 32, 0.98) 100%);
  color: rgba(200, 198, 190, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
body.dark-mode #side-action-sheet-body .sa-btn-row .sa-chip-btn:hover,
body.dark-mode #side-action-sheet-body .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn:hover,
body.dark-mode .nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn:hover {
  border-color: rgba(194, 162, 106, 0.4);
  color: rgba(240, 236, 228, 0.95);
}
body.dark-mode #side-action-sheet-body .sa-btn-row .sa-chip-btn.active,
body.dark-mode #side-action-sheet-body .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn.active,
body.dark-mode .nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn.active {
  border-color: rgba(194, 162, 106, 0.55);
  border-bottom-color: rgba(76, 175, 125, 0.75);
  background: linear-gradient(168deg, rgba(38, 52, 44, 0.98) 0%, rgba(26, 42, 34, 0.99) 100%);
  color: rgba(210, 240, 220, 0.98);
  box-shadow: 0 0 0 1.5px rgba(76, 175, 125, 0.25), 0 4px 16px rgba(0, 0, 0, 0.35);
}
body.dark-mode #side-action-sheet-body #sa-team-legend-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(230, 226, 218, 0.88);
}
#side-action-sheet-body .sa-spec-hole-btn {
  border-radius: 10px;
  border: 1.5px solid rgba(45, 42, 38, 0.1);
  background: linear-gradient(168deg, #fffefb 0%, #f4f0e6 100%);
  box-shadow: 0 1px 4px rgba(42, 50, 39, 0.06);
  font-weight: 700;
}
#side-action-sheet-body .sa-spec-hole-btn:hover {
  border-color: rgba(194, 162, 106, 0.55);
  box-shadow: 0 3px 10px rgba(42, 50, 39, 0.1);
}
#side-action-sheet-body .sa-wager-input:focus {
  border-color: rgba(194, 162, 106, 0.75);
  box-shadow: 0 0 0 2px rgba(42, 110, 59, 0.15);
}
#side-action-sheet-body .sa-active-card {
  background: linear-gradient(168deg, #fffefb 0%, #f8f4eb 55%, #f0ebe0 100%);
  border: 1.5px solid rgba(194, 162, 106, 0.25);
  box-shadow:
    0 3px 14px rgba(42, 50, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
body.dark-mode #side-action-sheet-body .sa-active-card {
  background: linear-gradient(168deg, rgba(48, 46, 42, 0.98) 0%, rgba(32, 34, 32, 0.99) 100%);
  border-color: rgba(194, 162, 106, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.dark-mode #side-action-sheet-body .sa-spec-hole-btn {
  background: linear-gradient(168deg, rgba(44, 46, 44, 0.95) 0%, rgba(30, 32, 31, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(210, 208, 200, 0.9);
}

/* Side Action — specific hole span (tap grid) */
.sa-specific-hole-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
}
.sa-spec-hole-btn {
  flex: 0 0 auto;
  min-width: 2.25rem;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition);
}
.sa-spec-hole-btn:hover {
  border-color: rgba(194, 162, 106, 0.75);
  color: var(--color-forest);
}
.sa-spec-hole-btn.sa-spec-hole-btn--in-range {
  border-color: #2A6E3B;
  background: rgba(42, 110, 59, 0.14);
  color: #14321a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
body.dark-mode .sa-spec-hole-btn {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(230, 230, 230, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .sa-spec-hole-btn:hover {
  border-color: rgba(194, 162, 106, 0.55);
  color: var(--color-cream);
}
body.dark-mode .sa-spec-hole-btn.sa-spec-hole-btn--in-range {
  border-color: var(--color-gold);
  background: rgba(194, 162, 106, 0.16);
  color: rgba(252, 250, 245, 0.95);
}

.sa-wager-input {
  width: 110px;
  font-size: 1rem;
  font-weight: 700;
  padding: 7px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-forest);
  outline: none;
}
.sa-create-btn {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4caf7d 0%, #2A6E3B 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.sa-create-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Active side action cards in the sheet */
.sa-active-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin: 0 16px 6px;
}
.sa-active-card__info { flex: 1; min-width: 0; }
.sa-active-card__title { font-size: 0.76rem; font-weight: 700; color: var(--color-charcoal); }
.sa-active-card__sub { font-size: 0.64rem; color: var(--color-muted); margin-top: 1px; }
.sa-active-card__status {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-forest);
  text-align: right;
  white-space: normal;
  max-width: 42%;
  line-height: 1.25;
  margin-top: 1px;
}
/* CTP tiebreak / honor rows reuse settlement markup; on white cards .tb-btn needs dark text */
.sa-active-card .nassau-mp-bet-tiebreak {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}
.sa-active-card .nassau-mp-bet-tiebreak-label {
  color: var(--color-muted);
  font-size: 0.58rem;
  margin-bottom: 3px;
}
.sa-active-card .nassau-mp-bet-tiebreak-btns {
  justify-content: stretch;
}
/* CTP pick row: stretch three sa-chip-btn like FORMAT row */
#side-action-sheet-body .sa-active-card .nassau-mp-bet-tiebreak-btns.sa-btn-row {
  margin-bottom: 0;
}
#side-action-sheet-body .sa-active-card .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn,
.nassau-mp-bet-box .nassau-mp-bet-tiebreak-btns.sa-btn-row .sa-chip-btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* CTP picks: one compact row in the side-action sheet */
.sa-active-card .sa-ctp-pick-row--compact .nassau-mp-bet-tiebreak-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}
.sa-active-card .sa-ctp-pick-row--compact {
  margin-top: 2px;
  padding-top: 4px;
}
.sa-active-card .sa-ctp-pick-row--compact .nassau-mp-bet-tiebreak-label {
  margin-bottom: 3px;
}
.sa-delete-btn {
  flex-shrink: 0;
  margin-top: 1px;
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--color-muted);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: var(--transition);
}
.sa-delete-btn:hover { color: var(--color-danger, #c0392b); background: rgba(192,57,43,0.08); }

/* Nassau press FAB ─────────────────────────────────────────────────────── */
.nassau-press-fab-root {
  position: fixed;
  inset: 0;
  z-index: 880;
  pointer-events: none;
}

.nassau-press-fab-root.hidden {
  display: none !important;
}

/* Sheet/overlay open: stack above sibling FAB root so dimmer blocks Side Action FAB. */
.nassau-press-fab-root.stc-fab-root-modal-open {
  z-index: 960;
}

.nassau-press-fab-stack {
  position: absolute;
  right: max(14px, env(safe-area-inset-right, 0px));
  /* Same band as #stc-toast: just above the 70px bottom nav (+ home indicator) */
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 881;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.nassau-press-fab-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nassau-press-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(155deg, #e8a060 0%, #c46a38 42%, #9a3d28 100%);
  box-shadow:
    0 4px 14px rgba(180, 70, 40, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.nassau-press-fab:hover {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.nassau-press-fab__flame {
  font-size: 1.45rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.nassau-press-fab-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: #1a1512;
  background: #fff4e6;
  border: 2px solid rgba(196, 106, 56, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Declined-count notification on opposite corner from eligible pill */
.nassau-press-fab-deferred-badge {
  position: absolute;
  left: -4px;
  bottom: -2px;
  z-index: 2;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(80, 60, 120, 0.95);
  background: linear-gradient(165deg, #7b5fd4 0%, #5a3fb8 55%, #3d2a7a 100%);
  box-shadow:
    0 2px 8px rgba(60, 40, 120, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.nassau-press-fab-deferred-badge:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.nassau-press-fab-deferred-badge.hidden {
  display: none !important;
}

@keyframes nassau-press-fab-pulse-glow {
  0%,
  100% {
    box-shadow:
      0 4px 14px rgba(180, 70, 40, 0.45),
      0 0 0 0 rgba(255, 160, 90, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  }
  50% {
    box-shadow:
      0 4px 22px rgba(255, 120, 60, 0.55),
      0 0 24px 6px rgba(255, 140, 80, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  }
}

.nassau-press-fab--pulse {
  animation: nassau-press-fab-pulse-glow 1.7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nassau-press-fab--pulse {
    animation: none;
    box-shadow:
      0 4px 18px rgba(255, 120, 60, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  }
}

.nassau-press-overlay {
  position: fixed;
  inset: 0;
  z-index: 920;
  background: rgba(14, 12, 10, 0.52);
  pointer-events: auto;
  backdrop-filter: blur(2px);
}

.nassau-press-overlay.hidden {
  display: none !important;
}

.nassau-press-sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 930;
  width: min(96vw, 460px);
  max-height: min(86vh, 680px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 252, 248, 0.99) 0%, rgba(248, 240, 230, 0.99) 100%);
  border: 1px solid rgba(194, 162, 106, 0.42);
  box-shadow:
    0 24px 48px rgba(24, 18, 14, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  overflow: hidden;
  pointer-events: auto;
  overscroll-behavior: contain;
}

/* FAB-anchored enter/exit (Nassau Press + Side Action sheets share .nassau-press-sheet) */
.nassau-press-sheet.stc-fab-sheet {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.nassau-press-sheet.stc-fab-sheet.stc-fab-sheet--from-fab {
  transform: translate(-50%, -50%) scale(0.07);
  opacity: 0;
}

.nassau-press-sheet.stc-fab-sheet.stc-fab-sheet--open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.nassau-press-sheet.stc-fab-sheet.stc-fab-sheet--closing {
  transform: translate(-50%, -50%) scale(0.07);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nassau-press-sheet.stc-fab-sheet {
    transition: none;
  }
}

.nassau-press-sheet.hidden {
  display: none !important;
}

.nassau-press-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(194, 162, 106, 0.22);
  flex-shrink: 0;
}

.nassau-press-sheet-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-charcoal, #1a1a1c);
}

.nassau-press-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--color-muted, #555);
  background: rgba(0, 0, 0, 0.04);
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.nassau-press-sheet-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-charcoal, #1a1a1c);
}

.nassau-press-sheet-sub {
  margin: 0;
  padding: 8px 16px 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-muted, #666);
  line-height: 1.45;
  flex-shrink: 0;
}

.scorecard-press-toolbar-sub {
  margin-top: 0;
  margin-bottom: 0;
}

.scorecard-press-prompt {
  width: 100%;
}

.nassau-press-sheet-body {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 16px 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.nassau-press-popup-lead-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.nassau-press-sheet-body .nassau-press-banner-desc {
  padding-left: 0;
  margin-top: 0;
}

body.dark-mode .nassau-press-popup-lead-kicker {
  color: rgba(255, 255, 255, 0.48);
}

body.dark-mode .nassau-press-overlay {
  background: rgba(0, 0, 0, 0.58);
}

body.dark-mode .nassau-press-sheet {
  background: linear-gradient(165deg, rgba(42, 38, 34, 0.98) 0%, rgba(28, 26, 24, 0.99) 100%);
  border-color: rgba(194, 162, 106, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

body.dark-mode .nassau-press-sheet-head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nassau-press-sheet-title {
  color: var(--color-cream, #f5f0e6);
}

body.dark-mode .nassau-press-sheet-close {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .nassau-press-sheet-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .nassau-press-sheet-sub {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .nassau-press-fab {
  background: linear-gradient(155deg, #b87a48 0%, #8a4828 45%, #5c2818 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

body.dark-mode .nassau-press-fab-count {
  color: #1a1512;
  background: #ffe8d4;
  border-color: rgba(200, 120, 70, 0.9);
}

body.dark-mode .nassau-press-fab-deferred-badge {
  color: #f5f0ff;
  border-color: rgba(160, 140, 220, 0.85);
  background: linear-gradient(165deg, #6a52c4 0%, #4a3490 50%, #2e2058 100%);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.nassau-press-empty-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(194, 162, 106, 0.35);
}

.nassau-press-empty-hint-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(194, 162, 106, 0.18);
  color: var(--color-gold-dark, #8a7349);
  font-size: 0.95rem;
}

.nassau-press-strip-hint {
  margin: 0;
  flex: 1;
  font-size: 0.74rem;
  color: var(--color-muted, #666);
  line-height: 1.45;
  font-weight: 600;
}

.nassau-press-prompt-inner {
  width: 100%;
  padding: 2px 0 0;
}

.nassau-press-prompt-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
}

.nassau-press-prompt-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255, 248, 244, 0.98) 0%, rgba(252, 236, 230, 0.94) 55%, rgba(248, 228, 220, 0.9) 100%);
  border: 1px solid rgba(194, 162, 106, 0.38);
  color: var(--color-press-flame);
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(48, 22, 18, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nassau-press-prompt-header-text {
  min-width: 0;
  flex: 1;
}

.nassau-press-banner-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-charcoal, #1a1a1c);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nassau-press-banner-kicker {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nassau-press-banner-desc {
  margin: 8px 0 12px;
  padding-left: calc(2.5rem + 12px);
  font-size: 0.74rem;
  color: var(--color-muted, #555);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .nassau-press-banner-desc {
    padding-left: 0;
  }
}

.nassau-press-section {
  margin-bottom: 12px;
}

.nassau-press-section-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted, #666);
}

.nassau-press-section-empty {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted, #777);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.nassau-press-static-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nassau-press-static-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: default;
  font-size: 0.8rem;
  line-height: 1.4;
}

.nassau-press-static-row--active {
  border-color: rgba(194, 162, 106, 0.28);
  background: rgba(255, 252, 245, 0.88);
}

.nassau-press-static-row--declined {
  opacity: 0.88;
  background: rgba(248, 246, 244, 0.85);
}

.nassau-press-decline-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(120, 90, 80, 0.12);
  color: var(--color-muted, #666);
}

.nassau-press-offer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.nassau-press-offer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: default;
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.nassau-press-offer-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-dark, #8a7349) 100%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nassau-press-offer-row--eligible::before {
  opacity: 0.45;
}

.nassau-press-offer-row:hover {
  border-color: rgba(194, 162, 106, 0.35);
  box-shadow: 0 4px 12px rgba(60, 48, 28, 0.08);
}

.nassau-press-offer-row:hover::before {
  opacity: 0.85;
}

.nassau-press-offer-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.nassau-press-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-charcoal, #1a1a1c);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.08s ease,
    filter 0.12s ease;
}

.nassau-press-icon-btn:hover {
  transform: translateY(-1px);
}

.nassau-press-icon-btn--decline {
  color: #8a4a42;
  border-color: rgba(138, 74, 66, 0.38);
}

.nassau-press-icon-btn--decline:hover {
  background: rgba(138, 74, 66, 0.1);
}

.nassau-press-icon-btn--accept {
  color: #fff;
  background: linear-gradient(180deg, var(--color-gold-dark, #8a7349) 0%, #6d5a40 100%);
  border-color: rgba(90, 74, 50, 0.55);
}

.nassau-press-icon-btn--accept:hover {
  filter: brightness(1.06);
}

.nassau-press-static-row--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nassau-press-static-row--split .nassau-press-card__rowWithPill {
  flex: 1;
  min-width: 0;
}

.nassau-press-static-row--split .nassau-press-offer-actions {
  padding-top: 2px;
}

.nassau-press-activate-btn {
  white-space: nowrap;
  font-weight: 700;
}

.nassau-press-offer-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.nassau-press-offer-line1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em;
  font-weight: 650;
  color: var(--color-charcoal, #1a1a1c);
}

.nassau-press-offer-dot {
  opacity: 0.45;
  font-weight: 700;
}

.nassau-press-offer-scope {
  font-weight: 700;
  color: var(--color-gold-dark, #8a7349);
}

.nassau-press-offer-wager {
  font-weight: 800;
  color: var(--color-charcoal, #1a1a1c);
}

.nassau-press-offer-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--color-muted, #666);
  font-weight: 600;
  line-height: 1.35;
}

.nassau-press-compact-line {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--color-charcoal, #1a1a1c);
  line-height: 1.35;
  word-break: break-word;
  min-width: 0;
}

.nassau-press-card__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.nassau-press-card__matchup {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-forest, #14321a);
  line-height: 1.3;
}

body.dark-mode .nassau-press-card__matchup {
  color: rgba(236, 232, 220, 0.95);
}

.nassau-press-card__line1 {
  font-size: 0.8rem;
  line-height: 1.38;
}

.nassau-press-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.nassau-press-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.nassau-press-card__badge--eligible {
  background: rgba(184, 149, 92, 0.22);
  color: #5c4a24;
  border: 1px solid rgba(138, 115, 73, 0.35);
}

.nassau-press-card__badge--active {
  background: rgba(80, 140, 95, 0.2);
  color: #1a4d28;
  border: 1px solid rgba(60, 110, 72, 0.35);
}

.nassau-press-card__badge--declined {
  background: rgba(138, 74, 66, 0.14);
  color: #5a2f2a;
  border: 1px solid rgba(138, 74, 66, 0.28);
}

.nassau-press-card__meta-detail {
  color: var(--color-muted, #666);
  font-weight: 600;
}

.nassau-press-card__rowWithPill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.nassau-press-card__rowWithPill--fill {
  flex: 1;
  min-width: 0;
}

.nassau-press-static-row--active.nassau-press-card--withPill .nassau-press-card__rowWithPill,
.nassau-press-static-row--declined.nassau-press-card--withPill .nassau-press-card__rowWithPill {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.nassau-press-card__statusPill {
  flex-shrink: 0;
  min-width: 5.75rem;
  max-width: 44%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 245, 232, 0.99) 100%);
  border: 1px solid rgba(184, 149, 92, 0.45);
  box-shadow:
    0 2px 10px rgba(60, 48, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nassau-press-card__statusPill-names {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-charcoal, #1a1a1c);
  line-height: 1.2;
  margin-bottom: 5px;
  word-break: break-word;
}

.nassau-press-card__statusPill-score {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--color-gold-dark, #6d5a40);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.nassau-press-card__statusPill--longScore {
  max-width: 52%;
  text-align: left;
}

.nassau-press-card__statusPill--longScore .nassau-press-card__statusPill-score {
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0;
}

.nassau-press-live-status {
  color: var(--color-charcoal, #1a1a1c);
  font-weight: 800;
}

.nassau-press-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 2px;
}

body.dark-mode .nassau-press-empty-hint {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(194, 162, 106, 0.28);
}

body.dark-mode .nassau-press-empty-hint-icon {
  background: rgba(194, 162, 106, 0.22);
  color: rgba(232, 212, 168, 0.95);
}

body.dark-mode .nassau-press-strip-hint {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .nassau-press-banner-title {
  color: var(--color-cream, #f5f0e6);
}

body.dark-mode .nassau-press-prompt-header-icon {
  background: linear-gradient(155deg, rgba(52, 38, 36, 0.96) 0%, rgba(38, 28, 26, 0.94) 100%);
  border-color: rgba(194, 162, 106, 0.32);
  color: var(--color-press-flame-soft);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .nassau-press-banner-kicker {
  color: rgba(255, 255, 255, 0.45);
}

body.dark-mode .nassau-press-banner-desc {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .nassau-press-offer-row {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.dark-mode .nassau-press-offer-row:hover {
  border-color: rgba(194, 162, 106, 0.35);
}

body.dark-mode .nassau-press-icon-btn {
  background: rgba(40, 38, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 232, 0.92);
}

body.dark-mode .nassau-press-icon-btn--decline {
  color: rgba(255, 180, 170, 0.95);
  border-color: rgba(200, 120, 110, 0.4);
}

body.dark-mode .nassau-press-icon-btn--decline:hover {
  background: rgba(120, 60, 52, 0.35);
}

body.dark-mode .nassau-press-icon-btn--accept {
  border-color: rgba(194, 162, 106, 0.45);
}

body.dark-mode .nassau-press-offer-line1 {
  color: rgba(245, 240, 232, 0.95);
}

body.dark-mode .nassau-press-offer-wager {
  color: rgba(245, 240, 232, 0.92);
}

body.dark-mode .nassau-press-offer-meta {
  color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .nassau-press-live-status {
  color: rgba(245, 240, 232, 0.92);
}

body.dark-mode .nassau-press-compact-line {
  color: rgba(245, 240, 232, 0.95);
}

body.dark-mode .nassau-press-section-title {
  color: rgba(255, 255, 255, 0.48);
}

body.dark-mode .nassau-press-section-empty {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .nassau-press-static-row {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .nassau-press-static-row--active {
  background: rgba(40, 36, 30, 0.88);
  border-color: rgba(194, 162, 106, 0.32);
}

body.dark-mode .nassau-mp-bet-line--light .nassau-mp-bet-line__seg {
  color: rgba(232, 200, 150, 0.92);
}

body.dark-mode .nassau-mp-bet-line--light .nassau-mp-bet-line__kind {
  color: rgba(255, 250, 240, 0.96);
}

body.dark-mode .nassau-mp-bet-line--light .nassau-mp-bet-line__wager {
  color: #9fd4a8;
}

body.dark-mode .nassau-mp-bet-line--light .nassau-mp-bet-line__score {
  color: rgba(255, 255, 255, 0.92);
}

body.dark-mode .nassau-press-card__badge--eligible {
  background: rgba(194, 162, 106, 0.18);
  color: rgba(245, 228, 190, 0.95);
  border-color: rgba(194, 162, 106, 0.35);
}

body.dark-mode .nassau-press-card__badge--active {
  background: rgba(100, 160, 115, 0.2);
  color: rgba(190, 235, 200, 0.95);
  border-color: rgba(120, 180, 135, 0.4);
}

body.dark-mode .nassau-press-card__badge--declined {
  background: rgba(180, 100, 90, 0.15);
  color: rgba(255, 200, 190, 0.88);
  border-color: rgba(200, 120, 110, 0.35);
}

body.dark-mode .nassau-press-card__meta-detail {
  color: rgba(255, 255, 255, 0.52);
}

body.dark-mode .nassau-press-card__statusPill {
  background: linear-gradient(165deg, rgba(52, 48, 42, 0.95) 0%, rgba(38, 35, 30, 0.98) 100%);
  border-color: rgba(194, 162, 106, 0.4);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .nassau-press-card__statusPill-names {
  color: rgba(255, 250, 240, 0.95);
}

body.dark-mode .nassau-press-card__statusPill-score {
  color: rgba(232, 200, 140, 0.98);
}

body.dark-mode .nassau-press-card__statusPill--longScore .nassau-press-card__statusPill-score {
  color: rgba(245, 235, 215, 0.88);
}

body.dark-mode .nassau-press-decline-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

/* --- Cloud follow: read-only score entry (no top banner; use body.stc-round-readonly + reset hint) --- */
body.stc-round-readonly #setup-game-config-body {
  pointer-events: none;
  opacity: 0.82;
  user-select: none;
}

body.stc-round-readonly #setup-drink-holes-body,
body.stc-round-readonly #setup-course-body,
body.stc-round-readonly #setup-group-players-body {
  pointer-events: none;
  opacity: 0.82;
  user-select: none;
}

body.stc-round-readonly .cell-score {
  cursor: not-allowed;
}

td.cell-score.stc-player-score-readonly,
.scorecard-table-vertical td.cell-score.stc-player-score-readonly {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

body.stc-round-readonly .focus-score-btn,
body.stc-round-readonly .num-btn,
body.stc-round-readonly .dot-toggle-btn {
  pointer-events: none;
  opacity: 0.75;
}

/* Fairway Sync mode grid — 3 equal columns */
#stc-round-share-panel .stc-sync-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
}

#stc-round-share-panel .stc-sync-mode-grid .game-select-btn span {
  max-width: 100%;
  text-align: center;
  padding: 0 2px;
}

/* --- Free tier: Pro-only controls (corner lock + muted) -------------------- */
.stc-tier-locked {
  position: relative;
  opacity: 0.55;
  cursor: not-allowed !important;
  filter: grayscale(0.25);
  pointer-events: none;
}
.stc-tier-locked .stc-tier-lock-icon {
  position: absolute;
  top: 4px;
  right: 5px;
  margin: 0;
  font-size: 0.62rem;
  line-height: 1;
  vertical-align: top;
  opacity: 0.95;
  pointer-events: none;
}

/* Scorecard FABs: locked look but still receive taps (opens Pro upsell) */
.stc-tier-locked.stc-tier-locked--tap-hint {
  pointer-events: auto;
}

/* Pro unlock control — lives in app header with other icon buttons */
.app-header .stc-setup-tier-header-btn {
  color: var(--color-gold, #c2a26a);
}
.app-header .stc-setup-tier-header-btn .stc-setup-tier-btn-icon {
  font-size: 0.95rem;
}

/* Pro unlock code overlay */
.stc-tier-unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.stc-tier-unlock-overlay.hidden {
  display: none;
}
.stc-tier-unlock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 12, 0.72);
  backdrop-filter: blur(4px);
}
.stc-tier-unlock-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 22px 20px 18px;
  border-radius: 14px;
  background: var(--bg-card, #243529);
  border: 1px solid rgba(194, 162, 106, 0.35);
  color: var(--color-cream, #f5f0e6);
}
.stc-tier-unlock-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}
.stc-tier-unlock-lead {
  margin: 0 0 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-muted, #a8b5ad);
}
.stc-tier-unlock-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold-dark, #8a7349);
  margin-bottom: 6px;
}
.stc-tier-unlock-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
}
.stc-tier-unlock-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
body.stc-tier-unlock-open {
  overflow: hidden;
}
.stc-tier-unlock-auth {
  margin-bottom: 14px;
}
.stc-tier-unlock-signed-out-hint {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--color-muted, #a8b5ad);
  line-height: 1.35;
}
.stc-tier-unlock-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.stc-tier-unlock-oauth-btn .fa-google {
  font-size: 1.1rem;
}
.stc-tier-unlock-signed-note {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--color-muted, #a8b5ad);
}
.stc-tier-unlock-details {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--color-muted, #a8b5ad);
}
.stc-tier-unlock-details-summary {
  cursor: pointer;
  color: var(--color-gold-dark, #c2a26a);
  font-weight: 600;
  list-style: none;
}
.stc-tier-unlock-details-summary::-webkit-details-marker {
  display: none;
}
.stc-tier-unlock-details-body {
  margin-top: 12px;
  padding-top: 4px;
}
.stc-tier-unlock-details-body .stc-tier-unlock-input {
  margin-bottom: 10px;
}

/* Stronger contrast on deep green panel — avoid forest-primary on forest card */
.stc-tier-unlock-panel .btn-primary {
  background: linear-gradient(180deg, #e8c96a 0%, #c9a24a 100%);
  color: #14210f;
  border: 1px solid rgba(20, 33, 15, 0.45);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.stc-tier-unlock-panel .btn-primary:hover,
.stc-tier-unlock-panel .btn-primary:active {
  background: linear-gradient(180deg, #f0d47e 0%, #d4af37 100%);
  color: #0d160b;
}
.stc-tier-unlock-panel .btn-outline {
  background: rgba(250, 248, 242, 0.12);
  color: #f8f4ea;
  border: 2px solid rgba(212, 175, 55, 0.75);
}
.stc-tier-unlock-panel .btn-outline:hover,
.stc-tier-unlock-panel .btn-outline:active {
  background: rgba(250, 248, 242, 0.22);
  border-color: #e8c96a;
  color: #fffdf8;
}

body.dark-mode .stc-tier-unlock-panel .btn-primary {
  background: linear-gradient(180deg, #e8c96a 0%, #b8942f 100%) !important;
  color: #14210f !important;
  border-color: rgba(20, 33, 15, 0.5) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}
body.dark-mode .stc-tier-unlock-panel .btn-primary:hover,
body.dark-mode .stc-tier-unlock-panel .btn-primary:active {
  background: linear-gradient(180deg, #f2d78a 0%, #c9a24a 100%) !important;
  color: #0d160b !important;
}
body.dark-mode .stc-tier-unlock-panel .btn-outline {
  background: rgba(250, 248, 242, 0.1) !important;
  color: #f5f0e6 !important;
  border: 2px solid rgba(212, 175, 55, 0.8) !important;
}
body.dark-mode .stc-tier-unlock-panel .btn-outline:hover,
body.dark-mode .stc-tier-unlock-panel .btn-outline:active {
  background: rgba(250, 248, 242, 0.2) !important;
  border-color: #e8c96a !important;
  color: #fffdf8 !important;
}
