/* Full-screen Play (Luke, 2026-10-13): the map (map, satellite or 3D) runs corner to corner. On it float only:
   the back button / course / saved chip at the top, the hole number + par and the view switch under it, the distance plate,
   and at the bottom the hole strip, the players (group rounds), and the tool boxes stacked in the bottom-right corner
   (GPS, Shot, Score). Each tool box opens its toolbox as a panel from the bottom; more tools can join the stack later.
   Loaded last; scoped to .play.pf so it wins over the older layers (app.css, physical.css, moments.css, play-dusk.css). */

.play.pf { --pf-y: max(4px, calc(var(--sat) - 4px)); /* the top row sits a little up into the safe area (Luke, 2026-10-13: "pull it up a bit, more space") */
  --pf-top: calc(var(--pf-y) + 52px); --pf-glass: rgba(6, 18, 12, .66); --pf-line: rgba(255, 255, 255, .16);
  position: relative; display: block; height: 100dvh; padding: 0; overflow: hidden; background: #0B1A12; }
:root[data-scene="play"] .play.pf, :root[data-scene="play"][data-tone="day"] .play.pf { background: #0B1A12; }

/* the page behind full-screen Play never scrolls or rubber-bands, so a drag on the map moves only the map */
html:has(.play.pf), html:has(.play.pf) body { overflow: hidden; overscroll-behavior: none; }

/* the map, edge to edge */
/* the satellite credit: tiny and faint in the bottom-left corner, under the hole strip by the phone's home bar, the same size at any zoom */
.play.pf #holemap .hm-credit { display: none; }
.play.pf .map[data-credit]::after { content: attr(data-credit); position: absolute; z-index: 1; left: 6px; bottom: calc(var(--sab) * .35 + 1px);
  font: 500 7px/1 var(--sans); letter-spacing: .02em; color: rgba(255, 255, 255, .42); pointer-events: none; }
.play.pf .mapwrap { position: absolute; inset: 0; margin: 0; min-height: 0; }
.play.pf .mapwrap > .map, :root[data-scene="play"] .play.pf .map, :root[data-scene="play"][data-tone="day"] .play.pf .map { position: absolute; inset: 0; margin: 0; border-radius: 0; min-height: 0; background: #0E1A13; }

/* frosted glass, shared by every floating piece */
.play.pf .pf-glass, .play.pf .map .views, .play.pf .map .fit, .play.pf .fcb, .play.pf .fcb-pill,
.play.pf .pf-bottom .strip, .play.pf .pf-tool, .play.pf .pf-players .p {
  background: var(--pf-glass); color: #F3EEE2; border: 1px solid var(--pf-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 20px -8px rgba(0, 0, 0, .55); }

/* Top row (Luke, 2026-10-13: "merge the course and the hole into one card, top left; the view switch top right, nothing
   overlapping"). Left: one card — back arrow, then the club logo, course and tee colour, then the hole number, par, SI, length
   and strokes. Right: Map · Sat · 3D, pinned in the corner. The card's width is capped by the switch's width (--pf-views) plus a gap,
   so the two can never touch; the "whole hole" button sits under the switch. */
.play.pf { --pf-views: 138px; }
.play.pf .pf-top { position: absolute; z-index: 6; top: var(--pf-y); left: 10px; right: calc(10px + var(--pf-views) + 10px); display: flex; align-items: center; gap: 6px; }
/* the card (the back arrow is its own small circle just outside it, Luke 2026-10-13: "cleaner"), then the club logo and course name across the top; under them the big hole number with
   Par · SI · length beside it, and strokes · tee colour on the line below (Luke: "Oubaai at the top, and the yellow
   falls under, next to the stroke") */
.play.pf .pf-card { display: flex; align-items: center; min-width: 0; padding: 7px 12px 8px 10px; border-radius: 18px; }
/* the back arrow leads the course line inside the card (Luke, 2026-10-13: card flush in the corner like Map · Sat · 3D, no separate
   back circle): "‹ logo Oubaai" is one button, its tap area stretched to 44 px tall */
.play.pf .pf-back { position: relative; min-height: 0; min-width: 0; height: auto; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.play.pf .pf-back::after { content: ''; position: absolute; left: -10px; right: -6px; top: -10px; bottom: -8px; }
.play.pf .pf-back .ico { flex: none; width: 16px; height: 16px; margin: 0 -2px 0 -3px; color: rgba(243, 238, 226, .85); }
.play.pf .pf-back:active { opacity: .7; }
.play.pf .pf-card-t { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "hn l1" "hn l2";
  column-gap: 7px; align-items: center; }
.play.pf .pf-name { grid-area: name; min-width: 0; display: flex; align-items: center; gap: 6px; margin-bottom: 3px; color: #fff;
  font: 650 13.5px/1.2 var(--sans); color: #fff; letter-spacing: .005em; }
.play.pf .pf-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play.pf .pf-name .crest { width: 22px; height: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 1px 4px rgba(0, 0, 0, .35); }
.play.pf .pf-card-t .hn { grid-area: hn; font-family: var(--serif); font-size: 32px; line-height: .9; font-weight: 400; color: #fff;
  min-width: 22px; text-align: center; }
.play.pf .pf-l1, .play.pf .pf-l2 { min-width: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden;
  font: 500 12px/1.35 var(--sans); color: rgba(243, 238, 226, .74); }
.play.pf .pf-l1 { grid-area: l1; } .play.pf .pf-l2 { grid-area: l2; }
.play.pf .pf-l1 b { color: #fff; font-weight: 650; margin-left: 3px; }
.play.pf .pf-l1 b.num { margin-left: 0; }
.play.pf .pf-l1 > i, .play.pf .pf-l2 > i { font-style: normal; margin: 0 5px; color: rgba(243, 238, 226, .4); }
.play.pf .pf-tee { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.play.pf .pf-tee i { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
/* small phones (under 380 px wide): a narrower view switch and tighter lines, so every word still fits */
@media (max-width: 379px) {
  .play.pf { --pf-views: 124px; }
  .play.pf .map .views > * { padding: 0 4px; font-size: 13px; }
  .play.pf .pf-card { padding: 6px 9px 7px 8px; }
  .play.pf .pf-card-t { column-gap: 6px; }
  .play.pf .pf-l1, .play.pf .pf-l2 { font-size: 11.5px; }
  .play.pf .pf-l1 > i, .play.pf .pf-l2 > i { margin: 0 4px; }
}

/* the switch, hard into the top-right corner; compact labels so it stays narrow */
.play.pf .map .views { top: var(--pf-y); right: 10px; left: auto; width: var(--pf-views); justify-content: space-between; padding: 3px; border-radius: 999px; }
.play.pf .map .views > * { flex: 1; min-width: 0; padding: 0 6px; color: rgba(243, 238, 226, .85); background: transparent; font-size: 13.5px; }
.play.pf .map .views .long { display: none; }
.play.pf .map .views .short { display: inline; }
.play.pf .map .views > [aria-pressed="true"] { background: #F1EEE4; color: #0F2A1C; }
.play.pf .map .fit { top: calc(var(--pf-y) + 52px + 34px); right: 10px; left: auto; color: #F3EEE2; }   /* below the view circles AND their clouds, never inside them (Luke, 2026-10-14) */

/* the one distance number stays on the map, middle-left */
.play.pf .fcb { border-radius: 16px; }
.play.pf .fcb::before { color: rgba(243, 238, 226, .7); }
.play.pf .fcb .v.c { color: #fff; }
.play.pf .fcb-pill { color: #F3EEE2; }

/* bottom: players (group rounds), the hole strip, and the tool stack in the bottom-right corner */
.play.pf .pf-bottom { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: calc(var(--sab) * .45 + 4px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.play.pf .pf-bottom > * { pointer-events: auto; }   /* the bar sits halfway into the phone's home-bar zone (Luke, 2026-10-14: "bring it down a little") */
.play.pf .pf-bottom .strip { margin: 0; padding: 2px 6px; border-radius: 18px; }
.play.pf .pf-bottom .strip .h { color: rgba(243, 238, 226, .62); }
.play.pf .pf-bottom .strip .h .sc { color: #fff; }
.play.pf .pf-bottom .strip .h[aria-current="true"] { color: #fff; border-bottom-color: #C9A14A; }
.play.pf .pf-bottom .strip .h .sc.b, .play.pf .pf-bottom .strip .h .sc.e, .play.pf .pf-bottom .strip .h .sc.o, .play.pf .pf-bottom .strip .h .sc.d { outline-color: #fff; }
.play.pf .pf-bottom .strip .h .sc.e, .play.pf .pf-bottom .strip .h .sc.d { box-shadow: 0 0 0 3px rgba(6, 18, 12, .9), 0 0 0 4.5px #fff; }
.play.pf .pf-players { display: flex; gap: 6px; margin: 0; max-width: calc(100% - 96px); overflow-x: auto; scrollbar-width: none; }
.play.pf .pf-players::-webkit-scrollbar { display: none; }
.play.pf .pf-players .p { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 600 14px var(--sans); color: rgba(243, 238, 226, .8); }
.play.pf .pf-players .p[aria-pressed="true"] { background: #F1EEE4; color: #0F2A1C; border-color: #F1EEE4; }

.play.pf .pf-tools { position: absolute; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; align-items: center; gap: 10px; width: 48px; pointer-events: auto; }
/* round tool buttons (Luke, 2026-10-13: "circular, not rectangular"): a short word on top, the value under it */
.play.pf .pf-tool { position: relative; width: 48px; height: 48px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 6px; border-radius: 50%; text-align: center; font: inherit; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: transform 100ms ease-out; }
.play.pf .pf-tool:active { transform: scale(.95); }
.play.pf .pf-tool[aria-expanded="true"] { border-color: #C9A14A; box-shadow: 0 0 0 1.5px #C9A14A, 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool-k { max-width: 100%; font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 238, 226, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play.pf .pf-tool-v { display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; font: 650 12px/1.1 var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the hole-info button (Luke, 2026-10-13: "call it Hole Info, make the whole circle yellow"): opens the club, plays-like and slope */
.play.pf .pf-tool--shot { background: #F2C230; border-color: #F7D768; color: #1E1A08; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(120, 90, 0, .25), 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool--shot[aria-expanded="true"] { border-color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool--score .pf-tool-v.num { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.play.pf .pf-tool--score .pf-tool-v:not(.num) { font-size: 12px; }
/* the Score button (Luke, 2026-10-13: "make that green"); the hole's result still shows as its ring */
.play.pf .pf-tool--score { background: #1F9A55; border-color: #5CC98B; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 50, 20, .3), 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool--score .pf-tool-k { color: rgba(255, 255, 255, .85); }
.play.pf .pf-tool--score[aria-expanded="true"] { border-color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 8px 20px -8px rgba(0, 0, 0, .55); }
/* the score circle wears the Play score colour as its ring */
.play.pf .pf-tool--score.is-birdie { border-color: #B9F5CF; box-shadow: 0 0 0 1.5px #B9F5CF, 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool--score.is-par { border-color: #E3AE1E; box-shadow: 0 0 0 1.5px #E3AE1E, 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool--score.is-bogey { border-color: #E8735A; box-shadow: 0 0 0 1.5px #E8735A, 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool--score.is-double { border-color: #B8473A; box-shadow: 0 0 0 1.5px #B8473A, 0 8px 20px -8px rgba(0, 0, 0, .55); }
/* the GPS button (Luke, 2026-10-13: "make it blue, just say GPS, keep the on/off light") */
.play.pf .pf-tool--gps { gap: 6px; background: #2F7FD8; border-color: #6FA9EC; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 30, 80, .3), 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool--gps[aria-expanded="true"] { border-color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 8px 20px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-tool-gps { font: 800 14px/1 var(--sans); letter-spacing: .08em; color: #fff; }
.play.pf .pf-tool--gps .pf-led { width: 6px; height: 6px; background: #4A4D52; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5); }
.play.pf .pf-tool--gps.is-on .pf-led { background: #6BFFA4; box-shadow: 0 0 6px #3DFF8B, 0 0 1px #fff; }
.play.pf .pf-tool--gps.is-on.is-err .pf-led { background: #FF6A5A; box-shadow: 0 0 6px #FF4A3A; }   /* blocked or no signal */
.play.pf .pf-led { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #56625B; }
.play.pf .pf-tool--gps.is-on .pf-led { background: #6BFFA4; box-shadow: 0 0 5px #3DFF8B; }

/* Real golf balls (Luke, 2026-10-13: "make the toolkit buttons golf balls, different colour balls"): every button is the app's dimpled
   ball picture, tinted like a matte coloured ball (multiply keeps the dimples and shading); the words are printed on like a ball logo.
   Yellow = Hole Info, blue = GPS, green = Score. The score's ring and the open-button ring still show around the ball. */
.play.pf .pf-tool { isolation: isolate; border-color: transparent; background: url(/img/brand/play-ball-162.webp) center / 100% 100% no-repeat;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 9px 14px -6px rgba(0, 0, 0, .65), 0 2px 3px rgba(0, 0, 0, .35); }
.play.pf .pf-tool::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--ball, transparent);
  mix-blend-mode: multiply; pointer-events: none; }
.play.pf .pf-tool--shot { --ball: transparent; background-color: transparent; }   /* Hole Info: the classic white tour ball, black print */
.play.pf .pf-tool--gps { --ball: #4A4D53; background-color: transparent; }   /* GPS: a gloss black ball (charcoal, so the dimples still read) */
/* Luke's own ball pictures (2026-10-13; supplied, licence unknown, demo-only like the other supplied photos): white for Hole Info,
   black for GPS, blue for Score. Used as they are: no tint, no extra light, no contrast boost. */
.play.pf .pf-tool--shot { background: url(/img/brand/ball-white-198.webp) center / 100% 100% no-repeat; filter: none; }   /* Hole Info: the white ball again (Luke, 2026-10-17) */
.play.pf .pf-tool--gps { --ball: transparent; background: url(/img/brand/ball-black-198.webp) center / 100% 100% no-repeat; filter: none; }
.play.pf .pf-tool--score { --ball: transparent; background: url(/img/brand/ball-blue-198.webp) center / 100% 100% no-repeat; filter: none; }   /* Score: the blue ball again (Luke, 2026-10-17) */
.play.pf .pf-tool::after { display: none; }
/* the words, straight on the ball, nothing behind them: heavy, upright, straight-sided capitals (Luke, 2026-10-13: "thick, straight,
   easy to see"). Score shows just SCORE until the hole is scored, then the number, big. */
.play.pf .pf-tool::before { display: none; }
.play.pf .pf-tools :is(.pf-tool-hi, .pf-tool-gps, .pf-tool-sc) { font-family: "Arial Black", "Helvetica Neue", Arial, system-ui, sans-serif; font-style: normal;
  font-weight: 900; text-transform: uppercase; transform: none; background: none; box-shadow: none; padding: 0; mix-blend-mode: normal; opacity: 1; text-shadow: none; }
.play.pf .pf-tools .pf-tool-hi { display: block; font-size: 9px; line-height: 1.12; letter-spacing: .01em; color: #0B0B0B; text-align: center; }
.play.pf .pf-tools .pf-tool-gps { font-size: 11.6px; line-height: 1; letter-spacing: .03em; color: #FFFFFF; }
.play.pf .pf-tools .pf-tool-sc { font-size: 9.2px; line-height: 1.08; letter-spacing: .01em; color: #0B0B0B; }   /* red ball, black print (Luke, 2026-10-17) */
.play.pf .pf-tools .pf-tool-sc.num { font-size: 18.4px; letter-spacing: 0; }
/* every ball: matte (Luke: "it's dimples, not a smooth surface"), the dimples deepened, and a shadow on the ground
   a little way below, so they look round and hovering just above the map (still; nothing moves) */
.play.pf .pf-tools { gap: 13px; }   /* balls 48 px (Luke, 2026-10-13: "20% smaller") */
.play.pf .pf-tool { filter: contrast(1.22); box-shadow: 0 14px 10px -8px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .25) !important; }
.play.pf .pf-tool::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(60% 55% at 36% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 75%); }   /* matte: a broad soft light, no gloss spot */
.play.pf .pf-tool--shot::after { opacity: 0; }
.play.pf .pf-tool[aria-expanded="true"] { box-shadow: 0 0 0 2px #fff, 0 14px 10px -8px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .25) !important; }
.play.pf .pf-tool--score.is-birdie { box-shadow: 0 0 0 2px #B9F5CF, 0 14px 10px -8px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .25) !important; }
.play.pf .pf-tool--score.is-par { box-shadow: 0 0 0 2px #E3AE1E, 0 14px 10px -8px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .25) !important; }
.play.pf .pf-tool--score.is-bogey { box-shadow: 0 0 0 2px #E8735A, 0 14px 10px -8px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .25) !important; }
.play.pf .pf-tool--score.is-double { box-shadow: 0 0 0 2px #B8473A, 0 14px 10px -8px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .25) !important; }
/* The words are printed ON the ball, like a maker's mark (Luke: "like Titleist on a ball, part of the ball, not floating"): no shadow, the
   ink blends into the surface so the dimples show through it, a ball-maker's italic, squeezed and bowed a touch as if following the curve. */
.play.pf .pf-tool > span { text-shadow: none !important; transform: scaleY(.94); }
.play.pf .pf-tool-hi { font: italic 700 14px/1 Georgia, 'Times New Roman', serif; letter-spacing: 0; text-transform: none; color: #0E0C08; mix-blend-mode: multiply; }
.play.pf .pf-tool-gps { font: italic 700 17px/1 Georgia, 'Times New Roman', serif; letter-spacing: .01em; color: #F4F4F2; mix-blend-mode: screen; opacity: .95; }
.play.pf .pf-tool--score .pf-tool-k { font: 700 9.5px/1 Georgia, 'Times New Roman', serif; letter-spacing: .16em; color: #F4F6FA; mix-blend-mode: screen; opacity: .9; }
.play.pf .pf-tool--score .pf-tool-v { font: italic 700 15px/1 Georgia, 'Times New Roman', serif; color: #F4F6FA; mix-blend-mode: screen; opacity: .95; }
.play.pf .pf-tool--score .pf-tool-v.num { font: 400 22px/1 var(--serif); color: #F4F6FA; }
.play.pf .pf-tool-gps, .play.pf .pf-tool--score .pf-tool-k, .play.pf .pf-tool--score .pf-tool-v { color: #fff; text-shadow: 0 1px 2px rgba(0, 30, 60, .55); }
.play.pf .pf-tool:is(.pf-tool--shot, .pf-tool--gps, .pf-tool--score):not([aria-expanded="true"]):not(.is-birdie):not(.is-par):not(.is-bogey):not(.is-double) {
  box-shadow: 0 9px 14px -6px rgba(0, 0, 0, .65), 0 2px 3px rgba(0, 0, 0, .35); }

/* the toolbox panel: slides up from the bottom over the strip and the tool stack */
.play.pf .pf-sheet { position: absolute; z-index: 8; left: 8px; right: 8px; bottom: calc(var(--sab) + 8px); max-height: min(72dvh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 14px 14px; border-radius: 24px; color: #F3EEE2; background: rgba(8, 22, 15, .9); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 -10px 40px rgba(0, 0, 0, .45); }
.play.pf .pf-sheet.pf-in { animation: pf-up 280ms cubic-bezier(.2, .9, .25, 1) both; }
@keyframes pf-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.play.pf .pf-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.play.pf .pf-sheet-t { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 238, 226, .7); }
.play.pf .pf-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #F3EEE2; padding: 0; }
.play.pf .pf-close .ico { width: 18px; height: 18px; }
.play.pf.pf-tool-open .pf-bottom { visibility: hidden; }

/* the score toolbox: the Dusk & brass buttons, no panel of its own inside the panel */
.play.pf .pf-sheet .dock, :root[data-scene="play"][data-tone="day"] .play.pf .pf-sheet .dock { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.play.pf .pf-sheet .dock .nav { padding: 10px 0 0; display: flex; gap: 8px; }
.play.pf .pf-sheet .dock .nav .btn { flex: 1; }

/* the shot toolbox: the moment tabs, the plays-like / green / putts panel, then Pocket */
.play.pf .pf-sheet .hud { position: static; inset: auto; display: flex; flex-direction: column; gap: 10px; padding: 0; pointer-events: auto; }
.play.pf .pf-sheet .hud .moments { display: flex; gap: 6px; padding: 0; }
.play.pf .pf-sheet .hud .moments > button { flex: 1; min-height: 44px; background: rgba(255, 255, 255, .08); color: #F3EEE2; border-color: rgba(255, 255, 255, .16); }
.play.pf .pf-sheet .hud .moments > button[aria-pressed="true"] { background: #F1EEE4; color: #0F2A1C; }
.play.pf .pf-sheet .hud .stage, .play.pf .pf-sheet .hud .stage-tee, .play.pf .pf-sheet .hud .stage-approach, .play.pf .pf-sheet .hud .stage-green {
  position: static; display: block; width: auto; transform: none; margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: #F3EEE2; text-align: left; }
.play.pf .pf-sheet .hud .stage-mini { display: inline-flex; }
.play.pf .pf-sheet .hud .stage-approach .big-cap { display: flex; }
.play.pf .pf-sheet .hud .stage-label, .play.pf .pf-sheet .hud .big-cap, .play.pf .pf-sheet .hud .stage-note { color: rgba(243, 238, 226, .7); }
.play.pf .pf-sheet .hud .big-num { color: #fff; font-size: 52px; }
.play.pf .pf-sheet .hud .stage-min { display: none; }
.play.pf .pf-sheet .pf-row { display: flex; gap: 8px; }
.play.pf .pf-sheet .pf-row .pocket-btn { min-height: 44px; background: rgba(255, 255, 255, .08); color: #F3EEE2; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 600 14px var(--sans); }

/* the GPS toolbox */

@media (prefers-reduced-motion: reduce) { .play.pf .pf-sheet.pf-in { animation: none; } .play.pf .pf-tool { transition: none; } }
/* in the shot toolbox the tabs come first, then the number, then Pocket (an older rule orders the moment tabs last) */
.play.pf .pf-sheet .hud .moments { order: 0; }
.play.pf .pf-sheet .hud .stage, .play.pf .pf-sheet .hud .stage-green { order: 1; }
.play.pf .pf-sheet .hud .pf-row { order: 2; }
.play.pf .pf-sheet .pf-row .pocket-btn .ico { width: 18px; height: 18px; color: currentColor; }

/* The shot toolbox is see-through frosted glass (Luke, 2026-10-13: first "no background, like a PNG against the map",
   then "put a filter behind it, not completely clear, so we can see it better"): the map shows through, blurred and
   darkened, so the words read on photo or drawing. */
.play.pf .pf-sheet--clear { background: rgba(6, 18, 12, .42); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 -8px 30px rgba(0, 0, 0, .3); padding: 10px 12px 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.play.pf .pf-sheet--clear :is(button, a, .pf-chip) { pointer-events: auto; }
.play.pf .pf-sheet--clear .pf-sheet-t { color: rgba(255, 255, 255, .85); }
.play.pf .pf-sheet--clear .pf-close, .play.pf .pf-sheet--clear .hud .moments > button:not([aria-pressed="true"]), .play.pf .pf-sheet--clear .pf-row .pocket-btn {
  background: rgba(6, 18, 12, .42); border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }
.play.pf .pf-sheet--clear .hud { gap: 6px; }
.play.pf .pf-sheet--clear .pf-sheet-head { margin-bottom: 4px; }
.play.pf .pf-sheet--clear .pf-close { width: 36px; height: 36px; }
.play.pf .pf-sheet--clear .hud .moments > button { min-height: 34px; font-size: 13.5px; text-shadow: none; }
.play.pf .pf-sheet--clear .pf-row .pocket-btn { min-height: 36px; padding: 0 13px; font-size: 13px; }
.play.pf .pf-sheet--clear .hud .stage.pf-shot { padding: 4px 2px 0; background: none; border: 0; box-shadow: none; }
/* compact (Luke, 2026-10-13: "half the screen, no dead space"): no title row (the close button sits at the end of the
   tab row), the chips on one line, Fairway hit and the note side by side, Pocket last */
.play.pf .pf-sheet--clear .pf-sheet-head { position: absolute; top: 10px; right: 12px; margin: 0; z-index: 5; }
.play.pf .pf-sheet--clear .pf-sheet-t { display: none; }
.play.pf .pf-sheet--clear .hud .moments { padding-right: 0; margin-right: 62px; }   /* room for the X: the row's box must end before it, or it takes the X's taps (Luke, 2026-10-13) */
.play.pf .pf-sheet.pf-sheet--clear .hud .stage.pf-shot { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.play.pf .pf-sheet--clear .pf-shot > .pf-shot-top, .play.pf .pf-sheet--clear .pf-shot > .pf-chips, .play.pf .pf-sheet--clear .pf-shot > #pf-prof { flex: 1 0 100%; min-width: 0; }
.play.pf .pf-sheet--clear .pf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 6px 0 4px; }
.play.pf .pf-sheet--clear .pf-chips::-webkit-scrollbar { display: none; }
.play.pf .pf-sheet--clear .pf-chip { flex: none; }
.play.pf .pf-sheet--clear .pf-prof-svg { height: 40px; }
.play.pf .pf-sheet--clear .pf-prof-l { margin-top: 2px; }
.play.pf .pf-sheet--clear .pf-shot .fir { margin-top: 6px; }
.play.pf .pf-sheet--clear .pf-shot-note { margin: 6px 0 0; font-size: 11.5px; }
.play.pf .pf-sheet--clear .pf-k { margin-bottom: 2px; }
.play.pf .pf-sheet--clear .pf-row { gap: 6px; }
/* Pocket and ? sit at the end of the Fairway hit row instead of a row of their own */
.play.pf .pf-sheet--clear .hud { position: relative; }
.play.pf .pf-sheet--clear .hud .pf-row { position: absolute; right: 0; bottom: 0; }
.play.pf .pf-sheet--clear .pf-shot > .pf-shot-top { order: 1; } .play.pf .pf-sheet--clear .pf-shot > .pf-chips { order: 2; }
.play.pf .pf-sheet--clear .pf-shot > #pf-prof { order: 3; } .play.pf .pf-sheet--clear .pf-shot > .pf-shot-note { order: 4; flex: 1 0 100%; margin: 4px 0 0; }
.play.pf .pf-sheet--clear .pf-shot > .fir { order: 5; }
.play.pf .pf-sheet.pf-sheet--clear .hud .stage.pf-shot:not(:has(.fir)) { padding-bottom: 42px; }   /* no Fairway hit: keep a row for Pocket */
.play.pf .pf-sheet--clear .pf-shot .fir, .play.pf .pf-sheet--clear .pf-row .pocket-btn { min-height: 36px; margin-top: 6px; }


.play.pf .pf-shot-top { display: flex; flex-direction: row-reverse; align-items: flex-end; justify-content: space-between; gap: 12px; }
/* Luke, 2026-10-13: the club on the right (by the thumb), how far it plays on the left */
.play.pf .pf-shot-club { text-align: right; }
.play.pf .pf-shot-club #stage-club-n { align-items: flex-end; }
.play.pf .pf-shot-top .pf-shot-n { text-align: left; }
.play.pf .pf-k { display: block; font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-bottom: 4px; }
.play.pf .pf-shot-club { min-width: 0; }
.play.pf #stage-club-n { display: flex; flex-direction: column; font: 400 32px/1 var(--serif); color: #fff; }
.play.pf #stage-club-n small { margin-top: 3px; font: 600 13px/1.2 var(--sans); color: rgba(255, 255, 255, .85); }
.play.pf .pf-shot-n { flex: none; text-align: right; }
.play.pf .pf-shot-n b { font: 400 46px/.9 var(--serif); color: #fff; }
.play.pf .pf-shot-n .pf-u { margin-left: 3px; font: 600 15px var(--sans); color: rgba(255, 255, 255, .85); }

/* the chips: colour says it before the words do */
.play.pf .pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.play.pf .pf-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border-radius: 999px; text-shadow: none;
  font: 600 12.5px/1 var(--sans); color: #fff; background: rgba(6, 18, 12, .5); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.play.pf .pf-chip[hidden] { display: none; }
.play.pf .pf-chip i { font-style: normal; font-weight: 600; opacity: .8; }
.play.pf .pf-chip--up { background: rgba(232, 128, 52, .88); border-color: #F6A35F; }
.play.pf .pf-chip--down { background: rgba(46, 140, 196, .88); border-color: #7FC6E8; }
.play.pf .pf-chip--level { background: rgba(120, 130, 124, .7); }
.play.pf .pf-chip--into { background: rgba(196, 72, 58, .88); border-color: #E8735A; }
.play.pf .pf-chip--help { background: rgba(30, 158, 87, .88); border-color: #6BD69A; }
.play.pf .pf-chip--up i, .play.pf .pf-chip--down i, .play.pf .pf-chip--into i, .play.pf .pf-chip--help i { opacity: 1; }

/* the ground to the green */
.play.pf .pf-prof-svg { display: block; width: 100%; height: 48px; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.play.pf .pf-prof-line { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.play.pf .pf-prof-dot { fill: #fff; }
.play.pf .pf-prof-dot--green { fill: #00A6FF; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.play.pf .pf-rail { stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.play.pf .pf-rail--fw { stroke: #8CCB6E; } .play.pf .pf-rail--sand { stroke: #E6D3A3; } .play.pf .pf-rail--green { stroke: #00A6FF; }
.play.pf .pf-prof-l { display: flex; justify-content: space-between; margin-top: 4px; font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.play.pf .pf-shot .fir { margin-top: 6px; min-height: 34px; }
.play.pf .pf-shot-note { display: inline-block; margin: 6px 0 0 10px; font: 600 12px/1.3 var(--sans); color: #E7C46A; }

/* with a toolbox open the distance plate steps aside, so nothing sits behind the floating numbers */
.play.pf.pf-tool-open .fcb, .play.pf.pf-tool-open .fcb-pill { visibility: hidden; }

/* ════ Tools ball (Luke, 2026-10-13): the green's slope as a small tilted model, and gravity lines for the fairway on the map ════ */
/* a gold ball (Luke, 2026-10-14). img/brand/ball-gold-198.webp = his supplied picture (a pngtree preview): demo-only until licensed */
.play.pf .pf-tool--tools { background: url(/img/brand/ball-gold-198.webp) center / 100% 100% no-repeat; filter: none; }
.play.pf .pf-tool--tools::before { display: none; }
.play.pf .pf-tools .pf-tool-tl { font: 900 9px/1 "Arial Black", "Helvetica Neue", Arial, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em;
  color: #fff; text-shadow: 0 1px 1px rgba(60, 36, 0, .85), 0 0 4px rgba(60, 36, 0, .55); }

/* Not on the flat map (Luke, 2026-10-13): the Tools ball lives on 2.5D and Satellite */

/* The Tools panel (Luke, 2026-10-13: "transparency… make it smaller… minimal is the key"): the same see-through glass as Hole
   Info, sized to its content. The switch sits in the head beside the X; the green model on the left, the read on the right. */
.play.pf .pf-sheet--tl { background: rgba(6, 18, 12, .44); border-color: rgba(255, 255, 255, .14); padding: 8px 8px 12px 12px;
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 -8px 30px rgba(0, 0, 0, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.play.pf .pf-sheet--tl .pf-sheet-head { margin-bottom: 0; }
.play.pf .pf-sheet--tl .pf-sheet-t { color: rgba(255, 255, 255, .78); }
.play.pf .pf-sheet--tl .pf-close { width: 36px; height: 36px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.play.pf .tl { display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
/* Ball menus (Luke, 2026-10-13: "push the tools, it pops open… like the 3D course"; "design it better"): a small glass card beside
   the ball. Tools: Green slope opens its card, Gravity lines switches straight on/off. GPS: on/off with a live status line,
   and "Show me as" walker / cart / ball (js/you-marker.js). Picking anything closes the menu. */
.play.pf .pf-bmenu { position: absolute; z-index: 3; width: 252px; padding: 6px; border-radius: 22px; color: #F3EEE2;
  background: linear-gradient(180deg, rgba(14, 34, 24, .78), rgba(6, 18, 12, .84)); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: bm-pop 220ms cubic-bezier(.2, .9, .25, 1) both; }
.play.pf .pf-bmenu--tools { right: 0; bottom: calc(100% + 12px); transform-origin: 88% 100%; }
.play.pf .pf-bmenu--gps { right: calc(100% + 12px); bottom: 61px; transform-origin: 100% 80%; }   /* beside the GPS ball (one ball + gap up from the bottom) */
@keyframes bm-pop { from { opacity: 0; transform: translateY(6px) scale(.95); } to { opacity: 1; transform: none; } }
.play.pf .bm-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; border: 0; border-radius: 16px;
  background: transparent; color: inherit; text-align: left; transition: background-color 140ms; }
.play.pf .bm-row + .bm-row { margin-top: 2px; }
.play.pf .bm-row:active { background: rgba(255, 255, 255, .08); }
.play.pf .pf-bmenu button:focus-visible { outline: 2px solid #C9A14A; outline-offset: -2px; }
.play.pf .bm-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.play.pf .bm-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.play.pf .bm-ico .ico { width: 20px; height: 20px; color: currentColor; }
.play.pf .bm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.play.pf .bm-t b { font: 650 15px/1.15 var(--sans); color: #fff; }
.play.pf .bm-t small { font: 500 12px/1.2 var(--sans); color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.play.pf .bm-go { flex: none; width: 16px; height: 16px; fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.play.pf .bm-sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background-color 180ms; }
.play.pf .bm-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform 180ms cubic-bezier(.2, .9, .25, 1); }
.play.pf [aria-checked="true"] > .bm-sw { background: #2FB8E8; }
.play.pf [aria-checked="true"] > .bm-sw::after { transform: translateX(16px); }
.play.pf #tm-lie[aria-checked="true"] .bm-ico, .play.pf #gm-on[aria-checked="true"] .bm-ico { background: rgba(47, 184, 232, .2); color: #8FDCF7; }
.play.pf .bm-k { margin: 6px 10px 6px; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.play.pf .bm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 2px 2px; }
.play.pf .bm-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 8px 4px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; font: 600 12px/1 var(--sans);
  transition: background-color 140ms, border-color 140ms, transform 120ms; }
.play.pf .bm-tile:active { transform: scale(.97); }
.play.pf .bm-tile svg { width: 28px; height: 28px; }
.play.pf .bm-tile[aria-pressed="true"] { background: rgba(47, 184, 232, .18); border-color: rgba(47, 184, 232, .75); }
@media (prefers-reduced-motion: reduce) { .play.pf .pf-bmenu { animation: none; } }
/* you are here on the flat map / satellite: the picked marker's pulse */
.hm-you-pulse { transform-box: fill-box; transform-origin: center; animation: hm-you 1.6s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes hm-you { from { transform: scale(1); opacity: .95; } to { transform: scale(2.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-you-pulse { animation: none; opacity: .5; } }
.play.pf .pf-tool--tools.is-on { box-shadow: 0 0 0 2px #2FB8E8, 0 14px 10px -8px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .25) !important; }   /* the grid is showing */

/* the green slope card: model | read, then the eye slider and one honest line */
.play.pf .tl-row { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 10px; }
.play.pf .tl-read { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.play.pf .tl-fall { font: 600 13px/1.2 var(--sans); color: rgba(255, 255, 255, .78); }
.play.pf .tl-pct { font: 800 30px/1 var(--sans); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.play.pf .tl-pct small { font-size: .5em; font-weight: 700; margin-left: 1px; color: rgba(255, 255, 255, .8); }
.play.pf .tl-read .tl-say { font-size: 13px; line-height: 1.35; margin-top: 2px; text-wrap: balance; }
/* the green, lifted off the panel and tilted: a flat drawing seen at an angle (no 3D engine, nothing running) */
/* the green never takes a touch (Luke, 2026-10-13: its box hung over the slider and swallowed the drag); it fits inside its own space */
.play.pf .tl-stage { position: relative; height: 112px; perspective: 360px; display: grid; place-items: center; pointer-events: none; }
/* the tilt sits on a wrapper div, not the <svg>: iPhone Safari can ignore 3D transforms on an svg (the slider then did nothing there) */
.play.pf .tl-plate { width: 112px; height: 112px; transform-origin: 50% 50%; transition: transform 160ms ease-out; will-change: transform;
  transform: scale(var(--zoom, 1)) rotateX(var(--eye, 48deg)) rotate3d(var(--ax, 1), var(--ay, 0), 0, var(--tilt, 0deg)); }
.play.pf .tl-green { display: block; width: 100%; height: 100%; overflow: visible; }
.play.pf .tl-eye { position: relative; z-index: 1; margin-top: 8px; display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--sans); letter-spacing: .02em; color: rgba(255, 255, 255, .66); }
.play.pf .tl-eye input { flex: 1; accent-color: #C9A14A; min-height: 36px; margin: 0; touch-action: pan-x; }
.play.pf .tl-shadow { position: absolute; left: 50%; top: 50%; width: 120px; height: 26px; transform: translate(-50%, -30%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); z-index: -1; }
.play.pf .tl-fringe :is(circle, polygon) { fill: #2C6A2D; stroke: #2C6A2D; stroke-width: 3.2; stroke-linejoin: round; }   /* the collar round the green */
.play.pf .tl-surface :is(circle, polygon) { fill: url(#tl-fall); }   /* light on the high side, darker on the low side */
.play.pf .tl-edge :is(circle, polygon) { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .35; }
.play.pf .tl-cont path { stroke: rgba(255, 255, 255, .32); stroke-width: .3; stroke-dasharray: 1.2 1.2; fill: none; }
/* water running downhill: short dashes sliding along each line, quicker on a steeper green (only while the panel is open) */
.play.pf .tl-flow path { stroke: rgba(255, 255, 255, .9); stroke-width: .55; stroke-linecap: round; fill: none; stroke-dasharray: 1.6 4.4;
  animation: tl-flow var(--dur, 3s) linear infinite; }
@keyframes tl-flow { to { stroke-dashoffset: -6; } }
@media (prefers-reduced-motion: reduce) { .play.pf .tl-flow path { animation: none; } }
.play.pf .tl-pin line { stroke: #F4F1E8; stroke-width: .45; }
.play.pf .tl-pin path { fill: #E4473A; }
.play.pf .tl-pin circle { fill: #111; }
.play.pf .tl-mark { font: 700 3.9px var(--sans); text-anchor: middle; fill: #fff; letter-spacing: .05em; text-transform: uppercase; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: .5; }
.play.pf .tl-say { margin: 0; font: 500 13.5px/1.4 var(--sans); color: rgba(255, 255, 255, .88); }
.play.pf .tl-note { margin: 0; font: 500 10.5px/1.3 var(--sans); color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* gravity lines on the map: thin, with a dark keyline so they read on the photo and on the drawing */
.play.pf .lie-layer .lie-line { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .8)); }

/* close the green read (Luke, 2026-10-14: "an option to close it, not just let it run"): a clear pill while the map is over the green */
.play.pf .pf-read-x { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) * .45 + 84px);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(6, 18, 12, .72); color: #fff; font: 650 14px/1 var(--sans);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55); }
.play.pf .pf-read-x .ico { width: 16px; height: 16px; }
.play.pf .pf-read-x:active { transform: translateX(-50%) scale(.97); }
.play.pf .pf-read-x:focus-visible { outline: 2px solid #C9A14A; outline-offset: 2px; }
.play.pf.pf-tool-open .pf-read-x { visibility: hidden; }

/* Ball lettering with a thin black edge (Luke, 2026-10-14: "I can't see the Tools… a bit of black round the edges"): every white word
   on a ball gets a 1 px dark outline, like sticker lettering, so it reads on gold, black and blue alike. Hole Info is black on white already. */
.play.pf .pf-tools :is(.pf-tool-tl, .pf-tool-gps, .pf-tool-sc) { color: #fff; mix-blend-mode: normal; opacity: 1;
  text-shadow: 1px 0 0 rgba(0, 0, 0, .9), -1px 0 0 rgba(0, 0, 0, .9), 0 1px 0 rgba(0, 0, 0, .9), 0 -1px 0 rgba(0, 0, 0, .9),
    .7px .7px 0 rgba(0, 0, 0, .9), -.7px -.7px 0 rgba(0, 0, 0, .9), .7px -.7px 0 rgba(0, 0, 0, .9), -.7px .7px 0 rgba(0, 0, 0, .9),
    0 2px 3px rgba(0, 0, 0, .45); }

/* the green read's numbers (Luke, 2026-10-14): a small card on the grass behind Home's Estimated Index, with bold white writing
   and a dark edge, centred above the close pill; it leaves the moment the map is touched or zoomed, and with the read */
.play.pf .pf-read { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) * .45 + 140px);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 14px 10px; border-radius: 14px; text-align: center; pointer-events: none;
  background: linear-gradient(rgba(6, 36, 14, .5), rgba(6, 36, 14, .5)), url(/img/grass.jpg) center / 460px auto; color: #fff;   /* the same grass as Home's Estimated Index (home2.css .idx-band) */
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2); font: 700 13px/1.25 var(--sans);
  text-shadow: 1px 0 0 rgba(0, 0, 0, .7), -1px 0 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(0, 0, 0, .7), 0 -1px 0 rgba(0, 0, 0, .7), 0 2px 4px rgba(0, 0, 0, .5);
  animation: pf-read-in 320ms cubic-bezier(.2, .9, .25, 1) both; white-space: nowrap; }
.play.pf .pf-read-pct { font: 800 28px/1 var(--sans); letter-spacing: -.02em; }
.play.pf .pf-read-pct small { font-size: .55em; font-weight: 700; margin-left: 1px; }
.play.pf .pf-read-pct span { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .92); margin-left: 4px; }
.play.pf .pf-read-fall { font-size: 14px; font-weight: 800; }
.play.pf .pf-read-speed { font-size: 13px; font-weight: 800; }
.play.pf .pf-read-speed small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .92); }
@keyframes pf-read-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .play.pf .pf-read { animation: none; } }
.play.pf.pf-tool-open .pf-read { visibility: hidden; }

/* the Pocket ball (Luke, 2026-10-16): a real silver golf ball (the gold ball's picture, made silver) with a black half moon, no writing */
.play.pf .pf-tool--pocket { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.play.pf .pf-tool--pocket .pk-ball { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; filter: none; pointer-events: none; }   /* filter: none — moments.css gives every .pk-ball a drop shadow (the big Pocket help ball); on this small ball it was clipped square by the button (Luke, 2026-10-22: "square shade at the bottom") */
.play.pf .pf-tool--pocket .pk-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }



/* GEAR: a white ball at the bottom of the column that opens and closes all the others (Luke, 2026-10-17). Closed is the default
   every time the play screen opens. The balls stay in the page (hidden) so their buttons keep working when it opens. */
.play.pf .pf-tool--gear { --ball: transparent; background: var(--gear-ball, url(/img/brand/ball-sa-198.webp)) center / 100% 100% no-repeat; filter: none; }   /* Luke's South African flag ball (2026-10-17); wears the golfer's own flag via js/ball-flag.js (2026-11-04) */
.play.pf .pf-tools .pf-tool-gr { font-family: "Arial Black", "Helvetica Neue", Arial, system-ui, sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: 11px; line-height: 1; letter-spacing: .02em; color: #fff; background: none; box-shadow: none; padding: 0; mix-blend-mode: normal; opacity: 1; transform: none;
  text-shadow: 1px 0 0 rgba(0, 0, 0, .95), -1px 0 0 rgba(0, 0, 0, .95), 0 1px 0 rgba(0, 0, 0, .95), 0 -1px 0 rgba(0, 0, 0, .95), .7px .7px 0 rgba(0, 0, 0, .95), -.7px -.7px 0 rgba(0, 0, 0, .95), .7px -.7px 0 rgba(0, 0, 0, .95), -.7px .7px 0 rgba(0, 0, 0, .95), 0 2px 3px rgba(0, 0, 0, .5); }
.play.pf .pf-tools.is-closed > .pf-tool:not(.pf-tool--gear) { display: none; }
@keyframes pf-gear-pop { from { opacity: 0; transform: translateY(46px) scale(.55); } to { opacity: 1; transform: none; } }
.play.pf .pf-tools.is-pop > .pf-tool:not(.pf-tool--gear) { animation: pf-gear-pop 280ms cubic-bezier(.2, .9, .3, 1.15) both; transform-origin: 50% 100%; }
.play.pf .pf-tools.is-pop > .pf-tool:nth-last-child(2) { animation-delay: 0ms; }
.play.pf .pf-tools.is-pop > .pf-tool:nth-last-child(3) { animation-delay: 40ms; }
.play.pf .pf-tools.is-pop > .pf-tool:nth-last-child(4) { animation-delay: 80ms; }
.play.pf .pf-tools.is-pop > .pf-tool:nth-last-child(5) { animation-delay: 120ms; }
.play.pf .pf-tools.is-pop > .pf-tool:nth-last-child(6) { animation-delay: 160ms; }
@media (prefers-reduced-motion: reduce) { .play.pf .pf-tools.is-pop > .pf-tool:not(.pf-tool--gear) { animation: none; } }

/* Scorecard ball: a black pencil instead of the words (Luke, 2026-10-17). The score number still replaces it once the hole is scored. */
.play.pf .pf-tools .pf-tool-pen { display: grid; place-items: center; }
.play.pf .pf-tools .pf-tool-pen svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }   /* white pencil with a thin dark edge on the blue ball */

/* Tools: white print on the gold ball, made easier to read (Luke, 2026-10-17: black didn't work, "illuminate" the white): a heavier dark edge all round plus a soft dark halo behind it. */
.play.pf .pf-tools .pf-tool--tools .pf-tool-tl { color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  text-shadow: 1.5px 0 0 #000, -1.5px 0 0 #000, 0 1.5px 0 #000, 0 -1.5px 0 #000, 1.1px 1.1px 0 #000, -1.1px -1.1px 0 #000, 1.1px -1.1px 0 #000, -1.1px 1.1px 0 #000,
    0 0 4px rgba(0, 0, 0, .85), 0 0 9px rgba(0, 0, 0, .55); }

/* Tools ball: a standard wrench icon (Luke, 2026-10-23: "a normal tool icon that everybody knows"): black (Luke, 2026-10-23: "just make it black"). */
.play.pf .pf-tools .pf-tool--tools .pf-tool-wr { display: grid; place-items: center; text-shadow: none; }
.play.pf .pf-tools .pf-tool--tools .pf-tool-wr svg { width: 30px; height: 30px; fill: none; stroke: #0B0B0B; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: none; }
/* Tools ball: back to the word (Luke, 2026-10-22: "the binoculars don't read, it must just be 'tools'"), larger and bolder. */

/* Hole Info moves down under the blue Score ball; GPS and Score shift up (Luke, 2026-10-25). Stack: Pocket, Tools, GPS, Score, Hole Info, GEAR. */
.play.pf .pf-tools > .pf-tool--shot { order: 1; }
.play.pf .pf-tools > .pf-tool--gear { order: 2; }
/* the HOLE INFO print a little thicker, same font */
.play.pf .pf-tools .pf-tool-hi { -webkit-text-stroke: .6px #0B0B0B; paint-order: stroke fill; font-size: 9.5px; }
/* Tools ball: Luke's crossed screwdriver and wrench (2026-10-25), in the moon's black ink; 40px (was 31) so the ball's shading doesn't swallow it */
.play.pf .pf-tools .pf-tool--tools .pf-tool-wr svg { display: none; }
.play.pf .pf-tools .pf-tool--tools .pf-tool-wr { width: 40px; height: 40px; background: #14161B;
  -webkit-mask: url(/img/brand/icon-tools-240.png) center / contain no-repeat; mask: url(/img/brand/icon-tools-240.png) center / contain no-repeat; }

/* The putting helper (Luke, 2026-11-03), polished. One gold (--pu-gold) for the aim, cream for text, the app's deep green for the cards.
   Only the cards and the button take touches, so the green underneath can still be tapped, dragged and pinched. */
.play.pf .pf-read-putt, .pu { --pu-gold: #E3C078; --pu-card: #10291B; --pu-ink: #F4EFE4; --pu-mute: rgba(244, 239, 228, .66); --pu-line: rgba(244, 239, 228, .16); }

/* The button on the green read card: a quiet row under the numbers, hairline above it, no outline text */
.play.pf .pf-read-putt { pointer-events: auto; touch-action: manipulation; align-self: stretch; margin: 9px -14px -10px; padding: 12px 14px 11px; min-height: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: none; border: 0; border-top: 1px solid rgba(244, 239, 228, .24);
  border-radius: 0 0 13px 13px; color: var(--pu-ink); font: 650 13px/1 var(--sans); letter-spacing: .01em; text-shadow: none; cursor: pointer;
  transition: background-color 160ms ease-out; }
.play.pf .pf-read-putt:active { background: rgba(244, 239, 228, .1); }
.play.pf .pf-read-putt:focus-visible { outline: 2px solid var(--pu-gold); outline-offset: -3px; }
.play.pf .pf-read-putt .pu-bico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--pu-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.play.pf .pf-read-putt .pu-bt { flex: 1; text-align: left; }
.play.pf .pf-read-putt .pu-bgo { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--pu-mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cards: ask, then read. Anchored above the dock, no scrim, so the green stays in view. */
.pu { position: fixed; left: 0; right: 0; bottom: calc(var(--sab, 0px) + 96px); z-index: 60; display: flex; justify-content: center; padding: 0 14px; pointer-events: none; }
.pu-card { pointer-events: auto; width: min(400px, 100%); padding: 18px 18px 16px; border-radius: 16px; background: var(--pu-card); color: var(--pu-ink);
  border: 1px solid var(--pu-line); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3); display: grid; gap: 4px;
  animation: pu-in 240ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pu-card, .pu-chip { animation: none; } }

.pu-title { margin: 0; font: 500 22px/1.2 var(--serif); letter-spacing: -.01em; }
.pu-sub { margin: 2px 0 12px; font: 400 14px/1.4 var(--sans); color: var(--pu-mute); }
.pu-aim { margin: 0; font: 500 30px/1.1 var(--serif); letter-spacing: -.015em; color: var(--pu-gold); font-variation-settings: "opsz" 72; }
.pu-pace { margin: 6px 0 0; font: 600 17px/1.25 var(--sans); }
.pu-data { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--pu-line); display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 12.5px/1.3 var(--sans); color: var(--pu-mute); font-variant-numeric: tabular-nums; }
.pu-data b { color: var(--pu-ink); font-weight: 650; }
.pu-key { display: inline-flex; align-items: center; gap: 6px; }
.pu-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--pu-gold); box-shadow: 0 0 0 1.5px var(--pu-card), 0 0 0 2.5px var(--pu-gold); }
.pu-hint { margin: 8px 0 0; font: 400 12.5px/1.3 var(--sans); color: var(--pu-mute); }
/* The reading card (the answer): smaller, and a little see-through so the green shows behind it (Luke, 2026-11-22: "the writing to be
   smaller and more transparent… not completely, just enough"). A soft shadow under the words keeps them readable on pale grass. */
.pu--result .pu-card { padding: 13px 15px 12px; background: rgba(16, 41, 27, .58); -webkit-backdrop-filter: blur(9px) saturate(1.15); backdrop-filter: blur(9px) saturate(1.15);
  border-color: rgba(244, 239, 228, .22); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.pu--result .pu-aim { font-size: 24px; }
.pu--result .pu-pace { margin-top: 4px; font-size: 15px; }
.pu--result .pu-data { margin-top: 10px; padding-top: 9px; font-size: 11.5px; }
.pu--result .pu-hint { margin-top: 6px; font-size: 11.5px; }
.pu--result .pu-card .btn { text-shadow: none; }
/* the card is see-through now, so what sat hidden behind it steps aside while it is up (nothing shows through, nothing overlaps) */
body:has(#putt-ui.pu--result) .play.pf .pf-tools, body:has(#putt-ui.pu--result) .play.pf .pf-read-x { visibility: hidden; }
.pu-note { margin: 7px 0 0; font: 500 11px/1.3 var(--sans); letter-spacing: .01em; color: var(--pu-gold); opacity: .85; }

.pu-btns { margin-top: 14px; display: flex; gap: 8px; }
.pu-b { flex: 1 1 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--pu-line); background: rgba(244, 239, 228, .07); color: var(--pu-ink);
  font: 650 14.5px/1 var(--sans); letter-spacing: .005em; touch-action: manipulation; cursor: pointer; transition: background-color 160ms ease-out, transform 120ms ease-out; }
.pu-b:active { transform: scale(.98); background: rgba(244, 239, 228, .14); }
.pu-b--main { background: var(--pu-ink); border-color: var(--pu-ink); color: #10241A; }
.pu-b--main:active { background: #E6DFCE; }
.pu-b:focus-visible, .pu-x:focus-visible { outline: 2px solid var(--pu-gold); outline-offset: 2px; }

/* While the golfer is choosing the ball: one slim bar, not a card */
.pu-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border-radius: 14px; background: var(--pu-card); color: var(--pu-ink);
  border: 1px solid var(--pu-line); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .7), 0 2px 5px rgba(0, 0, 0, .3); font: 600 14.5px/1.2 var(--sans); animation: pu-in 240ms cubic-bezier(.16, 1, .3, 1) both; }
.pu-chip .pu-bico { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 9px; background: rgba(227, 192, 120, .14); fill: none; stroke: var(--pu-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pu-x { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(244, 239, 228, .08); color: var(--pu-ink); display: grid; place-items: center; touch-action: manipulation; }
.pu-x:active { background: rgba(244, 239, 228, .16); }
.pu-x svg { width: 16px; height: 16px; }
