/* Play screen touches (Luke, 2026-10-14). Loads last, after play-full.css and view-orbs.css. */

/* GPS menu: see-through glass, so the hole shows behind it */
.play.pf .pf-bmenu--gps { background: linear-gradient(180deg, rgba(14, 34, 24, .46), rgba(6, 18, 12, .56));
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }
.play.pf .pf-bmenu--gps .bm-tile { background: rgba(255, 255, 255, .07); }

/* "Show me as" (Luke, 2026-10-14: small enough to pinpoint, and the pick looks exactly like it does on the ground). Walking / Cart: a
   small picture badge on a pin tail above a tiny dot at the exact spot. Ball: the ball itself is the dot. Same in the menu tile. */
.play.pf .bm-tile .mk-art { width: 44px; height: 44px; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.play.pf .bm-tile[data-mk="ball"] .mk-art > circle, .h3d-you--ball .mk-art > circle { display: none; }

/* the 2.5D map: the element is the exact spot (a dot); the badge stands above it */
.h3d-you.h3d-you--walker, .h3d-you.h3d-you--cart { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #0F2A1C, 0 2px 5px rgba(0, 0, 0, .45); }
.h3d-you--walker svg.mk-art, .h3d-you--cart svg.mk-art { position: absolute; left: 50%; bottom: 16px; width: 26px; height: 26px; translate: -50% 0;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.h3d-you--walker::after, .h3d-you--cart::after { content: ''; position: absolute; left: 50%; bottom: 10px; translate: -50% 0;
  border: 4px solid transparent; border-top: 6px solid #fff; border-bottom: 0; }
.h3d-you.h3d-you--ball { width: 14px; height: 14px; background: none; box-shadow: none; }
.h3d-you--ball svg.mk-art { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }

/* the "you are here" ripple: once per fresh GPS fix, never looping (battery) */
.h3d-you::before { animation: none; opacity: 0; }
.h3d-you.is-fix::before { animation: h3d-you 1.2s cubic-bezier(.2, .7, .3, 1) 1 both; }
.hm-ripple { transform-box: fill-box; transform-origin: center; animation: hm-ripple 1.2s cubic-bezier(.2, .7, .3, 1) 1 both; }
@keyframes hm-ripple { from { transform: scale(1); opacity: .95; } to { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-ripple, .h3d-you.is-fix::before { animation: none; } }

/* the distance to the green says its unit: m or yds, whatever the golfer picked */
.play.pf .fcb .v.c[data-u]::after, .play.pf .fcb-pill b[data-u]::after { content: attr(data-u); margin-left: .18em; font: 600 .34em/1 var(--sans); letter-spacing: .02em;
  color: rgba(243, 238, 226, .72); vertical-align: .9em; }
.play.pf .fcb-pill b[data-u]::after { font-size: .5em; vertical-align: .5em; }

/* score toolbox: a solid black panel (it was ~70% see-through), and the word on every coloured tab is white */
.play.pf .pf-sheet[aria-label^="Score"] { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }   /* solid black so the contour lines below pop (Luke, 2026-10-14) */
.play .quick button.birdie, .play .quick button.par, .play .quick button.bogey { --score-ink: #fff; }
.play .quick button.birdie .q-w, .play .quick button.par .q-w, .play .quick button.bogey .q-w { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }

/* Other (Luke, 2026-10-14: "you choose"): navy, a calm fourth colour beside the score tabs, white words. */
.play .quick button.other { background: #1F3B63; border-color: #2E5285; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 14px rgba(0, 0, 0, .35); }
.play .quick button.other .q-w, .play .quick button.other .q-n { color: #fff; }
/* Previous and Next (Luke, 2026-10-14): zebra hide for Previous, leopard for Next (Luke's supplied pictures, licence unknown,
   demo-only), each word on a solid tag so it reads over the fur: white on black for Previous, black on white for Next. */
.play.pf .pf-sheet #prev.btn, .play.pf .pf-sheet #next.btn { position: relative; isolation: isolate; overflow: hidden; background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px rgba(0, 0, 0, .4); }
.play.pf .pf-sheet #prev.btn { background-image: url(/img/btn-zebra.webp); color: #fff; }
.play.pf .pf-sheet #next.btn { background-image: url(/img/btn-leopard.webp); color: #000; }
.play.pf .pf-sheet .nav-t { display: inline-flex; align-items: center; gap: 2px; padding: 4px 12px 4px 9px; border-radius: 999px; line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }   /* the tag hugs the word (Luke: "just fit in the words") */
.play.pf .pf-sheet #next .nav-t { padding: 4px 9px 4px 12px; }
.play.pf .pf-sheet #prev .nav-t { background: #000; color: #fff; }
.play.pf .pf-sheet #next .nav-t { background: #fff; color: #000; }
.play.pf .pf-sheet #prev.btn:active, .play.pf .pf-sheet #next.btn:active { filter: brightness(.88); }

/* the Stats contour lines behind the Score panel (Luke, 2026-10-14): the course's own heights, drawn by js/contour-tile.js */
.play.pf .pf-sheet[aria-label^="Score"] { isolation: isolate; }
.play.pf .pf-cbg { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background-repeat: repeat-y;
  background-size: 150% auto; background-position: center 30%; }

/* the wind on every map (js/wind-badge.js): a small glass pill under the hole card, the arrow pointing where the wind blows */
.play.pf .pf-windb { position: absolute; z-index: 6; left: 10px; top: calc(var(--pf-y) + 84px); display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 11px 0 5px; border-radius: 999px; color: #fff; pointer-events: none;
  background: rgba(8, 16, 11, .62); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5); }
.play.pf .pf-windb[hidden] { display: none; }
.play.pf .pf-windb-a { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2FB8E8; transition: transform 400ms cubic-bezier(.23, 1, .32, 1); }
.play.pf .pf-windb-a[hidden] { display: none; }
.play.pf .pf-windb-a svg { width: 16px; height: 16px; fill: #fff; }
.play.pf .pf-windb-v { font: 700 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.play.pf .pf-windb-v small { margin-left: 3px; font: 600 11px/1 var(--sans); color: rgba(255, 255, 255, .7); }
.play.pf.pf-tool-open .pf-windb { visibility: hidden; }

/* the rings round the view circles (Luke, 2026-10-14, after trying red / blue / black and neon): all very thin white, so they melt into
   the clouds behind; the picked one's ring a hair thicker. Replaces the 2px ring from view-clouds.css. */
.play.pf .map .views.vo > .vo-b { box-shadow: 0 0 0 1px #fff, 0 4px 8px -2px rgba(10, 35, 70, .4); }
.play.pf .map .views.vo > .vo-b[aria-pressed="true"] { box-shadow: 0 0 0 1.5px #fff, 0 8px 14px -3px rgba(10, 30, 60, .5); }

/* behind the view circles (Luke, 2026-10-14): his sky-and-sun-rays loop in a pill (img/sky-rays.webp, made from the GIF he sent, 41 KB),
   still after 10 s (js/view-orbs.js adds .vo-still; img/sky-rays-still.webp); a few small clouds in front of it along the ends, top and
   bottom, kept on the border (Luke: "a little bit more cloud… within the border"), behind the circles; the sun's rays kept short. Replaces the big cloud from view-clouds.css. */
.play.pf .map .views.vo { background: url(/img/sky-rays.webp) 50% 50% / cover no-repeat; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(10, 30, 60, .55); }
.play.pf .map .views.vo.vo-still { background-image: url(/img/sky-rays-still.webp); }
.play.pf .map .views.vo::after { left: -24px; right: -24px; top: -18px; bottom: -18px; border-radius: 0; box-shadow: none;
  background: none; filter: none; }
.play.pf .map .views.vo::before { -webkit-mask-image: radial-gradient(circle, #000 0 26%, transparent 50%); mask-image: radial-gradient(circle, #000 0 26%, transparent 50%); }

/* Luke's sunset cloud (2026-10-14): filling the sky pill edge to edge, clipped to its border; it arrives only once the opening orbit has landed
   (the same --vo-sun signal js/view-orbit.js gives the sun). img/view-cloud.webp = his picture with the black cut away
   (docs/design/src/view-cloud-sunset-*). Layers, back to front: sky pill, cloud (Luke: "in front of the background video"), circles. Reaches 16 px left only (hole card). */
.play.pf .map .views.vo, .play.pf .map .views.vo.vo-still { background: none; box-shadow: none; }
.play.pf .map .views.vo::after { content: none; }
.play.pf .map .views.vo > .vo-sky { position: absolute; z-index: -1; inset: 0; border-radius: 999px; pointer-events: none;
  background: url(/img/sky-rays.webp) 50% 50% / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(10, 30, 60, .55); }
.play.pf .map .views.vo.vo-still > .vo-sky { background-image: url(/img/sky-rays-still.webp); }
.play.pf .map .views.vo > .vo-cloud { position: absolute; z-index: -1; inset: 0; border-radius: 999px; overflow: hidden; pointer-events: none;
  background: url(/img/view-cloud.webp) 50% 50% / cover no-repeat;   /* the cloud fills the pill edge to edge and never crosses it (Luke) */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  opacity: var(--vo-sun, 1); transition: opacity 600ms ease-out; }
/* these two are spans inside .views, so they need .views > to beat the button rules (play-full.css .views > *) */
/* the sun a little further out of the corner (Luke) */
.play.pf .map .views.vo::before { right: -66px; top: calc(-58px - var(--pf-y, 12px)); }

/* the four tool balls stand off the screen (Luke, 2026-10-14; the green slope pill behind them was tried and taken away): lifted a
   little, a deep soft shadow on the map below, and a lean against a drag or tilt (js/ball-depth.js sets --bx/--by): the ball moves
   one way and its shadow the other, so it reads as floating in front. Still unless something moves. */
.play.pf .pf-tools .pf-tool, .play.pf .pf-tools .pf-tool--tools { box-shadow: none !important;
  translate: var(--bx, 0px) calc(var(--by, 0px) - 4px);
  filter: none; }   /* no shading round them (Luke, 2026-10-14: "take that shading away"); just the balls */
.play.pf .pf-tools .pf-tool--tools.is-on { box-shadow: 0 0 0 2px #2FB8E8 !important; }

/* the hole number in the top-left card sits in a ringed disc in the club's colour, with a small HOLE above it (Luke, 2026-10-14, option 2):
   the same white ring as the view circles opposite, so the two corners match */
.play.pf .pf-card .hn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  line-height: .9 !important; font-size: 30px !important;
  color: var(--club-ink, #fff);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--club, #1F4430) 82%, #fff), var(--club, #1F4430) 55%, color-mix(in srgb, var(--club, #1F4430) 70%, #000));   /* the club's own colour (js/club-colours.js), lit from above */
  box-shadow: 0 0 0 1.5px #fff, 0 5px 10px -3px rgba(0, 0, 0, .6); }
.play.pf .pf-card .hn::before { content: 'HOLE'; font: 700 7px/1 var(--sans); letter-spacing: .14em; opacity: .75; margin-bottom: 1px; }
/* the GPS ball's light is always lit (Luke, 2026-10-14): red when GPS is off, green when it's on (still red if it's blocked) */
.play.pf .pf-tool--gps .pf-led { width: 7px; height: 7px; background: #FF1A1A; box-shadow: 0 0 6px #FF0000, 0 0 1px #fff; }   /* bright red (Luke) */
.play.pf .pf-tool--gps.is-on .pf-led { background: #6BFFA4; box-shadow: 0 0 5px #3DFF8B, 0 0 1px #fff; }
.play.pf .pf-tool--gps.is-on.is-err .pf-led { background: #FF1A1A; box-shadow: 0 0 6px #FF0000, 0 0 1px #fff; }
.play.pf .pf-windb { top: calc(var(--pf-y) + 102px); }   /* clear of the taller hole card (Luke: it was tucked behind the hole number) */

/* the hole card folds (Luke, 2026-10-14): back is its own round button, separate from the card; the card has an X that folds it
   down to just the club-coloured hole circle with "Hole" beside it, so more of the map shows; tapping that drops it open again */
.play.pf .pf-top { gap: 6px; right: calc(4px + var(--pf-views) + 6px) !important; }
.play.pf .pf-leave { flex: none; width: 34px !important; height: 34px !important; min-width: 0 !important; min-height: 0 !important; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #F3EEE2;
  border: 1px solid rgba(255, 255, 255, .16); -webkit-tap-highlight-color: transparent; }
.play.pf .pf-leave .ico { width: 18px; height: 18px; }
.play.pf .pf-leave:active { transform: scale(.94); }
.play.pf .pf-card { position: relative; padding-right: 12px !important; flex: 0 1 auto; }
.play.pf .pf-card:not(.pf-card--min) .pf-name { margin-right: 22px; }   /* room for the X on the top line only */
.play.pf .pf-card .pf-card-x { position: absolute; top: 6px; right: 6px; width: 22px !important; height: 22px !important; min-width: 0 !important; min-height: 0 !important; box-shadow: none !important; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: rgba(243, 238, 226, .85); -webkit-tap-highlight-color: transparent; }
.play.pf .pf-card .pf-card-x::after { content: ''; position: absolute; inset: -10px; }   /* a 44 px tap area */
.play.pf .pf-card .pf-card-x .ico { width: 11px; height: 11px; }
/* folded: just the circle, with "Hole" beside it */
.play.pf .pf-card--min { padding: 4px 14px 4px 4px; border-radius: 999px; }
.play.pf .pf-card--min .pf-card-t { grid-template-columns: auto auto; grid-template-areas: "hn word"; column-gap: 8px; }
.play.pf .pf-card--min .pf-name, .play.pf .pf-card--min .pf-l1, .play.pf .pf-card--min .pf-l2 { display: none; }
.play.pf .pf-card--min .pf-card-t::after { content: 'Hole'; grid-area: word; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 238, 226, .85); }
.play.pf .pf-card--min .hn::before { display: none; }
.play.pf .pf-card-open { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: none; border-radius: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .play.pf .pf-card.pf-card--in { animation: pf-card-in 220ms cubic-bezier(.23, 1, .32, 1) both; transform-origin: 20px 50%; }
  @keyframes pf-card-in { from { opacity: .4; transform: scale(.94); } to { opacity: 1; transform: none; } }
}
@media (max-width: 379px) {   /* small phones: a smaller hole circle so Par · SI · length still fits beside it */
  .play.pf .pf-card .hn { width: 44px; height: 44px; font-size: 25px !important; }
  .play.pf .pf-card .hn::before { font-size: 6px; }
  .play.pf .pf-card-t { column-gap: 6px; }
  .play.pf .pf-l1 > i { margin: 0 3px; }
  .play.pf .pf-card .pf-l1 { font-size: 11px; }
  .play.pf .pf-leave { width: 30px !important; height: 30px !important; }
  .play.pf .pf-top { gap: 4px; }
}

/* "Hide everything" (Luke, 2026-10-16): the eye button on every map (2D, 2.5D, satellite) clears the screen to the map and the
   distance to the green, the same as the eye on the 3D courses. The eye stays so everything can come back.
   Sits above the Tools menu (Luke, 2026-10-22: it was in the way of Green slope / Gravity lines, on Map and Satellite): 588px = the top of the tallest menu + a gap. */
/* Just under the Map / Satellite switch (Luke, 2026-11-03: it sat on top of Tools → Green slope); hidden while a ball's menu is open. */
/* Eye sits a clear step below the Map · Sat · 3D switch, not tucked under it (Luke, 2026-11-11: was 74px). */
.play.pf .pf-eye { position: absolute; z-index: 7; right: 10px; top: 124px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; color: #fff; background: rgba(8, 16, 11, .62); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.play.pf .pf-eye[hidden] { display: none; }
.play.pf .pf-eye .ico { width: 22px; height: 22px; }
.play.pf .pf-eye[aria-pressed="true"] { background: rgba(8, 16, 11, .38); border-color: rgba(255, 255, 255, .14); }
.play.pf .pf-eye:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.play.pf :is(.pf-top, .pf-bottom, .pf-sheet, .pf-read-x, .pf-windb, .map .views, .map .fit) { transition: opacity 220ms ease-out, visibility 220ms; }
.play.pf.pf-clear :is(.pf-top, .pf-bottom, .pf-sheet, .pf-read-x, .pf-windb, .map .views, .map .fit) { opacity: 0; visibility: hidden; pointer-events: none; }
/* the flyover (Luke, 2026-11-23: "make sure that there's nothing on the screen… the hole can stay… half the size"): everything off the
   picture for the ride and the landing; the hole card stays, at half size; a touch on the picture brings it all back */
.play.pf.pf-flying :is(.pf-bottom, .pf-sheet, .pf-read, .pf-read-x, .pf-windb, .pf-leave, .pf-eye, .fcb, .fcb-pill, .map .views, .map .fit) { opacity: 0; visibility: hidden; pointer-events: none; }
.play.pf.pf-flying .pf-top { pointer-events: none; }
.play.pf .pf-card { transition: transform .35s ease; }
.play.pf.pf-flying .pf-card { transform: scale(.5); transform-origin: top left; }
@media (prefers-reduced-motion: reduce) { .play.pf :is(.pf-top, .pf-bottom, .pf-sheet, .pf-read-x, .pf-windb, .map .views, .map .fit) { transition: none; } }

/* ── The Tools pop-up (Luke, 2026-11-23): it opens beside the Tools ball, to the left and down into the bottom middle of the screen
   (it used to climb up over the hole); the course shows through it, with a faint olive grid as its only pattern; each tool has a
   small picture tile; an on/off is a golf ball that rolls across. ── */
.play.pf .pf-bmenu--tools { right: calc(100% + 12px); bottom: 0; width: min(288px, calc(100vw - 82px)); transform-origin: 100% 72%; color: #fff;
  background:
    repeating-linear-gradient(96deg, rgba(178, 190, 96, .13) 0 1px, transparent 1px 23px),
    repeating-linear-gradient(4deg, rgba(178, 190, 96, .11) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, rgba(12, 30, 20, .34), rgba(6, 18, 12, .46));
  border-color: rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(9px) saturate(1.3); backdrop-filter: blur(9px) saturate(1.3);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
  animation: bm-side 240ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes bm-side { from { opacity: 0; transform: translateX(12px) scale(.96); } to { opacity: 1; transform: none; } }
.play.pf .pf-bmenu--tools .bm-row { gap: 11px; padding: 7px 9px; }
.play.pf .pf-bmenu--tools .bm-row:active { background: rgba(255, 255, 255, .14); }
.play.pf .pf-bmenu--tools .bm-t b { text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.play.pf .pf-bmenu--tools .bm-t small { color: rgba(255, 255, 255, .86); text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.25; }   /* the whole line, on two rows if it must: never cut off with dots */
.play.pf .pf-bmenu--tools .bm-go { stroke: rgba(255, 255, 255, .85); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
/* the picture tiles */
.play.pf .bm-ico.bm-art { width: 40px; height: 40px; overflow: hidden; border-radius: 12px; background: none; color: inherit;
  box-shadow: 0 3px 7px -2px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.play.pf .bm-ico.bm-art svg { width: 40px; height: 40px; display: block; fill: none; stroke: none; stroke-width: 0; }
.play.pf #tm-lie[aria-checked="true"] .bm-ico.bm-art { background: none; }
/* the switch: a real golf ball on a short track; it rolls to the right when the tool is on */
.play.pf .bm-sw { width: 50px; height: 20px; margin: 0 2px 0 4px; background: rgba(255, 255, 255, .26); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45); }
.play.pf .bm-sw::after { top: -5px; left: -4px; width: 30px; height: 30px; background: url(/img/brand/ball-white-198.webp) center / 100% 100% no-repeat; box-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)) brightness(.86);
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1), filter 180ms; }
.play.pf [aria-checked="true"] > .bm-sw { background: #1E8BFF; }
.play.pf [aria-checked="true"] > .bm-sw::after { transform: translateX(28px) rotate(150deg); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: reduce) { .play.pf .pf-bmenu--tools { animation: none; } .play.pf .bm-sw::after { transition: none; } }
