/* ============================================================
   Best Ball App v3.0 — Premium Broadcast-Quality Golf Platform
   Dark-first. ESPN meets Bloomberg. Zero dependencies.
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark-first palette — deep blue-black, vivid green accent */
  --bg:           #0f1923;
  --bg-surface:   #162031;
  --bg-raised:    #1c2940;
  --bg-floating:  #223350;
  --bg-scoreboard:#0a1018;
  --bg-hover:     #223350;
  --border:       rgba(255,255,255,.08);
  --border-subtle:rgba(255,255,255,.05);
  --border-hard:  #2a3a52;
  --text:         #e8edf4;
  --text-muted:   #8899aa;
  --text-inverse: #0f1923;
  --link:         #00d26a;
  --link-hover:   #33e088;
  --accent:       #00d26a;
  --accent-hover: #00e676;
  --accent-glow:  rgba(0,210,106,.2);
  --gold:         #fbbf24;
  --gold-glow:    rgba(251,191,36,.25);
  --success:      #00d26a;
  --success-bg:   rgba(0,210,106,.12);
  --info:         #38bdf8;
  --info-bg:      rgba(56,189,248,.12);
  --warning:      #fbbf24;
  --warning-bg:   rgba(251,191,36,.12);
  --danger:       #ef4444;
  --danger-bg:    rgba(239,68,68,.12);
  --nav-bg:       rgba(10,16,24,.85);
  --nav-text:     #8899aa;

  /* Score colors — vivid, punchy */
  --eagle:        #38bdf8;
  --eagle-text:   #0c4a6e;
  --eagle-glow:   rgba(56,189,248,.3);
  --birdie:       #00d26a;
  --birdie-text:  #064e3b;
  --bogey:        #fb923c;
  --bogey-text:   #7c2d12;
  --double-bogey: #ef4444;
  --dbl-text:     #7f1d1d;

  /* Spacing scale — breathing room */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem;
  --s12: 3rem;

  /* Typography — tighter, more impactful */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-condensed: "SF Pro Condensed", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "Consolas", monospace;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs:  0.7rem;  --text-sm:  0.825rem; --text-base: 0.95rem;
  --text-lg:  1.1rem;  --text-xl:  1.3rem;   --text-2xl: 1.6rem;
  --text-3xl: 2rem;    --text-4xl: 2.5rem;
  --text-micro: 0.55rem;

  /* Layout */
  --nav-h: 48px;
  --sidebar-w: 240px;
  --right-panel-w: 320px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Elevation system — 3 levels */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow:    0 4px 12px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
  --shadow-glow: 0 0 24px var(--gold-glow), 0 0 8px rgba(251,191,36,.15);
  --shadow-accent: 0 0 24px var(--accent-glow), 0 0 8px rgba(0,210,106,.15);
  --shadow-inset: inset 0 1px 2px rgba(0,0,0,.3);

  /* Motion — natural easing */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --dur: 200ms;
  --dur-medium: 300ms;
  --dur-slow: 500ms;
}

/* --- Light Mode (override) --------------------------------- */
body.light-mode {
  --bg:           #f0f2f5;
  --bg-surface:   #ffffff;
  --bg-raised:    #ffffff;
  --bg-floating:  #ffffff;
  --bg-scoreboard:#111827;
  --bg-hover:     #e8edf4;
  --border:       rgba(0,0,0,.08);
  --border-subtle:rgba(0,0,0,.05);
  --border-hard:  #e0e3e8;
  --text:         #111827;
  --text-muted:   #6b7280;
  --text-inverse: #f9fafb;
  --link:         #059669;
  --link-hover:   #047857;
  --accent:       #059669;
  --accent-hover: #047857;
  --accent-glow:  rgba(5,150,105,.15);
  --success-bg:   #d1fae5;
  --info-bg:      #dbeafe;
  --warning-bg:   #fef3c7;
  --danger-bg:    #fee2e2;
  --nav-bg:       rgba(17,24,39,.95);
  --nav-text:     #d1d5db;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(22,32,49,.6) 0%, transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay — CSS only */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }

/* --- Inline SVG Icons -------------------------------------- */
.icon {
  display: inline-block; width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.icon-sm { width: 0.85em; height: 0.85em; }
.icon-lg { width: 1.3em; height: 1.3em; }

/* --- Layout ------------------------------------------------ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--s3);
  background: var(--nav-bg);
  color: var(--nav-text);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  gap: var(--s2);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.site-nav a { color: var(--nav-text); }
.site-nav a:hover { color: #fff; }
.nav-brand img { height: 22px; display: block; }
.nav-left, .nav-right { display: flex; align-items: center; gap: var(--s1); }
.nav-left  { margin-right: auto; }
.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: var(--text-xs); font-weight: 700;
  color: var(--nav-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.nav-right { margin-left: auto; }

.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius);
  color: var(--nav-text); background: transparent; border: none;
  cursor: pointer; position: relative;
  transition: background var(--dur) var(--ease), color var(--dur), transform var(--dur);
}
.nav-icon:hover { background: rgba(255,255,255,.1); color: #fff; transform: scale(1.05); }
.nav-icon:active { transform: scale(.92); }

.nav-badge {
  position: absolute; top: 4px; right: 2px;
  background: var(--danger); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; animation: badge-pop 300ms var(--ease-bounce);
  box-shadow: 0 0 6px rgba(239,68,68,.4);
}
.nav-badge[hidden] { display: none; }
@keyframes badge-pop { from { transform: scale(0); } to { transform: scale(1); } }

.dark-toggle { cursor: pointer; }
.dark-toggle input { display: none; }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--nav-text); cursor: pointer; padding: var(--s1);
}

/* Page layout — full-bleed dashboard grid */
.page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.page-layout.has-right-panel {
  grid-template-columns: var(--sidebar-w) 1fr var(--right-panel-w);
}
.sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  padding: var(--s4) var(--s3);
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  position: sticky; top: var(--nav-h);
  border-right: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: var(--text-sm);
}
.sidebar .sidebar-heading {
  padding: var(--s2) var(--s2) var(--s3);
}
.sidebar .btn { font-size: var(--text-xs); }
.sidebar .card { margin-bottom: var(--s3); }
.sidebar .card-body { padding: var(--s3); }
.sidebar .card-footer { padding: var(--s2) var(--s3); }

/* Active state in sidebar nav */
.sidebar-nav-item {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-xs);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  margin-bottom: 2px;
}
.sidebar-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  box-shadow: inset 0 0 12px rgba(0,210,106,.06);
}

.main-content {
  grid-column: 2;
  min-width: 0;
  padding: var(--s5) var(--s6);
}
.content-header {
  padding: 0 0 var(--s3);
}
.content-header h2 {
  font-size: var(--text-lg);
  margin: 0;
}
.content-body { /* no max-width — full bleed */ }

/* Right panel — frosted glass */
.right-panel {
  grid-column: 3;
  grid-row: 1 / -1;
  border-left: 1px solid var(--border);
  background: rgba(22,32,49,.75);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  position: sticky; top: var(--nav-h);
  padding: var(--s5) var(--s4);
  font-size: var(--text-sm);
}
.right-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--s3);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, transparent 100%);
  margin: 0 calc(-1 * var(--s4)) var(--s4);
  padding: 0 var(--s4) var(--s3);
}
.right-panel-title {
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.right-panel-close {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: var(--text-base);
  transition: color var(--dur);
  display: none;
}
.right-panel-close:hover { color: var(--text); }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700; line-height: 1.2; color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

.sidebar-heading {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: var(--s4);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0.55em 1.1em;
  font-size: var(--text-sm); font-weight: 600; font-family: inherit;
  line-height: 1.4;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: all var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover {
  background: var(--bg-floating);
  box-shadow: var(--shadow);
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.1);
}
.btn:active, .btn.pressing {
  transform: translateY(0) scale(.97);
  box-shadow: var(--shadow-sm);
  transition-duration: 80ms;
  filter: brightness(.95);
}

.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,210,106,.2); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: var(--shadow-accent); }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(1.1); color: #fff; }
.btn-info      { background: var(--info); color: #fff; border-color: var(--info); }
.btn-info:hover { filter: brightness(1.1); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(1.1); color: #fff; }

.btn-outline-success   { color: var(--success); border-color: rgba(0,210,106,.3); background: transparent; }
.btn-outline-success:hover { background: var(--success); color: #fff; box-shadow: var(--shadow-accent); }
.btn-outline-info      { color: var(--info); border-color: rgba(56,189,248,.3); background: transparent; }
.btn-outline-info:hover { background: var(--info); color: #fff; }
.btn-outline-primary   { color: var(--accent); border-color: rgba(0,210,106,.3); background: transparent; }
.btn-outline-primary:hover { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-outline-secondary { color: var(--text-muted); border-color: var(--border); background: transparent; }
.btn-outline-secondary:hover { background: var(--bg-surface); color: var(--text); }

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 0.35em 0.75em; font-size: var(--text-xs); }
.btn-lg { padding: 0.65em 1.3em; font-size: var(--text-lg); }
.btn-group { display: flex; gap: var(--s1); }
.btn-group .btn { flex: 1; }

/* --- Cards — 3-level elevation ----------------------------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--s4);
  transition: box-shadow var(--dur-medium) var(--ease), border-color var(--dur), transform var(--dur-medium) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.1);
}
.card-header {
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02); font-weight: 600;
}
.card-body { padding: var(--s5); }
.card-footer {
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  display: flex; flex-direction: column; gap: var(--s2);
}
.card-text { font-size: var(--text-sm); color: var(--text-muted); }

/* --- Alerts ------------------------------------------------ */
.alert {
  padding: var(--s3) var(--s5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm); font-weight: 500;
  margin-bottom: var(--s4);
  border-left: 4px solid;
  animation: alert-in 300ms var(--ease);
  backdrop-filter: blur(8px);
}
@keyframes alert-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger); }

/* --- Toast — Game Event Style ------------------------------ */
.toast-container {
  position: fixed;
  top: calc(var(--nav-h) + var(--s3));
  right: var(--s4);
  z-index: 200;
}
.toast {
  background: var(--bg-scoreboard);
  color: var(--text-inverse);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(37,99,235,.15);
  min-width: 300px; max-width: 400px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.toast[hidden] { display: none; }
.toast-enter {
  animation: toast-slide-in 400ms var(--ease-bounce);
}
.toast-exit {
  animation: toast-slide-out 300ms var(--ease) forwards;
}
@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(100px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-slide-out {
  to { opacity: 0; transform: translateX(60px); }
}
.toast-header {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700; font-size: var(--text-sm);
}
.toast-header .close-btn {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,.5); cursor: pointer;
  font-size: var(--text-lg); line-height: 1;
}
.toast-header .close-btn:hover { color: #fff; }
.toast-body {
  padding: var(--s3) var(--s4);
  font-size: var(--text-sm);
}

/* --- Forms ------------------------------------------------- */
.form-group { margin-bottom: var(--s4); }
.control-label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  margin-bottom: var(--s1); color: var(--text);
}
.form-control {
  width: 100%; padding: 0.55em 0.85em;
  font-size: var(--text-sm); font-family: inherit;
  color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border-hard); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  line-height: 1.5;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-accent);
}
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 80px; resize: vertical; }
.help-block { font-size: var(--text-xs); color: var(--danger); margin-top: var(--s1); }
.error { font-size: var(--text-xs); color: var(--danger); }
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent);
}

/* --- Tables ------------------------------------------------ */
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td {
  padding: var(--s2) var(--s3);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 700; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); background: var(--bg-surface);
  position: sticky; top: 0;
}
tr:hover td { background: rgba(37,99,235,.04); }

/* Scorecard score colors — vivid with glow */
td.eagle {
  background: var(--eagle) !important; color: var(--eagle-text);
  font-weight: 700; animation: score-flash 600ms var(--ease);
  box-shadow: inset 0 0 12px rgba(56,189,248,.3);
}
td.birdie {
  background: var(--birdie) !important; color: var(--birdie-text);
  font-weight: 700;
}
td.bogey {
  background: var(--bogey) !important; color: var(--bogey-text);
  font-weight: 600;
}
td.double-bogey {
  background: var(--double-bogey) !important; color: var(--dbl-text);
  font-weight: 600;
}
@keyframes score-flash {
  0%, 100% { filter: brightness(1); }
  30%      { filter: brightness(1.5); transform: scale(1.08); }
}

/* Scorecard table overrides for pandas output */
table.dataframe { font-variant-numeric: tabular-nums; }
table.dataframe th { font-size: var(--text-xs); }
table.dataframe td { font-family: var(--font-mono); font-size: var(--text-sm); }

/* --- Accordion --------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: var(--s2); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s5);
  background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
  color: var(--text); text-align: left;
  transition: all var(--dur) var(--ease);
}
.accordion-trigger:hover {
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.accordion-trigger::after {
  content: "";
  margin-left: auto;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 250ms var(--ease);
}
.accordion-trigger.open::after { transform: rotate(45deg); }
.accordion-panel {
  overflow: hidden; max-height: 0;
  transition: max-height var(--dur-slow) var(--ease);
  border: 1px solid transparent;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--bg);
}
.accordion-panel.open {
  max-height: 2000px;
  border-color: var(--border);
  border-top: none;
  padding: var(--s5);
}

/* --- Carousel ---------------------------------------------- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel-track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease);
}
.carousel-slide {
  min-width: 100%; flex-shrink: 0;
  text-align: center; overflow-x: auto;
  padding: var(--s2);
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-scoreboard); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: .7; z-index: 5;
  transition: opacity var(--dur), transform var(--dur);
  box-shadow: var(--shadow);
}
.carousel-btn:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }
.carousel-prev { left: var(--s2); }
.carousel-next { right: var(--s2); }

/* --- Pagination -------------------------------------------- */
.pagination {
  display: flex; justify-content: center; gap: var(--s2);
  list-style: none; padding: var(--s6) 0;
}
.pagination a {
  display: inline-flex; align-items: center;
  padding: 0.5em 1em;
  font-size: var(--text-sm); font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text);
  transition: all var(--dur) var(--ease);
}
.pagination a:hover { background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.pagination .disabled a {
  color: var(--text-muted); opacity: .4; pointer-events: none;
}

/* --- Badge ------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.15em 0.6em;
  font-size: var(--text-xs); font-weight: 700;
  border-radius: 99px;
  background: var(--bg-surface); color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --- Post / Feed Item -------------------------------------- */
.post-item {
  display: flex; gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur);
}
.post-item:hover { background: rgba(0,0,0,.01); }
.post-avatar { flex-shrink: 0; }
.post-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.post-body { flex: 1; min-width: 0; }
.post-meta { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--s1); }
.post-meta a { color: var(--text); font-weight: 700; }
.post-text { font-size: var(--text-sm); word-wrap: break-word; overflow-wrap: break-word; }

/* --- User Profile ------------------------------------------ */
.profile-header {
  display: flex; gap: var(--s8);
  align-items: flex-start; padding-bottom: var(--s6);
}
.profile-avatar img {
  width: 140px; height: 140px; border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--bg-surface);
  border: 3px solid var(--accent-glow);
}
.profile-info { flex: 1; }
.profile-info h1 { margin-bottom: var(--s2); }
.profile-info p { margin-bottom: var(--s1); font-size: var(--text-sm); color: var(--text-muted); }
.profile-info a { font-size: var(--text-sm); font-weight: 600; }

.popup-card {
  width: 260px;
  background: var(--bg-floating); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: center; padding: var(--s4);
  animation: popup-in 200ms var(--ease);
  backdrop-filter: blur(12px);
}
@keyframes popup-in { from { opacity:0; transform:translateY(6px) scale(.95); } to { opacity:1; transform:none; } }
.popup-card img { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto var(--s2); }
.popup-card h5 { margin-bottom: var(--s2); }
.popup-card p { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--s1); }
.popup-floating { position: absolute; z-index: 300; top: 100%; left: 0; }

/* --- Leaderboard — Broadcast Scoreboard Bars ----------- */
.v2-leaderboard { display: flex; flex-direction: column; gap: 2px; }

.lb-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s5);
  background: linear-gradient(90deg, var(--bg-raised) 0%, var(--bg-surface) 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  min-height: 52px;
}
.lb-row::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, transparent 60%);
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.lb-row:hover::before { opacity: 1; }
.lb-row:hover {
  background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-raised) 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.06);
  z-index: 2;
}
.lb-row.expanded {
  background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-raised) 100%);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  border-radius: var(--radius) var(--radius) 0 0;
}
.lb-row.is-user {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,210,106,.08) 0%, var(--bg-raised) 100%);
  box-shadow: inset 0 0 20px rgba(0,210,106,.04), var(--shadow-sm);
}
/* Top 3 tints — richer */
.lb-row.top-1-row { background: linear-gradient(90deg, rgba(251,191,36,.08) 0%, var(--bg-raised) 100%); box-shadow: inset 0 0 20px rgba(251,191,36,.03); }
.lb-row.top-2-row { background: linear-gradient(90deg, rgba(192,192,192,.06) 0%, var(--bg-raised) 100%); }
.lb-row.top-3-row { background: linear-gradient(90deg, rgba(205,127,50,.06) 0%, var(--bg-raised) 100%); }

.lb-rank {
  font-size: 1.75rem; font-weight: 900;
  font-family: var(--font-display), var(--font-mono);
  color: var(--text-muted);
  min-width: 40px; text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}
/* Rank pills for top 3 */
.lb-rank.top-1 {
  color: var(--gold);
  background: rgba(251,191,36,.15);
  border-radius: var(--radius);
  padding: 2px 8px;
  text-shadow: 0 0 12px rgba(251,191,36,.3);
}
.lb-rank.top-2 {
  color: #c0c0c0;
  background: rgba(192,192,192,.1);
  border-radius: var(--radius);
  padding: 2px 8px;
}
.lb-rank.top-3 {
  color: #cd7f32;
  background: rgba(205,127,50,.1);
  border-radius: var(--radius);
  padding: 2px 8px;
}

.lb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.lb-name {
  font-weight: 700; font-size: 0.95rem;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.lb-total {
  padding: 3px var(--s3);
  border-radius: var(--radius);
  font-weight: 800; font-size: 1.3rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right; min-width: 56px;
  letter-spacing: -0.02em;
}
.lb-total.under-par { background: var(--accent); color: var(--text-inverse); box-shadow: 0 0 12px rgba(0,210,106,.25); }
.lb-total.over-par { background: var(--danger); color: #fff; box-shadow: 0 0 12px rgba(239,68,68,.2); }
.lb-total.even-par { background: var(--text-muted); color: #fff; }

.lb-rounds { display: flex; gap: 2px; }
.lb-round {
  padding: 2px var(--s1);
  border: none; border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.65rem; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: center; line-height: 1.5;
  background: rgba(255,255,255,.04);
}

.lb-chevron {
  width: 14px; height: 14px; color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
  opacity: .3;
}
.lb-row:hover .lb-chevron { opacity: .8; }
.lb-row.expanded .lb-chevron { transform: rotate(180deg); opacity: 1; }

/* LIVE state for teams with golfers on course */
.lb-row.lb-live {
  border-left: 2px solid var(--accent);
  animation: lb-live-pulse 3s ease-in-out infinite;
}
@keyframes lb-live-pulse {
  0%, 100% { border-left-color: var(--accent); }
  50% { border-left-color: transparent; }
}

/* Hover preview — inline mini golfer summary */
.lb-hover-preview {
  display: none;
  font-size: var(--text-xs);
  color: var(--text-muted);
  gap: var(--s2);
  margin-left: auto;
  flex-shrink: 0;
}
.lb-row:hover .lb-hover-preview { display: flex; }

/* Expanded detail panel */
.lb-detail {
  overflow: hidden; max-height: 0;
  transition: max-height var(--dur-slow) var(--ease),
              padding var(--dur-medium);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}
.lb-detail.open {
  max-height: 800px;
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--border);
}

/* Best-ball attribution */
.bb-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  margin-bottom: var(--s4);
}
.bb-grid.full { grid-template-columns: repeat(18, 1fr); }
.bb-cell {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--dur) var(--ease);
}
.bb-cell:hover { transform: scale(1.12); z-index: 2; box-shadow: var(--shadow); }
.bb-cell .hole-num {
  font-size: var(--text-micro);
  color: var(--text-muted);
  font-weight: 400;
}
.bb-cell.eagle { background: var(--eagle); color: var(--eagle-text); box-shadow: inset 0 0 8px rgba(56,189,248,.2); }
.bb-cell.birdie { background: var(--birdie); color: var(--birdie-text); }
.bb-cell.bogey { background: var(--bogey); color: var(--bogey-text); }
.bb-cell.double-bogey { background: var(--double-bogey); color: var(--dbl-text); }
.bb-cell.is-best { box-shadow: 0 0 0 2px var(--gold), var(--shadow-glow); }
.bb-cell .best-indicator {
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  border: 1px solid var(--bg);
  box-shadow: 0 0 4px rgba(251,191,36,.4);
}

/* --- The Field — Golfer Leaderboard ----------------------- */
.field-controls {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.field-search {
  flex: 1; min-width: 200px;
  padding: var(--s2) var(--s4);
  background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--text); font-family: inherit; font-size: var(--text-sm);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field-search::placeholder { color: var(--text-muted); }

.field-sort {
  display: flex; gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
}
.sort-btn {
  padding: var(--s1) var(--s2);
  border: none; border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-xs); font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all var(--dur) var(--ease);
}
.sort-btn:hover { color: var(--text); }
.sort-btn.active { background: var(--accent); color: var(--text-inverse); box-shadow: 0 2px 6px rgba(0,210,106,.2); }

.field-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: var(--text-sm);
}
.field-table thead th {
  position: sticky; top: 0; z-index: 10;
  padding: var(--s2) var(--s3);
  background: var(--bg-scoreboard);
  color: var(--text-inverse);
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center;
  border-bottom: 2px solid var(--accent);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur);
}
.field-table thead th:hover { background: #1a2838; }
.field-table thead th:first-child { text-align: left; border-radius: var(--radius) 0 0 0; }
.field-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }

.field-table tbody tr {
  transition: background var(--dur) var(--ease), box-shadow var(--dur);
  cursor: pointer;
}
/* Subtle alternate row striping */
.field-table tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
.field-table tbody tr:hover {
  background: var(--bg-hover);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.field-table tbody tr.on-user-team { background: rgba(0,210,106,.06); }
.field-table tbody tr.on-user-team:hover { background: rgba(0,210,106,.12); }

/* Dramatic cut line — glowing red */
.field-table tbody tr.cut-line td {
  border-bottom: 2px solid var(--danger);
  box-shadow: 0 2px 8px rgba(239,68,68,.2);
  position: relative;
}
.field-table tbody tr.cut-line td::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(180deg, rgba(239,68,68,.15) 0%, transparent 100%);
  pointer-events: none;
}

/* MC'd golfer — diagonal stripe overlay */
.field-table tbody tr.missed-cut {
  opacity: .5;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,.02) 4px,
    rgba(255,255,255,.02) 8px
  );
}

.field-table td {
  padding: var(--s2) var(--s3);
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.field-table td:first-child { text-align: left; }
.field-table .golfer-name { font-weight: 600; }
.field-table .team-badge {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: var(--s1);
  vertical-align: middle;
  box-shadow: 0 0 4px rgba(0,210,106,.4);
}
.field-table .score-col {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* --- Golfer Detail Panel (slide-in) ----------------------- */
.golfer-panel {
  position: fixed;
  top: 0; right: 0;
  width: 420px; max-width: 100vw;
  height: 100vh;
  background: rgba(22,32,49,.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,.4);
  z-index: 500;
  transform: translateX(100%);
  transition: transform var(--dur-medium) var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.golfer-panel.open { transform: translateX(0); }
.golfer-panel-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 499;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-medium);
}
.golfer-panel-backdrop.open { opacity: 1; pointer-events: auto; }

.panel-header {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(22,32,49,.9);
  backdrop-filter: blur(12px);
  z-index: 1;
}
.panel-close {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: var(--text-xl);
  transition: color var(--dur), transform var(--dur);
  margin-left: auto;
}
.panel-close:hover { color: var(--text); transform: scale(1.1); }
.panel-body { padding: var(--s5) var(--s6); flex: 1; }

.panel-golfer-name { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }
.panel-golfer-score {
  display: inline-flex; align-items: center;
  padding: var(--s1) var(--s3);
  background: var(--accent); color: var(--text-inverse);
  border-radius: var(--radius);
  font-family: var(--font-mono); font-weight: 800;
  margin-left: var(--s2);
  box-shadow: 0 0 8px rgba(0,210,106,.2);
}

.panel-round {
  margin-bottom: var(--s4);
}
.panel-round-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--border);
}
.panel-round-label {
  font-weight: 700; font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.panel-round-total {
  font-family: var(--font-mono); font-weight: 800;
  font-size: var(--text-base);
}

.panel-scorecard {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
}
.panel-hole {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--s1);
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  min-height: 44px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.panel-hole:hover { transform: scale(1.08); box-shadow: var(--shadow); }
.panel-hole .hole-label {
  font-size: var(--text-micro);
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font);
}
.panel-hole .hole-score {
  font-size: var(--text-sm);
  font-weight: 700;
}
.panel-hole.eagle { background: var(--eagle); color: var(--eagle-text); }
.panel-hole.birdie { background: var(--birdie); color: var(--birdie-text); }
.panel-hole.bogey { background: var(--bogey); color: var(--bogey-text); }
.panel-hole.double-bogey { background: var(--double-bogey); color: var(--dbl-text); }

/* --- Hole-by-Hole Matrix ---------------------------------- */
.hbh-controls {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
}
.round-selector {
  display: flex; gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
}
.round-sel-btn {
  padding: var(--s2) var(--s3);
  border: none; border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm); font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all var(--dur) var(--ease);
}
.round-sel-btn:hover { color: var(--text); }
.round-sel-btn.active { background: var(--accent); color: var(--text-inverse); box-shadow: 0 2px 6px rgba(0,210,106,.2); }

.hbh-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.hbh-matrix {
  display: grid;
  grid-template-columns: minmax(140px, auto) repeat(18, minmax(38px, 1fr)) minmax(50px, auto);
  font-size: var(--text-xs);
  min-width: 800px;
}
.hbh-cell {
  display: flex; align-items: center; justify-content: center;
  padding: var(--s1) var(--s2);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-weight: 600;
  min-height: 34px;
  transition: background var(--dur) var(--ease);
}
.hbh-cell:last-child { border-right: none; }
.hbh-header {
  background: var(--bg-scoreboard);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky; top: 0; z-index: 5;
  border-bottom: 2px solid var(--accent);
  cursor: pointer;
}
.hbh-header:hover { background: #1a2838; }
.hbh-golfer-name {
  justify-content: flex-start;
  font-family: var(--font);
  font-weight: 600;
  padding-left: var(--s3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbh-cell.on-team {
  background: rgba(0,210,106,.06);
}
.hbh-golfer-name.on-team { color: var(--accent); }
.hbh-total { font-weight: 800; background: var(--bg-raised); }
.hbh-cell.eagle { background: var(--eagle); color: var(--eagle-text); }
.hbh-cell.birdie { background: var(--birdie); color: var(--birdie-text); }
.hbh-cell.bogey { background: var(--bogey); color: var(--bogey-text); }
.hbh-cell.double-bogey { background: var(--double-bogey); color: var(--dbl-text); }

/* Hole stats popup */
.hole-stats-popup {
  position: fixed;
  background: var(--bg-floating);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s5);
  z-index: 600;
  min-width: 200px;
  animation: popup-in 200ms var(--ease);
  backdrop-filter: blur(12px);
}
.hole-stats-popup h4 { margin-bottom: var(--s2); }
.hole-stat-row {
  display: flex; justify-content: space-between;
  padding: var(--s1) 0;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--border);
}
.hole-stat-row:last-child { border-bottom: none; }
.hole-stat-label { color: var(--text-muted); }
.hole-stat-value { font-weight: 700; font-family: var(--font-mono); }

/* --- Team Builder ------------------------------------------ */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s6);
  min-height: calc(100vh - var(--nav-h) - var(--s12));
}
.builder-field { }
.builder-sidebar {
  position: sticky; top: calc(var(--nav-h) + var(--s4));
  align-self: start;
}

.builder-search {
  width: 100%;
  padding: var(--s3) var(--s4);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-hard); border-radius: var(--radius-lg);
  color: var(--text); font-family: inherit; font-size: var(--text-base);
  margin-bottom: var(--s4);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.builder-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-accent); }

.golfer-card {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--s2);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.golfer-card:hover {
  border-color: rgba(0,210,106,.3);
  background: var(--bg-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.golfer-card.picked {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(0,210,106,.08) 0%, transparent 100%);
  box-shadow: inset 0 0 20px rgba(0,210,106,.05), var(--shadow-sm);
  animation: card-stamp 400ms var(--ease);
}
@keyframes card-stamp {
  0% { transform: scale(1); }
  20% { transform: scale(.97); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.golfer-card.picked .pick-indicator { opacity: 1; }
.golfer-card-info { flex: 1; min-width: 0; }
.golfer-card-name { font-weight: 700; font-size: var(--text-base); }
.golfer-card-stats {
  display: flex; gap: var(--s3);
  font-size: var(--text-xs); color: var(--text-muted);
  margin-top: var(--s1);
}
.golfer-stat { display: flex; flex-direction: column; align-items: center; }
.golfer-stat-value { font-weight: 700; font-family: var(--font-mono); color: var(--text); }
.golfer-stat-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }

.pick-indicator {
  width: 28px; height: 28px;
  border: 2px solid var(--border-hard);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  opacity: .3;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.golfer-card.picked .pick-indicator {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 0 8px rgba(0,210,106,.3);
}

/* Team summary sidebar */
.team-summary {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--s5);
  box-shadow: var(--shadow);
}
.team-summary-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border);
}
.team-summary-title { font-weight: 700; font-size: var(--text-lg); }
.team-count {
  font-family: var(--font-mono); font-weight: 800;
  color: var(--accent);
}

.team-slot {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3);
  margin-bottom: var(--s2);
  border: 1px dashed var(--border-hard);
  border-radius: var(--radius);
  min-height: 48px;
  transition: all var(--dur) var(--ease);
}
.team-slot.filled {
  border-style: solid;
  border-color: var(--accent);
  background: var(--success-bg);
  box-shadow: inset 0 0 12px rgba(0,210,106,.04);
}
.team-slot.empty {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.slot-remove {
  margin-left: auto;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: var(--text-lg);
  transition: color var(--dur), transform var(--dur);
}
.slot-remove:hover { color: var(--danger); transform: scale(1.1); }

.team-strength {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}
.strength-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--s2);
  box-shadow: var(--shadow-inset);
}
.strength-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--danger), var(--warning), var(--accent));
  border-radius: 3px;
  transition: width var(--dur-slow) var(--ease);
}

.lock-in-btn {
  width: 100%;
  padding: var(--s3) var(--s4);
  margin-top: var(--s4);
  background: var(--accent);
  color: var(--text-inverse);
  border: none; border-radius: var(--radius-lg);
  font-family: inherit; font-size: var(--text-base); font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.lock-in-btn:hover { background: var(--accent-hover); box-shadow: var(--shadow-accent); transform: translateY(-2px); }
.lock-in-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.lock-in-btn.locked {
  background: var(--gold);
  animation: lock-pulse 600ms var(--ease-bounce);
  box-shadow: var(--shadow-glow);
}
@keyframes lock-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- Score Update Animations ------------------------------ */
.score-flash {
  animation: score-flash-in 800ms var(--ease);
}
@keyframes score-flash-in {
  0% { filter: brightness(1.8); transform: scale(1.15); }
  100% { filter: brightness(1); transform: scale(1); }
}

.eagle-shimmer {
  position: relative;
  overflow: hidden;
}
.eagle-shimmer::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(251,191,36,.4) 50%,
    transparent 70%
  );
  animation: shimmer 1.5s ease-out;
  pointer-events: none;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.rank-change {
  display: inline-flex; align-items: center;
  font-size: var(--text-xs); font-weight: 700;
  gap: 2px;
}
.rank-change.up { color: var(--accent); }
.rank-change.down { color: var(--danger); }
.rank-change .arrow {
  font-size: 0.6rem;
}

/* FLIP animation for rank changes */
.flip-move {
  transition: transform var(--dur-slow) var(--ease);
}

/* --- Tournament History ----------------------------------- */
.winner-card {
  background: linear-gradient(135deg, var(--bg-raised) 0%, rgba(251,191,36,.08) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: var(--s6);
  text-align: center;
  margin-bottom: var(--s6);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.winner-card .trophy {
  font-size: var(--text-4xl);
  margin-bottom: var(--s2);
}
.winner-name {
  font-size: var(--text-2xl); font-weight: 900;
  color: var(--gold);
  margin-bottom: var(--s1);
  text-shadow: 0 0 20px rgba(251,191,36,.2);
}
.winner-score {
  font-family: var(--font-mono); font-weight: 800;
  font-size: var(--text-xl);
}

/* Confetti canvas */
.confetti-canvas {
  position: fixed; inset: 0;
  z-index: 999;
  pointer-events: none;
}

/* Season standings */
.standings-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
}
.standings-table th {
  background: var(--bg-scoreboard);
  color: var(--text-inverse);
  padding: var(--s2) var(--s3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  font-weight: 700;
}
.standings-table td {
  padding: var(--s3);
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.standings-table td:first-child { text-align: left; font-weight: 600; }

/* Personal stats */
.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s4);
  margin-bottom: var(--s6);
}
.stat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-value {
  font-size: var(--text-2xl); font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent);
  text-shadow: 0 0 16px rgba(0,210,106,.15);
}
.stat-label {
  font-size: var(--text-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: var(--s1);
}

/* --- Score Update Toast ----------------------------------- */
.score-toast {
  background: linear-gradient(135deg, var(--bg-scoreboard) 0%, #1a2838 100%);
  border: 1px solid rgba(0,210,106,.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}
.rank-toast { border-color: var(--gold); }
.rank-toast .rank-direction {
  font-size: var(--text-lg); font-weight: 900;
}
.rank-toast .rank-direction.up { color: var(--accent); }
.rank-toast .rank-direction.down { color: var(--danger); }

/* --- Countdown Timer -------------------------------------- */
.countdown {
  display: flex; gap: var(--s2); justify-content: center;
  margin: var(--s4) 0;
}
.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s3) var(--s4);
  background: var(--bg-scoreboard);
  border-radius: var(--radius);
  min-width: 56px;
  box-shadow: var(--shadow-sm);
}
.countdown-value {
  font-size: var(--text-2xl); font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}
.countdown-label {
  font-size: var(--text-micro); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* --- Mobile Bottom Tab Bar -------------------------------- */
@media (max-width: 768px) {
  .tab-nav-mobile {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    background: rgba(10,16,24,.85);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: var(--s1) 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .tab-nav-mobile .tab-btn {
    flex: 1; flex-direction: column;
    gap: 2px;
    padding: var(--s2) var(--s1);
    font-size: 0.6rem;
    border-radius: 0;
    color: var(--text-muted);
    min-height: 44px;
  }
  .tab-nav-mobile .tab-btn .icon { font-size: 1.2em; }
  .tab-nav-mobile .tab-btn.active {
    color: var(--accent);
    background: transparent;
    box-shadow: none;
  }

  /* Hide desktop tabs, show mobile bar */
  .tab-nav-desktop { display: none; }

  .builder-layout { grid-template-columns: 1fr; }
  .builder-sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 100;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.4);
    max-height: 40vh;
    overflow-y: auto;
    backdrop-filter: blur(12px);
  }

  .hero-golfers { grid-template-columns: repeat(2, 1fr); }

  /* Golfer panel as bottom sheet on mobile */
  .golfer-panel {
    width: 100%; height: 80vh;
    top: auto; bottom: 0; left: 0; right: 0;
    transform: translateY(100%);
    border-left: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .golfer-panel.open { transform: translateY(0); }

  .hbh-matrix { min-width: 600px; }
  .bb-grid { grid-template-columns: repeat(6, 1fr); }

  body.has-bottom-tabs .main-content { padding-bottom: 72px; }
}

@media (min-width: 769px) {
  .tab-nav-mobile { display: none; }
}

/* --- Pull to Refresh -------------------------------------- */
.ptr-indicator {
  text-align: center;
  padding: var(--s4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: transform var(--dur);
  overflow: hidden;
  max-height: 0;
}
.ptr-indicator.pulling { max-height: 60px; }
.ptr-indicator .spinner { margin: 0 auto; }

/* --- Skeleton Loading States ------------------------------ */
.skeleton {
  background: var(--bg-raised);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.04) 50%,
    transparent 100%
  );
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.skeleton-text {
  height: 12px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 65%; }
.skeleton-text.full { width: 100%; }

/* Skeleton KPI */
.skeleton-kpi {
  padding: var(--s3) var(--s4);
  height: 80px;
}

/* Skeleton leaderboard row */
.skeleton-lb-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s4);
  height: 48px;
  margin-bottom: 2px;
}

/* Skeleton field table row */
.skeleton-field-row {
  height: 36px;
  margin-bottom: 1px;
}

/* Skeleton hole-by-hole */
.skeleton-hbh {
  height: 300px;
}

/* --- Live Activity Feed ----------------------------------- */
.activity-feed { }
.activity-item {
  display: flex; gap: var(--s2);
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
  animation: activity-in 300ms var(--ease);
  border-left: 3px solid transparent;
  transition: background var(--dur);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1px;
}
.activity-item:hover { background: rgba(255,255,255,.02); }
@keyframes activity-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
/* Color-coded left borders by event type */
.activity-item.eagle-event { border-left-color: var(--eagle); }
.activity-item.birdie-event { border-left-color: var(--birdie); }
.activity-item.bogey-event { border-left-color: var(--bogey); }
.activity-item.move-event { border-left-color: var(--gold); }
.activity-item.score-event { border-left-color: var(--accent); }

.activity-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.activity-dot.eagle-dot { background: var(--eagle); box-shadow: 0 0 4px rgba(56,189,248,.4); }
.activity-dot.birdie-dot { background: var(--birdie); box-shadow: 0 0 4px rgba(0,210,106,.4); }
.activity-dot.bogey-dot { background: var(--bogey); }
.activity-dot.move-dot { background: var(--gold); box-shadow: 0 0 4px rgba(251,191,36,.4); }
.activity-dot.score-dot { background: var(--accent); }
.activity-text { flex: 1; color: var(--text-muted); line-height: 1.4; }
.activity-text strong { color: var(--text); font-weight: 600; }
.activity-time { color: var(--text-muted); opacity: .6; font-size: 0.6rem; flex-shrink: 0; }

/* Golfer initials avatar (when no photo) */
.golfer-initials {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Score sparkline (tiny trajectory visualization) */
.sparkline {
  height: 24px;
  display: flex; align-items: flex-end; gap: 1px;
  margin: var(--s2) 0;
}
.sparkline-bar {
  flex: 1;
  min-width: 2px;
  border-radius: 1px 1px 0 0;
  transition: height var(--dur) var(--ease);
}
.sparkline-bar.under { background: var(--accent); box-shadow: 0 -2px 4px rgba(0,210,106,.2); }
.sparkline-bar.over { background: var(--danger); }
.sparkline-bar.even { background: var(--text-muted); opacity: .3; }

/* Right panel golfer detail (persistent, not modal) */
.rp-golfer-header {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s3);
}
.rp-golfer-name { font-size: var(--text-base); font-weight: 700; }
.rp-golfer-score {
  font-family: var(--font-mono); font-weight: 800;
  margin-left: auto;
}
.rp-golfer-meta {
  font-size: var(--text-xs); color: var(--text-muted);
  margin-bottom: var(--s3);
}
.rp-on-teams {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
}

/* --- Empty States ----------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--s8) var(--s4);
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--s3);
  opacity: .3;
}
.empty-state-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s2);
}
.empty-state-text {
  font-size: var(--text-sm);
  margin-bottom: var(--s4);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Tab Transitions — crossfade -------------------------- */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: tab-crossfade var(--dur-medium) var(--ease);
}
@keyframes tab-crossfade {
  from { opacity: 0; filter: blur(3px); transform: translateY(4px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* --- Salary Cap & Budget Bar — glossy -------------------- */
.budget-bar {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(22,32,49,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: var(--s3) var(--s5);
  display: flex; align-items: center; gap: var(--s4);
  margin: calc(-1 * var(--s5)) calc(-1 * var(--s6)) var(--s4);
}
.budget-track {
  flex: 1; height: 10px;
  background: var(--bg); border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-inset);
  position: relative;
}
/* Glass highlight on budget track */
.budget-track::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, transparent 100%);
  border-radius: 5px 5px 0 0;
  pointer-events: none;
}
.budget-fill {
  height: 100%; border-radius: 5px;
  transition: width var(--dur-medium) var(--ease), background var(--dur);
  position: relative;
}
/* Glossy shine on fill */
.budget-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, transparent 100%);
  border-radius: 5px 5px 0 0;
}
.budget-fill.green { background: linear-gradient(90deg, #00b35e, var(--accent)); }
.budget-fill.yellow { background: linear-gradient(90deg, var(--warning), #fcd34d); }
.budget-fill.red { background: linear-gradient(90deg, #dc2626, var(--danger)); }
.budget-remaining {
  font-size: 1.3rem; font-weight: 900;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  min-width: 100px; text-align: right;
  letter-spacing: -0.02em;
}
.budget-total {
  font-size: var(--text-xs); color: var(--text-muted);
  font-weight: 600;
}

/* Salary pill on golfer cards */
.salary-pill {
  display: inline-flex; align-items: center;
  padding: 2px var(--s2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 800; font-size: var(--text-sm);
  flex-shrink: 0;
}
.salary-pill.elite { background: rgba(239,68,68,.15); color: var(--danger); border: 1px solid rgba(239,68,68,.15); }
.salary-pill.contender { background: rgba(251,146,60,.15); color: var(--bogey); border: 1px solid rgba(251,146,60,.1); }
.salary-pill.mid { background: rgba(251,191,36,.15); color: var(--warning); border: 1px solid rgba(251,191,36,.1); }
.salary-pill.value { background: rgba(0,210,106,.15); color: var(--accent); border: 1px solid rgba(0,210,106,.1); }

/* Tier groupings */
.tier-header {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) 0;
  margin-top: var(--s3);
  margin-bottom: var(--s1);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.tier-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tier-dot.elite { background: var(--danger); box-shadow: 0 0 4px rgba(239,68,68,.3); }
.tier-dot.contender { background: var(--bogey); }
.tier-dot.mid { background: var(--warning); }
.tier-dot.value { background: var(--accent); box-shadow: 0 0 4px rgba(0,210,106,.3); }

/* Can't afford state */
.golfer-card.cant-afford {
  opacity: .4;
  pointer-events: none;
  filter: grayscale(.5);
}
.golfer-card .cant-afford-label {
  font-size: var(--text-xs);
  color: var(--danger);
  font-weight: 600;
}

/* Value badges */
.value-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: var(--s1);
}
.value-badge.hot-value {
  background: rgba(0,210,106,.15);
  color: var(--accent);
}
.value-badge.overpriced {
  background: rgba(239,68,68,.15);
  color: var(--danger);
}

/* Hot/cold badges — subtle pulse */
.hot-badge, .cold-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 700;
}
.hot-badge {
  background: rgba(0,210,106,.15);
  color: var(--accent);
  animation: hot-pulse 2.5s ease-in-out infinite;
}
.cold-badge {
  background: rgba(56,189,248,.15);
  color: var(--info);
}
@keyframes hot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,210,106,0); }
  50% { box-shadow: 0 0 6px 1px rgba(0,210,106,.2); }
}

/* Smart picks suggestion row */
.smart-picks {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s4);
  box-shadow: var(--shadow-sm);
}
.smart-picks-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}
.smart-combo {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--s1);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-size: var(--text-xs);
}
.smart-combo:hover {
  border-color: var(--accent);
  background: var(--success-bg);
  transform: translateX(2px);
}

/* ============================================================
   v2.0 — Tournament Hub
   ============================================================ */

/* --- Tab Navigation ---------------------------------------- */
.tab-nav {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--s6);
  box-shadow: var(--shadow-sm);
}
.tab-btn {
  flex: 1;
  padding: var(--s2) var(--s4);
  border: none; border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab-btn.active {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 2px 12px rgba(0,210,106,.25);
}

/* --- KPI Hero Row ------------------------------------------ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.kpi-tile {
  background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4) var(--s5);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.kpi-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-tile::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.kpi-tile.gold::before { background: var(--gold); opacity: 0.8; }
.kpi-tile.info::before { background: var(--info); opacity: 0.6; }
.kpi-label {
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.kpi-value {
  font-size: 1.85rem;
  font-weight: 900;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.03em;
}
.kpi-value .ordinal {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: super;
}
.kpi-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 3px;
  display: flex; align-items: center; gap: var(--s1);
}
.kpi-delta {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: var(--text-xs);
}
.kpi-delta.up { color: var(--accent); text-shadow: 0 0 8px rgba(0,210,106,.2); }
.kpi-delta.down { color: var(--danger); }

/* Hero card (kept for user team display) */
.hero-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  margin-bottom: var(--s4);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-medium) var(--ease);
}
.hero-top {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
}
.hero-rank {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
  min-width: 48px;
  text-align: center;
  letter-spacing: -0.04em;
  text-shadow: 0 0 20px rgba(0,210,106,.15);
}
.hero-rank-label {
  font-size: var(--text-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.hero-info { flex: 1; }
.hero-name {
  font-size: var(--text-base); font-weight: 700;
  margin-bottom: 2px;
}
.hero-score {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: 3px var(--s2);
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 800; font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 10px rgba(0,210,106,.2);
}
.hero-score.positive { background: var(--danger); box-shadow: 0 0 10px rgba(239,68,68,.2); }
.hero-score.even { background: var(--text-muted); box-shadow: none; }

/* Progress ring */
.progress-ring { position: relative; width: 56px; height: 56px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle {
  fill: none; stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--dur-slow) var(--ease);
}
.progress-ring .ring-bg { stroke: var(--border-hard); }
.progress-ring .ring-fill { stroke: var(--accent); filter: drop-shadow(0 0 4px rgba(0,210,106,.3)); }
.progress-ring-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--text);
}

/* Golfer status row in hero */
.hero-golfers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2);
}
.golfer-chip {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-xs); font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.golfer-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.golfer-chip .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.golfer-chip .status-dot.on-course { background: var(--accent); animation: pulse 2s ease-in-out infinite; box-shadow: 0 0 4px rgba(0,210,106,.4); }
.golfer-chip .status-dot.finished { background: var(--text-muted); }
.golfer-chip.hot { border-color: var(--accent); background: var(--success-bg); }
.golfer-chip.cold { border-color: var(--danger); background: var(--danger-bg); }
.golfer-chip .hot-label { color: var(--accent); font-size: 0.6rem; }
.golfer-chip .cold-label { color: var(--danger); font-size: 0.6rem; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ============================================================
   v3.0 Visual & UX Enhancements
   ============================================================ */

/* --- Tournament Accent Theming ----------------------------- */
:root {
  --accent-tournament: var(--accent);
  --accent-tournament-secondary: var(--gold);
}

/* --- Initials Avatars -------------------------------------- */
.avatar-initials {
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.avatar-img {
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: cover;
}

/* --- Golfer Headshots -------------------------------------- */
.golfer-headshot {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  background: var(--bg-raised);
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* --- Trend Sparkline Bars ---------------------------------- */
.trend-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
}
.trend-bar {
  width: 3px;
  border-radius: 1px;
  transition: height var(--dur) var(--ease);
}
.trend-bar.eagle    { height: 14px; background: var(--eagle); }
.trend-bar.birdie   { height: 10px; background: var(--birdie); }
.trend-bar.par      { height: 6px;  background: var(--text-muted); opacity: .4; }
.trend-bar.bogey    { height: 10px; background: var(--bogey); }
.trend-bar.double   { height: 14px; background: var(--double-bogey); }

/* --- Rank Change Arrows ------------------------------------ */
.rank-change {
  font-size: var(--text-micro);
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-top: 1px;
}
.rank-change.up   { color: var(--accent); }
.rank-change.down { color: var(--danger); }
.rank-change.flat { color: var(--text-muted); opacity: .3; font-size: .5rem; }

/* --- Course Hero Banner ------------------------------------ */
.course-hero-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: brightness(0.85);
}
.course-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s4);
  background: linear-gradient(transparent, rgba(15,25,35,.92));
  color: white;
}

/* --- Hole Guide Visuals ------------------------------------ */
.hole-svg-thumb {
  width: 48px; height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-inset);
}
.hole-svg-thumb svg {
  width: 100%; height: 100%;
}
.hole-photo-thumb {
  width: 48px; height: 36px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-inset);
}
.hole-num-badge {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* --- Round Recap Card — premium gold border ---------------- */
.round-recap-card {
  background: var(--bg-raised);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  margin-bottom: var(--s3);
  box-shadow: 0 0 16px rgba(251,191,36,.06);
  position: relative;
}
.round-recap-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(251,191,36,.15), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.recap-header {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--s2);
}
.recap-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  padding: 3px 0;
}
.recap-icon {
  font-size: var(--text-sm);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* --- Tension Meter (H2H) ----------------------------------- */
.tension-meter {
  margin: var(--s2) 0;
}

/* --- Share Button ------------------------------------------- */
.share-btn {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s2);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 8px rgba(0,210,106,.1);
}

/* --- Salary Allocation Bar --------------------------------- */
#salaryAlloc {
  border-radius: 4px;
  overflow: hidden;
}

/* --- Avatar Upload ----------------------------------------- */
.avatar-upload-zone {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.avatar-upload-zone .avatar-preview {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-hard);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-upload-zone .avatar-preview img,
.avatar-upload-zone .avatar-preview svg {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* --- Difficulty Heat Legend --------------------------------- */
.difficulty-legend {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-micro);
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

/* ============================================================
   Mini Game
   ============================================================ */

.mg-canvas-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.mg-canvas-wrap canvas {
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  cursor: crosshair;
  touch-action: none;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,.3);
}
.mg-hud {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: rgba(15,25,35,.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  margin-top: var(--s2);
  box-shadow: var(--shadow-sm);
}
.mg-hud-item {
  font-family: var(--font-mono);
  font-weight: 700;
}
.mg-result {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  text-align: center;
  background: rgba(15, 25, 35, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--s6) var(--s8);
  backdrop-filter: blur(12px);
  animation: mg-result-in 400ms var(--ease) forwards;
  box-shadow: var(--shadow-lg);
}
@keyframes mg-result-in {
  from { transform: translate(-50%, -50%) scale(.85); opacity: 0; filter: blur(4px); }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: blur(0); }
}
.mg-result-text {
  font-size: var(--text-2xl);
  font-weight: 900;
  margin-bottom: var(--s1);
  letter-spacing: -0.02em;
}
.mg-result-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Stats panel */
.mg-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}
.mg-stat {
  background: var(--bg);
  border-radius: var(--radius);
  padding: var(--s3);
  text-align: center;
  border: 1px solid var(--border);
}
.mg-stat-value {
  font-size: var(--text-lg);
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent);
}
.mg-stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Leaderboard */
.mg-lb-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 4px 0;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--border);
}
.mg-lb-rank {
  width: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.mg-lb-name {
  flex: 1;
  font-weight: 600;
}
.mg-lb-stat {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Green list items */
.mg-green-item {
  display: flex !important;
  align-items: center;
  gap: var(--s2);
}

/* Sidebar Mini Game Card */
.sidebar-minigame-card {
  display: block;
  margin: var(--s3) var(--s2);
  padding: var(--s3);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.06);
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur), box-shadow var(--dur);
  text-decoration: none;
  color: inherit;
}
.sidebar-minigame-card:hover {
  background: rgba(251, 191, 36, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-glow);
}
.sidebar-minigame-card .mg-icon {
  font-size: 1.5rem;
  margin-bottom: var(--s1);
}
.sidebar-minigame-card .mg-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.sidebar-minigame-card .mg-sublabel {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mobile Mini Game FAB */
.mg-fab {
  position: fixed;
  bottom: calc(60px + var(--s3));
  right: var(--s3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), var(--shadow-glow);
  z-index: 100;
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  text-decoration: none;
  min-width: 48px;
  min-height: 48px;
}
.mg-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,.4), var(--shadow-glow); }
.mg-fab:active { transform: scale(0.92); }
@media (min-width: 768px) { .mg-fab { display: none; } }

/* --- Hole List Sidebar ------------------------------------ */
.hole-list-card {
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: var(--s2);
  margin-bottom: var(--s2);
  cursor: pointer;
  background: rgba(251, 191, 36, 0.06);
  text-align: center;
  transition: background var(--dur) var(--ease), transform var(--dur);
}
.hole-list-card:hover { background: rgba(251, 191, 36, 0.12); transform: translateY(-1px); }
.hole-list-card--augusta {
  border-color: var(--accent);
  background: rgba(0, 210, 106, 0.06);
}
.hole-list-card--augusta:hover { background: rgba(0, 210, 106, 0.12); }
.hole-list-card--daily {
  border-color: #87CEEB;
  background: rgba(135, 206, 250, 0.06);
}
.hole-list-card--daily:hover { background: rgba(135, 206, 250, 0.12); }
.hole-list-card__title {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hole-list-card--augusta .hole-list-card__title { color: var(--accent); }
.hole-list-card--daily .hole-list-card__title { color: #87CEEB; }
.hole-list-card__sub {
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.hole-list-header {
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding: var(--s2) var(--s2) var(--s1);
}

/* --- Round Scorecard -------------------------------------- */
.round-scorecard {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 25, 35, 0.92);
  border-bottom: 1px solid var(--gold);
  padding: var(--s1) var(--s2);
  z-index: 10;
  backdrop-filter: blur(8px);
}
.round-scorecard__header {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--s1);
}
.round-scorecard__holes {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.sc-hole {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 0.5rem;
  font-weight: 700;
}
.sc-eagle { background: rgba(37, 99, 235, 0.3); color: #60a5fa; }
.sc-birdie { background: rgba(0, 210, 106, 0.2); color: #00d26a; }
.sc-par { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sc-bogey { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.sc-dbl { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.round-scorecard__total {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: var(--s1);
}

/* --- Draft Ceremony --------------------------------------- */
.draft-room-header {
  position: relative;
  overflow: hidden;
}
.tier-reveal .tier-cards {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}
.tier-reveal.open .tier-cards {
  max-height: 4000px;
}
@keyframes golfer-card-enter {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.golfer-card-enter {
  animation: golfer-card-enter var(--dur-medium) var(--ease) both;
}
.budget-bar.budget-warning .budget-fill {
  animation: budget-pulse 2s ease-in-out infinite;
}
.budget-bar.budget-critical .budget-fill {
  animation: budget-pulse 1s ease-in-out infinite;
}
@keyframes budget-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}
.draft-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  animation: tab-crossfade var(--dur-medium) var(--ease);
}
.draft-card {
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-raised);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: var(--s6);
  animation: draft-reveal var(--dur-slow) var(--ease-bounce);
  transition: border-color var(--dur-medium), box-shadow var(--dur-medium);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
@keyframes draft-reveal {
  from { transform: scale(.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.lock-btn {
  position: relative;
  overflow: hidden;
}
.lock-btn-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: rgba(255,255,255,.2);
}

/* --- Moment Overlays -------------------------------------- */
.moment-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  animation: tab-crossfade var(--dur-medium) var(--ease);
}
.moment-card {
  width: 480px;
  max-width: 90vw;
  background: var(--bg-raised);
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: var(--s6);
  text-align: center;
  animation: moment-entrance var(--dur-slow) var(--ease-bounce);
  box-shadow: var(--shadow-lg);
}
@keyframes moment-entrance {
  from { transform: scale(.8); opacity: 0; filter: blur(4px); }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}
.moment-card.celebration { border-color: var(--accent); box-shadow: var(--shadow-lg), var(--shadow-accent); }
.moment-card.setback { border-color: var(--border-hard); }
.moment-card.victory {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 60px var(--gold-glow);
}
@keyframes particle-burst {
  from { transform: scale(0); opacity: 0.6; }
  to   { transform: scale(3); opacity: 0; }
}
.particle-burst {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: particle-burst 0.8s var(--ease) forwards;
  pointer-events: none;
}
.desaturate { filter: saturate(0.7); }
@keyframes score-countup {
  0%   { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.score-countup {
  animation: score-countup var(--dur-medium) var(--ease);
}

/* --- Course Map ------------------------------------------- */
.course-map-container {
  width: 100%; position: relative;
  background: #1a2e1a; border-radius: var(--radius-xl);
  overflow: hidden;
}
.course-map-header {
  padding: var(--s2) var(--s3);
  font-size: var(--text-xs); font-weight: 700;
  color: rgba(255,255,255,.6); letter-spacing: .08em;
}
.course-map-wrap {
  position: relative; width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.course-map-wrap svg {
  transition: transform .3s var(--ease);
}
.course-map-wrap.zoomed { cursor: grab; }
.course-map-wrap.zoomed:active { cursor: grabbing; }

/* Hole groups */
.hole-group { cursor: pointer; }
.hole-group:hover { opacity: 0.85; }
.hole-group:hover .hole-green { filter: brightness(1.3); }
.hole-fairway {
  fill: none; stroke: #2a5a3a; stroke-linecap: round;
}
.hole-green {
  transition: fill 0.5s var(--ease);
}
.hole-green.heat-eagle {
  fill: #fbbf24;
  animation: eagle-shimmer 2s infinite;
}
.hole-green.heat-hot { fill: #00d26a; }
.hole-green.heat-warm { fill: rgba(0,210,106,0.5); }
.hole-green.heat-neutral { fill: rgba(255,255,255,0.3); }
.hole-green.heat-tough { fill: rgba(239,68,68,0.5); }
.hole-green.heat-brutal { fill: #ef4444; }
.hole-number {
  fill: white; font-size: 10px; font-weight: bold;
  text-anchor: middle; pointer-events: none;
}
.hole-signature-star {
  fill: #fbbf24; font-size: 8px; pointer-events: none;
}
.hole-path {
  stroke: rgba(255,255,255,.1); stroke-width: 1.5;
  fill: none; stroke-dasharray: 4 3;
}

/* Golfer markers */
.golfer-marker {
  transition: transform 1s var(--ease);
}
.golfer-marker.my-team circle {
  fill: #00d26a;
  animation: pulse-soft 2s infinite;
}
.golfer-marker.other circle {
  fill: white; opacity: 0.3;
}
.golfer-marker text {
  fill: white; font-size: 7px; font-weight: bold;
  text-anchor: middle; pointer-events: none;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Landmarks */
.landmark-label {
  fill: rgba(255,255,255,0.5); font-size: 9px;
  font-style: italic; pointer-events: none;
}
.landmark-water {
  stroke: #38bdf8; stroke-width: 2; opacity: 0.3;
  fill: none;
}
.amen-corner-border {
  stroke: #fbbf24; stroke-width: 1.5;
  stroke-dasharray: 6 3; fill: none; opacity: 0.4;
}
.amen-corner-border.active {
  opacity: 0.8;
  animation: pulse-soft 3s infinite;
}
.amen-corner-glow {
  filter: drop-shadow(0 0 8px rgba(0,210,106,.4));
}

/* Tooltip */
.map-tooltip {
  position: absolute; background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 12px;
  z-index: 10; max-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: auto; font-size: var(--text-xs);
  color: var(--text);
}
.map-tooltip .hole-name {
  font-size: 0.9rem; font-weight: 700;
  margin-bottom: 4px;
}
.map-tooltip .hole-stats {
  display: flex; gap: 8px; font-size: 0.75rem;
}
.map-tooltip .golfer-on-hole {
  font-size: 0.75rem; padding: 1px 0;
}
.map-tooltip .golfer-on-hole.my-team {
  color: var(--accent); font-weight: 600;
}

/* Legend */
.map-legend {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  background: rgba(15,25,35,0.85);
  backdrop-filter: blur(4px);
  border-radius: 8px; padding: 8px 12px;
  font-size: 0.7rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.map-legend-item {
  display: inline-flex; gap: 4px; align-items: center;
}
.map-legend-golfer {
  cursor: pointer; display: inline-flex;
  gap: 3px; align-items: center;
}
.map-legend-golfer:hover { text-decoration: underline; color: var(--accent); }

/* Zoom controls */
.map-zoom-reset {
  position: absolute; top: 8px; right: 8px;
  background: var(--bg-surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 0.7rem;
  cursor: pointer; display: none; z-index: 5;
}
.map-zoom-reset.visible { display: block; }

/* Eagle ripple */
@keyframes eagle-ripple {
  0% { r: 8; opacity: 1; stroke-width: 3; }
  100% { r: 30; opacity: 0; stroke-width: 0; }
}
.eagle-ripple {
  animation: eagle-ripple 1.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 767px) {
  .course-map-container { border-radius: var(--radius); }
  .map-legend { font-size: 0.6rem; gap: 4px; padding: 6px 8px; }
  .hole-number { font-size: 8px; }
  .golfer-marker.my-team circle { r: 4; }
  .golfer-marker.other circle { r: 2; }
}
@media (max-width: 479px) {
  .map-tooltip {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-width: none; border-radius: 12px 12px 0 0;
    top: auto;
  }
}

/* === 90th Masters Features =============================== */

/* 90th branding */
.masters-90th {
  display: inline-block;
  font-size: var(--text-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  font-weight: 600;
  margin-top: 2px;
}

/* Flora theme dot */
.hole-flora-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 0 3px currentColor;
}

/* Lore cards */
.hole-lore {
  margin-top: var(--s2);
  padding: var(--s2) var(--s3);
  padding-left: 56px;
  border-left: 2px solid var(--gold);
  background: rgba(251, 191, 36, 0.04);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hole-lore::before {
  content: '\201C';
  font-size: 1.2rem;
  color: var(--gold);
  margin-right: 4px;
  font-style: normal;
}

/* Round clock */
.round-clock-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: var(--s1);
  overflow: hidden;
}
.round-clock-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s ease;
  box-shadow: 0 0 6px rgba(0,210,106,.3);
}

/* Crystal count */
.crystal-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: var(--gold);
  margin-left: var(--s2);
}

/* Defending champion badge */
.defending-champion-badge {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 700;
  background: #006747;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.06em;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Sunday contender rows */
.lb-row.sunday-contender {
  padding-bottom: var(--s3);
  border-left: 3px solid var(--gold);
}
.back-nine-tracker {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  margin-top: var(--s2);
  padding: var(--s1) var(--s2);
  background: rgba(251, 191, 36, 0.04);
  border-radius: 4px;
}
.back-nine-hole {
  text-align: center;
  font-size: 0.6rem;
  padding: 2px;
  border-radius: 3px;
}
.back-nine-hole.completed { font-weight: 700; }
.back-nine-hole.eagle { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.back-nine-hole.birdie { background: rgba(0, 210, 106, 0.15); color: #00d26a; }
.back-nine-hole.bogey { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.back-nine-hole.pending { color: var(--text-muted); opacity: 0.4; }

/* Lead change banner */
.lead-change-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.15), var(--gold), rgba(251,191,36,0.15), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  animation: leadChangeSweep 2s ease-out forwards;
  z-index: 10;
}
@keyframes leadChangeSweep {
  0% { opacity: 0; transform: translateX(-100%); }
  20% { opacity: 1; transform: translateX(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Sunday contention pulse */
.hero-card.in-contention {
  border-color: var(--gold);
  animation: contentionPulse 3s ease-in-out infinite;
}
@keyframes contentionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 16px 3px rgba(251, 191, 36, 0.15); }
}

/* Ceremony overlay */
.ceremony-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ceremony-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.ceremony-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
  padding: var(--s6);
}
.ceremony-card {
  background: linear-gradient(135deg, #004d2f 0%, #006747 50%, #004d2f 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: var(--s6) var(--s5);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.ceremony-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 60%);
  animation: ceremonyGlow 4s ease-in-out infinite;
}
@keyframes ceremonyGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.ceremony-champion-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ceremony-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  position: relative;
  text-shadow: 0 0 24px rgba(251,191,36,.3);
  letter-spacing: -0.03em;
}

/* Patron's Guide */
.patrons-guide {
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  margin-bottom: var(--s4);
  background: rgba(251, 191, 36, 0.03);
  box-shadow: 0 0 16px rgba(251,191,36,.04);
}
.patrons-guide-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}
.patrons-guide-item {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  padding: var(--s2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.patrons-guide-item:last-child { border-bottom: none; }

/* Legendary putts story card */
.legendary-story {
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(0,103,71,0.08));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  margin-bottom: var(--s3);
  text-align: center;
  box-shadow: 0 0 16px rgba(251,191,36,.06);
}
.legendary-story .legend-year {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(251,191,36,.2);
  letter-spacing: -0.02em;
}
.legendary-story .legend-golfer {
  font-size: 1.1rem;
  font-weight: 700;
  margin: var(--s1) 0;
}
.legendary-story .legend-text {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Gold Shimmer for Top 3 and Achievements -------------- */
@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.gold-shimmer {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(251,191,36,.08) 25%,
    rgba(251,191,36,.15) 50%,
    rgba(251,191,36,.08) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gold-shimmer 3s ease-in-out infinite;
}

/* --- File Upload Drop Zone --------------------------------- */
.file-drop-zone {
  border: 2px dashed var(--border-hard);
  border-radius: var(--radius-lg);
  padding: var(--s8) var(--s4);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: var(--bg);
}
.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(0,210,106,.04);
  box-shadow: 0 0 16px rgba(0,210,106,.08);
}
.file-drop-label {
  display: block; font-size: var(--text-sm);
  color: var(--text-muted); margin-top: var(--s2);
}
.file-drop-input { display: none; }
.file-drop-status { font-size: var(--text-xs); margin-top: var(--s2); }
.file-drop-status.success { color: var(--success); }
.file-drop-status.error { color: var(--danger); }

/* --- Spinner ----------------------------------------------- */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2.5px solid var(--border-hard);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Utility ----------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-muted  { color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.form-narrow { max-width: 380px; }
.row { display: flex; flex-wrap: wrap; gap: var(--s4); }
.col { flex: 1; min-width: 0; }

/* --- Responsive -------------------------------------------- */
/* Right panel collapses to overlay below 1200px */
@media (max-width: 1200px) {
  .page-layout.has-right-panel {
    grid-template-columns: var(--sidebar-w) 1fr;
  }
  .right-panel {
    position: fixed;
    top: var(--nav-h); right: 0; bottom: 0;
    width: var(--right-panel-w);
    z-index: 400;
    box-shadow: -8px 0 32px rgba(0,0,0,.5);
    transform: translateX(100%);
    transition: transform var(--dur-medium) var(--ease);
  }
  .right-panel.open { transform: translateX(0); }
  .right-panel-close { display: block; }
  .right-panel-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    z-index: 399;
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur-medium);
  }
  .right-panel-backdrop.open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 768px) {
  .page-layout,
  .page-layout.has-right-panel {
    display: flex; flex-direction: column;
  }
  .sidebar {
    width: 100%; max-height: none; position: static;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: var(--s3);
    order: 1;
  }
  .main-content { padding: var(--s3); order: 0; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-avatar img { width: 100px; height: 100px; }
  .accordion-trigger { font-size: var(--text-xs); gap: var(--s2); padding: var(--s2) var(--s3); }
  .leaderboard-rounds { flex-wrap: wrap; }
  .nav-center { display: none; }
  .carousel-slide table { font-size: 0.55rem; }
  .carousel-slide table th,
  .carousel-slide table td { padding: 2px 1px; white-space: nowrap; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .tab-btn { min-height: 44px; }
  .golfer-card { min-height: 48px; }
  .sidebar-nav-item { min-height: 44px; }

  /* Full-width cards with margins */
  .card { margin-left: 0; margin-right: 0; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --nav-h: 44px; }
  .nav-toggle { display: block; }
  .nav-right {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); right: 0;
    background: rgba(10,16,24,.95);
    backdrop-filter: blur(16px);
    padding: var(--s4); gap: var(--s4);
    border-radius: 0 0 0 var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .nav-right.open { display: flex; }
  .main-content { padding: var(--s2); }
  .leaderboard-user { min-width: auto; font-size: var(--text-sm); }
  .leaderboard-total { font-size: var(--text-base); min-width: 55px; }
}

/* --- Reduced Motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .flip-move { transition: none; }
  .ceremony-card::before { animation: none; }
  .lead-change-banner { animation: none; }
  .hero-card.in-contention { animation: none; }
  body::before { display: none; }
}

/* --- Leaderboard Legacy Compat ----------------------------- */
.leaderboard-card {
  display: flex; align-items: center; gap: var(--s3);
  flex-wrap: wrap; flex: 1;
}
.leaderboard-card img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--border); }
.leaderboard-user {
  font-weight: 700; font-size: var(--text-base);
  min-width: 90px;
}
.leaderboard-total {
  padding: var(--s1) var(--s3);
  background: var(--success); color: #fff;
  border-radius: var(--radius);
  font-weight: 800; font-size: var(--text-lg);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: center; min-width: 70px;
  box-shadow: var(--shadow-sm);
}
.leaderboard-rounds { display: flex; gap: var(--s1); }
.round-btn {
  padding: var(--s1) var(--s2);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted);
  font-size: var(--text-xs); font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: center; line-height: 1.3;
  background: var(--bg-surface);
}
.tournament-actions {
  display: flex; flex-direction: column; gap: var(--s2);
}
.tournament-actions .btn { justify-content: flex-start; }

/* ================================================================
   Daily Pick'em — v9.0
   ================================================================ */
.pickem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.pickem-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.pickem-featured {
  border-top: 3px solid var(--gold);
}
.pickem-card-header {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--border-subtle);
}
.pickem-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s2);
  padding: var(--s3);
}
.pickem-vs {
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: var(--text-sm);
  color: var(--text-muted); letter-spacing: .1em;
}
.pickem-golfer {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: var(--s2); border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s var(--ease),
              border-color .15s var(--ease),
              transform .15s var(--ease);
  border: 2px solid transparent;
}
.pickem-golfer:hover {
  background: rgba(255,255,255,.04);
}
.pickem-golfer.selected {
  border-color: var(--accent);
  background: rgba(0,210,106,.06);
}
.pickem-golfer.correct {
  border-color: var(--accent);
  background: rgba(0,210,106,.10);
}
.pickem-golfer.incorrect {
  opacity: .5;
  border-color: var(--red);
}
.pickem-golfer.winner {
  background: rgba(0,210,106,.08);
}
.pickem-locked {
  opacity: .6; pointer-events: none;
}
.pickem-pick-btn {
  margin-top: var(--s1);
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.pickem-pick-btn:hover,
.pickem-pick-btn.picked {
  background: var(--accent);
  color: #000;
}
.pickem-countdown {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--s3);
  color: var(--gold);
}
.pickem-streak {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 700; color: var(--gold);
  padding: 1px 6px; border-radius: 10px;
  background: rgba(251,191,36,.15);
}
.pickem-streak::before { content: '\1F525'; font-size: 10px; }
/* Sidebar pick'em card */
.sidebar-pickem-card {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  margin-top: var(--s2);
  color: var(--gold);
  text-decoration: none;
  font-size: var(--text-sm); font-weight: 700;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.sidebar-pickem-card:hover {
  background: rgba(251,191,36,.08);
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .pickem-card-body { gap: var(--s1); }
  .pickem-golfer { padding: var(--s1); }
}

/* --- Prop Bets ---------------------------------------------- */
.pickem-tabs {
  display: flex; gap: 0;
  margin-bottom: var(--s3);
  border-bottom: 2px solid var(--border-subtle);
}
.pickem-tab {
  padding: var(--s2) var(--s3);
  font-weight: 700; font-size: var(--text-sm);
  color: var(--text-muted);
  background: transparent; border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s var(--ease),
              border-color .15s var(--ease);
}
.pickem-tab:hover { color: var(--text); }
.pickem-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.prop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  transition: box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.prop-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.prop-card.featured {
  border-top: 3px solid var(--gold);
}
.prop-card-header {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s2);
}
.prop-type-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.prop-type-badge.hole { background: rgba(56,189,248,.15); color: #38bdf8; }
.prop-type-badge.golfer { background: rgba(0,210,106,.15); color: #00d26a; }
.prop-type-badge.field { background: rgba(167,139,250,.15); color: #a78bfa; }
.prop-type-badge.streak { background: rgba(251,146,60,.15); color: #fb923c; }
.prop-description {
  font-size: 1rem; font-weight: 600;
  text-align: center;
  padding: var(--s2) 0;
  line-height: 1.4;
}
.prop-actions {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--s2);
}
.prop-sides {
  display: flex; gap: var(--s2);
  justify-content: center;
}
.prop-btn-yes, .prop-btn-no {
  padding: var(--s1) var(--s3);
  border-radius: var(--radius);
  font-weight: 700; font-size: var(--text-sm);
  cursor: pointer;
  transition: background .15s var(--ease),
              color .15s var(--ease),
              border-color .15s var(--ease),
              transform .1s var(--ease);
  min-width: 90px; text-align: center;
}
.prop-btn-yes {
  border: 2px solid var(--accent);
  color: var(--accent); background: transparent;
}
.prop-btn-yes:hover {
  background: rgba(0,210,106,.08);
}
.prop-btn-yes.selected {
  background: var(--accent); color: #000;
}
.prop-btn-no {
  border: 2px solid var(--danger);
  color: var(--danger); background: transparent;
}
.prop-btn-no:hover {
  background: rgba(239,68,68,.08);
}
.prop-btn-no.selected {
  background: var(--danger); color: #fff;
}
.prop-btn-yes:disabled, .prop-btn-no:disabled {
  opacity: .4; pointer-events: none;
}
.prop-confidence {
  display: flex; gap: var(--s1);
  align-items: center;
}
.prop-confidence-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}
.prop-confidence-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-hard);
  background: transparent;
  display: flex; align-items: center;
  justify-content: center;
  font-weight: 900; font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s var(--ease),
              border-color .15s var(--ease),
              color .15s var(--ease),
              transform .1s var(--ease);
}
.prop-confidence-dot:hover {
  border-color: var(--accent);
  color: var(--text);
}
.prop-confidence-dot.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.prop-confidence-dot[data-val="3"] {
  width: 32px; height: 32px;
  font-size: var(--text-sm);
}
.prop-confidence-dot[data-val="3"].selected {
  box-shadow: 0 0 8px var(--accent-glow);
}
.prop-card-footer {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.prop-creator { font-style: italic; }
.prop-wager-count { font-weight: 600; }
.prop-resolved.correct {
  background: rgba(0,210,106,.06);
  border-color: var(--accent);
}
.prop-resolved.incorrect { opacity: .5; }
.prop-outcome-text {
  font-weight: 700; font-size: var(--text-sm);
  text-align: center;
  padding: var(--s1) 0;
}
.prop-outcome-text.yes { color: var(--accent); }
.prop-outcome-text.no { color: var(--danger); }
.prop-points-badge {
  display: inline-flex; align-items: center;
  font-weight: 900; font-size: var(--text-sm);
  padding: 2px 8px; border-radius: 10px;
  animation: propPointsPop .4s var(--ease-out);
}
.prop-points-badge.positive {
  color: var(--accent);
  background: rgba(0,210,106,.12);
}
.prop-points-badge.negative {
  color: var(--danger);
  background: rgba(239,68,68,.12);
}
@keyframes propPointsPop {
  0% { opacity: 0; transform: translateY(8px) scale(.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.prop-create-btn {
  margin-bottom: var(--s3);
}
.prop-create-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  margin-bottom: var(--s3);
}
.prop-create-form .form-group {
  margin-bottom: var(--s2);
}
.prop-create-form label {
  font-size: var(--text-xs);
  font-weight: 700; color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block; margin-bottom: 4px;
}
.prop-create-form select,
.prop-create-form input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-hard);
  border-radius: var(--radius);
  padding: var(--s1) var(--s2);
  color: var(--text);
  font-size: var(--text-sm);
}
.prop-type-pills {
  display: flex; gap: var(--s1);
  margin-bottom: var(--s2);
}
.prop-type-pill {
  padding: 4px 12px; border-radius: 12px;
  font-size: var(--text-xs); font-weight: 700;
  border: 1px solid var(--border-hard);
  background: transparent; color: var(--text-muted);
  cursor: pointer;
  transition: background .15s var(--ease),
              color .15s var(--ease);
}
.prop-type-pill.active {
  background: var(--accent);
  color: #000; border-color: var(--accent);
}
.prop-golfer-mini {
  display: flex; align-items: center;
  gap: var(--s1);
}
.prop-golfer-mini img {
  width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover;
}
@media (max-width: 767px) {
  .prop-card { padding: var(--s2); }
  .prop-btn-yes, .prop-btn-no { min-width: 72px; }
  .prop-confidence-dot { width: 32px; height: 32px; }
  .prop-confidence-dot[data-val="3"] {
    width: 36px; height: 36px;
  }
}

/* --- War Room ------------------------------------------------ */
.wr-tabs {
  display: flex; gap: 0; margin-bottom: var(--s4);
  border-bottom: 2px solid var(--border);
}
.wr-tab {
  padding: var(--s2) var(--s4); cursor: pointer;
  font-weight: 600; font-size: var(--text-sm);
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.wr-tab:hover { color: var(--text); }
.wr-tab.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.wr-tab-content { display: none; }
.wr-tab-content.active { display: block; }

/* Chat */
.wr-chat-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - 260px); min-height: 400px;
}
.wr-chat-list {
  flex: 1; overflow-y: auto; padding: var(--s2) 0;
  display: flex; flex-direction: column; gap: var(--s1);
}
.wr-msg {
  display: flex; gap: var(--s2); padding: var(--s2) var(--s3);
  border-radius: var(--radius); transition: background .1s var(--ease);
}
.wr-msg:hover { background: var(--bg-raised); }
.wr-msg-avatar { flex-shrink: 0; width: 28px; height: 28px; }
.wr-msg-body { flex: 1; min-width: 0; }
.wr-msg-header {
  display: flex; align-items: baseline; gap: var(--s2);
  margin-bottom: 2px;
}
.wr-msg-user {
  font-weight: 700; font-size: var(--text-sm);
  color: var(--text);
}
.wr-msg-time {
  font-size: 0.6rem; color: var(--text-muted);
}
.wr-msg-text { font-size: var(--text-sm); line-height: 1.45; }
.wr-msg-system {
  font-style: italic; color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: var(--s3); margin: var(--s1) 0;
}
.wr-msg-system .wr-msg-text { color: var(--text-muted); }
.wr-msg-brag { border-left: 3px solid var(--accent); }
.wr-msg-taunt { border-left: 3px solid var(--danger); }
.wr-reactions {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.wr-reaction-pill {
  font-size: 0.7rem; padding: 1px 6px;
  background: var(--bg-raised); border-radius: 10px;
  cursor: pointer; border: 1px solid var(--border);
  transition: background .1s var(--ease), border-color .1s var(--ease);
  user-select: none;
}
.wr-reaction-pill:hover { background: var(--bg-floating); }
.wr-reaction-pill.mine { border-color: var(--accent); }
.wr-reaction-add {
  font-size: 0.7rem; padding: 1px 6px;
  background: transparent; border: 1px dashed var(--border);
  border-radius: 10px; cursor: pointer; color: var(--text-muted);
  opacity: 0; transition: opacity .15s var(--ease);
}
.wr-msg:hover .wr-reaction-add { opacity: 1; }
.wr-reaction-picker {
  position: absolute; background: var(--bg-floating);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s1); display: flex; gap: 4px; z-index: 20;
  box-shadow: var(--shadow-lg);
}
.wr-reaction-picker span {
  cursor: pointer; font-size: 1.1rem; padding: 2px;
  border-radius: 4px; transition: background .1s var(--ease);
}
.wr-reaction-picker span:hover { background: var(--bg-hover); }
.wr-input-bar {
  display: flex; gap: var(--s2); padding: var(--s3) 0;
  border-top: 1px solid var(--border); align-items: center;
}
.wr-input-bar input {
  flex: 1; padding: var(--s2) var(--s3);
  background: var(--bg-surface); color: var(--text);
  border: 1px solid var(--border-hard);
  border-radius: var(--radius); font-size: var(--text-sm);
}
.wr-input-bar input:focus {
  outline: none; border-color: var(--accent);
}
.wr-input-bar button {
  padding: var(--s2) var(--s3); border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  border: none; transition: background .15s var(--ease),
    transform .1s var(--ease);
}
.wr-send-btn {
  background: var(--accent); color: var(--text-inverse);
}
.wr-send-btn:hover { background: var(--accent-hover); }
.wr-send-btn:active { transform: scale(.97); }
.wr-quick-actions {
  position: relative; display: inline-block;
}
.wr-quick-menu {
  position: absolute; bottom: 100%; left: 0;
  background: var(--bg-floating); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s1) 0;
  min-width: 280px; z-index: 20; box-shadow: var(--shadow-lg);
  display: none;
}
.wr-quick-menu.open { display: block; }
.wr-quick-item {
  padding: var(--s2) var(--s3); cursor: pointer;
  font-size: var(--text-xs); color: var(--text);
  transition: background .1s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wr-quick-item:hover { background: var(--bg-hover); }
.wr-quick-heading {
  padding: var(--s1) var(--s3);
  font-size: 0.6rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .05em;
}
.wr-new-msgs {
  text-align: center; padding: var(--s1);
  font-size: var(--text-xs); color: var(--accent);
  cursor: pointer; font-weight: 600;
  display: none;
}
.wr-new-msgs.visible { display: block; }

/* Rankings */
.wr-ranking-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  padding: var(--s3) var(--s4); margin-bottom: var(--s2);
  border: 1px solid var(--border);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.wr-ranking-card:hover {
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.wr-ranking-card:first-child {
  border-top: 3px solid var(--gold);
}
.wr-ranking-card:last-child {
  border-top: 3px solid var(--danger);
}
.wr-ranking-header {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s2);
}
.wr-ranking-pos {
  font-size: 1.2rem; font-weight: 800;
  font-family: var(--font-mono); color: var(--text-muted);
  min-width: 32px;
}
.wr-ranking-card:first-child .wr-ranking-pos {
  color: var(--gold);
}
.wr-ranking-trend {
  font-size: var(--text-xs); font-weight: 700;
  margin-right: var(--s1);
}
.wr-ranking-headline {
  font-style: italic; font-size: 0.9rem;
  color: var(--accent); margin-bottom: var(--s2);
}
.wr-ranking-blurb {
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.5; margin-bottom: var(--s2);
}
.wr-ranking-stats {
  display: flex; gap: var(--s4); font-size: var(--text-xs);
  font-family: var(--font-mono); color: var(--text-muted);
}
.wr-ranking-mvp {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--text-xs); color: var(--text-muted);
  margin-top: var(--s1);
}

/* Draft */
.wr-clock-banner {
  text-align: center; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s4); margin-bottom: var(--s4);
}
.wr-clock-label {
  font-size: var(--text-sm); font-weight: 700;
  color: var(--text-muted); margin-bottom: var(--s1);
}
.wr-clock-user {
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  margin-bottom: var(--s2);
}
.wr-clock-timer {
  font-size: 2rem; font-weight: 800;
  font-family: var(--font-mono); color: var(--accent);
}
.wr-clock-timer.warning { color: var(--gold); }
.wr-clock-timer.urgent {
  color: var(--danger);
  animation: wr-pulse .6s infinite alternate;
}
@keyframes wr-pulse {
  from { opacity: 1; } to { opacity: .5; }
}
.wr-clock-progress {
  height: 8px; border-radius: 4px; margin-top: var(--s2);
  background: var(--bg-raised); overflow: hidden;
}
.wr-clock-progress-fill {
  height: 100%; border-radius: 4px;
  background: var(--accent);
  transition: width .3s var(--ease), background .3s var(--ease);
}
.wr-clock-progress-fill.warning { background: var(--gold); }
.wr-clock-progress-fill.urgent { background: var(--danger); }
.wr-pick-feed {
  margin-bottom: var(--s4);
}
.wr-pick-entry {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3); font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
}
.wr-pick-entry.auto { color: var(--text-muted); }
.wr-pick-entry.mine { border-left: 3px solid var(--accent); }
.wr-pick-num {
  font-weight: 800; font-family: var(--font-mono);
  color: var(--text-muted); min-width: 24px;
}
.wr-pick-golfer { font-weight: 700; }
.wr-pick-salary {
  font-family: var(--font-mono); color: var(--text-muted);
}
.wr-pick-round {
  font-size: var(--text-xs); color: var(--text-muted);
}
.wr-pick-announce {
  animation: wr-slide-in .3s var(--ease);
}
@keyframes wr-slide-in {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.wr-golfer-grid {
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-bottom: var(--s4);
}
.wr-golfer-option {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s2) var(--s3);
  cursor: pointer; transition: border-color .15s var(--ease),
    transform .1s var(--ease);
}
.wr-golfer-option:hover {
  border-color: var(--accent); transform: translateY(-1px);
}
.wr-golfer-option.disabled {
  opacity: .4; pointer-events: none;
}
.wr-confirm-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.wr-confirm-card {
  background: var(--bg-floating); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s5);
  text-align: center; max-width: 320px; width: 90%;
  box-shadow: var(--shadow-lg);
}
.wr-confirm-card h3 { margin-bottom: var(--s3); }
.wr-confirm-btns {
  display: flex; gap: var(--s2); justify-content: center;
  margin-top: var(--s4);
}
.wr-team-summary {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s3) var(--s4);
  margin-bottom: var(--s2);
}
.wr-team-summary h4 { margin-bottom: var(--s1); }
.wr-draft-grade {
  font-size: 2rem; font-weight: 800;
  font-family: var(--font-mono);
}
.wr-draft-grade.grade-a { color: var(--accent); }
.wr-draft-grade.grade-b { color: var(--accent); }
.wr-draft-grade.grade-c { color: var(--gold); }
.wr-draft-grade.grade-d { color: var(--warning); }
.wr-draft-grade.grade-f { color: var(--danger); }
.wr-lobby-member {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s1) 0; font-size: var(--text-sm);
}
.wr-member-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.wr-member-online { background: var(--accent); }
.wr-member-offline { background: var(--text-muted); }

/* War Room sidebar members */
.wr-member-list {
  margin-top: var(--s3);
}

/* War Room button on league home */
.wr-enter-btn {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  margin-top: var(--s3); color: var(--gold);
  text-decoration: none;
  font-size: var(--text-sm); font-weight: 700;
  transition: background .15s var(--ease),
    transform .15s var(--ease);
}
.wr-enter-btn:hover {
  background: rgba(251,191,36,.08);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .wr-chat-wrap { height: calc(100vh - 200px); min-height: 300px; }
  .wr-ranking-stats { flex-wrap: wrap; gap: var(--s2); }
  .wr-golfer-grid { grid-template-columns: 1fr; }
}

/* --- Live Pulse -------------------------------------------- */
.pulse-layout .sidebar,
.pulse-layout .right-panel { display: none; }
.pulse-layout .main-content {
  max-width: 100%; margin: 0; padding: 0;
}
.pulse-layout .content-header { display: none; }
.pulse-layout .content-body { padding: 0; }

.pulse-container {
  max-width: 480px; margin: 0 auto;
  padding: 0 8px 24px; min-height: 100vh;
}
.pulse-status-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 8px;
  min-height: 48px;
  transition: background .5s var(--ease);
}
.pulse-status-bar.score-changed {
  animation: pulseGreenFlash .6s var(--ease);
}
@keyframes pulseGreenFlash {
  0%,100% { background: var(--bg); }
  50% { background: rgba(0,210,106,.12); }
}
.pulse-status-left {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
}
.pulse-back {
  color: var(--text-muted); text-decoration: none;
  font-size: var(--text-sm); font-weight: 700;
  padding: 4px;
}
.pulse-back:hover { color: var(--text); }
.pulse-tournament-name {
  font-weight: 900; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-round-badge {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 11px;
  background: var(--bg-raised);
  padding: 1px 6px; border-radius: 4px;
  color: var(--text-muted);
}
.pulse-progress-wrap {
  width: 48px; height: 4px;
  background: var(--bg-raised);
  border-radius: 2px; overflow: hidden;
}
.pulse-progress-bar {
  height: 100%; background: var(--accent);
  border-radius: 2px;
  transition: width .5s var(--ease);
}
.pulse-pct {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-muted);
}
.pulse-status-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 1px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.pulse-status-stat {
  display: flex; align-items: center; gap: 4px;
}
.pulse-cards {
  display: flex; flex-direction: column;
  gap: 12px; margin-top: 12px;
}
.pulse-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 16px;
  transition: box-shadow .2s var(--ease);
}
.pulse-card.signature {
  border-left: 3px solid var(--gold);
}
.pulse-card.augusta {
  border-left: 3px solid #006747;
}
.pulse-card.deafening {
  animation: eagle-shimmer 2s infinite;
  border-color: var(--gold);
}
.pulse-card-title {
  font-size: 0.7rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: 8px;
}

/* Roar Meter */
.roar-bar-track {
  flex: 1; height: 12px;
  background: var(--bg-raised);
  border-radius: 6px; overflow: hidden;
}
.roar-bar-fill {
  height: 100%; border-radius: 6px;
  transition: width .5s var(--ease);
}
.roar-bar-fill.quiet { background: var(--text-muted); }
.roar-bar-fill.building { background: var(--accent); }
.roar-bar-fill.loud { background: var(--gold); }
.roar-bar-fill.deafening {
  background: var(--gold);
  animation: eagle-shimmer 2s infinite;
}
.roar-level {
  font-weight: 900; font-size: 0.8rem;
  min-width: 80px; text-align: right;
}
.roar-stats {
  display: flex; gap: 12px;
  font-size: 0.75rem; color: var(--text-muted);
}

/* Amen Corner */
.amen-holes-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  text-align: center; gap: 4px;
  margin-bottom: 8px;
}
.amen-hole-avg {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 700;
}
.amen-golfer-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.amen-golfer-row:last-child { border-bottom: none; }
.amen-golfer-row .score-eagle {
  color: var(--gold); font-weight: 900;
  animation: eagle-shimmer 2s infinite;
}
.amen-golfer-row .score-birdie { color: var(--accent); }
.amen-golfer-row .score-bogey { color: var(--danger); }
.amen-totals {
  display: flex; gap: 12px; margin-top: 8px;
  font-size: 0.75rem; color: var(--text-muted);
}
.amen-drama {
  margin-top: 4px; font-size: 1.1rem;
  display: flex; align-items: center; gap: 4px;
}

/* My Team */
.pulse-golfer-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pulse-golfer-row:last-of-type { border-bottom: none; }
.pulse-golfer-row.just-scored {
  animation: pulseGreenFlash .6s var(--ease);
}
.pulse-golfer-hole {
  font-family: var(--font-mono);
}
.pulse-golfer-total {
  font-family: var(--font-mono);
  font-weight: 900; font-size: 1.1rem;
  min-width: 36px; text-align: right;
}
.pulse-golfer-contrib {
  font-size: 0.65rem; color: var(--text-muted);
}
.pulse-golfer-last5 {
  display: flex; gap: 2px;
  font-size: 14px; margin-top: 2px;
}

/* Movers */
.mover-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0; min-height: 36px;
}
.mover-row.riser { border-left: 3px solid var(--accent); padding-left: 8px; }
.mover-row.faller { border-left: 3px solid var(--danger); padding-left: 8px; }
.mover-row.my-team { background: rgba(0,210,106,.08); border-radius: var(--radius); }
.mover-magnitude {
  font-family: var(--font-mono);
  font-weight: 900; font-size: var(--text-sm);
  min-width: 28px;
}
.mover-enter {
  animation: moverSlideIn .3s var(--ease) both;
}
@keyframes moverSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Spotlight */
.spotlight-thumbnail {
  width: 100%; max-height: 120px;
  overflow: hidden; border-radius: 8px;
  margin-bottom: 8px;
  display: flex; align-items: center;
  justify-content: center;
  background: var(--bg-raised);
}
.spotlight-thumbnail svg {
  max-height: 110px; width: auto;
}
.spotlight-stats {
  display: flex; gap: 12px;
  font-size: 0.75rem; color: var(--text-muted);
  margin: 8px 0;
}
.spotlight-desc {
  font-style: italic; font-size: 0.8rem;
  color: var(--text-muted); padding-left: 8px;
  border-left: 2px solid var(--border);
}

/* Leaderboard */
.pulse-lb-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0; min-height: 32px;
  font-size: var(--text-sm);
}
.pulse-lb-row.is-user {
  border-left: 3px solid var(--accent);
  padding-left: 6px;
  background: rgba(0,210,106,.06);
  border-radius: var(--radius);
}
.pulse-lb-rank {
  font-family: var(--font-mono);
  font-weight: 900; min-width: 20px;
  text-align: center;
}
.pulse-lb-score {
  font-family: var(--font-mono);
  font-weight: 700; min-width: 32px;
  text-align: right;
}

/* Alerts */
.pulse-alerts {
  position: sticky; top: 48px; z-index: 99;
  max-width: 480px; margin: 0 auto;
}
.pulse-alert {
  padding: 10px 16px;
  font-weight: 700; font-size: var(--text-sm);
  border-radius: 0 0 8px 8px;
  text-align: center;
}
.pulse-alert.eagle {
  background: rgba(251,191,36,.92); color: #000;
}
.pulse-alert.eagle.my-team {
  font-size: 1rem;
}
.pulse-alert.lead-change {
  background: rgba(0,210,106,.92); color: #000;
}
.pulse-alert.top3 {
  background: rgba(0,210,106,.85); color: #000;
}
.pulse-alert-badge {
  display: inline-block;
  background: #000; color: var(--gold);
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px; margin-right: 4px;
}
.pulse-alert-enter {
  animation: alertSlideIn .3s var(--ease-out);
}
.pulse-alert-exit {
  animation: alertSlideOut .2s var(--ease) forwards;
}
@keyframes alertSlideIn {
  from { transform: translateY(-48px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes alertSlideOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-48px); opacity: 0; }
}

/* Pulse nav link */
.sidebar-pulse-link {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--danger);
  border-radius: var(--radius-lg);
  margin-top: var(--s2);
  color: var(--danger);
  text-decoration: none;
  font-size: var(--text-sm); font-weight: 700;
  transition: background .15s var(--ease);
  animation: pulseBorder 2s infinite;
}
.sidebar-pulse-link:hover {
  background: rgba(239,68,68,.08);
}
@keyframes pulseBorder {
  0%,100% { border-color: var(--danger); }
  50% { border-color: rgba(239,68,68,.3); }
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}

/* Responsive */
@media (min-width: 481px) {
  .pulse-card { padding: 20px; }
  .pulse-container { padding: 0 16px 32px; }
}
@media (max-width: 359px) {
  .pulse-golfer-row { gap: 6px; }
  .pulse-golfer-total { font-size: 1rem; }
  .pulse-tournament-name { font-size: 10px; }
}

/* --- Share Cards ------------------------------------------- */
.share-btn.generating { opacity: .6; pointer-events: none; }
.share-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center;
  justify-content: center;
  animation: shareModalIn .2s var(--ease);
}
@keyframes shareModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.share-modal-content {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  max-width: 400px; width: 90%;
}
.share-preview {
  width: 100%; border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.share-actions {
  display: flex; gap: 8px;
  justify-content: center;
}
.share-action-btn {
  display: inline-flex; align-items: center;
  gap: 4px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700; font-size: 0.85rem;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: transform .1s var(--ease),
              filter .15s var(--ease);
}
.share-action-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.share-action-btn.primary {
  background: var(--accent); color: #0f1923;
}
.share-action-btn:not(.primary) {
  background: var(--bg-raised); color: var(--text);
}
.share-modal-close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.2rem;
  cursor: pointer; padding: 4px 8px;
  border-radius: var(--radius);
}
.share-modal-close:hover { color: var(--text); }
.share-prompt {
  background: var(--bg-surface);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px; margin-top: 8px;
  display: flex; align-items: center; gap: 12px;
}
.share-prompt-text {
  font-size: 0.85rem; flex: 1;
  color: var(--text-muted);
}
.share-prompt-btn {
  background: var(--gold); color: #0f1923;
  border: none; border-radius: 6px;
  padding: 6px 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  font-size: var(--text-xs);
}

/* ================================================================
   PWA — Install Banner, Offline Banner, Push Settings
   ================================================================ */
.install-banner {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  z-index: 200; background: var(--bg-surface);
  border-bottom: 1px solid var(--accent);
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  animation: slideDown .3s var(--ease);
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.install-banner-content {
  display: flex; align-items: center; gap: 12px;
  max-width: 600px; margin: 0 auto;
}
.install-banner-icon {
  width: 40px; height: 40px; border-radius: 8px;
}
.install-banner-text {
  display: flex; flex-direction: column; flex: 1;
}
.install-banner-text strong {
  font-size: 0.9rem; color: var(--text-primary);
}
.install-banner-text span {
  font-size: 0.75rem; color: var(--text-muted);
}
.install-banner-btn {
  background: var(--accent); color: #0f1923;
  border: none; border-radius: 6px;
  padding: 8px 16px; font-weight: 700;
  font-size: 0.8rem; cursor: pointer;
  transition: filter .15s var(--ease);
}
.install-banner-btn:hover { filter: brightness(1.1); }
.install-banner-dismiss {
  background: none; border: none;
  color: var(--text-muted); font-size: 1.4rem;
  cursor: pointer; padding: 8px;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(255,255,255,.1);
}
.ios-guide .ios-share-icon {
  display: inline; font-size: 1.1rem;
  vertical-align: middle;
}
/* Offline Banner */
.offline-banner {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  z-index: 200; background: var(--gold);
  color: #0f1923; text-align: center;
  padding: 8px; font-weight: 700; font-size: 0.8rem;
}
/* Notification Settings */
.push-settings { max-width: 480px; }
.push-toggle-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.push-toggle-label { font-size: 0.85rem; }
.push-toggle {
  -webkit-appearance: none; appearance: none;
  width: 40px; height: 22px;
  background: var(--bg-raised);
  border-radius: 11px; position: relative;
  cursor: pointer; transition: background .2s var(--ease);
  border: none; outline: none;
}
.push-toggle:checked { background: var(--accent); }
.push-toggle::before {
  content: ''; width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  position: absolute; top: 2px; left: 2px;
  transition: transform .2s var(--ease);
}
.push-toggle:checked::before {
  transform: translateX(18px);
}
.push-section-header {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted); padding-top: 16px;
}
.push-test-btn {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 6px; padding: 8px 16px;
  color: var(--text-primary); cursor: pointer;
  font-size: 0.8rem;
  transition: background .15s var(--ease);
}
.push-test-btn:hover {
  background: var(--bg-surface);
}
.push-status-btn {
  padding: 8px 16px; border-radius: 6px;
  font-weight: 700; font-size: 0.85rem;
  cursor: pointer; border: none;
  transition: background .15s var(--ease);
}
.push-status-btn.active {
  background: var(--accent); color: #0f1923;
}
.push-status-btn:not(.active) {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* --- Season Mode -------------------------------------------- */
.keeper-card {
  background: var(--bg-surface); border-radius: 8px;
  padding: 16px; display: flex; gap: 12px;
  align-items: center; justify-content: space-between;
  border: 1px solid var(--border); margin-bottom: var(--s2);
}
.keeper-card .salary-breakdown {
  font-size: 0.8rem; font-family: var(--font-mono);
  color: var(--text-muted); margin: 4px 0;
}
.keeper-value.good { color: var(--accent); font-weight: 700; }
.keeper-value.fair { color: var(--gold); font-weight: 700; }
.keeper-value.overpay { color: var(--danger); font-weight: 700; }
.keeper-action-btn {
  padding: 4px 12px; border-radius: 6px;
  font-size: var(--text-xs); font-weight: 600;
  cursor: pointer; border: none;
}
.keeper-action-btn.release {
  background: var(--bg-raised);
  border: 1px solid var(--danger); color: var(--danger);
}
.trade-card {
  background: var(--bg-surface); border-radius: 8px;
  padding: 16px; margin-bottom: var(--s2);
  border: 1px solid var(--border);
}
.trade-card.pending { border-left: 3px solid var(--gold); }
.trade-card.accepted { border-left: 3px solid var(--accent); }
.trade-card.declined { opacity: 0.5; }
.trade-card.vetoed {
  border-left: 3px solid var(--danger); opacity: 0.5;
}
.trade-columns {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 16px; margin-bottom: var(--s2);
}
.trade-column-header {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted);
  margin-bottom: var(--s1);
}
.trade-arrow { font-size: 1.5rem; color: var(--text-muted); }
.trade-message {
  font-style: italic; font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px; margin-top: 8px;
}
.trade-respond-btns { display: flex; gap: 8px; margin-top: var(--s2); }
.trade-accept-btn {
  background: var(--accent); color: var(--text-inverse);
  padding: 6px 16px; border-radius: 6px; border: none;
  font-weight: 600; cursor: pointer;
}
.trade-decline-btn {
  background: var(--bg-raised);
  border: 1px solid var(--danger); color: var(--danger);
  padding: 6px 16px; border-radius: 6px;
  font-weight: 600; cursor: pointer;
}
.waiver-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border); gap: var(--s2);
}
.waiver-claim-btn {
  background: var(--bg-raised);
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 6px; padding: 4px 12px;
  font-size: var(--text-xs); font-weight: 600; cursor: pointer;
}
.waiver-claim-btn:hover { background: rgba(0,210,106,.08); }
.bracket-container { overflow-x: auto; padding: 20px; }
.bracket-round {
  display: flex; flex-direction: column;
  justify-content: space-around; min-width: 200px;
}
.bracket-matchup {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px; margin: 8px 0; overflow: hidden;
}
.bracket-matchup.active {
  border-color: var(--accent);
  animation: pulse-soft 2s infinite;
}
.bracket-matchup.complete { opacity: 0.85; }
.bracket-team-row {
  display: flex; padding: 8px 12px;
  justify-content: space-between;
  align-items: center; gap: 8px; font-size: var(--text-sm);
}
.bracket-team-row + .bracket-team-row {
  border-top: 1px solid var(--border-subtle);
}
.bracket-team-row.winner { background: rgba(0,210,106,.12); }
.bracket-team-row.loser { opacity: 0.4; }
.bracket-seed {
  font-size: 0.7rem; font-family: var(--font-mono);
  color: var(--text-muted); min-width: 16px;
}
.season-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: var(--s4);
}
.season-kpi {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; text-align: center;
}
.season-kpi-value { font-size: 1.5rem; font-weight: 800; }
.season-kpi-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted);
}
.season-enter-btn {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  margin-top: var(--s2); color: var(--accent);
  text-decoration: none;
  font-size: var(--text-sm); font-weight: 700;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.season-enter-btn:hover {
  background: rgba(0,210,106,.08); transform: translateY(-1px);
}
@media (max-width: 767px) {
  .season-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .trade-columns { grid-template-columns: 1fr; }
  .bracket-container { padding: var(--s2); }
}
/* Fetch error state */
.fetch-error {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--s2);
  padding: var(--s4); color: var(--text-muted);
  font-size: var(--text-sm);
}
/* Mobile: Pick'em cards */
@media (max-width: 767px) {
  .pickem-card-body {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--s1); padding: var(--s2);
  }
  .pickem-golfer { padding: var(--s1); }
  .pickem-golfer img,
  .pickem-golfer div[style*="border-radius:50%"] {
    width: 36px !important; height: 36px !important;
  }
  .pickem-vs { font-size: var(--text-xs); }
  .pickem-card-header { padding: var(--s1) var(--s2); }
  .install-banner-content { gap: 8px; }
  .install-banner-icon { width: 32px; height: 32px; }
}

/* =================================================================
   v11.0 — Hole Guide Grid + Detail Modal
   ================================================================= */

/* ---- Hole Guide Grid ---- */
.hole-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.hg-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s2);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.hg-card:hover {
  transform: translateY(-2px);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}
.hg-card--signature {
  border-left: 3px solid var(--gold);
}
.hg-card-svg {
  width: 100%;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hg-card-svg svg { width: 100%; height: 100%; }
.hg-card-svg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hg-card-header {
  display: flex;
  align-items: baseline;
  gap: var(--s1);
  margin-bottom: 4px;
}
.hg-card-hole {
  font-size: var(--text-lg);
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}
.hg-card-name {
  font-size: 0.65rem;
  font-style: italic;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.hg-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.hg-diff-badge {
  font-size: 0.55rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  color: white;
  margin-left: auto;
}
.hg-sig-star {
  color: var(--gold);
  font-size: 0.7rem;
  margin-left: 2px;
}
/* Compact score distribution bar on card */
.hg-dist-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
}
.hg-dist-bar span { display: block; min-width: 1px; }

/* ---- Hole Detail Modal ---- */
.hole-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hm-fade-in .2s var(--ease);
}
@keyframes hm-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hole-modal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 720px;
  max-width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  animation: hm-slide-up .25s var(--ease);
  position: relative;
}
.hole-modal::-webkit-scrollbar { width: 4px; }
.hole-modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Close button */
.hm-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 28px; height: 28px;
  border: none;
  background: rgba(255,255,255,.08);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur-fast) var(--ease);
}
.hm-close:hover { background: rgba(255,255,255,.16); color: var(--text); }

/* Prev / Next arrows */
.hm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.hm-nav:hover { background: var(--bg-surface); color: var(--text); }
.hm-nav--prev { left: -44px; }
.hm-nav--next { right: -44px; }

/* Left pane — SVG */
.hm-svg-pane {
  width: 280px;
  min-width: 280px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.hm-svg-wrap {
  width: 240px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-svg-wrap svg { width: 100%; height: 100%; }
.hm-svg-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.hm-svg-legend {
  display: flex;
  gap: var(--s3);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: var(--s3);
}
.hm-svg-legend span::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.hm-svg-legend .leg-green::before  { background: #4ade80; }
.hm-svg-legend .leg-bunker::before { background: #d4a574; }
.hm-svg-legend .leg-water::before  { background: #60a5fa; }

/* Right pane — details */
.hm-detail-pane {
  flex: 1;
  padding: var(--s4);
  min-width: 0;
  overflow-y: auto;
}
.hm-hole-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}
.hm-hole-name {
  font-size: var(--text-base);
  font-weight: 700;
  margin-left: var(--s2);
}
.hm-stats-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: var(--s3) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.hm-stats-row .hg-diff-badge { margin-left: 0; }
.hm-desc {
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--s3);
}
.hm-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}
.hm-avg-score {
  font-size: var(--text-lg);
  font-weight: 800;
  font-family: var(--font-mono);
}
/* Full score distribution bar */
.hm-dist-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 4px;
}
.hm-dist-bar span { display: block; min-width: 1px; }
.hm-dist-labels {
  display: flex;
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-bottom: var(--s3);
}
.hm-dist-labels span {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: var(--s2);
}
.hm-dist-labels span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 1px;
}
.hm-dist-labels .dl-eagle::before  { background: var(--eagle); }
.hm-dist-labels .dl-birdie::before { background: var(--birdie); }
.hm-dist-labels .dl-par::before    { background: var(--text-muted); }
.hm-dist-labels .dl-bogey::before  { background: var(--bogey); }
.hm-dist-labels .dl-dbl::before    { background: var(--danger); }

/* Your Team on this hole */
.hm-team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}
.hm-team-table th {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 2px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hm-team-table th:first-child { text-align: left; }
.hm-team-table td {
  padding: 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.65rem;
}
.hm-team-table td:first-child {
  text-align: left;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hm-team-table tr:last-child td {
  border-top: 1px solid var(--border);
  font-weight: 800;
}
.hm-team-table .sc-eagle  { color: var(--eagle); }
.hm-team-table .sc-birdie { color: var(--birdie); }
.hm-team-table .sc-par    { color: var(--text); }
.hm-team-table .sc-bogey  { color: var(--bogey); }
.hm-team-table .sc-dbl    { color: var(--danger); }
.hm-team-table .sc-best   { background: rgba(0,210,106,.08); border-radius: 3px; }

/* Key stats row */
.hm-key-stats {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.hm-key-stats strong { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .hole-guide-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s1);
  }
  .hole-modal {
    flex-direction: column;
    width: 96vw;
    max-height: 92vh;
    border-radius: var(--radius);
  }
  .hm-svg-pane {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: var(--s3);
  }
  .hm-svg-wrap {
    width: 180px;
    height: 260px;
  }
  .hm-detail-pane { padding: var(--s3); }
  .hm-nav--prev { left: 4px; }
  .hm-nav--next { right: 4px; }
  .hm-nav { width: 28px; height: 28px; font-size: 0.8rem; }
  .hg-card-svg { height: 90px; }
}

/* ================================================================
   Masters Media Hub & Watch Links (v12.0)
   ================================================================ */
.media-hub-card {
  border-left: 3px solid var(--gold, #fbbf24);
  background: rgba(251,191,36,.05);
  border-radius: var(--radius);
  padding: var(--s2); margin-bottom: var(--s2);
}
.media-hub-header {
  font-size: 0.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold, #fbbf24);
  margin-bottom: var(--s2);
  display: flex; align-items: center; gap: var(--s1);
}
.media-section-label {
  font-size: 0.45rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: var(--s2) 0 var(--s1);
}
.media-stream-item {
  display: flex; align-items: center;
  gap: var(--s1); padding: 4px 6px;
  border-radius: 4px; cursor: pointer;
  text-decoration: none; color: var(--text);
  font-size: var(--text-xs);
  transition: background .15s var(--ease);
}
.media-stream-item:hover {
  background: rgba(255,255,255,.06);
}
.media-stream-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-live 1.5s infinite;
  flex-shrink: 0;
}
.media-stream-time {
  font-size: 0.5rem; color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: auto; white-space: nowrap;
}
.media-highlight-item {
  display: flex; align-items: center;
  gap: var(--s1); padding: 3px 6px;
  border-radius: 4px; cursor: pointer;
  text-decoration: none; color: var(--text);
  font-size: var(--text-xs);
  transition: background .15s var(--ease);
}
.media-highlight-item:hover {
  background: rgba(255,255,255,.06);
}
.media-link-icon {
  color: var(--gold, #fbbf24); font-size: 0.6rem;
  flex-shrink: 0; width: 16px; text-align: center;
}
.media-link-title { flex: 1; }
.media-link-hole {
  font-size: 0.5rem; color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 1px 5px; border-radius: 3px;
}
.media-quick-links {
  display: flex; gap: var(--s1);
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--border-subtle);
}
.media-quick-link {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 4px;
  padding: 6px var(--s2); border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle);
  color: var(--text); font-size: 0.55rem;
  font-weight: 600; text-decoration: none;
  transition: background .15s var(--ease),
              border-color .15s var(--ease);
}
.media-quick-link:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--gold, #fbbf24);
}
.media-see-all {
  display: block; text-align: right;
  font-size: 0.5rem; color: var(--gold, #fbbf24);
  text-decoration: none; margin-top: 4px;
  padding-right: 6px;
}
.media-see-all:hover { text-decoration: underline; }

/* Watch section in golfer detail panel */
.media-links-section {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--border-subtle);
}
.media-links-header {
  font-size: 0.55rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold, #fbbf24);
  margin-bottom: var(--s1);
}
.media-link-item {
  display: flex; align-items: center;
  gap: var(--s1); padding: 3px 4px;
  border-radius: 4px; cursor: pointer;
  text-decoration: none; color: var(--text);
  font-size: var(--text-xs);
  transition: background .15s var(--ease);
}
.media-link-item:hover {
  background: rgba(255,255,255,.06);
}

/* Hole guide watch icon */
.hole-watch-link {
  display: inline-flex; align-items: center;
  gap: 2px; font-size: 0.55rem;
  color: var(--gold, #fbbf24);
  text-decoration: none; cursor: pointer;
  opacity: .7; transition: opacity .15s var(--ease);
}
.hole-watch-link:hover { opacity: 1; }

/* Activity feed media link */
.activity-media-link {
  display: inline-flex; align-items: center;
  gap: 2px; font-size: 0.5rem;
  color: var(--gold, #fbbf24);
  text-decoration: none; margin-left: 4px;
}
.activity-media-link:hover {
  text-decoration: underline;
}

/* Sidebar media nav item */
.sidebar-media-card {
  display: flex; align-items: center;
  gap: var(--s2); padding: var(--s2);
  margin: var(--s2) 0;
  border: 1px solid rgba(251,191,36,.3);
  border-radius: var(--radius);
  background: rgba(251,191,36,.05);
  text-decoration: none; color: var(--text);
  font-size: var(--text-xs); font-weight: 600;
  transition: background .15s var(--ease);
}
.sidebar-media-card:hover {
  background: rgba(251,191,36,.1);
}

/* Mobile media bottom sheet */
.media-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000; display: none;
  align-items: flex-end;
  justify-content: center;
}
.media-overlay.active { display: flex; }
.media-sheet {
  width: 100%; max-width: 480px;
  max-height: 80vh; overflow-y: auto;
  background: var(--bg-surface);
  border-radius: 16px 16px 0 0;
  padding: var(--s3);
  animation: sheet-up .25s var(--ease);
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.media-sheet-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px; margin: 0 auto var(--s3);
}

/* Golfer profile media card */
.golfer-media-card {
  border-left: 3px solid var(--gold, #fbbf24);
  background: rgba(251,191,36,.05);
  border-radius: var(--radius);
  padding: var(--s3); margin-bottom: var(--s4);
}

/* Mobile media FAB — hidden on desktop */
.media-fab { display: none; }
@media (max-width: 767px) {
  .media-fab {
    position: fixed;
    bottom: calc(60px + var(--s3) + 56px);
    right: var(--s3);
    width: 48px; height: 48px;
    border-radius: 50%; border: none;
    background: linear-gradient(135deg,
      var(--gold, #fbbf24), #d4a017);
    color: #000; font-size: 1.2rem;
    display: flex; align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(251,191,36,.3);
    z-index: 100; cursor: pointer;
    min-width: 48px; min-height: 48px;
  }
  .media-stream-item { min-height: 48px; }
  .media-highlight-item { min-height: 44px; }
}
