/* ============================================================
   Golf Day — design system
   Beige canvas · olive actions · condensed display type
   ============================================================ */
:root {
  --bg: #e9e6dc;
  --surface: #ffffff;
  --surface-2: #f2f0e8;
  --ink: #1c2019;
  --muted: #76796d;
  --line: #e3e0d5;
  --olive: #77883b;
  --olive-d: #5f6e2c;
  --olive-soft: #c9d2a4;
  --strip: #2a2e27;
  --strip-2: #3a4033;
  --blue: #2f6fd0;
  --red: #d0453a;
  --half: #8a8d80;
  --blue-light: #8db5f2;
  --red-light: #f3a198;
  --blue-ink: var(--blue);          /* team-coloured text */
  --red-ink: var(--red);
  --blue-tint: color-mix(in srgb, var(--blue) 14%, #fff);
  --red-tint: color-mix(in srgb, var(--red) 14%, #fff);
  --display: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --shadow: 0 10px 30px rgba(28, 32, 25, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #c8cac2; }
body {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 80px rgba(0, 0, 0, .12);
}
a { color: inherit; }
button { font-family: inherit; }
img { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 290px;
  padding: 24px;
  color: #fff;
  background: #355226 url(../img/hero-course.svg) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.5) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero.sm { height: 230px; }
.hero-bar {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 11vw, 54px);
  white-space: nowrap;     /* titles always on one line */
  line-height: .95;
  letter-spacing: .5px;
  margin: 26px 0 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero.sm .hero-title { font-size: clamp(32px, 10vw, 46px); margin-top: 30px; }
.hero-sub { font-size: 13px; opacity: .9; margin-top: -8px; margin-bottom: 14px; letter-spacing: .04em; }

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(28, 32, 25, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(28, 32, 25, .38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.light { background: var(--surface); color: var(--ink); border-color: var(--line); backdrop-filter: none; }
.icon-btn.sm { width: 38px; height: 38px; }
.icon-btn:disabled { opacity: .35; }

/* ---------- Layout & type ---------- */
main { padding: 22px 18px 48px; }
.overlap { margin-top: -70px; position: relative; z-index: 3; }
.h-display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 36px;
  line-height: 1;
  letter-spacing: .3px;
  margin: 30px 2px 16px;
}
.h-section {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: .3px;
  margin: 0 0 14px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); font-size: 13px; }
.blue { color: var(--blue-ink); }
.red { color: var(--red-ink); }
.center { text-align: center; }
.stack > * + * { margin-top: 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Tabs / pills ---------- */
.tabs { display: flex; gap: 8px; }
.tab {
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--strip);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.tab.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.chip.on { background: var(--strip); color: #fff; border-color: var(--strip); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card.dark { background: var(--strip); color: #fff; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--olive);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s, background .2s;
}
.btn:hover { background: var(--olive-d); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; }
.btn svg { width: 16px; height: 16px; }
.btn.dark { background: var(--strip); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--strip); }
.btn.wa { background: #25d366; }
.btn.wa:hover { background: #1fb957; }
.btn.danger { background: transparent; color: #b3372c; border: 1.5px solid #d9a39d; }
.btn.sm { width: auto; padding: 11px 16px; font-size: 10px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Avatars ---------- */
.av {
  --size: 46px;
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--c, #999);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: calc(var(--size) * .34);
  letter-spacing: .02em;
}
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av.sm { --size: 34px; }
.av.lg { --size: 58px; }
.av.xl { --size: 76px; }
.av.edit { cursor: pointer; }
.av.edit::after {
  content: '+';
  position: absolute;
  right: -3px; bottom: -3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--olive);
  border: 2px solid #fff;
  color: #fff;
  font-size: 14px;
  line-height: 15px;
  text-align: center;
}
.av.busy { opacity: .5; }
.av-stack { display: flex; }
.av-stack .av + .av { margin-left: -14px; }

/* ---------- Status badge ---------- */
.badge {
  width: 60px; height: 60px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--display);
  line-height: 1;
}
.badge b { font-weight: 400; font-size: 23px; }
.badge small { font-family: var(--body); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.badge.blue { background: var(--blue); color: #fff; }
.badge.red { background: var(--red); color: #fff; }
.badge.tint.blue { background: var(--blue-tint); color: var(--blue-ink); }
.badge.tint.red { background: var(--red-tint); color: var(--red-ink); }
.badge.pending { background: transparent; border: 1.5px dashed #cfccc0; color: var(--muted); }

/* ---------- Standings scoreboard ---------- */
.board { padding: 24px 22px 20px; }
.board-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.board-team .eyebrow { color: rgba(255,255,255,.6); }
.board-team:last-child { text-align: right; }
.board-num { font-family: var(--display); font-size: 84px; line-height: .9; margin-top: 6px; }
.board-team.blue .board-num { color: var(--blue-light); }
.board-team.red .board-num { color: var(--red-light); }
.board-vs { font-family: var(--display); font-size: 20px; color: rgba(255,255,255,.35); padding-bottom: 12px; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--strip-2); margin: 18px 0 14px; }
.bar div { height: 100%; transition: width .4s; }
.board-meta { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.65); }
.board-meta strong { color: #fff; }

/* ---------- Fourball / match rows ---------- */
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fb-head .h-section { margin: 0; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.mrow:first-of-type { border-top: 0; }
.mrow-body { flex: 1; min-width: 0; }
.mrow-body .eyebrow { margin-bottom: 8px; }
.side { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; font-size: 14px; }
.side .names { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Team block (scorecard summary) */
.team-line { display: flex; align-items: center; gap: 14px; }
.team-line .names { font-weight: 600; line-height: 1.35; font-size: 14px; }
.team-line + .team-line { margin-top: 16px; }
.team-tag { font-family: var(--display); font-size: 22px; text-transform: uppercase; margin: 0 0 10px; font-weight: 400; }

/* ---------- Hole strip ---------- */
.strip-wrap {
  position: relative;
  background: var(--strip);
  border-radius: 24px;
  overflow: hidden;
}
/* Fade the edges so it's clear there are more holes to scroll to. */
.strip-wrap::before, .strip-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 26px;
  z-index: 1;
  pointer-events: none;
}
.strip-wrap::before { left: 0; background: linear-gradient(90deg, var(--strip), transparent); }
.strip-wrap::after { right: 0; background: linear-gradient(270deg, var(--strip), transparent); }
.strip {
  position: relative;
  padding: 12px 22px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding: 0 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.dragging .hole-dot { pointer-events: none; }
.strip .hole-dot { scroll-snap-align: center; }
.strip::-webkit-scrollbar { display: none; }
.hole-dot {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--display);
  line-height: 1;
  cursor: pointer;
  transition: transform .15s;
}
.hole-dot b { font-weight: 400; font-size: 25px; }
.hole-dot small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.hole-dot.done { background: #4c5730; color: #a3ae74; }
.hole-dot.current {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 0 0 3px var(--strip), 0 0 0 5px var(--olive-soft);
}
.strip-nav { display: flex; justify-content: center; gap: 10px; margin: 14px 0 6px; }

/* ---------- Hole info ---------- */
.hole-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hole-num { font-family: var(--display); font-size: 46px; line-height: .9; text-transform: uppercase; }
.hole-stats { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.format-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}
.format-banner .muted { font-weight: 400; display: block; margin-top: 2px; }

/* ---------- Player score rows ---------- */
.prow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.prow + .prow { border-top: 1px solid var(--line); }
.pinfo { flex: 1; min-width: 0; }
.pname { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmeta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dots { color: var(--olive); letter-spacing: 1px; font-size: 10px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button.step {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.score-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
}
.score-circle.set { background: var(--olive-soft); }
.score-circle.pu { background: var(--strip); color: #fff; font-size: 13px; font-family: var(--body); font-weight: 700; }
.pu-chip { font-size: 10px; padding: 4px 8px; }

/* ---------- Forms ---------- */
label.lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=number], select {
  width: 100%;
  padding: 15px 16px;
  font-size: 16px;
  font-family: var(--body);
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}
input:focus, select:focus { border-color: var(--olive); background: #fff; }
.player-input { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.player-input .name { flex: 1; }
.player-input .hcp { width: 84px; text-align: center; }
.error { color: #b3372c; font-size: 13px; margin: 10px 0; min-height: 1em; }

/* ---------- Share box ---------- */
.share-msg { white-space: pre-line; font-size: 14px; line-height: 1.5; background: var(--surface-2); border-radius: 16px; padding: 14px; margin: 12px 0; }

/* ---------- Scorecard table ---------- */
.scroll { overflow-x: auto; }
table.sc { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.sc th, table.sc td { padding: 7px 5px; text-align: center; border-bottom: 1px solid var(--line); }
table.sc th { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.sc tr.total th { color: var(--ink); font-size: 12px; border-bottom: 0; }
table.sc td a { font-weight: 700; text-decoration: none; }
table.sc sup { color: var(--olive); }
.rmark { display: inline-block; width: 18px; height: 18px; border-radius: 50%; line-height: 18px; font-size: 10px; font-weight: 700; color: #fff; background: var(--half); }
.rmark.blue { background: var(--blue); }
.rmark.red { background: var(--red); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 34px 20px; }
.empty .h-section { margin-bottom: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(120px);
  background: var(--strip);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  transition: transform .3s;
  z-index: 50;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Horizontal scorecard ---------- */
.hsc-card { padding: 0; overflow: hidden; }
.hsc-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
table.hsc { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.hsc th, .hsc td {
  min-width: 42px;
  padding: 8px 2px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  white-space: nowrap;
}
.hsc thead th {
  background: var(--strip);
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  border-bottom: 0;
  padding: 12px 2px;
}
.hsc thead th a { color: inherit; text-decoration: none; display: block; }
.hsc thead th.cur { background: var(--olive); }
.hsc thead th.sum { background: var(--strip-2); font-size: 13px; letter-spacing: .04em; }
.hsc .sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 112px;
  max-width: 112px;
  padding-left: 14px;
  text-align: left;
  background: var(--surface);
  box-shadow: 6px 0 10px -8px rgba(0, 0, 0, .35);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hsc thead .sticky { background: var(--strip); color: rgba(255,255,255,.6); font-family: var(--body); font-size: 10px; }
.hsc tr.info td { font-size: 11px; color: var(--muted); padding: 6px 2px; }
.hsc tr.info td.sum { font-weight: 700; color: var(--ink); }
.hsc td.sum { background: var(--surface-2); }
.hsc td.cur { background: #f3f6e8; }
.hsc .pcell { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }
.hsc .pn { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; max-width: 56px; }
.hsc .ph { font-size: 10px; font-weight: 500; color: var(--muted); }
.hsc .g {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.hsc .g.birdie { border: 1.5px solid var(--olive); border-radius: 50%; }
.hsc .g.eagle { border: 1.5px solid var(--olive); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--olive); }
.hsc .g.bogey { border: 1.5px solid #b9b6aa; border-radius: 5px; }
.hsc .g.dbl { border: 1.5px solid #b9b6aa; border-radius: 5px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #b9b6aa; }
.hsc .p { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; min-height: 12px; }
.hsc .sd { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 9px; color: var(--olive); letter-spacing: -1px; }
.hsc .rmark + .rmark { margin-left: 2px; }
.hsc-legend { padding: 12px 16px 16px; margin: 0; font-size: 11px; }

/* ---------- Menu ---------- */
.menu-wrap { position: relative; z-index: 60; }
.menu {
  position: absolute;
  top: 54px;
  left: 0;
  width: 270px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 8px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  animation: menu-in .16s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.menu-item svg { width: 19px; height: 19px; color: var(--olive); flex: none; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.active { background: var(--olive); color: #fff; }
.menu-item.active svg { color: #fff; }
.menu-label { padding: 14px 14px 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }
.menu-empty { padding: 8px 14px 12px; font-size: 13px; color: var(--muted); }

/* ---------- Leaderboard ---------- */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.lb-row:first-child { border-top: 0; }
.lb-pos { width: 30px; flex: none; text-align: center; font-family: var(--display); font-size: 20px; color: var(--muted); }
.lb-body { flex: 1; min-width: 0; }
.lb-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lb-pts { text-align: center; flex: none; min-width: 52px; }
.lb-pts b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.lb-pts small { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; text-align: center; margin-bottom: 16px; }
.podium-spot { background: var(--strip-2); border-radius: 22px; padding: 14px 6px 12px; color: #fff; }
.podium-spot.first { background: var(--olive); padding-top: 20px; }
.podium-spot .av-stack, .podium-spot > .av { justify-content: center; margin: 0 auto 8px; }
.podium-spot .pname { font-size: 13px; white-space: normal; line-height: 1.25; }
.podium-spot .pts { font-family: var(--display); font-size: 30px; line-height: 1.1; margin-top: 4px; }
.podium-spot .eyebrow { color: rgba(255, 255, 255, .7); }

/* ---------- Scoreboard bar: won (solid) + projected from live matches (faded) ---------- */
.bar { position: relative; height: 10px; }
.bar .seg.live { opacity: .38; }
.bar .seg + .seg.live { margin-left: 1px; }
.bar .seg.live + div + .seg.live, .bar .seg.live + .seg { margin-left: 1px; }
.bar-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.55); }
.bar-key { display: flex; justify-content: center; gap: 16px; margin: -6px 0 12px; font-size: 11px; color: rgba(255,255,255,.55); }
.bar-key span { display: inline-flex; align-items: center; gap: 6px; }
.key-swatch { width: 18px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.8); }
.key-swatch.live { opacity: .38; }

/* ---------- Score box (hole card): tap to open the number pad ---------- */
/* Specific selectors so the general text-input styles (full width, square) don't apply. */
.prow input.score-input[type=text] {
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 0;
  max-height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--num, var(--display));
  font-size: 21px;
  line-height: 1;
  text-align: center;
  caret-color: var(--olive);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.prow input.score-input[type=text].set { background: var(--olive-soft); }
.prow input.score-input[type=text].pu { background: var(--strip); }
.prow input.score-input[type=text]:focus { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); background: var(--surface); cursor: text; }
/* "–" (no score) or "PU" (picked up) label, shown only while the box is empty and not being typed in. */
.score-wrap { position: relative; flex: none; display: block; }
.score-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
}
.score-input.pu + .score-hint { color: #fff; font-size: 13px; }
.score-input:not(:placeholder-shown) + .score-hint,
.score-input:focus + .score-hint { display: none; }

/* Leaderboard: podium positions in the accent colour */
.lb-row.top .lb-pos { color: var(--olive); }
.panel[hidden] { display: none; }

/* ---------- Bottom sheet (e.g. add-to-home-screen steps) ---------- */
.menu-install { width: 100%; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; font-family: inherit; }
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in .15s ease-out;
}
.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 28px 28px 0 0;
  padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
  animation: sheet-up .2s ease-out;
}
.sheet-icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 12px; }
.sheet-steps { margin: 16px 0 18px; padding-left: 22px; line-height: 1.6; font-size: 15px; }
.sheet-steps li + li { margin-top: 6px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
