/* pocket caddy — burgundy library · cormorant garamond · all lowercase · sharp corners · fine icons */
:root {
  --bg: #22090f;
  --surface: #2f1219;
  --ink: #f2e8d8;
  --muted: #bba3a0;
  --accent: #c8a25f;
  --line: rgba(200, 162, 95, 0.3);
  --onaccent: #22090f;

  --fh: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --fb: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --r: 2px;
  --stroke: 1.2;
  --nav-h: 72px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { min-height: 100%; }

/* everything in the app is lowercase, including form controls */
input, button, select, textarea { text-transform: inherit; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  text-transform: lowercase;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}

/* Soft vignette over the whole app (sits under the nav) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 38%, transparent 52%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 5;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

/* ---------- Home hero (full-bleed) ---------- */

.hero {
  position: relative;
  height: 46vh;
  height: 46dvh;
  min-height: 330px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center 38% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(34, 9, 15, 0.72) 0%, rgba(34, 9, 15, 0.2) 34%, rgba(34, 9, 15, 0) 50%, rgba(34, 9, 15, 0.55) 82%, var(--bg) 100%),
    linear-gradient(rgba(60, 12, 24, 0.22), rgba(60, 12, 24, 0.22));
}

.greeting {
  position: absolute;
  left: 28px;
  right: 28px;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.greeting small {
  display: block;
  font-family: var(--fh);
  font-size: 24px;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0.92;
  margin-bottom: 8px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.greeting h1 {
  margin: 0;
  font-family: var(--fh);
  font-weight: 500;
  font-size: clamp(56px, 17vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.content {
  padding: 0 20px;
}

/* ---------- Bottom nav: flat bar + underline (shared by every page) ---------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav .inner {
  max-width: 520px;
  margin: 0 auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.bottom-nav a svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav a.active { color: var(--accent); }

.bottom-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Placeholder course scenery (replaced by images/courses/<id>.jpg) ---------- */
:root {
  --s1: radial-gradient(120% 45% at 25% 104%, #2c5535 0 60%, transparent 61%), radial-gradient(90% 40% at 95% 106%, #3a6843 0 60%, transparent 61%), linear-gradient(to bottom, #222f3f 0%, #6b5a58 45%, #d09a62 66%, #22402a 67%, #1a3322 100%);
  --s2: radial-gradient(110% 42% at 70% 104%, #35603a 0 60%, transparent 61%), radial-gradient(90% 38% at 5% 106%, #2a4d30 0 60%, transparent 61%), linear-gradient(to bottom, #1d2a24 0%, #4a5a48 42%, #a08d55 63%, #294a2c 64%, #193020 100%);
  --s3: radial-gradient(120% 40% at 30% 104%, #345838 0 60%, transparent 61%), radial-gradient(80% 36% at 100% 106%, #2c4d31 0 60%, transparent 61%), linear-gradient(to bottom, #3b4a5c 0%, #8d9aa3 48%, #cbc7b6 64%, #3a5a3a 65%, #213a26 100%);
}
.s1 { background-image: var(--s1); } .s2 { background-image: var(--s2); } .s3 { background-image: var(--s3); }

/* ---------- Courses (library) page ---------- */

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: var(--stroke); stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }

.ph { padding: calc(env(safe-area-inset-top, 0px) + 44px) 22px 10px; }
.ph .eyebrow { font-size: 12px; letter-spacing: 0.34em; color: var(--accent); margin-bottom: 6px; }
.ph h1 { margin: 0; font-family: var(--fh); font-style: italic; font-weight: 400; font-size: 54px; line-height: 1; letter-spacing: -0.01em; }
.ph .cnt { margin-top: 16px; padding-top: 8px; border-top: 4px double var(--line); color: var(--muted); font-size: 14px; letter-spacing: 0.2em; }

.search { display: flex; align-items: center; gap: 10px; margin: 12px 22px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within { border-color: var(--accent); }

.tabs { display: flex; gap: 20px; padding: 16px 22px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; position: relative; padding: 0 0 10px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 17px; cursor: pointer; }
.tabs button.on { color: var(--accent); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }

.regions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px 0; }
.chip { background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 5px 13px; color: var(--muted); font: inherit; font-size: 16px; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--onaccent); }

.sortline { display: flex; justify-content: flex-end; padding: 12px 22px 0; }
.sortwrap { position: relative; }
.sortwrap > button { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.sortwrap b { color: var(--ink); font-weight: 600; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); padding: 6px 0; }
.menu[hidden], .regions[hidden] { display: none; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 16px; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.menu button.on { color: var(--accent); }

.list { padding: 16px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.empty { color: var(--muted); font-style: italic; text-align: center; margin: 30px 0; }

.c { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.c-photo { height: 186px; overflow: hidden; color: #f4ecda; cursor: pointer; }
.c-photo .im { position: absolute; inset: 0; background-size: cover; background-position: center; }
.c-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 5, 9, 0.92), rgba(20, 5, 9, 0.05) 70%); pointer-events: none; }
.c-photo .txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.c h3 { margin: 0; font-family: var(--fh); font-weight: 500; font-size: 26px; line-height: 1.1; }
.c .loc { margin-top: 2px; font-size: 16px; color: rgba(244, 236, 218, 0.82); }
.c .stats { margin-top: 5px; font-size: 15px; color: rgba(244, 236, 218, 0.82); }
.start { display: inline-flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 15px; letter-spacing: 0.14em; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.fav { position: absolute; top: 0; right: 6px; z-index: 4; width: 44px; height: 48px; display: flex; justify-content: center; padding-top: 0; background: none; border: 0; cursor: pointer; }

/* ---------- Course page ---------- */

.course-page { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 96px); }

.chero { position: relative; height: 232px; overflow: hidden; }
.chero .im { position: absolute; inset: 0; background-size: cover; }
.chero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(34, 9, 15, 0.6), rgba(34, 9, 15, 0.05) 38%, rgba(34, 9, 15, 0.5) 78%, var(--bg) 100%); pointer-events: none; }
.chero .back { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 30px); left: 20px; z-index: 6; display: flex; align-items: center; gap: 4px; color: #f4ecda; font-size: 17px; text-decoration: none; }
.chero .ribbon { position: absolute; top: -1px; right: 20px; z-index: 7; display: flex; background: none; border: 0; padding: 0; cursor: pointer; }
.chero .ct { position: absolute; left: 22px; right: 22px; bottom: 14px; z-index: 3; color: #f4ecda; }
.chero .eyebrow { font-size: 12px; letter-spacing: 0.32em; color: #ead9a6; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); margin-bottom: 4px; }
.chero h1 { margin: 0; font-family: var(--fh); font-weight: 500; font-size: 42px; line-height: 1.05; }

.det { padding: 16px 22px 0; }
.det .l1 { font-size: 19px; }
.det .addr { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 2px; color: var(--muted); font-size: 16px; }
.det .addr .start { margin: 0; white-space: nowrap; font-size: 15px; }
.det .l2 { margin-top: 2px; color: var(--muted); font-size: 16px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; background: var(--accent); color: var(--onaccent); border: 1px solid var(--accent); border-radius: var(--r); font: inherit; font-size: 16px; font-style: normal; font-weight: 600; letter-spacing: 0.16em; text-decoration: none; cursor: pointer; }
.btn.outline { display: inline-flex; width: auto; background: none; color: var(--accent); }
.sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); z-index: 9; padding: 28px 18px 12px; background: linear-gradient(to top, var(--bg) 55%, transparent); }
.sticky .btn { max-width: 484px; margin: 0 auto; }

.accs { margin-top: 22px; }
.acc { margin: 0 22px; border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acch { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 17px 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 12px; letter-spacing: 0.26em; cursor: pointer; text-align: left; }
.acch i { font-style: normal; font-size: 22px; letter-spacing: 0; color: var(--accent); }
.acc .in { display: none; padding: 2px 0 22px; }
.acc.open .in { display: block; }

.strow { display: flex; }
.strow > div { flex: 1; min-width: 0; text-align: center; padding: 2px 3px; border-left: 1px solid var(--line); }
.strow > div:first-child { border-left: 0; }
.strow b { display: block; font-family: var(--fh); font-weight: 500; font-size: 25px; line-height: 1.1; }
.strow span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.2; }
.chart { margin-top: 20px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart small { color: var(--muted); font-size: 13px; }
.hl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.hl2 > div { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hl2 small { display: block; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; }
.hl2 b { display: block; font-family: var(--fh); font-weight: 500; font-size: 24px; }
.hl2 span { color: var(--muted); font-size: 14px; }

.nine { margin: 14px 0 4px; font-size: 12px; letter-spacing: 0.26em; color: var(--muted); }
.nine:first-child { margin-top: 4px; }
.sct { width: 100%; border-collapse: collapse; font-size: 16px; }
.sct th { padding: 6px 2px; text-align: center; font-weight: 400; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); border-bottom: 1px solid var(--accent); }
.sct td { padding: 6px 2px; text-align: center; border-bottom: 1px solid var(--line); }
.sct th:first-child, .sct td:first-child { text-align: left; padding-left: 4px; }
.sct td:first-child { color: var(--accent); }
.sct tr.sub td { color: var(--accent); font-weight: 600; border-top: 1px solid var(--accent); border-bottom: 0; }
.sct.total { margin-top: 10px; }

.lrow { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lrow .d { flex: 1; }
.lrow b { font-weight: 600; font-size: 20px; text-align: right; }
.lrow .v { min-width: 30px; text-align: right; color: var(--muted); }
.pbtag { margin-left: 8px; padding: 1px 6px; vertical-align: middle; background: var(--accent); color: var(--onaccent); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.viewall { margin-top: 14px; padding: 0 0 2px; background: none; border: 0; border-bottom: 1px solid var(--accent); color: var(--accent); font: inherit; font-size: 16px; cursor: pointer; }
.empty { text-align: center; padding: 20px 10px 6px; }
.empty p { margin: 0 0 6px; font-style: italic; font-size: 19px; }
.empty small { display: block; margin-bottom: 14px; color: var(--muted); font-size: 15px; }

.course-page .empty { margin: 0; }

/* ---------- Rounds page (live round, start, summaries) ---------- */

body.live .bottom-nav { display: none; }
body.live .sticky { bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.rnd { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 100px); }
body.live .rnd { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); }
.sticky .btn, .setup .btn { border: 1px solid var(--accent); }
button.btn { font-family: inherit; }

.ph-idle { padding-top: calc(env(safe-area-inset-top, 0px) + 44px); }
.ph-idle .eyebrow, .sumh .eyebrow { font-size: 12px; letter-spacing: 0.34em; color: var(--accent); margin-bottom: 6px; }
.ph-idle h1, .sumh h1 { margin: 0; font-family: var(--fh); font-style: italic; font-weight: 400; font-size: 48px; line-height: 1; }
.ph-idle p { margin: 10px 0 0; color: var(--muted); font-style: italic; font-size: 18px; }
.sumh { padding: calc(env(safe-area-inset-top, 0px) + 30px) 22px 0; }
.sumh .back, .setup .back { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--accent); text-decoration: none; font-size: 17px; }
.sumh h1 { font-size: 40px; }

.cpick { padding: 22px 22px 0; display: flex; flex-direction: column; gap: 12px; }
.cp { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cp .th { width: 72px; height: 64px; flex: none; background-size: cover; }
.cp .tx { flex: 1; } .cp .tx b { display: block; font-family: var(--fh); font-weight: 500; font-size: 23px; line-height: 1.1; } .cp .tx small { color: var(--muted); font-size: 15px; }
.cp .go { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 15px; letter-spacing: 0.12em; }
.bagl { padding: 22px; text-align: center; } .bagl a { color: var(--muted); border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px; }

.setup { padding: calc(env(safe-area-inset-top, 0px) + 20px) 22px 0; }
.selc { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); }
.selc .th { width: 64px; height: 64px; background-size: cover; flex: none; } .selc b { font-family: var(--fh); font-weight: 500; font-size: 23px; display: block; } .selc small { color: var(--muted); font-size: 15px; }
.f-in { margin: 18px 0; } .f-in label { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.24em; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.setup .chip { font-size: 17px; padding: 5px 16px; }
.setup .note, .clubs + .note, .note { color: var(--muted); font-style: italic; font-size: 15px; }
.setup .btn { margin-top: 16px; width: 100%; }

/* live round */
.rl-top { display: flex; justify-content: space-between; align-items: baseline; padding: calc(env(safe-area-inset-top, 0px) + 22px) 22px 10px; border-bottom: 1px solid var(--line); }
.rl-top .crs { font-size: 15px; color: var(--accent); } .rl-top small { font-size: 12px; letter-spacing: 0.26em; color: var(--muted); } .rl-top .tot b { font-weight: 600; font-size: 17px; }
.rl-hole { display: flex; align-items: center; gap: 18px; padding: 16px 22px 6px; }
.rl-hole .no { font-family: var(--fh); font-weight: 500; font-size: 76px; line-height: 0.9; color: var(--accent); }
.rl-hole .meta b { display: block; font-family: var(--fh); font-weight: 500; font-size: 28px; } .rl-hole .meta span { display: block; color: var(--muted); font-size: 16px; }
.rl-map { display: grid; grid-template-columns: 46% 1fr; gap: 14px; padding: 8px 22px 0; align-items: start; }
.mapc { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); }
.hmap { display: block; width: 100%; height: auto; max-height: 460px; }
.m-fw { fill: rgba(86, 138, 92, 0.34); } .m-tee { fill: rgba(96, 156, 104, 0.6); } .m-gr { fill: rgba(112, 176, 116, 0.7); stroke: rgba(255, 255, 255, 0.25); stroke-width: 0.6; }
.m-bk { fill: rgba(222, 204, 158, 0.9); } .m-wt { fill: rgba(96, 138, 164, 0.8); }
.m-arc { fill: none; stroke: rgba(242, 232, 216, 0.3); stroke-width: 0.6; stroke-dasharray: 3 3; } .m-lab { fill: rgba(242, 232, 216, 0.7); font-size: 7.5px; font-family: inherit; }
.m-line { fill: none; stroke: rgba(200, 162, 95, 0.45); stroke-width: 0.8; stroke-dasharray: 2 2; }
.m-aim { stroke: #c8a25f; stroke-width: 1.3; }
.m-mk { fill: #22090f; stroke: #c8a25f; stroke-width: 1.4; } .m-mkt { fill: #c8a25f; font-size: 7px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.m-teemark { fill: #f2e8d8; } .m-pin { stroke: #f2e8d8; stroke-width: 0.9; } .m-flag { fill: #c8a25f; }
.rl-map .side { display: flex; flex-direction: column; gap: 14px; }
.blk small, .hd { display: block; font-size: 12px; letter-spacing: 0.24em; color: var(--muted); margin-bottom: 4px; }
.blk b { font-family: var(--fh); font-weight: 500; font-size: 32px; line-height: 1; display: block; } .blk span { color: var(--muted); font-size: 15px; }
.hz { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 15px; } .hz i { width: 9px; height: 9px; flex: none; background: rgba(222, 204, 158, 0.9); } .hz.water i { background: rgba(96, 138, 164, 0.9); } .hz em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 14px; }
.rl-nomap { margin: 12px 22px 0; padding: 26px 16px; border: 1px dashed var(--line); text-align: center; } .rl-nomap p { margin: 0 0 4px; font-style: italic; font-size: 19px; } .rl-nomap small { color: var(--muted); font-size: 15px; }
.rl-plan { margin: 20px 22px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.stp { display: flex; gap: 14px; align-items: center; padding: 8px 0; } .stp i { width: 30px; height: 30px; flex: none; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-style: normal; color: var(--accent); } .stp b { display: block; font-weight: 600; font-size: 19px; } .stp span { color: var(--muted); font-size: 15px; }
.fine { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; letter-spacing: 0; } .fine a { color: var(--accent); }
.rl-score { margin: 20px 22px 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.rl-score .hd { text-align: left; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 6px; }
.stepper .b { width: 62px; height: 62px; background: none; border: 1px solid var(--accent); color: var(--accent); font: inherit; font-size: 30px; cursor: pointer; }
.stepper .n { min-width: 96px; font-family: var(--fh); font-weight: 500; font-size: 84px; line-height: 1; }
.rl-score .vs { margin-top: 4px; color: var(--muted); }
.rl-foot { display: flex; justify-content: space-between; padding: 18px 22px 0; }
.lk { background: none; border: 0; border-bottom: 1px solid var(--accent); padding: 0 0 1px; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; } .lk.dg { color: var(--muted); border-color: var(--muted); }

/* summary + clubs */
.hero-ring { display: flex; align-items: center; gap: 22px; padding: 22px 22px 4px; }
.hero-ring .rg { width: 104px; height: 104px; flex: none; border: 1px solid var(--accent); border-radius: 50%; outline: 1px solid var(--line); outline-offset: 4px; display: grid; place-items: center; text-align: center; }
.hero-ring .rg b { display: block; font-family: var(--fh); font-weight: 500; font-size: 44px; line-height: 1; color: var(--accent); } .hero-ring .rg span { font-size: 13px; color: var(--muted); }
.hero-ring .tx b { display: block; font-family: var(--fh); font-weight: 500; font-size: 28px; } .hero-ring .tx span { display: block; color: var(--muted); font-size: 16px; }
.sec { padding: 22px 22px 0; } .sh { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; } .sh b { font-weight: 500; font-size: 12px; letter-spacing: 0.26em; }
.dist { margin-top: 16px; } .dist .bar { display: flex; height: 10px; } .dist .lg { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 14px; } .dist .lg em { font-style: normal; }
.h { font-style: normal; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 3px; }
.h.bird, .h.bog, .h.dbl, .h.eag { border: 1px solid var(--accent); } .h.bird, .h.eag { border-radius: 50%; }
.h.dbl, .h.eag { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); margin: 0 3px; }
.lrow .cn { display: block; font-family: var(--fh); font-weight: 500; font-size: 21px; } .lrow .d small { display: block; color: var(--muted); font-size: 15px; } .lrow { text-decoration: none; color: var(--ink); }
.clubs { padding: 8px 22px 0; } .cl { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .cl span { flex: 1; font-size: 19px; }
.cl input { width: 86px; padding: 8px 10px; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 19px; text-align: right; border-radius: var(--r); } .cl input:focus { outline: 0; border-color: var(--accent); } .cl em { font-style: normal; color: var(--muted); }

.lrow.sum { align-items: center; }
.lrow.sum .d { flex: 1; text-align: left; }
.lrow.sum .d .cn { display: block; text-align: left; font-family: var(--fh); font-weight: 500; font-size: 21px; }

/* ---------- Clubs page ---------- */
.clubs-page { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 30px); }
.clubs-page .ph .eyebrow { font-size: 12px; letter-spacing: 0.34em; color: var(--accent); margin-bottom: 6px; }
.clubs-page .ph h1 { margin: 0; font-family: var(--fh); font-style: italic; font-weight: 400; font-size: 52px; line-height: 1; }
.clubs-page .ph p { margin: 10px 0 0; color: var(--muted); font-style: italic; font-size: 17px; line-height: 1.35; }
.bag { padding: 8px 22px 0; }
.bagrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bagrow .nm { flex: 1; font-size: 20px; }
.bagrow em { width: 14px; font-style: normal; color: var(--muted); font-size: 14px; }
.stepper.sm { display: flex; align-items: center; gap: 6px; }
.stepper.sm .b { width: 40px; height: 40px; background: none; border: 1px solid var(--accent); color: var(--accent); font: inherit; font-size: 22px; cursor: pointer; }
.stepper.sm .n { width: 62px; height: 40px; padding: 0; text-align: center; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--fh); font-weight: 500; font-size: 26px; -moz-appearance: textfield; appearance: textfield; min-width: 0; }
.stepper.sm .n::-webkit-outer-spin-button, .stepper.sm .n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm .n:focus { outline: 0; border-color: var(--accent); }
.bagfoot { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 0; color: var(--muted); font-size: 15px; font-style: italic; }

/* ---------- Live round v2 (progress line, slim banner, pinned keypad, slide to submit) ---------- */
body.live .bottom-nav { display: none; }
.rnd { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); }
.lh-prog { padding: calc(env(safe-area-inset-top, 0px) + 26px) 66px 8px 22px; }
.lh-prog .row { display: flex; justify-content: space-between; font-size: 16px; color: var(--accent); }
.lh-prog .row b { color: var(--ink); font-weight: 600; }
.lh-prog .bar { height: 2px; background: var(--line); margin: 8px 0 5px; } .lh-prog .bar i { display: block; height: 2px; background: var(--accent); }
.lh-prog small { font-size: 12px; letter-spacing: 0.26em; color: var(--muted); }
.rl-hole.ban { display: flex; align-items: center; justify-content: space-between; padding: 8px 22px 10px; border-bottom: 1px solid var(--line); }
.rl-hole.ban .no { font-family: var(--fh); font-weight: 500; font-size: 46px; line-height: 1; color: var(--accent); }
.rl-hole.ban .meta { text-align: right; } .rl-hole.ban .meta b { display: inline; font-family: var(--fh); font-weight: 500; font-size: 23px; } .rl-hole.ban .meta span { display: inline; margin-left: 10px; color: var(--muted); font-size: 16px; }
.rl-map.full { display: block; padding: 12px 22px 0; }
.rl-map .dbar { display: flex; gap: 18px; margin-top: 12px; }
.mapc { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); }
.hmap { display: block; width: 100%; height: auto; }
.hm-muted .m-fw { fill: rgba(86, 138, 92, 0.34); } .hm-muted .m-tee { fill: rgba(96, 156, 104, 0.6); } .hm-muted .m-gr { fill: rgba(112, 176, 116, 0.7); stroke: rgba(255, 255, 255, 0.25); }
.hm-muted .m-bk { fill: rgba(222, 204, 158, 0.9); } .hm-muted .m-wt { fill: rgba(96, 138, 164, 0.8); }
.m-arc { fill: none; stroke: rgba(242, 232, 216, 0.32); } .m-lab { fill: rgba(242, 232, 216, 0.78); font-family: inherit; }
.m-line { fill: none; stroke: rgba(200, 162, 95, 0.5); } .m-aim { stroke: #c8a25f; fill: none; }
.m-mk { fill: #22090f; stroke: #c8a25f; } .m-mkt { fill: #c8a25f; font-weight: 700; text-anchor: middle; font-family: inherit; }
.m-teemark { fill: #f2e8d8; } .m-flag { fill: #c8a25f; }
.m-hl { fill: #f2e8d8; font-family: inherit; paint-order: stroke; stroke: rgba(20, 5, 9, 0.85); }
.dotsr { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 20px 22px 0; }
.dotsr i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; } .dotsr i.d { background: var(--accent); opacity: 0.6; }
.dotsr i.c { background: none; border: 1px solid var(--accent); outline: 1px solid var(--accent); outline-offset: 2px; opacity: 1; }
.swp { text-align: center; margin-top: 12px; color: var(--muted); font-style: italic; font-size: 15px; }
.livebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 26px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 78%, transparent); }
.livebar .keypad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 488px; margin: 0 auto; }
.livebar .keypad .k { padding: 9px 0; background: rgba(34, 9, 15, 0.9); border: 1px solid var(--line); color: var(--ink); font-family: var(--fh); font-size: 25px; cursor: pointer; }
.livebar .keypad .k.on { background: var(--accent); border-color: var(--accent); color: var(--onaccent); }
.slide { position: relative; max-width: 488px; margin: 10px auto 0; height: 54px; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent); letter-spacing: 0.12em; font-size: 16px; overflow: hidden; touch-action: pan-y; }
.slide span { padding-left: 46px; pointer-events: none; }
.slide .hdl { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 46px; display: grid; place-items: center; background: var(--accent); color: var(--onaccent); border: 0; cursor: grab; touch-action: none; }
.slide.off { border-color: var(--line); color: var(--muted); } .slide.off .hdl { background: var(--line); color: var(--muted); cursor: default; }
.inter { text-align: center; margin: 60px 22px 0; padding: 34px 22px; border: 1px solid var(--accent); outline: 1px solid var(--line); outline-offset: 4px; }
.inter small { display: block; font-size: 12px; letter-spacing: 0.28em; color: var(--muted); }
.inter b { display: block; font-family: var(--fh); font-weight: 500; font-size: 88px; line-height: 1; color: var(--accent); margin: 8px 0; }
.inter p { margin: 0; font-style: italic; font-size: 20px; } .inter span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; }
.inter.savedc { margin-top: 90px; } .inter.savedc .lk { display: inline-block; margin-top: 18px; text-decoration: none; }
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(8, 2, 4, 0.6); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; padding: 14px 22px calc(22px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--accent); }
.sheet i { display: block; width: 36px; height: 3px; margin: 0 auto 14px; background: var(--line); }
.sheet h3 { margin: 0; font-family: var(--fh); font-weight: 500; font-size: 28px; } .sheet p { margin: 4px 0 16px; color: var(--muted); font-size: 17px; }
.sheet .btn { width: 100%; max-width: 488px; margin: 0 auto; } .sheet .lk { display: block; margin: 16px auto 0; }
.f-in .datef { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 14px; border: 1px solid var(--line); letter-spacing: 0; font-size: 19px; color: var(--ink); position: relative; }
.f-in .datef input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.lk { background: none; border: 0; border-bottom: 1px solid var(--accent); padding: 0 0 1px; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; }

/* ---------- Finished round page ---------- */
.round-page { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 30px); }
.dh-banner { position: relative; height: 210px; overflow: hidden; }
.dh-banner .im { position: absolute; inset: 0; background-size: cover; }
.dh-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(34, 9, 15, 0.6), rgba(34, 9, 15, 0.05) 40%, rgba(34, 9, 15, 0.5) 78%, var(--bg)); }
.dh-banner .back { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 30px); left: 20px; z-index: 5; display: flex; align-items: center; gap: 4px; color: #f4ecda; text-decoration: none; font-size: 17px; }
.dh-banner .ct { position: absolute; left: 22px; right: 22px; bottom: 12px; z-index: 3; color: #f4ecda; }
.dh-banner .eyebrow { font-size: 12px; letter-spacing: 0.32em; color: #f3e6bd; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 0, 0, 0.7); margin-bottom: 4px; }
.dh-banner h1 { margin: 0; font-family: var(--fh); font-weight: 500; font-size: 40px; line-height: 1.05; }
.hero-big { padding: 22px 22px 4px; } .hero-big b { font-family: var(--fh); font-weight: 500; font-size: 88px; line-height: 0.9; color: var(--accent); } .hero-big span { margin-left: 12px; color: var(--muted); font-size: 20px; }
.round-page .hrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.round-page .hn { width: 32px; height: 32px; flex: none; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.round-page .hrow .m { flex: 1; } .round-page .hrow .m small { color: var(--muted); font-size: 15px; }
.round-page .mk { font-family: var(--fh); font-weight: 500; font-size: 24px; }
.acts { display: flex; gap: 22px; flex-wrap: wrap; padding: 22px 22px 6px; } .acts a { color: var(--accent); border-bottom: 1px solid var(--accent); font-size: 16px; padding-bottom: 1px; cursor: pointer; } .acts a.dg { color: var(--muted); border-color: var(--muted); }

/* ---------- Home: play prompt, resume, summaries ---------- */
.content { padding: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px); }
.ready { padding: 8px 22px 0; }
.ready .eyebrow { font-size: 12px; letter-spacing: 0.34em; color: var(--accent); margin-bottom: 6px; }
.ready h2 { margin: 0; font-family: var(--fh); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; }
.ready p { margin: 8px 0 0; color: var(--muted); font-style: italic; font-size: 18px; }
.cpick.big { padding: 18px 22px 0; gap: 14px; }
.cpick.big .cp { flex-direction: column; align-items: stretch; padding: 0; position: relative; }
.cpick.big .cp .th { width: 100%; height: 124px; }
.cpick.big .cp .tx { padding: 10px 14px 0; } .cpick.big .cp .go { padding: 6px 14px 13px; }
.resumec { margin: 8px 22px 0; padding: 16px; border: 1px solid var(--accent); outline: 1px solid var(--line); outline-offset: 3px; }
.resumec small { display: block; font-size: 12px; letter-spacing: 0.26em; color: var(--accent); }
.resumec b { display: block; margin: 4px 0 2px; font-family: var(--fh); font-weight: 500; font-size: 28px; } .resumec span { color: var(--muted); font-size: 16px; display: block; }
.resumec .start { margin-top: 12px; text-decoration: none; }
.strow.season { margin: 22px 22px 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.content .sec { padding-top: 24px; }

/* form controls don't inherit the numeral setting */
button, input, select, textarea { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

.stp span { display: block; }

/* ---------- Exit round ---------- */
.xbtn { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 20px); right: 18px; z-index: 15; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; background: rgba(34, 9, 15, 0.75); border: 1px solid var(--line); color: var(--muted); border-radius: var(--r); cursor: pointer; }
.xbtn:active { border-color: var(--accent); color: var(--accent); }
.sheet p { max-width: 488px; margin-left: auto; margin-right: auto; }
.sheet .btn.outline { width: 100%; max-width: 488px; margin: 0 auto; border-color: var(--muted); color: var(--muted); }
.sheet .btn.outline:active { border-color: var(--accent); color: var(--accent); }

/* ---------- More page ---------- */
.more-page { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 30px); }
.ph.sub { padding-top: calc(env(safe-area-inset-top, 0px) + 30px); }
.ph.sub h1 { font-style: normal; font-weight: 500; font-size: 40px; }
.ph.sub .back { margin-bottom: 12px; }
.back { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 17px; text-decoration: none; }

.hcring { display: flex; align-items: center; gap: 20px; padding: 18px 22px 6px; }
.hcring .rg { width: 96px; height: 96px; flex: none; border: 1px solid var(--accent); border-radius: 50%; outline: 1px solid var(--line); outline-offset: 4px; display: grid; place-items: center; text-align: center; }
.hcring .rg b { display: block; font-family: var(--fh); font-weight: 500; font-size: 36px; line-height: 1; color: var(--accent); }
.hcring .rg span { font-size: 12px; color: var(--muted); }
.hcring .tx b { display: block; font-weight: 600; font-size: 18px; line-height: 1.25; }
.hcring .tx span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.hcnone { padding: 18px 22px 6px; color: var(--muted); font-style: italic; font-size: 16px; }

.more-page .grp { margin-top: 20px; }
.more-page .rowlink { display: block; width: 100%; background: none; border: 0; padding: 0; text-align: left; text-decoration: none; color: inherit; font: inherit; cursor: pointer; }
.more-page .row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.more-page .row .lbl { flex: 1; font-size: 19px; }
.more-page .row .val { color: var(--muted); font-size: 16px; }
.more-page .row .chev { color: var(--muted); }
.more-page .rowicon, .more-page .row > svg:first-child { color: var(--accent); }

.about-para { padding: 16px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.about-para.lk-line { padding-top: 12px; }
.credit { margin: 16px 22px 0; padding: 14px; border-left: 2px solid var(--accent); background: var(--surface); font-size: 15px; color: var(--muted); line-height: 1.5; }
.credit b { color: var(--ink); font-weight: 600; }

.stat3 { display: flex; padding: 8px 22px 0; }
.stat3 > div { flex: 1; text-align: center; border-left: 1px solid var(--line); padding: 2px; }
.stat3 > div:first-child { border-left: 0; }
.stat3 b { display: block; font-family: var(--fh); font-weight: 500; font-size: 26px; }
.stat3 span { color: var(--muted); font-size: 13px; }

.rows-card { margin: 12px 22px 0; border: 1px solid var(--line); }
.rows-card .row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.rows-card .row:last-child { border-bottom: 0; }
.rows-card .radio { width: 18px; height: 18px; border: 1px solid var(--accent); border-radius: 50%; flex: none; }
.rows-card .radio.on { background: radial-gradient(var(--accent) 0 45%, transparent 46%); }

.dz { margin: 20px 22px 0; padding: 14px; border: 1px solid rgba(200, 140, 120, 0.4); }
.dz b { display: block; color: #c98b7a; font-size: 18px; margin-bottom: 3px; }
.dz span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.dz .go { display: inline-block; margin-top: 8px; background: none; border: 0; padding: 0; color: #c98b7a; border-bottom: 1px solid #c98b7a; font: inherit; font-size: 15px; cursor: pointer; }
.more-page .sheet .btn.outline { border-color: #c98b7a; color: #c98b7a; }

.cp .homepin { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; letter-spacing: 0.14em; vertical-align: middle; }
.credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--muted); }

/* tiny caption under the home greeting */
.tiny-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(242, 232, 216, 0.55);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
