
    /* EDIT vNEXT — Add Score ball: was hardcoded to a fixed 118px, which is
       .v3ball's max-width cap on the score page, not its actual rendered
       size — the score-page balls sit in a 2-column grid and are squeezed
       well below that cap on real phones (~76px on a 375px-wide phone up to
       ~94px on a 430px-wide phone; see .v3ball-grid in css/12-style.css).
       The floating Add Score ball now uses the same --hole-score-ball-size
       var, sized with clamp() to track that observed range, so it matches
       the score-page balls instead of looming larger than them. The Club
       ball below it references the same var for its offset math so the
       gap between the two stays correct at every size. */
    #screen-hole {
      --hole-score-ball-size: clamp(68px, 21vw, 92px);
    }
    #screen-hole .hole-score-ball-btn {
      position: absolute;
      top: calc(var(--hole-stack-bottom) + var(--hole-floating-control-gap));
      bottom: auto;
      right: var(--hole-floating-control-gap);
      left: auto;
      width: var(--hole-score-ball-size);
      height: var(--hole-score-ball-size);
      border: 0;
      padding: 0;
      background: url("../assets/balls/yellow-ball.png") center / contain no-repeat;
      background-color: transparent;
      z-index: 60;
      /* EDIT v4.2.9 — layered drop-shadow adds real-world depth/lift to the
         existing ball graphic (readability + dimension), without altering
         or replacing the graphic itself. */
      filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45)) drop-shadow(0 1px 2px rgba(0,0,0,0.30));
    }
    #screen-hole .hole-score-ball-label {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #1a2d4a;
      font-size: clamp(12px, 3.4vw, 14px);
      font-weight: 900;
      line-height: 1.1;
      pointer-events: none;
    }

    /* v4.3.0 — Club floating ball (SIP Score + Club Tracking mode only). Matches the
       Add Score ball exactly in shadow/floating style/spacing per spec, positioned
       directly below it with the same right-edge gap, using the existing
       white-ball.png graphic. Stays 72px.
       v4.3.1 — top offset wrapped in min() so it can never be pushed past
       calc(100% - 190px): 190px reserves the ball's own 72px height plus the
       footer's nav row (~70-90px) plus a small margin, so a tall Practice Game
       bar on a short iPhone screen cannot push the Club ball down into/behind
       the Caddie/Score Card/Clubhouse footer row.
       EDIT vNEXT — offset math now reads var(--hole-score-ball-size) instead
       of a hardcoded 118px, since the Add Score ball above it is responsively
       sized; keeps the same visual gap between the two balls at every size. */
    #screen-hole .hole-club-ball-btn {
      position: absolute;
      top: min(
        calc(var(--hole-stack-bottom) + var(--hole-floating-control-gap) + var(--hole-score-ball-size) + 10px),
        calc(100% - 190px)
      );
      bottom: auto;
      right: var(--hole-floating-control-gap);
      left: auto;
      width: 72px;
      height: 72px;
      border: 0;
      padding: 0;
      background: url("../assets/balls/white-ball.png") center / contain no-repeat;
      background-color: transparent;
      z-index: 60;
      filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45)) drop-shadow(0 1px 2px rgba(0,0,0,0.30));
    }
    #screen-hole .hole-club-ball-label {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #10263f;
      font-size: 13px;
      font-weight: 900;
      line-height: 1.05;
      pointer-events: none;
      text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    }

    /* v7.5.48 — MULTIPLAYER/TEAM SCORING BUTTONS (directive "Multiplayer/Team Scoring
       Buttons, Solo Score Detail Override, and Footer Changes"). Solo Score ball
       (Multiplayer only): reuses the exact same right-edge stacking convention and
       --hole-score-ball-size var as the Add Score ball above/Club ball below, so it is
       always correctly sized/positioned relative to Add Score's real, responsive size
       at every viewport width, rather than a separate hard-coded value that could
       drift out of sync with it. 25% smaller per directive = 0.75x via calc(). */
    #screen-hole .hole-solo-score-ball-btn {
      position: absolute;
      top: calc(var(--hole-stack-bottom) + var(--hole-floating-control-gap) + var(--hole-score-ball-size) + 10px);
      bottom: auto;
      right: var(--hole-floating-control-gap);
      left: auto;
      width: calc(var(--hole-score-ball-size) * 0.75);
      height: calc(var(--hole-score-ball-size) * 0.75);
      border: 0;
      padding: 0;
      background: url("../assets/balls/white-ball.png") center / contain no-repeat;
      background-color: transparent;
      z-index: 60;
      filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45)) drop-shadow(0 1px 2px rgba(0,0,0,0.30));
    }
    #screen-hole .hole-solo-score-ball-btn .hole-score-ball-label {
      font-size: clamp(9px, 2.6vw, 11px);
    }
    /* Add Score uses the same yellow-ball asset in all play modes. */
    #screen-hole .hole-score-ball-btn.hole-score-ball-mp {
      background-image: url("../assets/balls/yellow-ball.png");
    }
    /* When a Multiplayer round's personal scoring-detail override (Solo Score) is set
       to SIP + Score + Club, the Club ball and the new Solo Score ball would both want
       to occupy the same "directly below Add Score" position. #screen-hole.hole-mp-active
       (set alongside the above) pushes the Club ball one more slot down, below the Solo
       Score ball, so the three floating controls never overlap. */
    #screen-hole.hole-mp-active .hole-club-ball-btn {
      top: min(
        calc(var(--hole-stack-bottom) + var(--hole-floating-control-gap) + var(--hole-score-ball-size) + 10px + (var(--hole-score-ball-size) * 0.75) + 10px),
        calc(100% - 190px)
      );
    }
  

/* v7.7.94 — Hole Page white-ball column correction.
   Keep the original « back-to-tee ball at bottom left. Suppress the old
   lower-right Navigation control beneath Camera. Restore the 46px footer
   measurement used by the hole number; no opaque footer. */
#screen-hole {
  --cg-nav-ball: var(--hole-score-ball-size);
  --cg-nav-gap: 13px;
  --hole-score-ball-size: 56px;
  /* Preserve the measured 46px footer footprint: the hole number uses it. */
}
#screen-hole .hole-score-ball-btn {
  width:var(--hole-score-ball-size); height:var(--hole-score-ball-size);
}
#screen-hole .hole-score-ball-label { font-size:10.5px; line-height:1.06; }
#screen-hole .hole-solo-score-ball-btn { width:43px; height:43px; }
#screen-hole .hole-solo-score-ball-btn .hole-score-ball-label { font-size:9px; }
/* Conditional Club-picker (not Clubhouse) retains its current operation. */
/* v7.8.21 — Club ball is now a flex child of .cg-hole-right-ball-col; the
   wrapper handles vertical positioning. Only size override remains here. */
#screen-hole .hole-club-ball-btn {
  width:48px; height:48px;
}
#screen-hole .hole-club-ball-label { font-size:11px; }
/* Preserve the original « ball and its established measured footer height.
   Hide only the blue footer background so the map remains visually continuous. */
#app #screen-hole .hf-footer {
  background:transparent !important; background-image:none !important;
  border:0 !important; box-shadow:none !important; pointer-events:none;
}
#app #screen-hole .hf-footer .hf-footer-back-btn { pointer-events:auto; }
/* The former lower-right Navigation control must not remain underneath
   the independent Camera ball. The footer has ONE permitted action: «.
   Hide any legacy/dynamically restored footer buttons/containers except it. */
#app #screen-hole .hf-footer > :not(.hf-footer-back-btn) {
  display:none !important;
  pointer-events:none !important;
}
#app #screen-hole .hf-footer .nsf-footer-nav,
#app #screen-hole .hf-footer .hf-footer-cam-btn {
  display:none !important;
  pointer-events:none !important;
}
#app #screen-hole .cg-hole-aux-ball-stack {
  position:absolute; z-index:61;
  right:var(--hole-floating-control-gap, 8px); left:auto;
  top:auto;
  bottom:calc(env(safe-area-inset-bottom, 0px) + var(--cg-map-attribution-strip, 24px) + 3px);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  width:var(--cg-nav-ball); height:auto; padding:0; margin:0;
  gap:var(--cg-nav-gap); border:0; background:transparent;
  pointer-events:none; overflow:visible;
}
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3 {
  position:relative; top:auto; right:auto; bottom:auto; left:auto; transform:none;
  flex:0 0 var(--cg-nav-ball); z-index:62;
  width:var(--cg-nav-ball); height:var(--cg-nav-ball); min-width:0; min-height:0;
  padding:0; margin:0; border:0; border-radius:50%;
  background:url('../assets/balls/white-ball.png') center / contain no-repeat;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.3));
  display:flex; align-items:center; justify-content:center; pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3:active { transform:scale(.94); }
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3::before { display:none !important; }
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3 .v3-footer-label {
  position:absolute; top:0; left:0; width:1px; height:1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3 .cg-ball-icon {
  width:28px; height:28px; display:block; fill:none; stroke:#10263f; stroke-width:2.0;
  stroke-linecap:round; stroke-linejoin:round; pointer-events:none;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.55));
}
/* Camera remains a white ball but inactive until its capture behavior exists. */
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera {
  position:relative; top:auto; right:auto; bottom:auto; left:auto; transform:none;
  flex:0 0 var(--cg-nav-ball); width:var(--cg-nav-ball); height:var(--cg-nav-ball);
  padding:0; margin:0; border:0; border-radius:50%;
  background:transparent; opacity:1;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.3));
  pointer-events:none; cursor:not-allowed;
}
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera img.hf-ball-img {
  width:100%; height:100%; object-fit:contain;
}
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera .hf-cam-glyph {
  width:27px; height:27px; opacity:.65;
}
/* Edit Round remains available within Game Card, never as another ball. */
#app #screen-hole #mp-hole-edit-round-nav { display:none !important; }

/* v7.7.99 — Compact Round Setup GPS master switch. */
#screen-solo-play .cg-setup-gps-row {
  display:flex; align-items:center; justify-content:space-between; min-height:45px;
  padding:7px 13px; background:#fff; border:1.5px solid rgba(15,30,55,.14);
  border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,.07);
}
#screen-solo-play .cg-setup-gps-title {font-size:14px;font-weight:750;color:#10263f;}
#screen-solo-play #v3-setup-gps {
  display:flex;align-items:center;justify-content:center;gap:7px;min-width:75px;
  border:1.5px solid #8fa0af;border-radius:999px;background:#f4f5f6;
  padding:7px 12px;color:#10263f;font:750 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-tap-highlight-color:transparent;cursor:pointer;
}
#screen-solo-play .cg-setup-gps-led {width:8px;height:8px;border-radius:50%;background:#8798a5;}
#screen-solo-play #v3-setup-gps[aria-pressed="true"] {border-color:#1a5c32;background:#e6f4e8;color:#0a3d1f;}
#screen-solo-play #v3-setup-gps[aria-pressed="true"] .cg-setup-gps-led {background:#16843f;}
/* Active GPS uses the SAME white golf ball and dimensions as its neighbors. */
#app #screen-hole .cg-hole-aux-ball-stack #hole-gps-ball-btn[aria-pressed="true"] {
  box-shadow:inset 0 0 0 3px #20854e,0 0 0 3px rgba(34,197,94,.38);
  outline:2px solid #22c55e;outline-offset:-5px;
}
#app #screen-hole .cg-hole-aux-ball-stack #hole-gps-ball-btn[aria-pressed="true"] .cg-ball-icon {stroke:#126939;}

/* v7.7.100 — Hide only the retired lower-right Navigation golf ball,
   including legacy DOM retained across an app-shell refresh. The original
   « button and approved score/game/GPS/camera balls are unaffected. */
#app #screen-hole #hole-navigation-ball,
#app #screen-hole #hole-nav-ball,
#app #screen-hole .cg-navigation-ball,
#app #screen-hole .nsf-hole-navigation-ball,
#app #screen-hole button[aria-label="Navigation"] {
  display:none !important; pointer-events:none !important;
}

/* v7.7.101 — Camera is one golf ball; legacy lower-right footer items and
   decoration must never create a second partly visible navigation circle. */
#app #screen-hole .hf-footer::before,
#app #screen-hole .hf-footer::after,
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera::before,
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera::after {
  display:none !important;content:none !important;
}
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera {
  background:none !important;box-shadow:none !important;
}
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera > img.hf-ball-img {
  display:block;position:relative;inset:auto;transform:none;
  width:100%;height:100%;max-width:100%;max-height:100%;
}

/* v7.7.102 — Lift the approved lower-right balls to expose any genuinely
   separate legacy/native Navigation control underneath. Do not mask pixels or
   remove approved controls. Keep clearance on compact phone screens. */
#app #screen-hole .cg-hole-aux-ball-stack {
  bottom:calc(env(safe-area-inset-bottom, 0px) + var(--cg-map-attribution-strip, 24px) + 36px);
}
@media (min-height: 850px) {
  #app #screen-hole .cg-hole-aux-ball-stack {
    bottom:calc(env(safe-area-inset-bottom, 0px) + var(--cg-map-attribution-strip, 24px) + 68px);
  }
}

/* v7.7.103 — GPS remains tappable in both states; no tap selection delay. */
#app #screen-hole .cg-hole-aux-ball-stack #hole-gps-ball-btn {pointer-events:auto!important;touch-action:manipulation;cursor:pointer;}

/* v7.7.104 — Group Poker deck under Add Score; expands inward when opened. */
#screen-hole #mp-hole-poker-hand{position:absolute;right:var(--hole-floating-control-gap);top:calc(var(--hole-stack-bottom) + var(--hole-floating-control-gap) + var(--hole-score-ball-size) + 4px);width:85px;z-index:75;margin:0;pointer-events:auto;}
#screen-hole #mp-hole-poker-hand .cgp-wrap-open{position:absolute;right:0;top:0;width:min(91vw,440px);}
#screen-hole #mp-hole-poker-hand .cgp-wrap-open>.cgp-outer-deck{margin-left:auto;}
#screen-hole #mp-hole-poker-hand .cgp-felt{box-sizing:border-box;width:100%;}
#screen-hole #mp-hole-poker-hand .mp-poker-player-choice{padding:4px 0 10px;color:#fff;font-size:12px;font-weight:800;}
#screen-hole #mp-hole-poker-hand .mp-poker-player-choice select{max-width:65%;min-height:34px;font-size:14px;padding:4px;background:#fff;color:#14213d;border:1px solid #ccd;border-radius:6px;}

/* v7.7.108 — Reliable Hole Page pointer targets on touch devices.
   Keep « exactly where it belongs, separate from the ‹/› hole arrows. */
#app #screen-hole #hole-nav-back,
#app #screen-hole #hole-nav-fwd {
  position:absolute; z-index:75; pointer-events:auto; touch-action:manipulation;
  -webkit-user-select:none; user-select:none;
}
#app #screen-hole .hf-footer { z-index:78; }
#app #screen-hole .hf-footer .hf-footer-back-btn {
  z-index:79; pointer-events:auto!important; touch-action:manipulation;
  -webkit-user-select:none; user-select:none;
}
#app #screen-hole .cg-hole-aux-ball-stack { z-index:80; }
#app #screen-hole .cg-hole-aux-ball-stack #hole-gps-ball-btn {
  z-index:81; pointer-events:auto!important; touch-action:manipulation;
}


/* v7.7.113 — Hole Information Bar mobile type restoration and bright-white clarity.
   Replaces the undersized v7.7.110 mobile typography, not another override layer.
   Keep 46px height, top anchoring, arrow positions, Game Bar and map stack.
   Preserve user-selected tee arrow and all functional hole statistics. */
#app #screen-hole .hf-top-bar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: max(4px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(4px, env(safe-area-inset-right, 0px)) !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
#app #screen-hole .hftb-row1 {
  box-sizing: border-box !important;
  width: 100%;
  height: var(--hf-bar-h, 46px) !important;
  min-height: var(--hf-bar-h, 46px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 44px !important;
  gap: 0 !important;
}
#app #screen-hole .hftb-sc-item {
  gap: 3px !important;
  flex-shrink: 0 !important;
}
#app #screen-hole .hftb-sc-label,
#app #screen-hole .hftb-sc-val,
#app #screen-hole .hftb-sc-sep,
#app #screen-hole .hftb-sc-score,
#app #screen-hole .hftb-sc-vspar {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  line-height: 1 !important;
}
#app #screen-hole .hftb-sc-label { font-size: 20px !important; font-weight: 800 !important; }
#app #screen-hole .hftb-sc-val,
#app #screen-hole .hftb-sc-score,
#app #screen-hole .hftb-sc-vspar { font-size: 27px !important; font-weight: 900 !important; }
#app #screen-hole .hftb-sc-sep {
  font-size: 20px !important;
  margin-left: 3px !important;
  margin-right: 3px !important;
}
/* Older 320–359px screens: a modest reduction only when physically necessary. */
@media (max-width: 359px) {
  #app #screen-hole .hftb-sc-label { font-size: 18px !important; }
  #app #screen-hole .hftb-sc-val,
  #app #screen-hole .hftb-sc-score,
  #app #screen-hole .hftb-sc-vspar { font-size: 23px !important; }
  #app #screen-hole .hftb-sc-sep { font-size: 18px !important; margin-left: 2px !important; margin-right: 2px !important; }
}
/* The Game Bar also uses solid white letters; its scoring/layout is unchanged. */
#app #screen-hole #hole-game-line :where(.hgl-game-name-btn,.hgl-hole-slot,.hgl-goal-net,.hgl-live-number,.hgl-block-name,.hgl-cap-main,.hgl-cap-txt,.gb-line,.gb-label,.gb-item,.gb-score,.gb-thru),
#app #screen-hole #chall-game-bar :where(.cgb-line1,.cgb-line2,.cgb-status,.cgb-cell,.cgb-row-total,.cgb-cmp-holeno,.cgb-cmp-parno,.cg-hole-score) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* v7.7.111 — Eliminate Challenge Game Bar subpixel blur on iOS Safari.
   Root cause: the v750-challenge-ui-standard inline style block applied
   fractional scaleY() transforms to three text elements. On iOS Safari,
   non-integer CSS scale transforms cause the GPU compositor to rasterize
   text at the pre-transform resolution then scale the bitmap — producing
   the "low-quality screen protector" blur reported on the Hole Page.
   Primary fix: transforms removed from the inline block in index.html.
   This block provides belt-and-suspenders override so any future inline
   reinstatement is blocked. No font-size compensation needed — the
   original sizes (14px holeno, 11px parno, 17px score) are legible
   without artificial vertical stretch. */
.cgb-cmp-holeno {
  transform: none !important;
  transform-origin: initial !important;
}
.cgb-cmp-parno {
  transform: none !important;
  transform-origin: initial !important;
}
.cgb-cmp-scorerow .cg-hole-score {
  transform: none !important;
  transform-origin: initial !important;
}

/* v7.7.114 — Member-approved Hole Page control arrangement. The existing
   green-side upper-right location is reserved for Green Reading only;
   scoring retains its original handler inside the lower-right action column. */
#screen-hole {
  --hole-score-ball-size: 64.4px; /* 56px × 1.15 */
  --cg-nav-ball: var(--hole-score-ball-size);
  --cg-stack-lift: 36px;
}
#app #screen-hole .cg-hole-aux-ball-stack {
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--cg-map-attribution-strip, 24px) + var(--cg-stack-lift));
}
@media (min-height: 850px) {
  #screen-hole { --cg-stack-lift: 68px; }
}
/* v7.8.21 — Add Score now lives in .cg-hole-right-ball-col (flex column),
   not inside the aux-ball-stack. Selector updated accordingly; all visual
   properties are unchanged. */
#app #screen-hole .cg-hole-right-ball-col #hole-score-ball-btn {
  position: relative; inset: auto; transform: none;
  flex: 0 0 var(--cg-nav-ball);
  width: var(--cg-nav-ball); height: var(--cg-nav-ball);
  padding: 0; margin: 0; border: 0; border-radius: 50%;
  z-index: 62; pointer-events: auto; cursor: pointer;
  background: url('../assets/balls/yellow-ball.png') center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.3));
  -webkit-tap-highlight-color: transparent;
}
#app #screen-hole .cg-hole-right-ball-col #hole-score-ball-btn .hole-score-ball-label {
  font-size: 12.1px; /* original 10.5px × 1.15 */
}
/* Green Reading occupies the vacated Add Score location, but does not imply
   green-contour data or open a nonfunctional page. */
#app #screen-hole #hole-green-reading-ball-btn {
  position: absolute;
  top: calc(var(--hole-stack-bottom) + var(--hole-floating-control-gap));
  right: var(--hole-floating-control-gap);
  left: auto; bottom: auto;
  box-sizing: border-box;
  width: var(--hole-score-ball-size); height: var(--hole-score-ball-size);
  padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: url('../assets/balls/white-ball.png') center / contain no-repeat;
  display: flex; justify-content: center; align-items: center;
  z-index: 60; opacity: 1; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
#app #screen-hole #hole-green-reading-ball-btn .cg-green-reading-icon {
  width: 32px; height: 32px; fill: none; stroke: #10263f;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  opacity: .58; pointer-events: none;
}
/* Current conditional club-tracking ball stays functional and grows 15%. */
#app #screen-hole .hole-club-ball-btn { width: 55.2px; height: 55.2px; }
#app #screen-hole .hole-club-ball-label { font-size: 12.65px; }
#app #screen-hole .hole-solo-score-ball-btn { width: 49.45px; height: 49.45px; }
#app #screen-hole .hole-solo-score-ball-btn .hole-score-ball-label { font-size: 10.35px; }
/* Increase nav icon artwork proportionally to the golf-ball diameter. */
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3 .cg-ball-icon { width: 32.2px; height: 32.2px; }
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera .hf-cam-glyph { width: 31.05px; height: 31.05px; }
/* Keep the left footer/back-to-tee ball and the top Hole arrows in their
   original positions; only their diameters/targets increase by 15%. */
#app #screen-hole .hf-arrow-left, #app #screen-hole .hf-arrow-right,
#app #screen-hole .hf-footer-back-btn {
  width: 50.6px; height: 50.6px;
}
#app #screen-hole .hf-arrow-left img.hf-ball-img,
#app #screen-hole .hf-arrow-right img.hf-ball-img,
#app #screen-hole .hf-footer-back-btn img.hf-ball-img { width: 46px; height: 46px; }
/* Group Poker remains immediately below the moved Add Score ball rather
   than rendering below the unrelated Green Reading control. Six possible
   stack entries in Group rounds: Add, Clubhouse, Score, Game, GPS, Camera. */
#app #screen-hole.hole-mp-active #mp-hole-poker-hand {
  top: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--cg-map-attribution-strip, 24px) + var(--cg-stack-lift) + var(--cg-nav-ball) + var(--cg-nav-ball) + var(--cg-nav-ball) + var(--cg-nav-ball) + var(--cg-nav-ball) + var(--cg-nav-gap) + var(--cg-nav-gap) + var(--cg-nav-gap) + var(--cg-nav-gap) + var(--cg-nav-gap) - 4px);
}

/* v7.7.115 — Appearance-only polish: hide future Green Reading ball without
   losing its measurable bounding box (the B/M/F HUD uses its upper-right
   position as its layout anchor). DO NOT use display:none here. */
#app #screen-hole #hole-green-reading-ball-btn {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Give the existing textured white golf balls a brighter, crisp finish.
   Restrict to the Hole Page; keep SVGs/icons, positions and hit targets intact.
   No asset regeneration, overlays, map filtering or new network calls. */
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3 {
  filter: brightness(1.20) contrast(1.06) drop-shadow(0 3px 6px rgba(0,0,0,.45))
          drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
#app #screen-hole .hf-arrow-left img.hf-ball-img,
#app #screen-hole .hf-arrow-right img.hf-ball-img,
#app #screen-hole .hf-footer-back-btn img.hf-ball-img,
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera > img.hf-ball-img {
  filter: brightness(1.20) contrast(1.06) drop-shadow(0 2px 3px rgba(0,0,0,.30));
}

/* v7.7.116 — Canardly Golf standard Hole Page palette & surface finish.
   The gameplay instrument panel is SOLID, not glass-coated. Other app pages
   can adopt these named palette tokens in later approved releases. */
:root {
  --cg-ui-bar-blue: #21486B;
  --cg-ui-edge-navy: #0D253D;
  --cg-ui-icon-navy: #102A43;
  --cg-ui-text-white: #FFFFFF;
  --cg-ui-score-yellow: #F8CF28;
}
/* Scope the legacy bar variables to Hole Page only. Do not re-theme
   Clubhouse, scorecards, expansion dialogs, or other screens this release. */
#app #screen-hole {
  --hf-bar-bg: var(--cg-ui-bar-blue);
  --hf-bar-shadow-top: none;
  --hf-bar-shadow-bottom: none;
}
/* Single, precise navy separators replace blue gradient, beveled rims,
   white highlight coats and multi-layer drop/inset shadows. Same bar sizes. */
#app #screen-hole .hf-top-bar,
#app #screen-hole #hole-game-line,
#app #screen-hole #chall-game-bar.cgb-bar {
  background: var(--cg-ui-bar-blue) !important;
  background-image: none !important;
  border-color: var(--cg-ui-edge-navy) !important;
  border-style: solid !important;
  border-width: 1px 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}
/* These pseudo-layers formerly painted sheen, dark rims, glass and bevels.
   Suppress only the visual decorations, not any game-bar children/events. */
#app #screen-hole .hf-top-bar::before,
#app #screen-hole .hf-top-bar::after,
#app #screen-hole #hole-game-line::before,
#app #screen-hole #hole-game-line::after,
#app #screen-hole #chall-game-bar.cgb-bar::before,
#app #screen-hole #chall-game-bar.cgb-bar::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}
/* The original « footer must remain FLOATING over the satellite map, never
   a newly painted strip at the bottom. */
#app #screen-hole .hf-footer {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Clear, white golf figures. Keep the 46px bar and current arrow positions. */
#app #screen-hole .hftb-sc-val,
#app #screen-hole .hftb-sc-score,
#app #screen-hole .hftb-sc-vspar {
  font-size: 29px !important; /* was 27px */
  font-weight: 900 !important;
  color: var(--cg-ui-text-white) !important;
  -webkit-text-fill-color: var(--cg-ui-text-white) !important;
  text-shadow: none !important;
}
@media (max-width: 359px) {
  #app #screen-hole .hftb-sc-val,
  #app #screen-hole .hftb-sc-score,
  #app #screen-hole .hftb-sc-vspar { font-size: 24px !important; }
}
/* Every Hole Page golf-ball caption/icon uses ONE navy ink. GPS's active
   *ring* stays green as functional feedback, but the icon itself remains navy. */
#app #screen-hole .hf-arrow-left span.hf-ball-label,
#app #screen-hole .hf-arrow-right span.hf-ball-label,
#app #screen-hole .hf-footer-back-btn span.hf-ball-label,
#app #screen-hole .hole-score-ball-btn .hole-score-ball-label,
#app #screen-hole .hole-club-ball-btn .hole-club-ball-label,
#app #screen-hole .hole-solo-score-ball-btn .hole-score-ball-label,
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3 .v3-footer-label {
  color: var(--cg-ui-icon-navy) !important;
  -webkit-text-fill-color: var(--cg-ui-icon-navy) !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
#app #screen-hole .cg-hole-aux-ball-stack .nsf-nav-btn-v3 .cg-ball-icon,
#app #screen-hole .cg-hole-aux-ball-stack #hole-gps-ball-btn[aria-pressed="true"] .cg-ball-icon {
  color: var(--cg-ui-icon-navy) !important;
  stroke: var(--cg-ui-icon-navy) !important;
  filter: none !important;
}
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera .hf-cam-glyph {
  color: var(--cg-ui-icon-navy) !important;
  opacity: 1 !important;
  filter: none !important;
}
/* Keep disabled camera glyph navy; do not make its white lens navy. */
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera .hf-cam-glyph path,
#app #screen-hole .cg-hole-aux-ball-stack #hole-footer-camera .hf-cam-glyph circle:last-child {
  fill: var(--cg-ui-icon-navy) !important;
}
/* Keep yellow Add Score texture; standardize dark blue label only. */
#app #screen-hole .cg-hole-right-ball-col #hole-score-ball-btn .hole-score-ball-label {
  color: var(--cg-ui-icon-navy) !important;
  -webkit-text-fill-color: var(--cg-ui-icon-navy) !important;
}

/* v7.8.21 — Right-edge ball column: Add Score + Club ball vertically centred
   as a pair on the map area. The wrapper is absolutely positioned and uses
   CSS max() to stay below the game bar on short screens while being centred
   on normal/tall iPhones.
   55.5px ≈ half of (56px score + 7px gap + 48px club = 111px pair height). */
#screen-hole .cg-hole-right-ball-col {
  position: absolute;
  right: var(--hole-floating-control-gap, 8px);
  top: max(
    calc(var(--hole-stack-bottom) + var(--hole-floating-control-gap)),
    calc(50% - 55.5px)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 61;
  pointer-events: none;
}
/* Cancel the absolute-positioning rules from the responsive section so each
   ball participates in the flex layout instead of escaping the wrapper. */
#screen-hole .cg-hole-right-ball-col > * {
  position: relative;
  inset: auto;
  pointer-events: auto;
}

/* v7.7.143 — Shared Hole Page camera hidden; keep its implementation intact. */
#screen-hole #hole-footer-camera{display:none!important}

/* v7.8.24 — Match the existing Home/Scorecard ball finish and diameter.
   The right-side flex column continues to control the Club Ball's location. */
#app #screen-hole .cg-hole-right-ball-col #hole-club-ball-btn {
  flex:0 0 var(--cg-nav-ball);
  width:var(--cg-nav-ball); height:var(--cg-nav-ball);
  margin:0; padding:0; border:0; border-radius:50%;
  background:url('../assets/balls/white-ball.png') center / contain no-repeat;
  filter:brightness(1.20) contrast(1.06) drop-shadow(0 3px 6px rgba(0,0,0,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.3));
  -webkit-tap-highlight-color:transparent;
}
#app #screen-hole .hole-club-ball-label {
  flex-direction:column; gap:2px; font-size:12.1px;
}
#hole-club-ball-choice:empty { display:none; }
#ctp-club-grid .nsf-ball-pick-btn[aria-pressed="true"] {
  outline:2px solid #F8CF28; outline-offset:1px; border-radius:50%;
}
