:root{
  --golf-forest:#0B3D2E;
  --golf-green:#146A3B;
  --golf-fairway:#1B7A43;
  --golf-sand:#E9D8A6;
  --golf-silver:#C6CDD7;
  --golf-bronze:#D29B6A;
  --line: rgba(0,0,0,.10);
  --muted: rgba(0,0,0,.62);
  --shadow: 0 14px 34px rgba(0,0,0,.10);
  --radius: 18px;
}

.nhltr-gps-wrap{
  background:
    radial-gradient(1200px 280px at 0% 0%, rgba(27,122,67,.18), transparent 60%),
    radial-gradient(900px 240px at 100% 0%, rgba(11,61,46,.18), transparent 55%),
    #fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow: hidden;
}

.nhltr-gps-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.nhltr-gps-titlewrap{display:flex; flex-direction:column; gap:6px;}
.nhltr-gps-title{
  margin:0;
  font-size:20px;
  line-height:1.15;
  letter-spacing:.2px;
}
.nhltr-gps-sub{
  font-size:12px;
  color: var(--muted);
}

.nhltr-gps-controls{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 210px;
}

.nhltr-gps-label{
  font-size:12px;
  color: var(--muted);
  margin-left:2px;
}

.nhltr-gps-updated{
  font-size:12px;
  color: var(--muted);
  margin-left:2px;
  line-height:1.2;
}

.nhltr-gps-select{
  width: 100%;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  outline:none;
}

.nhltr-gps-select:focus{
  border-color: rgba(20,106,59,.55);
  box-shadow: 0 0 0 3px rgba(20,106,59,.12);
}

.nhltr-gps-table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.7);
}

.nhltr-gps-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 720px;
}

.nhltr-gps-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background: linear-gradient(180deg, rgba(11,61,46,.06), rgba(247,248,250,1));
  text-align:left;
  font-size:13px;
  font-weight:900;
  padding:12px 10px;
  border-bottom:1px solid rgba(0,0,0,.10);
  white-space:nowrap;
}

.nhltr-gps-table tbody td{
  padding:12px 10px;
  font-size:14px;
  border-bottom:1px solid rgba(0,0,0,.06);
  vertical-align:middle;
}

.nhltr-gps-table tbody tr:nth-child(even){
  background: rgba(0,0,0,.014);
}

.nhltr-gps-table tbody tr:hover{
  background: rgba(20,106,59,.06);
}

.nhltr-gps-rank-h, .nhltr-gps-rank{
  width:92px;
  white-space:nowrap;
}

.nhltr-gps-rank{
  font-weight:900;
  display:flex;
  align-items:center;
  gap:10px;
}

.nhltr-gps-rank-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:34px;
  padding:0 10px;
  border-radius: 12px;
  background: rgba(11,61,46,.08);
  border: 1px solid rgba(11,61,46,.12);
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
}

.nhltr-gps-rank-badge{
  width:28px;
  height:28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

.nhltr-gps-rank-badge::before{
  content:"⛳";
  font-size:14px;
  line-height:1;
  opacity:.9;
}

/* PGA-style score column */
.nhltr-gps-score-h{ text-align:right; }
.nhltr-gps-score{
  text-align:right;
  font-variant-numeric: tabular-nums;
  font-weight:900;
  letter-spacing: .2px;
}
.nhltr-gps-score-na{
  font-weight:700;
  color: rgba(0,0,0,.45);
}

/* Tie group styling */
.nhltr-gps-tied{
  background: rgba(11,61,46,.045) !important;
}
.nhltr-gps-tied td{
  border-bottom-color: rgba(11,61,46,.10);
}
.nhltr-gps-tied .nhltr-gps-rank-num{
  background: rgba(20,106,59,.10);
  border-color: rgba(20,106,59,.20);
}

/* Top 5 – premium golf styling */
.nhltr-gps-top1{
  background: linear-gradient(90deg, rgba(20,106,59,.16), rgba(255,255,255,0)) !important;
}
.nhltr-gps-top1 .nhltr-gps-rank-num{ background: rgba(255,215,0,.18); border-color: rgba(255,215,0,.35); }
.nhltr-gps-top1 .nhltr-gps-rank-badge{ background: rgba(255,215,0,.25); border-color: rgba(255,215,0,.45); }
.nhltr-gps-top1 .nhltr-gps-rank-badge::before{ content:"🏆"; }

.nhltr-gps-top2{
  background: linear-gradient(90deg, rgba(198,205,215,.28), rgba(255,255,255,0)) !important;
}
.nhltr-gps-top2 .nhltr-gps-rank-num{ background: rgba(198,205,215,.38); border-color: rgba(198,205,215,.55); }
.nhltr-gps-top2 .nhltr-gps-rank-badge{ background: rgba(198,205,215,.42); border-color: rgba(198,205,215,.65); }
.nhltr-gps-top2 .nhltr-gps-rank-badge::before{ content:"🥈"; }

.nhltr-gps-top3{
  background: linear-gradient(90deg, rgba(210,155,106,.28), rgba(255,255,255,0)) !important;
}
.nhltr-gps-top3 .nhltr-gps-rank-num{ background: rgba(210,155,106,.28); border-color: rgba(210,155,106,.48); }
.nhltr-gps-top3 .nhltr-gps-rank-badge{ background: rgba(210,155,106,.32); border-color: rgba(210,155,106,.56); }
.nhltr-gps-top3 .nhltr-gps-rank-badge::before{ content:"🥉"; }

.nhltr-gps-top4{
  background: linear-gradient(90deg, rgba(233,216,166,.22), rgba(255,255,255,0)) !important;
}
.nhltr-gps-top4 .nhltr-gps-rank-badge::before{ content:"🏌️"; }

.nhltr-gps-top5{
  background: linear-gradient(90deg, rgba(27,122,67,.12), rgba(255,255,255,0)) !important;
}
.nhltr-gps-top5 .nhltr-gps-rank-badge::before{ content:"⛳"; }

.nhltr-gps-error{
  padding:12px 14px;
  border-radius:14px;
  background:#fff3f3;
  border:1px solid rgba(200,0,0,.15);
}

@media (max-width: 640px){
  .nhltr-gps-wrap{ padding:14px; }
  .nhltr-gps-title{ font-size:18px; }
  .nhltr-gps-controls{ width:100%; min-width: 0; }
  .nhltr-gps-table{ min-width: 680px; }
}
