/* GolfPin360 — one stylesheet for the player site, club portal and sign-in pages. */
/* Tech theme: deep navy, electric green for actions, electric blue for data, lime for the pin. Dark in every mode. */
:root {
  color-scheme: dark;
  --green: #060D1A; --green-2: #22E584; --lime: #22E584; --flag: #C8F53C; --gold: #F5C84C; --sky: #2EA8FF; --blue: #2EA8FF; --red: #FF5C6C; --orange: #FFA94D;
  --on-accent: #03140B;
  --bg: #050A14; --bg-2: #0A1424; --card: #0C1729; --card-2: #112038; --ink: #EAF2FF; --muted: #8DA2C0; --line: #1C2E4A; --soft: #0A1424;
  --glass: rgba(12, 23, 41, .72); --glass-line: rgba(120, 170, 255, .14); --glow-g: 0 0 0 1px rgba(34,229,132,.35), 0 0 24px rgba(34,229,132,.25); --glow-b: 0 0 24px rgba(46,168,255,.28);
  --radius: 16px; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --display: 'Sora', 'Inter', system-ui, sans-serif; --num: 'Sora', var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
img, svg { max-width: 100%; }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; gap: 8px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; color: #fff; }
.brand-word b { color: var(--lime); }
.portal-tag { background: var(--flag); color: #3a2c00; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.club-name { font-weight: 600; opacity: .9; }
.club-pick select { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 5px 8px; }
.club-pick option { color: #000; }
.top-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.top-nav a { color: rgba(255,255,255,.85); padding: 7px 11px; border-radius: 9px; font-weight: 500; }
.top-nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.top-nav a.on { background: rgba(255,255,255,.16); color: #fff; }
.top-nav .club-link { color: var(--flag); }
.top-nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.bell { position: relative; color: #fff; display: flex; padding: 6px; }
.bell .dot { position: absolute; top: 0; right: -2px; background: var(--flag); color: #3a2c00; font-size: .68rem; font-weight: 800; border-radius: 9px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; }
.avatar:hover { text-decoration: none; }
.club-nav { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.club-nav a { color: rgba(255,255,255,.78); padding: 6px 12px; border-radius: 8px; white-space: nowrap; font-size: .92rem; }
.club-nav a.on { background: #fff; color: var(--green); font-weight: 600; }
.club-nav a:hover { text-decoration: none; background: rgba(255,255,255,.1); }
.club-nav a.on:hover { background: #fff; }
.tabbar { display: none; }

.page { padding-top: 20px; padding-bottom: 40px; min-height: calc(100vh - 140px); }
.local-bar { background: #FFF6D6; color: #6b5300; border: 1px solid #F1DE9A; border-radius: 10px; padding: 6px 12px; font-size: .85rem; margin-bottom: 14px; }
.local-bar { background: #2b2610; color: #e8d68e; border-color: #4a4118; }

/* phones: tab bar at the bottom, slim top bar */
@media (max-width: 760px) {
  .top-nav a:not(.btn) { display: none; }
  body:not(.club-body) .top-nav { display: none; }
  .bell { margin-left: auto; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; color: var(--muted); font-size: .7rem; font-weight: 600; }
  .tabbar a.on { color: var(--green-2); }
  .tabbar a:hover { text-decoration: none; }
  body:not(.club-body):not(.auth-body):not(.legal-body) { padding-bottom: 70px; }
  h1 { font-size: 1.4rem; }
  .club-name { display: none; }
}

/* ---------- cards, grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.stat .sub { color: var(--muted); font-size: .82rem; }

.hero { background: linear-gradient(135deg, var(--green) 0%, #1E7A4B 100%); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 18px solid rgba(155, 225, 93, .18); }
.hero h1, .hero h2 { color: #fff; }
.hero .muted { color: rgba(255,255,255,.75); }
.hero .btn { position: relative; z-index: 1; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--soft); color: var(--green-2); white-space: nowrap; }
.pill.warn { background: #FFF1DC; color: #9a5a00; } .pill.bad { background: #FDE7E7; color: #a12a2a; } .pill.blue { background: #E3EEFD; color: #1d58a8; } .pill.gold { background: #FFF6CF; color: #7a5d00; }
.pill.warn { background: #3a2a10; color: #f0b866; } .pill.bad { background: #3b1717; color: #f19a9a; } .pill.blue { background: #13243d; color: #8fb8f2; } .pill.gold { background: #342c0c; color: #ecd277; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label, .label-row { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--card);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--green-2); }
textarea { min-height: 80px; resize: vertical; }
.hint { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green-2); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1; min-width: 130px; }
.inline-form { display: inline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; background: var(--green-2); color: var(--on-accent);
  font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-lime { background: var(--lime); color: var(--green); }
.btn-flag { background: var(--flag); color: #3a2c00; }
.btn-ghost { background: transparent; color: var(--green-2); border-color: var(--line); }
.btn-danger { background: var(--red); }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; font-size: .93rem; }
.alert-success { background: #E7F6E9; border-color: #B9E2BF; color: #1f5e2b; }
.alert-error { background: #FDECEC; border-color: #F3C2C2; color: #8d2323; }
.alert-info { background: #E8F1FD; border-color: #BFD6F6; color: #1d4f91; }
.alert-success { background: #12301a; border-color: #24502e; color: #a6e0b1; } .alert-error { background: #351616; border-color: #5a2525; color: #f2b0b0; } .alert-info { background: #11243c; border-color: #23446b; color: #a9c9f2; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; }

/* scorecard grid */
table.sc { border-collapse: collapse; font-size: .85rem; min-width: 100%; font-variant-numeric: tabular-nums; }
table.sc th, table.sc td { border: 1px solid var(--line); padding: 5px 4px; text-align: center; min-width: 30px; }
table.sc th:first-child, table.sc td:first-child { text-align: left; padding-left: 8px; min-width: 110px; position: sticky; left: 0; background: var(--card); z-index: 1; }
table.sc .tot { background: var(--soft); font-weight: 700; }
table.sc .par-row td { color: var(--muted); }
table.sc .s { display: inline-grid; place-items: center; width: 24px; height: 24px; font-weight: 600; }
.s.birdie { border-radius: 50%; border: 2px solid var(--red); } .s.eagle { border-radius: 50%; border: 2px solid var(--red); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--red); }
.s.bogey { border: 2px solid var(--sky); } .s.double { border: 2px solid var(--sky); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--sky); }
.skin-dot { display: block; width: 6px; height: 6px; background: var(--flag); border-radius: 50%; margin: 2px auto 0; }

/* ---------- auth pages ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 0%, #1E7A4B 0%, var(--green) 45%, #050A14 100%); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; padding: 28px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-card .brand-word { color: var(--green); font-size: 1.7rem; }
.auth-card .brand-word { color: #fff; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 18px; }
.auth-card h2 { text-align: center; }
.forgot-link { text-align: right; margin: -6px 0 14px; font-size: .88rem; }
.legal-links { text-align: center; margin: 16px 0 0; font-size: .78rem; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.legal-links a { color: var(--muted); }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.code-actions { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.legal-body { background: var(--bg); }
.legal-top { background: var(--green); }
.legal-wrap { max-width: 820px; padding-top: 20px; padding-bottom: 40px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.subtabs a { padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; color: var(--ink); }
.subtabs a.on { background: var(--green-2); color: var(--on-accent); border-color: var(--green-2); }
.subtabs a:hover { text-decoration: none; }
.legal-doc h3 { margin-top: 1.4em; }
.legal-doc li { margin-bottom: 6px; }
.missing { background: #FFF1DC; color: #9a5a00; padding: 0 4px; border-radius: 4px; }

.site-foot { border-top: 1px solid var(--line); padding: 18px 0 26px; font-size: .82rem; color: var(--muted); }
.site-foot .wrap { display: flex; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
@media (max-width: 760px) { body:not(.club-body) .site-foot { padding-bottom: 90px; } }

/* ---------- tee times ---------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.date-strip a { flex: none; min-width: 64px; text-align: center; padding: 8px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.date-strip a b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.1; }
.date-strip a small { color: var(--muted); font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.date-strip a.on { background: var(--green-2); color: var(--on-accent); border-color: var(--green-2); }
.date-strip a.on small { color: rgba(255,255,255,.8); }
.date-strip a:hover { text-decoration: none; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.time-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--ink); display: block; position: relative; }
.time-tile:hover { border-color: var(--green-2); text-decoration: none; box-shadow: var(--shadow); }
.time-tile .t { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.time-tile .price { color: var(--green-2); font-weight: 700; }
.time-tile .spots { display: flex; gap: 3px; margin-top: 6px; }
.time-tile .spots i { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); }
.time-tile .spots i.taken { background: var(--line); }
.time-tile.full { opacity: .45; pointer-events: none; }
.time-tile .tag { position: absolute; top: 10px; right: 10px; }

.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.1rem; }

/* club tee sheet */
.sheet { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sheet td, .sheet th { border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: top; }
.sheet .time { font-weight: 700; white-space: nowrap; width: 80px; font-variant-numeric: tabular-nums; }
.sheet tr.blocked td { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(232,137,43,.09) 8px 16px); }
.sheet tr.past td { opacity: .55; }
.slot-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 8px; padding: 4px 8px; margin: 2px 4px 2px 0; font-size: .85rem; }
.slot-chip.in { background: #DFF3D9; } .slot-chip.pending { background: #FFF1DC; }
.slot-chip.in { background: #1d3a22; } .slot-chip.pending { background: #3a2a10; }
.fill-bar { height: 8px; background: var(--soft); border-radius: 9px; overflow: hidden; }
.fill-bar span { display: block; height: 100%; background: var(--green-2); }

/* ---------- play / course map ---------- */
.play-body .page { padding-top: 0; padding-left: 0; padding-right: 0; max-width: none; }
.play-body .site-foot, .play-body .local-bar { display: none; }
.play { display: grid; grid-template-columns: 1fr 380px; height: calc(100vh - 58px); }
.map-wrap { position: relative; min-height: 300px; }
#map { position: absolute; inset: 0; background: #2d3b2a; }
.side { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.hole-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 3; }
.hole-bar .num { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; width: 52px; text-align: center; }
.hole-bar .meta { flex: 1; font-size: .88rem; color: var(--muted); }
.hole-bar .meta b { color: var(--ink); font-size: 1rem; }
.hole-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.dist-main { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 10px 8px; gap: 6px; }
.dist-main .lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.dist-main .yd { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.dist-main .mid .yd { font-size: 3rem; color: var(--green-2); }
.gps-line { text-align: center; font-size: .78rem; color: var(--muted); padding: 0 12px 10px; }
.gps-line .live { color: var(--green-2); font-weight: 700; } .gps-line .sim { color: var(--orange); font-weight: 700; }
.panel { padding: 12px 14px; border-top: 1px solid var(--line); }
.panel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; font-family: var(--font); font-weight: 700; }
.haz { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92rem; }
.haz .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.haz .sw.bunker { background: #E9D8A6; border: 1px solid #b89f5a; } .haz .sw.water { background: #3E8EDE; } .haz .sw.dogleg { background: var(--flag); border-radius: 50%; }
.haz .nm { flex: 1; }
.haz .yy { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.haz .yy small { color: var(--muted); font-weight: 500; }
.caddy { background: linear-gradient(135deg, #0B3B2A, #1E7A4B); color: #fff; border-radius: 14px; padding: 12px 14px; }
.caddy .club { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--lime); }
.caddy .why { font-size: .86rem; opacity: .9; margin-top: 2px; }
.caddy .alt { font-size: .8rem; opacity: .75; margin-top: 6px; }
.caddy-locked { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: .9rem; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper .v { font-family: var(--display); font-size: 1.6rem; font-weight: 700; min-width: 34px; text-align: center; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.score-grid .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; padding: 7px 4px; border: 0; background: var(--card); color: var(--ink); font: 600 .8rem var(--font); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--green-2); color: var(--on-accent); }
.mini-board { width: 100%; font-size: .85rem; border-collapse: collapse; }
.mini-board td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.mini-board .topar { font-weight: 800; text-align: right; }
.map-tools { position: absolute; top: 12px; left: 12px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-tools button, .map-tools a { background: rgba(255,255,255,.95); color: #15221B; border: 0; border-radius: 10px; padding: 8px 11px; font: 600 .82rem var(--font); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); text-align: left; }
.map-tools button.on { background: var(--flag); }
.map-tip { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 500; background: rgba(6,13,26, .85); color: #fff; padding: 7px 14px; border-radius: 99px; font-size: .82rem; white-space: nowrap; }
.yd-label { background: rgba(6,13,26,.85); color: #fff; font: 700 13px var(--font); padding: 2px 7px; border-radius: 8px; white-space: nowrap; border: 0; box-shadow: none; }
.yd-label::before { display: none; }
.leaflet-tooltip.yd-label { border: 0; }
.dog-label { background: var(--flag); color: #3a2c00; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2B7BE4; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43,123,228,.3); }
.target-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--flag); }
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #15221B; }
.club-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.club-chips button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 .82rem var(--font); cursor: pointer; }
.club-chips button.on { background: var(--green-2); color: var(--on-accent); border-color: var(--green-2); }
.side-tabs { display: flex; border-bottom: 1px solid var(--line); }
.side-tabs button { flex: 1; padding: 10px 0; border: 0; background: none; font: 600 .86rem var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.side-tabs button.on { color: var(--green-2); border-bottom-color: var(--green-2); }
@media (max-width: 860px) {
  .play { grid-template-columns: 1fr; height: auto; }
  .map-wrap { height: 52vh; }
  .side { border-left: 0; }
}

/* ---------- misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .93rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.badge-premium { background: linear-gradient(90deg, #FFD23F, #F5A623); color: #3a2c00; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 130px; padding-top: 10px; }
.bars .b { flex: 1; background: var(--green-2); border-radius: 5px 5px 0 0; position: relative; min-width: 8px; }
.bars .b span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); font-weight: 700; }
.order-col { min-height: 120px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin-bottom: 10px; background: var(--card); }
.order-card .when { font-size: .78rem; color: var(--muted); }
.order-card ul { margin: 6px 0; padding-left: 18px; font-size: .9rem; }
.menu-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .grow { flex: 1; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.qty .n { min-width: 18px; text-align: center; font-weight: 700; }
.cart-bar { position: sticky; bottom: 76px; z-index: 40; }
@media (min-width: 761px) { .cart-bar { bottom: 12px; } }
.feature-list { list-style: none; padding: 0; margin: 0 0 14px; }
.feature-list li { padding: 6px 0 6px 28px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 12px; height: 7px; border-left: 3px solid var(--green-2); border-bottom: 3px solid var(--green-2); transform: rotate(-45deg); }
.qr-box { display: inline-block; background: #fff; padding: 10px; border-radius: 12px; }
.backup-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, monospace; font-size: 1.05rem; background: var(--soft); padding: 12px; border-radius: 10px; }
.more-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.more-list a::after { content: "›"; color: var(--muted); font-size: 1.3rem; }
.more-list a:hover { text-decoration: none; }

/* ================= Clubhouse theme ================= */
body { background: var(--bg); color: var(--ink); }
::selection { background: var(--green-2); color: var(--on-accent); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: 2rem; } h2 { font-size: 1.35rem; }
h3 { font-family: var(--font); font-weight: 700; font-size: 1rem; }
a { color: #4CF5A2; }
a:hover { color: #7CF5B8; text-decoration: none; }
.muted, .hint { color: var(--muted); }
.stat .value, .time-tile .t, .hole-bar .num, .dist-main .yd, .stepper .v, .date-strip a b, .caddy .club, .big-num { font-family: var(--num); font-weight: 800; letter-spacing: -.02em; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--flag); }

/* top bar */
.topbar { background: rgba(8,16,30, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #fff; }
.brand-word b { color: var(--flag); font-weight: 700; }
.portal-tag { background: var(--flag); color: #2a1f00; }
.top-nav a { color: var(--muted); font-weight: 600; }
.top-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.top-nav a.on { color: #fff; background: rgba(34,229,132,.18); box-shadow: inset 0 -2px 0 var(--green-2); border-radius: 9px 9px 0 0; }
.top-nav .club-link { color: var(--flag); }
.club-switch { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 4px 3px 3px; max-width: 260px; }
.club-switch select { background: transparent; border: 0; color: #fff; font: 600 .88rem var(--font); padding: 4px 22px 4px 2px; width: auto; max-width: 200px; text-overflow: ellipsis; cursor: pointer; }
.club-switch select:focus { outline: 0; box-shadow: none; }
.club-switch option { color: #000; }
.avatar { background: linear-gradient(135deg, var(--flag), var(--green-2)); color: #1c1500; }
.bell .dot { background: var(--flag); color: #2a1f00; }
.club-nav a { color: var(--muted); }
.club-nav a.on, .club-nav a.on:hover { background: var(--green-2); color: var(--on-accent); }
.local-bar { background: rgba(200,245,60,.1); color: #E3F7A8; border: 1px solid rgba(200,245,60,.25); }

/* surfaces */
.card, .stat { background: var(--card); border-color: var(--line); }
.stat .label { color: var(--muted); }
table.t th { color: var(--muted); }
.pill { background: rgba(34,229,132,.16); color: #5CF0A6; }
.pill.gold { background: rgba(200,245,60,.16); color: #DDF58C; }
.badge-premium { background: linear-gradient(90deg, #E2C47F, #C29A48); color: #2a1f00; }
.btn { border-radius: 10px; font-weight: 700; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--green-2); background: rgba(34,229,132,.1); }
.btn-flag, .btn-gold { background: var(--flag); color: #2a1f00; }
.btn-lime { background: var(--green-2); color: var(--on-accent); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select, textarea {
  background: var(--bg-2); border-color: var(--line); color: #fff; }
input::placeholder, textarea::placeholder { color: #5D7393; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(34,229,132,.5); border-color: var(--green-2); }
.hero { background: linear-gradient(135deg, #0E1B30 0%, #0A1424 100%); border: 1px solid var(--line); }
.hero::after { border-color: rgba(200,245,60,.14); }
.caddy { background: linear-gradient(135deg, #10233D, #0E1B30); border: 1px solid var(--line); }
.caddy .club { color: var(--flag); }
.dist-main .mid .yd { color: #fff; }
.hole-bar .num { color: var(--flag); }
.side { background: var(--card); }
.hole-bar { background: var(--card); }
.fill-bar span, .bars .b { background: var(--green-2); }
.tabbar a.on { color: var(--flag); }
@media (max-width: 760px) { .tabbar { background: #060D1A; border-top-color: var(--line); } .club-switch { max-width: 170px; } .club-switch select { max-width: 120px; } }

/* photo hero (club photo with a dark wash so text reads) */
.photo-hero { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 18px; background: #0E1B30 center / cover no-repeat; border: 1px solid var(--line); }
.photo-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,13,26,.96) 0%, rgba(6,13,26,.82) 45%, rgba(6,13,26,.35) 100%), linear-gradient(0deg, rgba(6,13,26,.7), transparent 60%); }
.photo-hero > * { position: relative; }
.photo-hero .inner { padding: 26px 26px 22px; }
.photo-credit { position: absolute; right: 10px; bottom: 6px; font-size: .64rem; color: rgba(255,255,255,.55); }
.hello h1 { font-size: 2.4rem; margin: 2px 0 14px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats .k { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.hero-stats .v { font: 800 1.9rem/1.1 var(--num); letter-spacing: -.02em; }
.hero-stats .v.gold { color: var(--flag); }
@media (max-width: 560px) { .hello h1 { font-size: 1.9rem; } .hero-stats { gap: 18px; } .hero-stats .v { font-size: 1.5rem; } .photo-hero .inner { padding: 20px 18px; } }

/* the four big actions */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: #fff; min-height: 138px; transition: transform .15s, border-color .15s; }
.feature:hover { transform: translateY(-2px); border-color: var(--green-2); color: #fff; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,229,132,.16); color: #5CF0A6; }
.feature .t { font-weight: 800; font-size: 1.05rem; }
.feature .s { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.feature.primary { background: linear-gradient(140deg, #22E584, #12A866); border-color: transparent; box-shadow: 0 10px 30px rgba(34,229,132,.25); }
.feature.primary .ic { background: rgba(255,255,255,.18); color: #fff; }
.feature.primary .s { color: rgba(255,255,255,.85); }
.feature .lock { margin-top: auto; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* club experience */
.club-hero { position: relative; border-radius: 20px; overflow: hidden; background: #0E1B30 center / cover no-repeat; margin-bottom: 14px; border: 1px solid var(--line); min-height: 230px; display: flex; align-items: flex-end; }
.club-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,13,26,.97) 8%, rgba(6,13,26,.55) 55%, rgba(6,13,26,.15) 100%); }
.club-hero .inner { position: relative; display: flex; gap: 16px; align-items: flex-end; padding: 22px; width: 100%; flex-wrap: wrap; }
.club-hero h1 { margin: 0; font-size: 2.1rem; }
.club-hero .where { color: var(--muted); font-size: .9rem; }
.club-mono { display: inline-grid; place-items: center; border-radius: 50%; background: var(--c, #39A96B); color: #fff; font: 700 1rem var(--display); flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.12); letter-spacing: .02em; }
.club-logo { border-radius: 50%; object-fit: cover; background: #fff; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.club-hero .club-mono, .club-hero .club-logo { box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.club-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding-bottom: 2px; }
.club-tabs a { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.club-tabs a:hover { color: #fff; }
.club-tabs a.on { background: var(--club, var(--green-2)); border-color: var(--club, var(--green-2)); color: var(--on-accent); }
.cond { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cond-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(34,229,132,.2); display: inline-block; }
.cond-dot.warn { background: var(--orange); box-shadow: 0 0 0 4px rgba(232,160,74,.2); }
.cond-dot.bad { background: var(--red); box-shadow: 0 0 0 4px rgba(224,100,100,.2); }
.date-block { flex: none; width: 56px; text-align: center; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); padding: 6px 0; }
.date-block .m { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--flag); }
.date-block .d { font: 800 1.35rem/1.1 var(--num); }
.post { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post h3 { margin: 0 0 4px; font-size: 1.02rem; }
.post p { margin: 0; color: #C9D6EA; font-size: .94rem; white-space: pre-line; }
.post .meta { color: var(--muted); font-size: .78rem; margin-top: 6px; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.person .grow { min-width: 0; flex: 1; }
.person .nm { font-weight: 700; color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; background: var(--bg-2); color: var(--flag); border: 1px solid var(--line); flex: none; }
.avatar-lg { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font: 800 1.6rem var(--num); background: linear-gradient(135deg, var(--flag), var(--green-2)); color: #1c1500; flex: none; }
.cal-day { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cal-day:last-child { border-bottom: 0; }
.cal-day .items { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cal-item { display: flex; gap: 10px; align-items: center; font-size: .93rem; }
.cal-item .tm { color: var(--muted); width: 70px; flex: none; font-variant-numeric: tabular-nums; }
.lb td.pos { font: 800 1rem var(--num); color: var(--flag); width: 40px; }
.lb tr.me td { background: rgba(34,229,132,.1); }

/* activity, insights, strokes gained */
.activity li .when { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.insight { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--sky); }
.insight.good { border-left-color: var(--green-2); }
.insight.work { border-left-color: var(--flag); }
.insight .t { font-weight: 800; margin-bottom: 3px; }
.insight .x { color: #C9D6EA; font-size: .92rem; }
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sg-row { display: grid; grid-template-columns: 140px 1fr 56px; gap: 12px; align-items: center; padding: 7px 0; }
.sg-track { position: relative; height: 12px; background: var(--bg-2); border-radius: 99px; }
.sg-track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: rgba(255,255,255,.25); }
.sg-bar { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.sg-bar.pos { left: 50%; background: var(--green-2); }
.sg-bar.neg { right: 50%; background: var(--red); }
.sg-val { text-align: right; font: 800 .95rem var(--num); }
.sg-val.pos { color: #5CF0A6; } .sg-val.neg { color: #F0A0A0; }
@media (max-width: 560px) { .sg-row { grid-template-columns: 100px 1fr 46px; gap: 8px; font-size: .88rem; } }

/* messages */
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 4px 2px 10px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); font-size: .94rem; }
.bubble.me { align-self: flex-end; background: var(--green-2); border-color: transparent; color: var(--on-accent); }
.bubble .tm { display: block; font-size: .7rem; opacity: .7; margin-top: 3px; }
.unread-dot { min-width: 20px; height: 20px; border-radius: 10px; background: var(--flag); color: #2a1f00; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }

/* profile */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* sign-in pages: the course from above, washed dark */
.auth-body { background: #060D1A center / cover no-repeat; background-image: linear-gradient(rgba(8,16,30,.5), rgba(8,16,30,.78)), var(--photo, none); }
.auth-card { background: rgba(12,23,41,.96); border: 1px solid var(--line); }
.auth-card .brand-word { color: #fff; }
.auth-card .tagline { text-align: center; font-family: var(--display); font-style: italic; color: var(--flag); margin: -2px 0 4px; font-size: 1.05rem; }
.legal-top { background: #060D1A; }

/* phones: logo mark only, the club switcher takes the room, Profile lives in the tab bar */
@media (max-width: 760px) {
  body:not(.club-body) .topbar-inner { gap: 8px; }
  body:not(.club-body) .topbar .brand-word, body:not(.club-body) .topbar .avatar { display: none; }
  body:not(.club-body) .club-switch { flex: 1; min-width: 0; max-width: none; }
  body:not(.club-body) .club-switch select { max-width: none; flex: 1; min-width: 0; }
  body:not(.club-body) .bell:first-of-type { margin-left: 0; }
  .bell { padding: 6px 4px; }
}

/* club tabs wrap onto a second line instead of running off the edge */
.club-tabs { flex-wrap: wrap; overflow: visible; }
.btn-row { align-items: center; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(34,229,132,.14); border: 1px solid rgba(34,229,132,.35); color: #7CF5B8; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.status-chip.off { background: rgba(224,100,100,.12); border-color: rgba(224,100,100,.35); color: #F0A0A0; }
.status-chip.off .cond-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(224,100,100,.2); }

/* club switcher: a search box with a suggestion panel */
.club-switch { position: relative; flex: 0 1 300px; max-width: 300px; padding: 3px 10px 3px 3px; cursor: text; transition: border-color .15s, background .15s; }
.club-switch:hover, .club-switch.open { border-color: var(--green-2); background: var(--card); }
.club-switch .cs-input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 5px 2px; color: #fff; font: 600 .9rem var(--font); text-overflow: ellipsis; outline: 0; box-shadow: none; }
.club-switch .cs-input:focus { outline: 0; box-shadow: none; }
.cs-caret { color: var(--muted); flex: none; cursor: pointer; transition: transform .15s; }
.club-switch.open .cs-caret { transform: rotate(180deg); }
.cs-logo { display: flex; }
.cs-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 360px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; background: #0F1C33; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 8px; z-index: 80; }
.cs-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--flag); padding: 8px 10px 4px; }
.cs-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: #fff; }
.cs-item:hover, .cs-item.hl { background: rgba(34,229,132,.16); color: #fff; }
.cs-item.current { background: rgba(255,255,255,.04); }
.cs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-txt b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-txt small { color: var(--muted); font-size: .78rem; }
.cs-check { color: var(--green-2); font-weight: 800; }
.cs-add { font-size: .78rem; font-weight: 700; color: #5CF0A6; }
.cs-empty { padding: 10px; color: var(--muted); font-size: .88rem; }
.cs-more { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
@media (max-width: 760px) { .cs-panel { position: fixed; top: 62px; left: 12px; right: 12px; width: auto; } }

/* menu photos */
.menu-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); }
.menu-thumb.empty { font-size: .62rem; color: var(--muted); text-align: center; line-height: 1.1; }
.photo-pick { display: grid; place-items: center; height: 150px; border: 2px dashed var(--line); border-radius: 14px; background: var(--bg-2); cursor: pointer; overflow: hidden; text-align: center; color: var(--muted); font-weight: 600; }
.photo-pick:hover { border-color: var(--green-2); }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.menu-item .mi-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.seg-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-2); color: #fff; cursor: pointer; font: inherit; }
.choice span { color: var(--muted); font-size: .86rem; }
.choice.on { border-color: var(--green-2); background: rgba(34,229,132,.12); }
.choice.on b::before { content: "✓ "; color: var(--green-2); }
@media (max-width: 640px) { .seg-choice { grid-template-columns: 1fr; } }

/* food orders */
.mi-price { font-weight: 800; margin-top: 4px; }
.order-live { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; border-left: 4px solid var(--flag); }
.code-box { flex: none; width: 128px; text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.code-box b { font: 800 2.2rem/1.1 var(--num); letter-spacing: .12em; color: var(--flag); }
.code-box small { color: var(--muted); font-size: .72rem; }
.deliver-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-sm { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg-2); cursor: pointer; font-weight: 600; font-size: .92rem; }
.choice-sm:has(input:checked) { border-color: var(--green-2); background: rgba(34,229,132,.12); }
.choice-sm input { accent-color: var(--green-2); }
.where-box { padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 12px; }
.where-form { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 8px; }
.code-check { display: flex; gap: 6px; align-items: center; }
.code-check input { width: 78px !important; text-align: center; letter-spacing: .2em; font-weight: 800; padding: 6px 8px !important; }
.loc-line { font-size: .82rem; margin: 4px 0; }
.loc-line.wait { color: var(--orange); font-weight: 700; }

/* course editor drawing mode */
#map.drawing, #map.drawing .leaflet-interactive { cursor: crosshair !important; }
#map.drawing { outline: 3px solid var(--flag); outline-offset: -3px; }
.map-tools button.finish { background: var(--green-2); color: var(--on-accent); }

/* swing studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }
.studio { padding: 12px; }
.studio-stage { position: relative; margin: 0 auto; width: 100%; aspect-ratio: 16 / 9; background: #03060D; border-radius: 12px; overflow: hidden; }
.studio-stage video, .studio-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-stage canvas { cursor: crosshair; }
.stage-msg { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 90%; background: rgba(8,16,30,.9); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: .86rem; text-align: center; pointer-events: none; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font: 800 5rem var(--num); color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.6); pointer-events: none; }
.countdown.rec { place-items: start end; padding: 14px 18px; font-size: 1rem; color: #ff4d4d; }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.12); }
.progress span { display: block; height: 100%; width: 0; background: var(--flag); transition: width .15s; }
.studio-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.studio-bar input[type=range] { flex: 1; min-width: 120px; accent-color: var(--flag); }
.studio-bar select { width: auto; padding: 6px 10px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.metric { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border-left: 4px solid var(--sky); margin-bottom: 8px; }
.metric.good { border-left-color: var(--green-2); } .metric.work { border-left-color: var(--flag); } .metric.bad { border-left-color: var(--red); }
.metric .mk { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.metric .mv { font: 800 1.4rem var(--num); }
.metric .mt { font-size: .86rem; color: #C9D6EA; }
.tips { padding-left: 18px; margin: 0; } .tips li { margin-bottom: 6px; }
.swing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.swing-tile { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); color: #fff; }
.swing-tile:hover { border-color: var(--green-2); color: #fff; }
.swing-tile .th { position: relative; aspect-ratio: 16 / 10; background: #03060D; display: block; }
.swing-tile .th img { width: 100%; height: 100%; object-fit: cover; }
.swing-tile .th .pill { position: absolute; left: 8px; top: 8px; }
.swing-tile .tx { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.swing-tile .tx small { font-size: .78rem; color: var(--muted); }

.swing-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #fff; background: linear-gradient(90deg, rgba(200,245,60,.14), var(--card) 60%); }
.swing-banner:hover { color: #fff; border-color: var(--flag); }
.swing-banner b { flex: 1; min-width: 220px; }
.cs-item[hidden], .cs-label[hidden] { display: none; }

/* anything marked hidden stays hidden, whatever its own display style */
[hidden] { display: none !important; }

/* club tabs: compact enough for one line on a laptop screen (they still wrap on phones) */
.club-tabs { gap: 4px; }
.club-tabs a { padding: 7px 10px; font-size: .86rem; }
.cal-item .tm { white-space: nowrap; width: 66px; font-size: .86rem; }

/* play: "on to the next hole" message */
.hole-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; z-index: 600; display: flex; gap: 12px; align-items: center; background: rgba(8,16,30,.95); color: #fff; border: 1px solid var(--flag); border-radius: 99px; padding: 8px 10px 8px 16px; font-size: .88rem; font-weight: 600; transition: all .25s; max-width: 92%; }
.hole-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hole-toast button { background: var(--flag); color: #2a1f00; border: 0; border-radius: 99px; padding: 5px 12px; font-weight: 800; cursor: pointer; }

/* tee sheet */
.ts-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 900px) { .ts-grid { grid-template-columns: minmax(0, 1fr); } }
.ts-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ts-ctl { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
a.ts-ctl { min-width: 40px; padding: 0 14px; font-size: .95rem; }
.ts-date { width: 170px !important; padding: 0 12px !important; }
.ts-filter { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--muted); }
.ts-filter b { color: #fff; }
.ts-card { padding: 4px 10px; }
.sheet td, .sheet th { vertical-align: middle; padding: 6px 8px; }
.sheet .time { width: 84px; }
.slot-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
.slot-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin: 0; padding: 3px 4px 3px 10px; min-height: 32px; }
.slot-chip .inline-form { display: inline-flex; }
.chip-btn { padding: 3px 9px !important; font-size: .78rem !important; }
.open-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 12px; border-radius: 8px; border: 1.5px dashed rgba(34,229,132,.6); background: rgba(34,229,132,.08); color: #7CF5B8; font: 600 .82rem var(--font); cursor: pointer; white-space: nowrap; }
.open-chip:hover { background: rgba(34,229,132,.2); border-style: solid; }
.open-chip .seats { display: inline-flex; gap: 3px; }
.open-chip .seats i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #7CF5B8; }
.ts-card .ts-bar { padding: 8px 0 10px; margin: 0 0 4px; border-bottom: 1px solid var(--line); }
.ts-grid aside .row > .field { min-width: 0; }

/* kitchen queue: food and drinks in their own colored groups */
.og { border-radius: 10px; padding: 7px 10px; margin: 7px 0; border-left: 4px solid; }
.og ul { margin: 4px 0 0; padding-left: 4px; list-style: none; font-size: .9rem; }
.og li { padding: 2px 0; }
.og-h { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.og-h span { margin-left: auto; font-size: .78rem; letter-spacing: 0; opacity: .85; }
.og-food { background: rgba(232,160,74,.12); border-color: #E8A04A; }
.og-food .og-h { color: #F2BE7E; }
.og-drink { background: rgba(46,168,255,.12); border-color: #2EA8FF; }
.og-drink .og-h { color: #9CCBF2; }

/* rates: each rate in its own lighter card */
.rate-card { background: #101E36; border: 1px solid #2A4470; border-radius: 14px; padding: 14px 16px 4px; margin-bottom: 12px; }
.rate-card.off { opacity: .6; }
.rate-row1 { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.rate-row2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto auto; gap: 12px; align-items: end; }
.rate-card .field { margin-bottom: 10px; min-width: 0; }
.rate-btn { height: 42px; margin-bottom: 10px; min-width: 96px; }
.rate-on { display: flex; align-items: center; gap: 8px; height: 42px; margin-bottom: 10px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid #2A4470; font-weight: 700; cursor: pointer; }
.rate-on input { width: 18px; height: 18px; accent-color: var(--green-2); }
.rate-del { color: #F0A0A0; border-color: rgba(224,100,100,.45); }
.rate-del:hover { background: rgba(224,100,100,.12); border-color: var(--red); color: #fff; }
@media (max-width: 760px) { .rate-row1 { grid-template-columns: 1fr 1fr; } .rate-row1 .field:first-child { grid-column: 1 / -1; } .rate-row2 { grid-template-columns: 1fr 1fr; } }

/* lighter text boxes so they stand out from the cards */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select, textarea {
  background: #13223B; border: 1px solid #2A4470; color: #fff; }
input:not([type]):hover, input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=number]:hover, input[type=date]:hover, input[type=time]:hover, input[type=tel]:hover, input[type=search]:hover, select:hover, textarea:hover { border-color: #3E62A0; }
input:focus, select:focus, textarea:focus { background: #13223B; border-color: var(--green-2); outline: 2px solid rgba(34,229,132,.45); }
input::placeholder, textarea::placeholder { color: #A9C2BA; }
select option { background: #0F1C33; color: #fff; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .8; }
.club-switch .cs-input, .club-switch .cs-input:hover, .club-switch .cs-input:focus { background: transparent; border: 0; outline: 0; }

/* course editor: yardages to each hazard */
.haz-item { padding: 6px 0; border-bottom: 1px solid var(--line); }
.haz-item .haz { padding: 2px 0; }
.haz-yds { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-left: 22px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.haz-yds span { display: inline-flex; align-items: center; gap: 4px; }
.haz-yds i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); }
#ceGrid aside .row { flex-wrap: nowrap; }
#ceGrid aside .row > .field { min-width: 0; }

/* slopes layer */
.slope-shade { mix-blend-mode: multiply; }
.slope-arrow { background: none; border: 0; }
.slope-arrow svg { display: block; }
.leaflet-tooltip.contour-label { background: rgba(8,16,30,.75); border: 0; box-shadow: none; color: #fff; font: 600 10px var(--font); padding: 1px 5px; border-radius: 6px; }
.leaflet-tooltip.contour-label::before { display: none; }
.slope-legend { position: absolute; right: 12px; top: 12px; z-index: 500; background: rgba(8,16,30,.9); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: .74rem; color: #fff; display: flex; flex-direction: column; gap: 3px; }
.slope-legend span { display: flex; align-items: center; gap: 6px; }
.slope-legend i { width: 14px; height: 4px; border-radius: 2px; }
.slope-legend small { color: var(--muted); font-size: .68rem; }
.map-tools button.on { background: var(--flag); color: #2a1f00; }
.hole-elev { font-size: .78rem; color: var(--flag); margin-top: 1px; }
.slope-legend .zoom-hint { display: none; color: var(--flag); }
.slopes-far ~ .slope-legend .zoom-hint { display: block; }

/* ---------- green slope view: mode selector, scale, putt reading ---------- */
.green-panel { position: absolute; right: 12px; top: 12px; z-index: 520; width: 236px; max-width: calc(100% - 140px); background: rgba(8,16,30, .92); border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.gv-modes { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; gap: 2px; }
.gv-modes button { border: 0; background: transparent; color: var(--muted); font: 700 .74rem var(--font); padding: 6px 2px; border-radius: 8px; cursor: pointer; }
.gv-modes button.on { background: var(--green-2); color: var(--on-accent); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.gv-scale { margin: 8px 2px 2px; }
.gv-bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #2EC4B6 0%, #8EE07A 25%, #F2D45C 50%, #F59A45 75%, #E5534B 100%); }
.gv-ticks { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.gv-key { font-size: .7rem; color: var(--muted); margin: 7px 2px 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.gv-line { display: inline-block; width: 16px; height: 2px; background: #B4F5DA; border-radius: 2px; }
.gv-line.terrain { background: rgba(255,255,255,.55); }
.gv-tip { font-size: .7rem; color: var(--flag); margin: 6px 2px 0; }
.gv-overlay { image-rendering: auto; }
.break-arrow, .break-dot { background: none; border: 0; }
.break-arrow svg { display: block; }
.break-dot { width: 6px !important; height: 6px !important; border-radius: 50%; background: #2EC4B6; box-shadow: 0 0 0 2px #060D1A; }
.gr-ball { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #060D1A, 0 2px 6px rgba(0,0,0,.5); }
.gr-cup { width: 20px; height: 20px; border-radius: 50%; background: #060D1A; border: 3px solid var(--flag); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.green-read { position: absolute; left: 12px; bottom: 54px; z-index: 520; width: 320px; max-width: calc(100% - 24px); background: rgba(8,16,30, .95); border: 1px solid var(--line); border-left: 4px solid var(--green-2); border-radius: 14px; padding: 10px 12px; color: #fff; font-size: .84rem; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.gr-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; margin-bottom: 4px; flex-wrap: wrap; }
.gr-pill { font-size: .66rem; font-weight: 800; color: #060D1A; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.gr-row { margin: 2px 0; }
.gr-sub { color: var(--muted); font-size: .76rem; margin-top: 4px; }
.gr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.gr-grid > div { background: rgba(255,255,255,.05); border-radius: 10px; padding: 6px 7px; display: flex; flex-direction: column; }
.gr-grid small { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.gr-grid b { font: 800 1.05rem var(--num); }
.gr-grid span { font-size: .7rem; color: #D8E4F5; line-height: 1.25; }
.gr-caddy { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(34,229,132,.22), rgba(34,229,132,.08)); font-size: .82rem; }
.gr-caddy > b:first-child { color: var(--flag); margin-right: 4px; }
.gr-caddy small { display: block; color: var(--muted); font-size: .68rem; margin-top: 3px; }
.gr-btns { display: flex; justify-content: flex-end; margin-top: 6px; }
.gr-btns button { background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #fff; border-radius: 8px; padding: 4px 10px; font: 600 .74rem var(--font); cursor: pointer; }
@media (max-width: 760px) {
  .green-panel { width: 200px; right: 8px; top: 8px; }
  .green-read { left: 8px; right: 8px; width: auto; bottom: 46px; }
}
@media (max-width: 760px) {
  .green-panel { width: 176px; padding: 6px; border-radius: 12px; }
  .green-panel .gv-key, .green-panel .gv-tip { display: none; }
  .gv-modes button { font-size: .68rem; padding: 5px 1px; }
  .gv-scale { margin-top: 6px; }
}

/* AI caddy card on Play: lighter so it stands out from the panel */
.caddy { background: linear-gradient(135deg, #3A7D62 0%, #2E6A53 100%); border: 1px solid #58A483; box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12); }
.caddy .club { color: #FFE39A; }
.caddy .why, .caddy .alt, .caddy .small { color: #EAF6F0; opacity: 1; }
.caddy-locked { background: #132440; border: 1px solid #2A4470; }

/* group games + course alerts */
.game-box { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(200,245,60,.08); border: 1px solid rgba(200,245,60,.25); }
.game-h { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--flag); margin-bottom: 4px; }
.game-line { margin: 4px 0 0; font-weight: 700; font-size: .9rem; }
.wolf-pick { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(34,229,132,.14); font-size: .86rem; }
.course-alert { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); z-index: 650; width: min(92%, 420px); display: flex; gap: 10px; align-items: flex-start; background: #1F4F78; color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.45); font-size: .88rem; border-left: 5px solid #2EA8FF; }
.course-alert b { white-space: nowrap; }
.course-alert span { flex: 1; }
.course-alert button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1rem; }
.course-alert.pace { background: #5C4612; border-left-color: var(--flag); }
.course-alert.weather { background: #6B1F1F; border-left-color: #FF6B6B; }

.pace-pin { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; color: #fff; font: 800 .72rem var(--font); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); white-space: nowrap; }
.leaflet-tooltip.hole-num-label { background: rgba(8,16,30,.85); color: #fff; border: 0; box-shadow: none; font: 800 11px var(--font); padding: 1px 6px; border-radius: 6px; }
.leaflet-tooltip.hole-num-label::before { display: none; }
.shop-code { font: 800 .95rem var(--num); letter-spacing: .12em; color: var(--flag); background: var(--bg-2); border: 1px dashed var(--flag); padding: 4px 10px; border-radius: 8px; }
.shop-item { color: #fff; }
.shop-item:hover { border-color: var(--green-2); color: #fff; }

/* ---------- dropdowns: our own arrow and feel instead of the browser's ---------- */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 38px !important; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B6E8CB' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 13px center !important; background-size: 14px !important;
  border-radius: 10px; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
select:hover { border-color: #3E62A0; }
select:focus { box-shadow: 0 0 0 3px rgba(34,229,132,.3); }
select::-ms-expand { display: none; }

/* ---------- date picker button + calendar ---------- */
.gp-date-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border-radius: 10px; background: #13223B; border: 1px solid #2A4470; color: #fff; font: 600 .92rem var(--font); cursor: pointer; white-space: nowrap; width: 100%; text-align: left; }
.gp-date-btn:hover, .gp-date-btn.open { border-color: var(--green-2); background: #13223B; }
.gp-date-btn svg { color: #B6E8CB; flex: none; }
.gp-date-btn.ts-ctl { width: auto; height: 40px; min-height: 40px; }
.gp-cal { position: absolute; z-index: 2000; width: 284px; padding: 12px; border-radius: 16px; background: #0F1C33; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.5); color: #fff; font-family: var(--font); }
.gp-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gp-cal-h b { font-family: var(--display); font-size: 1.05rem; }
.gp-cal-h button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; font-size: 1.1rem; cursor: pointer; }
.gp-cal-h button:hover { border-color: var(--green-2); }
.gp-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.gp-cal-g .dn { text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.gp-cal-g button { aspect-ratio: 1; border: 0; border-radius: 9px; background: transparent; color: #fff; font: 600 .86rem var(--font); cursor: pointer; }
.gp-cal-g button.we { color: #CFE7DB; }
.gp-cal-g button:hover { background: rgba(34,229,132,.2); }
.gp-cal-g button.today { box-shadow: inset 0 0 0 1.5px var(--flag); }
.gp-cal-g button.sel { background: var(--green-2); color: var(--on-accent); }
.gp-cal-g button:disabled { opacity: .3; cursor: default; background: none; }
.gp-cal-f { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.gp-cal-f button { background: none; border: 0; color: #5CF0A6; font: 700 .82rem var(--font); cursor: pointer; padding: 4px 6px; }

/* ---------- club portal menu: wrap onto two lines so every page shows ---------- */
.club-nav { flex-wrap: wrap; overflow: visible; row-gap: 4px; padding-bottom: 8px; }
.club-nav a { padding: 6px 11px; font-size: .88rem; }

/* booking filter: chips instead of dropdowns */
.book-filter { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.bf-group { display: flex; flex-direction: column; gap: 6px; }
.bf-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--flag); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1.5px solid var(--line); color: #D8E4F5; font-weight: 700; font-size: .88rem; white-space: nowrap; transition: all .15s; }
.chip small { font-weight: 600; font-size: .72rem; color: var(--muted); }
.chip:hover { border-color: var(--green-2); color: #fff; }
.chip.on { background: var(--green-2); border-color: var(--green-2); color: var(--on-accent); box-shadow: 0 4px 14px rgba(34,229,132,.35); }
.chip.on small { color: rgba(255,255,255,.85); }
.seg-chips .chip { min-width: 52px; justify-content: center; }
.preview-note { background: rgba(200,245,60,.08); border-left: 4px solid var(--flag); display: flex; flex-direction: column; gap: 2px; }
.preview-note span { font-size: .8rem; color: var(--muted); }
tr.hole-link { cursor: pointer; }
tr.hole-link:hover td { background: rgba(34,229,132,.1); }
.hole-go { font-size: .74rem; font-weight: 700; color: #5CF0A6; margin-left: 4px; }

/* Play: course picker */
.cp-search { display: flex; gap: 8px; margin-bottom: 8px; }
.cp-search input { flex: 1; min-width: 0; }
.cp-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding-right: 2px; }
.cp-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.cp-item:hover { border-color: var(--green-2); }
.cp-item.on { border-color: var(--green); background: rgba(34,229,132, .14); box-shadow: inset 3px 0 0 var(--green); }
.cp-item b { font-weight: 600; font-size: .93rem; }
.cp-item small { color: var(--muted); font-size: .78rem; }
.cp-empty { padding: 12px; color: var(--muted); font-size: .88rem; }
.pill.gps { background: rgba(200,245,60, .16); color: var(--flag); }

/* Inside the phone app (opened from app-web.php): the app has its own tabs and header */
body.in-app:not(.in-tablet) .topbar, body.in-app:not(.in-tablet) .tabbar, body.in-app .site-foot, body.in-app .local-bar { display: none !important; }   /* tablets keep the website header and menus */
body.in-app:not(.in-tablet) .page { padding-top: 12px; padding-bottom: 20px; min-height: 100vh; }
body.in-app:not(.in-tablet) .play { height: 100vh; }
@media (max-width: 760px) { body.in-app { padding-bottom: 0 !important; } body.in-app .play { height: auto; } }

/* Language picker (includes/i18n.php lang_switch) */
.lang-switch { display: inline-flex; align-items: center; margin: 0; }
.lang-switch label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; cursor: pointer; }
.lang-switch select { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 3px 6px; font: inherit; font-size: .82rem; width: auto; min-height: 0; }
.lang-switch select option { background: var(--card); color: var(--ink); }
.site-foot .foot-lang { margin-left: auto; }
.auth-lang { position: fixed; top: 12px; right: 14px; z-index: 30; background: rgba(6,13,26,.78); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; backdrop-filter: blur(6px); }
body.in-app .foot-lang { display: none; }

/* Club setup wizard (club/setup.php) */
.wiz-bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; margin: 4px 0 18px; }
.wiz-bar span { display: block; height: 100%; background: var(--green-2); border-radius: 6px; transition: width .3s; }
.wiz { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 12px; }
.wiz-steps a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.wiz-steps a:hover { background: var(--bg-2); }
.wiz-steps li.on a { background: var(--card); box-shadow: inset 3px 0 0 var(--green-2); }
.wiz-steps small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.wiz-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 2px solid var(--line); color: var(--muted); }
.wiz-steps li.done .wiz-num { background: var(--green-2); border-color: var(--green-2); color: var(--on-accent); }
.wiz-steps li.skipped .wiz-num { border-style: dashed; }
.wiz-steps li.on .wiz-num { border-color: var(--flag); color: var(--flag); }
.wiz-steps li.on.done .wiz-num { color: #fff; }
.wiz-card h2 { margin-top: 4px; }
.wiz-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wiz-actions .grow { flex: 1; }
.wiz-rates { display: grid; gap: 8px; }
.wiz-rate-head, .wiz-rate { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.wiz-rate-head span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.wiz-rate .field { margin: 0; }
.choice-sm { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg-2); cursor: pointer; font-size: .92rem; }
.choice-sm:has(input:checked) { border-color: var(--green-2); background: rgba(34,229,132,.12); }
.choice-sm input { accent-color: var(--green-2); width: 17px; height: 17px; }
.wiz-share { display: flex; gap: 10px; margin: 12px 0; }
.wiz-share input { flex: 1; }
.wiz-qr { display: flex; gap: 16px; align-items: center; margin: 12px 0; }
.wiz-qr #qr { background: #fff; padding: 10px; border-radius: 12px; line-height: 0; }
.wiz-promo { display: flex; gap: 18px; align-items: center; border-color: var(--flag); margin-bottom: 16px; }
.wiz-promo h2 { margin: 0 0 2px; }
.wiz-promo .wiz-bar { margin: 8px 0 0; max-width: 420px; }
@media (max-width: 860px) {
  .wiz { grid-template-columns: minmax(0, 1fr); }
  .wiz-steps { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .wiz-steps a { padding: 6px; } .wiz-steps a > span:last-child { display: none; }
  .wiz-rate-head { display: none; } .wiz-rate { grid-template-columns: 1fr 1fr 1fr; } .wiz-rate b { grid-column: 1 / -1; }
  .wiz-promo { flex-direction: column; align-items: stretch; }
}

/* Walk-throughs (assets/js/tour.js) */
.tour-layer { position: fixed; inset: 0; z-index: 1000; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(5,18,18,.72); outline: 2px solid var(--flag); outline-offset: 2px; transition: all .25s ease; pointer-events: none; }
.tour-tip { position: fixed; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.45); width: 360px; transition: top .25s ease, left .25s ease; }
.tour-tip h3 { margin: 2px 0 6px; font-family: var(--display); font-size: 1.15rem; }
.tour-tip p { margin: 0 0 12px; color: #D8E2DE; font-size: .92rem; line-height: 1.45; }
.tour-count { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--flag); }
.tour-btns { display: flex; gap: 8px; align-items: center; }
.tour-btns span { flex: 1; }
.tour-skip { background: none; border: 0; color: var(--muted); font: inherit; font-size: .84rem; cursor: pointer; padding: 4px 0; }
.tour-skip:empty { display: none; }

/* Help pages */
.help-search { margin: 0 0 14px; max-width: 420px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.help-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.help-card h2 { margin: 0; font-size: 1.1rem; }
.help-card > .btn { align-self: flex-start; margin-top: auto; }
.help-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.help-card details summary { cursor: pointer; color: var(--green-2); font-size: .86rem; font-weight: 600; margin-bottom: 4px; }
.help-steps { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 8px; }
.help-steps li span { display: block; color: var(--muted); font-size: .86rem; }
.help-reset { margin-top: 16px; }

/* two cards side by side on computers, on top of each other on phones (messages, news, events) */
.g-split { grid-template-columns: minmax(0, var(--split-a, 1fr)) minmax(0, var(--split, 1.4fr)); align-items: start; }
@media (max-width: 760px) {
  .g-split { grid-template-columns: minmax(0, 1fr); }
  /* messages: an open conversation comes first with a way back; with none open, just the list */
  .msg-split.has-thread .msg-list { display: none; }
  .msg-split:not(.has-thread) .msg-thread { display: none; }
  .msg-split .thread { max-height: calc(100vh - 260px); }
}
.msg-back { display: none; }
@media (max-width: 760px) { .msg-back { display: inline-block; margin-bottom: 6px; } }

/* swing studio on phones and in the app: the video is the main thing, as big as the screen allows */
@media (max-width: 760px) {
  .studio-grid { --stage-h: 76vh; gap: 10px; }
  body.in-app .studio-grid { --stage-h: 80vh; }
  .studio { padding: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .studio-stage { aspect-ratio: 3 / 4; max-height: var(--stage-h); border-radius: 14px; box-shadow: 0 0 0 1px var(--glass-line), 0 0 30px -10px rgba(46,168,255,.35); }
  .studio-bar { gap: 6px; }
  .studio-bar .btn { flex: 1 1 auto; justify-content: center; }
  .studio-bar #capHint { flex-basis: 100%; text-align: center; }
  .page-head:has(+ .studio-grid) h1 { font-size: 1.3rem; }
  .page-head:has(+ .studio-grid) p { font-size: .82rem; margin-top: 2px; }
  .studio-grid + * { margin-top: 0; }
}

/* ---------- date & time pickers (datepicker.js): rebrand glass, green selection, sheet from the bottom on phones ---------- */
.gp-date-btn { background: rgba(19,34,59,.9); border-color: var(--glass-line); transition: border-color .15s, box-shadow .15s; }
.gp-date-btn:hover, .gp-date-btn.open { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(46,168,255,.12); }
.gp-date-btn svg { color: var(--green-2); }
.gp-date-btn.empty span { color: var(--muted); font-weight: 500; }
.gp-date-btn span { overflow: hidden; text-overflow: ellipsis; }
.gp-cal { background: linear-gradient(180deg, rgba(17,32,56,.98), rgba(8,16,30,.98)); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 60px -12px rgba(0,0,0,.8), 0 0 40px -16px rgba(46,168,255,.45); }
.gp-cal-h b { font-size: 1rem; text-transform: capitalize; }
.gp-cal-h button { border-color: var(--glass-line); }
.gp-cal-h button:hover { border-color: var(--sky); background: rgba(46,168,255,.12); }
.gp-cal-g button.today { box-shadow: inset 0 0 0 1.5px var(--sky); }
.gp-cal-g button.sel { background: linear-gradient(135deg, #3CF59A, #12C873); box-shadow: 0 6px 16px -8px rgba(34,229,132,.9); }
.gp-cal-g button.we { color: #BFD6F5; }
.gp-cal-f button { color: var(--green-2); }
.gp-cal-f .gp-done { background: linear-gradient(135deg, #3CF59A, #12C873); color: var(--on-accent); border-radius: 10px; padding: 8px 18px; }
/* the clock */
.gp-cal-time { width: 300px; }
.gp-time-show { text-align: center; padding: 2px 0 8px; }
.gp-time-show b { font: 800 1.9rem var(--num); letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #BFE3FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gp-time-k { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 2px 5px; }
.gp-time-g { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.gp-time-g.h24 { grid-template-columns: repeat(8, 1fr); }
.gp-time-g button { height: 38px; border: 1px solid var(--glass-line); border-radius: 10px; background: rgba(120,170,255,.05); color: #fff; font: 700 .9rem var(--num); cursor: pointer; }
.gp-time-g button:hover { border-color: var(--sky); background: rgba(46,168,255,.12); }
.gp-time-g button.sel { background: linear-gradient(135deg, #3CF59A, #12C873); border-color: transparent; color: var(--on-accent); box-shadow: 0 6px 16px -8px rgba(34,229,132,.9); }
.gp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; padding: 3px; border-radius: 12px; background: rgba(5,10,20,.6); border: 1px solid var(--glass-line); }
.gp-seg button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 800 .85rem var(--font); letter-spacing: .06em; cursor: pointer; }
.gp-seg button.sel { background: rgba(46,168,255,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(46,168,255,.6); }
/* phones and the app: a sheet that slides up */
.gp-pick-scrim { position: fixed; inset: 0; z-index: 2999; background: rgba(2,6,14,.6); opacity: 0; transition: opacity .2s; }
.gp-pick-scrim.show { opacity: 1; }
.gp-cal.gp-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 3000; width: auto; max-width: 520px; margin: 0 auto; border-radius: 22px 22px 0 0; border-bottom: 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); max-height: 88vh; overflow-y: auto; }
.gp-cal.gp-sheet.show { transform: none; }
.gp-grab { width: 42px; height: 5px; border-radius: 3px; background: rgba(141,162,192,.4); margin: 2px auto 10px; }
.gp-sheet .gp-cal-g { gap: 5px; }
.gp-sheet .gp-cal-g button { font-size: 1rem; border-radius: 12px; }
.gp-sheet .gp-cal-h b { font-size: 1.15rem; }
.gp-sheet .gp-cal-h button { width: 40px; height: 40px; border-radius: 12px; }
.gp-sheet .gp-time-g button { height: 46px; font-size: 1.02rem; }
.gp-sheet .gp-cal-f button { font-size: .95rem; padding: 10px 12px; }
.gp-sheet .gp-cal-f .gp-done { padding: 11px 26px; }
html.gp-pick-lock, html.gp-pick-lock body { overflow: hidden; }

/* ---------- tee sheet: the time happening now, and the walk-in / edit pop-up ---------- */
.sheet tr.now td { background: rgba(46,168,255,.08); }
.sheet tr.now td.time { color: var(--sky); box-shadow: inset 3px 0 0 var(--sky); }
.sheet tr.now td.time::after { content: "NOW"; display: block; font-size: .6rem; letter-spacing: .14em; color: var(--sky); }
.ts-dlg { width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 18px; border-radius: 20px; color: var(--ink);
  background: linear-gradient(180deg, rgba(17,32,56,.99), rgba(8,16,30,.99)); border: 1px solid var(--glass-line); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 50px -18px rgba(46,168,255,.45); }
.ts-dlg::backdrop { background: rgba(2,6,14,.65); backdrop-filter: blur(3px); }
.ts-dlg .dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ts-dlg .dlg-head h3 { margin: 0; }
.ts-dlg .dlg-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--glass-line); background: rgba(120,170,255,.05); color: var(--muted); font-size: 1rem; cursor: pointer; }
.ts-dlg .dlg-label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(120,170,255,.06); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.stepper button:hover { border-color: var(--green-2); }
.stepper input { width: 76px; height: 52px; text-align: center; font: 800 1.6rem var(--num); padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.seat-pick { display: flex; gap: 8px; margin: 10px 0 12px; flex-wrap: wrap; }
.seat-pick button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(124,245,184,.6); background: transparent; cursor: pointer; padding: 0; }
.seat-pick button.on { background: var(--green-2); border-color: var(--green-2); box-shadow: 0 0 12px rgba(34,229,132,.5); }
.ts-dlg .dlg-check { margin: 12px 0 4px; font-weight: 600; }
.ts-dlg .dlg-foot { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ts-dlg .dlg-foot .btn:first-child { flex: 1; justify-content: center; }
.ts-dlg .dlg-del { margin-left: auto; }
@media (max-width: 760px) {
  .ts-dlg { box-sizing: border-box; margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .ts-dlg .dlg-foot .btn { min-height: 46px; }
  .ts-dlg .dlg-del { margin-left: 0; flex-basis: 100%; }
}
/* phones: a booking wraps onto two lines so Check in / Edit are always on screen */
@media (max-width: 760px) {
  .sheet .slot-line { flex-wrap: wrap; }
  .slot-chip { white-space: normal; flex-wrap: wrap; row-gap: 4px; padding: 6px 8px; max-width: 100%; }
  .slot-chip > b { flex-basis: auto; }
}

/* round page: green-in-regulation dots and the AI caddy review */
.gir-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 8px rgba(34,229,132,.6); }
.caddy-review .insights { display: grid; gap: 10px; }
.caddy-review .insight .rank { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: rgba(200,245,60,.16); color: var(--flag); font: 800 .78rem var(--num); vertical-align: 1px; }
.caddy-review .insight .drill { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(46,168,255,.08); border: 1px solid rgba(46,168,255,.2); font-size: .88rem; color: #C9D6EA; }
.caddy-review .insight .drill b { color: var(--sky); }

/* Play: ball tracer button and the GPS tags on the score tab */
.map-tools .trace-btn { background: linear-gradient(135deg, #3CF59A, #12C873) !important; color: var(--on-accent) !important; font-weight: 800 !important; box-shadow: 0 6px 18px -6px rgba(34,229,132,.9) !important; }
.auto-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(46,168,255,.16); color: #8CCBFF; font: 800 .62rem var(--font); letter-spacing: .1em; vertical-align: 1px; }

/* ---------- course map (course-map.js): full screen over any course search, or a page of its own ---------- */
.map-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cmap { position: fixed; inset: 0; z-index: 2500; display: flex; flex-direction: column; background: var(--bg); opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s; }
.cmap.show { opacity: 1; transform: none; }
.cmap.cmap-page { position: relative; inset: auto; z-index: 1; opacity: 1; transform: none; height: calc(100vh - 190px); min-height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-line); }
body.in-app .cmap.cmap-page { height: calc(100vh - 90px); }
.cmap-head h1 { font-size: 1.4rem; margin: 0 0 10px; }
.cmap-bar { display: flex; gap: 8px; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: rgba(5,10,20,.92); border-bottom: 1px solid var(--glass-line); }
.cmap-page .cmap-bar { padding-top: 10px; }
.cmap-bar .cmap-q { flex: 1; min-width: 0; height: 44px; }
.cmap-x, .cmap-near { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(120,170,255,.06); color: #fff; font-size: 1.05rem; cursor: pointer; }
.cmap-near.busy { animation: gp-spin 1s linear infinite; }
.cmap-map { flex: 1; position: relative; background: #0b1220; }
.cmap-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; }
.cmap-key { position: absolute; left: 12px; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 500; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 6px 10px; border-radius: 12px; background: rgba(5,10,20,.82); border: 1px solid var(--glass-line); font-size: .74rem; color: #C9D6EA; pointer-events: none; }
.cmap-page .cmap-key { top: 76px; }
.cmap-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.cmap-key .k-book { background: var(--green-2); } .cmap-key .k-gps { background: var(--sky); }
.cmap-key b { color: var(--muted); font-weight: 600; }
.cmap-pin svg path:first-child { stroke: #fff; stroke-width: 2; }
.cmap-pin.book svg path:first-child { fill: #12C873; } .cmap-pin.gps svg path:first-child { fill: #2EA8FF; }
.cmap-pin .pole { stroke: #fff; stroke-width: 1.6; fill: none; } .cmap-pin .flag { fill: #C8F53C; }
.cmap-pin { filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); transition: transform .15s; transform-origin: 50% 100%; }
.cmap-pin.on { transform: scale(1.3); }
.cmap-card { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 600; max-width: 520px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 14px;
  border-radius: 18px; background: linear-gradient(180deg, rgba(17,32,56,.98), rgba(8,16,30,.98)); border: 1px solid var(--glass-line); box-shadow: 0 20px 50px -14px rgba(0,0,0,.85); }
.cmap-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmap-card-t b { font-size: 1rem; }
.cmap-card-t > span { color: var(--muted); font-size: .84rem; }
.cmap-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cmap-tags i { font-style: normal; font-size: .7rem; }
.cmap-card .cmap-go { flex: none; }
@media (max-width: 520px) { .cmap-card { flex-direction: column; align-items: stretch; } .cmap-card .cmap-go { width: 100%; justify-content: center; } }
.cmap .leaflet-control-attribution { background: rgba(5,10,20,.7); color: #8DA2C0; font-size: 9px; }
.cmap .leaflet-control-attribution a { color: #8CCBFF; }
.cmap-cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(46,168,255,.9); color: #fff; font: 800 .9rem var(--num); box-shadow: 0 0 0 4px rgba(46,168,255,.3), 0 4px 12px rgba(0,0,0,.5); border: 2px solid #fff; }
.cmap-cluster.book { background: rgba(18,200,115,.95); box-shadow: 0 0 0 4px rgba(34,229,132,.3), 0 4px 12px rgba(0,0,0,.5); color: #03140B; }
@media (pointer: coarse), (max-width: 600px) { .cmap .leaflet-control-zoom { display: none; } }

/* Play: order food over the map (the round keeps tracking underneath) */
.map-tools .order-tool { background: linear-gradient(135deg, #FFD36B, #F5A623) !important; color: #2A1A00 !important; font-weight: 800 !important; box-shadow: 0 6px 18px -6px rgba(245,166,35,.9) !important; }
.play-order { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; background: var(--bg); }
.play-order[hidden] { display: none; }
.play-order .po-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: rgba(5,10,20,.95); border-bottom: 1px solid var(--glass-line); }
.play-order .po-head b { font-family: var(--display); font-size: 1.05rem; }
.play-order .po-head .muted { flex: 1; }
.play-order .po-head button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(120,170,255,.06); color: #fff; font-size: 1rem; cursor: pointer; }
.play-order iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }

/* in the app, the club portal's own menu is the app's ☰ menu */
body.in-app:not(.in-tablet) .club-nav { display: none !important; }
body.in-play .page-head h1 { display: none; }
body.in-play .page { padding-top: 6px; }

/* =========================================================================================================
   Site frame (includes/shell.php: golfer, club and admin menus): slim top header + collapsible sidebar grouped by department,
   full-width workspace. --side is the sidebar width (icons only when collapsed; slides in on narrow screens).
   ========================================================================================================= */
body.shell-body { --top: 60px; --side: 248px; }
body.shell-body.side-mini { --side: 72px; }
.ctop { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(5,10,20,.88); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--glass-line); }
.ctop::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(34,229,132,.5), rgba(46,168,255,.5), transparent); }
.ctop-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--glass-line); background: rgba(120,170,255,.05); color: #fff; cursor: pointer; }
.ctop-ico:hover { border-color: var(--sky); }
.ctop-brand { flex: none; }
.ctop-club { position: relative; flex: none; }
.ctop-club-btn { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 6px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(19,34,59,.8); color: #fff; font: 700 .92rem var(--font); cursor: pointer; max-width: 300px; }
.ctop-club-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctop-club-btn:disabled { cursor: default; opacity: 1; }
.ctop-club-btn:not(:disabled):hover { border-color: var(--sky); }
.ctop-club-btn svg { color: var(--muted); flex: none; }
.ctop-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 950; min-width: 280px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,32,56,.99), rgba(8,16,30,.99)); border: 1px solid var(--glass-line); box-shadow: 0 24px 60px -12px rgba(0,0,0,.85); }
.ctop-pop[hidden] { display: none; }
.ctop-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.ctop-pop a:hover, .ctop-pop a.on { background: rgba(46,168,255,.12); }
.ctop-pop a span { display: flex; flex-direction: column; min-width: 0; } .ctop-pop a small { color: var(--muted); font-weight: 500; }
.ctop-pop a svg { color: var(--green-2); }
.ctop-search { position: relative; flex: 1; min-width: 160px; max-width: 520px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px;
  border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(19,34,59,.7); color: var(--muted); }
.ctop-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(46,168,255,.12); }
.ctop-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; padding: 0; color: #fff; font-size: .9rem; }
.ctop-search kbd { flex: none; font: 600 .7rem var(--font); color: var(--muted); border: 1px solid var(--glass-line); border-radius: 6px; padding: 2px 6px; }
.ctop-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 950; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,32,56,.99), rgba(8,16,30,.99)); border: 1px solid var(--glass-line); box-shadow: 0 24px 60px -12px rgba(0,0,0,.85); }
.ctop-results[hidden] { display: none; }
.ctop-results .sr-h { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.ctop-results a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.ctop-results a small { color: var(--muted); }
.ctop-results a:hover, .ctop-results a.on { background: rgba(46,168,255,.14); }
.ctop-results .sr-none { padding: 14px 10px; color: var(--muted); }
.ctop-quick { display: flex; gap: 6px; flex: none; }
.ctop-quick-menu { position: relative; display: none; flex: none; }
.ctop-quick-menu .ctop-pop { left: auto; right: 0; min-width: 200px; }
.ctop .bell { flex: none; position: relative; }
.ctop-me { display: flex; align-items: center; gap: 10px; flex: none; }
.ctop-who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ctop-who b { font-size: .86rem; } .ctop-who small { font-size: .72rem; color: var(--muted); }
.ctop .me-menu .avatar { display: grid; }

.cside { position: fixed; top: var(--top); bottom: 0; left: 0; z-index: 800; width: var(--side); display: flex; flex-direction: column; padding: 12px 10px;
  overflow-y: auto; overflow-x: hidden; background: linear-gradient(180deg, rgba(8,16,30,.96), rgba(5,10,20,.98)); border-right: 1px solid var(--glass-line); transition: width .18s ease, transform .2s ease; }
.cside nav { display: flex; flex-direction: column; gap: 2px; }
.cside-h { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); padding: 14px 12px 6px; white-space: nowrap; }
.cside a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: #C9D6EA; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.cside a svg { flex: none; color: var(--muted); }
.cside a:hover { background: rgba(46,168,255,.1); color: #fff; } .cside a:hover svg { color: #fff; }
.cside a.on { background: linear-gradient(135deg, #3CF59A, #12C873); color: var(--on-accent); box-shadow: 0 8px 20px -10px rgba(34,229,132,.9); }
.cside a.on svg { color: var(--on-accent); }
.cside-player { margin-top: auto; border-top: 1px solid var(--glass-line); border-radius: 0 !important; padding-top: 14px !important; }
body.side-mini .cside span, body.side-mini .cside-h { display: none; }
body.side-mini .cside-h + a { margin-top: 10px; }
body.side-mini .cside a { justify-content: center; padding: 10px 0; }
.cside-scrim { position: fixed; inset: var(--top) 0 0 0; z-index: 790; background: rgba(2,6,14,.6); }
.cside-scrim[hidden] { display: none; }

body.shell-body .cmain { max-width: none; margin: 0; margin-left: var(--side); padding: calc(var(--top) + 20px) 28px 40px; transition: margin-left .18s ease; }
body.shell-body .site-foot { margin-left: var(--side); }
body.shell-body .local-bar { margin-bottom: 12px; }

@media (max-width: 1280px) { .ctop-quick { display: none; } .ctop-quick-menu { display: block; } }
@media (max-width: 1100px) { .ctop-who { display: none; } }
@media (max-width: 980px) {
  body.shell-body, body.shell-body.side-mini { --side: 0px; }
  .cside { width: 270px; transform: translateX(-100%); }
  body.side-open .cside { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  body.side-mini .cside span, body.side-mini .cside-h { display: initial; }
  body.side-mini .cside a { justify-content: flex-start; padding: 9px 12px; }
  body.shell-body .cmain { padding: calc(var(--top) + 14px) 16px 30px; }
  .ctop-search kbd { display: none; }
}
@media (max-width: 700px) {
  .ctop { gap: 8px; padding: 0 10px; }
  .ctop-brand .brand-word, .ctop-brand .portal-tag { display: none; }
  .ctop-club-btn { max-width: 150px; }
  .ctop-search { min-width: 0; flex: 1 1 40px; }
  .ctop-search input::placeholder { color: transparent; }
  .ctop-quick-menu .btn span { display: none; }
}
/* the app on a phone hides this frame (the app has its own menu); a tablet keeps it */
body.in-app:not(.in-tablet) .ctop, body.in-app:not(.in-tablet) .cside, body.in-app:not(.in-tablet) .cside-scrim { display: none !important; }
body.in-app:not(.in-tablet).shell-body .cmain { margin-left: 0; padding-top: 12px; }

/* ---------- club dashboard (club/index.php) ---------- */
.pill.ok { background: rgba(34,229,132,.14); color: #5CF0A6; }
.dhero { position: relative; border-radius: 18px; overflow: hidden; padding: 22px 22px 16px; margin-bottom: 14px; border: 1px solid var(--glass-line);
  background: linear-gradient(90deg, rgba(5,10,20,.94) 0%, rgba(5,10,20,.78) 45%, rgba(5,10,20,.35) 100%), var(--photo, linear-gradient(135deg, #0B1830, #060D1A)) center / cover; }
.dhero-main { display: flex; align-items: center; gap: 16px; }
.dhero-main .club-logo, .dhero-main .club-mono { box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 10px 30px rgba(0,0,0,.5); }
.dhero h1 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.dhero-where { margin: 2px 0 0; color: #C9D6EA; }
.dhero-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.dhero-chips .grow { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(5,10,20,.7); border: 1px solid var(--glass-line); font-size: .82rem; font-weight: 600; color: #EAF2FF; backdrop-filter: blur(6px); }
.chip.ok { border-color: rgba(34,229,132,.55); color: #5CF0A6; } .chip.warn { border-color: rgba(245,200,76,.55); color: #F5C84C; } .chip.bad { border-color: rgba(255,92,108,.55); color: #FF8A96; }
.dsetup { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(46,168,255,.08); border: 1px solid rgba(46,168,255,.25); }
.dsetup .muted { font-size: .86rem; }
.dsetup .wiz-bar { flex: 1; min-width: 120px; margin: 0; }
.dkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { position: relative; overflow: hidden; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--glass-line); background: linear-gradient(180deg, rgba(20,36,62,.78), rgba(10,20,36,.82)); min-height: 118px; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--green-2), var(--sky)); opacity: .7; }
.kpi-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: #C9D6EA; }
.kpi-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(34,229,132,.12); color: var(--green-2); }
.kpi-v { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font: 800 1.9rem var(--num); letter-spacing: -.02em; position: relative; z-index: 1; }
.kd { font: 800 .74rem var(--font); padding: 2px 7px; border-radius: 99px; letter-spacing: 0; }
.kd.up { background: rgba(34,229,132,.14); color: #5CF0A6; } .kd.down { background: rgba(255,92,108,.14); color: #FF8A96; }
.kpi-s { font-size: .76rem; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; max-width: 70%; }
.kpi-spark { position: absolute; right: 10px; bottom: 10px; width: 42%; height: 46px; opacity: .55; }
.kpi-spark polyline { fill: none; stroke: var(--green-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.kpi-ring { position: absolute; right: 16px; top: 50%; transform: translateY(-40%); width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green-2) calc(var(--p) * 1%), rgba(120,170,255,.12) 0); }
.kpi-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0D1A2E; }
.kpi-ring span { position: relative; font: 800 .86rem var(--num); }
.dgrid { display: grid; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.dgrid-3 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
.dgrid-2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.dgrid > .card { margin: 0; }
.dts td, .dts th { padding: 7px 8px; } .dts .small { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dstatus { display: flex; gap: 14px; align-items: stretch; margin-bottom: 8px; }
.dstatus-ph { flex: 0 0 42%; min-height: 150px; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid var(--glass-line); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: "✓"; width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .7rem; font-weight: 800; background: rgba(34,229,132,.16); color: #5CF0A6; }
.checks li.warn::before { content: "!"; background: rgba(245,200,76,.16); color: #F5C84C; }
.checks li.no::before { content: "✕"; background: rgba(255,92,108,.16); color: #FF8A96; }
.devents { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.devents li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: rgba(120,170,255,.04); border: 1px solid var(--glass-line); }
.devents .grow { display: flex; flex-direction: column; min-width: 0; }
.devents .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbadge { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 10px; background: rgba(46,168,255,.12); }
.dbadge small { font-size: .62rem; font-weight: 800; letter-spacing: .1em; color: var(--sky); } .dbadge b { font: 800 1.2rem var(--num); line-height: 1.1; }
.dseg { width: auto; } .dseg button { padding: 5px 12px; }
.drev-body { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: end; }
.dbars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 6px; }
.dbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.dbar span { width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3CF59A, #0E9E5C); box-shadow: 0 0 16px -6px rgba(34,229,132,.8); }
.dbar small { font-size: .62rem; color: var(--muted); white-space: nowrap; height: 12px; }
.drev-sums { display: flex; flex-direction: column; gap: 12px; }
.drev-sums div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(120,170,255,.05); border: 1px solid var(--glass-line); }
.drev-sums b { font: 800 1.15rem var(--num); } .drev-sums small { flex-basis: 100%; color: var(--muted); font-size: .74rem; }
.dempty { text-align: center; padding: 26px 10px; }
.dempty-ic { font-size: 2rem; margin-bottom: 6px; }
.dempty .btn-row { justify-content: center; margin-top: 10px; }
.dtasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dtasks a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(120,170,255,.04); border: 1px solid var(--glass-line); color: var(--ink); }
.dtasks a:hover { border-color: var(--sky); }
.dtasks .grow { display: flex; flex-direction: column; min-width: 0; }
.dt-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.dt-ic.warn { background: rgba(245,200,76,.16); color: #F5C84C; } .dt-ic.info { background: rgba(46,168,255,.16); color: #8CCBFF; } .dt-ic.go { background: rgba(34,229,132,.16); color: #5CF0A6; }
@media (max-width: 1280px) { .dgrid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dgrid-3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .dkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dgrid-3, .dgrid-2 { grid-template-columns: minmax(0, 1fr); } .drev-body { grid-template-columns: minmax(0, 1fr); }
  .dkpis { gap: 10px; } .kpi-v { font-size: 1.5rem; } .kpi-spark, .kpi-ring { display: none; } .kpi-s { max-width: none; }
  .dstatus { flex-direction: column; } .dstatus-ph { min-height: 110px; }
  .dhero-main .club-logo, .dhero-main .club-mono { width: 52px !important; height: 52px !important; }
}
.dseg { flex: none; } .dseg button { flex: none; white-space: nowrap; }

/* ---------- shared frame, golfer + admin additions ---------- */
.ctop .club-switch.ctop-cs { flex: 0 1 280px; max-width: 280px; height: 40px; border-radius: 12px; background: rgba(19,34,59,.8); border-color: var(--glass-line); }
.cside-n { margin-left: auto; font-style: normal; font: 800 .68rem var(--font); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--flag, #FF5C6C); color: #fff; }
.cside a.on .cside-n { background: rgba(0,0,0,.25); }
.cside-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 2px; }
body.side-mini .cside-n { position: absolute; margin: -18px 0 0 22px; min-width: 16px; height: 16px; font-size: .58rem; padding: 0 4px; }
body.side-mini .cside a { position: relative; }
body.shell-body .tabbar, body.shell-body .topbar { display: none; }
@media (max-width: 760px) {
  body.shell-body:not(.auth-body):not(.legal-body) { padding-bottom: 0; }
  body.shell-body .site-foot { padding-bottom: 24px; }
}
@media (max-width: 700px) {
  .ctop .club-switch.ctop-cs { flex: 1 1 60px; max-width: none; min-width: 0; }
  .ctop .club-switch.ctop-cs + .ctop-search { flex: 0 0 40px; padding: 0; justify-content: center; cursor: pointer; }
  .ctop .club-switch.ctop-cs + .ctop-search input { position: absolute; opacity: 0; pointer-events: none; }
  .ctop .club-switch.ctop-cs + .ctop-search.open { position: fixed; left: 10px; right: 10px; top: 10px; z-index: 960; flex: none; padding: 0 10px; background: #0F1C33; }
  .ctop .club-switch.ctop-cs + .ctop-search.open input { position: static; opacity: 1; pointer-events: auto; }
  .ctop .ctop-me .ctop-who { display: none; }
  .ctop .bell + .bell { display: none; }
}
@media (max-width: 480px) {
  .ctop-brand { display: none; }
  .ctop .club-switch.ctop-cs .cs-logo { display: none; }
  .ctop .club-switch.ctop-cs { padding-left: 10px; }
}

/* ---------- off-season months (club/payments.php) ---------- */
.season-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.season-m { position: relative; cursor: pointer; }
.season-m input { position: absolute; opacity: 0; pointer-events: none; }
.season-m span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(120,170,255,.04); transition: border-color .15s, background .15s; }
.season-m span small { font-size: .7rem; color: var(--muted); }
.season-m:hover span { border-color: var(--sky); }
.season-m.on span { background: rgba(46,168,255,.16); border-color: var(--sky); }
.season-m.on span small { color: #8CCBFF; }
.season-m.summer { cursor: not-allowed; }
.season-m.summer span { opacity: .45; background: rgba(245,200,76,.06); border-style: dashed; }
.season-m.lock { cursor: not-allowed; }
.season-m.lock span { opacity: .75; }
.season-m input:focus-visible + span { box-shadow: 0 0 0 3px rgba(46,168,255,.35); }
.season-sum { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(120,170,255,.05); border: 1px solid var(--glass-line); }
@media (max-width: 560px) { .season-months { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.shell-body [id] { scroll-margin-top: 76px; }

/* ---------- food timing: golfer estimate (order.php) + cook's priority (club/orders.php) ---------- */
.eta-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 10px; border-radius: 12px; background: rgba(34,229,132,.08); border: 1px solid rgba(34,229,132,.3); }
.eta-box b { display: block; }
.eta-box small { display: block; color: var(--muted); font-size: .78rem; }
.eta-box.late { background: rgba(245,200,76,.08); border-color: rgba(245,200,76,.4); }
.eta-ic { font-size: 1.3rem; }
.eta-quote { margin-bottom: 14px; background: rgba(46,168,255,.07); border-color: rgba(46,168,255,.28); }
.kq-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.kq-wrap > .card { margin: 0; }
.kq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kq-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(120,170,255,.04); border: 1px solid var(--glass-line); }
.kq-row .grow { display: flex; flex-direction: column; min-width: 0; }
.kq-row small { font-size: .8rem; }
.kq-row.first { border-color: rgba(34,229,132,.55); box-shadow: 0 0 0 1px rgba(34,229,132,.2) inset; }
.kq-row.dying { border-color: rgba(255,92,108,.6); background: rgba(255,92,108,.08); animation: kqPulse 1.6s ease-in-out infinite; }
@keyframes kqPulse { 50% { box-shadow: 0 0 0 4px rgba(255,92,108,.18); } }
.kq-n { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(46,168,255,.14); font: 800 .95rem var(--num); }
.kq-row.first .kq-n { background: linear-gradient(135deg, #3CF59A, #12C873); color: var(--on-accent); }
.kq-row.dying .kq-n { background: rgba(255,92,108,.25); color: #FFB3BB; }
.kq-row .pill { flex: none; white-space: nowrap; }
.kq-card-line { margin: 4px 0; color: #C9D6EA; }
@media (prefers-reduced-motion: reduce) { .kq-row.dying { animation: none; } }
@media (max-width: 900px) { .kq-wrap { grid-template-columns: minmax(0, 1fr); } }
.book-later { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; } .book-later input[type=date] { width: auto; }

/* ---------- on/off switches (club/accounts.php) ---------- */
.acct-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.acct-switch { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(120,170,255,.04); border: 1px solid var(--glass-line); }
.acct-switch small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.switch { position: relative; flex: none; width: 50px; height: 28px; padding: 0; border-radius: 99px; border: 1px solid var(--glass-line); background: rgba(120,170,255,.14); cursor: pointer; transition: background .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #C9D6EA; transition: transform .15s, background .15s; }
.switch.on { background: linear-gradient(135deg, #3CF59A, #12C873); border-color: transparent; }
.switch.on span { transform: translateX(22px); background: #fff; }
.switch:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (max-width: 760px) { .acct-switches { grid-template-columns: minmax(0, 1fr); } }

/* ---------- booking emails (club/mail-import.php) ---------- */
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.tpl-sample { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: rgba(5,10,20,.7); border: 1px solid var(--glass-line); font: .86rem/1.55 ui-monospace, Consolas, monospace; color: #DCE7F7; user-select: text; }
.tpl-sample::selection, .tpl-sample *::selection { background: rgba(34,229,132,.4); }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tpl-preview { margin-bottom: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky); font-size: .78rem; cursor: pointer; text-decoration: underline; }
.map-tools button.on { border-color: var(--green-2); }
.leaflet-image-layer.summer-photo { transition: opacity .25s; }

/* ---------- room rentals (club/rooms.php, rooms.php) ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.room-grid > .card { margin: 0; display: flex; flex-direction: column; }
.room-card.on { border-color: var(--green-2); box-shadow: 0 0 0 1px rgba(34,229,132,.3) inset; }
.room-card > .btn { align-self: flex-start; margin-top: auto; }
.room-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.room-facts span { font-size: .78rem; padding: 3px 9px; border-radius: 99px; background: rgba(120,170,255,.08); border: 1px solid var(--glass-line); color: #C9D6EA; }
.room-price { margin: 4px 0 6px; } .room-price b { font: 800 1.6rem var(--num); }
.room-tiers td, .room-tiers th { padding: 6px 8px; } .room-tiers input { max-width: 140px; }
.room-card .room-tiers { margin-bottom: 10px; }
/* admin > all courses */
.allc-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.allc-kpi { min-height: 0; color: var(--ink); } .allc-kpi:hover { border-color: var(--sky); } .allc-kpi.on { border-color: var(--green-2); }
.allc-kpi .kpi-v { font-size: 1.5rem; margin-top: 4px; }
@media (max-width: 1100px) { .allc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .allc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* profile: webcam window (Take photo on a computer) */
.cam-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(2,6,14,.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cam-card { background: var(--panel, #0E1A2C); border: 1px solid var(--glass-line); border-radius: 18px; padding: 16px; width: min(440px, 100%); text-align: center; }
.cam-view { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000; margin: 0 auto 12px; width: min(320px, 80vw); }
.cam-view video, .cam-view canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-view video { transform: scaleX(-1); }
.cam-card .btn-row { justify-content: center; }

/* find tee times (also on the signed-in Find tee times page) */
.find-form { display: flex; flex-direction: column; gap: 12px; }
.find-where { display: flex; gap: 8px; flex-wrap: wrap; }
.find-where input { flex: 1 1 220px; }
.find-where select { width: auto; }
.find-row { display: flex; flex-wrap: wrap; gap: 10px; }
.find-row label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); flex: 1 1 110px; }
.find-form > .btn { align-self: flex-start; min-width: 140px; }
.find-count { font-size: 1rem; color: var(--muted); margin: 22px 0 10px; font-weight: 600; }
.find-club header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.find-club header > div { flex: 1; min-width: 0; }
.find-club h3 { margin: 0; font-size: 1.1rem; }
.find-club h3 small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.find-club p { margin: 2px 0 0; }
.find-from { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.find-from b { color: var(--green-2); font-size: 1.05rem; }
.find-times { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.find-times a { flex: 0 0 auto; display: flex; flex-direction: column; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(6,13,26,.6); color: var(--ink); text-decoration: none; }
.find-times a:hover { border-color: var(--sky); box-shadow: var(--glow-b); }
.find-times a b { font-size: .98rem; }
.find-times a span { font-size: .75rem; color: var(--muted); }
.find-times a.more { justify-content: center; color: var(--sky); font-weight: 700; font-size: .85rem; }
.ts-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 4px 0 0; }
.ts-days a { flex: 0 0 auto; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--glass-line); color: var(--ink); text-align: center; font-size: .8rem; line-height: 1.2; }
.ts-days a b { display: block; font-size: .95rem; } .ts-days a.on { background: linear-gradient(135deg, #3CF59A, #12C873); color: #04121F; border-color: transparent; }
.find-where input[type=checkbox] { flex: none; width: auto; } .find-where .check { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 6px; }

/* club course map: course cards sit under the map, the hole editor stays beside it */
.ce-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.ce-cards .card { margin: 0; }
.ce-tees .row { flex-wrap: nowrap; } .ce-tees .row .field { min-width: 0; margin-bottom: 8px; } @media (min-width: 1300px) { .ce-tees { grid-column: span 2; } }
/* admin all courses: list / map */
.allc-view { flex: none; align-self: flex-end; height: 44.5px; } .allc-view button { padding: 0 16px; }
.allc-map { height: 560px; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-line); }
.allc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; color: var(--muted); }
.allc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.allc-map .leaflet-popup-content-wrapper, .allc-map .leaflet-popup-tip { background: #0E1A2C; color: #E6EEF9; }
.allc-map .leaflet-popup-content a { color: #7CC4FF; }
@media (max-width: 700px) { .allc-map { height: 420px; } }
.admin-tall { min-height: 44.5px; }   /* same height as the text box beside it */
/* club Course tab: one card per hole */
.hole-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.hole-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(6,13,26,.55); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.hole-card:hover { border-color: var(--club, var(--sky)); transform: translateY(-2px); }
.hc-top { display: flex; align-items: center; gap: 10px; }
.hc-num { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem var(--font); background: var(--club, #12C873); color: #fff; }
.hc-meta { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.hc-top .hole-go { font-size: .8rem; font-weight: 700; color: var(--sky); }
.hc-tees { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .85rem; }
.hc-tees li { display: flex; align-items: center; gap: 8px; }
.hc-tees i { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.35); }
.hc-tees span { flex: 1; color: var(--muted); }
.hc-notes { margin: 0; border-top: 1px solid var(--glass-line); padding-top: 8px; }
@media (max-width: 480px) { .hole-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .hole-card { padding: 10px; } }
/* course map: Add another course laid out across, beside Re-import */
.ce-add-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ce-add-form .field { flex: 1 1 80px; min-width: 0; margin: 0; }
.ce-add-form .ce-add-name { flex: 2 1 140px; }
.ce-add-form .btn { flex: none; }
@media (min-width: 1100px) { .ce-addcourse { grid-column: span 2; } }
.ce-cards { align-items: stretch; }   /* cards in a row are the same height */
/* Add another course: name across the top, latitude / longitude / button below */
.ce-add-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ce-add-form .ce-add-name { grid-column: 1 / -1; }
@media (max-width: 480px) { .ce-add-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ce-add-form .btn { grid-column: 1 / -1; } }

/* phones: no search box in the top bar (the empty box still pushes the buttons to the right) */
@media (max-width: 700px) {
  .ctop-search { flex: 1 1 0; min-width: 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; }
  .ctop-search > * { display: none !important; }
}
/* map +/- and other map buttons stay under the top bar and the slide-in menu */
.leaflet-container .leaflet-top, .leaflet-container .leaflet-bottom { z-index: 700; }
/* club staff: on phones the role list goes on its own line so the username box gets the full width */
@media (max-width: 600px) {
  .staff-add { flex-wrap: wrap; }
  .staff-add .staff-who { flex: 1 1 100%; }
  .staff-add .staff-role { flex: 1 1 0; max-width: none !important; }
}

/* Play: the AI caddy's club is marked in the shot-tracking chips */
.club-chips button.sug { border-color: var(--green-2); box-shadow: inset 0 0 0 1px var(--green-2); }
.club-chips button.sug::after { content: ' ★'; font-size: .7em; }

/* whole-course map (course-view.php) */
.cv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cv-head h1 { margin: 0; font-size: 1.4rem; }
.cv-head p { margin: 2px 0 0; }
.cv-holes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; scrollbar-width: thin; }
.cv-holes button { flex: none; min-width: 38px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--glass-line, var(--line)); background: var(--card); color: #C9D6EA; font: 700 .85rem var(--font); cursor: pointer; }
.cv-holes button.on { background: linear-gradient(135deg, #3CF59A, #12C873); color: var(--on-accent); border-color: transparent; }
.cv-map { height: calc(100vh - 250px); min-height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-line, var(--line)); background: #0a1424; }
.cv-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(6,13,26,.88); color: #fff; font: 800 .78rem var(--font); border: 2px solid var(--tee, #fff); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
@media (max-width: 700px) { .cv-head .btn:last-child { width: 100%; } .cv-map { height: calc(100vh - 280px); } }
body.in-app:not(.in-tablet) .cv-map { height: calc(100vh - 230px); }
.cv-head .grow { flex: 1; min-width: 0; }

/* food order saved with no signal (food-wait.js): a bar on every page until it's sent */
.fw-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 3500; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: #3A2A06; border: 1px solid rgba(242,201,76,.6); color: #FFE7A3; box-shadow: 0 12px 34px rgba(0,0,0,.5); font-size: .86rem; }
.fw-bar[hidden] { display: none; }
.fw-bar.fw-ok { background: #0E3A26; border-color: rgba(34,229,132,.6); color: #C8FBDF; }
.fw-bar.fw-bad { background: #3A1016; border-color: rgba(255,92,108,.6); color: #FFD0D5; }
.fw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fw-t span { opacity: .85; font-size: .8rem; }
.fw-t a { color: inherit; text-decoration: underline; }
.fw-bar .btn { flex: none; }

/* Swing studio: the End button (keep going until End) and the AI caddy's feedback right under the video */
.studio .end-bar { justify-content: space-between; }
.studio .end-bar .btn { min-width: 110px; }
.swing-caddy { margin: 12px 0 4px; padding: 14px 16px; border-radius: 14px; background: rgba(46,168,255,.06); border: 1px solid rgba(46,168,255,.22); }
.swing-caddy .card-head { margin-bottom: 10px; }
.swing-caddy h2 { font-size: 1.05rem; margin: 0; }
.swing-caddy .insight .t { font-weight: 700; }
.swing-caddy .insight .x { font-size: .9rem; color: var(--muted, #A9B6C9); margin-top: 2px; }

/* Swing studio layout (2026-11-30): End over the bottom of the video, the status line right under it, capture icons on one row */
.studio-stage .stage-end { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 22px 12px 10px; background: linear-gradient(to bottom, transparent, rgba(3,6,13,.85)); color: #fff; font-size: .88rem; }
.studio-stage .stage-end[hidden] { display: none; }
.studio-stage .stage-end .btn { flex: 0 0 auto; min-width: 96px; justify-content: center; }
.studio-stage .stage-end span { flex: 1; min-width: 0; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.studio-stage:has(.stage-end:not([hidden])) .stage-msg { bottom: 70px; }
.cap-status { margin: 8px 2px 0; min-height: 1.3em; font-size: .9rem; color: var(--sky, #8CCBFF); text-align: center; }
.cap-status:empty { display: none; }
.cap-status a { color: inherit; font-weight: 700; }
.cap-icons { flex-wrap: wrap; }
.cap-icons .icon-btn { flex: 0 0 auto !important; width: 46px; height: 42px; padding: 0; display: inline-grid; place-items: center; }
.cap-icons #recBtn { flex: 1 1 auto; justify-content: center; }
.cap-icons .keep-going { flex-basis: 100%; margin: 2px 0 0; }

/* ---------- swing studio: full screen on phones, the normal page layout on tablets and computers ---------- */
.fs-ic { position: relative; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer; color: #fff; text-decoration: none;
  background: rgba(6,12,24,.58); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s, color .15s; }
.fs-ic:hover { background: rgba(20,36,62,.8); color: #fff; }
.fs-ic.on { background: var(--sky); border-color: var(--sky); color: #04101F; }
.fs-ic.fs-save:not(.on) { color: var(--flag); border-color: rgba(200,245,60,.55); }
.fs-ic.dot::after { content: ''; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--flag); box-shadow: 0 0 0 2px #04101F; }
/* tablets and computers: the video in a card, the buttons under it, the numbers, save and tips down the side */
.studio-fs { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; --stage-h: 70vh; }
@media (max-width: 960px) { .studio-fs { grid-template-columns: minmax(0, 1fr); } }
.studio-fs .st-main { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.studio-fs .fs-top { order: -1; display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.studio-fs .fs-top > .fs-ic { width: 38px; height: 38px; }
.studio-fs .fs-tools { display: none; }
.studio-fs .fs-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.studio-fs .fs-title b { font-size: 1.3rem; line-height: 1.25; }
.studio-fs .fs-title small { color: var(--muted); font-size: .85rem; }
.studio-fs .fs-under { display: flex; flex-direction: column; align-items: center; }
.studio-fs[data-mode="swing"] .fs-legend[hidden] { display: flex; }
.studio-fs .fs-legend { align-self: stretch; }
.studio-fs .fs-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.studio-fs .stage-msg { order: 1; position: static; transform: none; align-self: center; }
.studio-fs .fs-note { order: 2; margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.studio-fs .fs-note:empty { display: none; }
.studio-fs .fs-bottom > .stage-end { order: 3; }
.studio-fs .fs-bottom > #capBar { order: 4; }
.studio-fs .fs-bottom > #playBar { order: 5; }
.studio-fs .fs-bottom > #markBar { order: 6; }
.studio-fs .fs-bottom > #tracerBar { order: 7; }
.studio-fs .fs-bottom > .fs-sheet { order: 8; }
.studio-fs .fs-row { margin: 0; }
.studio-fs .stage-end { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); }
.studio-fs .stage-end[hidden] { display: none; }
.studio-fs .stage-end .btn { min-width: 96px; justify-content: center; }
.studio-fs .fs-x { display: none; }
.studio-fs .fs-sheet .swing-caddy { margin: 4px 0 0; }
.studio-fs .st-side .fs-sheet > section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.studio-fs .st-side .fs-sheet > section > h2, .studio-fs .st-side .fs-sheet > section > h3 { margin-top: 0; }
.studio-fs .fs-rec { justify-content: center; }
/* STUDIO_PHONE_ONLY: phones (and phones turned sideways) get the full-screen camera view with everything over the video */
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
.studio-fs { display: block; }
.studio-fs .fs-bottom > * { order: 0 !important; }
.studio-fs .fs-legend { align-self: center; }
.studio-fs .st-main { display: contents; }
.studio-fs .st-side { display: none; }
.studio-fs .fs-desc { display: none; }
.studio-fs .fs-x { display: block; }
.studio-fs .fs-top > .fs-ic { width: 44px; height: 44px; }
body.studio-open { overflow: hidden; }
.studio-fs { position: fixed; inset: 0; z-index: 1500; background: #000; color: #fff; --stage-h: 100vh; --stage-h: 100dvh; overflow: hidden; }
.studio-fs [hidden] { display: none !important; }
.studio-fs .fs-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.studio-fs .studio-stage { margin: 0; max-height: var(--stage-h); border-radius: 0; box-shadow: none; background: #000; }
.studio-fs .fs-top { position: absolute; left: 0; right: 0; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 22px; background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent); pointer-events: none; }
.studio-fs .fs-top > * { pointer-events: auto; }
.studio-fs .fs-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.studio-fs .fs-title b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-fs .fs-title small { font-size: .74rem; color: #C9D6EA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-fs .fs-tools { display: flex; gap: 6px; }
.studio-fs .fs-under { position: absolute; left: 0; right: 0; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; pointer-events: none; }
.studio-fs .fs-status { margin: 0; max-width: min(560px, 100%); padding: 7px 14px; border-radius: 14px; background: rgba(6,12,24,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #CFE8FF; font-size: .86rem; font-weight: 600; pointer-events: auto; }
.studio-fs .fs-legend { margin: 0; padding: 6px 10px; border-radius: 12px; background: rgba(6,12,24,.72); color: #E6EEF9; font-size: .74rem; gap: 6px 12px; justify-content: center; }
.studio-fs .fs-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 10px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(0,0,0,.72), transparent); pointer-events: none; }
.studio-fs .fs-bottom > * { pointer-events: auto; width: 100%; max-width: 640px; }
.studio-fs .stage-msg { position: static; transform: none; width: auto; max-width: min(560px, 100%); }
.studio-fs .fs-note { margin: 0; width: auto; max-width: min(560px, 100%); padding: 6px 12px; border-radius: 12px; background: rgba(6,12,24,.72); font-size: .84rem; text-align: center; color: #E6EEF9; }
.studio-fs .fs-note:empty { display: none; }
.studio-fs .fs-note a { color: var(--flag); font-weight: 700; }
.studio-fs .fs-row { margin: 0; justify-content: center; gap: 8px; }
.studio-fs .fs-row .btn { flex: 0 1 auto; background: rgba(6,12,24,.62); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.studio-fs .fs-row .btn:not(.btn-ghost) { background: var(--flag); border-color: var(--flag); color: #0A1A10; }
.studio-fs .fs-row .muted { color: #C9D6EA; }
.studio-fs .fs-play { flex-wrap: nowrap; padding: 6px 8px; border-radius: 99px; background: rgba(6,12,24,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.studio-fs .fs-play .btn { padding: 8px 12px; }
.studio-fs .fs-play #backBtn, .studio-fs .fs-play #fwdBtn { background: transparent; border-color: transparent; font-size: 1.2rem; padding: 4px 8px; }
.studio-fs .fs-play input[type=range] { min-width: 60px; }
.studio-fs .fs-play select { flex: 0 0 auto; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.studio-fs .cap-icons { align-items: center; flex-wrap: wrap; gap: 14px; }
.studio-fs .cap-icons .fs-ic { width: 50px; height: 50px; }
.studio-fs .fs-rec { flex: 0 0 auto !important; min-width: 150px; height: 58px; border-radius: 99px; justify-content: center; font-size: 1.05rem; font-weight: 800; background: #E5484D !important; border: 3px solid rgba(255,255,255,.85) !important; color: #fff !important; box-shadow: 0 6px 22px rgba(229,72,77,.45); }
.studio-fs .keep-going { flex-basis: 100%; display: flex; justify-content: center; margin: 0; }
.studio-fs .keep-going span { color: #E6EEF9; }
.studio-fs .stage-end { position: static; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 99px; background: rgba(6,12,24,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.studio-fs .stage-end .btn { min-width: 104px; height: 48px; font-size: 1rem; }
.studio-fs .fs-sheet { display: none; position: relative; max-height: 46vh; max-height: 46dvh; overflow-y: auto; padding: 14px 14px 12px; border-radius: 18px; background: rgba(8,16,30,.93); border: 1px solid rgba(120,170,255,.2); box-shadow: 0 10px 30px rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; }
.studio-fs .fs-sheet.open { display: block; animation: fsUp .18s ease-out; }
@keyframes fsUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.studio-fs .fs-x { position: sticky; float: right; top: 0; z-index: 2; width: 34px; height: 34px; margin: -4px -4px 0 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.studio-fs .fs-sheet h2, .studio-fs .fs-sheet h3 { margin: 0 0 10px; font-size: 1.05rem; }
.studio-fs .fs-sheet .swing-caddy { margin: 0; padding: 0; background: transparent; border: 0; }
.studio-fs .fs-sheet .tips { margin: 8px 0 0; padding-left: 18px; }
@media (max-width: 420px) {
  .studio-fs .fs-tools { gap: 4px; }
  .studio-fs .fs-top .fs-ic { width: 40px; height: 40px; }
  .studio-fs .fs-rec { min-width: 128px; }
}
.studio-fs .fs-title b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.studio-fs #markBar { flex-wrap: nowrap; gap: 6px; }
.studio-fs #markBar .btn { padding: 6px 10px; }
.studio-fs .keep-going { flex-basis: auto; width: auto; padding: 6px 12px; border-radius: 99px; background: rgba(6,12,24,.62); }
.studio-fs .cap-icons .keep-going { flex-basis: 100%; max-width: none; background: transparent; padding: 0; justify-content: center; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
@media (max-width: 420px) {
  .studio-fs .fs-title b { font-size: .84rem; }
  .studio-fs #markBar .muted { display: none; }
}
}

/* ---------- Play on phones: the map fills the screen. Round icons down the left, the AI caddy top right, and a dock along
   the bottom with the hole, yardages and Hole / Score / Group. Score, Group and the AI caddy open over the map. ---------- */
.map-tools .mt-tx { margin-left: .35em; }
.map-exit, .map-ai, .pane-x, .map-credit { display: none; }
@media (max-width: 760px) {
  body.play-body { overflow: hidden; }
  .play { position: fixed; inset: 0; z-index: 1400; display: block; height: auto !important; background: #000; --dock: 230px; }
  .play .map-wrap { position: absolute; inset: 0; height: auto; min-height: 0; }
  .play .leaflet-control-zoom { display: none; }
  /* icons only, down the left */
  .play .map-tools { top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; gap: 7px; max-height: calc(100% - var(--dock) - 30px); overflow-y: auto; scrollbar-width: none; }
  .play .map-tools::-webkit-scrollbar { display: none; }
  .play .map-tools button, .play .map-tools a { width: 44px; height: 44px; flex: 0 0 auto; padding: 0; display: grid; place-items: center; border-radius: 50%; text-align: center; text-decoration: none;
    background: rgba(6,12,24,.62) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.35) !important; }
  .play .map-tools button.on { background: var(--flag) !important; border-color: var(--flag); color: #1a2400 !important; }
  .play .map-tools .mt-tx { display: none; }
  .play .map-tools .mt-ic { font-size: 1.15rem; line-height: 1; }
  .play .map-tools .map-exit .mt-ic { font-size: 1.9rem; margin-top: -3px; }
  .play .map-tools .trace-btn { border-color: #3CF59A; box-shadow: 0 0 0 2px rgba(60,245,154,.5), 0 2px 10px rgba(0,0,0,.35) !important; }
  .play .map-tools .order-tool { border-color: #FFD36B; box-shadow: 0 0 0 2px rgba(255,211,107,.5), 0 2px 10px rgba(0,0,0,.35) !important; }
  .play .map-tools .hidden { display: none !important; }
  /* Green above Auto photo */
  .play .map-tools > * { order: 5; }
  .play .map-tools .map-exit { order: 0; } .play .map-tools #btnSim { order: 1; } .play .map-tools #btnHolo { order: 2; } .play .map-tools #btnFit { order: 3; } .play .map-tools #btnGreen { order: 4; }
  .play .map-exit { display: grid; }
  /* the AI caddy button, top right */
  /* top right: the green slope panel (when Slopes is on), then the AI button under it */
  .play .map-right { position: absolute; z-index: 520; top: calc(30px + env(safe-area-inset-top, 0px)); right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100% - 74px); pointer-events: none; }
  .play .map-right > * { pointer-events: auto; }
  .play .map-right .green-panel { position: static; width: 236px; max-width: 100%; }
  .play .map-ai { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 14px 0 11px; border-radius: 99px; cursor: pointer;
    background: linear-gradient(135deg, #2EA8FF, #22E584); color: #04101F; border: 2px solid rgba(255,255,255,.85); font: 800 .95rem var(--font); box-shadow: 0 6px 20px -4px rgba(46,168,255,.7); }
  .play .map-ai.on { background: #fff; }
  .play .slope-legend { top: calc(66px + env(safe-area-inset-top, 0px)); }
  .play .course-alert { left: 64px; right: 10px; width: auto; transform: none; top: calc(66px + env(safe-area-inset-top, 0px)); }
  .play .map-tip { bottom: calc(var(--dock) + 10px); max-width: calc(100% - 24px); white-space: normal; text-align: center; }
  /* the dock along the bottom */
  .play .side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 700; overflow: visible; display: block; border: 0; border-top: 1px solid rgba(120,170,255,.2); border-radius: 20px 20px 0 0;
    background: rgba(6,13,26,.94); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
  .play .hole-bar { position: static; padding: 8px 12px 4px; background: transparent; border: 0; border-radius: 20px 20px 0 0; }
  .play .hole-bar .num { font-size: 1.8rem; }
  .play .dist-main { padding: 2px 10px 2px; }
  .play .dist-main .yd { font-size: 1.35rem; }
  .play .dist-main .mid .yd { font-size: 2.4rem; }
  .play .gps-line { padding: 0 12px 6px; }
  .play .preview-note { margin: 0 10px 8px; padding: 8px 10px; font-size: .8rem; }
  .play .side-tabs { border-top: 1px solid var(--line); border-bottom: 0; }
  .play .side-tabs button { padding: 11px 0 12px; font-size: .92rem; }
  .play .play-credit, .play .gps-line { display: none; }   /* the map credit moves to the top of the screen; no location line on phones */
  .play .map-credit { display: block; position: absolute; z-index: 510; top: calc(2px + env(safe-area-inset-top, 0px)); left: 60px; right: 60px; text-align: center; font-size: .56rem; line-height: 1.25; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px #000; pointer-events: none; }
  .play .map-tools { top: calc(30px + env(safe-area-inset-top, 0px)); }
  .play .dist-main { padding-bottom: 8px; }
  /* Score, Group and the AI caddy open over the map, just above the dock */
  .play [data-pane] { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); max-height: calc(100dvh - var(--dock) - 80px); overflow-y: auto; padding: 6px 0 4px; border-radius: 18px;
    background: rgba(8,16,30,.96); border: 1px solid rgba(120,170,255,.22); box-shadow: 0 12px 34px rgba(0,0,0,.5); animation: fsUp .18s ease-out; }
  .play [data-pane].hidden, .play:not(.ai-open) [data-pane="hole"] { display: none; }
  .play [data-pane] .panel { background: transparent; border: 0; }
  .play [data-pane] > .pane-x + .panel > :first-child { padding-right: 40px; }
  .play .pane-x { display: block; position: sticky; top: 0; float: right; z-index: 3; width: 34px; height: 34px; margin: 4px 8px -38px 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
}
@keyframes fsUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* pro shop / pace / weather messages on the map: one colour, the title on its own line with the message under it */
.course-alert { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; border-left: 0 !important; }
.course-alert b { grid-column: 1; grid-row: 1; white-space: normal; }
.course-alert button { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.course-alert span { grid-column: 1; grid-row: 2; }
/* the green view: one icon on phones (tap to change view), the colour key standing up */
.gv-cycle { display: none; }
/* food panel from Play: a clear way back, and none of the site's own top bar or menu inside it */
.play-order .po-head .po-back { width: auto; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--flag); border-color: var(--flag); color: #0A1A10; font: 800 .9rem var(--font); white-space: nowrap; }
.play-order .po-head .po-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.play-order .po-head .po-t .muted { flex: none; }
body.shell-body.in-play { --top: 0px; --side: 0px; }
body.in-play .ctop, body.in-play .cside, body.in-play .cside-scrim, body.in-play .local-bar, body.in-play .site-foot { display: none !important; }
@media (max-width: 760px) {
  .play .map-right .green-panel { width: auto; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 16px; }
  .play .green-panel .gv-modes, .play .green-panel .gv-key, .play .green-panel .gv-tip { display: none; }
  .play .green-panel .gv-cycle { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; padding: 6px 0 4px; border: 0; border-radius: 12px; background: var(--green-2); color: #04101F; cursor: pointer; }
  .play .green-panel .gv-cycle small { font: 800 .6rem var(--font); }
  .play .green-panel .gv-scale { margin: 0; display: flex; gap: 6px; align-items: stretch; height: 96px; }
  .play .green-panel .gv-bar { width: 8px; height: auto; background: linear-gradient(0deg, #2EC4B6 0%, #8EE07A 25%, #F2D45C 50%, #F59A45 75%, #E5534B 100%); }
  .play .green-panel .gv-ticks { flex-direction: column-reverse; justify-content: space-between; margin: 0; line-height: 1; }
  .play .green-read { bottom: calc(var(--dock) + 10px); }
  /* Score and Group open from the top of the screen down to the dock */
  .play [data-pane="score"], .play [data-pane="group"] { position: fixed; top: calc(30px + env(safe-area-inset-top, 0px)); bottom: calc(var(--dock) + 8px); max-height: none; }
  .play .course-alert { top: calc(30px + env(safe-area-inset-top, 0px)); right: 84px; }   /* between the icons and the AI / green column */
}
/* phones, round 3: no box behind the green view (just the icon and the colour key, right edge, under the map credit),
   and Score / Group start right at the top so they scroll less */
@media (max-width: 760px) {
  .play .map-right { top: calc(36px + env(safe-area-inset-top, 0px)); right: 8px; gap: 10px; }
  .play .green-panel, .play .map-right .green-panel { position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: flex-end; }
  .play .map-wrap > .green-panel { position: absolute; right: 8px; top: calc(36px + env(safe-area-inset-top, 0px)); }
  .play .green-panel .gv-cycle { box-shadow: 0 2px 10px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.85); }
  .play .green-panel .gv-scale { margin-right: 14px; }
  .play .green-panel .gv-bar { box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
  .play .green-panel .gv-ticks { color: #fff; font-weight: 800; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
  .play [data-pane="score"], .play [data-pane="group"] { top: calc(6px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 760px) {
  /* the map tip: one line, sitting right on top of the bottom card */
  .play .map-tip { bottom: calc(var(--dock) + 6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 20px); padding: 5px 12px; font-size: .78rem; }
}
/* phones, round 4 */
@media (max-width: 760px) {
  /* the colour key: numbers on the left, the bar against the right edge */
  .play .green-panel .gv-scale { flex-direction: row-reverse; margin-right: 0; }
  .play .green-panel .gv-ticks { text-align: right; }
  /* the map tip: one line at the top of the bottom card */
  .play .side > .map-tip { position: static; transform: none; display: block; width: auto; max-width: none; margin: 0; padding: 7px 12px 0; background: none; border-radius: 0; box-shadow: none; text-align: center; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .play .side > .map-tip + .hole-bar { padding-top: 2px; }
  /* every overlay opens from the top of the screen down to the card */
  .play [data-pane] { position: fixed; top: calc(6px + env(safe-area-inset-top, 0px)); bottom: calc(var(--dock) + 8px); max-height: none; }
  .play [data-pane="score"] .btn-row { justify-content: center; }
  .play #inviteForm { align-items: stretch; flex-wrap: nowrap; }
  .play #inviteForm .field { flex: 1; }
  .play #inviteForm .btn { height: auto; align-self: stretch; padding-left: 18px; padding-right: 18px; }
  /* group board: each player's score on the same line as their name, in tidy columns */
  .play .mini-board td { vertical-align: top; }
  .play .mini-board td:first-child { width: 34px; }
  .play .mini-board .topar, .play .mini-board td.right { width: 44px; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: right; }
}
/* group games: one box per part of the round */
.game-box .game-how { margin: 2px 0 6px; }
.game-box.past { opacity: .75; }
.mini-board.game-rows td { vertical-align: middle; }
.mini-board .game-val { text-align: right; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .play .mini-board.game-rows td:first-child { width: auto; } .play .mini-board.game-rows td { vertical-align: middle; } }
/* scorecard: every score sits on the same line; the skin dot tucks under the number without pushing it up */
table.sc td { vertical-align: middle; height: 36px; position: relative; }
table.sc .s { line-height: 1; }
table.sc .skin-dot { position: absolute; left: 50%; bottom: 2px; margin: 0; transform: translateX(-50%); }
/* scorecard: a skin won is a yellow square around the score, with a little gap outside its birdie / bogey mark */
table.sc td { height: 42px; }
.s.skin { outline: 2px solid var(--flag); outline-offset: 3px; }
.s.skin.eagle, .s.skin.double { outline-offset: 6px; }
.sc-key { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; }
.sc-key .s { display: inline-grid; place-items: center; width: 22px; height: 22px; font-weight: 600; margin-left: 4px; }
/* phones, round 5: the map credit sits at the bottom of the map, just above the card (it was covering the green at the top),
   so the icons on both sides move up to the top */
@media (max-width: 760px) {
  .play .map-credit { top: auto; bottom: calc(var(--dock) + 4px); left: 10px; right: 10px; }
  .play .map-tools { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .play .map-right { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .play .map-wrap > .green-panel { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .play .course-alert { top: calc(10px + env(safe-area-inset-top, 0px)); }
}
