#play-controls button, #play-controls select {
  min-width: 44px; min-height: 44px; border: 1px solid #ffffff32; border-radius: 14px;
  font: inherit; font-size: 14px; font-weight: 600; color: white; background: #18352de8;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sheet-open #play-controls { visibility: hidden; }
.on-course:not(.sheet-open) .tabbar, .on-course:not(.sheet-open) .topbar { display: none; }
.golf-bar {
  position: fixed; z-index: 19; top: calc(12px + env(safe-area-inset-top));
  left: calc(16px + env(safe-area-inset-left)); right: calc(16px + env(safe-area-inset-right));
  display: flex; align-items: center; gap: 10px; color: #fff;
}
#play-hole { font-size: 14px; font-weight: 650; text-shadow: 0 1px 6px #000b; flex: 1; }
#play-controls #play-map { padding: 0 14px; white-space: nowrap; }
#play-exit { font-size: 26px !important; }
.shot-dock {
  position: fixed; z-index: 18; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%); width: min(440px, calc(100% - 32px));
  padding: 10px 12px 0; background: #fffdf9; color: #1c2924; border-radius: 22px; box-shadow: 0 8px 40px #0003;
}
.on-course .shot-dock { bottom: calc(12px + env(safe-area-inset-bottom)); }
.shot-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, .8fr); align-items: center; gap: 12px; }
.shot-summary { padding-left: 4px; min-width: 0; }
.play-stats { margin: 0 0 2px; font-size: 15px; font-weight: 700; line-height: 1.25; }
#play-club { font-size: 12px; color: #626d65; }
#play-controls .hit { min-height: 52px; padding: 6px 12px; background: #143e30; color: #fff; border: 0; font-size: 16px; user-select: none; -webkit-user-select: none; }
#play-controls .hit:active { background: #245e49; }
#play-controls button:disabled { opacity: .65; cursor: default; }
.hit-status { display: block; font-size: 12px; font-weight: 500; }
.shot-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#hit-help { margin: 0 0 0 4px; font-size: 11px; color: #626d65; }
#play-settings summary { min-height: 44px; display: flex; align-items: center; padding: 0 4px 0 12px; font-size: 12px; cursor: pointer; }
#play-settings { margin-left: auto; }
#play-settings summary::after { content: '⌄'; padding-left: 6px; }
#play-settings[open] summary::after { content: '⌃'; }
.settings-body {
  position: absolute; bottom: calc(100% + 8px); right: 0; width: min(320px, 100%);
  max-height: min(440px, 60dvh); overflow: auto; padding: 18px; border-radius: 20px;
  background: #fffdf9; box-shadow: 0 8px 40px #0003; border: 1px solid #dedfd8;
}
.settings-body p, .settings-body label { display: block; margin: 0 0 8px; font-size: 13px; }
.club-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
#settings-club { flex: 1; font-size: 13px; text-align: center; }
#play-controls .settings-body button, #play-controls .settings-body select { background: #edf1eb; border-color: #cbd4c9; color: #1c2924; }
#play-camera { width: 100%; padding: 0 12px; }
.settings-body .settings-help { margin: 16px 0 0; font-size: 12px; color: #626d65; }
.aim-marker { position: fixed; z-index: 6; pointer-events: none; transform: translate(-50%, -100%); font-size: 12px; font-weight: 650; white-space: nowrap; }
.aim-marker--target { padding: 7px 11px; border-radius: 12px; background: #fffdf9; color: #8c204c; box-shadow: 0 3px 14px #0004; margin-top: -14px; }
.aim-marker--target::after { content: ''; position: absolute; left: calc(50% - 5px); bottom: -16px; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #ce3c78; box-shadow: 0 0 0 6px #ce3c7838; }
.aim-marker--ball { padding: 4px 8px; color: #153d2e; background: white; border-radius: 9px; margin-top: -8px; box-shadow: 0 3px 14px #0003; }
.aim-marker--pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #153d2e; border: 2px solid white; color: white; font-size: 20px; box-shadow: 0 3px 14px #0003; }
.map-open .shot-dock, .map-open .aim-marker { visibility: hidden; }
.map-open #play-hole { color: #173a2c; text-shadow: none; }
#course-map { position: fixed; z-index: 16; inset: 0; overflow: auto; padding: calc(78px + env(safe-area-inset-top)) 24px calc(12px + env(safe-area-inset-bottom)); background: #f7f8f2; color: #15382a; }
.map-heading { max-width: 700px; margin: 0 auto 8px; }
.map-heading h2 { font-size: clamp(22px, 4vw, 32px); line-height: 1.1; margin: 4px 0 8px; letter-spacing: -.6px; }
.map-eyebrow, #map-help { font-size: 12px; margin: 0; color: #596d5f; }
.map-eyebrow { text-transform: uppercase; font-size: 10px; letter-spacing: 1.5px; }
.map-drawing { position: relative; max-width: 700px; margin: 0 auto; background: #e2ebda; border-radius: 26px; }
.map-drawing svg { display: block; width: 100%; height: 100%; border-radius: inherit; }
.map-hole { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: #15382a; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.map-hole span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #fffdf9; box-shadow: 0 1px 5px #173d292e; }
.map-hole[aria-current=true] span { background: #b8336a; color: white; }
.map-hole:hover span, .map-hole:focus-visible span { box-shadow: 0 0 0 3px #15382a80; }
.map-credit { text-align: center; font-size: 10px; color: #596d5f; }
.map-credit a { color: inherit; }
@media(max-width: 360px) {
  .golf-bar { left: 10px; right: 10px; gap: 8px; }
  #play-hole { font-size: 12px; }
  #play-controls #play-map { font-size: 12px; padding: 0 10px; }
  .shot-dock { width: calc(100% - 20px); }
  .shot-controls { gap: 8px; }
}
@media(max-height: 500px) and (min-width: 560px) {
  .shot-dock { left: auto; right: calc(12px + env(safe-area-inset-right)); transform: none; width: 330px; }
  .on-course .shot-dock { bottom: calc(8px + env(safe-area-inset-bottom)); }
  #course-map { padding-top: 70px; }
  .map-heading { position: absolute; left: 24px; top: 90px; max-width: 180px; }
}
