﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bad+Script&display=swap');

/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --green: #359447;
  --yellow: #fad02e;
  --dark-green: #276a36;
  --ink: #0f172a;
  --ink-soft: #334155;

  --bg: #f6faf6;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 14px 34px rgba(53, 148, 71, 0.14);

  --transition: 180ms ease;
  --container: 1100px;

  --wolf-dark: #171927;
  --wolf-dark-2: #22243a;

  --gfg-fullscreen-z: 20000;
  --gfg-modal-z: 25000;
}

/* =====================================================
   BASE
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(53, 148, 71, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(250, 208, 46, 0.08), transparent 24%),
    linear-gradient(180deg, #f5faf5 0%, #ffffff 40%, #f5faf5 100%);
  color: var(--text);
  line-height: 1.6;
}

body.no-scroll,
.gfg-no-scroll {
  overflow: hidden !important;
}

body.fullscreen-active {
  overflow: hidden !important;
  overscroll-behavior-y: none !important;
}

body.no-scroll {
  height: 100vh;
  touch-action: manipulation;
}

.container {
  max-width: var(--container);
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.92;
}

.hidden {
  display: none !important;
}

/* Neutralize native mobile button styles */
button,
input[type="button"],
input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
}

/* =====================================================
   NAVBAR
===================================================== */
.gfg-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: linear-gradient(180deg, rgba(22, 70, 34, 0.96), rgba(38, 109, 55, 0.94));
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.gfg-navbar .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1320px;
}

.gfg-navbar .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
  background: rgba(0, 0, 0, 0.12);
}

.gfg-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(250, 208, 46, 0.25);
}

.navbar-brand {
  font-family: 'Bad Script', cursive;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.2px;
  flex: 0 0 auto;
  margin-right: 0;
}

.navbar-brand span {
  color: var(--yellow);
}

.gfg-navbar .navbar-collapse {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  color: #fff !important;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  white-space: nowrap;
  line-height: 1.05;
  transition: background var(--transition), transform var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px);
}

.gfg-navbar .navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0.12rem;
}

.gfg-navbar .nav-item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.gfg-navbar .nav-item.d-flex.align-items-center {
  flex-direction: row;
  align-items: center !important;
  gap: 0.55rem;
  margin-left: 0.45rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.gfg-navbar #userEmail,
.gfg-navbar #logoutBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-right: 0 !important;
  padding: 0.46rem 0.92rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(8, 15, 28, 0.18);
}

.gfg-navbar #userEmail {
  background: linear-gradient(180deg, rgba(18, 31, 49, 0.96), rgba(24, 55, 103, 0.94)) !important;
  color: #ffffff !important;
  border-color: rgba(120, 177, 255, 0.24);
}

.gfg-navbar #logoutBtn {
  background: linear-gradient(180deg, #d63b49, #b82532) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14);
}

.gfg-navbar #userEmail:hover,
.gfg-navbar #logoutBtn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .gfg-navbar .container {
    gap: 0.7rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.38rem 0.5rem;
  }

  .gfg-navbar .navbar-brand {
    font-size: 1.58rem;
  }

  .gfg-navbar .nav-item.d-flex.align-items-center {
    gap: 0.4rem;
    margin-left: 0.28rem;
    padding-left: 0.45rem;
  }

  .gfg-navbar #userEmail,
  .gfg-navbar #logoutBtn {
    min-height: 35px;
    padding: 0.4rem 0.72rem;
    font-size: 0.76rem;
  }
}

@media (min-width: 1200px) and (max-width: 1360px) {
  .gfg-navbar .container {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.84rem;
    padding: 0.4rem 0.56rem;
  }

  .gfg-navbar .navbar-brand {
    font-size: 1.68rem;
  }

  .gfg-navbar #userEmail,
  .gfg-navbar #logoutBtn {
    font-size: 0.78rem;
    padding: 0.42rem 0.8rem;
  }
}

@media (max-width: 991.98px) {
  .gfg-navbar .container {
    gap: 0.4rem;
  }

  .gfg-navbar .navbar-collapse {
    flex-basis: 100%;
  }

  .gfg-navbar .navbar-collapse {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(24, 72, 34, 0.94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .gfg-navbar .navbar-nav {
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  .gfg-navbar .nav-item {
    width: 100%;
    justify-content: center;
  }

  .gfg-navbar .nav-link {
    justify-content: center;
    text-align: center;
  }

  .gfg-navbar .nav-item.d-flex.align-items-center {
    flex-direction: column;
    align-items: center !important;
    gap: 0.5rem;
    margin-top: 0.35rem;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .gfg-navbar #userEmail,
  .gfg-navbar #logoutBtn {
    margin-right: 0 !important;
  }
}

/* =====================================================
   SECTIONS / HERO
===================================================== */
.gfg-section {
  padding: 24px 0;
}


.gfg-hero-title {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 5.2vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.04;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.gfg-hero-sub {
  max-width: 62ch;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

.gfg-green {
  color: var(--green);
}

.gfg-yellow {
  color: var(--yellow);
}
/* =========================================
   LOCKER ROOM SCROLLABLE CARDS
========================================= */

#savedRoundsSection .card-body,
#savedGameDataSection .card-body {
  max-height: none;
  overflow: visible;
}

#playerDataSection .card-body,
#savedGameDataSection .card-body {
  min-height: 0;
}

#playerDataSection #playerDataShell,
#savedGameDataSection #savedGameDataShell {
  display: flex;
  flex-direction: column;
}

#playerDataSection #playerDataShell > .row,
#savedGameDataSection #savedGameDataShell > .row {
  width: 100%;
}

#playerDataSection #playerDataShell > .row:first-of-type {
  order: 2;
}

#playerDataSection #playerDataShell > .row.mt-1 {
  order: 1;
}

#savedGameDataSection #savedGameDataShell > .row:first-of-type {
  order: 2;
}

#savedGameDataSection #savedGameDataShell > .row.mt-1 {
  order: 1;
}

#playerDataSection #playerDataShell > .row:first-of-type > [class*="col-"],
#savedGameDataSection #savedGameDataShell > .row:first-of-type > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

#savedGameDataSection #savedGameDataShell > .row:first-of-type > [class*="col-"]:first-child {
  order: 2;
}

#savedGameDataSection #savedGameDataShell > .row:first-of-type > [class*="col-"]:last-child {
  order: 1;
}

#playerDataSection .card,
#savedGameDataSection .saved-game-panel-card {
  height: auto;
}

#savedGameDataSection .card-body {
  min-height: 0;
}

#savedGameDataSection .saved-game-panel-card {
  height: auto;
}

#playerDataShell:not(.is-locked),
#savedGameDataShell:not(.is-locked) {
  min-height: 0 !important;
}

#savedRoundsList .card {
  border-radius: 12px;
  margin-bottom: 12px;
}

#savedRoundsList .card-body {
  padding: 12px 14px;
}

#savedRoundsList h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

#savedRoundsList .text-muted.small {
  font-size: 0.75rem;
}

#savedRoundsList .fw-bold {
  font-size: 0.8rem;
}

#savedRoundsList .border {
  padding: 6px;
  border-radius: 8px;
}

#savedRoundsList .border .small {
  font-size: 0.65rem;
}

#savedRoundsList .border .fw-bold {
  font-size: 0.85rem;
}

.delete-round-btn {
  font-size: 0.7rem;
  padding: 2px 6px;
}

#playerDataSection .playerlog-equal-row > [class*="col-"],
#savedGameDataSection .playerlog-equal-row > [class*="col-"] {
  display: flex;
}

#playerDataSection .playerlog-equal-row > [class*="col-"] > section,
#savedGameDataSection .playerlog-equal-row > [class*="col-"] > .card {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
}

#playerDataSection .playerlog-equal-row > [class*="col-"] > section > .card,
#savedGameDataSection .playerlog-equal-row > [class*="col-"] > .card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}

.playerlog-panel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#savedRoundsLoggedIn,
#courseDataLoggedIn,
#gameTotalsLoggedIn,
#gamesPlayedLoggedIn {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#savedRoundsList,
#gamesPlayedList {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.playerlog-list-meta {
  flex: 0 0 auto;
}

.playerlog-scroll-pane {
  flex: 1 1 auto;
  min-height: 0;
}

.playerlog-scroll-pane.is-scrollable {
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.playerlog-scroll-pane.is-scrollable::-webkit-scrollbar {
  width: 10px;
}

.playerlog-scroll-pane.is-scrollable::-webkit-scrollbar-thumb {
  background: rgba(20, 32, 51, 0.22);
  border-radius: 999px;
}

@media (min-width: 992px) {
  #playerDataSection #playerDataShell > .row.playerlog-equal-row > [class*="col-"],
  #savedGameDataSection #savedGameDataShell > .row.playerlog-equal-row > [class*="col-"] {
    flex: 0 0 auto;
    max-width: 100%;
  }

  #savedGameDataSection #savedGameDataShell > .row.playerlog-equal-row > [class*="col-"]:first-child,
  #savedGameDataSection #savedGameDataShell > .row.playerlog-equal-row > [class*="col-"]:last-child {
    order: 0;
  }
}

.analytics-canvas-wrap,
.shot-pattern-canvas-wrap,
.fir-gir-trend-canvas-wrap {
  position: relative;
  min-height: 300px;
  padding: 14px 16px 10px;
  border: 1px solid rgba(53, 148, 71, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 247, 0.92));
}

#analyticsChart,
#gameAnalyticsChart,
#shotPatternChart {
  display: block;
  width: 100% !important;
  height: 275px !important;
}

#firGirTrendChart {
  display: block;
  width: 100% !important;
  height: 275px !important;
}

@media (max-width: 767px) {
  .analytics-canvas-wrap,
  .shot-pattern-canvas-wrap,
  .fir-gir-trend-canvas-wrap {
    min-height: 250px;
    padding: 12px 10px 8px;
  }

  #analyticsChart,
  #gameAnalyticsChart,
  #shotPatternChart {
    height: 225px !important;
  }

  #firGirTrendChart {
    height: 225px !important;
  }
}

/* =====================================================
   GAMES PAGE ICONS
===================================================== */
.wolf-hero-icon,
.a666-hero-icon,
.bbb-hero-icon {
  display: block;
  width: 300px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
  border-radius: 25%;
}

/* =====================================================
   FEATURE ICONS / CARDS
===================================================== */
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.feature-icons.mt-4 {
  margin-top: 8px !important;
}

.feature-icons .icon-box {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 248, 0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-icons .icon-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  opacity: 0.95;
}

.feature-icons .icon-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icons .icon-box p {
  flex: 1;
}

.feature-icons .icon-box .mt-3 {
  margin-top: auto !important;
}

section.container.gfg-section + section.container.gfg-section {
  padding-top: 10px;
}

.container.gfg-section > .gfg-section:first-child {
  padding-top: 0;
}

.container.gfg-section > .gfg-section:last-child {
  padding-bottom: 0;
}

.container.gfg-section .card.text-center .card-body {
  padding-top: 26px;
  padding-bottom: 24px;
}

.container.gfg-section .card.text-center .card-text {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.container.gfg-section .card.text-center .card-text:last-child {
  margin-bottom: 0;
}

.icon-box h5 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--ink);
  font-size: 1.18rem;
  letter-spacing: -0.3px;
}

/* =====================================================
   SOCIAL BUTTONS
===================================================== */
.gfg-social-btn {
  margin-top: 12px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
}

.gfg-social-btn:hover {
  color: #000;
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.gfg-x-btn {
  background: #000;
}

.gfg-tiktok-btn {
  background: linear-gradient(135deg, #c22e2e, #25F4EE);
}

.gfg-tiktok-btn:hover {
  background: #fff;
}

.gfg-youtube-btn {
  background: #FF0000;
}

/* =====================================================
   LOGO WRAPPER
===================================================== */
.gfg-logo-wrapper {
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 0 8px;
}

.gfg-logo-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

/* =====================================================
   GLOBAL CARD STYLES
===================================================== */
.card {
  margin-bottom: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 248, 0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.card-header {
  background: linear-gradient(180deg, rgba(22, 70, 34, 0.96), rgba(38, 109, 55, 0.94));
  color: #fff;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.95rem 1rem;
}

.card-body {
  padding: 20px;
}

/* =====================================================
   LOCKED FEATURE PREVIEW
===================================================== */
.gfg-locked-shell {
  position: relative;
  border-radius: 18px;
}

#playerDataSection .gfg-locked-shell,
#savedGameDataSection .gfg-locked-shell,
#handicapDataSection .gfg-locked-shell,
#clubDistanceSection .gfg-locked-shell {
  margin-top: 12px;
}

.gfg-locked-shell.is-locked > .row,
.gfg-locked-shell.is-locked > .card,
.gfg-locked-shell.is-locked > section,
.gfg-locked-shell.is-locked > div.card,
.gfg-locked-shell.is-locked #clubCalculatorSection,
.gfg-locked-shell.is-locked #clubDistanceTableCard,
.gfg-locked-shell.is-locked #handical,
.gfg-locked-shell.is-locked #handicapChartCard {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.gfg-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 12, 18, 0.45);
  border-radius: 18px;
  backdrop-filter: blur(2px);
}

.gfg-lock-overlay.d-none {
  display: none !important;
}

.gfg-lock-card {
  width: min(460px, 92%);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  background: rgba(23, 25, 39, 0.96);
  border: 2px solid rgba(53, 148, 71, 0.85);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.gfg-lock-icon {
  margin-bottom: 10px;
  font-size: 2rem;
}

.gfg-lock-card h4 {
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--yellow);
}

.gfg-lock-card p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
}

#playerDataSection,
#savedGameDataSection,
#handicapDataSection,
#clubDistanceSection {
  padding-top: 24px;
  padding-bottom: 24px;
}

#playerDataSection > .mb-3,
#savedGameDataSection > .mb-3,
#handicapDataSection > .mb-3,
#clubDistanceSection > .mb-3 {
  display: grid;
  gap: 6px;
  margin-bottom: 14px !important;
}

#playerDataSection .gfg-section-title,
#savedGameDataSection .gfg-section-title,
#handicapDataSection .gfg-section-title,
#clubDistanceSection .gfg-section-title {
  line-height: 1.06;
}

#playerDataSection .gfg-section-sub,
#savedGameDataSection .gfg-section-sub,
#handicapDataSection .gfg-section-sub,
#clubDistanceSection .gfg-section-sub {
  margin: 0;
  line-height: 1.45;
}

#playerDataSection .gfg-locked-shell,
#savedGameDataSection .gfg-locked-shell,
#handicapDataSection .gfg-locked-shell,
#clubDistanceSection .gfg-locked-shell {
  margin-top: 8px;
}

#playerDataShell,
#savedGameDataShell {
  min-height: 420px !important;
}

#playerDataSection + hr.my-5,
#savedGameDataSection + hr.my-5,
#handicapDataSection + hr.my-5,
#clubDistanceSection + hr.my-5 {
  margin-top: 1.75rem !important;
  margin-bottom: 1.75rem !important;
}

/* =====================================================
   WELCOME MESSAGE
===================================================== */
#welcomeMessage {
  margin-bottom: 8px;
  color: var(--yellow);
  font-weight: 900;
}

/* =====================================================
   PARALLAX
===================================================== */
.parallax-section,
.parallax-section2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  padding: 56px 16px;
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.parallax-section {
  background: url('photos/ball.jpg') center/cover no-repeat;
}

.parallax-section2 {
  background: url('photos/course.jpg') center/cover no-repeat;
}

.parallax-section::before,
.parallax-section2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
}

.parallax-content,
.parallax-content2 {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

@media (min-width: 992px) {
  .parallax-section,
  .parallax-section2 {
    min-height: 48vh;
    padding: 40px 16px;
  }

  .parallax-content,
  .parallax-content2 {
    width: min(680px, 92vw);
    max-height: min(72vh, 700px);
    padding: 18px 22px;
    overflow-y: auto;
  }

  .gfg-logo-wrapper {
    max-width: 360px;
    padding: 10px 0 4px;
  }
}

/* =====================================================
   MAP
===================================================== */
.gfg-map {
  width: 100%;
  height: 500px;
  margin: 14px 0 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   WEATHER
===================================================== */
.equal-height {
  display: flex;
  align-items: stretch;
}

.equal-height > [class*="col-"] {
  display: flex;
}

.equal-height .card {
  width: 100%;
}

.weather-embed-wrap {
  width: 100%;
  min-height: 655px;
}

.weather-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 655px;
  border: 0;
}

/* =====================================================
   BACK TO TOP
===================================================== */
#btn-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--wolf-dark), #111223);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

#btn-back-to-top p {
  margin: 0;
}

#btn-back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

body.fullscreen-active #btn-back-to-top,
body.modal-open #btn-back-to-top {
  display: none !important;
}

.gfg-session-switch-tab {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: calc(var(--gfg-fullscreen-z) + 2);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 12px 10px !important;
  border: 1px solid rgba(53, 148, 71, 0.55) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--wolf-dark), #111223) !important;
  color: var(--yellow) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2) !important;
}

.gfg-session-switch-tab:hover {
  background: linear-gradient(180deg, var(--wolf-dark-2), #14162a) !important;
  border-color: rgba(250, 208, 46, 0.55) !important;
}

.gfg-linked-swipe-preview {
  position: absolute;
  top: 50%;
  z-index: calc(var(--gfg-fullscreen-z) + 1);
  min-width: 72px;
  max-width: 92px;
  padding: 12px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 18, 35, 0.92), rgba(31, 41, 55, 0.92));
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gfg-linked-swipe-preview--left {
  left: 10px;
}

.gfg-linked-swipe-preview--right {
  right: 10px;
}

.gfg-linked-swipe-preview.is-visible {
  opacity: calc(0.24 + (var(--gfg-linked-swipe-progress, 0) * 0.76));
  transform: translateY(-50%) scale(calc(0.92 + (var(--gfg-linked-swipe-progress, 0) * 0.08)));
}

/* =====================================================
   FOOTERS
===================================================== */
footer {
  margin-top: 40px;
  padding: 1rem 0;
  background: var(--green);
  color: #fff;
  font-size: .95rem;
  text-align: center;
}

.gfg-footer {
  margin-top: 60px;
  padding: 40px 20px;
  background: linear-gradient(180deg, #0f172a, #0b1120);
  border-top: 4px solid var(--green);
}

.gfg-footer-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.gfg-footer-logo img {
  width: 120px;
  height: auto;
  opacity: 0.95;
  border-radius: 20%;
  transition: transform 0.3s ease;
}

.gfg-footer-logo img:hover {
  transform: scale(1.05);
}

.gfg-footer-copy {
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.gfg-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  order: -1;
  width: 100%;
  gap: 10px 12px;
  margin: 0 0 16px;
}

.gfg-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.gfg-footer-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(250, 208, 46, 0.42);
  transform: translateY(-1px);
  opacity: 1;
}

.gfg-footer-links--legacy {
  margin: 0 0 16px;
}

.gfg-footer-links--legacy a {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.gfg-footer-links--legacy a:hover {
  background: #ffffff;
  border-color: rgba(53, 148, 71, 0.3);
}

.gfg-footer-ownership {
  max-width: 700px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.gfg-footer-ownership strong {
  color: var(--yellow);
}

/* =====================================================
   GFG BUTTON SYSTEM
===================================================== */
.gfg-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(53, 148, 71, 0.42) !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #132033, #0f172a) !important;
  color: #fff7cf !important;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: .2px;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.20);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  -webkit-appearance: none !important;
  appearance: none !important;
}

.gfg-pill-btn:hover {
  background: linear-gradient(180deg, #1a2b43, #132033);
  transform: translateY(-2px);
  border-color: rgba(250, 208, 46, 0.55);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
}

.gfg-pill-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gfg-pill-btn.gfg-pill-btn--ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px);
}

.gfg-pill-btn.gfg-pill-btn--ghost:hover {
  border-color: rgba(250, 208, 46, 0.55) !important;
}

.gfg-pill-btn.btn,
.gfg-pill-btn.btn-primary,
.gfg-pill-btn.btn-secondary,
.gfg-pill-btn.btn-danger,
.gfg-pill-btn.btn-warning,
.gfg-pill-btn.btn-dark {
  min-height: 42px;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

#analyticsSection .gfg-pill-btn,
#gameAnalyticsSection .gfg-pill-btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.9rem;
  gap: 0.4rem;
}

#gameAnalyticsSection {
  display: block;
  width: 100%;
}

#gameAnalyticsSection .card {
  width: 100%;
}

.game-session-clear-btn {
  background: rgba(19, 32, 51, 0.92) !important;
}

.analytics-tab-strip {
  display: flex;
  align-items: center;
}

.analytics-tab-strip .gfg-pill-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.btn-primary {
  border: none;
  border-radius: var(--radius-md);
  background: var(--green);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--dark-green);
}

#homelist {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.parallax-content2 > #homelist {
  display: none;
}

.gfg-home-links-section {
  padding-top: 10px;
  padding-bottom: 18px;
}

.gfg-home-links-shell {
  padding: 24px 26px 28px;
  border: 1px solid rgba(53, 148, 71, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(250, 208, 46, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(53, 148, 71, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 247, 0.96));
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.gfg-home-links-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gfg-home-links-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.gfg-home-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.gfg-home-links-grid .gfg-pill-btn {
  min-width: 200px;
  flex: 0 1 220px;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(53, 148, 71, 0.50);
  box-shadow: 0 0 0 0.2rem rgba(53, 148, 71, 0.14);
  background: #fff;
}

.gfg-section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.gfg-section-sub {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* =====================================================
   GAME PAGES (WOLF / 666 / BBB)
===================================================== */
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) .game-card {
  transition: none !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #fullscreenBtn,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #wolfRulesBtn,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #sixesRulesBtn,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #bbbRulesBtn,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #holeNavCard button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .55rem !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(53, 148, 71, 0.55) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--wolf-dark), #111223) !important;
  color: var(--yellow) !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
  cursor: pointer !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition) !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #fullscreenBtn:hover,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #wolfRulesBtn:hover,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #sixesRulesBtn:hover,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #bbbRulesBtn:hover,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #holeNavCard button:hover {
  background: linear-gradient(180deg, var(--wolf-dark-2), #14162a) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(250, 208, 46, 0.55) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26) !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #holeNavCard button {
  padding: 10px 14px !important;
  font-size: .92rem !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #holeNavCard .d-flex {
  gap: 12px !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #holeNavCard button,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #prevHoleBtn,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #nextHoleBtn {
  width: 110px !important;
  min-width: 110px !important;
  min-height: 56px !important;
  flex: 0 0 110px !important;
  white-space: nowrap !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #holeNavCard .nav-arrow {
  font-size: 1.08rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
 }

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) .game-card .form-control,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) .game-card .form-select {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) .game-card .form-control:focus,
:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) .game-card .form-select:focus {
  border-color: rgba(53, 148, 71, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(53, 148, 71, 0.18);
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) .mode-group .btn.selected {
  color: #fff !important;
}

body.fullscreen-active .gfg-navbar,
body.fullscreen-active #foot {
  display: none !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--gfg-fullscreen-z) !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 1rem !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #ffffff 0%, #f6faf6 100%) !important;
  border-radius: 0 !important;
  touch-action: pan-y !important;
  overscroll-behavior: none !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen #fullscreenContent {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
  position: relative !important;
  padding-bottom: 10px !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
  will-change: transform !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen.gfg-linked-swipe-active #fullscreenContent {
  transform: translate3d(var(--gfg-linked-swipe-shift, 0px), 0, 0) !important;
  box-shadow: 0 20px 40px rgba(17, 18, 35, 0.18) !important;
}

:is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen #scoreboardCard {
  position: static !important;
  z-index: auto !important;
  margin-top: 0 !important;
  bottom: auto !important;
}

/* =====================================================
   GAME RULES MODALS
===================================================== */
#wolfRulesModal,
#sixesRulesModal,
#bbbRulesModal {
  position: fixed;
  inset: 0;
  z-index: var(--gfg-modal-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(23, 25, 39, 0.85);
  backdrop-filter: blur(6px);
}

#wolfRulesModal.hidden,
#sixesRulesModal.hidden,
#bbbRulesModal.hidden {
  display: none !important;
}

#wolfRulesModal .modal-content,
#sixesRulesModal .modal-content,
#bbbRulesModal .modal-content {
  width: min(600px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: #171927;
  color: #fff;
  border: 2px solid var(--green);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

#wolfRulesModal h3,
#wolfRulesModal h5,
#sixesRulesModal h3,
#sixesRulesModal h5,
#bbbRulesModal h3,
#bbbRulesModal h5 {
  color: var(--yellow);
  font-weight: 800;
}

#wolfRulesModal ul,
#sixesRulesModal ul,
#bbbRulesModal ul {
  padding-left: 1.2rem;
}

#wolfRulesModal li,
#sixesRulesModal li,
#bbbRulesModal li {
  margin-bottom: 6px;
}

#wolfRulesModal .btn-secondary,
#sixesRulesModal .btn-secondary,
#bbbRulesModal .btn-secondary {
  border: none;
  border-radius: 14px;
  background: #2a2d4a;
  font-weight: 800;
}

#wolfRulesModal .btn-secondary:hover,
#sixesRulesModal .btn-secondary:hover,
#bbbRulesModal .btn-secondary:hover {
  background: var(--green);
}

/* =====================================================
   SAVED GAMES MODAL
===================================================== */
.gfg-modal {
  position: fixed;
  inset: 0;
  z-index: 26000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  margin: 0;
  padding: 16px;
  background: rgba(23, 25, 39, 0.82);
  backdrop-filter: blur(8px);
}

.gfg-modal__panel {
  display: flex;
  flex-direction: column;
  width: min(760px, 96vw);
  max-width: 760px;
  max-height: min(85vh, 85dvh);
  margin: 0;
  overflow: hidden;
  background: #171927;
  color: #fff;
  border: 2px solid rgba(53, 148, 71, 0.85);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}

.gfg-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.gfg-modal__meta,
.gfg-muted,
.gfg-saved-item__meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: .9rem;
}

.gfg-modal__meta {
  margin-top: 2px;
}

.gfg-modal__close {
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.gfg-modal__body {
  padding: 14px 16px;
  overflow: auto;
}

.gfg-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.gfg-saved-list {
  display: grid;
  gap: 12px;
}

.gfg-saved-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.gfg-saved-item__title {
  color: var(--yellow);
  font-weight: 900;
}

.gfg-saved-details {
  margin-top: 10px;
}

.gfg-results .gfg-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gfg-results .gfg-kv:first-child {
  border-top: 0;
}

.gfg-results .k {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.gfg-results .v {
  color: rgba(255, 255, 255, 0.92);
}

.gfg-pre {
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
}

.gfg-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.gfg-results-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.gfg-results-actions .gfg-pill-btn {
  width: min(440px, 100%);
  min-height: 56px;
  font-size: 1rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (min-width: 768px) {
  .gfg-footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .gfg-footer-content {
    text-align: right;
  }

  .gfg-footer-links {
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .parallax-section,
  .parallax-section2 {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  .feature-icons {
    gap: 14px;
  }

  .feature-icons.mt-4 {
    margin-top: 6px !important;
  }

  .feature-icons .icon-box {
    padding: 18px;
  }

  .gfg-home-links-shell {
    padding: 20px 18px 22px;
    border-radius: 24px;
  }

  .gfg-home-links-title {
    margin-bottom: 14px;
  }

  .gfg-home-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gfg-home-links-grid .gfg-pill-btn {
    min-width: 0;
    width: 100%;
  }

  .gfg-footer-links {
    gap: 8px;
  }

  .gfg-footer-links a {
    width: 100%;
  }

  .gfg-map {
    height: 380px;
  }
}

@media (max-width: 576px) {
  .gfg-lock-card {
    padding: 22px 18px;
  }

  .gfg-section {
    padding: 20px 0;
  }

  #playerDataSection,
  #savedGameDataSection,
  #handicapDataSection,
  #clubDistanceSection {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  #playerDataSection > .mb-3,
  #savedGameDataSection > .mb-3,
  #handicapDataSection > .mb-3,
  #clubDistanceSection > .mb-3 {
    padding-inline: 14px;
    gap: 5px;
    margin-bottom: 12px !important;
  }

  #playerDataSection hr.my-5,
  #savedGameDataSection hr.my-5,
  hr.my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  #playerDataShell,
  #savedGameDataShell {
    min-height: 320px !important;
  }

  .gfg-locked-shell.is-locked > .row,
  .gfg-locked-shell.is-locked > .card,
  .gfg-locked-shell.is-locked > section,
  .gfg-locked-shell.is-locked > div.card,
  .gfg-locked-shell.is-locked #clubCalculatorSection,
  .gfg-locked-shell.is-locked #clubDistanceTableCard,
  .gfg-locked-shell.is-locked #handical,
  .gfg-locked-shell.is-locked #handicapChartCard {
    filter: blur(4px);
  }
}

@media (max-width: 480px) {
  body:not(.fullscreen-active) {
    font-size: 0.9rem;
  }

  #playerDataSection > .mb-3,
  #savedGameDataSection > .mb-3,
  #handicapDataSection > .mb-3,
  #clubDistanceSection > .mb-3 {
    padding-inline: 16px;
    gap: 4px;
    margin-bottom: 10px !important;
  }

  .gfg-section-title,
  .gfg-section-sub {
    padding-left: 0;
    padding-right: 0;
  }

  body:not(.fullscreen-active) button,
  body:not(.fullscreen-active) input,
  body:not(.fullscreen-active) select,
  body:not(.fullscreen-active) textarea,
  body:not(.fullscreen-active) .btn,
  body:not(.fullscreen-active) .gfg-pill-btn,
  body:not(.fullscreen-active) .form-control,
  body:not(.fullscreen-active) .form-select,
  body:not(.fullscreen-active) .card,
  body:not(.fullscreen-active) .card-body,
  body:not(.fullscreen-active) .card-header,
  body:not(.fullscreen-active) p,
  body:not(.fullscreen-active) li,
  body:not(.fullscreen-active) label,
  body:not(.fullscreen-active) span,
  body:not(.fullscreen-active) a,
  body:not(.fullscreen-active) h1,
  body:not(.fullscreen-active) h2,
  body:not(.fullscreen-active) h3,
  body:not(.fullscreen-active) h4,
  body:not(.fullscreen-active) h5,
  body:not(.fullscreen-active) h6 {
    font-size: inherit;
  }

  body:not(.fullscreen-active) .gfg-navbar .navbar-brand {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .gfg-home-links-grid {
    grid-template-columns: 1fr;
  }

  #analyticsSection .gfg-pill-btn,
  #gameAnalyticsSection .gfg-pill-btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .analytics-tab-strip {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 2px 6px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .analytics-tab-strip::-webkit-scrollbar {
    display: none;
  }

  :is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen {
    padding: 0.75rem !important;
  }

  :is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen h2,
  :is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen h3,
  :is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen h4 {
    font-size: 0.9rem !important;
  }

  :is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen button,
  :is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen .gfg-pill-btn {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }

  :is(.wolf-page, .gfg-666-page, .gfg-bbb-page) #selectionWrapper.fullscreen .card {
    padding: 0.75rem !important;
  }

  #wolfRulesModal .modal-content,
  #sixesRulesModal .modal-content,
  #bbbRulesModal .modal-content {
    padding: 1rem;
    border-radius: 16px;
  }

  .gfg-modal__panel {
    max-height: 88vh;
  }

  .gfg-results .gfg-kv {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Terms Guard Modal
========================================== */
.tos-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 99999;
}

.tos-modal {
  width: min(680px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1f2937;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.tos-header {
  flex: 0 0 auto;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tos-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #276a36;
}

.tos-header p {
  margin: 0;
  color: #6b7280;
}

.tos-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  line-height: 1.65;
}

.tos-body a {
  font-weight: 600;
  color: #276a36;
}

.tos-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  flex-wrap: wrap;
}

.tos-message {
  min-height: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #dc3545;
}

body.tos-lock {
  overflow: hidden;
}

.tos-scroll-box {
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #f8fbf8;
  font-size: 0.95rem;
}

.tos-scroll-box h3 {
  margin-top: 0;
  color: #276a36;
  font-size: 1rem;
}

.tos-scroll-box p {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .tos-overlay {
    padding: 10px;
    align-items: center;
  }

  .tos-modal {
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .tos-header {
    padding: 16px 16px 10px;
  }

  .tos-body {
    padding: 16px;
  }

  .tos-footer {
    padding: 14px 16px 16px;
    flex-direction: column;
  }

  .tos-footer .btn {
    width: 100%;
  }

  .tos-scroll-box {
    max-height: 240px;
  }
}

.signup-legal-box {
  margin-top: 14px;
}

.signup-legal-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #276a36;
  margin-bottom: 10px;
}

.signup-legal-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #f8fbf8;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Clubhouse friends */
.clubhouse-friends-card .card-body {
  padding: clamp(16px, 2.5vw, 26px);
}

.clubhouse-friends-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: center;
  padding: clamp(14px, 2.6vw, 20px);
  border: 1px solid rgba(53, 148, 71, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(250, 208, 46, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(53, 148, 71, 0.11), rgba(255, 255, 255, 0.92));
}

.clubhouse-friends-kicker {
  color: #359447;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clubhouse-friends-title {
  color: #142033;
  font-weight: 900;
}

.clubhouse-friends-copy,
.clubhouse-friend-meta,
.clubhouse-friends-status {
  color: #5d6777;
}

.clubhouse-friends-search {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(20, 32, 51, 0.12);
}

.clubhouse-friends-search-row {
  display: flex;
  gap: 10px;
}

.clubhouse-friends-search-row .form-control {
  min-height: 48px;
  border-radius: 16px;
}

.clubhouse-friends-status {
  min-height: 24px;
  margin-top: 10px;
  font-weight: 800;
}

.clubhouse-friends-status.is-success {
  color: #24843a;
}

.clubhouse-friends-status.is-error {
  color: #b42318;
}

.clubhouse-friends-status.is-info {
  color: #8a6a00;
}

.clubhouse-friends-panel {
  height: 100%;
  padding: 14px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(20, 32, 51, 0.09);
}

.clubhouse-friends-panel-title {
  margin-bottom: 12px;
  color: #142033;
  font-weight: 900;
}

.clubhouse-friends-panel-title--badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.clubhouse-friends-panel-title--badge .gfg-friend-request-badge {
  position: static;
  flex: 0 0 auto;
}

.clubhouse-friends-list {
  display: grid;
  gap: 10px;
}

.clubhouse-friend-item,
.clubhouse-friends-empty {
  padding: 12px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 16px;
  background: #fff;
}

.clubhouse-friend-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
  align-items: stretch;
}

.clubhouse-friend-main,
.clubhouse-friend-actions-wrap {
  width: 100%;
  min-width: 0;
}

.clubhouse-friend-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.clubhouse-friend-person > div {
  min-width: 0;
}

.clubhouse-friend-name {
  color: #142033;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.clubhouse-friend-meta {
  overflow-wrap: anywhere;
}

.clubhouse-friends-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  justify-content: stretch;
}

.clubhouse-friends-card .gfg-pill-btn--sm {
  min-width: 0;
  min-height: 34px;
  padding: 5px 10px;
  font-size: 0.74rem;
  line-height: 1;
}

.clubhouse-friends-actions .gfg-pill-btn {
  width: 100%;
}

.clubhouse-friends-card .clubhouse-friends-block-btn {
  grid-column: auto;
}

@media (min-width: 769px) {
  .clubhouse-friends-actions {
    align-content: start;
  }
}

.clubhouse-friends-card .clubhouse-friends-decline-btn,
.clubhouse-friends-card .clubhouse-friends-remove-btn,
.clubhouse-friends-card .clubhouse-friends-unblock-btn {
  background: #ffffff;
  color: #142033;
  border: 1px solid rgba(20, 32, 51, 0.18);
  box-shadow: none;
}

.clubhouse-friends-card .clubhouse-friends-decline-btn:hover,
.clubhouse-friends-card .clubhouse-friends-remove-btn:hover,
.clubhouse-friends-card .clubhouse-friends-unblock-btn:hover {
  background: #fff5f2;
  color: #8f1d12;
  border-color: rgba(180, 35, 24, 0.28);
}

.clubhouse-friends-card .clubhouse-friends-block-btn {
  background: #2a1111;
  color: #ffffff;
  border: 1px solid rgba(180, 35, 24, 0.45);
  box-shadow: none;
}

.clubhouse-friends-card .clubhouse-friends-block-btn:hover {
  background: #7a1d17;
  color: #ffffff;
}

.clubhouse-friends-card .clubhouse-friends-unblock-btn:hover {
  background: #f0fff4;
  color: #24843a;
  border-color: rgba(53, 148, 71, 0.32);
}

.gfg-navbar .navbar-toggler,
.gfg-navbar .nav-link,
.clubhouse-friends-card .card-header {
  position: relative;
}

.gfg-friend-request-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #e11d2e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 18px rgba(225, 29, 46, 0.38);
}

.gfg-navbar .nav-link .gfg-friend-request-badge {
  top: -4px;
  right: -12px;
}

#myAccountNavItem .nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

#myAccountNavItem .gfg-account-nav-label {
  position: relative;
  display: inline-block;
  padding-right: 18px;
  line-height: 1.1;
  white-space: nowrap;
}

#gfgAccountNavFriendBadge {
  position: absolute;
  top: -6px;
  right: -12px;
  margin-left: 0;
  flex: 0 0 22px;
  box-shadow: 0 8px 18px rgba(225, 29, 46, 0.34);
}

/* Account/profile avatars */
.gfg-profile-avatar,
.gfg-account-avatar {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 4px solid #359447;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(250, 208, 46, 0.45), transparent 34%),
    linear-gradient(135deg, #f7fff8, #eaf7ed);
  color: #142033;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(53, 148, 71, 0.24);
}

.gfg-profile-avatar img,
.gfg-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gfg-profile-avatar--sm {
  width: 48px;
  height: 48px;
  border-width: 3px;
  font-size: 1.05rem;
}

.gfg-account-card .card-body {
  padding: clamp(20px, 4vw, 36px);
}

.gfg-account-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: stretch;
}

.gfg-account-preview,
.gfg-account-form,
.gfg-account-empty {
  border: 1px solid rgba(53, 148, 71, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(250, 208, 46, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(20, 32, 51, 0.1);
}

.gfg-account-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
}

.gfg-account-form,
.gfg-account-empty {
  padding: clamp(18px, 4vw, 28px);
}

.gfg-account-avatar {
  width: clamp(142px, 24vw, 190px);
  height: clamp(142px, 24vw, 190px);
  border-width: 6px;
  font-size: clamp(3rem, 10vw, 5rem);
}

.gfg-account-kicker {
  color: #359447;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gfg-account-title {
  color: #142033;
  font-weight: 950;
}

.gfg-account-copy,
.gfg-account-email,
.gfg-account-status {
  color: #5d6777;
}

.gfg-account-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 16px;
  background: #f8fbf8;
}

.gfg-account-toggle .form-check-input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.gfg-account-toggle .form-check-label {
  color: #142033;
  font-weight: 800;
}

.gfg-account-email {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 16px;
  background: #f8fbf8;
  font-weight: 800;
}

.gfg-account-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 850;
}

.gfg-account-status.is-success {
  color: #24843a;
}

.gfg-account-status.is-error {
  color: #b42318;
}

.gfg-account-status.is-info {
  color: #8a6a00;
}

.game-friend-suggestion-note {
  min-height: 20px;
  margin: 6px 0 0;
  color: #5d6777;
  font-size: 0.88rem;
  font-weight: 700;
}

.game-friend-suggestion-note.is-success {
  color: #24843a;
}

.game-friend-suggestion-note.is-error {
  color: #b42318;
}

.game-friend-suggestion-note.is-info {
  color: #8a6a00;
}

.gfg-player-suggestion-menu {
  position: absolute;
  z-index: 1200;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(20, 32, 51, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(20, 32, 51, 0.16);
  backdrop-filter: blur(10px);
}

.gfg-player-suggestion-menu.hidden {
  display: none;
}

.gfg-player-suggestion-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #142033;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.gfg-player-suggestion-option:hover,
.gfg-player-suggestion-option.is-active {
  background: linear-gradient(135deg, rgba(53, 148, 71, 0.16), rgba(250, 208, 46, 0.22));
  color: #0f3f1c;
  transform: translateY(-1px);
}

.game-golfer-results-summary {
  margin-bottom: 14px;
  color: #5d6777;
}

.gfg-leaderboard-card .card-body {
  padding: clamp(18px, 3vw, 26px);
}

.gfg-leaderboard-copy,
.gfg-leaderboard-status {
  color: #5d6777;
}

.gfg-leaderboard-status {
  min-height: 24px;
  margin-bottom: 14px;
  font-weight: 800;
}

.gfg-leaderboard-list {
  display: grid;
  gap: 12px;
}

.gfg-leaderboard-empty {
  padding: 16px;
  border: 1px dashed rgba(20, 32, 51, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #5d6777;
  text-align: center;
}

.gfg-leaderboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 247, 0.95));
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.08);
}

.gfg-leaderboard-rank {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #132033;
  color: #fad02e;
  font-weight: 900;
}

.gfg-leaderboard-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gfg-leaderboard-avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 3px solid #359447;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(53, 148, 71, 0.18), rgba(250, 208, 46, 0.18));
  color: #142033;
  font-weight: 900;
}

.gfg-leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gfg-leaderboard-name {
  color: #142033;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.gfg-leaderboard-meta {
  color: #5d6777;
  font-size: 0.84rem;
  font-weight: 700;
}

.gfg-leaderboard-score {
  text-align: right;
}

.gfg-leaderboard-score-value {
  color: #142033;
  font-size: 1.25rem;
  font-weight: 900;
}

.gfg-leaderboard-score-label {
  color: #5d6777;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-golfer-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.game-golfer-results-card {
  padding: 14px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 247, 0.95));
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.08);
}

.game-golfer-results-name {
  color: #142033;
  font-size: 1.02rem;
  font-weight: 900;
}

.game-golfer-results-formats {
  margin-top: 2px;
  color: #5d6777;
  font-size: 0.82rem;
  font-weight: 700;
}

.game-golfer-results-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.game-golfer-results-metric {
  padding: 10px 8px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

@media (max-width: 1199px) {
  .clubhouse-friends-hero {
    grid-template-columns: 1fr;
  }

  .clubhouse-friends-panel {
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .card-body {
    padding: 18px;
  }

  #leaderboardSection > .row,
  #playerDataSection > .row,
  #playerDataShell > .row,
  #savedGameDataSection > .row,
  #savedGameDataShell > .row,
  #handicapAreaShell > .row,
  #clubDistanceSection > .row {
    --bs-gutter-x: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  #leaderboardSection > .row > [class*="col-"],
  #playerDataSection > .row > [class*="col-"],
  #playerDataShell > .row > [class*="col-"],
  #savedGameDataSection > .row > [class*="col-"],
  #savedGameDataShell > .row > [class*="col-"],
  #handicapAreaShell > .row > [class*="col-"],
  #clubDistanceSection > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .clubhouse-friends-hero {
    grid-template-columns: 1fr;
  }

  .clubhouse-friends-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .clubhouse-friend-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .clubhouse-friends-search-row .gfg-pill-btn,
  .clubhouse-friends-actions .gfg-pill-btn {
    width: 100%;
  }

  .clubhouse-friends-card .card-body {
    padding: 16px;
  }

  .clubhouse-friends-hero {
    padding: 14px;
    border-radius: 20px;
  }

  .clubhouse-friends-search {
    padding: 12px;
  }

  .clubhouse-friends-panel {
    padding: 13px;
  }

  .gfg-account-shell {
    grid-template-columns: 1fr;
  }

  .gfg-leaderboard-row {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .gfg-leaderboard-score {
    text-align: left;
  }

  .game-golfer-results-metrics {
    grid-template-columns: 1fr;
  }
}

