/* Optical Ballistics Smash Factor, Clubface Sweet-Spot Bullseye & Vernier Radar */

.sf-club-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 18px;
}

.sf-club-btn {
  appearance: none;
  min-height: 48px;
  padding: 8px 8px;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.sf-club-btn small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.sf-club-btn:hover {
  border-color: var(--turf);
}

.sf-club-btn[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #f4f7f2;
}

.sf-club-btn[aria-pressed="true"] small {
  color: rgba(244, 247, 242, 0.82);
}

html[data-theme="radar"] .sf-club-btn[aria-pressed="true"] {
  background: var(--optic-bright);
  border-color: var(--optic-bright);
  color: #081c14;
}

html[data-theme="radar"] .sf-club-btn[aria-pressed="true"] small {
  color: rgba(8, 28, 20, 0.78);
}

/* Dual Club Speed + Ball Speed Dials */
.sf-dual-dials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 14px;
}

.sf-dial-box {
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
}

.sf-dial-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.sf-dial-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.sf-num-input {
  width: 4.2ch;
  min-height: 52px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(36px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.sf-num-input::-webkit-outer-spin-button,
.sf-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sf-num-input:focus {
  outline: none;
  border-bottom-color: var(--optic);
}

.sf-range {
  width: 100%;
  height: 22px;
  margin: 6px 0 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.sf-range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--hairline-strong);
}

.sf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--pine);
  border: 3px solid var(--optic-bright);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.sf-range::-moz-range-track {
  height: 2px;
  background: var(--hairline-strong);
}

.sf-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pine);
  border: 3px solid var(--optic-bright);
}

/* Dark Doppler Smash Efficiency Cockpit (Clubface Bullseye + Vernier Bar) */
.sf-radar-box {
  margin: 14px 0 18px;
  padding: 15px 16px 13px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0b241b 0%, #071912 100%);
  border: 1px solid #1f4d3b;
  color: #e6f2ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(7, 25, 18, 0.14);
}

.sf-radar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ec0b0;
}

.sf-radar-split {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.sf-face-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(158, 192, 176, 0.2);
  border-radius: 8px;
  padding: 8px 8px 6px;
  text-align: center;
}

.sf-face-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sf-face-shell {
  fill: #0d2b20;
  stroke: #568571;
  stroke-width: 1.8;
}

.sf-face-groove {
  stroke: rgba(158, 192, 176, 0.24);
  stroke-width: 1.1;
}

.sf-sweet-outer {
  fill: rgba(251, 191, 36, 0.1);
  stroke: rgba(251, 191, 36, 0.42);
  stroke-width: 1;
  stroke-dasharray: 3 2;
}

.sf-sweet-core {
  fill: rgba(110, 231, 183, 0.2);
  stroke: #6ee7b7;
  stroke-width: 1.4;
}

.sf-impact-halo {
  fill: rgba(255, 255, 255, 0.22);
}

.sf-impact-dot {
  fill: #ffffff;
  stroke: #fbbf24;
  stroke-width: 2.2;
}

.sf-impact-dot.is-sweet {
  stroke: #34d399;
}

.sf-impact-dot.is-leak {
  stroke: #f87171;
}

.sf-face-caption {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  color: #c6ded2;
  margin-top: 4px;
}

.sf-verdict-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.sf-verdict-pill.elite {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #0b4a2d;
}

.sf-verdict-pill.solid {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #784304;
}

.sf-verdict-pill.leak {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

html[data-theme="radar"] .sf-verdict-pill.elite {
  background: rgba(110, 231, 183, 0.18);
  border-color: rgba(110, 231, 183, 0.55);
  color: #a7f3d0;
}

html[data-theme="radar"] .sf-verdict-pill.solid {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fde68a;
}

html[data-theme="radar"] .sf-verdict-pill.leak {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.sf-gauge-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sf-zone-leak { fill: rgba(248, 113, 113, 0.22); }
.sf-zone-solid { fill: rgba(251, 191, 36, 0.24); }
.sf-zone-opt { fill: rgba(110, 231, 183, 0.34); }
.sf-zone-thin { fill: rgba(147, 197, 253, 0.22); }

.sf-tour-tick {
  stroke: #fde68a;
  stroke-width: 2;
  stroke-dasharray: 3 2;
}

.sf-needle {
  stroke: #ffffff;
  stroke-width: 3;
}

.sf-needle-cap {
  fill: #071912;
  stroke: #6ee7b7;
  stroke-width: 3;
}

.sf-svg-lbl {
  fill: rgba(209, 230, 220, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.sf-svg-tour {
  fill: #fde68a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
}

.sf-svg-you {
  fill: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

#sf-reset,
.sf-copy-btn {
  appearance: none;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

#sf-reset:hover,
.sf-copy-btn:hover {
  border-color: var(--turf);
}

.sf-copy-status {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--turf);
}

@media (max-width: 640px) {
  .sf-radar-split {
    grid-template-columns: 1fr;
  }
  .sf-face-panel {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .sf-club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sf-dual-dials {
    grid-template-columns: 1fr;
  }
}
