/* EDIT v7.3.15 — UNIFIED SCORECARD HANDWRITING + GAME BAR SCALE: scorecard hole entries and totals now use the same non-bold Kalam treatment; Challenge game-bar scoring numerals reduced 20% from v7.3.14. */
/* EDIT v7.3.14 — MAXIMUM GAME-BAR READABILITY: compact bottom strip reduced; all second-line numerals enlarged ~50%; running totals use true half-em spacing around slash; expanded Challenge bar remains green with substantially larger handwritten scoring values. */
/* EDIT v7.3.13 — SCORECARD HANDWRITING + PHONE GAME BAR READABILITY: scoring values use one Kalam handwritten-card treatment; compact/expanded Challenge numbers are substantially taller; expanded Challenge bar is green. */

  :root {
    /* ── Original palette (unchanged) ── */
    --green-deep: #1a2d4a; --green-mid: #243d5c; --green-light: #4a6d9e;
    --gold: #c94d12; --gold-light: #e05820;
    --cream: #f5f0e8; --cream-dark: #e8e0d0;
    --charcoal: #1c1c1e; --sage: #8a9aab; --white: #ffffff;
    --red-soft: #c0392b;
    --teal: #067a95; --teal-light: #e0f4fb;
    --radius: 16px; --radius-sm: 10px;

    /* ── v3.0.0 DESIGN SYSTEM TOKENS ── */

    /* Type scale — standardized from audit */
    --ds-text-xs:   11px;   /* labels, badges, metadata, allcaps */
    --ds-text-sm:   13px;   /* secondary body, sub-labels, form labels */
    --ds-text-body: 15px;   /* primary body copy, list items */
    --ds-text-md:   16px;   /* buttons, chip labels, nav text */
    --ds-text-lg:   18px;   /* section titles (Playfair) */
    --ds-text-xl:   20px;   /* card titles, header titles */
    --ds-text-2xl:  22px;   /* screen titles, popup titles */

    /* Font weights — standardized from audit */
    --ds-fw-regular: 400;
    --ds-fw-medium:  500;
    --ds-fw-semi:    600;
    --ds-fw-bold:    700;
    --ds-fw-black:   800;
    --ds-fw-heavy:   900;

    /* Spacing — standardized from audit */
    --ds-gap-xs:  6px;
    --ds-gap-sm:  10px;
    --ds-gap-md:  14px;
    --ds-gap-lg:  20px;
    --ds-gap-xl:  28px;

    /* Card / panel tokens */
    /* v5.6.5 — Premium iOS-panel card standard: subtle vertical gradient fill (was flat white),
       larger corner radius, thin champagne border (was neutral black-tint), and a stronger-but-
       softer-blurred shadow (bigger spread/blur, lower opacity, reads as "floating" not "boxed"). */
    --ds-card-bg:          linear-gradient(180deg, #ffffff 0%, #faf7f1 100%);
    --ds-card-bg-dark:     #0f1e30;
    --ds-card-bg-mid:      #0d1b2e;
    --ds-card-radius:      18px;               /* was 14px */
    --ds-card-radius-lg:   20px;                /* was var(--radius)/16px */
    --ds-card-border:      rgba(13,27,46,0.14);
    --ds-card-border-light: rgba(196,167,106,0.32); /* thin champagne border, was rgba(0,0,0,0.07) */
    --ds-card-shadow:      0 10px 28px rgba(15,30,48,0.14), 0 2px 8px rgba(15,30,48,0.06); /* was 0 2px 10px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05) */
    --ds-card-shadow-lg:   0 14px 36px rgba(15,30,48,0.16), 0 3px 10px rgba(15,30,48,0.07); /* was 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06) */
    --ds-card-pad:         18px 20px;          /* was 16px 18px */
    --ds-card-pad-sm:      14px 16px;          /* was 12px 14px */
    --ds-card-pad-lg:      22px 22px;          /* was 20px 20px */
    --ds-card-gap:         14px;               /* v5.6.5 — new: standard space between stacked cards, was 8px */

    /* Functional text colors — standardized from audit */
    --ds-text-primary:   var(--charcoal);    /* #1c1c1e — primary body */
    --ds-text-secondary: #555e6a;            /* mid-grey for secondary info */
    --ds-text-muted:     var(--sage);        /* #8a9aab — metadata, hints */
    --ds-text-on-dark:   #ffffff;
    --ds-text-on-dark-sub: rgba(255,255,255,0.75);
    --ds-text-action:    var(--gold);        /* #c94d12 — primary action/accent */
    --ds-text-link:      var(--green-deep);  /* #1a2d4a — nav label, links */
    --ds-text-positive:  #0f5a24;
    --ds-text-caution:   #7a4a00;
    --ds-text-danger:    #8a1f1f;

    /* Background colors — standardized from audit */
    --ds-bg-app:       var(--cream);         /* #f5f0e8 — main screen bg */
    --ds-bg-surface:   var(--white);         /* pure white cards/inputs */
    --ds-bg-raised:    #f7f7f7;              /* slightly raised inputs */
    --ds-bg-navy:      #0f1e30;              /* dark overlays, action bars */
    --ds-bg-navy-deep: #0d1b2e;             /* deepest dark panels */
    --ds-bg-tint-gold: rgba(201,77,18,0.07); /* light gold tint bg */
    --ds-bg-tint-green:rgba(22,107,46,0.08); /* light green tint bg */

    /* Border radius — standardized */
    --ds-radius-pill: 100px;
    --ds-radius-lg:   var(--radius);         /* 16px */
    --ds-radius-md:   var(--ds-card-radius); /* 14px */
    --ds-radius-sm:   var(--radius-sm);      /* 10px */
    --ds-radius-xs:   8px;
  }

  /* ═══════════════════════════════════════════════════════════════
     v3.0.0 DESIGN SYSTEM — STANDARDIZATION OVERRIDES
     Scope: typography · colors · padding · card styling · backgrounds
     No layout moves. No button repositions. No hole page changes.
  ═══════════════════════════════════════════════════════════════ */

  /* ── 1. SECTION TITLES ─────────────────────────────────────── */
  /* Standardize all section-title to consistent size/weight/color */
  .section-title {
    font-family: 'Playfair Display', serif !important;
    font-size: var(--ds-text-lg) !important;    /* 18px */
    font-weight: var(--ds-fw-bold) !important;  /* 700 */
    color: var(--green-deep) !important;
    margin-bottom: 14px;
  }

  /* ── 2. SCREEN BODY PADDING ─────────────────────────────────── */
  /* Standardize screen-body padding across all light screens */
  .screen-body {
    padding: var(--ds-gap-lg);  /* 20px — matches existing spec */
  }

  /* ── 3. PRIMARY CARD STANDARD ────────────────────────────────── */
  /* Used by course-item, game-card (light screens) */
  .course-item {
    background: var(--ds-card-bg) !important;
    border-radius: var(--ds-radius-md) !important;
    border: 1.5px solid var(--ds-card-border-light) !important;
    box-shadow: var(--ds-card-shadow) !important;
    padding: var(--ds-card-pad) !important;      /* v5.6.5 — was 14px 16px */
    margin-bottom: var(--ds-card-gap) !important; /* v5.6.5 — was 8px */
  }
  .course-item-name {
    font-size: var(--ds-text-body) !important;   /* 15px */
    font-weight: var(--ds-fw-bold) !important;   /* 700 */
    color: var(--ds-text-primary) !important;
  }
  .course-item-info {
    font-size: var(--ds-text-sm) !important;     /* 13px */
    color: var(--ds-text-muted) !important;
    margin-top: 2px;
  }

  /* ── 4. COMMUNITY HUB CARDS ─────────────────────────────────── */
  .comm-hub-card {
    background: var(--ds-card-bg) !important;
    border-radius: var(--ds-radius-lg) !important;   /* v5.6.5 — 20px, was 16px */
    border: 1.5px solid var(--ds-card-border-light) !important;
    box-shadow: var(--ds-card-shadow) !important;
    padding: var(--ds-card-pad-lg) !important;       /* v5.6.5 — was 16px 18px */
    margin-bottom: var(--ds-card-gap) !important;    /* v5.6.5 — was 10px */
  }
  .comm-hub-card-title {
    font-size: var(--ds-text-md) !important;         /* 16px */
    font-weight: var(--ds-fw-black) !important;      /* 800 */
    color: var(--ds-text-primary) !important;
    letter-spacing: 0.01em !important;
  }
  .comm-hub-card-desc {
    font-size: var(--ds-text-xs) !important;         /* 11px */
    font-weight: var(--ds-fw-medium) !important;     /* 500 */
    color: var(--ds-text-muted) !important;
  }

  /* ── 5. CHALLENGE CARDS (challv2) ────────────────────────────── */
  .challv2-card {
    background: var(--ds-card-bg) !important;
    border-radius: var(--ds-radius-md) !important;   /* v5.6.5 — 18px, was 14px */
    border: 1.5px solid var(--ds-card-border) !important;
    box-shadow: var(--ds-card-shadow) !important;
    margin-bottom: var(--ds-card-gap) !important;    /* v5.6.5 — was 10px */
  }
  .challv2-card-main {
    padding: 16px 18px 13px !important;               /* v5.6.5 — was 13px 14px 10px */
  }
  .challv2-card-name {
    font-size: var(--ds-text-md) !important;         /* 16px */
    font-weight: var(--ds-fw-heavy) !important;      /* 900 */
    color: var(--ds-text-link) !important;           /* #1a2d4a */
  }
  .challv2-card-meta {
    font-size: var(--ds-text-sm) !important;         /* 13px */
    font-weight: var(--ds-fw-semi) !important;       /* 600 */
    color: var(--ds-text-secondary) !important;
  }
  .challv2-section-label {
    font-size: var(--ds-text-sm) !important;         /* 13px */
    font-weight: var(--ds-fw-heavy) !important;      /* 900 */
    letter-spacing: 0.07em !important;
    color: var(--green-deep) !important;
  }
  .challv2-section-hint {
    font-size: var(--ds-text-xs) !important;
    color: var(--ds-text-muted) !important;
    font-weight: var(--ds-fw-bold) !important;
  }
  .challv2-empty-state {
    font-size: var(--ds-text-body) !important;
    color: var(--ds-text-muted) !important;
    font-weight: var(--ds-fw-semi) !important;
  }

  /* ── 6. PATH CARDS (Solo/Practice game selection) ────────────── */
  .path-card {
    border-radius: var(--ds-radius-lg) !important;
    padding: var(--ds-card-pad-lg) !important;       /* v5.6.5 — was 18px 20px */
    margin-bottom: var(--ds-card-gap) !important;    /* v5.6.5 — was 12px */
  }
  .path-card-title {
    font-family: 'Playfair Display', serif !important;
    font-size: var(--ds-text-xl) !important;         /* 20px */
    font-weight: var(--ds-fw-bold) !important;
    color: var(--ds-text-on-dark) !important;
    margin-bottom: 4px !important;
  }
  .path-card-desc {
    font-size: var(--ds-text-sm) !important;
    color: var(--ds-text-on-dark-sub) !important;
    font-weight: var(--ds-fw-medium) !important;
  }

  /* ── 7. GAME CARDS (game selection tiles) ────────────────────── */
  .game-card {
    border-radius: var(--ds-radius-md) !important;
    padding: var(--ds-card-pad) !important;          /* v5.6.5 — was 14px 14px */
    margin-bottom: var(--ds-card-gap) !important;    /* v5.6.5 — was 8px */
  }
  /* v5.6.5 — background/border/shadow intentionally left to .game-card's own base rule
     (below, in the component styles) rather than forced here with !important, because the
     selected/active/pending game-card states override border-color/background directly and
     an !important shorthand here would silently break that gold "selected" indicator. */
  .game-name {
    font-size: var(--ds-text-body) !important;       /* 15px */
    font-weight: var(--ds-fw-bold) !important;       /* 700 */
    color: var(--ds-text-primary) !important;
  }
  .game-desc {
    font-size: var(--ds-text-sm) !important;
    color: var(--ds-text-muted) !important;
    margin-top: 2px !important;
  }

  /* ── 8. SCORECARD STACK ROW CONSISTENCY ──────────────────────── */
  /* Already at 13px/700 per v2.35.20 directive — enforce via tokens */
  .sc-table td, .sc-table th {
    font-size: 13px;                    /* keep existing */
    font-weight: var(--ds-fw-bold);
  }
  .sc-game-stack-row td {
    font-size: 13px !important;
    font-weight: var(--ds-fw-bold) !important;
    color: #111 !important;
  }
  .sc-game-stack-row td:first-child {
    color: #1a5c1a !important;
  }

  /* ── 9. FORM LABELS AND INPUTS ────────────────────────────────── */
  .form-label {
    font-size: var(--ds-text-sm) !important;         /* 13px */
    font-weight: var(--ds-fw-medium) !important;     /* 500 */
    color: var(--green-deep) !important;
    margin-bottom: 6px !important;
  }
  .form-input {
    font-size: var(--ds-text-body) !important;       /* 15px */
    padding: 13px 16px !important;
    border-radius: var(--ds-radius-sm) !important;
    background: var(--ds-bg-surface) !important;
    color: var(--ds-text-primary) !important;
    border: 2px solid var(--cream-dark) !important;
  }

  /* ── 10. TOTALS CARD (scorecard summary) ─────────────────────── */
  .totals-card {
    background: var(--green-deep) !important;
    border-radius: var(--ds-radius-lg) !important;
    padding: var(--ds-gap-lg) !important;            /* 20px */
    margin-bottom: 16px !important;
  }
  .total-label {
    font-size: var(--ds-text-xs) !important;         /* 11px */
    color: rgba(255,255,255,0.65) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
  }
  .total-value {
    font-size: clamp(17px, 2.35vw, 22px) !important;
    font-weight: var(--ds-fw-bold) !important;       /* 700 */
    color: var(--ds-text-on-dark) !important;
    margin-top: 4px !important;
  }

  /* ── 11. STAT ROWS ────────────────────────────────────────────── */
  .stat-row {
    font-size: var(--ds-text-sm) !important;         /* 13px */
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--cream-dark) !important;
  }
  .stat-label {
    font-size: var(--ds-text-sm) !important;
    color: var(--ds-text-muted) !important;
  }
  .stat-value {
    font-size: var(--ds-text-sm) !important;
    font-weight: var(--ds-fw-bold) !important;
    color: var(--green-deep) !important;
  }
  .trend-label {
    font-size: var(--ds-text-sm) !important;
    color: var(--ds-text-muted) !important;
  }

  /* ── 12. BADGE STANDARDIZATION ───────────────────────────────── */
  .badge {
    font-size: var(--ds-text-sm) !important;         /* 13px (was 17px — was inflated) */
    font-weight: var(--ds-fw-bold) !important;
    padding: 5px 12px !important;
    border-radius: var(--ds-radius-pill) !important;
  }

  /* ── 13. CHIP STANDARDIZATION ────────────────────────────────── */
  .chip {
    font-size: var(--ds-text-sm) !important;         /* 13px */
    font-weight: var(--ds-fw-medium) !important;
    padding: 7px 14px !important;
    border-radius: var(--ds-radius-pill) !important;
  }

  /* ── 14. DIVIDER ──────────────────────────────────────────────── */
  .divider {
    height: 1px !important;
    background: var(--cream-dark) !important;
    margin: 16px 0 !important;
  }

  /* ── 15. CLUB BAG ITEMS ───────────────────────────────────────── */
  .club-bag-item {
    background: var(--ds-card-bg) !important;
    border-radius: var(--ds-radius-sm) !important;   /* 10px */
    padding: 14px 16px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
  }
  .club-bag-name {
    font-size: var(--ds-text-body) !important;       /* 15px (was 14px) */
    font-weight: var(--ds-fw-semi) !important;
    color: var(--ds-text-primary) !important;
  }
  .club-bag-detail {
    font-size: var(--ds-text-xs) !important;         /* 11px (was 12px) */
    color: var(--ds-text-muted) !important;
    margin-top: 2px !important;
  }

  /* ── 16. FEEDBACK CARD ────────────────────────────────────────── */
  .feedback-card {
    border-radius: var(--ds-radius-lg) !important;
    padding: var(--ds-gap-lg) !important;
    margin-bottom: 16px !important;
  }
  .feedback-title {
    font-size: var(--ds-text-xl) !important;         /* 20px */
    font-weight: var(--ds-fw-bold) !important;
    color: var(--gold) !important;
    margin-bottom: 6px !important;
  }
  .feedback-text {
    font-size: var(--ds-text-sm) !important;         /* 13px (was 14px) */
    color: rgba(255,255,255,0.78) !important;
    line-height: 1.55 !important;
  }

  /* ── 17. RS (Round Select) OVERLAY CARDS ─────────────────────── */
  .rs-box {
    background: var(--ds-bg-app) !important;
    border-radius: 22px !important;
    padding: 24px 20px 20px !important;
  }
  .rs-title {
    font-family: 'Playfair Display', serif !important;
    font-size: var(--ds-text-2xl) !important;        /* 22px */
    font-weight: var(--ds-fw-heavy) !important;
    color: var(--green-deep) !important;
    margin-bottom: 4px !important;
  }
  .rs-sub {
    font-size: var(--ds-text-xs) !important;
    color: var(--ds-text-muted) !important;
    margin-bottom: 20px !important;
  }
  .rs-btn {
    font-size: var(--ds-text-md) !important;         /* 16px */
    font-weight: var(--ds-fw-bold) !important;
    padding: 15px 16px !important;
    border-radius: var(--ds-card-radius) !important;
    background: var(--ds-bg-surface) !important;
    color: var(--green-deep) !important;
    border: 2px solid var(--cream-dark) !important;
    margin-bottom: 10px !important;
  }
  .rs-btn-label {
    font-size: var(--ds-text-xs) !important;
    font-weight: var(--ds-fw-medium) !important;
    color: var(--ds-text-muted) !important;
    margin-top: 2px !important;
  }

  /* ── 18. HEADER TITLE + SUB ───────────────────────────────────── */
  /* Already defined per-class; enforce token alignment */
  .header-title {
    font-family: 'Playfair Display', serif !important;
    font-size: var(--ds-text-xl) !important;         /* 20px */
    font-weight: var(--ds-fw-bold) !important;
    color: var(--ds-text-on-dark) !important;
  }
  .header-sub {
    font-size: var(--ds-text-sm) !important;         /* 13px */
    font-weight: var(--ds-fw-medium) !important;
    color: rgba(255,255,255,0.82) !important;
    margin-top: 2px !important;
  }

  /* ── 19. TOAST ────────────────────────────────────────────────── */
  #toast {
    font-size: var(--ds-text-sm) !important;         /* 13px (was 14px) */
    font-weight: var(--ds-fw-semi) !important;
    padding: 12px 24px !important;
    border-radius: var(--ds-radius-pill) !important;
  }

  /* ── 20. SCREEN BACKGROUNDS — LIGHT SCREENS ──────────────────── */
  /* Ensure all light-theme .screen-body areas use --cream background */
  #screen-select-course .screen-body,
  #screen-tee .screen-body,
  #screen-holes .screen-body,
  #screen-mode .screen-body,
  #screen-game .screen-body,
  #screen-tracking .screen-body,
  #screen-clubhouse .screen-body,
  #screen-stats .screen-body,
  #screen-my-bag .screen-body,
  #screen-profile .screen-body,
  #screen-community .screen-body,
  #screen-golf-buddies .screen-body,
  #screen-club-golfers .screen-body,
  #screen-19th-hole .screen-body,
  #screen-mod2-challenges .screen-body,
  #screen-scorecard .screen-body,
  #screen-gb-profile .screen-body,
  #screen-cg-profile .screen-body {
    background: var(--ds-bg-app) !important;         /* #f5f0e8 cream */
  }

  /* ── 21. PROFILE INPUT STANDARDIZATION ───────────────────────── */
  .profile-input {
    font-size: var(--ds-text-sm) !important;         /* 13px (was 14px) */
    height: 46px !important;
    border-radius: 11px !important;
    background: var(--ds-bg-raised) !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    padding: 0 10px !important;
    color: var(--ds-text-primary) !important;
  }
  .profile-field-label {
    font-size: var(--ds-text-xs) !important;         /* 11px */
    font-weight: var(--ds-fw-black) !important;
    color: #666 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin-bottom: 5px !important;
  }

  /* ── 22. SC ACTION BAR ────────────────────────────────────────── */
  .sc-action-bar {
    background: var(--ds-bg-navy) !important;        /* #0f1e30 */
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    padding: 10px 12px 16px !important;
  }
  .sc-action-bar .sc-ab-btn {
    font-size: var(--ds-text-sm) !important;         /* 13px */
    font-weight: var(--ds-fw-bold) !important;
    padding: 12px 6px !important;
    border-radius: var(--ds-radius-xs) !important;
  }

  /* ── 23. EMP (Edit/Manage Popup) CARD ────────────────────────── */
  #edit-manage-popup .emp-card {
    background: var(--ds-bg-navy) !important;
    border-radius: var(--ds-radius-md) !important;
  }
  #edit-manage-popup .emp-title {
    font-family: 'Playfair Display', serif !important;
    font-size: var(--ds-text-md) !important;         /* 16px (was 17px) */
    font-weight: var(--ds-fw-bold) !important;
    color: var(--cream) !important;
    padding: 16px 16px 12px !important;
  }
  #edit-manage-popup .emp-row {
    font-size: var(--ds-text-body) !important;       /* 15px */
    font-weight: var(--ds-fw-semi) !important;       /* 600 */
    padding: 14px 20px !important;
  }

  /* ── 24. CARRY COMPARISON PILLS ──────────────────────────────── */
  .carry-pill {
    font-size: var(--ds-text-xs) !important;
    font-weight: var(--ds-fw-bold) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
  }

  /* ── END v3.0.0 DESIGN SYSTEM ─────────────────────────────── */
  /* ── v3.0 STYLES ─────────────────────────────────────────── */

  /* Hole page v3.0 large rectangular footer buttons */
  .nsf-nav-btn-v3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f1e30;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    min-height: 56px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
  }
  .nsf-nav-btn-v3:active { background: #1a3a5f; }
  .v3-footer-label {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
  }

  /* EDIT vNEXT — old .floating-score-btn rule removed; #nsf-shot-btn no longer exists, replaced by static #hole-score-ball-btn / .hole-score-ball-btn CSS (see Hole Page score ball section). */

  /* v3.1 — tee/approach selection now handled by .v3sc2-ball-selected (score page rebuild); old
     .v3-tee-btn/.v3-event-btn/.v3-ap-selected rules removed, markup no longer exists. */

  /* v3.0 stack/game toggle active */
  .v3-toggle-on { border-color: #2ecc71 !important; background: rgba(46,204,113,0.18) !important; color: #2ecc71 !important; }

  /* v4.3.0 — Round Setup Scoring Mode card highlight. Moves with selection; the
     gold star markup beside "SIP Score" is static HTML and is unaffected by this class. */
  .v3-mode-card-selected { border-color: #2ecc71 !important; background: rgba(46,204,113,0.16) !important; }

  /* ── END v3.0 STYLES ─────────────────────────────────────── */
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  [onclick], .btn, .chip, .club-btn, .code-btn, .game-card, .course-item, .nav-btn, .tee-option { cursor: pointer; }
  body { font-family: 'DM Sans', sans-serif; background: #141e2e; display: flex; justify-content: center; align-items: center; min-height: 100vh; overflow-x: hidden; }
  #app { width: 390px; height: 844px; background: var(--cream); border-radius: 44px; overflow: hidden; position: relative; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
  .screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; flex-direction: column; overflow: hidden; }
  .screen.active { display: flex; }
  .screen-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px; }
  .screen-body::-webkit-scrollbar { display: none; }

  /* Header */
  .header { background: var(--green-deep); padding: 52px 24px 18px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .header-back { background: rgba(255,255,255,0.22); border: 2px solid rgba(255,255,255,0.45); color: #ffffff; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .header-title-wrap { flex: 1; min-width: 0; }
  /* Hole screen — top-left back button (exits game) */
  .hole-header { position: relative; }
  .hole-exit-btn { position: absolute; top: 56px; left: 16px; background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.5); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; }
  .header-title { font-family: 'Playfair Display', serif; color: #ffffff; font-size: 20px; font-weight: 700; }
  .header-sub { color: rgba(255,255,255,0.82); font-size: 13px; margin-top: 2px; font-weight: 500; }

  /* EDIT v1.1.0 hole-nav-info: arr, scorecard, center, number display, done badge */
  .hole-hdr-arr {
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 20px; font-weight: 900;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
  }
  .hole-hdr-arr:active { background: rgba(255,255,255,0.28); }
  .hole-hdr-arr:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
  .hole-hdr-center { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
  /* v1.28.0 — .hole-number-display removed (hole number now only in #hf-hole-float) */
  /* .hole-number-display { font-family: 'DM Sans', sans-serif; color: #2F4A60; font-size: 28px; font-weight: 800; white-space: nowrap; } */
  .hole-done-badge { background: var(--gold); color: #f5f0e8; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; display: none; white-space: nowrap; }
  /* EDIT v1.1.0 hole-hdr-scorecard */
  .hole-hdr-scorecard { background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.25); color: #fff; width: 38px; height: 38px; border-radius: 10px; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; -webkit-tap-highlight-color: transparent; transition: background 0.12s; }
  .hole-hdr-scorecard:active { background: rgba(255,255,255,0.26); }
  /* EDIT v1.1.0 hole-info-line: left = Par·Yds·Hcp  right = round score pills */
  .hole-info-line { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 10px; gap: 8px; }
  .hil-left { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
  .hil-item { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
  .hil-label { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
  .hil-val { font-size: 17px; font-weight: 700; color: #fff; }
  .hil-score { color: var(--gold); }
  .hil-sep { color: rgba(255,255,255,0.25); font-size: 13px; flex-shrink: 0; }
  .tee-pos-indicator { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; margin-right: 2px; } /* EDIT v1.8.2 — 11→16px: arrow-only, needs to be larger */
  .tee-pos-indicator.back { color: #80deea; }
  .tee-pos-indicator.fwd  { color: #ffcc80; }
  .hil-score-pills { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

  /* Buttons */
  .btn { display: block; width: 100%; padding: 16px; border-radius: var(--radius); border: none; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.15s; }
  .btn:active { transform: scale(0.97); }
  .btn-gold { background: linear-gradient(135deg, #c94d12, #e06030); color: #ffffff; box-shadow: 0 4px 20px rgba(163,61,14,0.4); font-weight: 700; }
  /* EDIT v1.12.5 — selected state: keep reddish fill; white inset border emphasis only */
  .btn-gold.round-btn-sel { box-shadow: inset 0 0 0 3px rgba(255,255,255,0.85), 0 4px 20px rgba(163,61,14,0.45); }
  .btn-round-sel { box-shadow: inset 0 0 0 3px rgba(255,255,255,0.85), 0 2px 8px rgba(163,61,14,0.4) !important; }
  .btn-green { background: #1a2d4a; color: #ffffff; font-weight: 700; }
  .btn-ghost { background: rgba(26,45,74,0.10); color: var(--green-deep); font-weight: 600; }
  .btn-sm { padding: 10px 16px; font-size: 14px; border-radius: var(--radius-sm); }

  /* Form */
  .form-group { margin-bottom: 16px; }
  .form-label { display: block; font-size: 13px; font-weight: 500; color: var(--green-deep); margin-bottom: 6px; }
  .form-input { width: 100%; padding: 13px 16px; border: 2px solid var(--cream-dark); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 15px; background: var(--white); color: var(--charcoal); outline: none; transition: border-color 0.2s; }
  .form-input:focus { border-color: var(--green-light); }

  /* v2.19.4 — Profile 2-column grid */
  .profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    margin-bottom: 4px;
  }
  .profile-full { grid-column: 1 / -1; }
  .profile-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
    text-transform: uppercase;
  }
  .profile-input {
    width: 100%;
    height: 46px;
    border-radius: 11px;
    background: #f7f7f7;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 0 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--charcoal);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
  }
  .profile-input:focus {
    border-color: #c94d12;
    box-shadow: 0 0 0 2px rgba(201,77,18,0.15);
  }
  @media (max-width: 339px) {
    .profile-form-grid { grid-template-columns: 1fr; }
    .profile-full { grid-column: 1; }
  }
  .chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
  .chip { padding: 7px 14px; border-radius: 100px; border: 2px solid var(--cream-dark); background: var(--white); font-size: 13px; font-weight: 500; color: #666; cursor: pointer; }
  .chip.selected { background: var(--green-deep); border-color: var(--green-deep); color: var(--gold); }
  .section-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--green-deep); margin-bottom: 14px; font-weight: 600; }
  .divider { height: 1px; background: var(--cream-dark); margin: 16px 0; }

  /* Badges */
  .badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 100px; font-size: 17px; font-weight: 700; }
  .badge-green { background: var(--teal-light); color: var(--teal); }
  .badge-red { background: #fde8e8; color: #b91c1c; } /* EDIT v1.8.2 — was #fff (white on light pink = unreadable); now dark red for contrast */
  .badge-gold { background: var(--gold); color: #f5f0e8; }
  .badge-blue { background: #e8f0fd; color: #2255aa; }

  /* Toast */
  #toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--green-deep); color: var(--gold); padding: 12px 24px; border-radius: 100px; font-size: 14px; font-weight: 600; opacity: 0; transition: all 0.3s; z-index: 999; text-align: center; max-width: 320px; pointer-events: none; }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ── Ball In Play ──────────────────────────────────── */
  /* Overlay modal — sits above everything else */
  .bip-modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,18,32,0.88); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 160; padding: 20px; }
  /* EDIT round-select overlay modal */
  .rs-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,18,32,0.88); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 170; padding: 20px; }
  .rs-box { background: var(--cream); border-radius: 22px; padding: 24px 20px 20px; width: 100%; max-height: 88%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .rs-box::-webkit-scrollbar { display: none; }
  .rs-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--green-deep); text-align: center; margin-bottom: 4px; }
  .rs-sub { font-size: 12px; color: var(--sage); text-align: center; margin-bottom: 20px; }
  .rs-btn { display: block; width: 100%; padding: 15px 16px; border-radius: 14px; border: 2px solid var(--cream-dark); background: var(--white); font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--green-deep); cursor: pointer; text-align: left; margin-bottom: 10px; transition: all .12s; }
  .rs-btn:active { background: var(--cream-dark); transform: scale(0.98); }
  .rs-btn-label { font-size: 11px; font-weight: 500; color: var(--sage); display: block; margin-top: 2px; }
  .rs-btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-color: transparent; color: #fff; }
  .rs-btn-gold .rs-btn-label { color: rgba(255,255,255,0.75); }
  .rs-hole-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; margin: 14px 0; }
  .rs-cancel { display: block; width: 100%; padding: 13px; border-radius: 12px; border: 2px solid var(--cream-dark); background: transparent; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--sage); cursor: pointer; text-align: center; margin-top: 4px; }
  .bip-modal.show { display: flex; }
  .bip-box { background: var(--cream); border-radius: 22px; padding: 22px 18px 18px; width: 100%; max-height: 90%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .bip-box::-webkit-scrollbar { display: none; }
  .bip-title { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--green-deep); text-align: center; margin-bottom: 3px; }
  .bip-sub { font-size: 12px; color: var(--sage); text-align: center; margin-bottom: 18px; }
  /* Autofill card */
  .bip-autofill-card { background: var(--white); border-radius: 14px; border: 2px solid var(--gold); padding: 14px 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 13px; }
  .bip-af-label { font-size: 10px; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 3px; }
  .bip-af-model { font-weight: 700; font-size: 16px; color: var(--charcoal); }
  .bip-af-cond { font-size: 12px; color: var(--sage); margin-top: 2px; }
  /* Ball model rows */
  .bip-ball-row { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 11px; border: 2px solid var(--cream-dark); background: var(--white); margin-bottom: 7px; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
  .bip-ball-row.sel { border-color: var(--gold); background: #fdf4ef; }
  .bip-ball-row:active { transform: scale(0.98); }
  .bip-mfr { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: 0.02em; line-height: 1.15; text-align: center; }
  .bip-model { font-weight: 700; font-size: 14px; color: var(--charcoal); }
  .bip-mfr-name { font-size: 11px; color: var(--sage); margin-top: 1px; }
  /* Condition chips */
  .bip-cond-group { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
  .bip-cond-chip { padding: 8px 13px; border-radius: 100px; border: 2px solid var(--cream-dark); background: var(--white); font-size: 13px; font-weight: 600; color: #666; cursor: pointer; transition: all 0.12s; }
  .bip-cond-chip.sel { background: var(--green-deep); border-color: var(--green-deep); color: var(--gold); }
  /* Ball strip on the hole screen — lives between hole header and round banner */
  .bip-strip { background: rgba(0,0,0,0.22); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 6px 18px; display: flex; align-items: center; gap: 7px; cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent; transition: background 0.12s; }
  .bip-strip:active { background: rgba(255,255,255,0.1); }
  .bip-strip-label { font-size: 9px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; flex-shrink: 0; }
  .bip-strip-badge { border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; color: #fff; width: 20px; height: 20px; flex-shrink: 0; }
  .bip-strip-model { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.9); }
  .bip-strip-cond { font-size: 11px; color: rgba(255,255,255,0.5); }
  .bip-strip-tap { margin-left: auto; font-size: 9px; color: rgba(255,255,255,0.3); flex-shrink: 0; }
  /* ─────────────────────────────────────────────────── */

  /* Positive overlay */
  /* EDIT v1.30.10 — GnF Positive Overlay: 3-line structure, effect classes, no emoji */
  /* EDIT v1.30.14 — Positive Overlay: transparent card with backdrop blur */
  .pos-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    max-width: calc(100% - 24px);
    padding: 30px 22px;
    border-radius: 26px;
    border: 5px solid #ffffff;
    overflow: hidden;
    z-index: 200;
    box-shadow:
      0 18px 44px rgba(0,0,0,0.88),
      inset 0 2px 0 rgba(255,255,255,0.35),
      inset 0 -10px 22px rgba(0,0,0,0.28);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* transparent card so course/background subtly shows through */
    background: rgba(5,15,28,0.38);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  .pos-overlay.show { display: flex; }

  /* Center band behind text for readability */
  .pos-overlay::before {
    content: "";
    position: absolute;
    inset: 22px 14px;
    border-radius: 20px;
    background: rgba(0,0,0,0.22);
    z-index: 0;
    pointer-events: none;
  }

  /* Sweep/ring pseudo-element */
  .pos-overlay::after {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
  }

  /* Line 1 — Outcome */
  #posTitle {
    font-size: 42px;
    font-weight: 950;
    line-height: 1.05;
    color: #ffffff;
    text-shadow:
      0 5px 10px rgba(0,0,0,1),
      0 0 14px rgba(0,0,0,0.95),
      0 0 18px currentColor;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    animation: posTextGrow 4s ease-out 1;
    transform-origin: center;
  }
  /* Outcome-specific Line 1 colors */
  .pos-hio #posTitle    { color: #fff7b0; }
  .pos-eagle #posTitle  { color: #ffd966; }
  .pos-birdie #posTitle { color: #74ffe0; }
  .pos-par #posTitle    { color: #9be28f; }
  .pos-bogey #posTitle  { color: #ffb85a; }
  .pos-double #posTitle { color: #d7e0ea; }
  /* Line 2 — Meaning */
  #posMsg {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.08;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.95);
    margin-top: 8px;
    position: relative;
    z-index: 2;
    animation: posTextGrow 4s ease-out 1;
    transform-origin: center;
  }
  /* Line 3 — Positive message */
  #posSubMsg {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.08;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.95);
    margin-top: 8px;
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
    animation: posTextGrow 4s ease-out 1;
    transform-origin: center;
  }
  /* Text grow animation during overlay display */
  @keyframes posTextGrow {
    0%   { transform: scale(0.82); opacity: 0;   filter: brightness(1.35); }
    12%  { transform: scale(1.08); opacity: 1;   filter: brightness(1.25); }
    35%  { transform: scale(1.0);  opacity: 1;   filter: brightness(1.05); }
    100% { transform: scale(1.08); opacity: 1;   filter: brightness(1); }
  }

  /* Outcome card backgrounds + animations */

  /* HIO — bright white/gold burst over deep blue */
  .pos-overlay.pos-hio.show {
    background:
      radial-gradient(circle at 50% 18%, rgba(255,255,255,0.60), rgba(255,215,80,0.45) 20%, rgba(25,60,130,0.55) 58%, rgba(4,14,32,0.55) 100%);
    border-color: #ffffff;
    animation: hioMegaBurst 4s ease-out 1;
  }
  .pos-overlay.pos-hio.show::after {
    background: radial-gradient(circle, rgba(255,255,255,0.70) 0%, rgba(255,215,80,0.38) 18%, transparent 42%);
    animation: overlayBurstRing 4s ease-out 1;
  }

  /* Eagle — gold + deep blue */
  .pos-overlay.pos-eagle.show {
    background:
      radial-gradient(circle at 50% 18%, rgba(255,225,95,0.48), rgba(35,70,120,0.55) 46%, rgba(5,15,35,0.55) 100%);
    border-color: #ffd966;
    animation: eagleGoldBurst 4s ease-out 1;
  }
  .pos-overlay.pos-eagle.show::after {
    background: radial-gradient(circle, rgba(255,217,102,0.58) 0%, rgba(255,217,102,0.28) 22%, transparent 46%);
    animation: overlayBurstRing 4s ease-out 1;
  }

  /* Birdie — teal/green-blue flow */
  .pos-overlay.pos-birdie.show {
    background:
      radial-gradient(circle at 50% 18%, rgba(120,255,225,0.38), rgba(0,115,125,0.55) 46%, rgba(5,20,35,0.55) 100%);
    border-color: #74ffe0;
    animation: birdieFlowSweep 4s ease-out 1;
  }
  .pos-overlay.pos-birdie.show::after {
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.38) 48%, transparent 61%);
    animation: overlayShineSweep 4s ease-out 1;
  }

  /* Par — rich green calm flow */
  .pos-overlay.pos-par.show {
    background:
      radial-gradient(circle at 50% 18%, rgba(145,230,120,0.38), rgba(35,105,60,0.55) 46%, rgba(5,20,30,0.55) 100%);
    border-color: #9be28f;
    animation: parGreenBreathe 4s ease-in-out 1;
  }
  .pos-overlay.pos-par.show::after {
    background: radial-gradient(circle, rgba(155,226,143,0.34) 0%, transparent 48%);
    animation: overlaySoftRing 4s ease-in-out 1;
  }

  /* Bogey — warm amber still-in-it */
  .pos-overlay.pos-bogey.show {
    background:
      radial-gradient(circle at 50% 18%, rgba(255,185,90,0.42), rgba(150,82,30,0.55) 46%, rgba(35,18,8,0.55) 100%);
    border-color: #ffb85a;
    animation: bogeyGritImpact 4s ease-out 1;
  }
  .pos-overlay.pos-bogey.show::after {
    background: radial-gradient(circle, rgba(255,145,60,0.42) 0%, transparent 48%);
    animation: overlaySoftRing 4s ease-out 1;
  }

  /* Double+ — steel/slate reset */
  .pos-overlay.pos-double.show {
    background:
      radial-gradient(circle at 50% 18%, rgba(210,220,230,0.28), rgba(80,92,108,0.55) 46%, rgba(16,22,32,0.55) 100%);
    border-color: #d7e0ea;
    animation: doubleResetSettle 4s ease-out 1;
  }
  .pos-overlay.pos-double.show::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.20), transparent 55%);
    animation: overlayResetRipple 4s ease-out 1;
  }

  /* Card entrance keyframes */
  @keyframes hioMegaBurst {
    0%   { transform: translate(-50%, -50%) scale(0.72); filter: brightness(1.8); }
    18%  { transform: translate(-50%, -50%) scale(1.12); filter: brightness(1.45); }
    40%  { transform: translate(-50%, -50%) scale(1.0);  filter: brightness(1.15); }
    100% { transform: translate(-50%, -50%) scale(1.0);  filter: brightness(1); }
  }
  @keyframes eagleGoldBurst {
    0%   { transform: translate(-50%, -50%) scale(0.86); box-shadow: 0 0 0 0 rgba(255,217,102,0.0), 0 18px 44px rgba(0,0,0,0.88); }
    25%  { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 46px 18px rgba(255,217,102,0.72), 0 18px 44px rgba(0,0,0,0.88); }
    100% { transform: translate(-50%, -50%) scale(1.0);  box-shadow: 0 18px 44px rgba(0,0,0,0.88); }
  }
  @keyframes birdieFlowSweep {
    0%   { transform: translate(-50%, -50%) scale(0.94); filter: saturate(1.4) brightness(1.25); }
    30%  { transform: translate(-50%, -50%) scale(1.04); filter: saturate(1.6) brightness(1.35); }
    100% { transform: translate(-50%, -50%) scale(1);    filter: saturate(1) brightness(1); }
  }
  @keyframes parGreenBreathe {
    0%   { transform: translate(-50%, -50%) scale(0.96); box-shadow: 0 0 0 0 rgba(155,226,143,0.0), 0 18px 44px rgba(0,0,0,0.88); }
    40%  { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 0 34px 12px rgba(155,226,143,0.55), 0 18px 44px rgba(0,0,0,0.88); }
    100% { transform: translate(-50%, -50%) scale(1);    box-shadow: 0 18px 44px rgba(0,0,0,0.88); }
  }
  @keyframes bogeyGritImpact {
    0%   { transform: translate(-50%, -50%) scale(0.92); filter: brightness(1.2); }
    20%  { transform: translate(-50%, -50%) scale(1.06); filter: brightness(1.35); }
    100% { transform: translate(-50%, -50%) scale(1);    filter: brightness(1); }
  }
  @keyframes doubleResetSettle {
    0%   { transform: translate(-50%, -56%) scale(0.96); filter: brightness(1.2); }
    28%  { transform: translate(-50%, -50%) scale(1.03); filter: brightness(1.1); }
    100% { transform: translate(-50%, -50%) scale(1);    filter: brightness(1); }
  }

  /* Sweep/ring effect keyframes */
  @keyframes overlayBurstRing {
    0%   { opacity: 0.95; transform: scale(0.35); }
    45%  { opacity: 0.62; transform: scale(1.1); }
    100% { opacity: 0;    transform: scale(1.45); }
  }
  @keyframes overlayShineSweep {
    0%   { opacity: 0;    transform: translateX(-70%) rotate(0deg); }
    20%  { opacity: 0.95; }
    65%  { opacity: 0.55; transform: translateX(70%) rotate(0deg); }
    100% { opacity: 0;    transform: translateX(95%) rotate(0deg); }
  }
  @keyframes overlaySoftRing {
    0%   { opacity: 0.70; transform: scale(0.65); }
    50%  { opacity: 0.42; transform: scale(1.1); }
    100% { opacity: 0;    transform: scale(1.35); }
  }
  @keyframes overlayResetRipple {
    0%   { opacity: 0;    transform: translateY(-20%); }
    30%  { opacity: 0.65; }
    100% { opacity: 0;    transform: translateY(35%); }
  }

  /* HIO blast keyframe (kept for fireworks compat) */
  @keyframes hioBlast { 0%{transform:scale(0.7);opacity:0;} 50%{transform:scale(1.25);opacity:1;} 75%{transform:scale(0.92);} 100%{transform:scale(1);opacity:1;} }

  /* Fireworks canvas — overlays the pos-overlay content */
  #fireworks-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; border-radius: inherit; z-index: 3;
  }

  /* EDIT v1.4.2 — Hz sub-panel: shown inside result row when Hz is tapped */
  /* result-main-btns hidden in hz-mode; hz-subpanel shown */
  .shot-result-row.hz-mode .result-btn  { display: none; }
  .shot-result-row.hz-mode .penalty-row { display: none; }
  #hz-subpanel { display: none; width: 100%; flex-direction: column; gap: 6px; }
  .shot-result-row.hz-mode #hz-subpanel { display: flex; }
  .hz-sub-btn {
    flex: 1; padding: 12px 4px;
    border: 2px solid var(--teal); background: transparent; color: var(--teal); /* EDIT v1.8.8 — teal, no red */
    border-radius: 10px; font-size: 12px; font-weight: 700;
    cursor: pointer; text-align: center; line-height: 1.3;
    -webkit-tap-highlight-color: transparent; transition: all 0.12s;
  }
  .hz-sub-btn:active { background: var(--teal); color: #fff; } /* EDIT v1.8.8 — teal, no red */
  .hz-sub-btn span { font-size: 10px; font-weight: 500; display: block; }

  /* ═══════════════════════════════════════════════════════════════════════
     CANARDLY SPLASH — SINGLE AUTHORITATIVE DESIGN (v7.7.127)
     Scope: splash only. Preserve approved emblem, wordmark, layout, login,
     navigation and all existing round-resume behaviors. A flat white canvas
     replaces the previous gradient; no play/scoring/GPS styles are touched.
     Five fixed brand colors: navy #14213D, orange #CC5500, white #FFFFFF,
     medium blue #4A82B3. (Green is reserved for playing a course.)
     Do not introduce other splash appearance overrides in later stylesheets.
     ═══════════════════════════════════════════════════════════════════════ */
  #screen-splash {
    background: #FFFFFF;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    overflow: hidden;
    padding: 0 0 calc(7dvh + max(16px, env(safe-area-inset-bottom, 16px)));
  }
  /* v2.9.0 — splash version footer always visible above iPhone home indicator */
  #screen-splash .splash-version-footer { color:#14213D; font-size:11px; margin-top:10px; letter-spacing:0.08em; padding-bottom:max(10px,env(safe-area-inset-bottom,10px)); flex-shrink:0; }
  /* v2.9.0 — neutral checking spinner shown before routing resolves */
  .splash-checking { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.25s; }
  .splash-checking.visible { opacity: 1; }
  #screen-splash .splash-checking-dot { width:8px; height:8px; border-radius:50%; background:#14213D; animation:splashPulse 1.2s ease-in-out infinite; }
  @keyframes splashPulse { 0%,100%{opacity:0.3;transform:scale(0.85)} 50%{opacity:1;transform:scale(1)} }
  .splash-ornament { font-size: 72px; margin-bottom: 24px; }
  .splash-logo { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700; color: var(--cream); margin-bottom: 2px; }
  .splash-logo span { color: var(--gold); }
  /* EDIT increase splash-tagline readability to 18px; margin-bottom 56px */
  /* EDIT v5.5.3 — tagline color changed from #7a4a1a to var(--gold) (on-brand burnt-orange
     accent) with a subtle dark text-shadow added for legibility across the cream→navy splash
     gradient; font/size/weight/position/letter-spacing/content unchanged */
  #screen-splash .splash-tagline { color:#CC5500; font-size:18px; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:28px; font-weight:800; text-shadow:none; }
  /* v5.6.5 — .splash-welcome / .splash-daily-saying rules removed (elements deleted per directive) */
  /* EDIT v2.10.6 — splash buttons single-line enforced; max two visible; spacing tightened */
  #screen-splash .splash-btn {
    width:min(330px,calc(100vw - 44px)); min-height:66px; padding:10px 14px;
    display:flex; align-items:center; justify-content:flex-start; gap:13px;
    background:#14213D; color:#FFFFFF; border:0; border-left:12px solid #CC5500;
    border-radius:14px; box-sizing:border-box; text-align:left;
    font-family:'DM Sans',sans-serif; font-size:17px; font-weight:800;
    cursor:pointer; box-shadow:0 4px 12px rgba(20,33,61,.14);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  #screen-splash .splash-btn-secondary {
    width:min(330px,calc(100vw - 44px)); min-height:66px; padding:10px 14px;
    display:flex; align-items:center; justify-content:flex-start; gap:13px;
    background:#14213D; color:#FFFFFF; border:0; border-left:12px solid #CC5500;
    border-radius:14px; box-sizing:border-box; text-align:left;
    font-family:'DM Sans',sans-serif; font-size:17px; font-weight:800;
    cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  #screen-splash .splash-btn::before,
  #screen-splash .splash-btn-secondary::before,
  #screen-splash .splash-btn-community::before {
    content:'›'; display:flex; align-items:center; justify-content:center;
    flex:0 0 40px; width:40px; height:40px; border-radius:10px;
    background:#4A82B3; color:#FFFFFF; font-size:30px;
    font-family:'DM Sans',sans-serif; font-weight:700; line-height:1;
  }
  /* v2.11.5 — small ghost text button for secondary utility actions (Start Fresh) */
  #screen-splash .splash-btn-ghost { background:transparent; border:none; color:#14213D; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:700; cursor:pointer; padding:9px 12px; letter-spacing:0.02em; text-decoration:underline; text-underline-offset:3px; }
  /* EDIT button group spacing */
  .splash-button-group { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 0; }
  /* EDIT increase splash-tagline2 readability to 14px */
  #screen-splash .splash-tagline2 { color:#14213D; font-size:14px; margin-top:0; letter-spacing:0.14em; text-transform:uppercase; font-weight:700; padding-top:0; }
  /* EDIT — splash vibe line: rotating micro-copy for energy */
  #screen-splash .splash-vibe { min-height:22px; font-size:16px; font-weight:700; color:#14213D; letter-spacing:0.04em; text-align:center; margin-top:6px; font-style:italic; transition:opacity 0.4s; }
  /* v2.20.4 — Splash challenge message line */
  /* v2.22.24: higher contrast challenge link for outdoor readability */
  #screen-splash #splash-challenge-line { display:none; font-size:20px; line-height:1.35; font-weight:800; color:#FFFFFF; text-decoration:none; text-align:center; white-space:normal; width:min(90vw,380px); min-height:68px; box-sizing:border-box; cursor:pointer; margin-top:10px; margin-bottom:6px; padding:16px 20px; border-radius:14px; background:#14213D; border:0; border-left:12px solid #CC5500; box-shadow:0 4px 12px rgba(20,33,61,.14); letter-spacing:0.01em; text-shadow:none; -webkit-tap-highlight-color:transparent; }
  /* EDIT v2.10.6 — community pill: single-line enforced */
  #screen-splash .splash-btn-community { width:min(330px,calc(100vw - 44px)); min-height:66px; padding:10px 14px; background:#14213D; border:0; border-left:12px solid #CC5500; color:#FFFFFF; border-radius:14px; box-sizing:border-box; font-family:'DM Sans',sans-serif; font-size:17px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:flex-start; gap:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  /* EDIT — splash greeting bolder name */
  #screen-splash .splash-name-hi { font-size:26px; color:#14213D; font-weight:700; letter-spacing:0.04em; }
  #screen-splash .splash-name-hi span { font-size:16px; color:#14213D; font-weight:700; letter-spacing:0.01em; }


  /* Splash-only resume notices: preserve their data/controls, show on white. */
  #screen-splash #splash-continue,
  #screen-splash #splash-continue-group {
    background:#FFFFFF !important; border:2px solid #14213D !important;
    border-left:12px solid #CC5500 !important; box-shadow:0 4px 12px rgba(20,33,61,.14);
  }
  #screen-splash #splash-continue button:first-child,
  #screen-splash #splash-continue-group button:first-child {
    background:#CC5500 !important; color:#FFFFFF !important;
  }
  #screen-splash #splash-continue button:last-child,
  #screen-splash #splash-continue-group button:last-child {
    background:#14213D !important; color:#FFFFFF !important;
    border-color:#14213D !important;
  }
  #screen-splash .splash-btn:focus-visible,
  #screen-splash .splash-btn-secondary:focus-visible,
  #screen-splash .splash-btn-ghost:focus-visible,
  #screen-splash .splash-btn-community:focus-visible {
    outline:3px solid #CC5500; outline-offset:3px;
  }
  /* Splash refinement — two understated actions, no template-style arrow tiles. */
  #screen-splash { background:#FFFFFF !important; background-image:none !important; }
  #screen-splash .splash-btn,
  #screen-splash .splash-btn-secondary,
  #screen-splash .splash-btn-community {
    justify-content:center !important;
    text-align:center !important;
    gap:0 !important;
    border:1.5px solid transparent !important;
    box-shadow:none !important;
    text-shadow:none !important;
    background-image:none !important;
    font-weight:750 !important;
  }
  #screen-splash .splash-btn { background:#CC5500 !important; color:#FFFFFF !important; }
  #screen-splash .splash-btn-secondary,
  #screen-splash .splash-btn-community {
    background:#FFFFFF !important;
    color:#14213D !important;
    border-color:#14213D !important;
  }
  #screen-splash .splash-btn::before,
  #screen-splash .splash-btn-secondary::before,
  #screen-splash .splash-btn-community::before { content:none !important; display:none !important; }
  #screen-splash .splash-name-hi { font-size:30px !important; }
  #screen-splash .splash-tagline2 { font-size:18px !important; letter-spacing:.12em !important; }
  #screen-splash .splash-tagline { color:#CC5500 !important; text-shadow:none !important; }
  #screen-splash #splash-challenge-line { background:#14213D !important; background-image:none !important; box-shadow:none !important; }
  #screen-splash #splash-continue,
  #screen-splash #splash-continue-group { background-image:none !important; box-shadow:none !important; }
  #screen-splash #splash-continue button,
  #screen-splash #splash-continue-group button { background-image:none !important; box-shadow:none !important; }

/* Canardly signature splash: compact athletic controls, unchanged actual logo and wordmark. */
#screen-splash {background:#fff !important;background-image:none !important;padding-bottom:calc(3dvh + max(12px,env(safe-area-inset-bottom,12px))) !important;}
#screen-splash #splash-logo-block {margin-top:clamp(42px,8dvh,76px) !important;gap:1px !important;}
#screen-splash .splash-tagline {font-size:16px !important;font-weight:800 !important;color:#CC5500 !important;letter-spacing:.12em !important;text-shadow:none !important;margin-bottom:8px !important;}
#screen-splash .splash-name-hi {font-size:30px !important;font-weight:800 !important;letter-spacing:-.025em !important;color:#14213D !important;}
#screen-splash .splash-button-group {width:100% !important;gap:13px !important;margin:0 auto !important;align-items:center !important;}
#screen-splash .splash-btn,#screen-splash .splash-btn-secondary,#screen-splash .splash-btn-community {width:204px !important;max-width:68vw !important;min-height:46px !important;padding:10px 14px !important;display:flex !important;align-items:center !important;justify-content:center !important;border-radius:6px 18px 6px 18px !important;box-sizing:border-box !important;text-align:center !important;border:1.5px solid #14213D !important;background-image:none !important;box-shadow:none !important;font:800 13px/1.2 'DM Sans',sans-serif !important;letter-spacing:.06em !important;white-space:nowrap !important;}
#screen-splash .splash-btn {background:#CC5500 !important;border-color:#CC5500 !important;color:white !important;}
#screen-splash .splash-btn-secondary,#screen-splash .splash-btn-community {background:#fff !important;border-color:#14213D !important;color:#14213D !important;}
#screen-splash .splash-btn::before,#screen-splash .splash-btn-secondary::before,#screen-splash .splash-btn-community::before {content:none !important;display:none !important;}
#screen-splash .splash-btn:active,#screen-splash .splash-btn-secondary:active {transform:translateY(2px) !important;}
#screen-splash .splash-btn-ghost {font-size:13px !important;font-weight:600 !important;text-decoration:none !important;padding:4px 12px !important;border-bottom:1px solid #CC5500 !important;border-radius:0 !important;}
#screen-splash .splash-tagline2 {font-size:18px !important;font-weight:800 !important;color:#14213D !important;letter-spacing:.10em !important;text-align:center !important;}
#screen-splash .splash-vibe {font-size:15px !important;font-style:normal !important;}
#screen-splash #splash-continue,#screen-splash #splash-continue-group {box-shadow:none !important;background:#fff !important;}
#screen-splash #splash-continue button,#screen-splash #splash-continue-group button {background-image:none !important;box-shadow:none !important;}
@media(max-height:720px){#screen-splash #splash-logo-block{margin-top:30px !important;}#screen-splash .splash-button-group{gap:7px !important;}#screen-splash .splash-tagline2{font-size:16px !important;}}

/* Persistent splash greeting: independent from asynchronous account notification. */
#screen-splash #splash-welcome-heading{
  display:block !important;visibility:visible !important;
  margin:clamp(5px,1.6dvh,15px) auto 0 !important;
  width:100% !important;flex:0 0 auto !important;
  padding:0 12px !important;box-sizing:border-box !important;
  color:#14213D !important;text-align:center !important;
  font:700 clamp(20px,5.4vw,24px)/1.2 'DM Sans',sans-serif !important;
  letter-spacing:-.02em !important;
}
#screen-splash #splash-vibe:empty{min-height:clamp(18px,3dvh,27px) !important;}
/* CANARDLY SPLASH / custom precision-wing controls, approved review 2026-10-16.
   Only affects the splash screen. Original production logo + wordmark preserved. */
#screen-splash{background:#fff !important;background-image:none !important;}
#screen-splash #splash-logo-block{margin-top:clamp(22px,5.2dvh,60px) !important;gap:3px !important;}
#screen-splash .splash-tagline{
  font:800 clamp(16px,4.1vw,21px)/1.25 'DM Sans',sans-serif !important;
  color:#CC5500 !important;letter-spacing:.105em !important;
  margin-top:12px !important;margin-bottom:clamp(12px,2.8dvh,26px) !important;
  text-align:center !important;text-shadow:none !important;
}
#screen-splash .splash-name-hi{
  font-size:clamp(18px,5vw,21px) !important;
  font-weight:750 !important;letter-spacing:0 !important;line-height:1.25 !important;
  color:#14213D !important;
}
#screen-splash .splash-button-group{
  display:flex !important;align-items:center !important;
  gap:12px !important;width:100% !important;margin:12px auto 0 !important;
}
#screen-splash .splash-btn,
#screen-splash .splash-btn-secondary,
#screen-splash .splash-btn-community{
  position:relative !important;isolation:isolate !important;
  display:flex !important;align-items:center !important;justify-content:center !important;
  width:min(268px,72vw) !important;height:53px !important;min-height:53px !important;
  padding:0 57px 0 22px !important;flex:0 0 auto !important;
  border:0 !important;border-radius:0 !important;
  -webkit-clip-path:polygon(11% 0,100% 0,89% 100%,0 100%,0 82%) !important;
  clip-path:polygon(11% 0,100% 0,89% 100%,0 100%,0 82%) !important;
  font:800 13px/1.1 'DM Sans',sans-serif !important;
  letter-spacing:.075em !important;white-space:nowrap !important;
  box-shadow:none !important;text-shadow:none !important;overflow:visible !important;
  transition:filter .12s ease, transform .12s ease !important;
  cursor:pointer !important;
}
#screen-splash .splash-btn{
  background:linear-gradient(125deg,#CC5500 0%,#CC5500 76%,#14213D 76.15%,#14213D 100%) !important;
  color:#fff !important;
}
#screen-splash .splash-btn-secondary,#screen-splash .splash-btn-community{
  background:linear-gradient(125deg,#fff 0%,#fff 76%,#14213D 76.15%,#14213D 100%) !important;
  color:#14213D !important;
  border:0 !important;
}
#screen-splash .splash-btn-secondary::before,
#screen-splash .splash-btn-community::before{
  content:none !important;display:none !important;
}
#screen-splash .splash-btn::before{display:none !important;content:none !important;}
#screen-splash .splash-btn::after,
#screen-splash .splash-btn-secondary::after,
#screen-splash .splash-btn-community::after{
  content:'→' !important;position:absolute !important;
  right:13px !important;top:50% !important;transform:translateY(-50%) !important;
  color:#fff !important;font:700 27px/1 'DM Sans',sans-serif !important;
  width:43px !important;text-align:center !important;pointer-events:none !important;
}
#screen-splash .splash-btn-secondary,#screen-splash .splash-btn-community{
  outline:none !important;
  /* SVG matches the actual clipped corners. CSS border/outline cannot follow clip-path. */
  filter:drop-shadow(0 1px 2px rgba(20,33,61,.12)) !important;
}
#screen-splash .splash-btn-secondary::before,
#screen-splash .splash-btn-community::before {
  content:'' !important;display:block !important;
  position:absolute !important;inset:0 !important;
  width:100% !important;height:100% !important;
  z-index:1 !important;pointer-events:none !important;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 268 53' preserveAspectRatio='none'%3E%3Cpath d='M29 1.4 H265 L236.5 51.6 H1.4 V43.2 Z' fill='none' stroke='%2314213D' stroke-width='2.7' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
  clip-path:none !important;-webkit-clip-path:none !important;
}
#screen-splash .splash-vibe{
  min-height:clamp(27px,5dvh,45px) !important;
  max-width:min(340px,90vw) !important;
  font:650 19px/1.3 'DM Sans',sans-serif !important;
  font-style:normal !important;
  color:#14213D !important;
  text-align:center !important;
  margin:0 auto 4px !important;
  padding:0 8px !important;
  flex-shrink:0 !important;
}
#screen-splash .splash-button-group{margin-top:6px !important;}
#screen-splash .splash-btn, #screen-splash .splash-btn-secondary,#screen-splash .splash-btn-community{
  max-width:calc(100vw - 56px) !important;
}

/* Preserve iOS touch targets and keep notifications distinct from the CTA row. */
#screen-splash .splash-btn:active,#screen-splash .splash-btn-secondary:active{filter:brightness(.92) !important;transform:translateY(1px) !important;}
#screen-splash .splash-btn:focus-visible,#screen-splash .splash-btn-secondary:focus-visible{outline:3px solid #CC5500 !important;outline-offset:4px !important;}
#screen-splash .splash-btn-ghost{
  min-height:30px !important;margin-top:2px !important;background:transparent !important;
  color:#14213D !important;font-size:14px !important;font-weight:600 !important;
  padding:4px 12px !important;letter-spacing:0 !important;
  border:none !important;border-radius:0 !important;
  border-bottom:2px solid #CC5500 !important;text-decoration:none !important;
}
#screen-splash .splash-vibe{
  min-height:22px !important;font-size:14px !important;font-weight:600 !important;
  color:#14213D !important;margin-top:8px !important;margin-bottom:4px !important;
}
#screen-splash #splash-challenge-line,#screen-splash #splash-app-notification-line{
  max-width:min(340px,88vw) !important;flex-shrink:0 !important;
}
#screen-splash .splash-tagline2{
  color:#14213D !important;font:800 clamp(15px,4.4vw,18px)/1.3 'DM Sans',sans-serif !important;
  letter-spacing:.13em !important;white-space:nowrap !important;
  text-align:center !important;
}
@media(max-height:740px){
  #screen-splash #splash-logo-block{margin-top:17px !important;}
  #screen-splash .splash-tagline{margin-top:6px !important;margin-bottom:7px !important;}
  #screen-splash .splash-button-group{gap:8px !important;margin-top:4px !important;}
  #screen-splash .splash-btn,#screen-splash .splash-btn-secondary,#screen-splash .splash-btn-community{height:47px !important;min-height:47px !important;}
}
  /* ── v2.11.0 AUTH OVERLAY ─────────────────────────────────────────────────── */
  #auth-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8,18,32,0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 500;
    padding: 0 20px;
    box-sizing: border-box;
  }
  #auth-overlay.visible { display: flex; }
  #auth-card {
    background: linear-gradient(160deg, #0e1e32 0%, #162840 100%);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    padding: 28px 24px 24px;
    width: 100%; max-width: 320px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.08);
    display: flex; flex-direction: column; align-items: center; gap: 0;
  }
  #auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700;
    color: #f5f0e8; text-align: center;
    margin-bottom: 6px; line-height: 1.25;
  }
  #auth-message {
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.55); text-align: center;
    margin-bottom: 22px; line-height: 1.5;
    min-height: 1em;
  }
  #auth-actions {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px; width: 100%;
  }
  .auth-btn-primary {
    width: 100%; padding: 13px 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff; border: none; border-radius: 100px;
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
    cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.12s, box-shadow 0.12s;
  }
  .auth-btn-primary:active { transform: scale(0.97); }
  .auth-btn-secondary {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.88); border-radius: 100px;
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
    cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background 0.12s;
  }
  .auth-btn-secondary:active { background: rgba(255,255,255,0.15); }
  .auth-btn-ghost {
    width: 100%; padding: 11px 16px;
    background: transparent; border: none;
    color: rgba(255,255,255,0.42); border-radius: 100px;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
  }
  /* ── end v2.11.0 AUTH OVERLAY ─────────────────────────────────────────────── */

  /* Course list */
  /* v2.22.24: bright white cards with dark text for outdoor sunlight readability */
  .course-item { background: #ffffff; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 10px rgba(0,0,0,0.12); cursor: pointer; border: 1.5px solid #e0d8cc; }
  .course-item-text { display: flex; flex-direction: column; justify-content: center; }
  .course-item-text-solo { justify-content: center; }
  .course-item-name { font-weight: 700; color: #0f1e30; font-size: 16px; }
  .course-item-info { font-size: 12px; color: #4a5a6a; margin-top: 2px; font-weight: 500; }
  .course-item-arrow { color: #c94d12; font-size: 22px; font-weight: 700; }

  /* Add course tees */
  .tee-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
  .tee-color-dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(0,0,0,0.1); }
  .tee-input-sm { flex: 1; padding: 8px 12px; border: 2px solid var(--cream-dark); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 16px; outline: none; } /* EDIT v1.15.1 — 14→16px: iOS auto-zoom prevention */
  .tee-input-sm:focus { border-color: var(--green-light); }

  /* ── Course Manager / Caddie Data branch — scoped CSS (restored from v3.0.42a, merged into v4.1.1) ── */
  .cm-course-row { background:#fff; border-radius:var(--radius); padding:14px 16px; margin-bottom:10px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 2px 10px rgba(0,0,0,0.10); cursor:pointer; border:1.5px solid #e0d8cc; }
  .cm-course-row-name { font-weight:700; color:#0f1e30; font-size:15px; }
  .cm-course-row-info { font-size:12px; color:#4a5a6a; margin-top:2px; font-weight:500; }
  .cm-tee-row { display:flex; gap:6px; align-items:center; margin-bottom:8px; }
  .cm-tee-row input[type="text"] { flex:1.4; min-width:0; }
  .cm-tee-row input[type="number"] { flex:1; min-width:0; max-width:64px; }
  .cm-tee-remove-btn { flex-shrink:0; width:30px; height:30px; border-radius:50%; border:2px solid #c94d12; background:#fff; color:#c94d12; font-weight:700; font-size:16px; line-height:1; cursor:pointer; }
  .cm-hole-row { background:#fff; border-radius:10px; padding:11px 14px; margin-bottom:7px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 1px 6px rgba(0,0,0,0.08); cursor:pointer; border:1.5px solid #e8e0d4; }
  .cm-hole-row-main { font-weight:700; color:#0f1e30; font-size:14px; }
  .cm-hole-row-sub { font-size:11.5px; color:#4a5a6a; margin-top:2px; }
  .cm-hole-row-flags { font-size:13px; }
  .cm-hole-yd-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
  .cm-hole-yd-row label { flex:1; font-size:13px; font-weight:600; color:var(--charcoal); }
  .cm-hole-yd-row input { width:80px; flex-shrink:0; }
  #cm-hole-img-preview img { width:100%; height:100%; object-fit:contain; display:block; }

  /* Tee options */
  .tee-option { background: var(--white); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.06); } /* EDIT v1.11.0 — smaller padding, 0 margin (grid gap handles) */
  #tee-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; } /* EDIT v1.11.0 — 2-col grid */
  .tee-option.selected { border-color: #2e7d32; background: #e8f5e9; }
  /* EDIT v4.4.0 — How Many Holes buttons (screen-tee): base state is always the
     soft/unselected look; the hard-edge selected look exists ONLY under the
     .selected modifier, applied to exactly one button at a time by
     v3TeeSelectHoles()/v3TeeToggleTournament(). No unconditional rule below
     ever gives the hard edge to all four options. */
  .v3holes-btn { border: 1.5px solid var(--border); background: #fff; }
  .v3holes-btn.selected { border: 2px solid #2e7d32; background: #e8f5e9; }
  .tee-dot-lg { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.15); } /* EDIT v1.11.0 — 28→22px for 2-col grid */
  .tee-option-name { font-weight: 600; font-size: 14px; color: var(--charcoal); } /* EDIT v1.11.0 — 16→14px */
  .tee-option-stats { font-size: 11px; color: var(--sage); margin-top: 2px; } /* EDIT v1.11.0 — 12→11px */
  /* EDIT v1.11.0 — tracking toggle rows on tee screen */
  .tee-track-row { display: flex !important; align-items: center !important; text-align: left !important; padding: 13px 14px !important; border-radius: 10px; margin-bottom: 8px; }
  .tee-track-row .ttr-label { flex: 1; font-weight: 600; font-size: 15px; color: var(--charcoal); }
  .tee-track-row .ttr-sub { font-size: 11px; font-weight: 400; color: var(--sage); display: block; margin-top: 1px; }
  .ttr-toggle { width: 44px; height: 26px; border-radius: 13px; background: #d0cfc8; position: relative; flex-shrink: 0; transition: background 0.18s; }
  .tee-track-row.selected .ttr-toggle { background: var(--gold); }
  .ttr-toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.18s; }
  .tee-track-row.selected .ttr-toggle::after { transform: translateX(18px); }

  /* EDIT game-card-20pct: All card dimensions reduced ~20% */
  .game-card { background: var(--white); border-radius: 12px; padding: 8px 11px; margin-bottom: 6px; border: 2px solid #1a1a1a; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
  .game-card.selected { border-color: var(--gold); background: #fdf4ef; }
  .game-card-header { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
  .game-icon { font-size: 14px; }
  .game-name { font-weight: 700; font-size: 1.2em; color: var(--green-deep); font-family: 'Playfair Display', serif; }
  .game-desc { font-size: 10px; color: #666; line-height: 1.4; }
  .game-badge { margin-top: 4px; }

  /* EDIT game-card-20pct: checkmark and goal-line scaled down */
  .gc-check {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #c94d12;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    line-height: 28px;
    text-align: center;
    box-shadow:
      0 2px 6px rgba(0,0,0,0.45),
      inset 0 1px 0 rgba(255,255,255,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.75);
  }
  .game-card.gc-active .gc-check,
  .game-card.gc-pending .gc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* EDIT game-checkmark-behavior: active/pending card gets highlight — mirrors .selected but driven by JS classes */
  .game-card.gc-active,
  .game-card.gc-pending { border-color: var(--gold); background: #fdf4ef; }
  /* EDIT game-checkmark-behavior: goal line below game description */
  .gc-goal-line { display: none; font-size: 10px; color: var(--teal); font-weight: 600; margin-top: 4px; }
  /* EDIT game-goal-accordion: inline accordion expansion — no modal, no overlay */
  .gc-expand-panel { display: none; padding-top: 6px; margin-top: 5px; border-top: 1px solid var(--cream-dark); }
  .game-card.gc-expanded { cursor: default; }
  .game-card.gc-expanded .game-desc { display: none; }
  .game-card.gc-expanded .gc-goal-line { display: none; }
  .game-card.gc-expanded .game-badge { display: none; }
  .game-card.gc-expanded .gc-expand-panel { display: block; }

  /* EDIT lighten-round-banner: lighter background to match hole header */
  .round-banner { background: #243d5c; display: flex; justify-content: center; align-items: center; gap: 40px; padding: 6px 20px 10px; flex-shrink: 0; }
  .round-banner-item { text-align: center; }
  .round-banner-label { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; display: block; }
  .round-banner-val { font-size: 22px; font-weight: 700; color: var(--cream); display: block; line-height: 1.1; }
  .round-banner-val.rb-under { color: #80deea; }
  .round-banner-val.rb-over  { color: #ffffff; }
  .round-banner-val.rb-even  { color: var(--gold); }

  /* Overlay game picker */
  .overlay-opt { background: var(--white); border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; border: 2px solid var(--cream-dark); cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--charcoal); }
  .overlay-opt.selected { border-color: var(--gold); background: #fdf4ef; color: var(--green-deep); }
  .overlay-opt-icon { font-size: 20px; flex-shrink: 0; }
  .overlay-opt-desc { font-size: 11px; color: var(--sage); font-weight: 400; margin-top: 1px; }
  /* ── PATH SELECT cards ─────────────────────────────── */
  /* v2.22.24: path cards — dark navy with pure white text for maximum sunlight contrast */
  .path-card { border-radius: 18px; padding: 28px 26px 24px; margin-bottom: 14px; cursor: pointer; transition: transform 0.12s; -webkit-tap-highlight-color: transparent; background: #0f1e30; }
  .path-card:active { transform: scale(0.985); }
  /* EDIT v7.6.0 — THE LINKS EQUAL-TREATMENT PASS: Solo Play, Group Round,
     and Challenge are equal primary options — same navy background (shared
     .path-card base rule above), white title/body text (shared .path-title
     / .path-body rules below), and the same Canardly burnt-orange (#CC5500)
     accent for border, kicker, and action text. Card shape, padding,
     margin, typography, and spacing are unchanged and identical across all
     four Links cards; only these accent colors were touched. */
  .path-card-links { border: 2.5px solid #CC5500; }
  .path-card-shack { border: 2.5px solid #CC5500; }
  /* EDIT v7.6.0 — Training Ground: color scheme flipped to a burnt-orange
     background with navy-blue text and a white accent, so it reads as
     clearly distinct from the three navy/white/orange play-mode cards
     above while still using only the approved Canardly palette (burnt
     orange #CC5500, navy #14213D) — no red. Same card shape/padding/
     touch-target as the other three Links cards (shared .path-card base
     rule above); only background, border, and text/accent colors differ. */
  .path-card-training { border: 2.5px solid #14213D; background: linear-gradient(135deg, #CC5500 0%, #b34c00 100%); position: relative; overflow: hidden; }
  .path-card-training::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #ffffff; }
  .path-card-training .path-title { color: #14213D; }
  .path-card-training .path-body { color: rgba(20,33,61,0.88); }
  .path-subline-training { color: #ffffff; }
  .path-action-training { color: #ffffff; }
  /* Training Ground screen header (screen-training / screen-tempo-rhythm):
     same navy as the card family, burnt-orange edge so the section reads as
     visually distinct the moment it opens. Unchanged in v7.6.0 — this pass
     is scoped to The Links page cards only. */
  .header-training { background: #14213D; border-bottom: 3px solid #CC5500; }
  .path-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
  .path-subline { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 14px; }
  .path-subline-links { color: #CC5500; }
  .path-subline-shack { color: #CC5500; }
  .path-body { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.88); margin-bottom: 20px; }
  .path-action { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
  .path-action-links { color: #CC5500; }
  .path-action-shack { color: #CC5500; }
  /* EDIT v7.6.0 — THE LINKS iPHONE READABILITY PASS: secondary descriptive
     text (.path-body) on all four Links cards raised to >=16px on iPhone
     widths only (max-width:480px, matching this app's established
     phone-breakpoint convention — see #screen-hole rules above). Scoped by
     #screen-path-select ID so no other screen that reuses the shared
     .path-body class (Practice Game cards, Tempo & Rhythm hub) is
     affected, and no iPad (481–900px) or desktop (901px+) rule exists here,
     so those widths keep the existing 14px appearance untouched. Card
     height is auto/unconstrained (no max-height/overflow on .path-card),
     so the larger text reflows without clipping. */
  @media (max-width: 480px) {
    #screen-path-select .path-body { font-size: 16px; line-height: 1.5; }
  }
  /* ── TRACKING TOGGLE ─────────────────────────────────── */
  .track-opt { background: var(--white); border: 2px solid var(--cream-dark); border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all 0.15s; }
  .track-opt.selected { border-color: var(--gold); background: #fdf4ef; }
  .track-opt:active { transform: scale(0.97); }
  /* ── TRAINING GAME multi-select ──────────────────────── */
  /* EDIT game-checkmark-behavior: tg-selected pseudo-checkmark removed — now handled by .gc-check */
  .game-card.tg-selected { border-color: var(--gold); background: #fdf4ef; }
  /* ─────────────────────────────────────────────────── */
  /* EDIT v1.31.3 — game-selected + tees-selected display pills */
  .game-selected{background:#cc5500;border:2px solid #1a1a1a;color:#fff;border-radius:8px;padding:6px 10px;display:flex;align-items:center;gap:8px;font-weight:600}
  .game-selected .checkmark{color:#fff;font-size:16px;font-weight:900;line-height:1}
  .choose-tees-btn{background:rgba(46,125,50,0.18);border:2px solid #2e7d32;color:#000000;}

  /* ─────────────────────────────────────────────────────────
     HOLE SCREEN — MAP-LAYER ARCHITECTURE
     
     Layer 0 (z:0)  .hole-map-layer   — pure background placeholder
                                         replace with real map later, nothing changes
     Layer 1 (z:20) .hfe-row1         — top controls (independent)
     Layer 1 (z:20) .hole-bottom-tray — bottom card (independent)
     Layer 1 (z:20) .score-only-panel — score-mode entry (independent)
     Layer 2 (z:25) .hole-edit-banner — edit alert (independent)
     Layer 3 (z:80) .hole-popup       — bottom sheet overlays
  ───────────────────────────────────────────────────────── */

  /* Screen: positioning context only — no background, no layout */
  #screen-hole.active {
    position: relative;
    display: block;
    background: none;
  }

  /* ── LAYER 0: MAP PLACEHOLDER ────────────────────────────
     EDIT v1.1.1 layout-parity: richer fairway gradient for open-center feel.
     position: absolute; inset: 0 — fills screen edge to edge.
     No flex, no children, no content.
     Swap background for a real map image/canvas here later.
  ── */
  .hole-map-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* EDIT v1.30.5 — removed light green fill */
  }
  /* v3.0.18 — Hole rendering removed completely: container hidden, no image/
     color/placeholder of any kind put in its place; page stays transparent.
     v3.0.19 — restored default background-image (the same placeholder every
     hole used before v3.0.18) on the base rule so Hole 1's override below
     has the standard look to fall back on — still has no visual effect on
     Holes 2–18, which remain display:none via the rule directly below. */
  #hole-map-container {
    display: none !important;
    background-image: none;
  }
  /* v3.0.19 — Hole 1 only: re-enable the container with the standard/default
     placeholder rendering (NOT the black-background per-hole PNG that used
     to be wired to hd.img — that mechanism stays removed). Holes 2–18 keep
     the display:none above untouched. */
  body[data-hole="1"] #hole-map-container {
    display: block !important;
  }
  /* v7.7.53 — legacy per-hole raster/static image rendering retired. */

  /* v4.2.2 — Hole Page rendering-source overlay: same dark/monospace debug
     styling as #splash-debug-footer, positioned as a top-anchored panel so
     it never fights with the bottom nav/footer rows. z-index above the map
     layer and picker panels so it is always readable when toggled on. */
  .hole-source-trace {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    z-index: 900;
    background: rgba(0,0,0,0.86);
    color: #7fff7f;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.6;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
    white-space: pre-wrap;
    word-break: break-all;
  }
  .hole-source-trace b { color: #ffffff; }
  /* v1.28.0 — .hole-number CSS removed; all hole numbers shown only via #hf-hole-float */
  /* EDIT v1.27.8 — Moved hole number top-left, increased size, switched to dark numerals with black stroke for visibility. */
  /* .hole-number {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #0b1f3a;
    font-size: 42px;
    font-weight: 800;
    -webkit-text-stroke: 2px #000000;
    text-stroke: 2px #000000;
    letter-spacing: 1px;
    z-index: 5;
  } */
  /* Faint "Hole Map" watermark — hidden in v1.27.5 (rendered image replaces it) */
  .hole-map-label {
    display: none;
  }

  /* ── LAYER 1: EDIT ALERT (above map, below popups) ─────── */
  .hole-edit-banner {
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 25;
    background: rgba(201,77,18,0.92); color: #fff;
    padding: 6px 14px; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
  }

  /* EDIT v1.1.13 hole-edit-overlay: pencil-button edit modal — z-index 82, sits above bottom sheets */
  /* EDIT v1.15.34 — full screen modal */
  .hole-edit-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: rgba(10,18,32,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .hole-edit-overlay.open { display: flex; }
  .he-box {
    background: var(--cream);
    border-radius: 0;
    padding: 20px;
    width: 100%;
    height: 100%;
    max-width: none;
    position: relative;
  }
  .he-close {
    position: absolute; top: 12px; right: 12px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #c94d12; border: 2px solid #ffffff;
    font-size: 30px; color: #ffffff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);
    z-index: 9999;
    line-height: 1;
  }
  .he-close:active { transform: scale(0.92); opacity: 0.9; }
  .he-editing-label {
    font-size: 11px; font-weight: 700;
    color: var(--gold);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 4px;
  }
  .he-title {
    font-family: 'Playfair Display', serif;
    font-size: 19px; font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 18px;
  }
  .he-stepper-row {
    display: flex; align-items: center;
    justify-content: center; gap: 20px;
    margin-bottom: 22px;
  }
  .he-stepper-btn {
    width: 52px; height: 52px;
    border-radius: 14px;
    font-size: 28px; font-weight: 900;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .he-stepper-btn-minus {
    border: 2px solid var(--cream-dark);
    background: var(--cream); color: var(--green-deep);
  }
  .he-stepper-btn-minus:active { background: var(--cream-dark); }
  .he-stepper-btn-plus {
    border: none;
    background: var(--green-deep); color: var(--gold);
  }
  .he-stepper-btn-plus:active { background: var(--green-mid); }
  .he-stepper-val {
    font-size: 58px; font-weight: 700;
    color: var(--green-deep);
    min-width: 72px; text-align: center; line-height: 1;
  }
  .he-btn-row {
    display: flex; gap: 10px;
  }
  .he-btn-cancel {
    flex: 1; padding: 13px;
    border-radius: 12px;
    border: 2px solid var(--cream-dark);
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 600;
    color: var(--charcoal); cursor: pointer;
  }
  .he-btn-cancel:active { background: var(--cream-dark); }
  .he-btn-save {
    flex: 1; padding: 13px;
    border-radius: 12px; border: none;
    background: var(--green-deep);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 700;
    color: #ffffff; cursor: pointer; /* v2.20.6 — white text on dark-blue save btn */
  }
  .he-btn-save:active { background: var(--green-mid); }
  .he-btn-delete { /* EDIT v1.15.1 — Panel S delete shot button */
    flex: 1; padding: 13px;
    border-radius: 12px; border: none;
    background: #c94d12;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 700;
    color: #fff; cursor: pointer;
  }
  .he-btn-delete:active { background: #a03d0e; }

  /* EDIT v1.1.11 he-menu: pencil menu buttons for full-tracking branch */
  .he-menu-btn {
    display: block; width: 100%;
    padding: 14px 16px; margin-bottom: 9px;
    border-radius: 13px; border: 2px solid var(--cream-dark);
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 700; color: var(--green-deep);
    cursor: pointer; text-align: left;
    -webkit-tap-highlight-color: transparent; transition: all .12s;
  }
  .he-menu-btn:active { background: var(--cream-dark); transform: scale(0.98); }
  .he-menu-btn.he-menu-danger { color: #8b5a00; border-color: #e8d5a0; } /* EDIT v1.8.8 — amber, no red */
  .he-menu-btn.he-menu-ghost  { color: var(--sage); background: transparent; }
  /* Edit shots list row inside overlay */
  /* EDIT SHOTS — FORCE READABILITY */
  .he-shot-row {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 2px solid rgba(0,0,0,0.12) !important;
    min-height: 60px !important;
    padding: 14px 8px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .he-shot-label,
  .he-shot-value,
  .he-shot-row span,
  .he-shot-row div {
    color: #0b1f3a !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    line-height: 1.2 !important;
  }
  .he-shot-row .muted,
  .he-shot-row .secondary,
  .he-shot-row .subtle {
    color: #0b1f3a !important;
    opacity: 1 !important;
  }
  .he-shot-row button {
    font-size: 16px;
  }
  .he-shot-row:last-child { border-bottom: none; }
  .he-shot-del { background: none; border: none; color: #7a3b1e; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; -webkit-tap-highlight-color: transparent; } /* v2.21.0 — larger tap target */
  .he-shot-del:active { color: #8b5a00; } /* EDIT v1.8.8 — amber, no red */

  /* ── LAYER 1: SCORE-ONLY PANEL ──────────────────────────
     Centered in the screen, independent of map layer.
  ── */
  .score-only-panel {
    position: absolute;
    top: 40%; left: calc(50% - 34px); transform: translate(-50%, -50%); /* v1.22.1 — 50%→40%: upper half for cart-band usability (was v1.15.37) */
    z-index: 20;
    display: none;
    flex-direction: column; align-items: center; gap: 16px; padding: 20px;
    max-width: calc(100% - 80px); /* EDIT v1.15.37 — constrain width away from right bar */
  }
  .score-only-panel.visible { display: flex; }
  .so-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; }
  .so-ctrl { display: flex; align-items: center; gap: 24px; }
  .so-minus { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); color: #fff; font-size: 34px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
  .so-minus:active { background: rgba(255,255,255,0.28); }
  .so-plus { width: 64px; height: 64px; border-radius: 50%; border: none; background: var(--gold); color: #fff; font-size: 34px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
  .so-plus:active { background: var(--gold-light); }
  .so-num { font-size: 72px; font-weight: 700; color: #fff; min-width: 80px; text-align: center; line-height: 1; }
  .so-log-btn { width: 100%; max-width: 240px; padding: 16px; background: linear-gradient(160deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%); color: #fff; border: none; border-radius: 14px; font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity 0.15s; } /* EDIT v1.15.36 — green to match Holed */
  .so-log-btn:disabled { opacity: 0.35; cursor: default; }
  .so-log-btn:not(:disabled):active { opacity: 0.85; }

  /* ── LAYER 1: MAP-FIRST OVERLAY ELEMENTS ───────────────────────
     EDIT v1.1.2 redesign: independent overlay boxes — no grouped containers.
     Each element is absolutely positioned on its own.
     Solid color only — no blur, no glassmorphism.
     Map stays visible around and between all elements.
  ── */

  /* ── v1.17.5 SCORECARD-FIRST TOP BAR ─────────────────────────────────────
     Row1 = Single inline info line: #N | p X | h X | y XXX | score | vsPar
     Hole number ~15-20% smaller than main info text.
     Row2 = Shot Tracker.
     Steel blue 50% opacity — readable over light page background.
  ── */
  .hf-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 21;
    /* v7.6.66 -- the legacy navy gradient (#1f3f63 -> #14283f), orange top border and dark drop shadow are removed here, so no
       other colour source exists for the Hole Info Bar. It uses the exact Footer Bar values (shared --hf-bar-* variables). */
    background: var(--hf-bar-bg, linear-gradient(180deg, #4A82B3 0%, #3E73A1 58%, #356A98 100%));
    border-top: none;
    box-shadow: var(--hf-bar-shadow-top, inset 0 3px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.40), 0 1px 0 rgba(0,0,0,0.25), 0 3px 8px rgba(0,0,0,0.22));
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0 4px; /* horizontal only; vertical space controlled by row padding */
  }
  /* Inner column fills full width */
  .hftb-rows-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  /* Row 1: Hole info — single centered inline line (ONE LINE ONLY — shot tracker moved below) */
  /* v1.19.4 — +25% taller bar, more padding around separators, arrows flanking inside bar */
  .hftb-row1 {
    display: flex;
    align-items: center;
    justify-content: center; /* centered across full bar width */
    padding: 2px 46px; /* v3.0.17 — reduced vertical padding further (was 4px) */
    gap: 0;
    min-height: 46px; /* v3.0.17 — shortened bar (was 69px); font sizes unchanged */
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    position: relative; /* v1.26.1 — allows absolute positioning of golf-ball nav buttons */
  }
  /* Row 2: hidden — shot tracker now lives below the bar as #hf-shot-track-outer */
  .hftb-row2 {
    display: none !important;
  }
  /* v1.19.3 — shot tracker: now absolutely positioned below the top bar */
  .hftb-shot-track {
    flex: 1;
    font-size: 18px; /* v1.19.4 — proportionally larger for 2× taller bar (was 13px) */
    font-weight: 700;
    color: #1a2d4a; /* dark blue */
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; /* v1.22.1 — smooth scroll for smart auto-scroll */
    text-align: left;
    letter-spacing: 0.01em;
    min-height: 22px;
    line-height: 22px;
  }
  .hftb-shot-track::-webkit-scrollbar { display: none; }
  /* v1.19.4 — shot tracker outer: positioned below top bar, above game bar; 2× taller */
  #hf-shot-track-outer {
    display: none !important;
  }
  /* v1.28.0 — .hftb-hole-num-inline disabled; hole number only in #hf-hole-float */
  /* Hole number inline — v1.26.7: 250% larger (75px), # prefix smaller */
  /* .hftb-hole-num-inline {
    font-size: 75px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    margin-right: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.80);
    border-radius: 6px;
    padding: 1px 7px 1px 5px;
  } */
  .hftb-hole-num-inline { display: none !important; }
  /* # prefix — smaller than the number */
  /* .hftb-hole-num-inline .hole-hash {
    font-size: 42px;
    font-weight: 700;
    opacity: 0.80;
    line-height: 1;
    vertical-align: middle;
  } */
  /* Scorecard items in Row 1 */
  .hftb-sc-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
  }
  /* v1.19.4 — all info text +25% (30px), uniform */
  .hftb-sc-label {
    font-size: 20px; /* v1.30.15 — tightened to reduce crowding */
    font-weight: 800;
    color: rgba(255,255,255,0.95); /* v1.35.2 — 0.90→0.95 */
    letter-spacing: 0.01em;
    text-transform: lowercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.70); /* v1.35.2 — legibility shadow */
  }
  .hftb-sc-val {
    font-size: 27px; /* v1.30.15 — tightened from 29px */
    font-weight: 900; /* v1.35.2 — 800→900 */
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.75); /* v1.35.2 — sunlight readability */
  }
  .hftb-sc-sep {
    font-size: 20px; /* v1.30.15 — tightened */
    font-weight: 600;
    color: rgba(255,255,255,0.65); /* v1.35.2 — 0.55→0.65 */
    margin: 0 4px; /* v1.30.15 — tightened from 7px */
    flex-shrink: 0;
  }
  .hftb-sc-score { font-size: 27px; font-weight: 900; color: #fff; flex-shrink: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.75); } /* v1.35.2 — 800→900, shadow */
  .hftb-sc-vspar { font-size: 27px; font-weight: 900; color: #fff; flex-shrink: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.75); } /* v1.35.2 — 800→900, shadow */

  /* ── Hole number box: hidden — replaced by inline text in Row 1 ── */
  .hftb-hole-num-box { display: none !important; }
  .hftb-hole-num-text { display: none; }

  /* << Back button: floats on left side above the Club button in footer area */
  .hftb-back-float {
    position: absolute;
    left: 8px;
    z-index: 30;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: 20px;
    font-weight: 400; /* not bold per spec */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
    padding: 0;
    letter-spacing: -0.05em;
  }
  .hftb-back-float:active { background: rgba(255,255,255,0.10); }

  /* Hide old floating elements replaced by the new bar */
  .hf-hole-box { display: none !important; }
  .hole-number-display { display: none !important; } /* v1.28.0 — suppressed; only #hf-hole-float used */
  .hole-done-badge { display: none !important; }
  /* Old hftb-back inside top bar row: hide (replaced by float) */
  .hftb-back {
    display: none !important;
  }
  .hf-arrow-back {
    display: none !important;
  }

  /* v1.26.7 — hf-arrow-left: white golf-ball IMAGE button at far left edge of hole info bar */
  .hf-arrow-left {
    position: absolute;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.12s, transform 0.12s;
    z-index: 2;
    overflow: visible;
  }
  .hf-arrow-left img.hf-ball-img {
    width: 40px; height: 40px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  }
  .hf-arrow-left span.hf-ball-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px; font-weight: 900;
    color: #10263f;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    white-space: nowrap;
    line-height: 1;
  }
  .hf-arrow-left:active   { opacity: 0.7; transform: translateY(-50%) scale(0.93); }
  .hf-arrow-left:disabled { opacity: 0.28; cursor: default; pointer-events: none; }

  /* v1.26.7 — hf-arrow-right: white golf-ball IMAGE button at far right edge of hole info bar */
  .hf-arrow-right {
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.12s, transform 0.12s;
    z-index: 2;
    overflow: visible;
  }
  .hf-arrow-right img.hf-ball-img {
    width: 40px; height: 40px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  }
  .hf-arrow-right span.hf-ball-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px; font-weight: 900;
    color: #10263f;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    white-space: nowrap;
    line-height: 1;
  }
  .hf-arrow-right:active   { opacity: 0.7; transform: translateY(-50%) scale(0.93); }
  .hf-arrow-right:disabled { opacity: 0.28; cursor: default; pointer-events: none; }

  /* v1.26.7 — #hf-back-float: white-ball IMAGE button, lower left, << centered on ball */
  #hf-back-float {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.12s, transform 0.12s;
    overflow: visible;
  }
  #hf-back-float img.hf-ball-img {
    width: 48px; height: 48px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  }
  #hf-back-float span.hf-ball-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px; font-weight: 900;
    color: #10263f;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.05em;
  }
  #hf-back-float:active { opacity: 0.7; transform: scale(0.93); }

  /* v3.0.18 — #hf-hole-float: moved from bottom-right (over the now-removed
     map) to a small freestanding badge in the upper-right corner, just below
     whichever stack/game row is lowest (top set at runtime by
     nsfPositionHoleMap()). Still no golf-ball graphic — text only. */
  #hf-hole-float {
    position: absolute;
    top: auto;
    /* v3.0.31 — floats directly above the Clubhouse footer button (right column
       of the 3-button nav row) instead of the old top-right corner badge.
       Horizontal center matches the center of the Clubhouse column: footer has
       8px side padding and 3 equal nav columns, so Clubhouse's column center
       sits at 8px + (5/6) of the remaining width. */
    bottom: 128px;
    right: auto;
    left: calc(8px + (100% - 16px) * (5 / 6));
    transform: translateX(-50%);
    z-index: 50;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #071a2f;
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 900;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    padding: 2px 0;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    box-shadow: none;
    line-height: 1;
    letter-spacing: -0.02em;
    pointer-events: none; /* decorative read-out; doesn't intercept taps meant for Clubhouse below */
  }
  #hf-hole-float:active { background: rgba(255,255,255,0.10); }

  /* v1.30.4 — Shot Tracker FAB: flex-center launcher icon */
  #shot-tracker-fab {
    position: absolute;
    left: 0.4in;
    bottom: calc(88px + 0.5in); /* lowered 0.25in per directive; left set to 0.4in off edge */
    width: 40px;                 /* slightly smaller than Hole # */
    height: 40px;
    background: transparent;     /* NO circle/background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    cursor: pointer;
    pointer-events: auto;
  }
  #shot-tracker-fab img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); /* readability on course bg */
    opacity: 0.95;
  }
  #shot-tracker-fab:active {
    transform: scale(0.96);
    opacity: 0.85;
  }
  #shot-tracker-fab .shot-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
  }
  /* v3.0.16 — #shotTrackerBtn removed: shot-tracking control deleted from Hole Page (new scoring model). */
  /* EDIT vNEXT — old #nsf-shot-btn rule removed entirely (element deleted). New score ball uses #screen-hole .hole-score-ball-btn (see Hole Page score ball section). */

  /* v2.23.6 — Edit/Manage Round popup */
  /* v4.3.0 — selectors extended to also match #scoring-mode-popup so the new
     Scoring Mode change popup reuses this exact card styling. */
  /* v5.0 — selectors extended to also match #penalty-relief-popup (Add Score's
     Penalty / Relief popup) for the same reason — reuses this exact card styling,
     no new popup CSS added. */
  #edit-manage-popup, #scoring-mode-popup, #penalty-relief-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 9500;
    align-items: center;
    justify-content: center;
  }
  #edit-manage-popup.open, #scoring-mode-popup.open, #penalty-relief-popup.open {
    display: flex;
  }
  #edit-manage-popup .emp-card, #scoring-mode-popup .emp-card, #penalty-relief-popup .emp-card {
    background: #0f1e30;
    border-radius: 16px;
    width: 88%;
    max-width: 360px;
    padding: 0 0 12px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    overflow: hidden;
  }
  #edit-manage-popup .emp-title, #scoring-mode-popup .emp-title, #penalty-relief-popup .emp-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #f5f0e8;
    text-align: center;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.01em;
  }
  #edit-manage-popup .emp-row, #scoring-mode-popup .emp-row, #penalty-relief-popup .emp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
  }
  #edit-manage-popup .emp-row:last-child, #scoring-mode-popup .emp-row:last-child, #penalty-relief-popup .emp-row:last-child {
    border-bottom: none;
  }
  #edit-manage-popup .emp-row:active, #scoring-mode-popup .emp-row:active, #penalty-relief-popup .emp-row:active {
    background: rgba(255,255,255,0.08);
  }
  #edit-manage-popup .emp-ball {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  #edit-manage-popup .emp-row.emp-danger {
    color: #ff6b6b;
  }
  /* v5.3-v5.9 — PENALTY COLOR CORRECTION: the four Penalty / Relief popup options (OB /
     Lost Ball — Stroke & Distance, OB / Lost Ball — Local Rule, Penalty Area Drop, Free
     Relief) use the exact same #D25326 as the Penalty / Relief chip and the splash
     screen's "Continue as..." button, instead of the plain white shared with the other two
     popups above — scoped to #penalty-relief-popup only, so Edit/Manage Round and Scoring
     Mode keep their original white .emp-row text unchanged. */
  #penalty-relief-popup .emp-row {
    color: #D25326;
  }

  /* v7.5.48 — #scoring-mode-apply-popup (This Round / Make Default choice, directive
     "Solo Score scoring-detail override" §4): reuses the exact same .emp-card/
     .emp-title/.emp-row visual treatment as #edit-manage-popup/#scoring-mode-popup/
     #penalty-relief-popup above, added as its own additive rule (rather than editing
     the fixed selector list above) so none of those three existing popups' CSS is
     touched by this pass. */
  #scoring-mode-apply-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 9500;
    align-items: center;
    justify-content: center;
  }
  #scoring-mode-apply-popup.open {
    display: flex;
  }
  #scoring-mode-apply-popup .emp-card {
    background: #0f1e30;
    border-radius: 16px;
    width: 88%;
    max-width: 360px;
    padding: 0 0 12px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    overflow: hidden;
  }
  #scoring-mode-apply-popup .emp-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #f5f0e8;
    text-align: center;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.01em;
  }
  #scoring-mode-apply-popup .emp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
  }
  #scoring-mode-apply-popup .emp-row:last-child {
    border-bottom: none;
  }
  #scoring-mode-apply-popup .emp-row:active {
    background: rgba(255,255,255,0.08);
  }

  /* v4.3.0 — Club Tracking popup (Hole Page Club ball → My Bag, putter excluded) */
  #club-track-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 9500;
    align-items: center;
    justify-content: center;
  }
  #club-track-popup.open { display: flex; }
  #club-track-popup .ctp-card {
    background: #0f1e30;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 82vh;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #club-track-popup .ctp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
  }
  #club-track-popup .ctp-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #f5f0e8;
  }
  #club-track-popup .ctp-close-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #club-track-popup .ctp-body {
    padding: 14px 16px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #club-track-popup .ctp-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #c8a96e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }
  #club-track-popup .ctp-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 20px;
  }
  #club-track-popup .ctp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 5px 6px 5px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
  }
  #club-track-popup .ctp-chip-x {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #club-track-popup .ctp-empty-note {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    padding: 6px 0;
  }
  #club-track-popup .ctp-undo-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #club-track-popup .ctp-undo-btn:disabled {
    opacity: 0.4;
    cursor: default;
  }

  /* v4.3.2 — Club Tracking popup: compact 3-per-row grid so every non-putter
     club fits one screen on supported iPhone/iPad with no vertical scrolling.
     Scoped to #club-track-popup only — does NOT alter the shared .nsf-club-grid/
     .nsf-ball-pick-btn defaults used by the separate Full-Tracking club picker
     elsewhere in the app. */
  #club-track-popup .ctp-card {
    max-height: 92vh;
  }
  #club-track-popup .ctp-header {
    padding: 12px 14px 10px;
  }
  #club-track-popup .ctp-body {
    padding: 10px 14px 12px;
  }
  #club-track-popup .ctp-section-label {
    margin-bottom: 6px;
    margin-top: 10px;
  }
  #club-track-popup .ctp-section-label:first-child {
    margin-top: 0;
  }
  #club-track-popup .nsf-club-grid {
    grid-template-columns: repeat(3, 1fr); /* exactly 3 clubs per row */
    gap: 8px;
    max-height: none; /* let the whole card size to content instead of a nested scroll box */
    overflow-y: visible;
  }
  #club-track-popup .nsf-ball-pick-btn {
    width: 81px;
    height: 81px; /* EDIT v5.5.2 — 54px×54px + 50% = 81px×81px, scoped to #club-track-popup .nsf-ball-pick-btn only */
  }
  #club-track-popup .nsf-ball-pick-btn span {
    font-size: 18px; /* EDIT v5.5.2 — scaled proportionally with ball size (12px + 50% = 18px) */
    max-width: 69px; /* EDIT v5.5.2 — scaled proportionally with ball size (46px + 50% = 69px) so label stays centered/readable */
    line-height: 1.05;
  }
  #club-track-popup .ctp-selected-list {
    gap: 5px;
    margin-top: 2px;
  }
  #club-track-popup .ctp-chip {
    padding: 4px 5px 4px 10px;
    font-size: 11.5px;
  }
  #club-track-popup .ctp-chip-x {
    width: 18px; height: 18px;
  }
  #club-track-popup .ctp-undo-btn {
    margin-top: 10px;
    padding: 10px;
    font-size: 13px;
  }

  /* v1.29.3 — Uniform footer golf ball label typography matching scorecard */
  .nsf-footer-nav span,
  .footer-btn span,
  .nsf-ball-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;   /* MUST match scorecard */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
  }

  /* Old hf-info-box — hidden, replaced by hftb-row2 */
  .hf-info-box { display: none !important; }
  .hfib-item  { display: none; }
  .hfib-val   { display: none; }
  .hfib-val-sm { display: none; }
  .hfib-val-lg { display: none; }
  .hfib-label { display: none; }
  .hfib-sep   { display: none; }

  /* Old floating shot track — hidden, handled inside top bar row1 */
  .hf-shot-track { display: none !important; }

  /* ── FLOATING HOLE NUMBER BOX — now inside top bar as .hftb-hole-num-box ── */
  .hf-hole-num-float { display: none !important; }
  .hf-hole-num-float-num { display: none; }

  /* EDIT v1.7.5F hf-putts-btn: Row 2 aligned — top:60 matches description bar */
  .hf-putts-btn {
    position: absolute;
    top: 60px;
    right: 12px;
    z-index: 21;
    background: var(--teal);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 700;
    padding: 7px 12px;
    height: 40px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    display: none;
    align-items: center; justify-content: center;
    gap: 4px;
    transition: opacity 0.15s;
  }
  .hf-putts-btn:active { opacity: 0.75; }

  /* ── EDIT v1.5.0 THREE-BAR RIGHT-SIDE INPUT SYSTEM ──────────────────────
     .hf-bar-system: outer positioning container; transparent; bars inside
     .hf-bar: one bar — hidden by default, flex when .bar-active
     .hf-bar-inner: the visible pill (bg + border-radius)
  ── */
  /* EDIT v1.7.5 hf-bar-system: right side, vertically centered in play area */
  /* Play area: ~118px (top cluster) to ~726px (footer top) — center ~422px */
  .hf-bar-system {
    position: absolute;
    right: 8px;
    top: 50%;  /* EDIT v1.15.18 — 422px→50% true vertical centering in play area */
    transform: translateY(-50%);
    height: 460px; /* EDIT v1.13.0 — 380→460px: shows 8 buttons (56px launcher + 7×44px + gaps) */
    max-height: 460px;
    z-index: 22;
    width: 60px;
    pointer-events: none;
  }
  .hf-bar {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    pointer-events: all;
    overscroll-behavior: contain; /* EDIT v1.5.1 — prevent iOS scroll chaining to page */
    touch-action: pan-y;          /* EDIT v1.5.1 — confine touch scroll to vertical bar only */
  }
  .hf-bar::-webkit-scrollbar { display: none; }
  .hf-bar.bar-active { display: flex; }
  .hf-bar-inner {
    background: rgba(0,0,0,0.72); /* EDIT v1.15.35 — solid dark bar: buttons clearly lighter than background */
    backdrop-filter: blur(6px); /* EDIT v1.15.9 — restored */
    -webkit-backdrop-filter: blur(6px);
    border-radius: 30px; /* EDIT v1.15.1 — true capsule (was 14px) */
    width: 60px; /* EDIT v1.7.3 — matches wider bar-system */
    padding: 8px 5px 10px 5px; /* EDIT v1.15.38 — 10/6/12/6→8/5/10/5px: slightly tighter to support larger button text */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  /* Standard icon button in bar — UTILITY FAMILY: teal circle 3D */ /* EDIT v1.15.19 — rounded-square→circle (50%), 44→48px, 40→48px min-height */
  .hfbar-btn {
    width: 52px;
    min-height: 52px; /* EDIT v1.15.20 — 48→52px slightly larger */
    background: linear-gradient(160deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%); /* EDIT v1.15.31 — brighter teal for contrast on dark bar */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 1px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
    box-shadow: 0 3px 7px rgba(0,0,0,0.42), 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.38);
  }
  .hfbar-btn:active { background: linear-gradient(160deg, #2a8a6a 0%, #1c6050 100%); } /* EDIT v1.15.31 — press state for brighter teal */
  .hfbar-btn svg { display: block; flex-shrink: 0; }
  /* Holed action button — teal utility, brighter tint for primary action */ /* EDIT v1.15.1 */
  .hfbar-holed-btn {
    background: linear-gradient(160deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%) !important; /* EDIT v1.15.31 — brighter teal family */
    color: #fff !important;
    border-radius: 50%;
    min-height: 52px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.42), 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.45) !important;
  }
  .hfbar-holed-btn:active { opacity: 0.78 !important; }
  /* Putts action button — forest green utility */ /* EDIT v1.15.20 */
  .hfbar-putts-btn {
    background: linear-gradient(160deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%) !important; /* EDIT v1.15.31 — brighter teal family */
    color: #fff !important;
    border-radius: 50%;
    box-shadow: 0 3px 7px rgba(0,0,0,0.42), 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.45) !important;
  }
  .hfbar-putts-btn:active { opacity: 0.78 !important; }
  /* EDIT v1.15.20 — clubs-bar edit button: dark forest green utility family */
  .hfbar-clubs-edit-btn {
    background: linear-gradient(160deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%) !important; /* EDIT v1.15.31 — brighter teal family */
    color: #fff !important;
    box-shadow: 0 3px 7px rgba(0,0,0,0.42), 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.38) !important;
  }
  .hfbar-clubs-edit-btn:active { background: linear-gradient(160deg, #154838 0%, #0d3028 100%) !important; color: #fff !important; }
  /* EDIT v1.9.0 — launcher: vivid amber gold — rich contrast on navy, not a red variant */
  /* EDIT v1.15.3 — launcher: burnt orange family, white text, matches club btn color spec */
  .hfbar-club-launcher {
    width: 52px; height: 52px; min-height: 52px; /* EDIT v1.15.21 — perfect circle, same size as index btns */
    background: linear-gradient(150deg, #e07a3c 0%, #cf6e30 55%, #b85a22 100%); /* EDIT v1.15.35 — lighter burnt orange matching club btn */
    color: #ffffff;
    border-radius: 50%; /* EDIT v1.15.21 — true circle */
    box-shadow: 0 4px 14px rgba(168,85,32,0.55), 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,160,90,0.4);
  }
  .hfbar-club-launcher.launcher-active {
    background: linear-gradient(150deg, #8a3a10 0%, #7a3000 100%);
  }
  .hfbar-club-val {
    font-size: 13px; font-weight: 800; color: #ffffff; /* EDIT v1.15.3 — white on burnt orange launcher */
    letter-spacing: 0.04em; line-height: 1; margin-top: 1px;
  }
  /* Thin separator */ /* EDIT v1.5.1 narrowed to match smaller buttons */
  /* EDIT v1.8.2 — 36px to stay proportional inside 44px buttons */
  .hfbar-sep {
    width: 34px; height: 1px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
  }
  /* Club bar button — CLUB FAMILY: true circle, burnt orange 3D */ /* EDIT v1.15.3 */
  .hfbar-club-btn {
    width: 52px; height: 52px; /* EDIT v1.15.32 — 44→52px matches index btn size */
    background: linear-gradient(150deg, #f09050 0%, #e07840 55%, #cc6428 100%); /* EDIT v1.15.37 — lighter burnt orange, clearly above dark bar */
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px; font-weight: 800; color: #ffffff; /* EDIT v1.16.7 — 22→24px (+10%): larger club labels; text-shadow for outdoor contrast */
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 0 6px rgba(0,0,0,0.3); /* EDIT v1.16.7 — dark edge: improves outdoor legibility */
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s;
    flex-shrink: 0;
    padding: 0 1px; /* EDIT v1.15.38 — 0 2px→0 1px: slightly tighter to support larger font */
    box-shadow: 0 4px 14px rgba(168,85,32,0.65), 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,160,90,0.5);
  }
  .hfbar-club-btn:active { background: linear-gradient(150deg, #9a4010 0%, #8a3000 100%); } /* EDIT v1.15.37 */
  .hfbar-club-btn.club-tapped { background: linear-gradient(150deg, #9a4010 0%, #8a3000 100%); } /* EDIT v1.15.37 */
  /* Lie bar button */ /* EDIT v1.6.0 softer bg, 17px text, trimmed height */
  /* EDIT v1.6.1 font 18px, min-height 30px */
  /* EDIT v1.7.1 taller buttons: min-height 40px, margin 3px, font 20px */
  /* EDIT v1.7.2: margin removed; gap on parent handles spacing */
  /* EDIT v1.7.3: width 46px, border-radius 10px — unified with shared base */
  /* EDIT v1.7.7: lighter bg #edf3fc, font 22px, min-height 38px */
  /* EDIT v1.8.8: 32→46px min-height — taller tap targets; font 24px maintained */
  /* EDIT v1.15.34 — lie btn: burnt orange mid #d8924a, white text */
  /* EDIT v1.15.37 — lie btn: lighter #f0b070 warm amber, white text, font 22px contained */
  .hfbar-lie-btn {
    width: 52px; height: 52px; min-height: 52px; /* EDIT v1.15.32 — 43→52px matches index btn size */
    background: #f0b070; /* EDIT v1.15.37 — lighter warm amber (clearly above dark bar) */
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 25px; font-weight: 800; color: #3a1a00; /* EDIT v1.15.38 — 22→25px: larger lie labels, easier at a glance while walking */
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s, color 0.1s;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.45);
  }
  /* EDIT v1.15.37 — condition buttons: lighter warm tan, dark text for contrast on light bg */
  .hfbar-cond-btn {
    width: 52px; height: 52px; min-height: 52px;
    background: #e8c890; /* EDIT v1.15.37 — light warm tan (clearly lighter than bar) */
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 19px; font-weight: 800; color: #3a1a00; /* EDIT v1.15.38 — 16→19px: larger condition labels for outdoor readability */
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s, color 0.1s;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.55);
  }
  .hfbar-cond-btn:active { background: #c8a060; color: #2a0e00; } /* EDIT v1.15.37 — darker amber press */
  .hfbar-cond-btn.lie-sel-cond { background: var(--teal); color: #fff; }
  /* EDIT v1.15.37 — 3-char condition labels same as cond-btn base font */
  #lie-btn-Rgh, #lie-btn-Snd, #lie-btn-Fr, #lie-btn-Fc { font-size: 19px; } /* EDIT v1.15.38 — 16→19px: matches cond-btn base font increase */
  .hfbar-lie-btn:active { background: #c88040; color: #ffffff; } /* EDIT v1.15.37 — darker press on light amber */
  .hfbar-lie-btn.lie-sel { background: var(--gold); color: #1a0800; }
  .hfbar-lie-btn.lie-sel-cond { background: var(--teal); color: #fff; }
  .hfbar-lie-btn.lie-ob { background: #e8d5a0; color: #5a3a00; } /* EDIT v1.8.8 — amber penalty, no red */
  .hfbar-lie-btn.lie-ob:active { background: #c94d12; color: #fff; } /* EDIT v1.8.8 — burnt orange press */

  /* ── SHOT NOTE ── */
  .hfbar-shotnote-btn {
    width: 52px; height: 52px; min-height: 52px;
    background: linear-gradient(150deg, #4a7a9b 0%, #3a6080 55%, #2a4860 100%);
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 800; color: #ffffff;
    line-height: 1.1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s, transform 0.08s;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(42,72,96,0.6), 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    position: relative;
  }
  .hfbar-shotnote-btn:active { background: linear-gradient(150deg, #1e3a50 0%, #142840 100%); transform: scale(0.93); }
  .hfbar-shotnote-btn.sn-active {
    background: linear-gradient(150deg, #067a95 0%, #045a70 100%);
    box-shadow: 0 3px 12px rgba(6,122,149,0.7), 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  .hfbar-shotnote-btn .sn-badge {
    position: absolute; top: 4px; right: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #f5c842; color: #1a1a00;
    font-size: 9px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
  }

  /* Shot Note Modal Overlay */
  #shot-note-overlay {
    position: absolute; inset: 0;
    background: rgba(8,18,38,0.88);
    z-index: 320;
    display: none; align-items: flex-start; justify-content: center;
    padding-top: 10%; /* v1.22.1 — upper half positioning for cart-band usability */
    backdrop-filter: blur(3px);
    animation: snFadeIn 0.16s ease-out;
  }
  #shot-note-overlay.sn-open { display: flex; }
  @keyframes snFadeIn { from { opacity:0; } to { opacity:1; } }

  .sn-modal {
    background: linear-gradient(160deg, #1a2a40 0%, #0f1e30 100%);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    padding: 18px 16px 16px;
    width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.5);
    position: relative;
    animation: snSlideUp 0.18s cubic-bezier(0.34,1.2,0.64,1);
  }
  @keyframes snSlideUp { from { transform: translateY(24px) scale(0.96); opacity:0; } to { transform: translateY(0) scale(1); opacity:1; } }

  .sn-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
  }
  .sn-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px; font-weight: 700; color: #e8f0f8;
    letter-spacing: 0.02em;
  }
  .sn-modal-sub {
    font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 1px;
  }
  .sn-close-btn {
    width: 52px; height: 52px; border-radius: 50%;
    background: #c94d12; border: 2px solid #ffffff;
    color: #ffffff; font-size: 30px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);
    z-index: 9999;
    line-height: 1;
  }
  .sn-close-btn:active { transform: scale(0.92); opacity: 0.9; }

  /* Arrow grid — mirrors SVG layout exactly:
     Outer row (double): ↖↖  ↑↑  ↗↗  |  ←←  [gap]  →→
     Inner ring (single): ↖ ↑ ↗ ← [dot] → ↙ ↓ ↘
  */
  .sn-grid {
    display: flex; flex-direction: column; gap: 6px;
    align-items: center;
  }
  .sn-row {
    display: flex; gap: 6px; align-items: center; justify-content: center;
  }

  /* Base arrow button */
  .sn-btn {
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.08s, transform 0.08s;
    font-family: inherit;
    flex-shrink: 0;
  }
  .sn-btn:active { transform: scale(0.86); }

  /* Single arrows — inner ring */
  .sn-btn-single {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.20);
    color: #e8f4ff;
    font-size: 22px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .sn-btn-single:active { background: rgba(255,255,255,0.28); }

  /* Double arrows — outer ring */
  .sn-btn-double {
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.13);
    color: rgba(220,235,255,0.75);
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  }
  .sn-btn-double:active { background: rgba(255,255,255,0.20); }

  /* Center dot spacer */
  .sn-dot {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .sn-dot-circle {
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.30);
  }

  /* Cleared / selected states */
  .sn-btn.sn-selected {
    background: var(--teal) !important;
    border-color: #04b0d4 !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(6,122,149,0.45), 0 3px 10px rgba(0,0,0,0.4) !important;
    transform: scale(1.07);
  }

  /* Clear button */
  .sn-clear-btn {
    margin-top: 10px;
    width: 100%; padding: 9px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.55);
    font-size: 12px; font-weight: 700;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.1s;
  }
  .sn-clear-btn:active { background: rgba(255,255,255,0.14); }
  /* Opt label */ /* EDIT v1.5.1 width matches smaller buttons */
  /* EDIT v1.8.2 — 46→44px to match buttons */
  .hfbar-opt-label {
    font-size: 8px; font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 0.1em;
    text-align: center;
    width: 44px; flex-shrink: 0;
  }
  /* Hz sub-panel */
  .hfbar-hz-panel {
    width: 50px; /* EDIT v1.7.3 — widened to match wider bar */
    background: rgba(15,55,112,0.25); /* EDIT v1.8.8 — steel blue, no red */
    border: 1px solid rgba(79,130,200,0.45);
    border-radius: 9px;
    padding: 4px 2px;
    display: none;
    flex-direction: column;
    gap: 3px; align-items: center;
    flex-shrink: 0; /* EDIT v1.7.2: margin removed; gap on parent handles spacing */
  }
  .hfbar-hz-panel.hz-open { display: flex; }
  /* EDIT v1.6.0 Hz sub-buttons: softer bg, 13px text */
  /* EDIT v1.6.1 font 14px */
  /* EDIT v1.7.1 taller: min-height 34px, font 15px */
  /* EDIT v1.7.3: width 44px to fill wider hz-panel */
  /* EDIT v1.8.8: 32→42px min-height; active → navy (no red) */
  .hfbar-hz-sub-btn {
    width: 44px; min-height: 40px; /* EDIT v1.15.35 — 44→40px slight pad reduction; still finger-friendly */
    background: #f5e8c0; /* EDIT v1.15.37 — light warm cream (clearly lighter than bar) */
    border: none; border-radius: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px; font-weight: 800; /* EDIT v1.15.38 — 18→20px: slightly larger for outdoor readability */
    color: #3a1a00; /* EDIT v1.15.37 — dark brown for contrast on light bg */
    white-space: nowrap;
    cursor: pointer;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.1; text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.75);
  }
  .hfbar-hz-sub-btn:active { background: #d4bc82; color: #5a3a00; } /* EDIT v1.15.9 — amber press: matches lie family */
  /* Timer strip and label */ /* EDIT v1.5.1 width matches smaller buttons */
  /* EDIT v1.8.2 — 46→44px to match buttons */
  .hfbar-timer {
    width: 44px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px; overflow: hidden;
    flex-shrink: 0;
  }
  .hfbar-timer-fill {
    height: 100%; background: var(--gold);
    border-radius: 2px;
    transition: width 0.18s linear;
    width: 100%;
  }
  .hfbar-timer-lbl {
    font-size: 10px; font-weight: 700; /* EDIT v1.8.1 — 9→10px */
    color: rgba(255,255,255,0.45);
    text-align: center; width: 44px; /* EDIT v1.8.2 — 46→44px */
    flex-shrink: 0; line-height: 1;
  }
  /* EDIT v1.7.4 — clubs-bar-dynamic: flex column so injected club buttons inherit gap spacing */
  #clubs-bar-dynamic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  /* EDIT v1.8.7 — bar scroll indicator: stacked double-chevron with bounce animation */
  @keyframes si-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50%       { transform: translateY(4px); opacity: 1; }
  }
  .hfbar-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: -30px; /* EDIT v1.13.0 — moved to left side of bar (was bottom-center) */
    transform: none;
    width: 22px; height: 28px;
    display: none; /* shown by JS when bar overflows */
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .hfbar-scroll-indicator.si-visible {
    display: flex;
    opacity: 1;
    animation: si-bounce 1.1s ease-in-out infinite;
  }
  .hfbar-scroll-indicator svg {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
  }

  /* ── EDIT v1.15.45 — NEW FOOTER SHOT FLOW ──────────────────────────────────
     Old bar system hidden via CSS (HTML untouched for rollback safety).
     New #nsf-shot-btn lives in .hf-footer.
     New #nsf-picker lives in #screen-hole above footer.
  ── */
  /* Hide old bar system and its backdrop — JS also disables all bar functions */
  #hf-bar-system, #hfbar-scroll-indicator, #swipe-bar-backdrop {
    display: none !important;
  }

  /* Footer shot button */
  /* EDIT vNEXT — old #nsf-shot-btn state rules (.nsf-open/.nsf-done/.nsf-putt/.nsf-hidden/:active) removed entirely; element no longer exists. */

  /* Picker panel — v1.22.2: fixed top edge so Results/Condition align with Club picker top */
  #nsf-picker {
    position: absolute;
    top: 97px; /* v1.28.6 — fixed top (game bar now at 55px, no shot tracker); same top edge for all picker states */
    transform: none; /* v1.22.2 — removed translateY(-50%) so Results/Condition can't appear lower than Club */
    left: 0; right: 0;
    z-index: 25;
    display: none;
    flex-direction: column;
    background: rgba(13, 26, 42, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 16px 14px 24px;
    padding-top: calc(16px + 0.25in);   /* v1.30.0 — ~1/4" vertical clearance above first row */
    gap: 12px;
    margin: 0 0;
    min-height: unset;
  }
  /* EDIT v1.16.8 — blank spacer row: full grid width, 56px tall, invisible, holds row 4 open */
  .nsf-blank-row {
    grid-column: 1 / -1;
    height: 56px;
    display: block;
  }
  /* EDIT v1.16.8 — blank cell inside grid row: same size as a button, invisible */
  .nsf-blank-cell {
    width: 56px;
    height: 56px;
    display: block;
  }
  #nsf-picker.nsf-picker-open { display: flex; }
  .nsf-picker-label {
    font-size: 16.5px; font-weight: 900;
    color: #ffffff;
    text-transform: uppercase; letter-spacing: 0.1em;
    text-align: center;
    align-self: center;
    margin-top: -18px;
    margin-bottom: 18px;
  }
  .nsf-picker-close {
    position: absolute; top: 12px; right: 12px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #c94d12; border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 30px; font-weight: 900; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);
    z-index: 5;
    line-height: 1;
    padding: 0;
  }
  .nsf-picker-close:active { transform: scale(0.92); opacity: 0.9; }
  .nsf-club-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row */
    gap: 10px; /* equal horizontal and vertical spacing */
    justify-items: center;
    /* v1.18.0: +1 row height = 10 rows max visible */
    max-height: calc(10 * 74px); /* 10 rows × (64px btn + 10px gap) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nsf-club-grid::-webkit-scrollbar { display: none; }
  .nsf-club-btn {
    width: 64px; height: 64px; /* Directive 5: larger button */
    background: linear-gradient(150deg, #f09050 0%, #e07840 55%, #cc6428 100%);
    border: none; border-radius: 50%;
    font-family: 'DM Sans', sans-serif;
    font-size: 26px; font-weight: 800; font-style: italic; /* v1.25.0 */
    color: #ffffff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 3px 8px rgba(168,85,32,0.5);
    white-space: nowrap; padding: 0 2px;
  }
  .nsf-club-btn:active { background: linear-gradient(150deg, #9a4010 0%, #8a3000 100%); }
  .nsf-result-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4-per-row */
    gap: 10px 10px; justify-items: center;
    /* Directive 6: +1 row headroom */
    max-height: calc(3 * 68px); /* 3 rows */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nsf-result-row::-webkit-scrollbar { display: none; }
  .nsf-result-btn {
    width: 64px; height: 64px; /* match club btn size */
    background: #f0b070;
    border: none; border-radius: 50%;
    font-family: 'DM Sans', sans-serif;
    font-size: 27px; font-weight: 800;
    color: #ffffff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    white-space: nowrap; padding: 0 1px;
  }
  .nsf-result-btn:active { background: #c88040; color: #fff; }
  .nsf-result-btn.nsf-holed-btn {
    background: linear-gradient(150deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%);
    color: #fff; font-size: 14px;
    border-radius: 50%;
    width: 64px; height: 64px;
    box-shadow: 0 3px 10px rgba(42,138,106,0.55);
  }
  .nsf-result-btn.nsf-putt-entry-btn {
    background: linear-gradient(150deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%);
    color: #fff; font-size: 20px; font-weight: 800;
    min-width: 80px; border-radius: 26px;
    box-shadow: 0 3px 8px rgba(56,168,130,0.5);
  }
  .nsf-result-btn.nsf-putt-entry-btn:active { background: linear-gradient(150deg, #2a8a6a 0%, #1c6050 100%); }
  /* v1.22.1 — Shot Note as utility button: same circle size as result btns, white bg, dark text */
  .nsf-result-btn.nsf-shotnote-btn {
    background: #ffffff;
    color: #1a2d4a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    flex-direction: column;
    border: 2px solid #c0ccd8;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre-line;
    letter-spacing: 0.01em;
  }
  .nsf-result-btn.nsf-shotnote-btn:active { background: #e8f0f8; color: #0f2035; }
  .nsf-result-btn.nsf-shotnote-btn.sn-note-active {
    border: 2.5px solid var(--teal);
    box-shadow: 0 0 0 3px rgba(6,122,149,0.28), 0 3px 8px rgba(0,0,0,0.25);
  }
  /* Directive 7: Conditions — same grid/size as Results row */
  .nsf-cond-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* equal horizontal and vertical spacing */
    justify-items: center;
    max-height: calc(3 * 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nsf-cond-row::-webkit-scrollbar { display: none; }
  .nsf-cond-btn {
    width: 64px; height: 64px; /* matches result btn */
    background: #e8c890;
    border: none; border-radius: 50%;
    font-family: 'DM Sans', sans-serif;
    font-size: 23px; font-weight: 800;
    color: #ffffff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    white-space: nowrap; padding: 0 1px;
  }
  .nsf-cond-btn:active { background: #c8a060; }
  /* v1.17.7 — OB/LB/UP: two shades darker for emphasis */
  .nsf-cond-btn.cond-penalty {
    background: #b8904a; /* two shades darker than #e8c890 */
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.45);
  }
  .nsf-cond-btn.cond-penalty:active { background: #8a6030; }
  .nsf-putt-row {
    display: flex; gap: 8px; justify-content: center;
  }
  .nsf-putt-btn {
    flex: 1; height: 52px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px; font-weight: 800;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .nsf-putt-btn:active { background: rgba(255,255,255,0.25); }
  .nsf-putt-holed-btn {
    background: linear-gradient(150deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%);
    border: none; color: #fff; font-size: 16px; border-radius: 12px;
  }
  /* v1.25.7 — Hz sub-buttons: 3 ball-image buttons with stacked label below */
  .nsf-hz-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px 0;
  }
  .nsf-hz-btn {
    flex: 1;
    height: 90px; /* taller for max font with proper padding */
    background: #e8c890;
    border: none; border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px; font-weight: 800; /* v1.25.0 */
    color: #ffffff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    white-space: normal; padding: 8px 6px;
    line-height: 1.2;
  }
  .nsf-hz-btn:active { opacity: 0.78; }
  /* Red Stake: red background, white text */
  .nsf-hz-btn.hz-red {
    background: #c0242c;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(150,20,20,0.5);
  }
  /* Yellow Stake: yellow background, dark text for contrast on bright yellow */
  .nsf-hz-btn.hz-yellow {
    background: #e8c020;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(180,150,0,0.4);
  }
  /* Play Down: standard neutral */
  .nsf-hz-btn.hz-play {
    background: #e8c890;
    color: #ffffff;
  }
  /* END EDIT v1.17.7 picker CSS */

  /* Ball In Play selector */
  #nsf-ball-row {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  #nsf-ball-row.ball-row-open { display: flex; }
  .nsf-ball-row-label {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.1em;
    text-align: center;
  }
  .nsf-ball-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    justify-items: center;
  }
  .ball-icon-btn {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.20);
    border-radius: 50%;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
    white-space: normal;
  }
  .ball-icon-btn:active { background: rgba(255,255,255,0.22); }
  .ball-icon-btn.ball-selected {
    border-color: #e07a3c;
    background: rgba(224,122,60,0.18);
    box-shadow: 0 0 0 3px rgba(224,122,60,0.45), 0 3px 10px rgba(0,0,0,0.4);
    color: #ffffff;
  }
  .ball-icon-btn .ball-brand {
    font-size: 8px; font-weight: 600;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
    display: block;
  }
  .ball-icon-btn.ball-selected .ball-brand { color: rgba(255,200,140,0.85); }
  .ball-text {
    color: #F8FAFC;
    font-weight: 700;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0px  2px 3px rgba(0,0,0,0.6);
  }
  /* ── Ball-image picker buttons (v1.26.0) ────────────────────────────────
     Reusable: button uses CSS background-image for the ball; span is centered label.
     Ball types: white (club), green (putt), orange (results/conditions), yellow (hz-sub)
  ─────────────────────────────────────────────────────────────────────── */
  .nsf-ball-pick-btn {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  }
  .nsf-ball-pick-btn > img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    pointer-events: none;
  }
  .nsf-ball-pick-btn span {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff; /* v1.32.3 — reverted from burnt orange back to white; club-only high-vis override below */
    text-align: center;
    line-height: 0.95;
    pointer-events: none;
    white-space: nowrap;
    max-width: 54px;
    overflow: hidden;
    text-overflow: clip;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0 2px 4px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
  }
  .nsf-ball-pick-btn:active { transform: scale(0.88); opacity: 0.82; }
  /* v1.32.3 — Club Select only: high-visibility white text with strong dark edge */
  .nsf-ball-pick-btn:not(.nsf-ball-orange):not(.nsf-ball-putt) span {
    color: #ffffff;
    font-weight: 900;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0 2px 4px rgba(0,0,0,0.9);
  }
  /* Ball color classes — rendering via <img> tags; background-image removed v1.26.1 */
  .nsf-ball-orange  { /* orange ball rendered via <img src="assets/balls/orange-ball.png"> */ }
  .nsf-ball-green   { /* green ball rendered via <img src="assets/balls/green-ball.png"> */ }
  .nsf-ball-yellow  { /* yellow ball rendered via <img src="assets/balls/yellow-ball.png"> */ }
  .nsf-ball-white   { /* white ball rendered via <img src="assets/balls/white-ball.png"> */ }
  /* Putt button in club picker: green ball, slightly larger label */
  .nsf-ball-pick-btn.nsf-ball-putt span {
    font-size: 22px; font-style: normal; font-weight: 900; max-width: 56px; /* v1.30.2: contained within ball border */
  }

  /* Hz sub-picker: 3 wide buttons each with a ball + label stacked */
  .nsf-hz-ball-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
    background: transparent; border: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    padding: 8px 0;
    transition: transform 0.10s, opacity 0.10s;
  }
  .nsf-hz-ball-btn:active { transform: scale(0.88); opacity: 0.82; }
  .nsf-hz-ball-btn img {
    width: 56px; height: 56px;
    display: block; object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  }
  .nsf-hz-ball-btn .nsf-hz-ball-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 900;
    color: #ffffff; text-align: center; line-height: 1.05;
    max-width: 76px;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0    2px 3px rgba(0,0,0,0.6);
  }

  /* Compact footer ball display */
  #nsf-ball-footer {
    display: none !important;
  }
  #nsf-ball-footer span { color: rgba(255,200,140,0.90); font-weight: 800; }
  /* End Ball In Play selector */

  /* hf-round-box fully removed in v1.7.5F — score/vspar live in hf-info-box */
  /* hfrb-item / hfrb-sep removed with it */

  /* Score stats — color variants; applied by JS to rb-gross and rb-vspar */
  .hsr-val  { font-size: 17px; font-weight: 700; color: #fff; font-style: italic; } /* EDIT v1.15.19 — 16→17px matches unified hfib size */
  .hsr-val.rb-under { color: #fff; } /* EDIT v1.15.18 — remove teal highlight, normalize to white */
  .hsr-val.rb-over  { color: #fff; }
  .hsr-val.rb-even  { color: #fff; } /* EDIT v1.15.18 — remove gold, normalize to white */
  .hsr-label { display: none; }
  .hsr-div   { display: none; }
  .hsr-stat  { display: contents; }

  /* EDIT v1.2.0 hf-left-col: moved from left to right side */
  .hf-left-col {
    position: absolute;
    right: 10px;
    top: 54%; transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  /* EDIT v1.1.13 hf-complete-hole-btn: solid white, black border, flag icon — above icon bar */
  .hf-complete-hole-btn {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    transition: opacity 0.15s;
    color: #1a2d4a;
  }
  .hf-complete-hole-btn:active { opacity: 0.65; }
  .hf-icon-bar {
    background: #152336; border-radius: 12px;
    width: 42px;
    padding: 10px 0;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
  }
  /* Icons sit directly on the bar — no individual button backgrounds */
  .hfib-btn {
    width: 34px; height: 34px;
    background: none; border: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px; padding: 0;
    color: #fff; transition: color 0.12s;
  }
  .hfib-btn:active    { color: rgba(255,255,255,0.55); }
  .hfib-btn.hab-active { color: var(--gold); }
  .hfib-btn svg        { display: block; }
  .hfib-club-val {
    font-size: 9px; font-weight: 800; color: var(--gold);
    line-height: 1; letter-spacing: 0.04em;
  }
  .hfib-btn.hab-active .hfib-club-val { color: #fff; }

  /* EDIT v1.27.4 — nsf-hole-render (v1.27.3 small card) removed; replaced by full-screen course-render in .hole-map-layer */

  /* FOOTER — full-width footer at bottom edge */
  /* v1.18.0 — Solid dark bg for outdoor readability, no transparency stacking */
  .hf-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 20;
    background: transparent;
    padding: 0 8px 6px; /* v3.0.18 — bottom padding 14px → 6px, lowers Caddie/Score Card/Clubhouse row */
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
  }
  /* v3.0.31 — << back-to-tee-select button: floats on the left edge of the
     footer, vertically centered with the Caddie/Score Card/Clubhouse row.
     Absolutely positioned so it never becomes a 4th flex item — the 3 nav
     buttons stay equally spaced across the full footer width. */
  /* v3.0.36 — << back button restyled as a white golf-ball image button,
     sized to match the hole-nav <> balls (.hf-arrow-left/.hf-arrow-right:
     44px button, 40px ball image, label centered on the ball) instead of the
     old plain dark circle. Placement (absolute, left edge, vertically
     centered in the footer) is unchanged — only the visual treatment and
     footprint size changed to match the existing golf-ball convention. */
  .hf-footer-back-btn {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 21;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
  }
  .hf-footer-back-btn img.hf-ball-img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  }
  .hf-footer-back-btn span.hf-ball-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: 900;
    color: #10263f;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    white-space: nowrap;
    line-height: 1;
  }
  .hf-footer-back-btn:active { opacity: 0.7; transform: translateY(-50%) scale(0.93); }
  /* v1.30.9 — Game Bar: raised glass pane below 69px hole info bar */
  /* v2.14.6 — Luxury Dashboard Game Bar: deep navy cockpit surface, machined gold border, refined accents */
  #hole-game-line {
    position: absolute !important;
    top: 46px; /* v3.0.17 — matches shortened 46px hole info bar (was 69px) */
    left: 6px;
    right: 6px;
    z-index: 20;
    min-height: 60px;
    padding: 10px 20px 10px 18px;
    /* deep navy cockpit gradient: darkest at edges, slightly lighter band through center */
    background:
      linear-gradient(
        180deg,
        #0b1b2e 0%,
        #102a44 38%,
        #0e2238 62%,
        #07111f 100%
      );
    /* machined border: warm translucent gold top, thin dark bottom edge, whisper gold sides */
    border-top: 1.5px solid rgba(242,180,91,0.82);
    border-bottom: 1px solid rgba(5,10,18,0.90);
    border-left: 1px solid rgba(242,180,91,0.22);
    border-right: 1px solid rgba(242,180,91,0.22);
    border-radius: 17px;
    /* layered cockpit depth: wide ambient, tight contact shadow, inset bevel */
    box-shadow:
      0 10px 28px rgba(0,0,0,0.72),
      0 3px 8px rgba(0,0,0,0.55),
      0 1px 2px rgba(0,0,0,0.40),
      inset 0 1px 0 rgba(255,216,122,0.10),
      inset 0 -1px 0 rgba(0,0,0,0.50);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    overflow: hidden;
  }
  /* v2.14.6 — upper-center satin highlight: subtle arc of light across the top third */
  #hole-game-line::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 0;
    height: 38%;
    background: radial-gradient(
      ellipse at 50% 0%,
      rgba(255,216,122,0.11) 0%,
      rgba(255,216,122,0.04) 55%,
      transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
  }
  /* v2.14.6 — left/right dashboard light accents: slim refined strips, not chunky bars */
  #hole-game-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    /* left and right hairline accent lights via box-shadow on pseudo */
    box-shadow:
      inset 3px 0 0 rgba(201,77,18,0.55),
      inset -3px 0 0 rgba(201,77,18,0.30),
      inset 4px 0 10px rgba(201,77,18,0.08),
      inset -4px 0 10px rgba(201,77,18,0.04);
    border-radius: 17px;
    pointer-events: none;
  }
  /* BAR-ONLY: hide score lines in the compact bar */
  #hole-game-line .hgl-score-line {
    display: none !important;
  }
  /* POPUP OVERRIDES: force detail rows to show inside the game detail popup */
  .hgd-body .hgl-score-line {
    display: flex !important;
  }
  /* .hgd-body .hgl-block-name and .hgd-body .hgl-block: full rules below */
  /* POPUP LAYOUT: game detail popup overlay */
  #hole-game-detail-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0d1b2e;
    z-index: 400;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #hole-game-detail-popup.hgd-open {
    display: flex;
  }
  .hgd-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
  }
  .hgd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px 18px;
    border-bottom: 2px solid #c94d12;
    position: sticky;
    top: 0;
    background: #0d1b2e;
    z-index: 1;
    flex-shrink: 0;
  }
  .hgd-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .hgd-header-game-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }
  .hgd-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.01em;
  }
  .hgd-close-btn {
    background: #c94d12;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);
    flex-shrink: 0;
  }
  .hgd-close-btn:active { transform: scale(0.92); opacity: 0.9; }
  .hgd-body {
    padding: 0 20px 32px 20px;
    flex: 1;
  }
  .hgd-body .hgl-block {
    margin-bottom: 28px;
  }
  .hgd-body .hgl-block + .hgl-block {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 24px;
    margin-top: 0;
  }
  .hgd-body .hgl-block-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    display: block;
  }
  .hgd-body .hgl-game-name-btn {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    pointer-events: none;
    background: none;
    border: none;
    padding: 0;
  }
  .hgd-body .hgl-name-goal {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    display: block;
    margin-top: 2px;
  }
  .hgd-body .hgl-name-net,
  .hgd-body .hgl-score-line {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    display: block;
    margin-top: 8px;
    line-height: 1.7;
  }
  .hgd-body .hgl-name-sep {
    display: none;
  }
  /* Game Details page body elements (directive v2.35.19 — Game Summary Page) */
  .hgd-body-game-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
  }
  .hgd-body-stat {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    padding: 3px 0;
    line-height: 1.5;
  }
  /* v2.35.19 — Game Summary page new layout elements */
  /* v2.35.20 — Game Summary page: separator starts block, F9/B9 rows below */
  .hgd-summary-block {
    padding: 0 0 20px 0;
  }
  .hgd-summary-block + .hgd-summary-block {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 18px;
  }
  .hgd-summary-game-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
  }
  .hgd-summary-goal-line {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
  }
  .hgd-summary-sep {
    width: 100%;
    height: 1.5px;
    background: rgba(255,255,255,0.25);
    margin: 0 0 14px 0;
    border-radius: 1px;
  }
  .hgd-nine-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hgd-nine-row:last-child {
    border-bottom: none;
  }
  .hgd-nine-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    min-width: 28px;
    text-align: left;
    flex-shrink: 0;
    letter-spacing: 0.03em;
  }
  .hgd-nine-sep {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
  }
  .hgd-nine-scores {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
  }
  /* EDIT v1.29.9 — Shot Tracker Popup: header taller, X in-flow (no overlap), body padding reset, text white+large */
  #shot-tracker-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10,18,32,0.72);
    align-items: center;
    justify-content: center;
  }
  #shot-tracker-popup.stp-open {
    display: flex;
  }
  .stp-card {
    background: var(--green-deep, #1a2d4a);
    border-radius: 18px;
    width: calc(100% - 24px);
    max-width: 420px;
    max-height: 92vh; /* v2.21.0 — use more available height */
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .stp-header {
    padding: 16px 18px; /* v2.21.0 — restored generous header padding */
    min-height: 68px;   /* v2.21.0 — taller header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b1f3a;
    border-bottom: 2px solid rgba(255,255,255,0.12);
  }
  .stp-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 26px; /* v2.21.0 — larger title */
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.01em;
  }
  .stp-close-btn {
    position: static;
    background: #c94d12;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 22px; /* v2.21.0 — larger close btn */
    font-weight: 900;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    width: 44px; height: 44px; /* v2.21.0 — larger tap target */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);
    flex-shrink: 0;
  }
  .stp-close-btn:active { transform: scale(0.92); opacity: 0.9; }
  .stp-body {
    padding: 14px 18px 18px 18px; /* v2.21.0 — more generous padding, full space used */
    overflow-y: auto; /* safety net if card hits max-height */
    flex: 1;
  }
  .stp-simple-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0; /* v2.21.0 — generous row padding, no compression */
    border-bottom: 1px solid rgba(255,255,255,0.45);
    font-family: 'DM Sans', sans-serif;
  }
  .stp-simple-num {
    width: 36px; /* v2.21.0 — wider for 22px glyphs */
    flex-shrink: 0;
    font-size: 22px; /* v2.21.0 — 18px→22px per directive */
    font-weight: 900;
    color: #ffffff;
  }
  .stp-simple-text {
    flex: 1;
    font-size: 22px; /* v2.21.0 — 18px→22px per directive, never below 20px */
    font-weight: 700; /* v2.21.0 — bold */
    color: #ffffff; /* v2.21.0 — pure white */
    line-height: 1.3;
  }
  .stp-empty {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px; /* v2.21.0 — minimum 20px rule */
    font-weight: 700;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
  }
  .stp-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }
  .stp-actions button {
    flex: 1;
    padding: 13px 12px;
    border-radius: 12px;
    border: none;
    background: var(--green-deep, #1a2d4a);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
  }
  .stp-actions button:nth-child(2) {
    background: var(--gold, #c9931a);
  }
  /* v2.14.6 — game bar text: dashboard readout hierarchy, strong outdoor contrast */
  #hole-game-line .hole-game-row {
    width: 100%;
    min-width: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.90), 0 0 12px rgba(0,0,0,0.60);
    border-top: none;
    padding-top: 0;
    line-height: 1.15;
  }
  #hole-game-line .hgl-block-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    flex-wrap: nowrap;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.025em;
    color: rgba(255,245,225,0.96);
    text-shadow: 0 1px 4px rgba(0,0,0,0.90), 0 0 10px rgba(0,0,0,0.55);
    line-height: 1.15;
  }
  #hole-game-line .hgl-name-txt,
  #hole-game-line .hgl-name-goal,
  #hole-game-line .hgl-name-net {
    color: rgba(255,245,225,0.96);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.90);
  }
  #hole-game-line .hgl-name-net {
    color: #fff;
    font-weight: 800;
  }
  /* v2.14.6 — tappable game name: premium dashboard readout with warm gold accent underline */
  .hgl-game-name-btn {
    background: transparent;
    border: none;
    padding: 0 2px;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0,0,0,0.90), 0 0 8px rgba(0,0,0,0.50);
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.15;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
  }
  .hgl-game-name-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: linear-gradient(90deg, rgba(242,180,91,0.30) 0%, rgba(242,180,91,0.90) 40%, rgba(242,180,91,0.90) 60%, rgba(242,180,91,0.30) 100%);
    border-radius: 1px;
    opacity: 1.0;
  }
  .hgl-game-name-btn:active {
    transform: scale(0.96);
    opacity: 0.82;
  }
  #hole-game-line .hgl-name-sep {
    color: rgba(242,180,91,0.80);
    font-size: 13px;
    font-weight: 400;
    margin: 0 2px;
  }
  #hole-game-line .hgl-block {
    margin: 0;
  }
  #hole-game-line .hgl-block + .hgl-block {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }
  /* (bar-only score-line hide moved to #hole-game-line block above) */
  /* v1.19.4 — superseded rules below (v1.15.23) – hole-game-row, hgl-block-name, hgl-tag, hgl-score-cell, hgl-line-total, hgl-goal-val, hgl-seg-net consolidated below */
  /* v1.25.0 — nav row: 4 equal-width buttons (Holed | Edit | Score Card | Club House), balls 50% larger */
  .nsf-footer-nav {
    /* FINAL ALIGNMENT FIX — Caddie / Score Card / Clubhouse must be evenly
       distributed with identical gaps on both sides of Score Card. Switched
       from space-around + unequal left/right padding (which pushed Caddie
       too far right and Clubhouse too far left) to space-evenly with
       symmetric, equal padding on both sides. No individual margins,
       transforms, or left/right positioning on the buttons themselves. */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    background: transparent;
    padding: 0 8px;
    pointer-events: auto;
  }
  .nsf-nav-btn,
  .nsf-holed-btn {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
  }
  .footer-ball-icon {
    width: 93px;
    height: 93px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    pointer-events: none;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  }
  .nsf-nav-btn img,
  .nsf-holed-btn img {
    max-width: none;
    max-height: none;
  }
  .nsf-nav-btn span,
  .nsf-holed-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    max-width: 58px;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; /* v1.31.13 — matched to club ball label style */
    font-weight: 900; /* v1.31.13 — was 700 */
    font-style: italic;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: #ffffff; /* v1.31.13 — was #10263f; matched to club ball label */
    text-align: center;
    white-space: normal;
    pointer-events: none;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0 2px 4px rgba(0,0,0,0.8); /* v1.31.13 — was light shadow; now dark edge matching club ball label */
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }
  /* v3.0.17 — Caddie / Score Card / Clubhouse footer nav buttons enlarged for
     outdoor readability. These three buttons (class="nsf-nav-btn nsf-nav-btn-v3")
     are the ONLY place class="nsf-nav-btn" is used without an icon image, so
     this override (scoped to #screen-hole .nsf-nav-btn-v3 .v3-footer-label)
     cannot affect .nsf-holed-btn or any other ball-icon button that shares
     the .nsf-nav-btn span rule above. Switches the label from the
     absolute/width-capped layout (designed to overlay a ball icon that does
     not exist on these buttons) to a normal centered label so the larger
     text is never clipped. Button size/position, alignment, gap, and footer
     spacing are unchanged. */
  #screen-hole .nsf-nav-btn-v3 .v3-footer-label {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: none;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-align: center;
  }
  /* EDIT — Caddie label nudge: shifts only the "Caddie" text one character
     width to the right via transform (no layout impact), so the button
     itself, Score Card, Clubhouse, and the footer container/spacing are
     all completely unaffected. */
  #screen-hole .nsf-footer-nav .nsf-nav-btn-v3:first-child .v3-footer-label {
    transform: translateX(1ch);
  }
  /* EDIT v1.27.0 — Enhanced Club label: larger, bolder, outdoor-readable, visually distinct */
  /* v1.29.2 — standardized to match scorecard typography: 14px/700 */
  .nsf-footer-clubhouse-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
  }
  /* EDIT vNEXT — old Score-ball CSS block removed entirely: .floating-club-btn,
     .floating-club-ball-icon, .floating-club-btn span, #nsf-shot-btn span,
     #nsf-shot-btn .nsf-score-ball-wrap, #nsf-score-ball-num, and
     #nsf-shot-btn .nsf-score-ball-label. The #nsf-shot-btn element this CSS
     targeted no longer exists. New score ball styling lives in the
     #screen-hole .hole-score-ball-btn / .hole-score-ball-label rules below. */
  /* v1.22.2 — Hole number nav button: above Clubhouse, same size, transparent bg, italic bold #N */
  .nsf-hole-num-nav-btn {
    flex: 1;
    padding: 14px 2px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  }
  .nsf-hole-num-nav-btn:active { background: rgba(255,255,255,0.10); }
  /* Primary action row: hole score + player + complete-hole button */
  .hff-action-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 8px;
  }
  .hff-score      { flex: 1; text-align: center; }
  .hff-score-val  { font-size: 52px; font-weight: 700; color: #fff; line-height: 1; font-family: 'DM Sans', sans-serif; }
  .hff-score-sub  { font-size: 9px; color: rgba(255,255,255,0.28); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 2px; }
  .hff-player     { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
  .hff-player-label { font-size: 9px; color: rgba(255,255,255,0.26); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 2px; }
  .hff-player-name  { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
  .hff-complete {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #f5f0e8; border: none; border-radius: 14px;
    padding: 14px 14px; font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 700; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: opacity 0.15s;
    min-width: 76px; text-align: center; line-height: 1.3;
  }
  .hff-complete:active { opacity: 0.76; }

  /* EDIT v1.1.17 hfl-holed-btn: HOLED is the primary hole-completion action in the footer */
  .hfl-holed-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #f5f0e8;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s;
    margin-bottom: 8px;
  }
  .hfl-holed-btn:active { opacity: 0.72; }

  /* EDIT v1.1.17 hfl-putts-row: always-visible inline putts stepper */
  .hfl-putts-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
  }
  .hfl-putts-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
  }
  .hfl-putts-adj {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 9px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
  }
  .hfl-putts-adj:active { background: rgba(255,255,255,0.22); }
  .hfl-putts-num {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    min-width: 32px;
    text-align: center;
    line-height: 1;
  }

  /* EDIT v1.1.17 hgl-summary-top: top game name | goal | net summary line */
  .hgl-summary-top {
    display: none;
    margin-bottom: 8px;
  }
  .hgl-summary-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    margin-bottom: 4px;
  }
  .hgl-sum-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }
  .hgl-sum-sep {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
  }
  .hgl-sum-goal {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    flex-shrink: 0;
  }
  .hgl-sum-net {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
    flex-shrink: 0;
  }
  .hgl-sum-net.sum-good { color: #7de8f5; }
  .hgl-sum-net.sum-over { color: #ff8a8a; }

  /* EDIT v1.1.17 he-panel-holes: hole selector panel inside edit overlay */
  .he-hole-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin: 10px 0 14px;
  }
  .he-hole-sel-btn {
    padding: 9px 0;
    border-radius: 8px;
    border: 2px solid var(--cream-dark);
    background: var(--white);
    font-size: 14px;
    font-weight: 700;
    color: var(--green-deep);
    cursor: pointer;
    transition: all .12s;
    -webkit-tap-highlight-color: transparent;
  }
  .he-hole-sel-btn.done { border-color: var(--gold); background: #fdf4ef; }
  .he-hole-sel-btn.active-hole { border-color: var(--green-light); background: #e8f0fd; color: #2255aa; }
  .he-hole-sel-btn:active { transform: scale(0.95); }
  /* Game tracking rows — shown only when a game is active */
  /* v1.19.4 — white text to match steel-blue bar */
  .hole-game-row { min-width: 0; font-size: 14px; color: #ffffff; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 6px; }

  /* EDIT v1.1.15 game footer — 2-line score layout */
  .hole-game-line { padding: 2px 0; }
  .hgl-block { margin-bottom: 4px; }
  .hgl-block + .hgl-block { margin-top: 5px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 5px; }
  /* EDIT v1.1.18a: white text throughout — 12px name line, 13px scoring rows */
  /* EDIT v1.2.6: sentence case game names (removed text-transform:uppercase) */
  .hgl-block-name { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400; color: #fff; letter-spacing: 0.03em; margin-bottom: 3px; flex-wrap: wrap; }
  .hgl-name-txt  { color: #fff; }
  .hgl-name-sep  { color: rgba(255,255,255,0.4); font-weight: 400; }
  .hgl-name-goal { color: #fff; font-weight: 600; text-transform: none; letter-spacing: 0; }
  .hgl-name-net  { color: #fff; font-weight: 800; text-transform: none; letter-spacing: 0; }
  .hgl-name-net-good { color: #fff; }
  .hgl-name-net-over { color: #fff; }
  /* Score line — flex row: tag | scores grid | end totals */
  .hgl-score-line { display: flex; align-items: center; gap: 2px; min-height: 22px; margin-bottom: 2px; } /* EDIT v1.15.16b — reverted explicit height; row grows naturally with font */
  .hgl-tag { font-size: 16px; font-weight: 800; color: #ffffff; background: rgba(0,0,0,0.55); border: 1.5px solid rgba(255,255,255,0.55); border-radius: 4px; padding: 1px 5px; flex-shrink: 0; min-width: 22px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.80); } /* v1.35.2 — solid dark bg, crisp border, bold */
  /* 9 evenly-distributed score cells */
  .hgl-scores-grid { display: flex; flex: 1; align-items: center; }
  .hgl-score-cell { flex: 1; font-size: 22px; font-weight: 800; color: #ffffff; text-align: center; min-width: 0; padding: 0 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.75); } /* v1.35.2 — 18→22px, 700→800, shadow */
  /* Subtle gap after holes 3 and 6 to reflect 3-hole segments */ /* EDIT v1.15.16 */
  .hgl-scores-grid > .hgl-score-cell:nth-child(3) { margin-right: 7px; }
  .hgl-scores-grid > .hgl-score-cell:nth-child(6) { margin-right: 7px; }
  /* Right-side totals block */
  .hgl-line-end { display: flex; align-items: center; gap: 3px; flex-shrink: 0; margin-left: 8px; } /* EDIT v1.15.16 — margin-left 4→8px: clear separation from hole grid */
  .hgl-line-total { font-size: 22px; font-weight: 900; color: #ffffff; min-width: 28px; text-align: right; text-shadow: 0 1px 3px rgba(0,0,0,0.75); } /* v1.35.2 — 18→22px, 800→900 */
  .hgl-goal-val { font-size: 22px; font-weight: 800; color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.75); } /* v1.35.2 — 18→22px, 600→800 */
  /* Net-to-goal — parens, no box, no layout pressure */
  .hgl-seg-net { font-size: 22px; font-weight: 800; color: #ffffff; margin-left: 2px; text-shadow: 0 1px 3px rgba(0,0,0,0.75); } /* v1.35.2 — 18→22px, shadow added */
  /* Seligment-3 segment separator */
  .hgl-seg-sep { width: 1.5px; height: 16px; background: rgba(255,255,255,0.55); flex-shrink: 0; margin: 0 3px; } /* v1.35.2 — 1px→1.5px, 0.32→0.55 opacity */
  /* Legacy tab classes — kept for compat but not used in new footer */
  .hgl-row { display: flex; align-items: center; gap: 5px; min-height: 18px; }
  .hgl-half-tag { font-size: 10px; font-weight: 900; color: #ffffff; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.50); border-radius: 3px; padding: 1px 5px; flex-shrink: 0; } /* v1.35.2 — solid bg + border for sunlight */
  .hgl-net { font-size: 13px; font-weight: 900; color: #ffffff; flex-shrink: 0; text-shadow: 0 1px 2px rgba(0,0,0,0.75); } /* v1.35.2 — 800→900, shadow */
  .hgl-net.positive { color: #69f0ae; }

  /* Legacy — suppressed */
  .hole-mid-layout { display: none !important; }
  .hole-club-col   { display: none !important; }
  .hole-right-col  { display: none !important; }
  .hole-line3      { display: none !important; }
  .hole-hdr-nav    { display: none !important; }
  .hole-info-line  { display: none !important; }
  .hil-left        { display: none !important; }
  .hil-score-pills { display: none !important; }
  /* EDIT v1.1.13 SCORECARD SHOT LINE: hole-shot-strip no longer force-hidden */
  /* .hole-shot-strip display is controlled per-cell in buildSCSection() JS */
  /* hole-header: invisible compat wrapper */
  .hole-header     { position: static; display: contents; }

  /* hab helpers for club button */
  .hab-icon  { font-size: 15px; line-height: 1; }
  .hab-label { display: none; }
  .hab-val   { font-size: 10px; font-weight: 800; color: var(--gold); line-height: 1; }

  /* Shot popup sections — unchanged */
  /* EDIT v1.2.1 shot-section: reduce vertical spacing — margin top/bottom 0, padding top 2px / bottom 0 */
  .shot-section { margin-top: 0; margin-bottom: 0; padding-top: 2px; padding-bottom: 0; border-top: 1px solid var(--cream-dark); }
  /* EDIT v1.2.0 shot-section-actions: 4-button row — equal flex, compact sizing so all fit without wrapping */
  .shot-section-actions { display: flex; gap: 5px; margin-top: 12px; justify-content: stretch; }
  .shot-section-actions > button { flex: 1; min-width: 0; }
  .btn-log-shot { padding: 10px 6px; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; background: #2e7d32; color: #fff; transition: opacity 0.15s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
  .btn-log-shot:disabled { background: #ccc; color: #999; cursor: default; }
  .btn-log-shot:not(:disabled):active { opacity: 0.82; }
  .btn-reveal { padding: 10px 6px; border: 2px solid var(--green-light); background: none; color: var(--green-deep); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
  .btn-reveal:active { background: var(--green-deep); color: var(--gold); border-color: var(--green-deep); }
  /* EDIT v1.2.0 btn-holed: compact sizing */
  .btn-holed { padding: 10px 6px; border: 2px solid var(--gold); background: transparent; color: var(--gold); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; transition: all 0.15s; }
  .btn-holed:disabled { border-color: #ccc; color: #ccc; cursor: default; }
  .btn-holed:not(:disabled):active { background: var(--gold); color: #fff; }
  /* EDIT v1.2.0 putts-flow-btn: compact sizing to fit 4-button row */
  .putts-flow-btn { padding: 10px 6px; border: 2px solid #4a9d9f; background: transparent; color: #4a9d9f; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; transition: all 0.15s; }
  .putts-flow-btn:disabled { border-color: #ccc; color: #ccc; cursor: default; }
  .putts-flow-btn:not(:disabled):active { background: #4a9d9f; color: #fff; }
  /* EDIT v1.1.18 hf-shots-counter: shot count line in footer */
  .hf-shots-counter { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); text-align: center; padding: 6px 0 4px; letter-spacing: 0.06em; text-transform: uppercase; }

  /* EDIT v1.4.0 — fast shot entry: result row, putter counter, penalty badges, shot tracker */
  /* Inline result row — shown after non-putter club tap, auto-dismisses */
  .shot-result-row {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0 4px;
    border-top: 1px solid var(--cream-dark);
    margin-top: 10px;
    animation: fadeInResult 0.18s ease;
  }
  .shot-result-row.visible { display: flex; }
  @keyframes fadeInResult { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
  .result-row-label {
    width: 100%; font-size: 10px; font-weight: 700; color: var(--sage);
    text-transform: uppercase; letter-spacing: 0.08em;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2px;
  }
  .result-dismiss-label { font-weight: 400; color: var(--cream-dark); font-size: 10px; }
  .result-btn {
    flex: 1; min-width: 50px;
    padding: 10px 2px;
    border: 2px solid var(--cream-dark);
    background: var(--cream);
    border-radius: 10px;
    font-size: 13px; font-weight: 700;
    color: var(--charcoal);
    cursor: pointer; text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.12s;
    line-height: 1.2;
  }
  .result-btn:active, .result-btn.sel { background: var(--green-deep); color: var(--gold); border-color: var(--green-deep); }
  .result-btn.sel-hz { background: var(--teal); color: #fff; border-color: var(--teal); } /* EDIT v1.8.8 — teal, no red */
  .result-btn.sel-hz:active { opacity: 0.85; }
  /* Penalty row inside result row */
  .penalty-row { width: 100%; display: flex; gap: 6px; margin-top: 4px; }
  .penalty-btn {
    padding: 10px 6px;
    border: 2px solid var(--teal); /* EDIT v1.8.8 — teal, no red */
    background: transparent;
    border-radius: 10px;
    font-size: 13px; font-weight: 700;
    color: var(--teal); /* EDIT v1.8.8 — teal, no red */
    cursor: pointer; text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.12s;
    min-width: 52px;
    line-height: 1.2;
  }
  .penalty-btn.sel { background: var(--teal); border-color: var(--teal); color: #fff; } /* EDIT v1.8.8 */
  .penalty-btn:active { background: var(--teal); color: #fff; } /* EDIT v1.8.8 */
  /* Putter counter mode — shown instead of result row when Putter tapped */
  .putter-counter {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 8px;
    border-top: 1px solid var(--cream-dark);
    margin-top: 10px;
    gap: 6px;
    animation: fadeInResult 0.18s ease;
  }
  .putter-counter.visible { display: flex; }
  .putter-ctr-label { font-size: 10px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; }
  .putter-ctr-row { display: flex; align-items: center; gap: 20px; }
  .putter-ctr-btn {
    width: 46px; height: 46px; border-radius: 12px;
    font-size: 28px; font-weight: 900; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .putter-ctr-minus { border: 2px solid var(--cream-dark); background: var(--cream); color: var(--green-deep); }
  .putter-ctr-minus:active { background: var(--cream-dark); }
  .putter-ctr-plus  { border: none; background: var(--green-deep); color: var(--gold); }
  .putter-ctr-plus:active  { background: var(--green-mid); }
  .putter-ctr-num { font-size: 44px; font-weight: 700; color: var(--green-deep); min-width: 52px; text-align: center; line-height: 1; }
  /* HOLED primary button in popup */
  .btn-holed-primary {
    display: block; width: 100%;
    padding: 15px 0; margin-top: 14px;
    background: linear-gradient(160deg, #4dc4a0 0%, #38a882 55%, #2a8a6a 100%); /* EDIT v1.15.36 — green */
    color: #fff; border: none; border-radius: 12px;
    font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 800;
    letter-spacing: 0.05em; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s;
  }
  .btn-holed-primary:active { opacity: 0.75; }
  .btn-holed-primary:disabled { background: #ccc; color: #999; cursor: default; }
  /* Shot tracker items in pencil edit panel */
  .st-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    border: 2px solid var(--cream-dark); background: var(--white);
    margin-bottom: 6px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.12s;
  }
  .st-item:active { border-color: var(--gold); background: #fdf4ef; }
  .st-num { width: 24px; height: 24px; background: var(--green-deep); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
  .st-club { font-weight: 700; font-size: 14px; color: var(--charcoal); min-width: 40px; }
  .st-codes { flex: 1; font-size: 12px; color: var(--sage); }
  .st-arrow { color: var(--gold); font-size: 14px; flex-shrink: 0; }
  /* Shot edit form in pencil Panel S */
  .se-label { font-size: 10px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; margin-top: 10px; }
  .se-club-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; margin-bottom: 4px; }
  .se-club-btn { background: var(--cream); border: 2px solid var(--cream-dark); border-radius: 8px; padding: 7px 2px; font-size: 11px; font-weight: 700; color: var(--charcoal); cursor: pointer; text-align: center; min-height: 38px; -webkit-tap-highlight-color: transparent; line-height: 1; }
  .se-club-btn.sel { background: var(--green-deep); border-color: var(--green-deep); color: var(--gold); }
  .se-result-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
  .se-result-btn { flex:1; min-width:46px; padding: 7px 2px; border: 2px solid var(--cream-dark); background: var(--cream); border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--charcoal); cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; line-height: 1.2; }
  .se-result-btn.sel { background: var(--green-deep); border-color: var(--green-deep); color: var(--gold); }
  .se-penalty-row { display: flex; gap: 4px; margin-bottom: 4px; }
  .se-penalty-btn { flex:1; padding: 7px 4px; border: 2px solid var(--cream-dark); background: var(--cream); border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--charcoal); cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; line-height: 1.2; }
  .se-penalty-btn.sel { background: var(--teal); border-color: var(--teal); color: #fff; } /* EDIT v1.8.8 — teal, no red */

  /* ── Hole popups (bottom sheets) ───────────────────── */
  .hole-popup { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; }
  .hole-popup.open { pointer-events: all; }
  .hole-popup-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,18,32,0); transition: background 0.22s; }
  .hole-popup.open .hole-popup-backdrop { background: rgba(10,18,32,0.72); }
  .hole-popup-sheet { background: var(--cream); border-radius: 22px 22px 0 0; padding: 16px 18px 32px; max-height: 84%; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; transform: translateY(100%); transition: transform 0.25s cubic-bezier(0.25,0.8,0.3,1); }
  .hole-popup-sheet::-webkit-scrollbar { display: none; }
  .hole-popup.open .hole-popup-sheet { transform: translateY(0); }
  .hps-drag { width: 40px; height: 4px; background: var(--cream-dark); border-radius: 2px; margin: 0 auto 14px; }
  .hps-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .hps-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--green-deep); }
  .hps-close { background: #c94d12; border: 2px solid #ffffff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #ffffff; -webkit-tap-highlight-color: transparent; box-shadow: 0 2px 6px rgba(0,0,0,0.55); z-index: 9999; flex-shrink: 0; line-height: 1; }
  .hps-close:active { transform: scale(0.92); opacity: 0.9; }
  .hps-section { font-size: 11px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; margin-top: 4px; }
  /* EDIT v1.1.15 putts-btn: smaller, less visually dominant, still tappable */
  .putts-btn { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--cream-dark); background: var(--cream); font-size: 22px; font-weight: 900; color: var(--green-deep); cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
  .putts-btn:active { background: var(--green-deep); color: var(--gold); border-color: var(--green-deep); }
  .putts-btn-add { background: var(--green-deep); border-color: var(--green-deep); color: var(--gold); }
  .putts-btn-add:active { background: var(--gold); color: var(--green-deep); }
  .putts-num { font-size: 40px; font-weight: 700; color: var(--green-deep); min-width: 50px; text-align: center; }
  .putts-ctrl { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px; margin: 14px 0 18px; }

  /* EDIT v1.1.0 hole-nav-bar: hidden — replaced by hole-bottom-tray */
  .hole-nav-bar { display: none !important; }
  .hnb-arrow { display: none !important; }
  .hnb-complete { display: none !important; }
  .hnb-sc { display: none !important; }
  .hnb-sc-icon { display: none !important; }
  /* Hz type buttons */
  .hz-type-btn { background: rgba(26,45,74,0.06) !important; }
  .hz-type-btn.selected { background: var(--green-mid) !important; border-color: var(--green-light) !important; color: var(--cream) !important; }
  .hz-relief-btn { font-size: 11px !important; padding: 6px 4px !important; }
  /* Rules tabs reuse mg-tab style */
  /* Confirm modal */
  .confirm-modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,20,35,0.82); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 100; padding: 32px; }
  .confirm-box { background: var(--cream); border-radius: 20px; padding: 28px 24px; width: 100%; text-align: center; }
  .confirm-title { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--green-deep); font-weight: 700; margin-bottom: 8px; }
  .confirm-sub { font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.5; }
  .confirm-btns { display: flex; gap: 10px; }
  .confirm-btn-ok { flex: 1; padding: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #f5f0e8; border: none; border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; }
  .confirm-btn-cancel { flex: 1; padding: 14px; background: rgba(26,45,74,0.08); color: var(--green-deep); border: none; border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; }

  /* Shot log */
  .shot-log { background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .shot-log-header { background: var(--green-deep); color: var(--cream); padding: 10px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; display: flex; justify-content: space-between; }
  .shot-item { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--cream-dark); gap: 10px; }
  .shot-item:last-child { border-bottom: none; }
  .shot-num { width: 22px; height: 22px; background: var(--green-deep); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
  .shot-club { font-weight: 600; font-size: 14px; color: var(--charcoal); width: 42px; }
  .shot-codes { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; }
  .shot-del  { background: none; border: none; color: #ccc; cursor: pointer; font-size: 16px; padding: 2px; }
  .shot-item.editing { background: #fdf4ef; border-left: 3px solid var(--gold); }
  .edit-mode-banner { background: var(--gold); color: #f5f0e8; font-size: 14px; font-weight: 700; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; }
  .no-shots { padding: 20px; text-align: center; color: var(--sage); font-size: 14px; }

  /* Add shot panel */
  .add-shot-panel { background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .panel-title { font-size: 12px; font-weight: 600; color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
  .club-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; margin-bottom: 8px; }
  .club-btn { background: linear-gradient(145deg, #e6c27a, #cfa65c); border: 2px solid #b8904a; border-radius: 10px; padding: 10px 2px; font-size: 13px; font-weight: 600; color: #1f2a44; cursor: pointer; text-align: center; line-height: 1.1; min-height: 52px; -webkit-tap-highlight-color: transparent; } /* EDIT v1.1.19 — lighter amber btn, navy text, slight padding reduce */
  .club-btn.selected { background: var(--green-deep); border-color: var(--green-deep); color: var(--gold); }
  .code-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
  .code-btn { background: var(--cream); border: 2px solid var(--cream-dark); border-radius: 10px; padding: 12px 2px; font-size: 14px; font-weight: 700; color: var(--charcoal); cursor: pointer; text-align: center; line-height: 1.1; min-height: 52px; -webkit-tap-highlight-color: transparent; }
  .code-btn.selected { background: var(--green-deep); border-color: var(--green-deep); color: var(--gold); }
  .code-btn.sel-red { background: var(--teal); border-color: #ffffff; color: white; } /* EDIT v1.8.8 — teal, no red */

  /* Score display */
  .num-btn { width:30px;height:30px;border-radius:50%;border:2px solid var(--green-light);background:none;color:var(--green-deep);font-size:18px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center; }
  .num-btn:active { background:var(--green-deep);color:var(--gold); }
  .score-display-row { background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; display: flex; gap: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .score-box, .putt-box { flex: 1; text-align: center; }
  .card-label { font-size: 12px; font-weight: 500; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; }
  .num-val { font-size: 26px; font-weight: 700; display: block; margin-top: 6px; }

  /* Practice game bars */
  .stig-bar { background: var(--white); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .stig-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage); margin-bottom: 8px; font-weight: 600; }
  .stig-holes { display: flex; gap: 6px; }
  .stig-hole { flex: 1; height: 8px; border-radius: 4px; background: var(--cream-dark); transition: background 0.3s; }
  .stig-hole.done { background: var(--gold); }
  .stig-goal-inputs { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:8px; }
  .stig-goal-input-wrap { text-align:center; }
  .stig-goal-label { font-size:10px; color:var(--sage); font-weight:600; text-transform:uppercase; margin-bottom:4px; }
  .stig-goal-field { width:100%; padding:8px 4px; border:2px solid var(--cream-dark); border-radius:8px; font-family:'DM Sans',sans-serif; font-size:16px; font-weight:700; text-align:center; color:var(--green-deep); outline:none; background:var(--white); }
  .stig-goal-field:focus { border-color:var(--gold); }
  .stig-stat-boxes { display:flex; gap:8px; margin-top:8px; }
  .stig-stat-box { flex:1; background:var(--cream); border-radius:10px; padding:8px 6px; text-align:center; }
  .stig-stat-box-label { font-size:9px; text-transform:uppercase; letter-spacing:0.07em; color:var(--sage); font-weight:600; }
  .stig-stat-box-val { font-size:18px; font-weight:700; color:var(--green-deep); margin-top:2px; }
  .stig-stat-box-sub { font-size:10px; color:var(--sage); margin-top:1px; }
  .under-goal { color:var(--teal); }
  .over-goal  { color:#ffffff; }
  .at-goal    { color:var(--green-deep); }
  .stig-hole.active { background: var(--green-light); }
  .stig-feedback { font-size: 12px; font-weight: 600; color: var(--teal); margin-top: 6px; min-height: 16px; }

  /* EDIT v1.1.5 scorecard: spec rebuild — shapes-only scoring, paper-card layout */
  /* EDIT v1.1.7 scorecard-sizing: taller rows, larger text, white text for outdoor readability */
  .scorecard-table { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); margin-bottom: 0; overflow-x: auto; }
  /* v6.6.3 — generic multi-golfer scorecard spacing: works for any number of
     player cards (1 for Solo, 2+ for Challenge) and any number of nines within
     a card — not tied to "front"/"back" or "opponent"-specific selectors. */
  .sc-player-card + .sc-player-card { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cream-dark, #ddd6c8); }
  .sc-player-card .scorecard-table + .scorecard-table { margin-top: 10px; }
  .sc-player-card-title { font-size: 17px; font-weight: 800; color: var(--charcoal, #1c1c1e); letter-spacing: 0.01em; margin: 0 2px 4px; }
  .sc-player-card-course { font-size: 13px; font-weight: 700; color: var(--charcoal, #1c1c1e); opacity: 0.82; margin: 2px 2px 10px; }
  .sc-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
  /* EDIT v1.1.7 sc-table-th: white text in dark blue headers for outdoor readability */
  .sc-table th { background: var(--green-deep); color: #ffffff; padding: 9px 2px; text-align: center; font-weight: 700; font-size: 11px; text-transform: uppercase; white-space: nowrap; }
  /* EDIT v1.2.0 sc-first-col: wider first column so names fit cleanly */
  .sc-table th:first-child { text-align: left; padding-left: 6px; width: 74px; }
  /* v2.35.19 — all scorecard/game/stack td: Par-row size (13px), darker for outdoor, consistent weight, left labels */
  .sc-table td { padding: 7px 2px; text-align: center; border-bottom: 1px solid var(--cream-dark); border-right: 1px solid var(--cream-dark); color: #111; font-weight: 700; white-space: nowrap; font-size: 13px; }
  .sc-table th { border-right: 1px solid rgba(255,255,255,0.25); }
  .sc-table td:first-child { text-align: left; padding-left: 6px; font-weight: 700; font-size: 13px; width: 74px; color: #111; }
  /* v7.2.52 — reserve a real totals column. Challenge rows can display xx/xx
     (net/goal, points/goal), so the old ~38px calculated width clipped on phones.
     Keep the 74px label column, dedicate 56px to Total, and let the nine hole
     columns share the remaining width. Kalam/Arial Narrow keeps compound totals crisp. */
  .sc-table th:last-child, .sc-table td:last-child { width: 56px; min-width:56px; max-width:56px; padding-left:1px; padding-right:1px; }
  /* v7.4.27 — per directive "Finalize Power Ball Scorecard / Game Bar
     Display Standard" §4: Power Ball's own total column now carries a
     Gross/Net fraction (e.g. "40/38"), which doesn't fit the standard
     56px total column. Scoped to .sc-pb-table (added by js/scorecard.js
     only for a Power Ball challenge's own buildNine() tables) so every
     other game's scorecard keeps its existing 56px column untouched; the
     9 hole columns (width:auto, see the rule below) absorb the
     difference automatically under table-layout:fixed. */
  .sc-table.sc-pb-table th:last-child, .sc-table.sc-pb-table td:last-child { width: 72px; min-width:72px; max-width:72px; }
  .sc-table th:not(:first-child):not(:last-child), .sc-table td:not(:first-child):not(:last-child) { width:auto; }
  .sc-table tr.sc-game-stack-row td:last-child,
  .sc-table tr.sc-putts-row td:last-child { font-family:'Kalam','Arial Narrow',sans-serif; letter-spacing:-0.04em; font-size:13px; }


  /* v7.2.52 — Challenge scorecard header is always three visible lines. */
  #sc-header-challenge #sc-chall-title,
  #sc-header-challenge #sc-chall-players,
  #sc-header-challenge #sc-chall-subtitle { display:block !important; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #sc-header-challenge #sc-chall-title { color:#fff !important; font-size:18px !important; font-weight:900 !important; line-height:1.18 !important; }
  #sc-header-challenge #sc-chall-players { color:#fff !important; font-size:13px !important; font-weight:700 !important; line-height:1.2 !important; margin-top:3px !important; }
  #sc-header-challenge #sc-chall-subtitle { color:rgba(255,255,255,.96) !important; font-size:12px !important; font-weight:700 !important; line-height:1.2 !important; margin-top:3px !important; }

  /* v7.0.12 — score row identity is intentionally compact and italic; the
     96px first column gives roughly 10 characters of usable label width. */
  .sc-player-row-name { font-style: italic; font-weight: 800; font-size: 13px; }

  .sc-table tr.sc-hcp-row td  { background: #fffdf5; color: #7a5c10; font-size: 11px; padding: 4px 2px; font-weight: 600; }
  .sc-table tr.sc-hcp-row td:first-child { text-align: left; color: #7a5c10; font-size: 11px; }
  .sc-table tr.sc-yds-row td  { background: #fffdf5; color: #5c4800; font-size: 11px; padding: 5px 2px; font-weight: 700; }
  .sc-table tr.sc-yds-row td:first-child { text-align: left; color: #5c4800; }
  .sc-table tr.sc-par-row td  { background: #f0f7f0; color: #1a5c1a; font-weight: 700; font-size: 13px; padding: 7px 2px; }
  .sc-table tr.sc-par-row td:first-child { text-align: left; padding-left: 6px; color: #1a5c1a; font-weight: 700; }
  /* v2.35.20 — putts/net/analytics rows: equal height as Par (7px), same font/weight, left-aligned label */
  .sc-table tr.sc-putts-row td { background: #fffdf5; color: #6b4800; font-size: 13px; padding: 7px 2px; font-weight: 700; }
  .sc-table tr.sc-putts-row td:first-child { text-align: left; padding-left: 6px; color: #6b4800; font-size: 13px; font-weight: 700; }
  .sc-net-cell { position: relative; }
  .sc-net-stroke-dot { position:absolute; top:3px; right:4px; width:5px; height:5px; border-radius:50%; background:#111; display:block; }
  .sc-net-half-mark { position:absolute; top:1px; right:3px; font-size:7px; line-height:1; font-weight:900; color:#111; letter-spacing:-1px; }
  .sc-net-cell .sc-net-stroke-dot + .sc-net-half-mark { right:10px; }
  /* v7.4.27 — per directive "Finalize Power Ball Scorecard / Game Bar
     Display Standard" §5: "If that same hole is also a stroke hole, show
     a white dot" — a dark dot barely reads against the yellow ball (and
     can blend with the ball's own black numeral), so it flips to white
     with a thin dark ring for edge definition whenever it shares a cell
     with a Power Ball ball, on either the scorecard or the game bar.
     :has() scopes this to just those cells — every ordinary stroke-hole
     dot elsewhere is completely unaffected. */
  .sc-table td:has(.sc-pb-ball) .sc-net-stroke-dot,
  .cgb-cell:has(.cgb-pb-ball) .sc-net-stroke-dot {
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.55);
  }
  .sc-table td:has(.sc-pb-ball) .sc-net-half-mark,
  .cgb-cell:has(.cgb-pb-ball) .sc-net-half-mark {
    color: #ffffff;
    text-shadow: 0 0 1px rgba(0,0,0,0.75);
  }
  /* v2.35.20 — game stack rows: equal height as Par (7px), same font/weight, left-aligned label */
  .sc-table tr.sc-game-stack-row td { background: #e8f4e8; color: #0f4010; font-size: 13px; padding: 7px 2px; font-weight: 700; }
  .sc-table tr.sc-game-stack-row td:first-child { text-align: left; padding-left: 6px; padding-right: 2px; font-size: 11px; font-weight: 800; letter-spacing:-0.02em; color: #0f4010; white-space:nowrap; }
  .sc-table td.hole-active { background: #fdf4ef !important; }
  .sc-table th.hole-active { background: #c9a84c !important; color: var(--green-deep) !important; }
  .sc-table td.seg-end { border-right: 2px solid var(--green-deep) !important; }
  .sc-table th.seg-end { border-right: 2px solid var(--gold) !important; }
  /* Score shapes — shapes only, uniform dark text, no color coding */
  /* EDIT v1.1.7 sc-num: larger shape badges for outdoor visibility */
  .sc-num { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; font-size:14px; font-weight:700; color:#111; line-height:1; }

  /* v7.4.27 — Gross/Net total text (e.g. "40/38"). Deliberately NOT
     .sc-num: that class is a fixed 28x28 circular badge sized for a
     single 1-2 digit score, and a 5-character fraction would overflow
     it. Plain inline text instead, sized/weighted to match the rest of
     the total row; only used for a Power Ball scorecard's own total
     cell (see js/scorecard.js). */
  .sc-tot-fraction { display:inline-flex; align-items:center; justify-content:center; font-size:15px; font-weight:700; color:#111; line-height:1; white-space:nowrap; }
  @media (max-width:768px) {
    .sc-tot-fraction { font-size:13px; }
  }

  /* v7.4.16 — Power Ball scorecard hole display. Read-only: selections are
     locked before the round starts (js/challenge.js pre-round setup), so
     there is no tap target here anymore (.sc-pb-pick star toggle removed
     — that was the in-round designation cheating vector the directive
     required eliminating). .sc-pb-ball renders the REAL
     assets/balls/yellow-ball.png golf-ball image (dimples/texture, no
     border, no box, no background box behind it — corrected per Claude
     Directive "Power Ball Corrections" §3/§4, which replaced a CSS-drawn
     white circle with an orange numeral) a designated hole's score sits
     on once saved, with the modified stroke value in BLACK centered over
     it, sized to the scorecard's .sc-num box model. .sc-pb-ball-blank is
     the same ball image, no numeral, shown on a designated hole before
     it's been saved. */
  .sc-pb-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: url('../assets/balls/yellow-ball.png') center / contain no-repeat;
    color: #000000;
    /* v7.4.26 — was a hardcoded 13px/900. Per directive "Power Ball
       Scorecard vs. Game Bar Standard" §4, the number on the ball must
       use the EXACT same font size and weight as an ordinary scorecard
       score — not merely a similar one. The actual applied size/weight
       for an ordinary score is set on the surrounding <td>
       (.sc-table tr.sc-player-row td:not(:first-child)) through several
       responsive !important overrides further down this file (22px/400,
       23px/400, clamp() variants at narrower widths, etc.) — a hardcoded
       number here would only match ONE of those breakpoints and drift at
       every other one. .sc-pb-ball has no size/weight of its own
       declared elsewhere, so `inherit` picks up whatever the enclosing
       cell's real, currently-active value is at all times, guaranteeing
       an exact match at every screen size without hand-tracking each
       breakpoint. Color stays explicit #000000 (true black, not the
       ordinary score's dark-grey #3f454a) — directive §4 calls for black
       specifically, for contrast against the yellow ball. */
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
  }
  .sc-pb-ball-blank { /* selected-but-unplayed: the ball image itself, no number, no box */ }

  /* v7.4.26 — a SCORED .sc-pb-ball also carries '.sc-num' now (see
     renderBallHtml() in js/canardly-special-games.js), so its font-size
     and font-weight automatically match an ordinary score exactly via
     that class's own responsive !important rules further down this
     file. Those same rules also set an ordinary score's dark-grey
     (#3f454a) text color, though — directive "Power Ball Scorecard vs.
     Game Bar Standard" §4 wants the ball's numeral BLACK specifically
     (for contrast against the yellow ball), so this reclaims it with
     three combined classes (higher specificity than any single
     ".sc-table .sc-num" rule, so it wins regardless of source order). */
  .sc-table .sc-pb-ball.sc-num {
    color: #000000 !important;
  }

  /* [fix] — birdie/eagle/bogey/double-bogey circle/square shapes removed per
     direct request: not necessary at-a-glance, and the space is needed for
     the handicap stroke dot. .sc-num itself (plain score, no border/shape)
     is unchanged and still used for every score. */
  /* EDIT v1.1.11 sc-shot-strip: color darkened to green-deep for outdoor readability on light cell bg */
  .sc-shot-strip { font-size:9px; font-weight:700; color:var(--green-deep); line-height:1.35; margin-top:2px; letter-spacing:-0.01em; }
  .sc-shot-dot   { font-size:5px; vertical-align:middle; margin:0 1px; } /* tiny dot separator */
  /* EDIT v1.1.11 sc-shot-strip-expanded: completed-hole expanded shot line */
  .sc-shot-strip-expanded { font-size:9px; font-weight:700; color:var(--green-deep); line-height:1.4; margin-top:3px; letter-spacing:-0.01em; }
  /* EDIT v1.1.11 sc-pencil-btn: small pencil inside expanded completed-hole shot strip */
  .sc-pencil-btn { background:none; border:none; font-size:11px; cursor:pointer; color:var(--gold); padding:0 1px; vertical-align:middle; -webkit-tap-highlight-color:transparent; }
  /* EDIT v1.29.1 — CSS backstop: scorecard shot tracking strips hidden; data preserved for future shot history features */
  .sc-shot-strip,
  .sc-shot-strip-expanded,
  .sc-pencil-btn {
    display: none !important;
  }
  .sc-dim { color:#bbb; }
  .sc-sm  { font-size:11px; }
  /* Totals card */
  .totals-card { background: var(--green-deep); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; display: flex; justify-content: space-around; }
  .total-item { text-align: center; }
  .total-label { color: rgba(255,255,255,0.62); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
  .total-value { color: #ffffff; font-size: 28px; font-weight: 700; margin-top: 4px; }
  .total-value.gold { color: var(--gold); }
  /* EDIT v1.1.7 sc-action-bar: fixed bottom button row — Round Summary / Home / New Round */
  .sc-action-bar { position: sticky; bottom: 0; left: 0; right: 0; background: #0f1e30; border-top: 1px solid rgba(255,255,255,0.12); display: flex; gap: 8px; padding: 10px 12px 16px; z-index: 10; }
  .sc-action-bar .sc-ab-btn { flex: 1; padding: 12px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
  .sc-ab-btn-primary { background: var(--orange); color: #fff; }
  .sc-ab-btn-ghost   { background: rgba(255,255,255,0.10); color: #fff; border: 1.5px solid rgba(255,255,255,0.25) !important; }
  /* pad body content so it doesn't hide behind the sticky bar */
  #screen-scorecard .screen-body { padding-bottom: 80px; padding-left: 0; padding-right: 0; }
  /* Game tracker */
  /* EDIT v1.2.5 — sc-game-name-row / sc-game-score-row: game display inside main sc-table */
  .sc-game-name-row td { background:var(--green-deep); color:#fff; padding:5px 6px 4px; border:none; border-top:2px solid var(--green-mid); }
  .sc-game-name-row td:first-child { font-size:11px; font-weight:600; text-align:left; padding-left:8px; text-transform:none; letter-spacing:0; }
  .sc-game-score-row td { background:#f7fbf7; font-size:11px; font-weight:700; padding:4px 2px; text-align:center; border-bottom:1px solid var(--cream-dark); }
  .sc-game-score-row td:first-child { text-align:left; padding-left:8px; font-size:9px; color:var(--sage); font-weight:700; text-transform:uppercase; letter-spacing:0.05em; }
  .sc-game-score-row td.gsc-good { color:#1a5c1a; }
  .sc-game-score-row td.gsc-bad  { color:#8b5a00; } /* EDIT v1.8.9 — amber, no red */
  .sc-game-score-row td.gsc-neu  { color:var(--charcoal); }
  .game-tracker-table { width:100%; border-collapse:collapse; font-size:11px; table-layout:fixed; }
  .game-tracker-table td { padding:4px 2px; text-align:center; border-bottom:1px solid var(--cream-dark); font-weight:600; font-size:10px; white-space:nowrap; }
  .game-tracker-table td:first-child { text-align:left; padding-left:6px; font-size:9px; color:var(--sage); font-weight:700; text-transform:uppercase; letter-spacing:0.05em; width:52px; }
  .game-tracker-table td.gt-under { color:#2d5a7a; }
  .game-tracker-table td.gt-over  { color:#ffffff; }
  .game-tracker-table td.gt-even  { color:var(--charcoal); }
  .game-tracker-table td.seg-end  { border-right:2px solid var(--green-deep); }
  .mg-tab { flex:1; padding:8px 4px; border:none; border-radius:9px; font-family:'DM Sans',sans-serif; font-size:12px; font-weight:600; cursor:pointer; background:transparent; color:var(--sage); transition:all 0.15s; }
  .mg-tab-active { background:var(--white); color:var(--green-deep); box-shadow:0 1px 4px rgba(0,0,0,0.1); }
  .trend-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--cream-dark); }
  .trend-row:last-child { border-bottom:none; }
  .trend-label { font-size:13px; color:#666; }
  .trend-arrow-up   { color:var(--teal); font-size:16px; font-weight:700; }
  .trend-arrow-down { color:#ffffff; font-size:16px; font-weight:700; }
  .trend-arrow-flat { color:var(--sage); font-size:16px; }
  .trend-vals { text-align:right; font-size:12px; color:var(--sage); }
  .club-bag-item { background:var(--white); border-radius:var(--radius-sm); padding:14px 16px; margin-bottom:8px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 2px 6px rgba(0,0,0,0.05); cursor:pointer; }
  .club-bag-item:active { background:var(--cream); }
  .club-bag-id { background:var(--green-deep); color:var(--gold); border-radius:8px; padding:4px 10px; font-size:12px; font-weight:700; min-width:48px; text-align:center; flex-shrink:0; }
  /* EDIT v1.16.11 — MY BAG ACTIVE CONTROL: visible toggle button (was invisible unstyled div) */
  .club-toggle {
    width: 44px; height: 26px;
    border-radius: 13px;
    background: #d0cfc8;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.18s;
    -webkit-tap-highlight-color: transparent;
  }
  .club-toggle::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform 0.18s;
  }
  .club-toggle-on { background: var(--gold); }
  .club-toggle-on::after { transform: translateX(18px); }
  .club-bag-info { flex:1; margin-left:12px; }
  .club-bag-name { font-weight:600; font-size:14px; color:var(--charcoal); }
  .club-bag-detail { font-size:12px; color:var(--sage); margin-top:2px; }
  .club-bag-arrow { color:var(--gold); font-size:18px; }
  /* EDIT v1.21.0 — Carry Comparison styles */
  .carry-row { display:flex; align-items:center; gap:6px; margin-top:5px; flex-wrap:wrap; }
  .carry-pill { font-size:10px; font-weight:700; padding:2px 6px; border-radius:6px; white-space:nowrap; }
  .carry-pill-user { background:rgba(26,45,74,0.10); color:var(--green-deep); }
  .carry-pill-avg  { background:rgba(6,122,149,0.12); color:var(--teal); }
  .carry-diff-pos  { background:rgba(39,174,96,0.15); color:#1a7a42; font-size:10px; font-weight:800; padding:2px 7px; border-radius:6px; }
  .carry-diff-neg  { background:rgba(192,57,43,0.12); color:#a82316; font-size:10px; font-weight:800; padding:2px 7px; border-radius:6px; }
  .carry-diff-zero { background:rgba(100,100,100,0.10); color:var(--sage); font-size:10px; font-weight:700; padding:2px 7px; border-radius:6px; }
  .carry-insight { background:rgba(26,45,74,0.06); border-left:3px solid var(--teal); border-radius:8px; padding:8px 12px; margin-bottom:12px; font-size:11px; color:var(--green-deep); line-height:1.5; }
  .stat-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--cream-dark); font-size:13px; }
  .stat-row:last-child { border-bottom:none; }
  .stat-label { color:#666; }
  .stat-value { font-weight:700; color:var(--green-deep); }
  .stat-value.good { color:var(--teal); }
  .stat-value.warn { color:#ffffff; }
  .score-dist-item { text-align:center; }
  .score-dist-num { font-size:22px; font-weight:700; }
  .score-dist-label { font-size:10px; color:var(--sage); text-transform:uppercase; letter-spacing:0.06em; margin-top:2px; }
  .feedback-card { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
  .feedback-icon { font-size: 32px; margin-bottom: 8px; }
  .feedback-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--gold); margin-bottom: 6px; }
  .feedback-text { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.5; }
  /* Focus metric checkboxes */
  .fm-check { display:flex; align-items:center; gap:10px; padding:9px 12px; background:var(--cream); border-radius:10px; margin-bottom:6px; font-size:13px; font-weight:500; color:var(--charcoal); cursor:pointer; border:2px solid transparent; transition:border-color 0.15s; }
  .fm-check:has(input:checked) { background:#fdf4ef; border-color:var(--gold); color:var(--green-deep); font-weight:600; }
  .fm-check input[type=checkbox] { width:18px; height:18px; accent-color:var(--gold); cursor:pointer; flex-shrink:0; }
  /* PERMA star rating */
  .perma-star { width:44px; height:44px; border:none; background:none; font-size:26px; cursor:pointer; opacity:0.25; transition:opacity 0.15s; padding:0; display:flex; align-items:center; justify-content:center; }
  .perma-star.lit { opacity:1; }

  /* ── Orientation-stable sizing ──────────────────────────────────────── */
  /* EDIT v1.8.6 — Orientation bug fix:
     • Portrait rule broadened from max-width:430px to all widths (rotation can
       temporarily report a wrong width while settling, causing the rule to miss)
     • Both portrait and landscape now use 100dvh consistently (was svh vs dvh mix)
     • No inline width/height transitions on #app — these lock the app into an
       intermediate size if a second rotation fires before the first completes
     Root cause of 25%-visible bug: iOS preserves pinch-zoom level across rotation;
     CSS alone cannot reset it — see JS orientationchange handler below. */
  @media (orientation: portrait) {
    html, body { height: 100%; overflow: hidden; }
    body { align-items: center; min-height: unset; }
    #app { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; }
  }
  /* Portrait scorecard shape sizes — phones only */
  @media (max-width: 430px) and (orientation: portrait) {
    /* EDIT v1.8.0 — portrait scorecard: smaller shape outlines so circles/squares
       don't bleed into adjacent cell edges; number size unchanged */
    .sc-num { width: 22px; height: 22px; font-size: 13px; }
  }

  /* ── Landscape mode ─────────────────────────────────────────────────── */
  /* EDIT v1.8.5 — removed max-height: 500px constraint; all landscape orientations now fill screen */
  @media (orientation: landscape) {
    body { align-items: flex-start; justify-content: flex-start; }
    #app { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; }
    .hole-header { padding: 0; }
    .hole-hdr-nav { padding: 14px 10px 8px; }
    .header { padding: 14px 24px 14px; }
    .sc-table { font-size: 11px; }
    .sc-table th, .sc-table td { padding: 5px 3px; }
    .sc-table th:first-child, .sc-table td:first-child { padding-left: 6px; }
    .scorecard-table { border-radius: 10px; }
    .screen-body { padding: 12px; }
    .splash-logo { font-size: 30px; }
    .splash-tagline { margin-bottom: 18px; }
  }

  /* Scorecard landscape expansion — JS-toggled when scorecard is active in landscape */
  body.scorecard-landscape { align-items: flex-start; justify-content: flex-start; }
  body.scorecard-landscape #app {
    width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; max-width: none;
  }
  body.scorecard-landscape .sc-table { font-size: 12px; }
  body.scorecard-landscape .sc-table th, body.scorecard-landscape .sc-table td { padding: 6px 5px; }
  body.scorecard-landscape .screen-body { padding: 14px 18px; }
  body.scorecard-landscape .scorecard-table { border-radius: 10px; }
  body.scorecard-landscape .header { padding: 12px 20px; }
  /* EDIT v1.8.6 — removed transition: width/height on scorecard-landscape #app;
     this transition was locking #app into an intermediate size on rapid rotation */


  /* EDIT v2.22.20 — Device-resilient hole page regions: same hierarchy on every mobile/tablet/desktop viewport. */
  #screen-hole.active {
    display: block;
    position: relative;
    overflow: hidden;
  }

  /* Header/info zone stays at the top as a layout region; children flow in order. */
  #screen-hole .hf-top-bar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding-left: max(4px, env(safe-area-inset-left));
    padding-right: max(4px, env(safe-area-inset-right));
    overflow: visible !important;
  }

  /* Game/status zone: always directly under the hole info bar; never positioned by device or fixed pixels. */
  #screen-hole #hole-game-line {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: calc(100% - clamp(12px, 3vw, 28px));
    margin: 0 auto clamp(8px, 1.6vh, 14px) auto;
    min-height: clamp(48px, 7svh, 66px);
    padding: clamp(8px, 1.4vh, 12px) clamp(14px, 3.2vw, 24px);
    z-index: 62;
    flex-shrink: 0;
    max-width: 820px;
  }

  #screen-hole #hole-game-line .hgl-block-name {
    justify-content: center;
    gap: clamp(6px, 1.4vw, 12px);
    font-size: clamp(17px, 2.7vw, 24px);
    line-height: 1.15;
    margin-bottom: 0;
  }

  #screen-hole #hole-game-line .hgl-game-name-btn,
  #screen-hole #hole-game-line .hgl-name-goal,
  #screen-hole #hole-game-line .hgl-name-net,
  #screen-hole #hole-game-line .hgl-name-sep {
    font-size: inherit;
  }

  /* Course/map remains the flexible middle region behind the overlay UI. */
  #screen-hole .hole-map-layer {
    z-index: 0;
    background-color: transparent !important; /* v3.0.16 — hole rendering container background must be transparent */
  }

  @media (max-width: 480px) {
    #screen-hole .hftb-row1 {
      padding-left: 44px;
      padding-right: 44px;
    }
  }

  @media (min-width: 481px) and (max-width: 900px) {
    #screen-hole .hftb-row1 {
      min-height: clamp(46px, 6svh, 58px); /* v3.0.17 — was clamp(64px, 8svh, 82px) */
    }
    #screen-hole #hole-game-line {
      width: min(92vw, 760px);
    }
  }

  @media (min-width: 901px) {
    #screen-hole .hftb-row1 {
      min-height: clamp(44px, 5svh, 54px); /* v3.0.17 — was clamp(62px, 7svh, 78px) */
    }
    #screen-hole #hole-game-line {
      width: min(86vw, 820px);
    }
  }



  /* EDIT v2.22.20 — Mid-blue hole info bar + raised compact burnt-orange game bar */
  #screen-hole .hf-top-bar,
  .hf-top-bar {
    background: var(--hf-bar-bg, linear-gradient(180deg, #4A82B3 0%, #3E73A1 58%, #356A98 100%)) !important; /* v7.6.65 -- shared with the Footer Bar */
    border-top: none !important;
    box-shadow: var(--hf-bar-shadow-top) !important;
  }
  #screen-hole .hftb-row1 {
    min-height: var(--hf-bar-h, 46px); /* v7.6.62 — shared with the Hole Page footer bar (still 46px) */
  }

  #screen-hole #hole-game-line,
  #hole-game-line {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 42px !important;
    margin: 3px 0 8px 0 !important;
    padding: 4px 0.35em !important; /* v7.0.17 — horizontal padding ~= one space */
    border-radius: 5px !important;
    border: 3px solid #3a1206 !important;
    background:
      linear-gradient(180deg, #f06a1b 0%, #d84c0f 42%, #b93708 72%, #7e2305 100%) !important;
    box-shadow:
      0 8px 14px rgba(0,0,0,0.52),
      0 2px 4px rgba(0,0,0,0.70),
      inset 0 2px 0 rgba(255,194,92,0.72),
      inset 0 -4px 0 rgba(42,10,2,0.72),
      inset 3px 0 0 rgba(255,116,34,0.35),
      inset -3px 0 0 rgba(52,12,3,0.50) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #hole-game-line::before {
    content: '' !important;
    position: absolute !important;
    inset: 2px !important;
    height: auto !important;
    left: 2px !important;
    right: 2px !important;
    top: 2px !important;
    bottom: 2px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(255,176,70,0.62) !important;
    background: linear-gradient(180deg, rgba(255,220,130,0.18), rgba(255,255,255,0.02) 46%, rgba(0,0,0,0.16)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,244,210,0.24),
      inset 0 -1px 0 rgba(0,0,0,0.34) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  #hole-game-line::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 5px !important;
    background: none !important;
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.45),
      inset 0 0 10px rgba(62,15,4,0.55) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  /* ── v6.6.10 — CHALLENGE GREEN BAR (#chall-game-bar / .cgb-bar) ──────────
     Same dimensional-highlight design language as #hole-game-line above
     (dark border, gradient body, inset top/bottom highlights, ::before
     sheen overlay, ::after inset shadow) but GREEN, not orange — this bar
     is never confused with the Practice Game bar. Widened to near-full
     screen width (4-6px side margins, safe-area aware) instead of the old
     narrow centered card. */
  .cgb-bar {
    position: relative;
    width: auto;
    margin: 0;
    padding: 5px max(6px, env(safe-area-inset-right, 6px)) 2px max(6px, env(safe-area-inset-left, 6px));
    border-radius: 0 0 10px 10px;
    border: 2px solid #0a2412;
    border-top: none;
    background: linear-gradient(180deg, #2f6b45 0%, #1f5233 42%, #163f27 72%, #0d2a18 100%);
    box-shadow:
      0 6px 12px rgba(0,0,0,0.42),
      0 2px 4px rgba(0,0,0,0.55),
      inset 0 2px 0 rgba(180,255,205,0.42),
      inset 0 -3px 0 rgba(5,20,10,0.65),
      inset 2px 0 0 rgba(120,220,160,0.18),
      inset -2px 0 0 rgba(10,25,15,0.40);
    overflow: hidden;
    color: #ffffff;
    text-align: center;
  }
  .cgb-bar::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 7px;
    border: 1px solid rgba(150,230,180,0.35);
    background: linear-gradient(180deg, rgba(200,255,220,0.14), rgba(255,255,255,0.02) 46%, rgba(0,0,0,0.14));
    pointer-events: none;
    z-index: 0;
  }
  .cgb-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.40),
      inset 0 0 9px rgba(6,20,12,0.55);
    pointer-events: none;
    z-index: 1;
  }
  .cgb-line1, .cgb-line2 { position: relative; z-index: 2; }
  .cgb-line1 {
    font-size: clamp(14px, 3.6vw, 17px);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Match Play — single prominent centered standing. */
  .cgb-status {
    margin-top: 3px;
    font-size: clamp(22px, 7vw, 30px);
    font-weight: 900;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 3px rgba(0,0,0,0.65);
  }
  /* Stroke Play — 9-cell grid, one per f9/b9 line [item3], numbers
     centered, responsive font sizing so it never needs horizontal scroll
     at normal phone widths. */
  .cgb-grid {
    margin-top: 5px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: center;
    gap: 0;
  }
  /* [item3] — f9/b9 row wrapper: small label + that row's 9-cell grid. */
  /* [fix] — tightened vertical padding per direct request. */
  .cgb-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
  }
  .cgb-row-label {
    flex: 0 0 auto;
    font-size: clamp(9px, 2.3vw, 11px);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.65);
    text-transform: lowercase;
  }
  .cgb-row .cgb-grid { flex: 1 1 auto; margin-top: 0; }
  /* [v6.6.40] — compact F9/B9 control: the active-nine row's own label is
     the tappable target (shows the OTHER nine on tap) when both nines exist.
     For a 9-hole Challenge (single nine), .cgb-row-label renders without
     this modifier class — plain text, no toggle, per spec. */
  .cgb-row-label.cgb-nine-toggle {
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    -webkit-tap-highlight-color: transparent;
  }
  .cgb-row-label.cgb-nine-toggle:active { color: #ffffff; }
  /* [fix] — line total (f9/b9), e.g. "42/40" (gross/net, stroke holes
     present) or "41" (gross only, no strokes that nine). Reuses the same
     gross/net values already computed for the row's own cells — no second
     calculation. */
  .cgb-row-total {
    flex: 0 0 auto;
    font-size: clamp(12px, 3.4vw, 15px);
    font-weight: 800;
    color: #ffffff;
    padding-left: 2px;
    border-left: 1px solid rgba(255,255,255,0.25);
    white-space: nowrap;
  }
  .cgb-cell {
    font-size: clamp(13px, 4vw, 17px);
    font-weight: 800;
    line-height: 1.1;
    padding: 2px 0;
    text-align: center;
    border-radius: 3px;
    color: rgba(255,255,255,0.55);
    /* v7.4.26 — position:relative so the shared handicap-stroke dot
       (.sc-net-stroke-dot, appended as a sibling span by js/challenge.js's
       per-hole loop) can anchor to THIS cell's upper-right corner, exactly
       like the scorecard's .sc-net-cell already does. Harmless for cells
       that never carry a dot. */
    position: relative;
  }
  .cgb-cell.cgb-played { color: #ffffff; }
  /* v7.4.26 — per directive "Power Ball Scorecard vs. Game Bar Standard"
     §6 "Remove Host Game Bar Cell Borders": REMOVED. A handicap stroke on
     a hole is now communicated ONLY by the small corner dot baked
     directly into the cell's text (js/challenge.js), never by a
     background tint / inset box-shadow border around the cell — that
     border was the exact "visible cell edges/borders around some score
     positions" the directive called out. Since challRenderGameBar() is
     the ONE shared render path for both the host's and the opponent's
     bar, removing it here removes it identically from both — there was
     never a second, role-specific copy of this rule to find. Class no
     longer added by JS at all (kept as a harmless no-op selector, same
     precedent as this file's other superseded Power Ball rules, in case
     any cached/older client HTML still references it).
  .cgb-cell.cgb-stroke {
    background: rgba(255,255,255,0.14);
    box-shadow: inset 0 0 0 1px rgba(180,255,205,0.35);
  }
  */

  /* ── v7.4.16 — POWER BALL Game Bar (dedicated, non-goal, Stroke Play
     based). Power Ball's bar is intentionally NOT the shared active-nine
     9-cell grid every other game branch uses (see .cgb-pb-bar-row below)
     — it shows exactly the player's 4 fixed Power Hole slots for the
     whole round, per the directive. .cgb-pb-ball is the ball container a
     slot's score renders on once that hole is saved — v7.4.21 corrected
     it to the real assets/balls/yellow-ball.png image with a black
     numeral and no border/box (Claude Directive "Power Ball Corrections"
     §3/§4/§6), replacing the earlier CSS-drawn white circle. Per
     directive §9 the numeral inside must stay the SAME size/weight as
     every other game-bar number (font-size:1em / inherited weight — never
     shrunk to fit), with the ball itself only slightly larger than that
     numeral, not a large decorative icon.

     v7.4.19 — CORRECTED per Claude Directive "Correct Power Ball
     Implementation": Power Ball no longer has its own separate 4-slot
     bar row at all — challenge.js now renders a Power Hole's ball
     directly inside the SAME 9-cell Stroke Play grid every other hole
     uses (see the final `else` branch of challRenderGameBar()).
     .cgb-pb-ball itself is UNCHANGED and still actively used there
     (it fits an inline per-hole cell just as well as the old slot row).
     .cgb-pb-bar-row and .cgb-pb-slots below are now dead/unused — kept
     as harmless no-op rules (same precedent as .cgb-pb-ball-blank
     above) rather than deleted outright, in case any cached/older
     client HTML from a rolling deploy still references them. */
  .cgb-pb-cell { padding: 0; }
  .cgb-pb-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    background: url('../assets/balls/yellow-ball.png') center / contain no-repeat;
    color: #000000;
    /* v7.4.27 — per directive "Finalize Power Ball Scorecard / Game Bar
       Display Standard" §5 ("Do not use hard-to-read light text on the
       yellow ball"): #chall-game-bar .cgb-cell and .cgb-expanded-grid
       .cgb-cell both force -webkit-text-fill-color:#fff !important on
       the ANCESTOR cell. -webkit-text-fill-color is inherited, so without
       an explicit override here a descendant .cgb-pb-ball would paint its
       numeral white on WebKit even though `color:#000000` above is
       correct — an own declaration (even without !important) always
       beats an inherited value, so this single line guarantees true black
       on the ball in every context (collapsed or expanded) regardless of
       the ancestor cell's own text-color treatment. */
    -webkit-text-fill-color: #000000;
    font-size: 1em;
    /* v7.4.26 — was a hardcoded 800. The live collapsed Game Bar actually
       renders its ordinary score numbers at font-weight:500 (see the
       "#chall-game-bar .cgb-cell" !important overrides further down this
       file — the plain ".cgb-cell" rule's own 800 is never what actually
       reaches the screen there), so a hardcoded 800 here was quietly
       BOLDER than the ordinary numbers next to it — exactly the "do not
       use bold text" / "same font weight as an ordinary game-bar score"
       violation called out in directive "Power Ball Scorecard vs. Game
       Bar Standard" §2. `inherit` tracks whatever weight is actually
       applied to the parent .cgb-cell at render time, so this can never
       drift out of sync with it again, however that value changes.
       font-size:1em (above) already had the equivalent effect for size —
       unchanged. */
    font-weight: inherit;
    line-height: 1;
  }
  /* v7.4.26 — per directive "Power Ball Scorecard vs. Game Bar Standard"
     §8: the EXPANDED page's verification view never places a Power Ball
     hole's score on the ball image — it keeps the same plain "gross/final"
     text (and handicap dot) every other hole in the expanded grid uses,
     and simply tints the CELL itself yellow so the hole still reads as a
     Power Hole at a glance. Applied only in the expanded grid (added
     alongside '.cgb-played' by js/challenge.js's expanded-cell branch,
     never the collapsed one) — the collapsed cell for the same hole still
     gets the real .cgb-pb-ball image, never both treatments on one hole.
     #f5c842/#1a1a00 reuse this codebase's existing yellow-badge/dark-text
     pairing (see .hfbar-shotnote-btn .sn-badge above) rather than
     inventing a new yellow. */
  .cgb-cell.cgb-pb-expanded {
    background: #f5c842;
    color: #1a1a00;
  }
  .cgb-pb-ball.cgb-pb-ball-blank {
    /* v7.4.26 — per directive "Power Ball Scorecard vs. Game Bar
       Standard": REVERTED back to unused/no-op. js/challenge.js's game-bar
       per-hole loop no longer ever emits POWERBALL.renderBallHtml('gamebar',
       false, ...) — a selected-but-unplayed Power Hole now shows nothing
       special in the Game Bar (same plain em dash as any other unplayed
       hole). A ball is only ever rendered in the Game Bar once that Power
       Hole has actually been played and saved. Kept as a harmless no-op
       rule (not deleted) in case any cached/older client HTML from a
       rolling deploy still references the class, matching this file's
       existing precedent for superseded Power Ball rules.

       v7.4.25 (superseded above) — this modifier briefly styled a blank
       placeholder ball for a selected-but-unplayed Power Hole, per a
       directive that has since been reverted.

       v7.4.18 (superseded before that) — REMOVED per Claude Directive "Fix
       Power Ball Game Bar Exposure": this modifier styled a blank
       placeholder ball that challenge.js's game-bar renderer no longer
       ever emitted — a ball was only ever rendered once a selected
       Power Hole was actually completed and saved, so it always carried
       a real adjustment. */
  }
  /* v7.4.19 — DEAD/UNUSED: see the v7.4.19 note above .cgb-pb-cell. */
  .cgb-pb-bar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .cgb-pb-slots {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* v7.4.16 — REMOVED: .pb-picker-wrap / .pb-picker-btn styled the
     in-round Power Ball designation picker (#chall-my-powerball-picker),
     which appeared DURING live play on the Hole Page — the exact
     cheating vector (pick after seeing the result) this directive
     requires eliminating. Power Hole selection now happens exclusively
     before the round starts, in the pre-round modal
     (#chall-pb-setup-popup, see index.html/js/challenge.js), which uses
     its own .cpb-* classes below. #chall-my-powerball-picker has been
     removed from index.html entirely. */

  /* v7.4.17 — Power Hole SELECTION POPUP (mandatory, gates
     challStartRound()), rebuilt per Claude Directive "Power Ball
     Rules/Info Correction, Power Hole Selection Popup, and Larger Game
     Info Icon" to replicate the approved select_your_power_holes.png
     mockup as closely as practical with existing Canardly components:
     centered white rounded modal (.mp-sheet), title/subtitle hierarchy,
     course+tees line, instructional text, Front/Back scorecard-style
     sections (reusing .sc-table/.sc-par-row/.sc-hcp-row), a tappable
     score-box selection row, live front/back counters, a Close button,
     and a large Save Power Holes button. Replaces the removed
     .cpb-hole-grid/.cpb-hole-btn/.cpb-progress simple number-button
     picker entirely — no dots, chips, cards, dropdowns, or radio
     buttons anywhere in this selector. */
  .cpb-sheet {
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
  }
  .cpb-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  .cpb-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #0b1f3a;
  }
  .cpb-close-pill-btn {
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
  }
  .cpb-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
  }
  .cpb-course-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0b1f3a;
    margin-top: 4px;
  }
  .cpb-instructions {
    margin-top: 10px;
    font-size: 12.5px;
    color: #3a4a5a;
    line-height: 1.45;
  }
  .cpb-instructions div { margin-bottom: 2px; }
  .cpb-nine-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage, #7a8f83);
    margin: 14px 0 6px;
  }
  .cpb-nine-table { border-radius: 10px; overflow: hidden; }
  /* v7.4.21 — Fix Hole 9 / Hole 18 sizing: these tables reuse .sc-table,
     but the shared .sc-table th:last-child/td:last-child rule elsewhere
     in this file exists to fix-width the main scorecard's OUT/Total
     column (56px, !important) — not a hole. In THIS table, hole 9 (Front)
     and hole 18 (Back) are simply the last column of their own table, not
     a totals column, so they were wrongly inheriting that fixed width
     while every other hole column stayed auto-width, making them visibly
     larger. Scoped strictly to .cpb-nine-table so the main scorecard's
     OUT/Total column sizing is completely untouched. */
  .cpb-nine-table .sc-table th:last-child,
  .cpb-nine-table .sc-table td:last-child {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .cpb-scorebox-row td { padding: 4px 0; }
  .cpb-scorebox-cell {
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    height: 34px;
  }
  .cpb-scorebox-cell-on { background: rgba(201,77,18,0.06); }
  .cpb-scorebox-cell-disabled { cursor: default; opacity: 0.55; }
  .cpb-counters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-deep, #1a3a2a);
  }
  .cpb-counter-sep { color: #c9c2b4; }
  .cpb-counter-complete { color: #1a7a3a; }
  .cpb-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }
  .cpb-save-btn {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 0;
  }

  /* ── v7.4.7 — GOLF POKER own-hand panel ────────────────────────────────
     Device-holder-only panel, sibling of #chall-game-bar. Two-row layout:
     top row = cards (1-5 held, larger gap, 6th card only when a decision
     is pending); bottom row = game name / hand name. */
  .cph-wrap {
    margin: 6px 12px 0;
    padding: 8px 10px 10px;
    border-radius: 10px;
    background: rgba(13,27,46,0.9);
    border: 1px solid rgba(255,255,255,0.15);
  }
  .cph-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .cph-card {
    width: 30px;
    height: 42px;
    border-radius: 5px;
    background: #ffffff;
    color: #0d1b2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    flex-shrink: 0;
  }
  .cph-card-rank { font-size: 12px; }
  .cph-card-suit { font-size: 13px; margin-top: 1px; }
  .cph-card-red { color: #c0392b; }
  .cph-card-empty { background: rgba(255,255,255,0.08); box-shadow: none; }
  .cph-gap { width: 16px; flex-shrink: 0; }
  .cph-card-pulse { animation: cphPulse 1.1s ease-in-out infinite; }
  @keyframes cphPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(201,77,18,0.55), 0 1px 3px rgba(0,0,0,0.4); }
  }
  .cph-card-choosable { cursor: pointer; }
  .cph-tap-hint { text-align: center; font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 5px; }
  .cph-decision-row { display: flex; gap: 8px; justify-content: center; margin-top: 7px; }
  .cph-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
  }
  .cph-btn-discard { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.85); }
  .cph-btn-keep { background: #c94d12; color: #ffffff; }
  .cph-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 11px;
    color: rgba(255,255,255,0.75);
  }
  .cph-game-name { font-weight: 800; color: #ffffff; }
  .cph-hand-name { font-weight: 700; }

  /* ── v7.4.13 — GAME INFO button + popup (Challenge Invite/Setup) ──────
     Small, obvious-but-secondary ⓘ beside the Game label; popup content
     itself is plain, readable sections built by canardly-game-info.js.
     v7.4.17 — ENLARGED per Claude Directive "...Larger Game Info Icon":
     the icon was too small to notice/tap comfortably. Kept the exact
     same circled-"i" style (no plain text substitute), just bigger —
     32px circle (was 20px) with a proportionally larger glyph (20px,
     was 15px) and a little added left margin so it doesn't crowd the
     game name, for a clearly bigger and more comfortable mobile tap
     target while staying visually consistent with Canardly's existing
     small-round-button language used elsewhere in this file. */
  .cgi-info-btn {
    width: 32px;
    height: 32px;
    margin-left: 6px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: rgba(13,27,46,0.10);
    color: #0d1b2e;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    padding: 0;
    cursor: pointer;
  }
  .cgi-block { margin-bottom: 16px; }
  .cgi-block:last-child { margin-bottom: 0; }
  .cgi-heading {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0b1f3a;
    margin-bottom: 6px;
  }
  .cgi-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9a3412;
    margin-top: 10px;
    margin-bottom: 4px;
  }
  .cgi-text { font-size: 13.5px; color: #0b1f3a; line-height: 1.5; }
  .cgi-list { margin: 0; padding-left: 18px; font-size: 13.5px; color: #0b1f3a; line-height: 1.55; }
  .cgi-list li { margin-bottom: 3px; }

  #hole-game-line .hole-game-row,
  #hole-game-line .hgl-block,
  #hole-game-line .hgl-block-name {
    position: relative !important;
    z-index: 2 !important;
  }

  #screen-hole #hole-game-line .hgl-block-name,
  #hole-game-line .hgl-block-name {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.32em !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-size: clamp(20px, 5vw, 30px) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  #screen-hole #hole-game-line .hgl-game-name-btn,
  #hole-game-line .hgl-game-name-btn {
    /* EDIT v4.4.0 — was clamp(23px,5.4vw,34px): the initials + (Goal/Running Net
       Total) parenthetical must render at the exact same size as the hole
       scores/bullets and f9/b9 in the same row, not a larger dedicated title
       size. Matched to .hgl-name-goal/.hgl-name-net below. */
    font-size: clamp(21px, 5vw, 32px) !important;
    font-weight: 950 !important;
    letter-spacing: 0.005em !important;
    line-height: 1 !important;
    padding: 0 2px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 3px rgba(0,0,0,0.90), 0 0 8px rgba(0,0,0,0.55) !important;
  }

  #hole-game-line .hgl-game-name-btn::after {
    display: none !important;
  }

  #screen-hole #hole-game-line .hgl-name-goal,
  #screen-hole #hole-game-line .hgl-name-net,
  #hole-game-line .hgl-name-goal,
  #hole-game-line .hgl-name-net {
    font-size: clamp(21px, 5vw, 32px) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 3px rgba(0,0,0,0.92), 0 0 8px rgba(0,0,0,0.55) !important;
  }

  #screen-hole #hole-game-line .hgl-name-sep,
  #hole-game-line .hgl-name-sep {
    font-size: clamp(18px, 4.2vw, 26px) !important;
    color: #000000 !important;
    font-weight: 500 !important;
    margin: 0 clamp(2px, 1vw, 8px) !important;
    text-shadow: none !important;
  }

  /* EDIT v5.5.1 — S3 Font-Size Correction: "S3" itself (.hgl-s3-abbr) keeps
     the existing .hgl-game-name-btn size/weight/styling/position/emphasis
     untouched. Everything after "S3" — the Goal/Running Net (.hgl-s3-goalnet)
     and every hole value/dot/slash/pipe mark (.hgl-name-net) — is sized to
     match the f9/b9 label (.hgl-name-sep) instead of S3's larger size. Scoped
     to the S3 block only; every other Practice Game row is unchanged. */
  #screen-hole #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-s3-abbr,
  #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-s3-abbr {
    font-size: clamp(21px, 5vw, 32px) !important;
  }

  #screen-hole #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-s3-goalnet,
  #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-s3-goalnet,
  #screen-hole #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-name-net,
  #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-name-net {
    font-size: clamp(18px, 4.2vw, 26px) !important;
  }


  @media (max-width: 380px) {
    #screen-hole #hole-game-line,
    #hole-game-line {
      padding-left: 10px !important;
      padding-right: 10px !important;
    }
    #screen-hole #hole-game-line .hgl-block-name,
    #hole-game-line .hgl-block-name {
      gap: 7px !important;
    }
  }

  /* ═══════════════════════════════════════════════════════════════════
     v6.0.0 — CANARDLY STANDARD PAGE SYSTEM (MASTER DESIGN DIRECTIVE)
     Visual standardization only. No functionality, navigation, event
     handlers, stored data, IDs, or game logic modified. Additive CSS
     layered on top of the existing v3.0.0/v5.x design system tokens.
  ═══════════════════════════════════════════════════════════════════ */
  :root {
    /* ── Standard Page System tokens ── */
    --ps-nav-bg: linear-gradient(180deg, #f5f0e8 0%, #e3d9c6 46%, #cdbfa2 100%);
    --ps-aux-bg: linear-gradient(180deg, #f7f2ea 0%, #efe6d6 100%);

    --ps-text-primary:   #241a35;                 /* deep dark purple / near-black */
    --ps-text-secondary: #5b4a78;                 /* lighter purple, still readable */
    --ps-text-accent:    #c94d12;                 /* rich burnt orange — emphasis only */
    --ps-text-on-dark:   #f6ecd8;                  /* champagne / warm white */
    --ps-text-on-dark-sub: #e7d9bd;

    --ps-panel-bg:      linear-gradient(180deg, #ffffff 0%, #faf7f1 100%);
    --ps-panel-border:  rgba(90,58,20,0.22);
    --ps-panel-shadow:  0 10px 26px rgba(36,26,53,0.14), 0 2px 8px rgba(36,26,53,0.08);
    --ps-panel-radius:  18px;
    --ps-panel-pad:     18px 20px;
    --ps-panel-gap:     14px;

    --ps-selected-border: #3b1f66;                 /* bold crisp dark purple */
    --ps-selected-border-w: 3px;
    --ps-unselected-border: rgba(36,26,53,0.18);

    --ps-divider-section: rgba(59,31,102,0.35);
    --ps-divider-row:     rgba(59,31,102,0.16);
  }

  /* ── 1. MAIN NAVIGATION PAGES ─────────────────────────────────────
     Clubhouse, The Links, Player, Club Player, My Game (landing),
     Recent, My Bag, Tunes, Education, My Profile, Documents,
     Select Course, Choose Tees, Round Setup */
  #screen-clubhouse, #screen-path-select, #screen-players-hub,
  #screen-club-golfers, #screen-cg-profile, #screen-golf-buddies,
  #screen-gb-profile, #screen-stats, #screen-clubs, #screen-golfer,
  #screen-tunes, #screen-education, #screen-documents-how-to,
  #screen-courses, #screen-add-course, #screen-tee,
  #screen-play-setup, #screen-solo-game-setup, #screen-solo-games,
  #screen-mod2-players, #screen-mod2-player-profile, .ds-nav-page {
    background: var(--ps-nav-bg) !important;
  }
  #screen-clubhouse .screen-body, #screen-path-select .screen-body,
  #screen-players-hub .screen-body, #screen-club-golfers .screen-body,
  #screen-stats .screen-body, #screen-clubs .screen-body,
  #screen-golfer .screen-body, #screen-tunes .screen-body,
  #screen-education .screen-body, #screen-documents-how-to .screen-body,
  #screen-courses .screen-body, #screen-tee .screen-body,
  #screen-play-setup .screen-body, .ds-nav-page .screen-body {
    padding-top: var(--ds-gap-lg);
    padding-bottom: var(--ds-gap-lg);
  }
  /* Uniform premium panel treatment for nav-page buttons/categories */
  #screen-clubhouse .course-item, #screen-path-select .course-item,
  #screen-players-hub .course-item, #screen-club-golfers .course-item,
  #screen-stats .course-item, #screen-clubs .course-item,
  #screen-golfer .course-item, #screen-tunes .course-item,
  #screen-education .course-item, #screen-documents-how-to .course-item,
  #screen-courses .course-item, #screen-tee .course-item,
  #screen-play-setup .course-item, .ds-nav-page .course-item,
  .ds-nav-panel {
    background: var(--ps-panel-bg) !important;
    border-radius: var(--ps-panel-radius) !important;
    border: 1.5px solid var(--ps-panel-border) !important;
    box-shadow: var(--ps-panel-shadow) !important;
    padding: var(--ps-panel-pad) !important;
    margin-bottom: var(--ps-panel-gap) !important;
  }

  /* ── 2. AUXILIARY / INFORMATION PAGES ─────────────────────────────
     19th Hole, Challenges, My Trends, My Game detail pages, Quick
     Start, Manual, SIP, FREE TRIAL, Merch, Partners */
  #screen-19th-hole, #screen-mod2-challenges, #screen-chall-invite-detail,
  #screen-chall-match-setup, #screen-chall-opponent-setup,
  #screen-mod2-challenge-setup, #screen-mod2-challenge-detail,
  #screen-mod2-game-library, #screen-mod2-game-detail,
  #screen-mod2-groups, #screen-mod2-group-detail, #screen-mod2-create-group,
  #screen-review-game, #screen-scorecard, #screen-doc-quick-start,
  #screen-doc-manual, #screen-doc-sip-golf, #screen-doc-free-trial,
  #screen-merch, #screen-partners, #screen-rules, #screen-shot-guide,
  .ds-aux-page {
    background: var(--ps-aux-bg) !important;
  }
  #screen-19th-hole .content-panel, #screen-mod2-challenges .content-panel,
  .ds-aux-page .content-panel, .ds-aux-panel {
    background: var(--ps-panel-bg) !important;
    border-radius: var(--ps-panel-radius) !important;
    border: 1.5px solid var(--ps-panel-border) !important;
    box-shadow: var(--ps-panel-shadow) !important;
  }

  /* ── 3. TEXT LEGIBILITY — eliminate low-contrast gray text ───────
     Overrides low-opacity/gray inline + class-based text colors while
     leaving borders, shadows, and non-text uses untouched. */
  [style*="color:#666"], [style*="color: #666"],
  [style*="color:#777"], [style*="color: #777"],
  [style*="color:#888"], [style*="color: #888"],
  [style*="color:#999"], [style*="color: #999"],
  [style*="color:#aaa"], [style*="color: #aaa"],
  [style*="color:#bbb"], [style*="color: #bbb"],
  [style*="color:#ccc"], [style*="color: #ccc"],
  [style*="color:#555"], [style*="color: #555"] {
    color: var(--ps-text-secondary) !important;
  }
  .course-item-info, .comm-hub-card-desc, .challv2-card-meta,
  .challv2-section-hint, .challv2-empty-state,
  .cg-row-sub, .gb-row-sub {
    color: var(--ps-text-secondary) !important;
  }
  .course-item-name, .comm-hub-card-title, .challv2-card-name,
  .section-title, .header-title, .cg-row-name, .gb-row-name {
    color: var(--ps-text-primary) !important;
  }
  /* Light-on-dark surfaces (navy/dark panels) get champagne/warm-white text */
  #screen-solo-game-setup, #screen-holes,
  .hgl-block, #hole-game-line {
    color: var(--ps-text-on-dark);
  }
  #screen-solo-game-setup [style*="color:rgba(255,255,255,0.65)"],
  #screen-solo-game-setup [style*="color:rgba(255,255,255,0.6)"] {
    color: var(--ps-text-on-dark-sub) !important;
  }

  /* ── 4. SELECTED OPTION TREATMENT ─────────────────────────────────
     Choose Tees, Holes to Play, Round Setup (Scoring/Games/Optional
     Tracking) — bold, crisp dark-purple outline, sharp edges. */
  .ds-selected, .chip.selected, .ctp-selected-list .ctp-item,
  .game-selected, .mod2-type-btn.mod2-type-selected,
  .tees-selected {
    border: var(--ps-selected-border-w) solid var(--ps-selected-border) !important;
    box-shadow: none !important;
    outline: none !important;
  }
  .chip, .mod2-type-btn {
    border: 1.5px solid var(--ps-unselected-border);
  }

  /* ── 5. DIVIDERS — section & row levels ───────────────────────────
     Two standardized divider strengths, never gray, never invisible. */
  .ds-section-divider {
    border: none;
    border-top: 2px solid var(--ps-divider-section);
    margin: 18px 0;
  }
  .ds-row-divider {
    border: none;
    border-top: 1px solid var(--ps-divider-row);
    margin: 10px 0;
  }
  #screen-19th-hole hr, #screen-mod2-challenges hr,
  .hole-row + .hole-row, .gb-row + .gb-row, .cg-row + .cg-row {
    border-top: 1px solid var(--ps-divider-row);
  }



/* v7.0.12 — Scorecard Hole Details. Club sequences are intentionally kept out
   of the compact grid; a recorded score cell opens this readable popup. */
.sc-score-detail-cell { cursor:pointer; }
.sc-score-detail-cell:active { background:#e6f0e8 !important; }
#sc-hole-details-modal { display:none; position:fixed; inset:0; z-index:10020; background:rgba(10,18,32,0.66); align-items:center; justify-content:center; padding:20px; }
.sc-hole-details-card { width:min(92vw,380px); max-height:78vh; overflow-y:auto; background:var(--white); border-radius:18px; box-shadow:0 12px 44px rgba(0,0,0,0.34); padding:20px; }
.sc-hole-details-title { font-size:20px; font-weight:900; color:var(--green-deep); text-align:center; margin-bottom:14px; }
.sc-hole-details-body { border-top:1px solid var(--cream-dark); border-bottom:1px solid var(--cream-dark); }
.sc-hole-detail-row { display:flex; align-items:flex-start; gap:12px; padding:11px 2px; border-bottom:1px solid rgba(0,0,0,0.07); }
.sc-hole-detail-row:last-child { border-bottom:none; }
.sc-hole-detail-label { width:78px; flex:0 0 78px; font-size:13px; font-weight:800; color:var(--sage); }
.sc-hole-detail-value { flex:1; min-width:0; font-size:15px; line-height:1.35; font-weight:800; color:var(--charcoal); text-align:right; }
.sc-hole-details-actions { display:flex; gap:10px; margin-top:16px; }
.sc-hole-details-close, .sc-hole-details-edit { min-height:48px; border-radius:11px; font-size:15px; font-weight:800; cursor:pointer; }
.sc-hole-details-close { flex:1; border:2px solid var(--green-deep); background:var(--cream); color:var(--green-deep); }
.sc-hole-details-edit { flex:1.45; border:none; background:var(--green-deep); color:#fff; }


/* v7.0.15 — Scorecard header: matches app-wide white golf-ball navigation,
   with course identity occupying the same vertical height as the ball. */
#screen-scorecard #sc-header-normal.sc-course-header {
  min-height: 64px;
  padding: 8px 10px 8px 2px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #0f1e30;
}
#screen-scorecard .sc-header-ball-back {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-left: -2px;
}
#screen-scorecard .sc-header-ball-back img {
  position: absolute;
  inset: 2px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.34));
  pointer-events: none;
}
#screen-scorecard .sc-header-ball-back span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10263f;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -2.5px;
  transform: translateX(-1px);
  pointer-events: none;
}
#screen-scorecard .sc-header-ball-back:active { transform: scale(0.92); }
#screen-scorecard .sc-course-header-copy {
  flex: 1;
  min-width: 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#screen-scorecard #sc-course-name {
  font-size: 28px !important;
  line-height: 1.02;
  font-weight: 900;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
#screen-scorecard #sc-round-info {
  margin-top: 4px;
  font-size: 16px !important;
  line-height: 1;
  font-weight: 700;
  color: rgba(255,255,255,0.88) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* EDIT v7.0.16 — PRACTICE GAME BAR STANDARD
   Full game name | f9/b9 | 9 compact hole-score slots | (total goal/running net).
   Full name is left-justified and the same font size as f9/b9. */
#screen-hole #hole-game-line .hgl-block-name,
#hole-game-line .hgl-block-name {
  justify-content: flex-start !important;
  gap: 0 !important;
  font-size: clamp(14px, 3.25vw, 19px) !important;
  white-space: nowrap !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn {
  font-size: inherit !important;
  font-weight: 900 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep {
  font-size: inherit !important;
  font-weight: 950 !important;
  color: #fff3cf !important;
  background: rgba(0,0,0,0.48) !important;
  border: 1px solid rgba(255,255,255,0.62) !important;
  border-radius: 3px !important;
  padding: 1px 3px !important;
  margin: 0 0 0 0.55em !important;
  line-height: 1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9) !important;
  flex: 0 0 auto !important;
}
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots {
  font-size: 0.78em !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  color: #ffffff !important;
  margin-left: 0.55em !important;
  flex: 0 0 auto !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9) !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-size: 0.82em !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  margin-left: 0.55em !important;
  flex: 0 0 auto !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9) !important;
}


/* EDIT v7.0.17 — GAME BAR LEGIBILITY / SPACING
   f9/b9 and trailing net/goal use the same high-contrast treatment;
   horizontal bar padding is approximately one text space. */
#screen-hole #hole-game-line,
#hole-game-line {
  padding-left: 0.35em !important;
  padding-right: 0.35em !important;
}
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep {
  color: #bfeaff !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,1), 0 0 2px rgba(0,0,0,0.9) !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  color: #bfeaff !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,1), 0 0 2px rgba(0,0,0,0.9) !important;
}


/* EDIT v7.0.18 — FINAL PRACTICE GAME BAR LEGIBILITY
   Full name and f9/b9 stay readable; nine hole values remain compact;
   f9/b9 and net/goal use high-contrast navy; side padding ~= one space. */
#screen-hole #hole-game-line,
#hole-game-line {
  padding-left: 0.35em !important;
  padding-right: 0.35em !important;
}
#screen-hole #hole-game-line .hgl-block-name,
#hole-game-line .hgl-block-name {
  justify-content: flex-start !important;
  gap: 0 !important;
  font-size: clamp(20px, 4.8vw, 25px) !important;
  line-height: 1.05 !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn,
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep {
  font-size: inherit !important;
  line-height: 1.05 !important;
}
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  color: #071a2b !important;
  font-weight: 950 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.20) !important;
}
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep { margin: 0 0 0 0.35em !important; }
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots {
  font-size: 0.76em !important;
  letter-spacing: 0.015em !important;
  margin-left: 0.35em !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-size: 1em !important;
  margin-left: 0.35em !important;
}


/* EDIT v7.0.21 — LIVE GAME BAR FINAL OVERRIDE
   The prior v7.0.18 append contained literal backslash-n characters, so that
   override was not reliably parsed. These are the final live selectors. */
#screen-hole #hole-game-line,
#hole-game-line {
  padding-left: 0.32em !important;
  padding-right: 0.32em !important;
}
#screen-hole #hole-game-line .hgl-block-name,
#hole-game-line .hgl-block-name {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  font-size: clamp(22px, 5.0vw, 27px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn,
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep {
  font-size: inherit !important;
  line-height: 1.05 !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn {
  padding: 0 !important;
  margin: 0 !important;
}
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep {
  color: #071a2b !important;
  font-weight: 950 !important;
  margin: 0 0 0 0.32em !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.22) !important;
}
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots {
  font-size: 0.82em !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
  margin-left: 0.32em !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-size: 1em !important;
  font-weight: 950 !important;
  color: #071a2b !important;
  margin-left: 0.32em !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.22) !important;
}

/* v7.0.24 STANDARDIZATION PASS — canonical side-by-side action colors.
   LEFT / secondary = Score popup light blue-grey.
   RIGHT / primary = Score popup teal.
   Dimensions, padding, radius and layout are intentionally untouched. */
.cg-action-left {
  background:linear-gradient(135deg,#b9c3cf,#aeb9c6) !important;
  border-color:#a7b2bf !important;
  color:#fff !important;
  box-shadow:0 3px 9px rgba(80,96,112,0.16) !important;
}
.cg-action-right {
  background:linear-gradient(135deg,var(--teal),#067a95) !important;
  border-color:#05657b !important;
  color:#fff !important;
  box-shadow:0 3px 9px rgba(6,122,149,0.24) !important;
}


/* EDIT v7.0.26 — SCORECARD / GAME BAR SPACE PASS
   Reclaim one more character-space from the scorecard label/Hole column for
   the right-side nine total. Practice Game bar removes f9/b9 and uses a
   compact dot between the full game name and Hole 1 values. */
#screen-hole #hole-game-line .hgl-name-dot,
#hole-game-line .hgl-name-dot {
  display: inline-block !important;
  font-size: 0.52em !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #071a2b !important;
  margin: 0 0.22em !important;
  flex: 0 0 auto !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.22) !important;
}
#screen-hole #hole-game-line .hgl-name-dot + .hgl-hole-dots,
#hole-game-line .hgl-name-dot + .hgl-hole-dots {
  margin-left: 0 !important;
}


/* EDIT v7.1.1 — LIVE PLAY "PENCIL" NUMERALS
   Numbers entered or calculated during play use a narrower handwritten face,
   giving the scorecard/game bar the feel of scores written onto a printed card.
   Static course data (Hole, Hcp, Yds, Par, etc.) deliberately stays in DM Sans. */
.sc-table tr.sc-player-row td:not(:first-child),
.sc-table tr.sc-putts-row td:not(:first-child),
.sc-table tr.sc-game-stack-row td:not(:first-child),
.sc-table .sc-num,
#edit-putts-num,
.num-val,
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net,
.cgb-cell.cgb-played,
.cgb-row-total {
  font-family: 'Shadows Into Light', 'Arial Narrow', sans-serif !important;
  font-style: italic !important;
  color: #3f454a !important;
  font-stretch: condensed;
  font-variant-numeric: proportional-nums;
}

/* Keep live score numerals substantial enough for sunlight/readability while
   allowing Shadows Into Light's tall, narrow glyphs (especially 0) to create
   breathing room. */
.sc-table tr.sc-player-row td:not(:first-child),
.sc-table tr.sc-putts-row td:not(:first-child),
.sc-table tr.sc-game-stack-row td:not(:first-child) {
  font-size: 16px;
  line-height: 1;
}
.sc-table .sc-num {
  font-size: 18px;
  font-weight: 400;
}
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-weight: 400 !important;
}

/* EDIT v7.1.2 — PRACTICE GAME BAR FULL WIDTH
   Extend the orange Hole Page game bar through the header's horizontal
   padding so the bar itself spans the full available screen width. */
#screen-hole .hf-top-bar > #hole-game-line {
  width: calc(100% + 8px) !important;
  max-width: none !important;
  margin-left: -4px !important;
  margin-right: -4px !important;
  box-sizing: border-box !important;
}


/* EDIT v7.1.3 — PENCIL ENTRY LEGIBILITY / CONSISTENCY
   Live scorecard entries are deliberately larger because vertical space is
   available. Hole-page game-bar entries use a light pencil-on-orange tone
   and the trailing total uses the exact same type treatment as hole scores.
   Player name on the scorecard row now reads like a handwritten card entry. */

/* Scorecard handwritten values: larger, still narrow. */
.sc-table tr.sc-player-row td:not(:first-child),
.sc-table tr.sc-putts-row td:not(:first-child),
.sc-table tr.sc-game-stack-row td:not(:first-child) {
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #3f454a !important;
}
.sc-table .sc-num {
  font-size: 23px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #3f454a !important;
}

/* Scorecard player name: handwritten pencil entry, not printed metadata. */
.sc-table .sc-player-row-name,
.sc-player-row-name {
  font-family: 'Shadows Into Light', 'Arial Narrow', sans-serif !important;
  font-style: italic !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #3f454a !important;
  letter-spacing: 0 !important;
}

/* Hole-page practice game bar: one consistent handwritten value system. */
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-family: 'Shadows Into Light', 'Arial Narrow', sans-serif !important;
  font-style: italic !important;
  font-size: 1em !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #f7ead2 !important;
  letter-spacing: 0.015em !important;
  text-shadow: 0 1px 2px rgba(18,25,32,0.88) !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  margin-left: 0.34em !important;
}


/* EDIT v7.1.4 — FIXED NINE-SLOT PRACTICE GAME BAR
   The bar is laid out at full width from the first paint. Nine permanent,
   evenly distributed hole positions are shown as dots; a completed hole's
   value replaces its dot in place. The game name stays left and the running
   total stays fixed at the far right, so nothing shifts during play. */
#screen-hole #hole-game-line .hgl-block,
#hole-game-line .hgl-block {
  width: 100% !important;
  max-width: none !important;
}
#screen-hole #hole-game-line .hgl-block-name,
#hole-game-line .hgl-block-name {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 0 !important;
  white-space: nowrap !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn {
  flex: 0 0 auto !important;
  margin-right: clamp(8px, 1.6vw, 18px) !important;
}
#screen-hole #hole-game-line .hgl-name-dot,
#hole-game-line .hgl-name-dot {
  display: none !important;
}
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-items: center !important;
  letter-spacing: 0 !important;
}
#screen-hole #hole-game-line .hgl-hole-slot,
#hole-game-line .hgl-hole-slot {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
  font: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  text-shadow: inherit !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  flex: 0 0 auto !important;
  margin-left: clamp(8px, 1.6vw, 18px) !important;
  min-width: 2.5ch !important;
  text-align: right !important;
}

/* EDIT v7.1.5 — GAME BAR EDGE-TO-EDGE + SCORECARD WIDTH REBALANCE
   Game bar spans the full viewport with no visible left/right frame. Live
   handwritten values are bold enough to read over orange. Scorecard takes
   2px from each of the nine hole columns (18px total), assigning 9px to the
   left Hole/name column and 9px to OUT/IN Total. */
#screen-hole #hole-game-line,
#hole-game-line {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}
#screen-hole #hole-game-line::before,
#hole-game-line::before {
  left: 0 !important;
  right: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}
#screen-hole #hole-game-line::after,
#hole-game-line::after {
  border-radius: 0 !important;
  box-shadow:
    inset 0 2px 0 rgba(255,194,92,0.34),
    inset 0 -4px 0 rgba(42,10,2,0.60) !important;
}
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(18,25,32,0.92), 0 0 1px rgba(18,25,32,0.65) !important;
}

/* 9 hole columns surrender 2px each: 18px saved = +9px Hole/name + +9px Total. */
.sc-table th:first-child,
.sc-table td:first-child {
  width: 83px !important;
}
.sc-table th:last-child,
.sc-table td:last-child {
  /* v7.2.52 — compound totals such as 23/36 and 68/72 must fit on phone. */
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
}


/* EDIT v7.1.6 — GAME BAR SCORE SIZE / TOTAL POSITION
   Live hole scores are larger and bold for outdoor readability. The running
   total is pulled left by one text space from the right edge. Fixed hole slots
   remain unchanged: each score still replaces its preset dot in place. */
#screen-hole #hole-game-line .hgl-hole-slot,
#hole-game-line .hgl-hole-slot {
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 0.95 !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 0.95 !important;
  margin-right: 1em !important;
}


/* EDIT v7.1.7 — GAME BAR HIERARCHY + HEADER RUNNING SCORE FIX
   Game name is regular weight while entered hole scores and total stay bold.
   The Hole Page running gross score is restored to the same typography as
   Par / Hcp / Yardage / vs-Par instead of inheriting pencil-entry styling. */
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn {
  font-weight: 400 !important;
}
#screen-hole #hole-game-line .hgl-hole-slot,
#hole-game-line .hgl-hole-slot,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-weight: 700 !important;
}
.hftb-sc-score {
  font-family: 'DM Sans', sans-serif !important;
  font-style: normal !important;
  font-stretch: normal !important;
  font-variant-numeric: normal !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.75) !important;
}


/* EDIT v7.1.9 — SCORECARD PRACTICE GAME TOTAL CELL FIT
   Practice-game net/goal totals such as 10/12 or 12/15 stay inside the
   OUT/IN total cell. Keep the handwritten face, but compact only this cell;
   normal hole entries remain at their larger pencil-entry size. */
.sc-table tr.sc-game-stack-row td:last-child {
  font-size: 18px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
  letter-spacing: -0.02em !important;
  overflow: hidden !important;
  text-align: center !important;
}

/* EDIT v7.1.10 — GAME BAR WHITE SCORE FILL + SCORECARD GAME TOTAL FIT
   Completed game-bar numbers use a true white interior with a restrained
   graphite edge/shadow for readability over orange. Preset dots stay subdued.
   Scorecard game totals keep the handwritten size but are horizontally
   condensed inside their own span so net/goal values remain fully visible. */
#screen-hole #hole-game-line .hgl-live-number,
#hole-game-line .hgl-live-number,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-text-stroke: 0.35px rgba(48,52,56,0.95) !important;
  text-shadow:
    0 1px 1px rgba(18,25,32,0.95),
    0 0 2px rgba(18,25,32,0.82) !important;
}
#screen-hole #hole-game-line .hgl-preset-dot,
#hole-game-line .hgl-preset-dot {
  color: #f3dfbd !important;
  -webkit-text-fill-color: #f3dfbd !important;
  -webkit-text-stroke: 0 !important;
  opacity: 0.82 !important;
}
.sc-table tr.sc-game-stack-row td:last-child {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden !important;
}
.sc-table tr.sc-game-stack-row td:last-child .sc-game-total {
  display: inline-block !important;
  max-width: 100% !important;
  font: inherit !important;
  white-space: nowrap !important;
  letter-spacing: -0.035em !important;
  transform: none !important;
  transform-origin: center center !important;
}


/* EDIT v7.1.12 — GAME BAR SCORES PLAIN WHITE
   Completed hole scores and the game total are solid white on orange with
   no graphite outline or shadow. Preset dots remain subdued. */
#screen-hole #hole-game-line .hgl-live-number,
#hole-game-line .hgl-live-number,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}


/* EDIT v7.1.13 — GAME BAR SLOT COLLISION FIX
   Large white single-value scores keep their current size. Compound values
   such as 0/2 or 2/3 are fitted within their own fixed hole slot so they do
   not overlap the adjacent score. */
#screen-hole #hole-game-line .hgl-hole-slot,
#hole-game-line .hgl-hole-slot {
  overflow: hidden !important;
  white-space: nowrap !important;
}
#screen-hole #hole-game-line .hgl-compound-number,
#hole-game-line .hgl-compound-number {
  font-size: 23px !important;
  letter-spacing: -0.045em !important;
  transform: none !important;
  transform-origin: center center !important;
}

/* EDIT v7.1.14 — GAME BAR SLOT SPREAD
   Reclaim unused horizontal space beside the game name and at the far-right
   total margin, then give it to the fixed nine-hole grid. Scores remain the
   same large white size; only their available horizontal spacing increases. */
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn {
  margin-right: 3px !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  margin-left: 3px !important;
  margin-right: 0.25em !important;
  min-width: 2.25ch !important;
}

/* v7.2.15 — My Games readability rebuild. Scoped to #screen-stats only. */
#screen-stats .screen-body {
  padding: 16px 14px 30px;
  background: var(--cream);
  color: #111827;
}
#screen-stats .mg-tabbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 8px;
  margin: 2px 0 18px;
  padding: 0;
  background: transparent;
}
#screen-stats .mg-tab {
  grid-column: span 2;
  min-height: 44px;
  padding: 9px 5px;
  border: 1px solid rgba(26,45,74,.18);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
#screen-stats .mg-tab:nth-child(4),
#screen-stats .mg-tab:nth-child(5) { grid-column: span 3; }
#screen-stats .mg-tab-active {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
  box-shadow: 0 2px 7px rgba(26,45,74,.20);
}
#screen-stats .course-item,
#screen-stats #mg-active-rounds-list > div,
#screen-stats #mg-suspended-games-section > div {
  background: #fff !important;
  border: 1px solid rgba(26,45,74,.16) !important;
  border-radius: 14px !important;
  padding: 15px 16px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}
#screen-stats .course-item div,
#screen-stats #mg-active-rounds-list > div div,
#screen-stats #mg-suspended-games-section > div div {
  color: #111827 !important;
}
#screen-stats .course-item > div:first-child > div:first-child > div:first-child,
#screen-stats #mg-active-rounds-list > div > div > div:first-child > div:first-child {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
#screen-stats .course-item button,
#screen-stats #mg-active-rounds-list button,
#screen-stats #mg-suspended-games-section button {
  min-height: 42px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: 9px !important;
}
#screen-stats .course-item button[data-mg-action="open"],
#screen-stats .course-item button[data-mg-action="chall-open"],
#screen-stats #mg-active-rounds-list button {
  background: var(--green-deep) !important;
  color: #fff !important;
}
#screen-stats .course-item button[data-mg-action="stats"],
#screen-stats .course-item button[data-mg-action="delete"] {
  background: #eef1f4 !important;
  color: #111827 !important;
  border: 1px solid #c9cfd6 !important;
}
#screen-stats .course-item button[data-mg-action="notable"] {
  color: #111827 !important;
}
#screen-stats #game-history-list > div[style*="text-align:center"],
#screen-stats #mg-notable-games-list > div[style*="text-align:center"],
#screen-stats #mg-active-rounds-list > div[style*="text-align:center"] {
  background: #fff;
  color: #111827 !important;
  border: 1px solid rgba(26,45,74,.14);
  border-radius: 14px;
  padding: 30px 20px !important;
  font-size: 15px !important;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
#screen-stats #mg-stats-content,
#screen-stats #mg-trends-content,
#screen-stats #mg-mygame-content,
#screen-stats #mg-profile-area {
  color: #111827;
}
#screen-stats #mg-stats-content .stat-row,
#screen-stats #mg-trends-content .trend-row {
  padding: 13px 0 !important;
  border-bottom: 1px solid #d9dde2 !important;
  color: #111827 !important;
}
#screen-stats #mg-stats-content .stat-label,
#screen-stats #mg-trends-content .trend-label {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
#screen-stats #mg-stats-content .stat-value,
#screen-stats #mg-trends-content .trend-vals {
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
#screen-stats #mg-learn-area {
  background: #fff;
  border: 1px solid rgba(26,45,74,.14);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}
#screen-stats #mg-learn-area > div:last-child { color:#111827 !important; font-size:12px !important; }
#screen-stats .mg-card-actions {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px !important;
  width:100%;
  margin-top:12px !important;
}
#screen-stats .mg-card-actions button[data-mg-action="open"] { grid-column:span 3; }
#screen-stats .mg-card-actions button[data-mg-action="chall-open"] { grid-column:span 2; }
#screen-stats .mg-empty-state {
  background:#fff;
  border:1px solid rgba(26,45,74,.14);
  border-radius:14px;
  padding:30px 20px;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
#screen-stats .mg-empty-title { font-size:17px;font-weight:800;color:#111827;margin-bottom:7px; }
#screen-stats .mg-empty-copy { font-size:13px;line-height:1.5;color:#374151; }


/* EDIT v7.2.43 — CHALLENGE GAME BAR KALAM / PHONE FIT
   Upright handwritten values, tighter horizontal footprint, and no f9/b9
   label stealing a score slot. Active nine still follows the current hole. */
#chall-game-bar .cgb-row { gap: 1px !important; }
#chall-game-bar .cgb-row-label { display:none !important; }
#chall-game-bar .cgb-grid { min-width:0 !important; gap:0 !important; }
#chall-game-bar .cgb-cell,
#chall-game-bar .cgb-row-total {
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  letter-spacing:-0.045em !important;
  font-variant-numeric:proportional-nums !important;
}
#chall-game-bar .cgb-cell {
  font-size:clamp(13px,3.85vw,17px) !important;
  padding:1px 0 !important;
}
#chall-game-bar .cgb-row-total {
  font-size:clamp(12px,3.2vw,15px) !important;
  padding-left:1px !important;
  margin-left:0 !important;
  line-height:1 !important;
}


/* EDIT v7.2.45 — CHALLENGE GAME BAR EXPANDED VIEW
   Compact bar has no F9/B9 label. Tap the green bar to see all 18 game
   result cells and 1-9 / 10-18 / overall totals in a phone-safe overlay. */
#chall-game-bar { cursor:pointer; -webkit-tap-highlight-color:transparent; }
#chall-game-bar .cgb-row-label { display:none !important; }
.cgb-expanded-overlay {
  position:fixed; inset:0; z-index:10050; background:rgba(7,18,12,.72);
  display:flex; align-items:center; justify-content:center; padding:14px;
}
.cgb-expanded-card {
  width:min(96vw,560px); background:linear-gradient(180deg,#2f6b45 0%,#163f27 100%);
  color:#fff; border:2px solid #0a2412; border-radius:16px; padding:14px 10px 16px;
  box-shadow:0 12px 38px rgba(0,0,0,.48), inset 0 1px 0 rgba(210,255,225,.3);
}
.cgb-expanded-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:8px; }
.cgb-expanded-title { font-size:clamp(15px,4vw,19px); font-weight:900; line-height:1.15; padding-right:4px; }
.cgb-expanded-dot { opacity:.72; padding:0 2px; }
.cgb-expanded-close { border:0; background:transparent; color:#fff; font-size:27px; line-height:1; padding:0 5px; }
.cgb-expanded-holeheads,.cgb-expanded-row {
  display:grid; grid-template-columns:38px minmax(0,1fr) 48px; align-items:center; gap:2px;
}
.cgb-expanded-holeheads { margin-top:5px; font-size:10px; font-weight:800; opacity:.72; }
.cgb-expanded-holeheads > div,.cgb-expanded-grid { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:0; }
.cgb-expanded-holeheads span { text-align:center; }
.cgb-expanded-row { min-height:34px; border-top:1px solid rgba(255,255,255,.18); }
.cgb-expanded-label { font-size:11px; font-weight:900; white-space:nowrap; }
.cgb-expanded-grid .cgb-cell {
  font-family:'Kalam','Arial Narrow',sans-serif !important; font-size:clamp(13px,3.7vw,17px) !important;
  font-weight:700 !important; letter-spacing:-.04em !important; padding:2px 0 !important;
}
.cgb-expanded-total {
  font-family:'Kalam','Arial Narrow',sans-serif; font-size:clamp(13px,3.4vw,16px); font-weight:800;
  text-align:right; border-left:1px solid rgba(255,255,255,.25); padding-left:3px; white-space:nowrap;
}
.cgb-expanded-overall {
  margin-top:10px; padding-top:9px; border-top:1px solid rgba(255,255,255,.28);
  text-align:right; font-size:14px; font-weight:800;
}
.cgb-expanded-overall strong { font-family:'Kalam','Arial Narrow',sans-serif; font-size:27px; font-weight:400; line-height:.86; margin-left:6px; }
.cgb-expanded-meta {
  margin-top:7px; padding-top:7px; border-top:1px solid rgba(255,255,255,.18);
  text-align:center; font-size:clamp(10px,2.8vw,12px); font-weight:800; line-height:1.25;
  letter-spacing:-.01em; opacity:.96;
}
.cgb-sidegames-section {
  margin-top:12px; padding:10px 11px 8px; border:2px solid #102a1a;
  border-radius:10px; background:#fffdf5; color:#071522;
}
.cgb-sidegames-title {
  margin-bottom:5px; padding-bottom:5px; border-bottom:1px solid #9aa9a0;
  color:#14213d; font-size:15px; font-weight:950; text-transform:uppercase;
  letter-spacing:.04em;
}
.cgb-sidegames-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:29px; font-size:14px; font-weight:800;
}
.cgb-sidegames-row + .cgb-sidegames-row { border-top:1px solid #d2d9d4; }
.cgb-sidegames-row strong { color:#1a5c34; text-align:right; }
@media (max-width:430px) {
  .cgb-expanded-card { width:calc(100vw - 16px); padding-left:7px; padding-right:7px; }
  .cgb-expanded-holeheads,.cgb-expanded-row { grid-template-columns:34px minmax(0,1fr) 43px; gap:1px; }
  .cgb-expanded-grid .cgb-cell { font-size:clamp(12px,3.55vw,16px) !important; letter-spacing:-.055em !important; }
}

/* EDIT v7.2.49 — UNIVERSAL GAME BAR COLOR STANDARD
   Challenge compact and expanded game bars now use the same burnt-orange
   dimensional treatment as the Practice Game bar. */
#chall-game-bar.cgb-bar,
.cgb-bar {
  border-color:#3a1206 !important;
  background:linear-gradient(180deg,#f06a1b 0%,#d84c0f 42%,#b93708 72%,#7e2305 100%) !important;
  box-shadow:
    0 8px 14px rgba(0,0,0,.52),
    0 2px 4px rgba(0,0,0,.70),
    inset 0 2px 0 rgba(255,194,92,.72),
    inset 0 -2px 0 rgba(42,10,2,.72),
    inset 3px 0 0 rgba(255,116,34,.35),
    inset -3px 0 0 rgba(52,12,3,.50) !important;
}
#chall-game-bar.cgb-bar::before,
.cgb-bar::before {
  border-color:rgba(255,176,70,.62) !important;
  background:linear-gradient(180deg,rgba(255,220,130,.18),rgba(255,255,255,.02) 46%,rgba(0,0,0,.16)) !important;
  box-shadow:inset 0 1px 0 rgba(255,244,210,.24),inset 0 -1px 0 rgba(0,0,0,.34) !important;
}
#chall-game-bar.cgb-bar::after,
.cgb-bar::after {
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.45),inset 0 0 10px rgba(62,15,4,.55) !important;
}
.cgb-expanded-overlay { background:rgba(7,18,12,.74) !important; }
.cgb-expanded-card {
  background:linear-gradient(180deg,#2f6b45 0%,#245c39 42%,#19482d 72%,#10351f 100%) !important;
  border-color:#0a2412 !important;
  box-shadow:0 12px 38px rgba(0,0,0,.48),inset 0 2px 0 rgba(210,255,225,.34),inset 0 -3px 0 rgba(4,24,12,.55) !important;
}

/* EDIT v7.2.51 — UNIVERSAL GAME BAR PHONE READABILITY
   Challenge scoring line uses true-white values, taller fixed slots, nine
   evenly distributed score positions, and a wider protected total/goal area. */
#chall-game-bar .cgb-row {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(54px,4.8ch) !important;
  align-items:stretch !important;
  column-gap:3px !important;
  min-height:38px !important;
  margin-top:3px !important;
}
#chall-game-bar .cgb-grid {
  display:grid !important;
  grid-template-columns:repeat(9,minmax(0,1fr)) !important;
  align-items:stretch !important;
  min-width:0 !important;
  width:100% !important;
  gap:0 !important;
}
#chall-game-bar .cgb-cell {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:0 !important;
  min-height:54px !important;
  padding:0 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  font-weight:500 !important;
  letter-spacing:-.085em !important;
  font-variant-numeric:proportional-nums !important;
  font-size:clamp(29px,8.2vw,36px) !important;
  line-height:.78 !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}
#chall-game-bar .cgb-cell:not(.cgb-played) { opacity:.72 !important; }
#chall-game-bar .cgb-row-total {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  min-width:82px !important;
  min-height:54px !important;
  padding:0 1px 0 2px !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  font-weight:500 !important;
  font-size:clamp(25px,7.1vw,32px) !important;
  letter-spacing:-.075em !important;
  line-height:.78 !important;
  overflow:visible !important;
}
@media (max-width:430px) {
  #chall-game-bar { padding-left:4px !important; padding-right:4px !important; }
  #chall-game-bar .cgb-row { grid-template-columns:minmax(0,1fr) 82px !important; column-gap:0 !important; min-height:55px !important; margin-top:1px !important; }
  #chall-game-bar .cgb-cell { font-size:clamp(27px,7.85vw,34px) !important; }
  #chall-game-bar .cgb-row-total { min-width:82px !important; font-size:clamp(24px,6.75vw,30px) !important; }
}

/* Expanded Challenge game bar follows the same readability standard.
   v7.4.27 — per directive "Finalize Power Ball Scorecard / Game Bar
   Display Standard" §4: widened from 58px so a Gross/Net total (e.g.
   "40/38") fits without wrapping or clipping. Applies to every game's
   expanded nine-total column (harmless width increase for single-number
   totals too — see .cgb-expanded-total below, widened to match). */
.cgb-expanded-holeheads,
.cgb-expanded-row {
  grid-template-columns:32px minmax(0,1fr) 74px !important;
  gap:2px !important;
}
.cgb-expanded-row { min-height:64px !important; }
.cgb-expanded-grid .cgb-cell {
  min-height:60px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  font-weight:500 !important;
  letter-spacing:-.08em !important;
  font-variant-numeric:proportional-nums !important;
  font-size:clamp(26px,7vw,31px) !important;
  line-height:.92 !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}
.cgb-expanded-total {
  min-width:74px !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  padding-left:4px !important;
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  font-weight:500 !important;
  font-size:clamp(20px,5.6vw,25px) !important;
  line-height:.92 !important;
  letter-spacing:-.055em !important;
  white-space:nowrap !important;
}
@media (max-width:430px) {
  /* v7.4.27 — widened 78px -> 96px to comfortably fit Gross/Net (e.g.
     "49/44") at this narrower breakpoint too; hole-cell column narrows
     accordingly (minmax(0,1fr) absorbs the difference), per directive
     §4 "tighten the nine hole cells accordingly to make room." */
  .cgb-expanded-holeheads,.cgb-expanded-row { grid-template-columns:28px minmax(0,1fr) 96px !important; gap:0 !important; }
  .cgb-expanded-grid .cgb-cell { font-size:clamp(23px,6.2vw,28px) !important; }
  .cgb-expanded-total { min-width:96px !important; font-size:clamp(18px,5vw,22px) !important; }
}

/* v7.4.26 — per directive "Power Ball Scorecard vs. Game Bar Standard" §8:
   a Power Ball hole's expanded cell (.cgb-cell.cgb-pb-expanded, defined
   near .cgb-pb-ball above) needs BLACK text on its yellow background, but
   the "PHONE-READABLE UPRIGHT SCORE NUMERALS" rule directly above this
   forces every expanded cell to white text with !important. Raised
   specificity (three classes instead of two) beats that rule on its own
   merits regardless of source order, so this survives any future
   reordering of this file rather than relying on being "the last rule
   wins" by accident. */
.cgb-expanded-grid .cgb-cell.cgb-pb-expanded {
  background: #f5c842 !important;
  color: #1a1a00 !important;
  -webkit-text-fill-color: #1a1a00 !important;
}

/* EDIT v7.3.7 — PHONE-READABLE UPRIGHT SCORE NUMERALS
   Live score values keep the handwritten card character but use the more
   upright Kalam face for clearer, tighter digits on phone-width scorecards.
   Player names remain in the looser handwritten face. */
.sc-table tr.sc-player-row td:not(:first-child),
.sc-table tr.sc-putts-row td:not(:first-child),
.sc-table tr.sc-game-stack-row td:not(:first-child),
.sc-table .sc-num,
.sc-table .sc-game-total {
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  font-stretch:condensed !important;
  font-variant-numeric:proportional-nums !important;
  letter-spacing:-0.045em !important;
  font-weight:400 !important;
  line-height:1 !important;
  color:#343a40 !important;
}
.sc-table tr.sc-player-row td:not(:first-child),
.sc-table tr.sc-putts-row td:not(:first-child),
.sc-table tr.sc-game-stack-row td:not(:first-child) {
  font-size:clamp(18px,4.7vw,21px) !important;
  padding-left:1px !important;
  padding-right:1px !important;
}
.sc-table .sc-num {
  font-size:clamp(19px,5vw,22px) !important;
}
@media (max-width:430px) {
  .sc-table tr.sc-player-row td:not(:first-child),
  .sc-table tr.sc-putts-row td:not(:first-child),
  .sc-table tr.sc-game-stack-row td:not(:first-child) {
    font-size:clamp(17px,4.6vw,20px) !important;
    letter-spacing:-0.055em !important;
  }
  .sc-table .sc-num {
    font-size:clamp(18px,4.9vw,21px) !important;
  }
}


/* EDIT v7.3.16 — UNIVERSAL CHALLENGE GAME BAR STANDARD
   Collapsed and expanded bars use the same green family. Compact bar reduces
   vertical waste, enlarges line 1, uses a dot between hole 9 and the running
   total, and keeps total numerals exactly the same size as hole numerals. */
#chall-game-bar.cgb-bar {
  background:linear-gradient(180deg,#2f6b45 0%,#245c39 42%,#19482d 72%,#10351f 100%) !important;
  border-color:#0a2412 !important;
  padding-top:5px !important;
  padding-bottom:2px !important;
}
#chall-game-bar.cgb-bar::before {
  border-color:rgba(185,235,200,.42) !important;
  background:linear-gradient(180deg,rgba(220,255,230,.15),rgba(255,255,255,.02) 46%,rgba(0,0,0,.15)) !important;
}
#chall-game-bar.cgb-bar::after {
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.45),inset 0 0 10px rgba(4,24,12,.48) !important;
}
#chall-game-bar .cgb-line1 {
  font-size:clamp(15px,4.2vw,18px) !important;
  line-height:1.02 !important;
  margin-bottom:0 !important;
}
#chall-game-bar .cgb-row {
  grid-template-columns:minmax(0,1fr) auto !important;
  column-gap:0 !important;
  min-height:42px !important;
  margin-top:0 !important;
  padding-bottom:0 !important;
}
#chall-game-bar .cgb-grid { gap:0 !important; }
#chall-game-bar .cgb-cell,
#chall-game-bar .cgb-row-total {
  min-height:42px !important;
  font-size:clamp(23px,6.4vw,28px) !important;
  line-height:.88 !important;
}
#chall-game-bar .cgb-row-total {
  min-width:0 !important;
  padding:0 2px 0 0 !important;
  justify-content:flex-start !important;
  white-space:nowrap !important;
}
/* v7.4.0 — removed: stray "·" before the running total/goal in the
   collapsed Game Bar (e.g. "· 4/23"). Not part of the intended display. */
@media (max-width:430px) {
  #chall-game-bar { padding-left:4px !important; padding-right:4px !important; padding-bottom:1px !important; }
  #chall-game-bar .cgb-row { grid-template-columns:minmax(0,1fr) auto !important; min-height:40px !important; margin-top:0 !important; }
  #chall-game-bar .cgb-cell,
  #chall-game-bar .cgb-row-total { min-height:40px !important; font-size:clamp(22px,6.2vw,27px) !important; }
}

/* Expanded Game Bar: compact f9/b9 row labels, larger hole numbers, and
   centered nine totals in their total cell. */
.cgb-expanded-holeheads {
  font-size:clamp(13px,3.7vw,16px) !important;
  line-height:1 !important;
}
.cgb-expanded-label {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-size:clamp(24px,6.7vw,30px) !important;
  font-weight:500 !important;
  line-height:.95 !important;
  text-transform:lowercase !important;
}
.cgb-expanded-total {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  padding-left:0 !important;
  padding-right:0 !important;
}


/* EDIT v7.3.17 — APP-WIDE UNIVERSAL GAME BAR STANDARD
   The green Challenge bar is now the universal collapsed/expanded game-bar
   treatment for Practice, Challenge, future Multiplayer and Teams. Practice
   bars replace the legacy orange surface. All running totals use the same
   Kalam score face/size as hole values. No vertical pipe separator is used;
   a compact dot separates Hole 9 from the running total. */
#screen-hole #hole-game-line,
#hole-game-line,
#chall-game-bar.cgb-bar {
  background:linear-gradient(180deg,#2f6b45 0%,#245c39 42%,#19482d 72%,#10351f 100%) !important;
  border-color:#0a2412 !important;
  color:#fff !important;
}
#screen-hole #hole-game-line::before,
#hole-game-line::before {
  border-color:rgba(185,235,200,.42) !important;
  background:linear-gradient(180deg,rgba(220,255,230,.15),rgba(255,255,255,.02) 46%,rgba(0,0,0,.15)) !important;
}
#screen-hole #hole-game-line::after,
#hole-game-line::after {
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.45),inset 0 0 10px rgba(4,24,12,.48) !important;
}
#screen-hole #hole-game-line,
#hole-game-line {
  padding-top:5px !important;
  padding-bottom:2px !important;
}
#screen-hole #hole-game-line .hgl-block-name,
#hole-game-line .hgl-block-name {
  line-height:1.02 !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn {
  color:#fff !important;
  font-size:clamp(15px,4.2vw,18px) !important;
  font-family:'DM Sans',sans-serif !important;
  font-style:normal !important;
  font-weight:800 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.75) !important;
}
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  font-weight:400 !important;
  font-size:clamp(23px,6.4vw,28px) !important;
  line-height:.88 !important;
  letter-spacing:-0.045em !important;
  color:#fff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.82) !important;
}
#screen-hole #hole-game-line .hgl-hole-dots,
#hole-game-line .hgl-hole-dots {
  display:inline-grid !important;
  grid-template-columns:repeat(9,minmax(0,1fr)) !important;
  align-items:center !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  margin-left:.28em !important;
}
#screen-hole #hole-game-line .hgl-hole-slot,
#hole-game-line .hgl-hole-slot {
  text-align:center !important;
  min-width:0 !important;
}
#screen-hole #hole-game-line .hgl-total-dot,
#hole-game-line .hgl-total-dot {
  display:inline-block !important;
  margin:0 .28em 0 .22em !important;
  color:#fff !important;
  font-family:Arial,sans-serif !important;
  font-size:clamp(18px,5vw,22px) !important;
  font-style:normal !important;
  font-weight:700 !important;
  line-height:1 !important;
  flex:0 0 auto !important;
}
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net {
  margin-left:0 !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
#screen-hole #hole-game-line .hgl-name-sep,
#hole-game-line .hgl-name-sep,
#hole-game-detail-popup .hgd-nine-sep {
  display:none !important;
}

/* Universal expanded Practice Game Bar. */
#hole-game-detail-popup {
  background:#0d1b20 !important;
}
#hole-game-detail-popup .hgd-card {
  background:linear-gradient(180deg,#2f6b45 0%,#245c39 42%,#19482d 72%,#10351f 100%) !important;
}
#hole-game-detail-popup .hgd-header {
  background:#19482d !important;
  border-bottom:1px solid rgba(210,245,220,.40) !important;
}
#hole-game-detail-popup .hgd-close-btn {
  background:#245c39 !important;
  border-color:rgba(255,255,255,.85) !important;
}
#hole-game-detail-popup .hgd-summary-sep {
  background:rgba(220,255,230,.28) !important;
}
#hole-game-detail-popup .hgd-nine-row {
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 44px !important;
  gap:4px !important;
  align-items:center !important;
  min-height:48px !important;
  padding:7px 0 !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}
#hole-game-detail-popup .hgd-nine-label,
#hole-game-detail-popup .hgd-nine-total,
#hole-game-detail-popup .hgd-nine-score {
  font-family:'Kalam','Arial Narrow',sans-serif !important;
  font-style:normal !important;
  font-weight:400 !important;
  color:#fff !important;
  line-height:.95 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.80) !important;
}
#hole-game-detail-popup .hgd-nine-label,
#hole-game-detail-popup .hgd-nine-total {
  font-size:clamp(23px,6.2vw,28px) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
#hole-game-detail-popup .hgd-nine-label { text-transform:lowercase !important; }
#hole-game-detail-popup .hgd-nine-scores {
  display:grid !important;
  grid-template-columns:repeat(9,minmax(0,1fr)) !important;
  gap:0 !important;
  min-width:0 !important;
}
#hole-game-detail-popup .hgd-nine-score {
  font-size:clamp(20px,5.4vw,25px) !important;
  text-align:center !important;
  min-width:0 !important;
}


/* EDIT v7.5.54 — SELIGMAN3 GAME BAR / EXPANDED PAGE
   Collapsed S3: remove the trailing running-score/goal block, enlarge the S3
   identifier, and let the nine score cells consume all remaining width.
   Expanded S3: reclaim width from the f9/b9 and Total columns so the nine
   hole-score cells span the full center of the page. Challenge layouts are
   intentionally unaffected. */
#screen-hole #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-s3-title,
#hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-s3-title {
  font-size:clamp(20px,5.8vw,26px) !important;
  font-weight:950 !important;
  margin-right:clamp(10px,2.2vw,18px) !important;
  line-height:1 !important;
}
#screen-hole #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-hole-dots,
#hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-hole-dots {
  flex:1 1 100% !important;
  width:auto !important;
  margin-left:0 !important;
  column-gap:clamp(2px,.8vw,8px) !important;
}
#screen-hole #hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-hole-slot,
#hole-game-line .hgl-block[data-hgl-game="stig3"] .hgl-hole-slot {
  font-size:clamp(23px,6.6vw,29px) !important;
}
/* v7.6.3 — SELIGMAN3 (S3) EXPANDED GAME PAGE LAYOUT. Consolidated here
   from index.html's inline <style> block (previously duplicated there)
   and from the never-applied .cgb-practice-s3 rules formerly in this
   spot: practice-games.js's openHoleGameDetailPopup() has only ever
   emitted layoutClass 'cgb-solo-s3' for the Solo Seligman3 expanded
   page, so .cgb-practice-s3 (an older "practice" naming convention)
   never matched any element the JS actually generates and has been
   removed. .cgb-solo-s3 is the one live class name and now has a
   single, non-duplicated definition. See DELIVERY_REPORT_v7.6.3.md §3.
*/
/* v7.5.61 — S3 expanded-page outdoor readability and segment hierarchy. */
.cgb-expanded-card.cgb-solo-s3 .cgb-expanded-title{font-size:clamp(22px,6vw,28px) !important;font-weight:950 !important;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-game-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:8px;margin:0 0 7px;padding:5px 0 7px;border-bottom:2px solid #102a1a;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-summary-label,.cgb-expanded-card.cgb-solo-s3 .cgb-s3-summary-status,.cgb-expanded-card.cgb-solo-s3 .cgb-s3-summary-value{font-size:clamp(23px,6.4vw,29px);font-weight:950;line-height:1;color:#071522;white-space:nowrap;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-summary-status{text-align:center;color:#1a5c34;overflow:hidden;text-overflow:ellipsis;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-summary-value{font-family:'Kalam','Arial Narrow',sans-serif;font-weight:700;text-align:right;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-segment{margin-top:5px;padding-top:5px;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-segment + .cgb-s3-segment{margin-top:4px;border-top:2px solid #102a1a;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-underrow{display:grid;grid-template-columns:86px repeat(3,minmax(0,1fr));align-items:center;margin-top:9px;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-goalnet,.cgb-expanded-card.cgb-solo-s3 .cgb-s3-goal-label{font-family:'Kalam','Arial Narrow',sans-serif;font-size:clamp(22px,6vw,27px);font-weight:700;line-height:1;color:#071522;white-space:nowrap;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-goalnet{grid-column:2;text-align:left;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-goal-label{grid-column:4;text-align:left;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-result{font-size:14px;font-weight:900;line-height:1.1;text-align:left;color:#1a5c34;margin:2px 0 4px 86px;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-nine{margin-top:0;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-nine-title{font-size:13px;font-weight:950;margin-bottom:4px;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-rowlabel{font-size:clamp(23px,6.4vw,29px);font-weight:950;color:#071522 !important;margin-right:8px;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-cell{border-color:#102a1a !important;box-shadow:none !important;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-headrow .cgb-cmp-cell{background:#ccd9d0 !important;border:2px solid #102a1a !important;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-headrow .cgb-cmp-cell + .cgb-cmp-cell{border-left:0 !important;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-scorerow .cgb-cmp-cell{background:#fffdf5 !important;border:2px solid #102a1a !important;font-size:clamp(23px,6.4vw,29px) !important;}
.cgb-expanded-card.cgb-solo-s3 .cgb-cmp-scorerow .cgb-cmp-cell + .cgb-cmp-cell{border-left:0 !important;}
.cgb-expanded-card.cgb-solo-s3 .cgb-s3-overall-status{text-align:center;margin:5px 0 0;font-size:14px;}


/* EDIT v7.6.17 — SCORECARD READABILITY: player name and primary score row
   use semi-bold weight. Other analytics/practice rows keep their existing weight. */
.sc-table .sc-player-row-name,
.sc-player-row-name {
  font-weight:600 !important;
}
.sc-table tr.sc-player-row td:not(:first-child) {
  font-weight:600 !important;
}

/* v7.6.22 — GRIT N' FLOW EXPANDED PAGE. Seligman3 supplies the visual
   language only: strong summary hierarchy, dark outdoor-readable table
   borders, larger row labels/scores, and clean section spacing. Grit n' Flow
   retains its own two-row-per-nine content (Score + mutually-exclusive G/F). */
.cgb-expanded-card.cgb-solo-gnf .cgb-expanded-title{font-size:clamp(22px,6vw,28px) !important;font-weight:950 !important;}
.cgb-expanded-card.cgb-solo-gnf .cgb-s3-game-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:8px;margin:0 0 12px;padding:5px 0 7px;border-bottom:2px solid #102a1a;}
.cgb-expanded-card.cgb-solo-gnf .cgb-s3-summary-label,.cgb-expanded-card.cgb-solo-gnf .cgb-s3-summary-status,.cgb-expanded-card.cgb-solo-gnf .cgb-s3-summary-value{font-size:clamp(23px,6.4vw,29px);font-weight:950;line-height:1;color:#071522;white-space:nowrap;}
.cgb-expanded-card.cgb-solo-gnf .cgb-s3-summary-status{text-align:center;color:#1a5c34;overflow:hidden;text-overflow:ellipsis;}
.cgb-expanded-card.cgb-solo-gnf .cgb-s3-summary-value{font-family:'Kalam','Arial Narrow',sans-serif;font-weight:700;text-align:right;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-nine{margin-top:10px;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-nine + .cgb-cmp-nine{margin-top:16px;padding-top:14px;border-top:2px solid #102a1a;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-nine-title{font-size:13px;font-weight:950;margin-bottom:4px;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-rowlabel{font-size:clamp(23px,6.4vw,29px);font-weight:950;color:#071522 !important;margin-right:8px;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-cell{border-color:#102a1a !important;box-shadow:none !important;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-headrow .cgb-cmp-cell{background:#ccd9d0 !important;border:2px solid #102a1a !important;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-headrow .cgb-cmp-cell + .cgb-cmp-cell{border-left:0 !important;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-scorerow .cgb-cmp-cell{background:#fffdf5 !important;border:2px solid #102a1a !important;font-size:clamp(23px,6.4vw,29px) !important;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-scorerow .cgb-cmp-cell + .cgb-cmp-cell{border-left:0 !important;}
.cgb-expanded-card.cgb-solo-gnf .cgb-cmp-other .cgb-cmp-cell{font-size:clamp(22px,6vw,27px) !important;font-weight:900 !important;}
.cgb-expanded-card.cgb-solo-gnf .cgb-gnf-nine-counts{display:flex;justify-content:flex-end;gap:24px;margin:7px 0 2px 86px;font-size:15px;font-weight:900;color:#071522;}

/* v7.7.56 — retired vector/procedural Hole Page renderer styles removed.
   #hole-map-container is owned exclusively by Google Maps satellite rendering. */

/* v7.6.33 — UNIFIED PRACTICE-GAME EXPANDED PAGE. Seligman3 (.cgb-solo-s3 above) is the master;
   every other Practice Game uses .cgb-solo-pg with the same type sizes, 2px dark line weights,
   summary band and section spacing. New shared components (.cgb-pg-*) also appear on Seligman3. */
.cgb-expanded-card.cgb-solo-pg .cgb-expanded-title{font-size:clamp(22px,6vw,28px) !important;font-weight:950 !important;}
.cgb-expanded-card.cgb-solo-pg .cgb-s3-game-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:8px;margin:0 0 7px;padding:5px 0 7px;border-bottom:2px solid #102a1a;}
.cgb-expanded-card.cgb-solo-pg .cgb-s3-summary-label,.cgb-expanded-card.cgb-solo-pg .cgb-s3-summary-status,.cgb-expanded-card.cgb-solo-pg .cgb-s3-summary-value{font-size:clamp(23px,6.4vw,29px);font-weight:950;line-height:1;color:#071522;white-space:nowrap;}
.cgb-expanded-card.cgb-solo-pg .cgb-s3-summary-status{text-align:center;color:#1a5c34;overflow:hidden;text-overflow:ellipsis;}
.cgb-expanded-card.cgb-solo-pg .cgb-s3-summary-value{font-family:'Kalam','Arial Narrow',sans-serif;font-weight:700;text-align:right;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-nine{margin-top:10px;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-nine + .cgb-cmp-nine{margin-top:12px;padding-top:10px;border-top:2px solid #102a1a;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-nine-title{font-size:13px;font-weight:950;margin-bottom:4px;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-rowlabel{font-size:clamp(23px,6.4vw,29px);font-weight:950;color:#071522 !important;margin-right:8px;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-rowlabel.cgb-pg-sub{font-size:13px;line-height:1.05;white-space:normal;overflow:visible;text-overflow:clip;align-items:center;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-cell{border-color:#102a1a !important;box-shadow:none !important;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-headrow .cgb-cmp-cell{background:#ccd9d0 !important;border:2px solid #102a1a !important;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-headrow .cgb-cmp-cell + .cgb-cmp-cell{border-left:0 !important;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-scorerow .cgb-cmp-cell{background:#fffdf5 !important;border:2px solid #102a1a !important;font-size:clamp(23px,6.4vw,29px) !important;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-scorerow .cgb-cmp-cell + .cgb-cmp-cell{border-left:0 !important;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-other .cgb-cmp-cell{font-size:clamp(20px,5.4vw,25px) !important;font-weight:900 !important;min-height:38px;}
.cgb-expanded-card.cgb-solo-pg .cgb-cmp-totals{margin-top:12px;padding-top:8px;border-top:2px solid #102a1a;}
.cgb-expanded-card .cgb-pg-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:4px 0 6px;}
.cgb-expanded-card .cgb-pg-fact{text-align:center;}
.cgb-expanded-card .cgb-pg-fact span{display:block;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#1a5c34;}
.cgb-expanded-card .cgb-pg-fact b{display:block;font-family:'Kalam','Arial Narrow',sans-serif;font-size:clamp(22px,6vw,27px);font-weight:700;color:#071522;line-height:1.1;}
.cgb-expanded-card .cgb-pg-bar{height:8px;border-radius:5px;background:#ccd9d0;border:1.5px solid #102a1a;overflow:hidden;}
.cgb-expanded-card .cgb-pg-bar i{display:block;height:100%;background:#1a5c34;}
.cgb-expanded-card .cgb-pg-bar-bad i{background:#b5541a;}
.cgb-expanded-card .cgb-pg-note{font-size:12px;font-weight:700;color:#3b4b45;margin:4px 0 8px;line-height:1.35;}
.cgb-expanded-card .cgb-pg-zone{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-weight:900;color:#071522;padding:5px 0 7px;border-bottom:2px solid #102a1a;margin-bottom:2px;}
.cgb-expanded-card .cgb-pg-zone span{color:#1a5c34;text-transform:uppercase;font-size:11px;letter-spacing:.04em;align-self:center;}
.cgb-expanded-card .cgb-pg-section{margin-top:12px;padding-top:8px;border-top:2px solid #102a1a;}
.cgb-expanded-card .cgb-pg-h{font-size:13px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;color:#1a5c34;margin-bottom:4px;}
.cgb-expanded-card .cgb-pg-p{font-size:13.5px;font-weight:600;color:#071522;line-height:1.45;margin-bottom:5px;}
.cgb-expanded-card .cgb-pg-core{font-weight:900;font-size:15px;}
.cgb-expanded-card .cgb-pg-rules{margin:0;padding-left:20px;font-size:13.5px;font-weight:600;color:#071522;line-height:1.45;}
.cgb-expanded-card .cgb-pg-rules li{margin-bottom:4px;}
.cgb-expanded-card .cgb-pg-totals .cgb-cmp-totalrow{font-size:14px;}
/* Game Bar caption (line 2 of every Practice Game Bar) */
#hole-game-line .hgl-cap{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:5px;color:#fff;line-height:1.15;}
#hole-game-line .hgl-cap-main{font-family:'Kalam','Arial Narrow',sans-serif;font-size:clamp(19px,5vw,24px);font-weight:900;}
#hole-game-line .hgl-cap-txt{font-size:clamp(11.5px,3.1vw,14px);font-weight:700;opacity:.95;}
#hole-game-line .hgl-cap-good .hgl-cap-main{color:#8ff0b0;}
#hole-game-line .hgl-cap-bad .hgl-cap-main{color:#ffc58a;}
/* Solo Setup: Round Type + practice game info */
.v3-gcard-info{font-size:12px;color:#33414f;line-height:1.35;margin-top:4px;}
.v3-gcard-info b{color:#0f2a1a;}
.v3-gcard-info div{margin-top:2px;}

/* v7.6.62 -- HOLE PAGE FOOTER BAR (bottom counterpart of the Hole Info Bar).
   Vertical stack of #screen-hole, top to bottom:
     [dark frame] [Hole Info Bar] [Game Bar if active] [hole rendering, takes ALL remaining height] [Footer Bar] [dark safe-area frame]
   The footer is a real, solid bar -- NOT an overlay. It reserves its own height: nsfPositionHoleMap() (js/hole-play.js) measures
   it and writes --hole-footer-bottom, which css/04-style.css uses as #hole-map-container's `bottom`. The CSS default below keeps
   the same value before JS has run. --hf-bar-h is shared with .hftb-row1 so the two bars are the same height by construction.
   Layout only: the camera ball is NOT wired; no handler, no JS references it. */
#screen-hole {
  --hf-bar-h: 46px;
  --hf-frame-bg: #141e2e; /* same dark as the frame above the Hole Info Bar (body background) */
  /* v7.6.65 -- ONE source of truth for the Hole Info Bar and the Footer Bar: background, edge/shadow treatment and height are
     defined here once and consumed by both bars (shadows mirrored top<->bottom). */
  --hf-bar-bg: linear-gradient(180deg, #4A82B3 0%, #3E73A1 58%, #356A98 100%);
  --hf-bar-shadow-top:    inset 0 3px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.40), 0 1px 0 rgba(0,0,0,0.25), 0 3px 8px rgba(0,0,0,0.22);
  --hf-bar-shadow-bottom: inset 0 -3px 0 rgba(255,255,255,0.35), inset 0 2px 0 rgba(0,0,0,0.40), 0 -1px 0 rgba(0,0,0,0.25), 0 -3px 8px rgba(0,0,0,0.22);
  --hole-footer-bottom: calc(var(--hf-bar-h) + env(safe-area-inset-bottom, 0px));
}
#app #screen-hole .hf-footer {
  position: absolute; left: 0; right: 0; top: auto;
  bottom: env(safe-area-inset-bottom, 0px);   /* ONLY the minimum required inset -- 0 where the device reports none */
  height: var(--hf-bar-h);
  z-index: 20;
  display: flex; flex-direction: row; align-items: stretch; justify-content: center;
  gap: 0;
  padding: 0 max(4px, env(safe-area-inset-right, 0px)) 0 max(4px, env(safe-area-inset-left, 0px));
  transform: none;
  pointer-events: auto;
  /* Same blue family as the Hole Info Bar (#screen-hole .hf-top-bar); its inset/drop shadows mirrored top<->bottom. */
  background: var(--hf-bar-bg);
  box-shadow: var(--hf-bar-shadow-bottom);
}
/* Dark frame under the footer: exactly the device's bottom safe-area inset (height 0 where there is none). */
#app #screen-hole .hf-footer::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%;
  height: env(safe-area-inset-bottom, 0px);
  background: var(--hf-frame-bg);
  pointer-events: none;
}
/* Left (back) and right (camera) golf-ball controls: identical 44px target / 40px ball, same centre line. */
#app #screen-hole .hf-footer-back-btn,
#app #screen-hole .hf-footer-cam-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 21;
  width: 44px; height: 44px; margin: 0; padding: 0; background: transparent; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  pointer-events: auto; -webkit-tap-highlight-color: transparent; overflow: visible;
}
#app #screen-hole .hf-footer-back-btn { left: calc(max(4px, env(safe-area-inset-left, 0px)) + 1px); right: auto; }
#app #screen-hole .hf-footer-cam-btn  { right: calc(max(4px, env(safe-area-inset-right, 0px)) + 1px); left: auto; }
#app #screen-hole .hf-footer-cam-btn img.hf-ball-img {
  width: 40px; height: 40px; display: block; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}
#app #screen-hole .hf-footer-cam-btn .hf-cam-glyph {
  position: absolute; top: 50%; left: 50%; width: 22px; height: 22px;
  transform: translate(-50%, -50%); pointer-events: none;
}
#app #screen-hole .hf-footer-back-btn:active,
#app #screen-hole .hf-footer-cam-btn:active { opacity: 0.7; transform: translateY(-50%) scale(0.93); }
/* Centre nav: Score Card | Clubhouse [| Game Card]. Reserves the room both balls occupy; one line, never stacked. */
#app #screen-hole .hf-footer .nsf-footer-nav {
  flex: 1 1 auto; min-width: 0; width: auto; height: 100%;
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  padding: 0 46px; background: transparent; pointer-events: auto;
}
#app #screen-hole .hf-footer .nsf-footer-nav .nsf-nav-btn-v3 {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%; min-height: 0;
  margin: 0; padding: 0 2px; background: transparent; border: 0; border-radius: 0; box-shadow: none;
  display: flex; align-items: center; justify-content: center;
}
#app #screen-hole .hf-footer .nsf-footer-nav .nsf-nav-btn-v3:active { background: rgba(0,0,0,0.18); }
/* Labels: white, weight/typeface family of the Hole Info Bar labels, its soft legibility shadow (no black outline). */
#app #screen-hole .hf-footer .nsf-nav-btn-v3 .v3-footer-label {
  position: static; top: auto; left: auto; transform: none; width: auto; max-width: none; margin: 0; padding: 0;
  font-size: clamp(11px, 3.6vw, 17px); font-weight: 800; font-style: normal; letter-spacing: 0; line-height: 1;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.70);
  white-space: nowrap; text-align: center;
}
/* Real visible "|" separators (same glyph treatment as .hftb-sc-sep). Generated on the button itself so the separator
   before Game Card disappears with the Game Card button in Solo -- no extra markup, no JS. */
#app #screen-hole .hf-footer .nsf-footer-nav .nsf-nav-btn-v3 + .nsf-nav-btn-v3::before {
  content: '|'; position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%);
  font-size: 20px; font-weight: 600; line-height: 1; color: rgba(255,255,255,0.65); pointer-events: none;
}

/* v7.6.64 -- HOLE PAGE FOOTER LABELS: typography taken from the Hole Info Bar text (.hftb-sc-val) + responsive wording.
   Root causes fixed: (1) the generic ".nsf-nav-btn span" rule (absolute, 58px wide, italic, wrapping, black outline) also matched the
   v7.6.63 inner .hf-lbl-* spans -> italic/outlined text and "Score Card" wrapping; (2) <button> does not inherit font-family, so the
   labels rendered in Arial instead of the Info Bar's DM Sans.
   Phone portrait (<600px): Score | Club | Game.  Phone landscape / iPad: Score Card | Clubhouse | Game Card. CSS only. */
#app #screen-hole .hf-footer .nsf-nav-btn-v3 { white-space: nowrap; font-family: "DM Sans", sans-serif; }
#app #screen-hole .hf-footer .nsf-nav-btn-v3 .v3-footer-label,
#app #screen-hole .hf-footer .nsf-nav-btn-v3 .v3-footer-label > span {
  position: static; top: auto; left: auto; transform: none; width: auto; max-width: none; margin: 0; padding: 0;
  font-family: "DM Sans", sans-serif; font-size: 27px; font-weight: 900; font-style: normal; letter-spacing: normal; line-height: 1;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.75);
  white-space: nowrap; text-align: center; text-transform: none; pointer-events: none;
}
#app #screen-hole .hf-footer .hf-lbl-short { display: none; }
#app #screen-hole .hf-footer .hf-lbl-long  { display: inline; }
@media (max-width: 599px) and (orientation: portrait) {
  #app #screen-hole .hf-footer .hf-lbl-long  { display: none; }
  #app #screen-hole .hf-footer .hf-lbl-short { display: inline; }
}
/* Proven at 320px wide (Group: 3 cells of 73px; "Score" at the Info Bar's 27px is ~75px): only there the size steps down. >=360px keeps 27px. */
@media (max-width: 340px) and (orientation: portrait) {
  #app #screen-hole .hf-footer .nsf-nav-btn-v3 .v3-footer-label,
  #app #screen-hole .hf-footer .nsf-nav-btn-v3 .v3-footer-label > span { font-size: 22px; }
}
/* Dividers: same white treatment and vertical centre as the labels; Info Bar separator size (20px). */
#app #screen-hole .hf-footer .nsf-footer-nav .nsf-nav-btn-v3 + .nsf-nav-btn-v3::before { font-family: "DM Sans", sans-serif; font-size: 20px; line-height: 1; }


/* EDIT v7.6.80 — UNIFIED HOLE-PAGE GAME BAR VISUAL SYSTEM
   Collapsed Practice, Group/ticker and Challenge Game Bars now use the same
   blue/white visual language as the Hole Info Bar and Footer Bar. Scoring and
   expanded-game logic are untouched; this block is presentation only. */
#screen-hole #hole-game-line,
#hole-game-line {
  min-height: var(--hf-bar-h, 46px) !important;
  background: var(--hf-bar-bg, linear-gradient(180deg,#4A82B3 0%,#3E73A1 58%,#356A98 100%)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: var(--hf-bar-shadow-top, inset 0 3px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.40), 0 1px 0 rgba(0,0,0,.25), 0 3px 8px rgba(0,0,0,.22)) !important;
  margin-top: 0 !important;
  color: #fff !important;
}
#screen-hole #hole-game-line::before,
#hole-game-line::before,
#screen-hole #hole-game-line::after,
#hole-game-line::after {
  display: none !important;
  content: none !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn,
#screen-hole #hole-game-line .hgl-hole-slot,
#hole-game-line .hgl-hole-slot,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net,
#screen-hole #hole-game-line .hgl-live-number,
#hole-game-line .hgl-live-number,
#hole-game-line .gb-line,
#hole-game-line .gb-label,
#hole-game-line .gb-item,
#hole-game-line .gb-score,
#hole-game-line .gb-thru {
  font-family: 'DM Sans', sans-serif !important;
  font-style: normal !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.75) !important;
}
#screen-hole #hole-game-line .hgl-game-name-btn,
#hole-game-line .hgl-game-name-btn,
#screen-hole #hole-game-line .hgl-hole-slot,
#hole-game-line .hgl-hole-slot,
#screen-hole #hole-game-line .hgl-goal-net,
#hole-game-line .hgl-goal-net,
#screen-hole #hole-game-line .hgl-live-number,
#hole-game-line .hgl-live-number {
  font-size: 27px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
#hole-game-line .gb-line {
  min-height: var(--hf-bar-h, 46px) !important;
  font-size: 27px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
#hole-game-line .gb-thru,
#hole-game-line .gb-place { font-size: .62em !important; }
#hole-game-line .gb-sep,
#hole-game-line .gb-bar { color: rgba(255,255,255,.65) !important; opacity: 1 !important; }

/* Challenge bar: same blue/white family. Keep its established internal row
   structure so Match/Challenge scoring information is not removed. */
#chall-game-bar.cgb-bar,
.cgb-bar {
  background: var(--hf-bar-bg, linear-gradient(180deg,#4A82B3 0%,#3E73A1 58%,#356A98 100%)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--hf-bar-shadow-top, inset 0 3px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.40), 0 1px 0 rgba(0,0,0,.25), 0 3px 8px rgba(0,0,0,.22)) !important;
}
#chall-game-bar.cgb-bar::before,
.cgb-bar::before,
#chall-game-bar.cgb-bar::after,
.cgb-bar::after {
  display: none !important;
  content: none !important;
}
#chall-game-bar .cgb-line1,
#chall-game-bar .cgb-line2,
#chall-game-bar .cgb-status,
#chall-game-bar .cgb-cell,
#chall-game-bar .cgb-row-total,
#chall-game-bar .cgb-grid,
#chall-game-bar .cgb-row {
  font-family: 'DM Sans', sans-serif !important;
  font-style: normal !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.75) !important;
}
#chall-game-bar .cgb-cell,
#chall-game-bar .cgb-row-total {
  font-weight: 900 !important;
}

/* v7.6.83 — active Group Round editor. Four compact footer actions fit the
   portrait Hole Page only while Group Play is active; Solo/Challenge retain
   the existing three-action sizing. */
.mp-edit-score-holes{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media (max-width:599px) and (orientation:portrait){
  #app #screen-hole.hole-mp-active .hf-footer .nsf-nav-btn-v3 .v3-footer-label,
  #app #screen-hole.hole-mp-active .hf-footer .nsf-nav-btn-v3 .v3-footer-label > span{font-size:21px}
}
@media (max-width:360px) and (orientation:portrait){
  #app #screen-hole.hole-mp-active .hf-footer .nsf-nav-btn-v3 .v3-footer-label,
  #app #screen-hole.hole-mp-active .hf-footer .nsf-nav-btn-v3 .v3-footer-label > span{font-size:18px}
}


/* v7.6.85 — universal bar-edge, Summary Practice Game, and stat-card polish. */
:root {
  --canardly-playbar-bg: linear-gradient(180deg,#4A82B3 0%,#3E73A1 58%,#356A98 100%);
  --canardly-playbar-edge: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(9,35,58,.42), 0 2px 7px rgba(0,0,0,.20);
}
/* Upper and lower edges now receive the same visual treatment on every live bar. */
#app #screen-hole .hf-top-bar,
#app #screen-hole .hf-footer,
#screen-hole #hole-game-line,
#hole-game-line,
#chall-game-bar.cgb-bar,
.cgb-bar {
  background:var(--canardly-playbar-bg) !important;
  border-top:1px solid rgba(255,255,255,.28) !important;
  border-bottom:1px solid rgba(255,255,255,.28) !important;
  box-shadow:var(--canardly-playbar-edge) !important;
  box-sizing:border-box !important;
}

/* Summary hole tiles visually belong to the live Game Bar. */
.sum-game-hole {
  background:var(--canardly-playbar-bg);
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
  border-radius:8px;
  padding:5px 8px;
  min-width:38px;
  box-sizing:border-box;
  text-align:center;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:900;
  line-height:1.05;
  text-shadow:0 1px 3px rgba(0,0,0,.60);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.22);
}
.sum-game-hole-label {
  font-family:'DM Sans',sans-serif;
  font-size:9px;
  font-weight:800;
  opacity:.88;
  margin-bottom:2px;
}

/* Decision Breakdown: one high-contrast white text treatment throughout. */
#sum-decision-block,
#sum-decision-block * { color:#fff !important; }

/* Universal category/stat rows: keep labels and values off the card edges. */
body .stat-row {
  padding-left:12px !important;
  padding-right:12px !important;
  box-sizing:border-box !important;
}


/* v7.6.86 — app-wide phone legibility + consistent Canardly surface system. */
:root{
  --canardly-cream:#F2E4CF;
  --canardly-navy:#14213D;
  --canardly-card-blue:#3E73A1;
  --canardly-card-blue-deep:#356A98;
}
#screen-clubhouse,#screen-stats,#screen-summary,#screen-summary-hole,
#screen-path-select,#screen-players-hub,#screen-club-golfers,#screen-clubs,
#screen-golfer,#screen-tunes,#screen-education,#screen-documents-how-to,
#screen-courses,#screen-tee,#screen-play-setup,#screen-solo-games,
#screen-solo-game-setup,#screen-mod2-game-library,#screen-mod2-groups,
#screen-mod2-challenges,#screen-19th-hole{
  background:var(--canardly-cream) !important;
}
#screen-clubhouse .course-item,
#screen-stats .screen-body > .course-item,
#screen-path-select .course-item,
#screen-players-hub .course-item,
#screen-club-golfers .course-item,
#screen-clubs .course-item,
#screen-golfer .course-item,
#screen-tunes .course-item,
#screen-education .course-item,
#screen-documents-how-to .course-item{
  background:var(--canardly-playbar-bg) !important;
  border:1px solid rgba(255,255,255,.32) !important;
  box-shadow:var(--canardly-playbar-edge) !important;
}
#screen-clubhouse .course-item-name,#screen-clubhouse .course-item-info,
#screen-stats .course-item-name,#screen-stats .course-item-info,
#screen-path-select .course-item-name,#screen-path-select .course-item-info,
#screen-players-hub .course-item-name,#screen-players-hub .course-item-info,
#screen-club-golfers .course-item-name,#screen-club-golfers .course-item-info,
#screen-clubs .course-item-name,#screen-clubs .course-item-info,
#screen-golfer .course-item-name,#screen-golfer .course-item-info,
#screen-tunes .course-item-name,#screen-tunes .course-item-info,
#screen-education .course-item-name,#screen-education .course-item-info,
#screen-documents-how-to .course-item-name,#screen-documents-how-to .course-item-info{
  color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.22);
}
.course-item-name{font-size:18px !important;line-height:1.2 !important}
.course-item-info{font-size:15px !important;line-height:1.35 !important;font-weight:600 !important}
.course-item-arrow{font-size:24px !important}
#screen-summary .summary-card-blue,
#screen-summary .stat-card,
#screen-summary-hole .summary-card-blue{
  background:var(--canardly-playbar-bg) !important;
  border:1px solid rgba(255,255,255,.30) !important;
  box-shadow:var(--canardly-playbar-edge) !important;
  color:#fff !important;
}
#screen-summary .summary-card-blue .panel-title,
#screen-summary .summary-card-blue .section-title,
#screen-summary .stat-card .panel-title,
#screen-summary .stat-card .section-title,
#screen-summary .stat-card .stat-label,
#screen-summary .stat-card .stat-value,
#screen-summary .summary-card-blue .stat-label,
#screen-summary .summary-card-blue .stat-value,
#screen-summary .summary-card-blue .stat-sub,
#screen-summary .summary-card-blue .score-dist-label,
#screen-summary .summary-card-blue .score-dist-num,
#screen-summary .totals-card .total-label,
#screen-summary .totals-card .total-value,
#screen-summary #sum-tagline,#screen-summary #sum-nine-split,#screen-summary #sum-net-score{
  color:#fff !important;
}
#screen-summary .panel-title{font-size:15px !important;font-weight:800 !important;letter-spacing:.055em !important}
#screen-summary .stat-row{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.30) !important;
  padding:10px 14px !important;margin:3px 0 !important;
}
#screen-summary .stat-label{font-size:15px !important;font-weight:700 !important;line-height:1.25 !important}
#screen-summary .stat-value{font-size:17px !important;font-weight:800 !important;line-height:1.2 !important}
#screen-summary .stat-sub{font-size:12.5px !important;color:#fff !important;opacity:.92;line-height:1.25 !important;margin-top:2px}
#screen-summary .score-dist-num{font-size:26px !important;color:#fff !important}
#screen-summary .score-dist-label{font-size:12px !important;font-weight:700 !important;color:#fff !important;opacity:.95}
#screen-summary .total-label{font-size:13px !important;color:#fff !important}
#screen-summary .total-value{font-size:25px !important;color:#fff !important}
#screen-summary #sum-tagline{font-size:15px !important;line-height:1.35 !important;opacity:.95}
#screen-summary #sum-nine-split,#screen-summary #sum-net-score{font-size:14px !important;line-height:1.35 !important;opacity:.95}
#screen-summary .sum-game-hole{
  appearance:none;-webkit-appearance:none;min-width:56px !important;min-height:56px !important;
  padding:7px 10px !important;border-radius:12px !important;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  cursor:pointer;border:1px solid rgba(255,255,255,.42) !important;color:#fff !important;font-size:18px !important;font-weight:900 !important;
  background:var(--canardly-playbar-bg) !important;
}
#screen-summary .sum-game-hole-label{font-size:11px !important;letter-spacing:.04em;margin-bottom:4px !important;color:#fff !important;opacity:1 !important}
#screen-summary .sum-game-hole:active{transform:scale(.97)}
#screen-summary .sum-game-hole:focus-visible{outline:3px solid #fff;outline-offset:2px}
.sum-hole-detail-card{padding:18px;border-radius:18px;margin-bottom:16px}
.sum-hole-score-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.sum-hole-score-grid>div{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.28);border-radius:12px;padding:10px;text-align:center}
.sum-hole-score-grid span,.sum-hole-practice span{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#fff}
.sum-hole-score-grid strong{display:block;font-size:26px;margin-top:4px;color:#fff}
.sum-hole-practice{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.28);border-radius:12px;padding:12px;margin-bottom:14px}
.sum-hole-practice strong{display:block;font-size:17px;margin-top:4px;color:#fff}
.sum-hole-section-title{font-size:16px;font-weight:900;color:#fff;margin:16px 0 8px}
.sum-hole-shot-row{display:flex;justify-content:space-between;gap:12px;padding:11px 2px;border-bottom:1px solid rgba(255,255,255,.22);color:#fff;font-size:14px}
.sum-hole-shot-row span{font-weight:800;flex:0 0 auto}.sum-hole-shot-row strong{text-align:right;color:#fff;font-weight:700}
.sum-hole-empty{font-size:14px;color:#fff;opacity:.9;padding:8px 0}
.sum-hole-back-btn{width:100%;font-size:16px;font-weight:800;padding:15px}

/* v7.6.86 consistency correction — page surface remains cream behind blue cards. */
#screen-clubhouse .screen-body,
#screen-clubhouse-my-golf .screen-body,
#screen-clubhouse-account .screen-body,
#screen-stats .screen-body,
#screen-summary .screen-body,
#screen-summary-hole .screen-body,
#screen-path-select .screen-body,
#screen-players-hub .screen-body,
#screen-club-golfers .screen-body,
#screen-clubs .screen-body,
#screen-golfer .screen-body,
#screen-tunes .screen-body,
#screen-education .screen-body,
#screen-documents-how-to .screen-body{
  background:var(--canardly-cream) !important;
}
#screen-clubhouse-my-golf,#screen-clubhouse-account{background:var(--canardly-cream) !important}
#screen-clubhouse-my-golf .course-item,#screen-clubhouse-account .course-item{
  background:var(--canardly-playbar-bg) !important;
  border:1px solid rgba(255,255,255,.32) !important;
  box-shadow:var(--canardly-playbar-edge) !important;
}
#screen-clubhouse-my-golf .course-item-name,#screen-clubhouse-my-golf .course-item-info,
#screen-clubhouse-account .course-item-name,#screen-clubhouse-account .course-item-info{
  color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.22);
}
/* v7.6.86 final cream-surface override: remove legacy body gradients explicitly. */
#screen-clubhouse .screen-body,
#screen-clubhouse-my-golf .screen-body,
#screen-clubhouse-account .screen-body,
#screen-stats .screen-body,
#screen-summary .screen-body,
#screen-summary-hole .screen-body,
#screen-path-select .screen-body,
#screen-players-hub .screen-body,
#screen-club-golfers .screen-body,
#screen-clubs .screen-body,
#screen-golfer .screen-body,
#screen-tunes .screen-body,
#screen-education .screen-body,
#screen-documents-how-to .screen-body{
  background-image:none !important;
  background-color:var(--canardly-cream) !important;
}

/* v7.7.31 — Hole Page attribution strip.
   Preserve the working v7.7.29 satellite map. Raise only the Canardly footer,
   leaving a 24px strip below it INSIDE the Hole Page/map visual container for
   Google-required attribution. The map itself continues down to the device
   safe-area boundary. */
#screen-hole {
  --cg-map-attribution-strip: 24px;
}
#app #screen-hole .hf-footer {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--cg-map-attribution-strip)) !important;
}
#app #screen-hole .hf-footer::after {
  display: none !important;
}
#app #screen-hole #hole-map-container {
  bottom: env(safe-area-inset-bottom, 0px) !important;
}



/* CANARDLY CLUBHOUSE WHITE / 2026-10-16
   Scope intentionally limited to Clubhouse landing page. Existing navigation
   handlers and every golf-play page are unchanged. */
#screen-clubhouse,
#screen-clubhouse .screen-body {
  background:#FFFFFF !important;
  background-image:none !important;
  color:#14213D !important;
}
#screen-clubhouse .screen-body {
  padding:18px 18px max(34px,env(safe-area-inset-bottom,18px)) !important;
}
#screen-clubhouse .header {
  background:#FFFFFF !important;
  background-image:none !important;
  border-bottom:1px solid #DDE2E8 !important;
  box-shadow:none !important;
  color:#14213D !important;
}
#screen-clubhouse .header-title {
  color:#14213D !important;
  font-family:'DM Sans',sans-serif !important;
  font-size:22px !important;
  font-weight:800 !important;
  letter-spacing:-.025em !important;
}
#screen-clubhouse .header-back {
  background:#FFFFFF !important;
  color:#14213D !important;
  border:1.5px solid #14213D !important;
  border-radius:12px !important;
  box-shadow:none !important;
}
#screen-clubhouse .clubhouse-home-action{
  background:#FFFFFF !important;background-image:none !important;
  color:#CC5500 !important;border:1.5px solid #CC5500 !important;
  border-radius:12px !important;box-shadow:none !important;
  font-size:29px !important;
}
#screen-clubhouse #clubhouse-profile-bar{
  display:block !important;
  background:#F7F8FA !important;
  background-image:none !important;
  color:#14213D !important;
  border:1.5px solid #E0E4E9 !important;
  border-left:4px solid #CC5500 !important;
  border-radius:15px !important;
  box-shadow:none !important;
  padding:17px 18px !important;
  margin-bottom:19px !important;
  text-shadow:none !important;
  cursor:pointer !important;
}
#screen-clubhouse #clubhouse-profile-bar #ch-name{
  font-family:'DM Sans',sans-serif !important;
  color:#14213D !important;font-size:20px !important;
  font-weight:800 !important;
}
#screen-clubhouse #clubhouse-profile-bar #ch-nick,
#screen-clubhouse #clubhouse-profile-bar #ch-home,
#screen-clubhouse #clubhouse-profile-bar #ch-groups{
  color:#566173 !important;font-size:13px !important;
  line-height:1.4 !important;text-shadow:none !important;
}
#screen-clubhouse .section-title{
  font-family:'DM Sans',sans-serif !important;
  font-size:13px !important;font-weight:850 !important;
  text-transform:uppercase !important;letter-spacing:.115em !important;
  color:#14213D !important;
  margin:4px 0 10px !important;
}
#screen-clubhouse .section-title:empty{display:none !important;}
#screen-clubhouse .divider{
  height:1px !important;background:#DDE2E8 !important;
  margin:19px 0 22px !important;border:0 !important;
}
#screen-clubhouse .course-item{
  display:flex !important;align-items:center !important;
  min-height:74px !important;
  background:#FFFFFF !important;background-image:none !important;
  border:1.5px solid #D8DEE6 !important;
  border-left:4px solid #14213D !important;
  border-radius:12px !important;
  box-shadow:none !important;
  padding:13px 16px !important;
  margin-bottom:10px !important;
  gap:12px !important;
  -webkit-tap-highlight-color:transparent !important;
  transition:background-color .14s ease,border-color .14s ease !important;
}
#screen-clubhouse .course-item:active{
  background:#F7F8FA !important;border-left-color:#CC5500 !important;
}
#screen-clubhouse .course-item-name{
  color:#14213D !important;text-shadow:none !important;
  font:800 17px/1.3 'DM Sans',sans-serif !important;
  letter-spacing:-.012em !important;
}
#screen-clubhouse .course-item-info{
  color:#566173 !important;text-shadow:none !important;
  font:550 13px/1.4 'DM Sans',sans-serif !important;
  margin-top:3px !important;
}
#screen-clubhouse .course-item-arrow{
  margin-left:auto !important;flex-shrink:0 !important;
  color:#CC5500 !important;font:700 29px/1 'DM Sans',sans-serif !important;
}
#screen-clubhouse .course-item:focus-visible,
#screen-clubhouse #clubhouse-profile-bar:focus-visible,
#screen-clubhouse .header button:focus-visible {
  outline:3px solid #CC5500 !important;outline-offset:3px !important;
}
@media (max-width:380px){
  #screen-clubhouse .screen-body{padding-left:14px !important;padding-right:14px !important;}
  #screen-clubhouse .course-item{min-height:68px !important;padding:11px 13px !important;}
  #screen-clubhouse .course-item-name{font-size:16px !important;}
  #screen-clubhouse .course-item-info{font-size:12px !important;}
}


/* The Links — six category compact readability pass. Scoped solely to Links. */
#screen-path-select{background:#fff !important;background-image:none !important;}
#screen-path-select > .canardly-nav-body {
  gap:8px !important;
  padding:12px 14px 24px !important;
}
#screen-path-select .path-card{
  padding:13px 17px !important;
  margin:0 !important;
  border-radius:12px !important;
  min-height:104px !important;
  box-shadow:none !important;
  background-image:none !important;
}
#screen-path-select .path-title{
  font:800 28px/1.15 'DM Sans',sans-serif !important;
  margin-bottom:4px !important;
}
#screen-path-select .path-subline{
  font:750 15px/1.25 'DM Sans',sans-serif !important;
  letter-spacing:.035em !important;
  margin-bottom:4px !important;
}
#screen-path-select .path-body {
  font:600 17px/1.3 'DM Sans',sans-serif !important;
  margin-bottom:6px !important;
}
#screen-path-select .path-action {
  font:800 16px/1.2 'DM Sans',sans-serif !important;
  margin-top:2px !important;
}
#screen-path-select .path-card-links,#screen-path-select .path-card-shack{
  background:#14213D !important;
  border:2.5px solid #CC5500 !important;
}
#screen-path-select .path-card-links .path-title,
#screen-path-select .path-card-shack .path-title{color:#fff !important;}
#screen-path-select .path-card-links .path-body,
#screen-path-select .path-card-shack .path-body{color:#fff !important;}
#screen-path-select .path-card-training{
  background:#CC5500 !important;
  background-image:none !important;
  border:2.5px solid #14213D !important;
}
#screen-path-select .path-card-training::before{display:none !important;content:none !important;}
#screen-path-select .path-card-training .path-title,
#screen-path-select .path-card-training .path-body{color:#14213D !important;}
#screen-path-select .path-card-training .path-subline,
#screen-path-select .path-card-training .path-action{color:#fff !important;}
#screen-path-select .path-card:focus-visible{outline:3px solid #CC5500 !important;outline-offset:3px !important;}

/* Approved non-playing page reference: The Links + Clubhouse landing page.
   Only these two screens. Preserve markup, handlers and category order.
   Review branch only — do not merge/deploy before approval. */
#screen-path-select,
#screen-clubhouse,
#screen-clubhouse .screen-body {
  background:#FFFFFF !important;
  background-image:none !important;
}
/* Compact centered navy header, Playfair page title and orange subtitle. */
#screen-path-select > div:first-child,
#screen-clubhouse > .header {
  background:#14213D !important;
  background-image:none !important;
  color:#FFFFFF !important;
  border:0 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
  min-height:75px !important;
  padding:calc(12px + env(safe-area-inset-top, 0px)) 64px 12px !important;
  align-items:center !important;
}
#screen-path-select > div:first-child {
  position:relative !important;
  justify-content:center !important;
  text-align:center !important;
}
#screen-path-select > div:first-child > div {
  flex:0 1 auto !important;
  min-width:0 !important;
}
#screen-path-select > div:first-child > div > div:first-child,
#screen-clubhouse .header-title {
  font:700 26px/1.1 'Playfair Display',Georgia,serif !important;
  letter-spacing:.04em !important;
  color:#FFFFFF !important;
  text-shadow:none !important;
}
#screen-path-select > div:first-child > div > div:nth-child(2),
#screen-clubhouse .header-sub {
  font:400 13px/1.3 'Playfair Display',Georgia,serif !important;
  color:#E58B59 !important;
  margin-top:3px !important;
}
#screen-path-select > div:first-child > .header-back {
  position:absolute !important;
  left:14px !important;
  top:calc(50% + env(safe-area-inset-top, 0px) / 2) !important;
  transform:translateY(-50%) !important;
}
#screen-path-select .header-back,
#screen-clubhouse .header-back {
  background:rgba(255,255,255,.15) !important;
  color:#FFFFFF !important;
  border:1.5px solid rgba(255,255,255,.35) !important;
  border-radius:10px !important;
  box-shadow:none !important;
}
#screen-clubhouse > .header {
  display:grid !important;
  grid-template-columns:48px minmax(0,1fr) 48px !important;
  column-gap:0 !important;
  padding-left:14px !important;
  padding-right:14px !important;
  text-align:center !important;
}
#screen-clubhouse > .header > div { min-width:0 !important; }
#screen-clubhouse > .header .header-title { text-align:center !important; }
#screen-clubhouse .clubhouse-home-action {
  background:rgba(255,255,255,.15) !important;
  background-image:none !important;
  color:#E58B59 !important;
  border:1.5px solid rgba(255,255,255,.35) !important;
  box-shadow:none !important;
}
/* Shared approved nav box metrics: 3px border, 12px radius, 10x14 padding. */
#screen-path-select > .canardly-nav-body {
  gap:8px !important;
  padding:12px 14px 24px !important;
}
#screen-path-select .path-card,
#screen-clubhouse .course-item {
  box-sizing:border-box !important;
  min-height:0 !important;
  padding:10px 14px !important;
  margin-bottom:0 !important;
  border:3px solid #CC5500 !important;
  border-radius:12px !important;
  background:#14213D !important;
  background-image:none !important;
  box-shadow:none !important;
  text-shadow:none !important;
}
#screen-path-select .path-card {
  margin:0 !important;
}
#screen-path-select .path-title,
#screen-clubhouse .course-item-name {
  color:#FFFFFF !important;
  font:700 23px/1.18 'Playfair Display',Georgia,serif !important;
  margin-bottom:4px !important;
  letter-spacing:0 !important;
  text-shadow:none !important;
}
#screen-path-select .path-subline,
#screen-clubhouse .course-item-info {
  color:#E58B59 !important;
  font:600 20px/1.25 'Playfair Display',Georgia,serif !important;
  margin-top:0 !important;
  margin-bottom:4px !important;
  letter-spacing:0 !important;
  text-shadow:none !important;
}
#screen-path-select .path-body {
  color:#FFFFFF !important;
  font:400 17px/1.35 'Playfair Display',Georgia,serif !important;
  margin-bottom:0 !important;
}
#screen-path-select .path-action { display:none !important; }
#screen-path-select .path-card-training {
  background:#CC5500 !important;
  border-color:#14213D !important;
}
#screen-path-select .path-card-training .path-title,
#screen-path-select .path-card-training .path-body { color:#14213D !important; }
#screen-path-select .path-card-training .path-subline { color:#FFFFFF !important; }
/* Clubhouse maintains its original content and tappable arrows. */
#screen-clubhouse .screen-body {
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  padding:12px 14px max(24px,env(safe-area-inset-bottom,24px)) !important;
}
#screen-clubhouse .course-item { width:100% !important; gap:12px !important; }
#screen-clubhouse .course-item > div:first-child { min-width:0 !important; }
#screen-clubhouse .course-item .course-item-info { margin:0 !important; }
#screen-clubhouse .course-item .course-item-name { margin:0 0 4px !important; }
#screen-clubhouse .course-item-arrow {
  flex-shrink:0 !important;
  margin-left:auto !important;
  color:#E58B59 !important;
  font:700 24px/1 'Playfair Display',Georgia,serif !important;
}
#screen-clubhouse .section-title {
  font:700 19px/1.2 'Playfair Display',Georgia,serif !important;
  color:#14213D !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  margin:8px 0 2px !important;
}
#screen-clubhouse .section-title:empty { display:none !important; }
#screen-clubhouse .divider {
  background:#DDE2E8 !important;
  margin:8px 0 2px !important;
}
#screen-clubhouse #clubhouse-profile-bar {
  background:#CC5500 !important;
  background-image:none !important;
  color:#FFFFFF !important;
  border:3px solid #14213D !important;
  border-radius:12px !important;
  padding:10px 14px !important;
  margin:0 !important;
  box-shadow:none !important;
}
#screen-clubhouse #clubhouse-profile-bar #ch-name {
  color:#14213D !important;
  font:700 23px/1.18 'Playfair Display',Georgia,serif !important;
}
#screen-clubhouse #clubhouse-profile-bar #ch-nick,
#screen-clubhouse #clubhouse-profile-bar #ch-home,
#screen-clubhouse #clubhouse-profile-bar #ch-groups {
  color:#FFFFFF !important;
  font:600 17px/1.3 'Playfair Display',Georgia,serif !important;
}
@media (max-width:380px) {
  #screen-clubhouse .course-item { padding:10px 14px !important; }
  #screen-clubhouse .course-item-name { font-size:23px !important; }
  #screen-clubhouse .course-item-info { font-size:20px !important; }
}

/* Optional course preview; Hole Page layout is unchanged. */
#screen-course-overview{background:#14213d;flex-direction:column;}
#screen-course-overview .header{flex-shrink:0;display:flex;align-items:center;gap:12px;}
#course-overview-name{font-size:20px;margin:0;color:white;}
#course-overview-logo{max-width:48px;max-height:48px;object-fit:contain;}
#course-overview-logo[hidden]{display:none;}
#course-overview-map{flex:1;min-height:0;width:100%;}
#course-overview-status{color:white;text-align:center;font-size:13px;}
