/* DrillTree design kit v1. Tokens and rules: docs/design/style-guide.md */
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 400 700; font-display: swap; src: url(fonts/figtree-variable.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  /* neutrals: green-tinted blacks */
  --ink-0: #0a1310;   /* page */
  --ink-1: #111d19;   /* card */
  --ink-2: #182823;   /* raised, inputs, selected */
  --ink-3: #22362f;   /* lines */
  --fg: #edf2ee;
  --fg-2: #a2b4ac;
  --fg-3: #6c8178;
  /* brand */
  --flag: #f4c430;    /* the one main action, points */
  --flag-ink: #1c1600;
  --tile: #f3efe2;    /* scoreboard tile */
  --tile-ink: #101a16;
  /* scoring zones: inner -> outer. Only for scores. */
  --z0: #38c776;      /* inner ring, pass, success */
  --z1: #f0a53a;      /* middle ring */
  --z2: #e5685a;      /* outer ring, fail, miss */
  --zout: #a3271c;    /* outside the rings: a miss, deeper red than the outer ring */
  --zpen: #8a2a22;    /* penalty */
  --fav: #ff6b7a;
  --social: #5aa9ff;  /* Challenge your friend only */
  --name: #6fe3e0;    /* people, nicknames and clubs inside text (26 Nov 2026) */

  --f-display: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-s: 10px; --r-m: 16px; --r-l: 22px; --r-pill: 999px;

  /* legacy names used across the app */
  --bg: var(--ink-0); --card: var(--ink-1); --card2: var(--ink-2); --text: var(--fg); --muted: var(--fg-2);
  --accent: var(--flag); --good: var(--z0); --bad: var(--z2); --line: var(--ink-3); --radius: var(--r-m);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ink-0); color: var(--fg); font: 16px/1.5 var(--f-body); }
a { color: var(--flag); text-decoration: none; }
:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--ink-0); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--ink-3); }
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 8px; max-width: 640px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font: 700 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.brand svg { color: var(--flag); flex: none; }
.brand { flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.brand-tree { color: var(--flag); }
.brand-sub { font: 600 11px/1 var(--f-display); letter-spacing: .16em; color: var(--fg-3); }
.pts { background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--flag); font: 700 17px/1 var(--f-display); letter-spacing: .04em;
  padding: 6px 12px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 auto 10px; padding: 4px; max-width: calc(640px - 32px);
  width: calc(100% - 32px); background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-pill); }
nav a { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: var(--r-pill); color: var(--fg-3); font-weight: 600; font-size: 15px; }
nav a.on { background: var(--ink-2); color: var(--flag); }
main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }

/* ---------- type ---------- */
h1 { font: 700 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin: 10px 0 12px; text-wrap: balance; }
h2 { font: 700 24px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin: 24px 0 10px; }
h3 { font: 600 13px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); margin: 22px 0 8px; }
ul, ol { padding-left: 20px; margin: 4px 0; }
li { margin: 6px 0; }
li::marker { color: var(--flag); font-family: var(--f-display); font-weight: 700; }
.muted { color: var(--fg-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.accent { color: var(--flag); }
.warn { background: color-mix(in srgb, var(--z1) 14%, var(--ink-1)); border: 1px solid color-mix(in srgb, var(--z1) 40%, var(--ink-3)); padding: 10px 14px; border-radius: var(--r-m); }
.tip { background: var(--ink-1); border: 1px solid var(--ink-3); border-left: 3px solid var(--flag); padding: 10px 14px; border-radius: var(--r-s); }
.legend { font-size: 12px; color: var(--fg-3); margin: 0 0 10px; }
h2 + p.muted { margin-top: -4px; }

/* ---------- cards ---------- */
.card { display: block; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-l); padding: 14px 16px; margin: 10px 0; color: var(--fg); }
.resume { background: radial-gradient(120% 120% at 100% 0%, #1d3a2e 0%, var(--ink-1) 65%); border-color: color-mix(in srgb, var(--flag) 55%, var(--ink-3)); font-weight: 600; }
.card.ask { border-color: color-mix(in srgb, var(--z0) 50%, var(--ink-3)); margin-top: 16px; }
.card.nothere { border: 1px dashed var(--z1); margin-top: 16px; }
details.card summary { cursor: pointer; list-style: none; padding: 4px 0; }
details.card summary::-webkit-details-marker { display: none; }
.done-banner { background: color-mix(in srgb, var(--z0) 12%, var(--ink-1)); border: 1px solid var(--z0); border-radius: var(--r-l); padding: 14px 16px; margin: 10px 0; }
.done-banner .btn { margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stats div { background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stats .muted.small { font: 600 11px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.stats b { font: 700 20px/1.1 var(--f-display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.cat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 10px 9px; border-radius: var(--r-m);
  border: 1px solid var(--ink-3); background: var(--ink-1); color: var(--fg); font: inherit; cursor: pointer; touch-action: manipulation; text-align: left; }
.cat.on { border-color: var(--flag); background: var(--ink-2); }
.cat-icon { font-size: 18px; line-height: 1.1; }
.cat-label { font: 700 15px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.cat-count { font-size: 11px; font-weight: 600; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.bar { width: 100%; height: 4px; margin-top: 3px; border-radius: 2px; background: var(--ink-3); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--z0); border-radius: 2px; }

/* ---------- skill tree ---------- */
.tier { margin-bottom: 6px; }
.tier-label { font: 600 12px/1 var(--f-display); color: var(--fg-3); text-transform: uppercase; letter-spacing: .16em; margin: 16px 0 8px 2px; }
.tree { display: flex; flex-direction: column; gap: 10px; }
.node { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 12px; min-height: 64px;
  background: var(--ink-1); border-radius: var(--r-m); color: var(--fg); border: 1px solid var(--ink-3); }
.node + .node::before { content: ""; position: absolute; left: 31px; top: -11px; width: 2px; height: 10px; background: var(--ink-3); }
.node.open { border-color: color-mix(in srgb, var(--flag) 55%, var(--ink-3)); }
.node.passed { border-color: color-mix(in srgb, var(--z0) 35%, var(--ink-3)); }
.node.locked { opacity: .55; }
.node.buy { border: 1px dashed color-mix(in srgb, var(--flag) 60%, var(--ink-3)); }
.node.skip { border: 1px dashed var(--z0); opacity: .85; }
.node-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-0); border: 2px solid var(--ink-3); font-size: 18px; }
.node.open .node-icon { border-color: var(--flag); }
.node.passed .node-icon { border-color: var(--z0); }
.node-body { display: flex; flex-direction: column; min-width: 0; }
.node-body b { font-weight: 600; line-height: 1.25; }
.node-pts { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; color: var(--flag); font: 700 18px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.node-pts small { font: 600 10px/1.4 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.node.passed .node-pts { color: var(--fg-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink-3); border-radius: var(--r-pill);
  padding: 0 20px; min-height: 52px; font: 700 18px/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase;
  background: var(--ink-2); color: var(--fg); cursor: pointer; touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; }
.btn.primary { background: var(--flag); color: var(--flag-ink); border-color: var(--flag); box-shadow: 0 8px 24px -12px rgba(244, 196, 48, .6); }
.btn.good { background: var(--z0); border-color: var(--z0); color: #04210f; }
.num-pad .btn.fin { background: color-mix(in srgb, var(--z0) 32%, var(--ink-1)); border-color: color-mix(in srgb, var(--z0) 70%, transparent); }
.num-pad .btn.fout { background: color-mix(in srgb, var(--z2) 28%, var(--ink-1)); border-color: color-mix(in srgb, var(--z2) 60%, transparent); }
.num-pad .btn.fin.on, .num-pad .btn.fout.on { border-color: #fff; }
.btn.bad { background: var(--z2); border-color: var(--z2); color: #2a0703; }
.btn.ghost { background: transparent; color: var(--fg-2); }
.btn.warnbtn { background: var(--z1); border-color: var(--z1); color: #2a1700; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn.big { min-height: 76px; font-size: 30px; flex: 1; border-radius: var(--r-m); }
.btn.wide { width: 100%; margin: 6px 0; }
.btn.share-btn { min-height: 66px; font-size: 21px; background: color-mix(in srgb, var(--social) 22%, var(--ink-1)); border: 1.5px solid var(--social); color: #eaf4ff; gap: 12px; }
.share-sheet .sheet-opts .btn { justify-content: flex-start; min-height: 60px; }
.share-preview img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: var(--r-m); background: var(--ink-0); }
.share-preview .btn-row { margin-bottom: 0; }
.btn-row { display: flex; gap: 8px; margin: 12px 0; }
.btn-row .btn.wide { margin: 0; flex: 1; }
.back { display: inline-flex; align-items: center; min-height: 40px; color: var(--fg-2); font-weight: 600; }
.fav { background: var(--ink-1); border: 1px solid var(--ink-3); width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1;
  color: var(--fg-2); cursor: pointer; flex: none; touch-action: manipulation; }
.fav.on { color: var(--fav); }
.heart { color: var(--fav); }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.btn, a, summary { touch-action: manipulation; }

/* ---------- drill runner ---------- */
.run-top { display: flex; justify-content: space-between; align-items: center; }
.runner-head { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 14px 0; background: var(--ink-1);
  border: 1px solid var(--ink-3); border-radius: var(--r-l); padding: 12px 4px; }
.runner-head .muted { font: 600 11px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.huge { font: 700 44px/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.huge small { font: 600 18px var(--f-display); color: var(--fg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--ink-2); border-radius: var(--r-pill); padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--ink-3); }
.dot.good { background: var(--z0); border: 0; }
.dot.bad { background: var(--z2); border: 0; }
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.zone-grid .btn { min-height: 76px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 14px;
  border-radius: var(--r-m); font-size: 22px; letter-spacing: .03em; text-align: left; }
.zone-grid .btn small { font: 600 13px var(--f-body); letter-spacing: 0; text-transform: none; opacity: .8; }
.zone-grid .btn.primary { box-shadow: none; }
.zone-grid > .btn:last-child:nth-child(odd) { grid-column: span 2; min-height: 58px; }
.btn.zone-0 { background: var(--z0); border-color: var(--z0); color: #04210f; }
.btn.zone-1 { background: var(--z1); border-color: var(--z1); color: #2a1700; }
.btn.zone-2 { background: var(--z2); border-color: var(--z2); color: #2a0703; }
/* Par on the course zone buttons (20 Nov 2026): a lighter green, clearly a live button (the soft .ok green read as disabled). */
.btn.zone-par { background: color-mix(in srgb, var(--z0) 55%, #fff); border-color: color-mix(in srgb, var(--z0) 55%, #fff); color: #04210f; }
.btn.zone-out { background: var(--ink-2); border-color: var(--ink-3); color: var(--fg); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; }
.sw.zone-hole { background: var(--flag); } .sw.zone-0 { background: var(--z0); } .sw.zone-1 { background: var(--z1); }
.sw.zone-2 { background: var(--z2); } .sw.zone-out { background: var(--zout); } .sw.zone-pen { background: var(--zpen); }

/* ---------- inputs ---------- */
.set-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.inputs.two { grid-template-columns: 1fr 1fr; }
.inputs label { display: flex; flex-direction: column; gap: 4px; font: 600 11px var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
input, textarea { width: 100%; font: inherit; font-size: 22px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--ink-3);
  background: var(--ink-0); color: var(--fg); }
input { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
input:focus, textarea:focus { outline: none; border-color: var(--flag); }
textarea { font-size: 15px; min-height: 64px; margin: 12px 0 4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; color: var(--fg-2); }

/* ---------- tables ---------- */
table.zones, table.levels { width: 100%; border-collapse: collapse; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); overflow: hidden; }
table.zones td, table.levels td { padding: 10px 14px; border-bottom: 1px solid var(--ink-3); }
table.zones tr:last-child td, table.levels tr:last-child td { border-bottom: 0; }
table.zones td:last-child, table.levels td:last-child { text-align: right; font: 700 18px var(--f-display); font-variant-numeric: tabular-nums; }

/* ---------- result ---------- */
.result { text-align: center; padding: 24px 0 8px; }
.result .huge { font-size: 72px; display: inline-block; min-width: 1.6em; padding: 6px 14px 2px; margin: 6px 0; border-radius: 10px;
  background: var(--tile); color: var(--tile-ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.big-emoji { font-size: 56px; }
.tag { display: inline-block; background: var(--ink-2); border: 1px solid var(--ink-3); padding: 6px 14px; border-radius: var(--r-pill); margin: 4px;
  font: 700 15px var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.tag.good { background: var(--z0); border-color: var(--z0); color: #04210f; }
.board li, .hist li { margin: 10px 0; }
.board li::marker { color: var(--fg-3); }
.hist { list-style: none; padding: 0; }
.hist li { background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); padding: 10px 14px; }

.env { font: 700 12px/1 var(--f-display); letter-spacing: .1em; background: var(--z2); color: #fff; padding: 3px 6px; border-radius: 6px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- feedback round 2: subtitle, Combine hero, score-to-beat table, survey (see docs/design/mockups.html) ---------- */
.subtitle { color: var(--fg-2); font-size: 14px; margin: -6px 0 8px; }
.eyebrow { display: block; font: 600 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--flag); }
.card.combine { border-color: var(--flag); background: radial-gradient(120% 100% at 100% 0%, #2a3a1c 0%, var(--ink-1) 62%); }
.card.combine .combine-title { margin: 8px 0 8px; font-size: 32px; }
.card.combine.mini { padding: 10px 14px; background: var(--ink-1); }
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 6px; }
.part { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: var(--r-s); background: var(--ink-0); border: 1px solid var(--ink-3);
  font: 600 11px var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.part i { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--ink-3); display: grid; place-items: center; font-style: normal; font-weight: 700; color: #04210f; }
.part.done i { background: var(--z0); border: 0; }
.hcp { display: grid; gap: 2px 0; font-variant-numeric: tabular-nums; text-align: center; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); padding: 8px 6px; }
.hcp span { font: 700 17px/1.6 var(--f-display); color: var(--fg-2); }
.hcp .h { font: 600 11px/1.6 var(--f-display); color: var(--fg-3); letter-spacing: .04em; }
.hcp .rl { text-align: left; font: 600 10px/1.9 var(--f-display); letter-spacing: .1em; color: var(--fg-3); overflow: hidden; }
.hcp .lv { font: 700 11px/1.2 var(--f-display); letter-spacing: .08em; color: var(--flag); }
.hcp .you { color: var(--flag-ink); background: var(--flag); border-radius: 6px; }
.survey-card { text-align: center; }
.h3like { display: block; font: 600 13px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); margin-bottom: 8px; }
.survey { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.survey button { height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--ink-3); background: var(--ink-1); color: var(--fg-2); font: 600 13px var(--f-body); cursor: pointer; touch-action: manipulation; }
.survey button.on { border-color: var(--flag); color: var(--flag); }
.pts { white-space: nowrap; }

/* ---------- design kit build 2: icons, calm home, runners, result ---------- */
.ic { flex: none; vertical-align: -3px; }
.pts small { font: 600 11px var(--f-display); letter-spacing: .1em; color: var(--fg-3); text-transform: uppercase; }
.btn .ic { margin: 0 -2px; }
.btn.text { background: none; border-color: transparent; color: var(--fg-2); min-height: 40px; font-size: 15px; }
.tagi { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ic.ok, .hico.ok { color: var(--z0); } .ic.no, .hico.no { color: var(--z2); }

/* home */
.card.hero { background: radial-gradient(120% 110% at 100% 0%, #1d3a2e 0%, var(--ink-1) 62%); border-color: color-mix(in srgb, var(--flag) 45%, var(--ink-3)); padding: 16px; }
.hero-title { margin: 8px 0 8px; font-size: 32px; line-height: .95; }
.card.hero .btn.primary, .card.combine .btn.primary { margin-top: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 24px 0 10px; }
.section-head h2 { margin: 0; font-size: 22px; }
.cat-icon { color: var(--fg-2); display: flex; }
.cat.on .cat-icon { color: var(--flag); }
.fav-cat .cat-icon { color: var(--fav); }
.fold { margin: 0 0 10px; }
.fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px dashed var(--ink-3); color: var(--fg-2); font-weight: 600; font-size: 14px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: attr(data-show); margin-left: auto; font: 600 12px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.fold[open] summary::after { content: attr(data-hide); }
.fold[open] summary { margin-bottom: 10px; }
.fold.check .ic { color: var(--z0); }
.replay { margin-top: 20px; }
.node-icon { font: 700 14px/1 var(--f-display); letter-spacing: .04em; color: var(--fg-3); }
.node.open .node-icon { color: var(--flag); }
.node.passed .node-icon { background: var(--z0); border-color: var(--z0); color: #04210f; }
.node.skip .node-icon { color: var(--z0); }
.node .heart { display: inline-flex; vertical-align: -1px; }
.fav { display: grid; place-items: center; }
.fav.on { color: var(--fav); border-color: color-mix(in srgb, var(--fav) 50%, var(--ink-3)); }

/* pass bar */
.passline { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pbar { flex: 1; height: 6px; border-radius: 3px; background: var(--ink-3); position: relative; }
.pbar span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--flag); transition: width .25s ease; }
.pbar i { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; background: var(--fg); border-radius: 1px; }

/* runner */
.run-title { margin: 6px 0 8px; }
.runner-head .huge.accent { display: inline-block; min-width: 1.4em; padding: 4px 8px 0; border-radius: 8px; background: var(--tile); color: var(--tile-ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.balls { display: grid; gap: 6px; margin: 12px 0; }
.ball { aspect-ratio: 1; max-width: 34px; width: 100%; justify-self: center; border-radius: 50%; border: 2px dashed var(--ink-3);
  display: grid; place-items: center; font: 700 13px/1 var(--f-display); color: var(--ink-0); font-variant-numeric: tabular-nums; }
.ball.cur { border: 2px solid var(--flag); }
.ball.h { background: var(--flag); border: 0; }
.ball.z0 { background: var(--z0); border: 0; }
.ball.z1 { background: var(--z1); border: 0; }
.ball.z2 { background: var(--z2); border: 0; }
.ball.zout { background: var(--zout); border: 0; color: var(--fg); }
.ball.pen { background: var(--zpen); border: 0; color: var(--fg); }
.ask-label { margin: 4px 0 0; font: 600 13px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
/* Distance is the big label; points sit small in a round badge, same place on every button. */
.zone-grid .btn { position: relative; padding-right: 48px; }
.zone-grid .btn em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px;
  border-radius: 13px; background: rgba(0, 0, 0, .16); font: 700 15px/1 var(--f-display); font-style: normal; letter-spacing: 0; }
/* Fast tapping: no text selection or callout stealing a tap, no grey flash. */
.runner, .zone-grid, .btn-row, .balls, .cnt-list { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button { -webkit-tap-highlight-color: transparent; }
.zone-grid .btn:disabled { opacity: .35; }
.undo-row { display: flex; justify-content: center; margin: 10px 0; }
.chip.good { background: color-mix(in srgb, var(--z0) 22%, var(--ink-2)); color: var(--fg); }
.chip.bad { background: color-mix(in srgb, var(--z2) 22%, var(--ink-2)); color: var(--fg); }
.notes { margin: 14px 0 6px; }
.notes summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--fg-2); font-weight: 600; font-size: 14px; }
.notes summary::-webkit-details-marker { display: none; }
.notes textarea { margin-top: 4px; }

/* result */
.result { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0 8px; }
.result p { margin: 0; }
.result .balls { width: 100%; }
.stamp { font: 700 15px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--fg); }
.stamp.good { background: var(--z0); border-color: var(--z0); color: #04210f; }
.stamp.bad { background: transparent; border-color: var(--z2); color: var(--z2); }
.board-tiles { display: flex; align-items: flex-end; gap: 5px; }
.tilech { width: 62px; height: 84px; border-radius: 8px; background: var(--tile); color: var(--tile-ink); display: grid; place-items: center;
  font: 700 72px/1 var(--f-display); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); position: relative; }
.tilech::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .14); }
.tilech.sep { width: auto; background: none; box-shadow: none; color: var(--fg); padding: 0 1px; }
.tilech.sep::after { display: none; }
.tile-unit { font: 700 24px/1 var(--f-display); color: var(--fg-3); text-transform: uppercase; margin: 0 0 8px 4px; }
.deltas { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; width: 100%; }
.delta { background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); padding: 10px 8px; display: grid; justify-items: center; gap: 2px; }
.delta b { font: 700 26px/1 var(--f-display); font-variant-numeric: tabular-nums; display: flex; align-items: center; min-height: 26px; }
.delta b.good { color: var(--z0); }
.delta > span:last-child { font-size: 12px; color: var(--fg-3); }

/* history and combine list */
.hist li.hrow { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.hmedal { width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
.hico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-0); border: 1px solid var(--ink-3); }
.hbody { display: flex; flex-direction: column; min-width: 0; }
.hbody a { color: var(--fg); }
.hval { font: 700 20px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; vertical-align: -5px; border-radius: 50%; border: 2px dashed var(--ink-3); color: #04210f; }
.sum-ico.done { background: var(--z0); border: 0; }
.status-line { margin: 0 0 12px; }
.stamp.small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; letter-spacing: .14em; }
.card.ask { display: flex; flex-direction: column; gap: 4px; }
.card.ask .btn.wide { margin: 0; }
.card.ask > b { margin-bottom: 8px; }

/* ---------- build 3: XP icon, medals, gates, compact tiles, editable runner, full-screen result ---------- */
:root { --bronze: #d08f52; --silver: #cdd5d9; --gold: #f4c430; --diamond: #7fd6f0; }
.xp { display: inline-flex; align-items: center; gap: 3px; color: var(--flag); font-weight: 700; white-space: nowrap; --xp-ink: var(--flag-ink); }
.xp .ic { vertical-align: 0; }
.pts { display: inline-flex; align-items: center; transition: transform .2s ease; }
.pts .xp { font: 700 18px/1 var(--f-display); letter-spacing: .02em; }
.pts.bump { transform: scale(1.18); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flag) 40%, transparent); }
.node-pts .xp { font: 700 17px/1 var(--f-display); }
.subtitle .xp { font-weight: 600; }
.ic.flip { transform: rotate(180deg); }
body.focus nav { display: none; }
body.focus .top { padding-bottom: 2px; }

/* medals */
.medal { flex: none; }
.medal.bronze { color: var(--bronze); } .medal.silver { color: var(--silver); } .medal.gold { color: var(--gold); } .medal.diamond { color: var(--diamond); }
.medal:not(.earned) { opacity: .75; }
.node.has-medal .node-icon { background: none; border: 0; }
.hcp .lv { display: flex; justify-content: center; }

/* locked = red */
.node.locked, .node.buy { opacity: 1; border: 1px solid color-mix(in srgb, var(--z2) 45%, var(--ink-3)); background: color-mix(in srgb, var(--z2) 6%, var(--ink-1)); }
.node.locked .node-icon, .node.buy .node-icon { color: var(--z2); border-color: color-mix(in srgb, var(--z2) 60%, var(--ink-3)); }
.node.locked .node-body b, .node.buy .node-body b { color: var(--fg-2); }
.stamp.locked { background: color-mix(in srgb, var(--z2) 18%, var(--ink-1)); border-color: var(--z2); color: var(--z2); }
.warn.locked { background: color-mix(in srgb, var(--z2) 14%, var(--ink-1)); border-color: var(--z2); color: var(--fg); display: flex; gap: 8px; align-items: center; }
.warn.locked .ic { color: var(--z2); }

/* compact area tiles */
.cats { gap: 6px; }
.cat { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; row-gap: 6px; align-items: center; padding: 9px 10px 8px; min-height: 56px; }
.cat-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.cat-label { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.cat-count { font-size: 11px; margin-top: 1px; }
.cat .bar { grid-column: 1 / -1; margin: 0; }
.fav-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--ink-3);
  background: var(--ink-1); color: var(--fg-2); font: 600 13px var(--f-body); cursor: pointer; }
.fav-chip .ic { color: var(--fav); }
.fav-chip.on { border-color: var(--fav); color: var(--fg); }
.section-head.sub { margin: 18px 0 8px; }
.section-head.sub h3 { margin: 0; }

/* hero cards */
.hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hero-head .hero-title { margin: 0 0 6px; }
.pill { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--flag); color: var(--flag-ink);
  font: 700 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; margin-top: 2px; }
.card.combine .subtitle { margin: 0 0 4px; }
button.part { font: 600 11px var(--f-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; min-height: 62px; color: var(--fg-2); }
button.part i { border: 0; background: var(--ink-2); color: var(--fg-2); width: 28px; height: 28px; }
button.part.on { border-color: var(--flag); color: var(--fg); background: color-mix(in srgb, var(--flag) 10%, var(--ink-0)); }
button.part.on i { color: var(--flag); }
button.part.done { opacity: 1; cursor: default; }
button.part.done i { background: var(--z0); color: #04210f; }
.skip-line { margin: -2px 0 6px; text-align: center; }
.linkbtn { background: none; border: 0; color: var(--fg-2); font: 500 14px var(--f-body); text-decoration: underline; text-underline-offset: 3px; padding: 8px; cursor: pointer; }
.card.combine.mini { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.card.combine.mini > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* gate bar */
.gate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 12px 0 4px; }
.gate-end { display: flex; }
.gate-start { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--fg-3); margin: 0 6px; }
.gbar { height: 10px; border-radius: 5px; background: var(--ink-3); overflow: hidden; }
.gbar span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--flag) 70%, var(--z0)), var(--flag)); transition: width .35s ease; }
.gate-text { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--fg); text-align: center; }
.gate.done { grid-template-columns: auto 1fr; }
.gate.done .gate-text { grid-column: 2; text-align: left; }
.gate.fresh .gbar span { animation: gatefill .6s ease; }
@keyframes gatefill { from { width: 100%; } }
.toast { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 6px auto 0; padding: 8px 14px; width: fit-content; border-radius: var(--r-pill);
  background: var(--ink-2); border: 1px solid var(--flag); animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* editable runner */
button.ball { font: 700 13px/1 var(--f-display); padding: 0; cursor: pointer; }
.ball.sel { outline: 3px solid var(--fg); outline-offset: 2px; transform: scale(1.08); }
.order-hint { margin: -4px 0 8px; text-align: center; font-size: 12px; color: var(--fg-3); }
.zone-grid .btn.on { outline: 3px solid var(--fg); outline-offset: 2px; }
.btn.zone-out { background: var(--zout); border-color: var(--zout); color: var(--fg); }
.btn.zone-pen { background: var(--zpen); border-color: var(--zpen); color: var(--fg); }
.done-panel { background: color-mix(in srgb, var(--z0) 10%, var(--ink-1)); border: 1px solid var(--z0); border-radius: var(--r-l); padding: 14px 16px; margin: 12px 0; }
.done-panel p { margin: 0 0 10px; }
.done-panel .btn { margin: 0; }

/* full-screen result */
.result-caption { color: var(--fg-2); font-size: 14px; max-width: 34ch; text-align: center; }
.medal-won { display: flex; align-items: center; gap: 12px; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); padding: 10px 16px; }
.medal-won > span { display: flex; flex-direction: column; text-align: left; }
.medal-won b { font: 700 20px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.result .gate { width: 100%; }
.delta .xp { font: 700 26px/1 var(--f-display); min-height: 26px; }
.delta .xp .ic { width: 22px; height: 22px; }
.delta b.best { color: var(--flag); }
.bests h3 { margin: 0 0 8px; }
.bests ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bests li { display: grid; grid-template-columns: 26px auto 1fr; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: var(--r-s); margin: 0; }
.bests li b { font: 700 20px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.bests li .muted { text-align: right; }
.bests li.me { background: color-mix(in srgb, var(--flag) 14%, var(--ink-2)); box-shadow: inset 0 0 0 2px var(--flag); }
.bests li .pill.now { justify-self: end; height: 22px; font-size: 12px; font-weight: 700; }
.rank { font: 700 14px var(--f-display); color: var(--fg-3); }
.feedback { display: grid; gap: 12px; }
.feedback h3 { margin: 0; text-align: center; }
.stars { display: flex; justify-content: center; gap: 4px; }
.star { width: 52px; height: 52px; border: 0; background: none; color: var(--fg-3); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.star.on { color: var(--flag); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--ink-0); border: 1px solid var(--ink-3); border-radius: var(--r-pill); padding: 4px; }
.seg3 button { min-height: 44px; border: 0; border-radius: var(--r-pill); background: none; color: var(--fg-2); font: 600 14px var(--f-body); cursor: pointer; }
.seg3 button.on { background: var(--ink-2); color: var(--flag); }
.lang-seg button small { display: block; font-size: 11px; font-weight: 500; color: var(--fg-3); line-height: 1.1; }
.btn.favon { color: var(--fav); border-color: color-mix(in srgb, var(--fav) 50%, var(--ink-3)); }
.feedback textarea { margin: 0; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

.btn.primary .xp { color: var(--flag-ink); --xp-ink: var(--flag); }

/* ---------- progression v2: account level, medal counts, medal row, 3rd-best entry ---------- */
.lvl { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.lvl-badge { flex: none; font: 700 16px/1 var(--f-display); letter-spacing: .04em; color: var(--flag-ink); background: var(--flag); border-radius: var(--r-pill); padding: 6px 10px; }
.lvl-main { flex: 1; display: grid; gap: 4px; }
.lvl .gbar { height: 6px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.lvl .gbar span { display: block; height: 100%; background: var(--flag); border-radius: 3px; }
.mdot { font-style: normal; font-weight: 700; font-size: 10px; padding: 0 4px; border-radius: 6px; color: var(--ink-0); margin-left: 2px; }
.mdot.bronze { background: var(--bronze); } .mdot.silver { background: var(--silver); } .mdot.gold { background: var(--gold); } .mdot.diamond { background: var(--diamond); }
.medal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; }
.medal-row .mr { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-s); background: var(--ink-1); border: 1px solid var(--ink-3); }
.medal-row .mr.got { border-color: color-mix(in srgb, var(--flag) 45%, var(--ink-3)); }
.medal-row small { font: 600 11px var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.medal-row b { font: 700 17px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.nth-list { display: grid; gap: 8px; }
.nth-row { display: grid; grid-template-columns: auto 1fr 96px; align-items: center; gap: 12px; margin: 0; }
.nth-name { display: grid; gap: 2px; }
.nth-dots { display: grid; grid-template-columns: repeat(4, 10px); gap: 3px; }
.nth-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.nth-dots i.me { background: var(--flag); box-shadow: 0 0 0 2px color-mix(in srgb, var(--flag) 35%, transparent); }

/* area tiles v3: icon + count on top, full-width label, bar filled with medal colours */
.cat { grid-template-columns: 1fr auto; grid-template-areas: "icon count" "label label" "bar bar"; row-gap: 4px; padding: 8px 10px; }
.cat .cat-icon { grid-area: icon; }
.cat .cat-count { grid-area: count; align-self: center; margin: 0; }
.cat .cat-label { grid-area: label; font-size: 14px; letter-spacing: .03em; white-space: nowrap; overflow: visible; }
.cat .bar { grid-area: bar; display: flex; }
.bar.medals span { display: block; height: 100%; border-radius: 0; }
.bar.medals span:first-child { border-radius: 2px 0 0 2px; }
.bar.medals .bronze { background: var(--bronze); } .bar.medals .silver { background: var(--silver); }
.bar.medals .gold { background: var(--gold); } .bar.medals .diamond { background: var(--diamond); }

/* ---------- hide a drill, slider entry for count drills ---------- */
.hide-btn { color: var(--fg-3); margin-top: 18px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 10px 0; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-pill); }
.seg2 button { height: 40px; border: 0; border-radius: var(--r-pill); background: none; color: var(--fg-3); font: 600 14px var(--f-body); touch-action: manipulation; }
.seg2 button.on { background: var(--ink-2); color: var(--flag); }
.slider-card { text-align: center; display: grid; gap: 8px; }
.slider-card .huge { font-size: 64px; }
.slider { width: 100%; height: 44px; accent-color: var(--flag); padding: 0; border: 0; background: none; }
.slider-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); }

/* ---------- setup effort ---------- */
.effort { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.effort.none { color: var(--z0); } .effort.light { color: var(--fg-2); } .effort.heavy { color: var(--z1); }
.chips-r { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- lives runner, venue card ---------- */
.lives { display: flex; justify-content: center; gap: 8px; margin: 6px 0 2px; color: var(--ink-3); }
.lives .life.on { color: var(--fav); }
.card.venue { margin-top: 12px; }

/* ===== Build 4: XP coin, level track, medals, setup bars, kit row, report sheet ===== */
:root { --xpc: #b48cff; --xp-ink-c: #1d0f3a; }
.xp { color: var(--xpc); --xp-ink: var(--xp-ink-c); }
.pts { color: var(--xpc); }
.pts.bump { box-shadow: 0 0 0 3px color-mix(in srgb, var(--xpc) 45%, transparent); }
.btn.primary .xp { color: var(--xp-ink-c); --xp-ink: var(--xpc); }

.lvl { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; }
.lvl-badge.next { color: var(--fg-2); background: var(--ink-2); border: 1px solid var(--ink-3); padding: 5px 9px; }
.lvl-track { position: relative; flex: 1; height: 26px; border-radius: var(--r-pill); background: var(--ink-2); border: 1px solid var(--ink-3); overflow: hidden; }
.lvl-track .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--xpc) 55%, var(--ink-2)), var(--xpc)); border-radius: var(--r-pill); transition: width .35s ease; }
.lvl-track b { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; gap: 3px; font: 700 15px/1 var(--f-display); letter-spacing: .03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.lvl-track b .xp { color: var(--fg); --xp-ink: var(--ink-0); }
.lvl-track b i { font-style: normal; color: var(--fg-2); }
.lvl-reward { flex: none; display: inline-flex; align-items: center; gap: 2px; font: 700 15px/1 var(--f-display); color: var(--z0); }

.medal.goal { filter: grayscale(1) brightness(.75); opacity: .5; }
.medal.earned { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.medal-slot { display: block; border-radius: 50%; border: 2px dashed var(--ink-3); box-sizing: border-box; }
.node.open .medal-slot { border-color: color-mix(in srgb, var(--flag) 55%, var(--ink-3)); }

.effort { display: inline-flex; align-items: center; gap: 4px; vertical-align: -1px; color: var(--fg-2); }
.effort svg rect { fill: var(--ink-3); }
.effort.e1 rect.on { fill: var(--z0); } .effort.e2 rect.on { fill: var(--z1); } .effort.e3 rect.on { fill: var(--z2); }

.kit { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.kit-i { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--ink-1); border: 1px solid var(--ink-3); color: var(--fg); }
.kit-i b { font: 700 17px/1 var(--f-display); font-variant-numeric: tabular-nums; }

.ask { display: grid; gap: 4px; margin: 16px 0 8px; }
.ask .btn.wide { margin: 0; }
.skip-line { margin: 0 0 6px; text-align: center; }
.skip-line .btn { color: var(--fg-2); }

.title-acts { display: flex; gap: 8px; flex: none; }
.fav.report { color: var(--fg-3); }
.fav.report.on { color: var(--z1); }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; }
.sheet { width: 100%; max-width: 420px; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-l); padding: 18px 16px; }
.sheet h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.sheet .reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.sheet .reasons .chip { border: 1px solid var(--ink-3); font-size: 15px; padding: 10px 14px; cursor: pointer; color: var(--fg); }
.sheet .reasons .chip.on { border-color: var(--flag); background: color-mix(in srgb, var(--flag) 18%, var(--ink-2)); }
.sheet .btn-row { margin-top: 8px; }
.ask-wrap { z-index: 70; }
.ask-text { font-size: 17px; line-height: 1.4; margin: 4px 0 14px; }

/* ===== Build 5: done panel + result celebration, share, note preview, delete ===== */
.done-panel { text-align: center; }
.done-panel.won { border-color: color-mix(in srgb, var(--flag) 55%, var(--ink-3)); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--flag) 16%, var(--ink-1)), var(--ink-1) 70%); }
.medal-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 2px 0 12px; }
.medal-hero b { font: 700 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.medal-hero.big b { font-size: 40px; }
.medal-hero.bronze b { color: var(--bronze); } .medal-hero.silver b { color: var(--silver); } .medal-hero.gold b { color: var(--gold); } .medal-hero.diamond b { color: var(--diamond); }
.medal-hero .medal { animation: medalpop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes medalpop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .medal-hero .medal { animation: none; } }
.feedback .btn-row { margin: 8px 0 0; }
.btn .ic + * , .btn > .ic { flex: none; }
.node-pts .medal { opacity: .8; }
.note-prev { display: flex; align-items: center; gap: 4px; font-size: 12px; font-style: italic; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-prev .ic { flex: none; }
.btn.danger-outline { background: none; border: 1px solid var(--z2); color: var(--z2); }
.btn.danger-outline.small { width: auto; margin: 4px auto; display: flex; }

/* ===== Home stats card (replaces the Combine hero) ===== */
.stats-card .hero-head { margin-bottom: 6px; }
.pill.ghost { background: var(--ink-2); color: var(--fg-3); border: 1px solid var(--ink-3); }
.srows { display: grid; gap: 2px; }
.srow { display: grid; grid-template-columns: 22px 70px 1fr 40px 38px; align-items: center; gap: 8px; min-height: 40px; padding: 4px 2px; background: none; border: 0; border-bottom: 1px solid var(--ink-2); color: var(--fg); text-align: left; cursor: pointer; }
.srow:last-child { border-bottom: 0; }
.srow .ic { color: var(--fg-2); }
.sname { font: 600 14px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.strack { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--z2), var(--z1), var(--z0)); opacity: .9; }
.strack i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--fg); border: 2px solid var(--ink-0); }
.shcp { font: 700 20px/1 var(--f-display); text-align: right; font-variant-numeric: tabular-nums; }
.smedals { display: inline-flex; align-items: center; gap: 1px; justify-content: flex-end; }
.smedals small { font: 700 13px/1 var(--f-display); color: var(--fg-2); }
.strack.empty { opacity: .2; }

/* ---------- Social: name + flag sheet, challenge banners (social.js) ---------- */
.name-sheet { display: grid; gap: 12px; }
.name-sheet h2 { font-size: 24px; }
.name-in { height: 52px; border-radius: var(--r-s); background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--fg); font: 600 18px var(--f-body); padding: 0 14px; width: 100%; }
.name-in:focus { outline: none; border-color: var(--flag); }
.flag-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.flag-grid .flag { height: 48px; border-radius: var(--r-s); background: var(--ink-2); border: 1px solid var(--ink-3); font-size: 24px; display: grid; place-items: center; cursor: pointer; color: var(--fg-2); padding: 0; }
.flag-grid .flag.on { border-color: var(--flag); box-shadow: 0 0 0 2px color-mix(in srgb, var(--flag) 40%, transparent); }
.flag-more { display: grid; gap: 8px; }
.flag-more select { height: 48px; border-radius: var(--r-s); background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--fg); font: 500 16px var(--f-body); padding: 0 10px; }
.name-row { display: flex; gap: 8px; align-items: flex-end; }
.name-row { margin: 12px 0; }
.name-row .field { flex: 1; min-width: 0; margin: 0; }
.name-row input { height: 52px; box-sizing: border-box; }
.flag-btn { width: 56px; height: 52px; padding: 0; font-size: 24px; flex: none; }
.challenge-in, .challenge-out { display: flex; gap: 10px; align-items: center; border-radius: var(--r-m); padding: 12px 14px; margin: 12px 0;
  border: 1px solid color-mix(in srgb, var(--flag) 55%, transparent); background: color-mix(in srgb, var(--flag) 10%, var(--ink-1)); }
.challenge-in > div { flex: 1; min-width: 0; }
.challenge-in .num { color: var(--flag); font-family: var(--f-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.challenge-in .iconx { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink-3); background: var(--ink-2); color: var(--fg-2); display: grid; place-items: center; flex: none; cursor: pointer; }
.challenge-out { text-align: left; }
.challenge-out.won { border-color: var(--z0); background: color-mix(in srgb, var(--z0) 12%, var(--ink-1)); }
.challenge-out.won svg { color: var(--z0); flex: none; }
.flag-more[hidden] { display: none; }
.flag-grid .flag.more { font: 700 15px var(--f-display); letter-spacing: .06em; text-transform: uppercase; }

/* ===== Flight feedback: what you need, combine swap sheet, end-of-drill counting, result tag, level badge ===== */
.card.need { padding: 12px 14px; margin: 12px 0; }
.card.need h3 { margin: 0 0 8px; }
.card.need ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card.need li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.card.need li svg { flex: none; color: var(--flag); }
.card.need li b { font: 700 18px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.counts { font-size: 15px; margin: 8px 0 12px; }
/* Why this drill: a small closed pill with a learning icon, no text showing; opens into its own card (a soft purple
   reading panel), so it does not read as part of the setup steps (16 Nov 2026). */
.why { margin: 6px 0 14px; }
.why summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 16px;
  border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, #a78bfa 45%, var(--ink-3)); color: #c4b5fd; font-size: 14px; }
.why summary::-webkit-details-marker { display: none; }
.why summary b { font-weight: 600; }
.why .why-chev { transform: rotate(-90deg); transition: transform .2s; }
.why[open] .why-chev { transform: rotate(90deg); }
.why-body { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-m); background: color-mix(in srgb, #a78bfa 10%, var(--ink-1)); border-left: 3px solid #a78bfa; }
.why-body p { font-size: 15px; line-height: 1.55; margin: 0 0 10px; color: var(--fg); }
.why-body p:last-child { margin-bottom: 0; }
.tips { margin-bottom: 6px; }
.tips + .why { margin-top: 0; }
.tips summary { border-color: color-mix(in srgb, var(--z0) 45%, var(--ink-3)); color: var(--z0); }
.tips .why-body { background: color-mix(in srgb, var(--z0) 8%, var(--ink-1)); border-left-color: var(--z0); }
.tips .why-body ul { margin: 0; padding-left: 18px; }
.tips .why-body li { font-size: 15px; line-height: 1.5; margin: 0 0 8px; color: var(--fg); }
.tips .why-body li:last-child { margin-bottom: 0; }
.sheet-opts { display: grid; gap: 10px; margin: 14px 0 6px; }
.sheet-opts .btn { flex-wrap: wrap; height: auto; min-height: 52px; padding: 10px 14px; }
.sheet-opts .btn small, .btn.two-line small { flex-basis: 100%; font-size: 12px; font-weight: 500; opacity: .75; }
.btn.two-line { flex-direction: column; gap: 2px; }
.btn.two-line > span { display: inline-flex; align-items: center; gap: 8px; }
.btn.two-line small { text-align: center; flex-basis: auto; text-transform: none; letter-spacing: 0; }
.skipped-part { display: flex; align-items: center; gap: 6px; margin: 8px 2px; }
.cnt-list { display: grid; gap: 8px; margin: 10px 0; }
.cnt-row { display: grid; grid-template-columns: 1fr 48px 44px 48px; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 14px; background: var(--ink-1); border: 1px solid var(--ink-3); }
.cnt-row .btn { height: 44px; min-width: 0; padding: 0; font-size: 22px; }
.cnt-l { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cnt-l em { font: 700 15px/1 var(--f-display); font-style: normal; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink-3); }
.cnt-row.primary .cnt-l em { background: var(--flag); color: #07170e; }
.cnt-n { text-align: center; font: 700 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.result { position: relative; }
.result { padding-top: 34px; }
.perf-tag { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.perf-tag b { font: 700 20px/1.1 var(--f-display); color: var(--fg); letter-spacing: 0; }
.pill.opt { font-size: 11px; vertical-align: middle; margin-left: 6px; }
.lvb { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 50%; border: 2px solid var(--flag); font: 700 14px/1 var(--f-display); color: var(--fg); vertical-align: middle; flex: none; }
.name-row .lvb { align-self: center; min-width: 34px; height: 34px; font-size: 17px; }
.cnt-row.zone-0 .cnt-l em { background: var(--z0); color: #04210f; } .cnt-row.zone-1 .cnt-l em { background: var(--z1); color: #2a1800; } .cnt-row.zone-2 .cnt-l em { background: var(--z2); color: #2a0a06; }

/* Upload status: one small line, same wording everywhere (Sent / Sends when online). */
.sync-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--fg-2); }
.sync-line:empty { display: none; }
.sync-line svg { flex: none; }
h1 + p + .sync-line, h3 + .sync-line { justify-content: flex-start; }

/* ===== Practice-session lessons: cue, score rule, fallback, played check, next drill ===== */
.cue { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--ink-1); border: 1px solid var(--ink-3); font-weight: 600; font-size: 15px; }
.cue svg { flex: none; color: var(--flag); }
.rule-line { margin: 10px 2px; font-size: 14px; color: var(--fg-3); text-align: center; }
.rule-line b { color: var(--fg); }
.fallback { margin: 10px 0 0; }
.fallback a { color: var(--flag); }
.node .played { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-3); color: var(--fg-3); }
.node.just-played { animation: justPlayed 1.6s ease-out; }
@keyframes justPlayed { 0%, 40% { box-shadow: 0 0 0 2px var(--flag); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* ===== 0.9.11 feedback: text inside the medal bar, medal pop with glow, open Combine part, preview ===== */
.gbar { position: relative; height: 24px; border-radius: 12px; }
.gbar span { border-radius: 12px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.gbar em { position: absolute; inset: 0; display: grid; place-items: center; font: 700 13px/1 var(--f-body); font-style: normal; color: var(--fg); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap; }
.gate-text.muted { color: var(--fg-3); font-size: 13px; }
.medal-pop { position: fixed; left: 50%; top: 38%; z-index: 50; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; pointer-events: none;
  animation: medalflash 2.4s ease forwards; }
.medal-pop svg { position: relative; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.medal-pop b { position: relative; white-space: nowrap; font: 700 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.medal-pop .glow { position: absolute; left: 50%; top: 42%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  background: radial-gradient(circle, var(--gc, #f5c02a) 0%, color-mix(in srgb, var(--gc, #f5c02a) 40%, transparent) 35%, transparent 70%); animation: glowpulse 1.2s ease-in-out 2; }
.medal-pop.bronze { --gc: #d48a4a; } .medal-pop.silver { --gc: #dfe6ea; } .medal-pop.gold { --gc: #f5c02a; } .medal-pop.diamond { --gc: #7fd6f0; }
/* Not the same name as the result screen's medalpop: a second @keyframes medalpop replaced it and left the result medal invisible. */
@keyframes medalflash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.95); } }
@keyframes glowpulse { 0%, 100% { transform: scale(.85); opacity: .75; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .medal-pop, .medal-pop .glow { animation-duration: .01s; } }
.tree details.card[open] { border-color: var(--flag); box-shadow: 0 0 0 1px var(--flag); }
.info-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; vertical-align: middle; border: 0; border-radius: 50%; background: none; color: var(--flag); }
.linkish { border: 0; background: none; padding: 0; color: var(--flag); font: inherit; text-decoration: underline; }
.sheet { max-height: 86vh; overflow: auto; }

/* ---------- 0.9.14 ---------- */
/* Venue: longest putt, inside "What you need" */
.venue { border-top: 1px solid var(--ink-3); margin-top: 10px; padding-top: 10px; display: grid; gap: 6px; }
.venue-head { font-size: 14px; color: var(--fg-2); }
.venue-ctl { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; }
.venue-ctl .btn { height: 48px; min-height: 48px; padding: 0; font-size: 24px; }
.venue-val { text-align: center; font: 700 34px/1 var(--f-display); color: var(--flag); }
.venue-val small { font-size: 18px; color: var(--fg-2); margin-left: 2px; }
.venue .slider { height: 36px; }
/* Language buttons with flags */
.lang-seg button { display: grid; place-items: center; gap: 1px; line-height: 1.1; }
.lang-seg .lf { font-size: 18px; line-height: 1; }
/* Score table under the pad */
.mini-zones { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 10px 0; border: 1px solid var(--ink-3); border-radius: var(--r-m); overflow: hidden; background: var(--ink-3); }
.mini-zones div { background: var(--ink-1); padding: 5px 2px; text-align: center; display: grid; gap: 2px; }
.mini-zones .ml { font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.mini-zones .mp { font: 700 16px/1 var(--f-display); color: var(--fg); }
.mini-zones .sw { display: block; width: 100%; height: 3px; border-radius: 2px; margin-bottom: 2px; }
.mini-zones .sw.zone-hole { background: var(--flag); } .mini-zones .sw.zone-0 { background: var(--z0); } .mini-zones .sw.zone-1 { background: var(--z1); }
.mini-zones .sw.zone-2 { background: var(--z2); } .mini-zones .sw.zone-out { background: var(--zout); } .mini-zones .sw.zone-pen { background: var(--zpen); }
/* Holed: a short glow behind the new ball */
.ball.glow { animation: ballglow 1s ease-out; }
@keyframes ballglow { 0% { box-shadow: 0 0 0 0 rgba(244, 196, 48, .9); transform: scale(1.25); } 100% { box-shadow: 0 0 0 14px rgba(244, 196, 48, 0); transform: none; } }
/* "One by one / At the end": a shine so the choice is noticed */
.seg2.shine { position: relative; overflow: hidden; }
.seg2.shine::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-100%); animation: shine 1.4s ease .3s 2; }
@keyframes shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ball.glow, .seg2.shine::after { animation: none; } }
/* Your game: handicap range */
.srow.r { grid-template-columns: 22px 70px 1fr 58px; }
.strack i.rng { height: 12px; margin: -6px 0 0 0; border-radius: 6px; min-width: 12px; }
.srow .shcp { text-align: right; white-space: nowrap; }
/* Combine summary */
.sum-rows { display: grid; gap: 8px; margin: 12px 0; }
.sum-row { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); color: var(--fg); }
.sum-row .sv { font: 700 18px/1 var(--f-display); }
.sum-row .sh { font: 700 16px/1 var(--f-display); color: var(--flag); min-width: 54px; text-align: right; }
.sum-total { text-align: center; margin: 8px 0 16px; }
.sum-total b { display: block; font: 700 56px/1 var(--f-display); color: var(--flag); }
.card.next-step { border-color: var(--flag); }
/* Medal bar: brighter track and fill so it reads on a phone in sunlight. */
.gate .gbar { background: color-mix(in srgb, var(--ink-3) 70%, #ffffff 12%); border: 1px solid color-mix(in srgb, var(--flag) 35%, transparent); }
.gate .gbar span { background: linear-gradient(90deg, #ffd84a, var(--flag)); box-shadow: 0 0 10px color-mix(in srgb, var(--flag) 55%, transparent); }
.card.crash { margin-top: 16px; display: grid; gap: 10px; }
.mono { font-family: ui-monospace, monospace; word-break: break-word; }

/* ===== 0.9.16: Combine spread histogram ===== */
.spread h3 { margin: 0 0 4px; }
.spread-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-items: end; height: 150px; margin: 12px 0 6px; }
.spread-bars .sb { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.spread-bars .sb i { display: block; background: var(--ink-3); border-radius: 4px 4px 0 0; min-height: 4px; }
.spread-bars .sb.you i { background: var(--flag); }
.spread-bars .sb small { font-size: 11px; color: var(--fg-2, var(--muted)); padding-top: 4px; white-space: nowrap; }
.spread-bars .sb em { font: 700 12px/1 var(--f-display); font-style: normal; color: var(--flag); padding-bottom: 4px; }
.spread-note { margin: 8px 0 0; }

/* Score-to-beat table: medals no handicap's median reaches sit in extra columns after the last handicap. */
.hcp .beyond { display: flex; justify-content: center; align-items: center; border-left: 1px dashed var(--ink-3); color: var(--fg-2); }
.hcp .lv { flex-wrap: wrap; gap: 1px; align-items: center; }

/* Phase 2 entry (9 Nov notes) */
.run-acts { display: flex; gap: 8px; }
.cnt-row.pool { grid-template-columns: 1fr 44px; background: color-mix(in srgb, var(--zout) 18%, transparent); border: 1px dashed var(--zout); }
.cnt-row.pool .cnt-l em { background: var(--zout); color: #fff; } .cnt-row.pool .cnt-n { color: #ff8a7d; }
.mtargets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.mtargets span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: var(--r-s); background: var(--ink-1); border: 1px solid var(--ink-3); opacity: .55; }
.mtargets span.on { opacity: 1; border-color: var(--flag); }
.mtargets b { font: 700 16px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.rounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; margin: 12px 0; }
.rchip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: var(--r-s); border: 2px dashed var(--ink-3); background: none; color: var(--fg); font: inherit; touch-action: manipulation; }
.rchip small { font: 600 11px/1 var(--f-display); letter-spacing: .08em; color: var(--fg-3); }
.rchip b { font: 700 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }
button.rchip { border: 0; background: var(--ink-2); cursor: pointer; }
.rchip.cur { border-color: var(--flag); border-style: solid; }
.rchip.sel { outline: 3px solid var(--fg); outline-offset: 2px; }
.num-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.num-pad .btn { min-height: 58px; font: 700 26px/1 var(--f-display); justify-content: center; }
.num-pad .btn.on { outline: 3px solid var(--fg); outline-offset: 2px; }
.medal-hero.none { display: flex; justify-content: center; }
.medal-hero.none .medal-slot { border-width: 3px; }
.bests li { grid-template-columns: 26px 22px auto 1fr; align-items: center; }
.board li > svg, .board li > .medal-slot { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* Phase 4: level badge (big number in a circle) + slim bar in the header; bigger bar with xp on home and results. */
.pts.lvl-pill { display: inline-flex; align-items: center; gap: 0; padding: 0; background: none; border: 0; }
.lvc { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--xpc); color: var(--ink-0);
  font: 700 22px/1 var(--f-display); font-variant-numeric: tabular-nums; position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--ink-0); }
.lvc.big { width: 52px; height: 52px; font-size: 26px; grid-auto-rows: min-content; align-content: center; gap: 1px; }
.lvc.big small { font-size: 11px; letter-spacing: .08em; line-height: 1; opacity: .75; }
.lvbar { display: block; width: 72px; height: 10px; margin-left: -6px; border-radius: 0 6px 6px 0; background: var(--ink-2); overflow: hidden; }
.lvbar i { display: block; height: 100%; background: var(--xpc); }
.lvl .lvl-track { margin-left: -14px; padding-left: 10px; }
.result-level { margin: 14px 0 4px; align-self: stretch; width: 100%; }
.result-level .lvl-track .fill { transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.result-level .unl { display: inline-flex; align-items: center; gap: 4px; font: 700 16px/1 var(--f-display); color: var(--fg); }
.best-medal { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-2); }
.lvc.pop { animation: lvpop .6s ease; }
@keyframes lvpop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pill.rec { font-size: 10px; padding: 2px 6px; vertical-align: middle; color: var(--flag-ink); background: var(--flag); }
.sets { display: grid; gap: 8px; }
.set summary { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 10px; cursor: pointer; list-style: none; }
.set summary .muted { grid-column: 2; }
.set summary > svg, .set summary > .medal-slot { grid-row: span 2; }
.hist li > svg, .hist li > .medal-slot { display: inline-block; vertical-align: middle; }

/* Phase 5: volume totals, F.I.G., Nine in 36, Draw vs Fade */
.total-step { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px; }
.total-step .total-num { width: 100%; min-width: 0; text-align: center; font-size: 56px; padding: 4px 0 0; background: var(--ink-0); border: 1px solid var(--ink-3); border-radius: var(--r-s); color: var(--fg); }
.total-step .btn { height: 52px; font-size: 26px; padding: 0; justify-content: center; }
.seg-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.seg-wrap button { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--ink-3); background: var(--ink-1); color: var(--fg-2); font: 600 14px var(--f-body); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.seg-wrap button.on { background: var(--ink-2); color: var(--flag); border-color: var(--flag); }
.seg-wrap button:disabled:not(.on) { opacity: .45; }
.tee-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #0006; display: inline-block; }
.tee-red { background: #d9453b; } .tee-yellow { background: #f2c230; } .tee-white { background: #f4f4f0; } .tee-blue { background: #3a6fd8; } .tee-black { background: #111; border-color: #fff8; }
.btn-row.pad6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* Nine in 36 (20 Nov 2026): strokes 1 to 8+, each with its score vs par 3 underneath. */
.btn-row.par-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.par-pad .btn { flex-direction: column; gap: 2px; padding: 8px 4px; }
.par-pad .btn small { font: 600 13px var(--f-body); opacity: .8; }
.num-pad.four { grid-template-columns: repeat(4, 1fr); }
/* Per-round entry with holed (Chipping Thirty): within + holed + Save on one screen, so the pad is denser. */
.num-pad.six { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.num-pad.six .btn { min-height: 50px; font-size: 22px; padding: 0; }

table.duel { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
table.duel th, table.duel td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--ink-3); }
table.duel th:first-child { text-align: left; }
table.duel td b { font: 700 20px/1 var(--f-display); }
table.duel tr.win th:first-child { color: var(--flag); }
.duel-verdict { text-align: center; font: 700 18px/1.2 var(--f-display); letter-spacing: .02em; color: var(--flag); margin: 6px 0 10px; }
b.shape { color: var(--flag); font-size: 1.2em; }
.medal-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 12px; }
.medal-list span { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--ink-1); border: 1px solid var(--ink-3); }
.medal-list b { font: 700 16px/1 var(--f-display); } .medal-list small { color: var(--fg-2); font-size: 12px; }
.resume-row { display: grid; grid-template-columns: 4fr 1fr; gap: 8px; margin-top: 12px; }
.resume-row .btn { margin: 0; justify-content: center; }
.nth-dots.many { grid-template-columns: repeat(6, 10px); }

/* ============ Playing together (events) ============ */
.ev-card { display: flex; align-items: center; gap: 12px; border-color: var(--flag); margin-top: 6px; }
.ev-card .who, .ev-list .who, .ev-table .who, .ev-pick .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ev-card .who b { font: 700 20px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.ev-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); color: var(--flag); flex: none; }
/* 0.9.47 list row: time left on the left, players top right, "0/4 drills" below the name. */
.ev-card { align-items: stretch; position: relative; }
.ev-card .who { justify-content: center; padding-right: 44px; }
.ev-timer { min-width: 52px; padding: 0 8px; box-sizing: border-box; min-height: 52px; border-radius: var(--r-m); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--ink-2); color: var(--flag); flex: none; }
.ev-timer b { font: 700 22px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-timer b small, .closes .clk small { font-size: .7em; margin-left: 1px; color: inherit; text-transform: none; letter-spacing: 0; }
.closes .clk { font-weight: 700; }
.ev-timer small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-2); }
.ev-timer.soon { color: var(--z2); background: color-mix(in srgb, var(--z2) 14%, var(--ink-2)); }
.ev-timer.past { color: var(--fg-3); }
.ev-timer.past small { color: var(--fg-3); }
.ev-players { position: absolute; top: 10px; right: 12px; display: inline-flex; align-items: center; gap: 4px; color: var(--fg-2); font: 700 15px/1 var(--f-display); }
.tag-host { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 6px; border-radius: var(--r-pill); border: 1px solid var(--flag); color: var(--flag); font: 700 11px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.hero-head .hero-title { min-width: 0; overflow-wrap: anywhere; }
.ev-actions .btn { padding-left: 8px; padding-right: 8px; }
.together { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--ink-3); }
.together > span { flex: 1 0 100%; display: flex; align-items: center; gap: 6px; }
.together .btn { flex: 1; }
.ev-hero .ev-me { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 4px 10px; margin: 10px 0 2px; color: var(--fg-2); font-size: 13px; }
.ev-hero .ev-me b { font: 700 34px/1 var(--f-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.ev-hero .ev-me b small { font-size: 18px; color: var(--fg-3); }
.ev-places { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--flag); font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.ev-note { margin: 4px 2px 10px; }
.ev-list, .ev-table, .ev-pick, .ev-join-drills { list-style: none; padding: 0; margin: 6px 0 12px; }
.ev-list li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); margin: 6px 0; }
.ev-list .sum-ico { margin-right: 0; flex: none; }
.ev-list .btn { flex: none; }
.ev-table li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--ink-3); }
.ev-table li.me { background: color-mix(in srgb, var(--flag) 12%, var(--ink-1)); border-radius: var(--r-s); border-bottom-color: transparent; }
.ev-table li.gone .who, .ev-table li.gone b, .ev-table li.gone .ev-val { color: var(--fg-3); }
.ev-left { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; }
.ev-leave { display: flex; margin: 18px auto 0; }
.ev-table li.gap { justify-content: center; color: var(--fg-3); border: 0; padding: 2px; }
.ev-table .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-table .who small { font-weight: 400; }
.place { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--f-display); color: var(--fg-2); background: var(--ink-2); }
.place.p1 { background: var(--gold); color: #3a2c00; }
.place.p2 { background: var(--silver); color: #22292d; }
.place.p3 { background: var(--bronze); color: #331b06; }
.ev-pts { font: 700 22px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--flag); }
.ev-val { font: 700 18px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-p { width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.ev-drill { padding: 10px 6px 4px; }
.ev-drill h3 { display: flex; align-items: center; gap: 6px; margin: 2px 8px 4px; }
.seg3.two { grid-template-columns: 1fr 1fr; margin-bottom: 6px; }
.seg3.four { grid-template-columns: repeat(4, 1fr); border-radius: var(--r-m); }
.seg3.four button { border-radius: var(--r-s); padding: 4px 2px; }
.ev-refresh.spin .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ev-banner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-m); background: color-mix(in srgb, var(--flag) 14%, var(--ink-1)); border: 1px solid color-mix(in srgb, var(--flag) 45%, var(--ink-3)); font-weight: 600; font-size: 14px; }
.ev-banner.off { background: var(--ink-1); border-color: var(--ink-3); color: var(--fg-2); }
.ev-result { margin-top: 10px; border-color: var(--flag); }
.hico.ev { color: var(--flag); }
.ev-cats .cat { min-height: 0; }
.ev-pickrow { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; margin: 6px 0; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); color: var(--fg); font: inherit; cursor: pointer; }
.ev-pickrow.on { border-color: var(--flag); background: var(--ink-2); }
.ev-pickrow .tick { width: 24px; height: 24px; flex: none; border-radius: 6px; border: 2px solid var(--ink-3); display: grid; place-items: center; color: #04210f; }
.ev-pickrow.on .tick { background: var(--flag); border-color: var(--flag); }
.ev-create { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 12px; background: linear-gradient(to top, var(--ink-0) 75%, transparent); }
.ev-create span { flex: 1; color: var(--fg-2); font-size: 14px; }
input.need { border-color: var(--z2) !important; }
.invite-sheet { text-align: center; }
.invite-sheet .qr { width: min(72vw, 300px); height: auto; display: block; margin: 10px auto; border-radius: 10px; }
.ev-code { display: flex; flex-direction: column; align-items: center; margin: 6px 0; }
.ev-code b { font: 700 40px/1 var(--f-display); letter-spacing: .12em; }
.code-in { text-transform: uppercase; letter-spacing: .15em; text-align: center; font-size: 26px; margin: 8px 0; }
.ev-join-drills li { display: flex; align-items: center; gap: 6px; padding: 5px 0; }
.join-name { margin: 14px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.join-name-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--ink-2); border: 1px solid var(--ink-3); min-height: 60px; }
.join-name-txt { flex: 1; font: 700 28px/1.1 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.join-name-row input { display: none; flex: 1; min-width: 0; height: 44px; border-radius: var(--r-s); background: var(--ink-0); border: 1px solid var(--flag); color: var(--fg); font: 600 20px var(--f-body); padding: 0 12px; }
.join-name-row.editing .join-name-txt { display: none; }
.join-name-row.editing input { display: block; }
.join-name-row.need { border-color: var(--z2); }
.iconx.pencil { width: 44px; height: 44px; border-radius: 50%; background: var(--flag); color: var(--flag-ink); border: 0; display: grid; place-items: center; flex: none; }
.ic.fwd { transform: rotate(180deg); color: var(--fg-3); flex: none; }
.ev-card.past { border-color: var(--ink-3); }
nav a { font-size: 14px; padding: 0 2px; white-space: nowrap; gap: 6px; }
nav a .ic { flex: none; }
.solo-row { margin: 6px 0; }
.solo-row .btn.wide { margin: 0; }
.ev-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.ev-set { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; min-height: 64px; border-radius: var(--r-m);
  background: var(--ink-1); border: 1px solid var(--ink-3); color: var(--fg); font: inherit; cursor: pointer; }
.ev-set b { font: 700 17px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.ev-set.on { border-color: var(--flag); background: var(--ink-2); box-shadow: 0 0 0 1px var(--flag); }
.ev-set .ic { color: var(--flag); }
.ev-set-list { padding: 4px 12px; background: var(--ink-1); border-radius: var(--r-m); border: 1px solid var(--ink-3); }
.ev-pickrow .pill.opt { margin-left: auto; }
.ev-drills { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ink-3); }
.ev-drills h3 { margin: 0 0 4px; }
.ev-drills .ev-list { margin-bottom: 0; }
.ev-drills .ev-list li { background: var(--ink-0); }
.ev-list li.next { border-color: var(--flag); box-shadow: 0 0 0 1px var(--flag); }
.ev-places { gap: 6px; }
.ev-place { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }
.ev-place.pl1 { background: var(--gold); color: #3a2c00; }
.ev-place.pl2 { background: var(--silver); color: #22292d; }
.ev-place.pl3 { background: var(--bronze); color: #331b06; }
.ev-hero .ev-me b.pl1 { color: var(--gold); }
.ev-hero .ev-me b.pl2 { color: var(--silver); }
.ev-hero .ev-me b.pl3 { color: var(--bronze); }
.ev-ago { font-variant-numeric: tabular-nums; }
.join-wrap { place-items: start center; overflow-y: auto; padding-top: max(16px, env(safe-area-inset-top)); }
.join-wrap .sheet { max-height: none; }
.join-by { margin-top: -4px; }
.ev-list .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-list .btn.small { padding: 0 12px; font-size: 14px; }
.ev-drills .ev-list li { padding: 8px 10px; }

/* Sets run (0.9.33) */
.set .btn.primary { margin-top: 10px; }
.set-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.set-steps span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--ink-3); color: var(--fg-2); font: 600 13px var(--f-body); }
.set-steps span.done { color: var(--z0); border-color: var(--z0); }
.set-steps span.cur { color: var(--flag); border-color: var(--flag); }
.set-banner { display: flex; align-items: center; gap: 6px; margin: 6px 0; padding: 8px 12px; border-radius: var(--r-pill); background: var(--ink-1); color: var(--flag); font: 600 14px var(--f-body); }

/* Putting distance labels (0.9.35) */
.pdist { display: inline-flex; flex-direction: column; gap: 3px; align-items: stretch; }
.subtitle .pdist { flex-direction: row; vertical-align: middle; margin-left: 8px; }
.pd { min-width: 56px; padding: 2px 6px; border-radius: var(--r-pill); text-align: center; font: 700 10px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.pd.short { background: color-mix(in srgb, var(--z0) 18%, transparent); color: color-mix(in srgb, var(--z0) 70%, white); }
.pd.medium { background: color-mix(in srgb, var(--z0) 38%, transparent); color: color-mix(in srgb, var(--z0) 55%, white); }
.pd.long { background: color-mix(in srgb, var(--z0) 70%, black); color: #eafff2; }
.btn.holed-btn { background: var(--flag); color: var(--flag-ink); border-color: var(--flag); }
.btn-row.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.btn-row.three .btn { min-width: 0; padding-left: 6px; padding-right: 6px; white-space: normal; }

/* Drill setup visuals (visuals.js): Visual / Text as folder tabs on one panel; swipe the panel to switch. */
.setup-views { margin: 4px 0 10px; }
.setup-seg { display: flex; gap: 4px; padding-left: 10px; position: relative; z-index: 1; }
.setup-seg button { min-height: 42px; padding: 0 18px; border: 1px solid var(--ink-3); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--ink-0); color: var(--fg-3); font: 600 15px var(--f-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; margin-bottom: -1px; }
.setup-seg button.on { background: var(--ink-1); color: var(--fg); border-color: var(--ink-3); box-shadow: inset 0 2px 0 var(--flag); }
.setup-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); }
.setup-strip::-webkit-scrollbar { display: none; }
.setup-pane { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.setup-text { padding: 12px 14px 4px; }
.setup-text ol { margin-top: 0; }
.viz { position: relative; aspect-ratio: 6 / 5; max-width: 100%; overflow: hidden; border-radius: var(--r-m); background: var(--ink-1); }
.viz svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Waiting for the scene's pictures (visuals.js whenReady): a plain panel, never the drawn fallback for a moment. */
.viz.viz-wait > svg, .viz.viz-wait .viz-bar { visibility: hidden; }
.viz-bar { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(237, 242, 238, .14); overflow: hidden; }
.viz-bar i { display: block; height: 100%; background: rgba(237, 242, 238, .55); transform-origin: left; transform: scaleX(0); }
.sheet h2 .sheet-x { margin-left: auto; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--ink-2); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.ev-pick .who b { display: flex; align-items: center; flex-wrap: wrap; column-gap: 2px; }
.ev-pick .who b .info-btn { width: 40px; height: 40px; margin: -8px 0 -8px -4px; vertical-align: middle; }
/* An open sheet owns the scroll: the page underneath stays put. */
html:has(.sheet-wrap), body:has(.sheet-wrap) { overflow: hidden; }
.sheet-wrap { overscroll-behavior: contain; }
.sheet { overscroll-behavior: contain; }

/* New version downloaded in the background (app.js updateReady). Sits above the screen, never fixed. */
.update-bar { display: flex; align-items: center; gap: 8px; margin: 8px 16px 0; padding: 8px 8px 8px 14px; border-radius: var(--r-pill);
  background: var(--ink-2); border: 1px solid var(--flag); animation: pop .4s ease; }
.update-bar span { flex: 1; }
/* Online parts that are loading, slow or offline (together.js netLine). */
.net-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Good with friends (socialTag in app.js) */
.social-tag { display: inline-flex; vertical-align: -2px; color: var(--z0); }
/* Needs a simulator or launch monitor (simTag in app.js), as visible as the friends icon. */
.sim-tag { display: inline-flex; vertical-align: -2px; color: #7cc7ff; }
.beginner-tag { display: inline-flex; vertical-align: -2px; color: #9be27a; }
/* Range Leapfrog distance wheel (LB in app.js): 44 px rows, the middle row is the value. */
.wheel-wrap { position: relative; width: 160px; display: flex; justify-content: center; margin: 6px auto 12px; }
.wheel { list-style: none; margin: 0; padding: 66px 0; height: 176px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel li { margin: 0; padding: 0; height: 44px; line-height: 44px; text-align: center; scroll-snap-align: center; font: 700 30px/44px var(--f-display); font-variant-numeric: tabular-nums; }
.wheel-wrap::before { content: ''; position: absolute; left: 0; right: 0; top: 66px; height: 44px; border-block: 2px solid var(--z0); border-radius: 8px; pointer-events: none; }
.wheel-u { position: absolute; right: 18px; top: 66px; line-height: 44px; color: var(--fg-2); pointer-events: none; }
.lb-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: baseline; margin: 4px 0 8px; font: 700 16px/1 var(--f-display); }
.lb-list span { padding: 4px 7px; border-radius: 6px; background: var(--ink-2); }
.lb-list span.good { color: var(--z0); }
.lb-list span.bad { color: var(--bad, #ff6b6b); text-decoration: line-through; }
/* Event builder: how many drills are picked in a category stands out (15 Nov feedback). */
.ev-cats .cat-count.picked { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--z0); color: #04210f; font: 700 13px/1 var(--f-display); }
.ev-pickrow .pdist { margin-left: auto; }
.ev-pickrow.ro { cursor: default; }
.ev-pickrow.ro .tick { border: 0; color: var(--fg-2); }
.ev-pickrow .who small { display: flex; align-items: center; gap: 4px; }
.ev-pick.ev-set-list { padding: 0; background: none; border: 0; }
.ev-cats .cat-time { grid-column: 1 / -1; font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
/* Labels on results (Phase 4): big tap chips (gloves), picked = green; small read-only labels in lists. */
.lbl-pick, .lbl-filter { margin: 8px 0; }
.lbl-pick .chip, .lbl-filter .chip { min-height: 40px; padding: 8px 14px; font: inherit; font-size: 14px; border: 1px solid var(--ink-3); cursor: pointer; }
.lbl-pick .chip.on, .lbl-filter .chip.on { background: color-mix(in srgb, var(--z0) 25%, var(--ink-2)); border-color: var(--z0); color: var(--fg); }
.lbl-pick .chip.add { display: inline-grid; place-items: center; min-width: 44px; color: var(--fg); }
.lbl-new { display: flex; gap: 8px; margin: 0 0 8px; }
.lbl-new input { flex: 1; min-width: 0; }
.lbls { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.lbl { font-size: 11px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--ink-2); color: var(--fg-2); }
.result-labels { margin: 6px 0; text-align: center; }
.hnote { display: block; margin-top: 2px; }
.hnote .lbls { margin-left: 0; }
.done-panel .notes { text-align: left; margin: 8px 0; }
.ev-mine .who b .info-btn { width: 40px; height: 40px; margin: -8px 0 -8px -4px; vertical-align: middle; }
.ev-join-drills li .pdist { margin-left: auto; flex-direction: row; }
.closes { color: var(--z2); font-weight: 600; }
.scan-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); background: #000; }
.ct-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.ct-row span { min-width: 48px; }
.ct-row input, .ct-row select { flex: 1; min-width: 0; min-height: 44px; }
.ev-mine .who b { white-space: normal; }
.lbl-new[hidden] { display: none; }
/* Phase 6: a locked drill shows the level that opens it, in the level colour (same as the level badge). */
.lv-lock { display: grid; place-items: center; align-content: center; gap: 1px; font: 700 17px/1 var(--f-display); color: var(--xpc); }
.lv-lock small { font-size: 9px; letter-spacing: .08em; opacity: .8; }
.fold-lv { margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--xpc) 18%, transparent); color: var(--xpc); font: 700 12px/1.2 var(--f-display); letter-spacing: .06em; white-space: nowrap; }
.chips-r { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sets-chip svg { color: var(--fg-2); }
.sets-chip.on { border-color: var(--flag); }
.sets-chip.on svg { color: var(--flag); }
.sets .card.set { margin: 0; padding: 10px 14px; }
/* Marker (0.9.46) */
.mark-card { text-align: center; }
.mark-card h3 { display: flex; align-items: center; justify-content: center; gap: 6px; }
.mark-card .qr { width: min(64vw, 260px); height: auto; display: block; margin: 8px auto 4px; border-radius: 10px; }
.mark-sheet { text-align: center; }
.mk-res { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0; font-weight: 600; }
.mk-res b { font: 700 24px/1 var(--f-display); }
.mk-big { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 2px; }
.mk-big b { font: 700 56px/1 var(--f-display); }
.mk-done { color: var(--z0); font: 700 22px var(--f-display); display: flex; align-items: center; justify-content: center; gap: 6px; }
.mk-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 8px; }
.mk-pager .ic.fwd { color: inherit; }
.mk-wait { color: var(--flag); }
.mk-by { display: inline-flex; align-items: center; gap: 3px; }
.ev-list .btn.mk-qr { padding: 0 10px; border-color: var(--flag); color: var(--flag); }

.btn.check-update { width: auto; margin: 2px auto 0; display: flex; }
.build-line { margin-top: 28px; }
.mk-count { margin-left: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--flag); color: var(--flag-ink); font: 700 13px/22px var(--f-body); }
.mark-card.done { padding: 14px; }
.mk-list .ev-pickrow .ev-val { margin-left: 6px; white-space: nowrap; }

/* Leapfrog total: number pad (0.9.50) */
.pad-out { display: block; text-align: center; font: 700 64px/1 var(--f-display); color: var(--flag); font-variant-numeric: tabular-nums; margin: 6px 0 12px; }
.pad-out.empty { color: var(--fg-3); }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad .btn { min-height: 56px; font: 700 26px/1 var(--f-display); }
/* Delete key in red so it is easy to find (18 Nov 2026). */
.numpad .btn[data-v="del"] { background: var(--z2); border-color: var(--z2); color: #2a0703; }
.numpad .btn[data-v="del"]:disabled { opacity: .45; }

/* Phase 3: freshly unlocked drills and the unlock moment */
.pill.new-tag { height: 20px; padding: 0 7px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; background: var(--z0); color: var(--ink-0); }
.cat { position: relative; }
.cat-new { position: absolute; top: -7px; left: 8px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--z0); color: var(--ink-0); font: 800 10px/1.4 var(--f-body); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 0 2px var(--ink-0); }
.unlock-show { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--xpc) 30%, var(--ink-0)) 0%, var(--ink-0) 70%); animation: unlfade .25s ease-out; }
.unl-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.unl-inner h2 { margin: 6px 0 0; font: 700 40px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; animation: unlrise .5s .35s both ease-out; }
.lvc.huge { width: 120px; height: 120px; font-size: 64px; grid-auto-rows: min-content; align-content: center; gap: 2px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--xpc) 30%, transparent), 0 0 60px var(--xpc);
  animation: unlpop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.lvc.huge small { font-size: 16px; letter-spacing: .1em; opacity: .75; }
.unl-big { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--z0); color: var(--ink-0); box-shadow: 0 0 50px var(--z0); animation: unlpop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.unl-sub { margin: 0; color: var(--z0); font-weight: 700; display: flex; align-items: center; gap: 6px; animation: unlrise .5s .5s both ease-out; }
.unl-cards { width: 100%; display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.unl-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--ink-1); border: 1px solid var(--z0); color: var(--fg); text-decoration: none; text-align: left;
  animation: unlrise .45s calc(.7s + var(--i) * .12s) both ease-out; }
.unl-card .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.unl-card .who b { font: 700 20px/1.1 var(--f-display); text-transform: uppercase; }
.unl-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); color: var(--z0); flex: none; }
@keyframes unlfade { from { opacity: 0; } }
@keyframes unlpop { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes unlrise { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .unlock-show, .unlock-show * { animation: none !important; } }
.ev-pickrow.locked { opacity: .55; }
.ev-pickrow.locked .tick { border-color: transparent; }
.warn.locked a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Unlock cards are information only (16 Nov 2026), and the hint to finish the Combine/event/set first. */
.unl-card { cursor: default; }
.unl-card .pdist { flex: none; }
.unl-later { margin: 0 0 4px; color: var(--fg-2); font-size: 15px; }
/* Swallows taps while a level-up is about to show. */
.tap-guard { position: fixed; inset: 0; z-index: 45; background: transparent; }

/* Phase 3: event rows in History. Own outline (social blue-green, not the yellow action colour) and the place. */
.hrow.ev-hrow { border: 1.5px solid var(--z0); background: color-mix(in srgb, var(--z0) 8%, var(--ink-1)); border-radius: var(--r-m); padding-left: 10px; padding-right: 10px; }
.ev-place { min-width: 34px; display: inline-flex; align-items: baseline; justify-content: center; font-family: var(--f-display); color: var(--z0); }
.ev-place b { font-size: 26px; line-height: 1; }
.ev-place small { font-size: 13px; color: var(--fg-2); }

/* Phase 4: Single drills | Sets switch, expandable set rows. */
.seg2.drill-mode { margin: 4px 0 12px; }
.seg2.drill-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--z0); box-shadow: 0 0 8px var(--z0); }
.set summary { grid-template-columns: 30px 1fr 22px; }
.set summary .set-chev { grid-column: 3; grid-row: 1 / span 2; color: var(--fg-2); transform: rotate(-90deg); transition: transform .2s; display: grid; place-items: center; }
.set[open] summary .set-chev { transform: rotate(90deg); }
.set.locked { opacity: .7; }
.set-lock { width: 26px; height: 26px; display: grid; place-items: center; color: var(--fg-3); grid-row: span 2; }
.set-drills { display: grid; gap: 6px; margin-top: 10px; }

/* Notes box: closed by default, but clearly a button. */
.notes summary { border: 1px dashed var(--ink-3); border-radius: var(--r-pill); padding: 0 14px; }
.notes[open] summary { border-style: solid; }

/* Phase 5: carousel at the top of Practice. Same-size cards, swipe or wait 6 s; a line fills in the active dot. */
.carousel { margin: 0 0 12px; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.moving { pointer-events: none; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; padding: 0 1px; box-sizing: border-box; }
.car-slide > .card { flex: 1; margin: 0; display: flex; flex-direction: column; min-height: 220px; box-sizing: border-box; }
.car-slide > .card > .btn.primary:last-of-type, .car-slide > .card .resume-row { margin-top: auto; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; }
.car-arrow { width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--fg-2, var(--fg)); display: grid; place-items: center; cursor: pointer; }
.car-arrow:hover { background: var(--ink-2, var(--ink-3)); }
.car-arrow.next svg { transform: scaleX(-1); }
@media (hover: none) { .car-arrow { display: none; } }
.car-dots { display: flex; justify-content: center; gap: 0; }
/* The button is a 32 px tap area; the visible dot sits inside it. */
.car-dot { min-width: 28px; height: 36px; padding: 0 6px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.car-dot span { display: block; width: 10px; height: 10px; border-radius: var(--r-pill); background: var(--ink-3); overflow: hidden; position: relative; transition: width .25s; }
.car-dot.on span { width: 30px; background: color-mix(in srgb, #7fb6ff 25%, var(--ink-3)); }
.car-dot i { position: absolute; inset: 0; width: 0; background: #7fb6ff; }
.car-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (hover: hover) { .car-track { cursor: grab; } }
.car-dot.run i { width: 0; animation: carfill 6s linear forwards; }
@keyframes carfill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .car-dot.run i { animation: none; width: 100%; } }
.ev-slide .ev-card { margin: 8px 0 0; }
.set-slide .set-steps span .ic { color: var(--fg-2); }
.promo { border-color: var(--flag); }
.promo-eyebrow { display: inline-flex; align-items: center; gap: 4px; color: var(--flag); }
/* History total: the xp reads as a number, aligned with its line. */
.hist-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; color: var(--fg-2); font-size: 14px; }
.hist-sum .xp { font: 700 20px/1 var(--f-display); }
.hist-sum .xp .ic { width: 18px; height: 18px; }
/* Set score (0.9.68): the set total under the medal, best/TOP line, and set runs in History. */
.set-score { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 10px; }
.set-score b { font: 700 44px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.set-score span { font-weight: 700; color: var(--muted, var(--fg)); }
.set-score-note { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted, var(--fg)); display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.top-tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--flag); color: var(--ink-0, #111); font: 700 12px/1.4 var(--f-display); letter-spacing: .03em; }
.sum-row .sv small { display: block; font-size: 12px; font-weight: 600; color: var(--muted, var(--fg)); text-align: right; }
.set-best { color: var(--fg); font-weight: 600; }
.hrow.set-hrow { border: 1.5px solid color-mix(in srgb, var(--flag) 60%, var(--ink-3)); background: color-mix(in srgb, var(--flag) 6%, var(--ink-1)); border-radius: var(--r-m); padding-left: 10px; padding-right: 10px; }
/* 0.9.69: next-level reward is a button that names the drills; result medal scale; XP per History row. */
.lvl-reward { flex-direction: column; gap: 1px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--z0) 45%, var(--ink-3)); border-radius: var(--r-m); background: transparent; cursor: pointer; }
.lvl-reward small { font: 700 10px/1 var(--f-display); letter-spacing: .08em; color: var(--fg-2); }
.lvl-reward span { display: inline-flex; align-items: center; gap: 2px; }
.res-scale { width: 100%; margin: 12px 0 4px; }
.res-scale .mr { padding: 6px 2px; }
.res-scale .mr b { font-size: 15px; }
.res-scale .mr.cur { border-color: var(--flag); box-shadow: 0 0 0 1px var(--flag); }
.hval { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hval > b { font: inherit; }
.hxp { font: 600 13px/1 var(--f-body); }
.hxp .xp svg { width: 13px; height: 13px; }

/* Locked drill (17 Nov 2026): lock, level badge, medal buttons. Few words. */
.lock-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; margin: 10px 0; border-radius: var(--r-m);
  background: color-mix(in srgb, var(--z2) 12%, var(--ink-1)); border: 1px solid var(--z2); }
.lp-lock { color: var(--z2); display: grid; place-items: center; }
.lp-lv { width: 48px; height: 48px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--xpc); font-size: 20px; }
.lp-plus { font: 700 20px/1 var(--f-display); color: var(--fg-3); }
.lp-need { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--ink-3);
  color: var(--fg); text-decoration: none; min-height: 44px; }
/* A medal you can go and win looks like a button (17 Nov 2026: the grey chip didn't read as tappable). */
a.lp-need { background: var(--ink-0); border: 2px solid var(--flag); box-shadow: 0 2px 0 color-mix(in srgb, var(--flag) 45%, transparent); }
a.lp-need:active { transform: translateY(1px); box-shadow: none; }
a.lp-need > .ic:last-child { color: var(--flag); margin-left: 2px; }
.lp-need .ic { color: var(--fg-2); }
.lp-need b { font: 700 16px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
/* Medal that opens new drills: a small unlock mark on its corner. */
.mtargets span, .medal-row .mr, .gate-end { position: relative; }
.gate-end .opens { top: -4px; right: -6px; }
.opens { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--z0); color: var(--ink-0); font-style: normal; }
/* Set unlocked: its own card, not a drill row. */
.unl-card.set-card { flex-direction: column; align-items: flex-start; gap: 6px; border: 2px solid var(--xpc); background: color-mix(in srgb, var(--xpc) 12%, var(--ink-1)); padding: 14px 16px; }
.set-eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--xpc); }
.set-name { font: 700 24px/1.1 var(--f-display); text-transform: uppercase; }
.set-parts { display: flex; gap: 6px; }
.set-part { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); color: var(--xpc); }

/* Box Ladder: feedback after each round (17 Nov 2026). */
.ladder-flash { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 76px; margin: 12px 0; border-radius: var(--r-m);
  font: 700 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; background: var(--ink-2); color: var(--fg); animation: unlrise .25s both ease-out; }
.ladder-flash b { font-size: 30px; }
.ladder-flash.up { background: var(--z0); color: #04210f; }
.ladder-flash.down { background: var(--z2); color: #2a0703; }
.huge.flash-up { color: var(--z0); } .huge.flash-down { color: var(--z2); }
.reach { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font: 600 13px/1 var(--f-body); color: var(--fg-2); }

/* Hole and direction picker (17 Nov 2026 putting review) */
.picker { padding: 12px; }
.picker-row { display: flex; align-items: center; gap: 12px; }
.spot-dial { width: 170px; height: 170px; flex: none; }
.spot-dial .sd-ring { fill: var(--ink-1); stroke: var(--ink-3); stroke-width: 2; }
.spot-dial .sd-n { fill: var(--flag); font: 700 15px var(--f-display); text-anchor: middle; }
.spot-dial .sd-arrow { stroke: var(--flag); stroke-width: 3; stroke-dasharray: 6 5; }
.spot-dial .sd-hole { fill: #000; stroke: var(--fg-2); stroke-width: 1.5; }
.spot-dial .sd-ball { fill: #fff; stroke: var(--ink-0); stroke-width: 1.5; }
.spot-dial .sd-lbl { fill: var(--fg-2); font: 700 16px var(--f-display); text-anchor: middle; paint-order: stroke; stroke: var(--ink-1); stroke-width: 3px; }
.spot-dial .sd-lbl.one { font-size: 21px; }
.picker-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.picker-side .huge { line-height: 1; }
.holes-pick button { flex: 1 1 18%; }
/* Race to Ten */
.race-bar { position: relative; height: 10px; margin: 18px 6px 22px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--bad), var(--ink-3) 50%, var(--good)); }
.race-bar .rb-zero { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--fg-3); }
.race-bar .rb-dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--fg); border: 3px solid var(--ink-0); transition: left .3s; }
.race-bar .rb-l, .race-bar .rb-r { position: absolute; top: 14px; color: var(--fg-3); }
.race-bar .rb-l { left: 0; } .race-bar .rb-r { right: 0; }
.race-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.race-pad .btn.big { min-height: 72px; font-size: 18px; flex-direction: column; gap: 2px; }
.race-pad .btn.big small { font: 700 20px var(--f-display); opacity: .85; }
/* Short, then holed (-1) in a light red, so it reads as a small penalty next to 3 putts (18 Nov 2026). */
.race-pad .btn.soft-bad { background: color-mix(in srgb, var(--z2) 38%, var(--ink-2)); border-color: color-mix(in srgb, var(--z2) 55%, transparent); color: #ffd9d2; }
/* 18 Greens deck and Three-Putt Knockout (17 Nov 2026) */
.deck-cur { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; }
.deck-cur .brk { font: 700 18px var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--fg); display: inline-flex; gap: 8px; align-items: center; }
.brk-ic { font-style: normal; color: var(--flag); font-size: 22px; }
.deck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 12px 0; }
.deck .dk { position: relative; border: 1px solid var(--ink-3); border-radius: var(--r-s); padding: 8px 2px; text-align: center; font: 600 13px var(--f-body); color: var(--fg-2); background: var(--ink-1); }
.deck .dk.cur { border-color: var(--flag); color: var(--flag); box-shadow: 0 0 0 2px var(--flag) inset; }
.deck .dk.used { opacity: .5; text-decoration: line-through; }
.deck .dk b { position: absolute; top: -7px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; font: 700 12px/18px var(--f-display); background: var(--ink-3); color: var(--fg); text-decoration: none; }
.deck .dk.used.one b { background: var(--z0); color: var(--ink-0); }
.deck .dk.used.three b { background: var(--bad); color: var(--ink-0); }
.ko-row { display: grid; grid-template-columns: 56px repeat(3, 1fr); gap: 6px; align-items: center; margin: 6px 0; }
.ko-row .btn { min-height: 52px; padding: 0 4px; font-size: 14px; }
.ko-row .btn.dim { opacity: .35; }
.ko-row .btn.on { outline: 3px solid var(--flag); outline-offset: -3px; }
.spiral-map { display: block; width: 150px; height: 150px; margin: 0 auto 4px; }
.spiral-map circle:not(.sd-hole) { fill: var(--ink-2); stroke: var(--fg-3); stroke-width: 1.5; }
.spiral-map g.on circle { fill: var(--flag); stroke: var(--flag); }
.spiral-map text { fill: var(--fg-3); font: 700 11px var(--f-display); text-anchor: middle; }
.spiral-map g.on text { fill: var(--flag); }
.spiral-map .sd-hole, .deck-strip .sd-hole { fill: #000; stroke: var(--fg-2); stroke-width: 1.5; }
.deck-strip { display: block; width: 100%; margin: 10px 0; }
.deck-strip .ds-line { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 4 4; }
.deck-strip .dk circle { fill: #fff; stroke: var(--ink-0); stroke-width: 1.5; }
.deck-strip .dk.cur circle { stroke: var(--flag); stroke-width: 3; }
.deck-strip .dk.used circle { fill: #a9b4ac; }
.deck-strip .dk.used.one circle { fill: var(--z0); }
.deck-strip .dk.used.three circle { fill: var(--bad); }
.deck-strip .dk text { fill: var(--ink-0); font: 700 10px var(--f-display); text-anchor: middle; }
.spiral-map { width: 180px; height: 180px; }
.spiral-map .sp-path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 4; }
.spiral-map text { font-size: 13px; }

/* 17 Nov 2026 second putting review */
.modal-back { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, #000 70%, transparent); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; margin: 0; }
.picker-modal { padding: 18px 16px; }
.holes-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.holes-pick .btn { min-height: 52px; font: 700 20px/1 var(--f-display); padding: 0; }
.holes-pick .btn.on { outline: 3px solid var(--flag); outline-offset: -3px; }
.picker { position: relative; }
.holes-edit { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--fg); font: 600 13px/1 var(--f-body); cursor: pointer; min-height: 36px; }
.holes-edit .ic { color: var(--flag); }
.spot-dial .sd-north { fill: var(--flag); }
.spot-dial .sd-n { fill: var(--fg); font-size: 13px; }
.btn.redraw { background: var(--ink-2); border: 2px solid var(--fg-3); color: var(--fg); font-weight: 700; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.redraw.bad { background: var(--z2); border-color: var(--z2); color: #2a0703; }
.picker .redraw { margin-top: 8px; }
.deck-cur .dc-dist { display: flex; align-items: baseline; gap: 8px; }
.deck-cur .dual { font: 700 22px/1 var(--f-display); color: var(--fg-2); }
.deck-cur .brk { flex-direction: column; gap: 4px; }
.deck-cur .redraw { margin-top: 6px; }
.brk-art { width: 150px; height: 112px; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.brk-art .ba-hi { stop-color: #6fbf6a; }
.brk-art .ba-lo { stop-color: #1f5a2c; }
.brk-art .ba-stripe { fill: #fff; opacity: .05; }
.brk-art .ba-contour { fill: none; stroke: #fff; stroke-opacity: .22; stroke-width: 1.2; }
.brk-art .ba-edge { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.brk-art .ba-path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 5.5; }
.brk-art .ba-path-sh { fill: none; stroke: rgba(0,0,0,.25); stroke-width: 4; stroke-linecap: round; transform: translate(1px, 1.5px); }
.brk-art .ba-hole { fill: #0b1a0f; stroke: rgba(255,255,255,.55); stroke-width: 1; }
.brk-art .ba-pole { stroke: #f4f1e6; stroke-width: 1.4; }
.brk-art .ba-flag { fill: var(--flag); }
.brk-art .ba-shadow { fill: rgba(0,0,0,.35); }
.brk-art .ba-ball { fill: #fff; stroke: rgba(0,0,0,.35); stroke-width: .8; }
.brk-art .ba-badge { fill: rgba(10,25,14,.55); stroke: rgba(255,255,255,.5); stroke-width: 1; }
.brk-art .ba-badge-ar { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ko-outs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 6px; }
.ko-outs .btn { font-size: 14px; padding: 6px 8px; line-height: 1.15; }
.deck-strip .ds-tick { stroke: var(--ink-3); stroke-width: 1; }
.deck-strip .ds-tl { fill: var(--fg-3); font: 600 10px var(--f-body); text-anchor: middle; }
.deck-strip .dk text { font-size: 11px; }
.deck-strip .ds-line { stroke-dasharray: none; }
.ladder-map { display: block; width: 100%; max-width: 360px; margin: 0 auto 4px; }
.ladder-map circle:not(.sd-hole) { fill: var(--ink-2); stroke: var(--fg-3); stroke-width: 1.5; }
.ladder-map g.on circle { fill: var(--flag); stroke: var(--flag); }
.ladder-map text { fill: var(--fg-3); font: 700 13px var(--f-display); text-anchor: middle; }
.ladder-map g.on text { fill: var(--flag); }
.ladder-map .sd-hole { fill: #000; stroke: var(--fg-2); stroke-width: 1.5; }
.ladder-map .sp-path { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 4; }
/* Colour scale 0..4: red to green (Six-Foot Five Holes, Three-Foot Streak sets). */
.btn.sc0, .rchip.sc0 { --scc: var(--z2); }
.btn.sc1, .rchip.sc1 { --scc: color-mix(in srgb, var(--z2) 55%, var(--z1)); }
.btn.sc2, .rchip.sc2 { --scc: var(--z1); }
.btn.sc3, .rchip.sc3 { --scc: color-mix(in srgb, var(--z1) 45%, var(--z0)); }
.btn.sc4, .rchip.sc4 { --scc: var(--z0); }
.btn.sc0, .btn.sc1, .btn.sc2, .btn.sc3, .btn.sc4 { background: var(--scc); border-color: var(--scc); color: var(--ink-0); }
.btn.sc0.on, .btn.sc1.on, .btn.sc2.on, .btn.sc3.on, .btn.sc4.on { outline: 3px solid #fff; outline-offset: -3px; }
button.rchip.scaled { background: color-mix(in srgb, var(--scc) 30%, var(--ink-1)); border: 2px solid var(--scc); }
.rchip small { white-space: nowrap; }
.set-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 8px 0; }
.set-pad .btn { padding: 0; font: 700 22px/1 var(--f-display); }
.set-pad .btn.bad { font-size: 14px; }

/* Drill maps (Box Ladder, Growing Circle, Lag Zone), 17 Nov 2026 */
.drill-map { display: block; width: 100%; max-width: 360px; margin: 0 auto 6px; }
.drill-map.circle { max-width: 200px; }
.drill-map .dm-ring { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.drill-map .dm-tee { fill: #d9b98a; stroke: #6b4f2a; stroke-width: 1; }
.drill-map .dm-stick { stroke: #e9e2c8; stroke-width: 4; stroke-linecap: round; }
.drill-map .dm-box { fill: color-mix(in srgb, var(--z0) 14%, transparent); stroke: var(--fg-3); stroke-width: 1; stroke-dasharray: 3 3; }
.drill-map .dm-coin { fill: var(--flag); }
.drill-map .dm-ball { fill: #fff; stroke: var(--ink-0); stroke-width: 1.5; }
.drill-map .dm-ball.main, .drill-map .dm-ball.cur { stroke: var(--flag); stroke-width: 3; }
.drill-map .dm-ball.h { fill: var(--flag); }
.drill-map .dm-ball.ok { fill: var(--z0); }
.drill-map .dm-ball.no { fill: var(--z2); }
.drill-map .dm-arrow { stroke: var(--flag); stroke-width: 2; }
.drill-map .dm-head { fill: var(--flag); }
.drill-map .dm-dim, .drill-map .dm-line { stroke: var(--ink-3); stroke-width: 1.5; }
.drill-map .dm-big { fill: var(--flag); font: 700 20px var(--f-display); text-anchor: middle; }
.drill-map .dm-sm { fill: var(--fg-3); font: 700 12px var(--f-display); text-anchor: middle; }
.drill-map .dm-sm.end { text-anchor: end; }

/* Picker, round 3: hole on the left, dial in the middle */
.picker .picker-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.picker .picker-hole { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.picker .picker-hole .huge { font-size: 64px; line-height: .9; }
.picker .holes-edit { position: static; }
.picker .spot-dial { width: 180px; height: 180px; }
.spot-dial .sd-ball.on { stroke: var(--flag); stroke-width: 3.5; animation: sdPulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.spot-dial .sd-ball.gone { opacity: .3; }
.spot-dial .sd-lbl.on { fill: var(--flag); font-size: 18px; }
.spot-dial .sd-lbl.one.on { font-size: 22px; }
@keyframes sdPulse { 50% { transform: scale(1.25); } }
@media (max-width: 380px) { .picker .spot-dial { width: 150px; height: 150px; } .picker .picker-hole .huge { font-size: 52px; } }
.picker .holes-edit { white-space: nowrap; }
.set-pad { grid-template-columns: repeat(4, 1fr); }
.set-pad .set-all { grid-column: 1 / -1; min-height: 72px; font-size: 30px; }
.set-pad .btn.bad { border-radius: var(--r-m); min-height: 60px; font-size: 14px; line-height: 1.1; padding: 4px; }

/* Chipping Thirty (18 Nov 2026): the holed balls among the picked number turn gold. */
.num-pad .btn.fin.fhold { background: color-mix(in srgb, var(--flag) 70%, var(--ink-1)); border-color: var(--flag); color: var(--flag-ink); }
/* Chip Ladder map: the roll past the hole. */
.drill-map .dm-roll { fill: none; stroke: var(--fg-3); stroke-width: 1.5; stroke-dasharray: 3 3; }
/* Nth best ball picture (Bump and Run Seven, Reality Check). */
.nth-pic { display: block; width: 100%; max-width: 420px; margin: 4px auto 10px; }
.nth-pic .np-line { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 4; }
.nth-pic .np-flag { stroke: var(--fg-2); stroke-width: 2; }
.nth-pic .np-pennant { fill: var(--z2); }
.nth-pic .np-ball { fill: #fff; stroke: var(--ink-0); stroke-width: 1.5; }
.nth-pic .np-ball.out { opacity: .35; }
.nth-pic .np-ball.me { fill: var(--flag); stroke: #fff; stroke-width: 2.5; }
.nth-pic .np-me { fill: var(--flag); font: 700 16px var(--f-display); text-anchor: middle; }
.nth-pic .np-val { fill: var(--flag); font: 700 18px var(--f-display); text-anchor: middle; }
.nth-pic .np-sm { fill: var(--fg-3); font: 700 12px var(--f-display); text-anchor: start; }
.nth-pic .np-sm.end { text-anchor: end; }
.nth-row.one { grid-template-columns: 1fr 96px; }
.nth-pic .sd-hole, .drill-map .sd-hole { fill: #000; stroke: var(--fg-2); stroke-width: 1.5; }
/* Up and Down Nine (18 Nov 2026): the dealt lie, its stand-in picture and the four circle buttons. */
.ud-cur { display: grid; gap: 8px; }
.ud-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ud-dist { font: 700 34px var(--f-display); color: var(--flag); line-height: 1; }
.ud-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ud-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ud-pad .btn { display: grid; gap: 2px; padding: 10px 4px; }
.ud-pad .btn span { font-size: 18px; }
.ud-pad .btn small { font-size: 11px; opacity: .8; font-weight: 600; }
/* Chip It Close map (18 Nov 2026): this lap's chips in their zone colour; the next one pulses. */
.drill-map .dm-ball.z0 { fill: var(--z0); } .drill-map .dm-ball.z1 { fill: var(--z1); } .drill-map .dm-ball.z2 { fill: var(--z2); } .drill-map .dm-ball.zo { fill: var(--zout); }
.spot-map .dm-ball.cur { animation: spot-pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spot-pulse { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .spot-map .dm-ball.cur { animation: none; } }
.drill-map .dm-hint-arrow { fill: none; stroke: var(--flag); stroke-width: 1.5; }
.drill-map .dm-hint { fill: var(--fg-2); font: 600 12px var(--f-body, sans-serif); }
.drill-map .dm-info { fill: none; stroke: var(--flag); stroke-width: 1.5; }
.drill-map .dm-info-i { fill: var(--flag); font: 700 10px var(--f-display); text-anchor: middle; }
.ud-top { min-height: 72px; align-content: flex-start; }
.ud-balls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ud-balls span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--ink-3); color: var(--fg-3); }
.ud-balls span small { font: 600 12px var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.ud-balls span b { font: 700 24px var(--f-display); }
.ud-balls span i { font: 700 16px var(--f-display); font-style: normal; color: var(--fg); background: var(--ink-3); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.ud-balls span.on { border-color: var(--flag); color: var(--flag); background: color-mix(in srgb, var(--flag) 12%, transparent); }
.ud-balls span.done { color: var(--fg-2); }
.drill-map .dm-sm.start { text-anchor: start; }
.spot-map .dm-n { fill: var(--ink-0); font: 700 11px var(--f-display); text-anchor: middle; pointer-events: none; }
.spot-map .dm-gone { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.ud-img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 10px; background: var(--ink-1); }
/* Three Lofts style question (19 Nov 2026). */
.style-pick { display: grid; gap: 10px; margin-top: 10px; }
.style-pick .btn { display: grid; gap: 2px; justify-items: center; }
.style-pick .btn small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.style-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ink-3); background: none; color: var(--fg-2); font: 600 13px var(--f-body, sans-serif); }

/* Ring colours in shades of green (scoring.tone 'green', Random Wedges 19 Nov 2026): every ring is a good result. */
#app[data-tone="green"], .sheet-wrap[data-tone="green"] { --z0: #2fbf6c; --z1: #79d48c; --z2: #b9e6a8; }

/* Drawn distance (Pitching Thirty, 19 Nov 2026): the 30-60 m scale, this round's band, the part still allowed and the pin.
   Plays once when the round comes up (about 1.4 s), no loop. */
.draw-strip { margin: 10px 0 14px; padding: 12px 14px 8px; background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--r-m); }
.ds-track { position: relative; height: 26px; border-radius: 6px; background: var(--ink-2, #10261b); overflow: hidden; }
.ds-band { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--ink-3); }
.ds-band.done { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.ds-band.on { background: color-mix(in srgb, var(--z0) 22%, transparent); }
.ds-ok { position: absolute; top: 5px; bottom: 5px; left: var(--a); width: calc(var(--b) - var(--a)); background: color-mix(in srgb, var(--z0) 55%, transparent); border-radius: 4px; }
.ds-prev { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--fg-3); }
.ds-pin { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: var(--flag); border-radius: 2px; box-shadow: 0 0 8px color-mix(in srgb, var(--flag) 70%, transparent); }
.ds-scale { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font: 600 12px/1 var(--f-display); color: var(--fg-3); }
.ds-val { font: 700 30px/1 var(--f-display); color: var(--fg); }
.ds-val small { font-size: 16px; color: var(--fg-2); }
.draw-strip.anim .ds-band.on { animation: ds-fade .35s ease-out both; }
.draw-strip.anim .ds-ok { animation: ds-narrow .5s .3s ease-out both; }
.draw-strip.anim .ds-pin { animation: ds-pin 1.1s .3s cubic-bezier(.2, .7, .3, 1) both; }
.draw-strip.anim .ds-val, .draw-strip.anim .ds-n { animation: ds-fade .3s 1.4s ease-out both; }
.ds-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ds-n { font: 600 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-narrow { from { left: var(--lo); width: calc(var(--hi) - var(--lo)); } to { left: var(--a); width: calc(var(--b) - var(--a)); } }
@keyframes ds-pin { 0% { left: var(--a); opacity: 0; } 15% { opacity: 1; } 40% { left: var(--b); } 65% { left: var(--a); } 100% { left: var(--x); } }
.draw-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.draw-list span { padding: 5px 9px; border-radius: 8px; background: var(--ink-1); border: 1px solid var(--ink-3); font: 700 15px/1 var(--f-display); }
.draw-list small { margin-right: 5px; color: var(--fg-3); font-weight: 600; }

/* Target panel (Random Wedges, 19 Nov 2026): where to play from, first thing on screen. */
.target-panel { margin: 10px 0 12px; padding: 12px 14px; background: var(--ink-1); border: 1px solid color-mix(in srgb, var(--flag) 45%, var(--ink-3)); border-radius: var(--r-m); }
.tp-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-val { flex: 1; text-align: center; }
.tp-val small { display: block; font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.tp-val b { display: block; margin-top: 4px; font: 700 52px/1 var(--f-display); color: var(--flag); }
.tp-val b small { display: inline; font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.tp-row { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; }
.tp-row span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; font: 700 14px/1 var(--f-display); background: var(--ink-2); color: var(--fg-2); }
.tp-row span.done { opacity: .45; }
.tp-row span.on { background: var(--flag); color: #1b1600; }

/* Start choice (19 Nov 2026): play a drill as part of the running set or an event, or on its own. */
.ctx-pick .btn.big { justify-content: flex-start; gap: 12px; text-align: left; margin-top: 8px; }
.ctx-pick .btn.big span { display: flex; flex-direction: column; gap: 3px; }
.ctx-pick .btn.big small { font: 500 12px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.ctx-pick .btn.ghost { margin-top: 12px; }
.tp-lie { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 8px; }
.tp-lie .tag { font-style: normal; }
.tp-lie.big { margin-top: 10px; gap: 8px; } .tp-lie.big .tag { font-size: 17px; padding: 8px 12px; }

/* Awkward Bunker lie list (19 Nov 2026): set up every ball first, then play them. */
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-head small { font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.lie-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lie-list li { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 8px; background: var(--ink-2); }
.lie-list li b { min-width: 22px; text-align: center; font: 700 16px/1 var(--f-display); color: var(--flag); }
.lie-list li .tp-lie { justify-content: flex-start; margin: 0; gap: 4px; }
.lie-list li .tag { margin: 0; padding: 4px 10px; font-size: 14px; }
.lie-list li.on { outline: 2px solid var(--flag); }
.lie-list li.done { opacity: .45; }
.lp-all { text-align: center; margin-top: 8px; }

/* Over the Trouble (19 Nov 2026): Next from pulses at a new distance; map of spots, trouble, sticks and landings. */
.huge.station-new { color: var(--flag); animation: lvpop .6s ease-out 2; }
.trouble-map { display: block; width: 100%; margin: 6px 0 10px; }
.trouble-map .tm-trouble { fill: color-mix(in srgb, #d9b98a 30%, transparent); stroke: color-mix(in srgb, var(--zpen) 70%, #d9b98a); stroke-width: 1.5; stroke-dasharray: 5 4; }
.trouble-map .tm-edge { stroke: var(--zpen); stroke-width: 3; }
.trouble-map .tm-z { opacity: .22; } .trouble-map .tm-z.z0 { fill: var(--z0); } .trouble-map .tm-z.z1 { fill: var(--z1); } .trouble-map .tm-z.z2 { fill: var(--z2); }
.trouble-map .tm-dot { stroke: var(--ink-0); stroke-width: 1.2; } .trouble-map .tm-dot.z0 { fill: var(--z0); } .trouble-map .tm-dot.z1 { fill: var(--z1); }
.trouble-map .tm-dot.z2 { fill: var(--z2); } .trouble-map .tm-dot.out { fill: var(--fg-3); } .trouble-map .tm-dot.pen { fill: var(--zpen); stroke: #fff; }
.trouble-map .dm-ball.gone { opacity: .3; }
.trouble-map .dm-ball.cur { animation: spot-pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.trouble-map .tm-shot { stroke-dasharray: 4 4; }
.trouble-map .tm-d { fill: var(--flag); font-weight: 700; font-size: 13px; }

/* Range rework (20 Nov 2026): called shapes, fairway strip, square zones, club switch. */
.call-card { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; padding: 10px; border-radius: var(--r-m); background: var(--ink-2); }
.call-card > div { display: flex; flex-direction: column; gap: 2px; }
.call-card .shape { font: 700 28px/1.1 var(--f-display); text-transform: uppercase; color: var(--flag); }
.btn-row.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn-row .btn { position: relative; }
.btn-row .btn em { position: absolute; top: 6px; left: 8px; font-style: normal; font-size: 14px; opacity: .85; }
.btn.on { outline: 3px solid var(--flag); }
.shapes-t th, .shapes-t td { text-align: center; }
.shapes-t .shot-pic { display: block; margin: 0 auto 2px; }
.shapes-t .win { color: var(--z0); }
.fw-strip { display: block; width: 100%; height: 44px; margin: 6px 0; font-family: var(--f-display); }
.sq-map { display: block; width: 130px; height: 130px; margin: 6px auto; font: 600 9px var(--f-body); fill: #fff; }
.sq-map .sq { stroke: #fff; stroke-opacity: .5; }
.sq-map .sq.z0 { fill: var(--z0); } .sq-map .sq.z1 { fill: var(--z1); } .sq-map .sq.z2 { fill: var(--z2); }
.sq-l { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.cue.switch { color: var(--flag); font-weight: 700; }
.btn-row.three .btn.big { font-size: 17px; line-height: 1.1; padding: 8px 6px; min-height: 76px; }
.wheel-wrap.two { width: 230px; }
.wheel-wrap.two .wheel { flex: 0 0 110px; }
.wheel-wrap.two .wheel.tenths { flex: 0 0 64px; }
.wheel li.end { font-size: 22px; color: var(--z2); }
.wheel-wrap.two .wheel-u { right: 6px; }
/* 20 Nov 2026 review: softer green for the 1-point buttons, shape rows, grid window, path scale. */
.btn.ok { background: color-mix(in srgb, var(--z0) 55%, var(--ink-2)); color: #04210f; }
.shape-rows { display: grid; gap: 6px; margin: 10px 0; }
.srow { display: grid; grid-template-columns: 82px 1fr 34px; align-items: center; gap: 6px; padding: 4px 6px; border-radius: var(--r-m); }
.srow.on { background: var(--ink-2); }
.srow.win { outline: 2px solid var(--z0); }
.srow .sname { display: flex; align-items: center; gap: 4px; font: 700 14px var(--f-display); text-transform: uppercase; }
.srow .sname .shot-pic { width: 18px; height: 22px; }
.srow .sdots { display: grid; gap: 3px; }
.srow .ball { max-width: 26px; font-size: 11px; }
.srow .spts { font: 700 22px var(--f-display); text-align: right; }
.grid-win { display: block; width: 100%; max-width: 340px; margin: 6px auto; }
.grid-win .gw { stroke: #fff; stroke-opacity: .25; }
.grid-win .gw-0 { fill: var(--ink-3); } .grid-win .gw-r { fill: var(--z2); } .grid-win .gw-y { fill: var(--z1); } .grid-win .gw-g { fill: var(--z0); }
.grid-win .gw.on { stroke: var(--flag); stroke-width: 3; stroke-opacity: 1; }
.grid-win .gw-t { font: 700 15px var(--f-display); fill: #fff; text-anchor: middle; }
.grid-win .gw-l { font: 600 11px var(--f-body); fill: var(--fg-2); }
.path-scale { display: block; width: 220px; height: 46px; margin-top: 4px; }
.path-scale .ps-h { font: 600 10px var(--f-body); fill: var(--fg-2); }
.path-scale .ps-v { font: 700 12px var(--f-display); fill: #fff; }
.club-ask h3 { margin: 0 0 10px; }
.club-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.club-btns .btn { flex-direction: column; min-height: 86px; }
.club-btns .btn b { font: 700 34px/1 var(--f-display); }
.club-btns .btn small { font: 600 12px var(--f-body); text-transform: none; letter-spacing: 0; opacity: .8; }
.club-plan { display: flex; gap: 6px; margin: 8px 0; }
.club-plan span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: var(--r-m); background: var(--ink-2); color: var(--fg-2); font-size: 12px; }
.club-plan span b { font: 700 14px var(--f-display); text-transform: uppercase; }
.club-plan span.on { outline: 2px solid var(--flag); color: var(--fg); }
.club-plan span.done { color: var(--z0); }
.club-switch { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; margin: 8px 0; padding: 12px; border-radius: var(--r-m); background: var(--flag); color: #1b1600; animation: pop .4s ease; }
.club-switch svg { grid-row: span 2; }
.club-switch b { font: 700 20px var(--f-display); text-transform: uppercase; }
/* Range Leapfrog window bar (20 Nov 2026, round 2): red to the last ball, green from there to the end. */
.lb-bar { position: relative; margin: 10px 0; padding: 12px; border-radius: var(--r-m); background: var(--ink-1, var(--ink-2)); }
.lb-n { position: absolute; top: 8px; right: 12px; font-size: 12px; color: var(--fg-2); text-transform: uppercase; letter-spacing: .05em; }
.lb-n b { font: 700 26px/1 var(--f-display); color: var(--flag); margin-left: 4px; }
.lb-track { position: relative; height: 34px; margin-top: 26px; border-radius: 8px; overflow: hidden; background: var(--ink-3); }
.lb-red { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--z2); transition: width .4s ease; }
.lb-green { position: absolute; left: var(--p); right: 0; top: 0; bottom: 0; background: var(--z0); transition: left .4s ease; }
.lb-word { position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: #04210f; mix-blend-mode: normal; text-shadow: 0 0 6px rgba(255,255,255,.4); }
.lb-ends { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font: 600 13px var(--f-display); color: var(--fg-2); }
.lb-ends b { font-size: 20px; color: var(--fg); }
.btn.great { background: var(--z0); color: #04210f; box-shadow: inset 0 0 0 3px var(--flag); }
.call-card.split { justify-content: space-between; }
.call-card .cc-shape { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.path-fan { width: 160px; height: 124px; }
.path-fan .ps-h { font: 600 10px var(--f-body); fill: var(--fg-2); }
.path-fan .ps-v { font: 700 12px var(--f-display); fill: #fff; }
.duel-verdict small { font-size: 13px; color: var(--fg-2); font-weight: 600; }
/* 20 Nov 2026, round 3 */
.btn.mid { background: var(--z1); border-color: var(--z1); color: #2a1700; }
.call-card.split { display: grid; grid-template-columns: 1fr 2fr; justify-items: center; }
.wheel.tenths.off { visibility: hidden; }
.wheel li.short { color: var(--z2); opacity: .7; }
.grid-win .gw-o { fill: #e9783a; }
.grid-win .gw-y { fill: color-mix(in srgb, var(--z0) 55%, var(--z1)); }
.bests .best-shape, .board .best-shape { color: var(--z0); font-weight: 700; margin-left: 4px; }
.bests li .bv { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }

/* Course picker (20 Nov 2026): saved courses as chips with flags, search, add your own. */
.course-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.course-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--ink-3); background: var(--ink-1); color: var(--fg); font: 600 14px var(--f-body); cursor: pointer; max-width: 100%; }
.course-chip.on { border-color: var(--flag); color: var(--flag); background: var(--ink-2); }
.course-chip.find { color: var(--fg-2); border-style: dashed; }
.course-chip .flag, .course-row .flag { font-size: 18px; line-height: 1; }
.course-q, .course-cc { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-m); border: 1px solid var(--ink-3); background: var(--ink-1); color: var(--fg); font: 500 16px var(--f-body); margin-bottom: 8px; box-sizing: border-box; }
.course-res { display: grid; gap: 6px; margin: 4px 0 10px; }
.course-row { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--ink-3); background: var(--ink-1); color: var(--fg); cursor: pointer; }
.course-row .flag { grid-row: span 2; }
.course-row b { font: 600 15px var(--f-body); }
.course-row small { color: var(--fg-3); font-size: 12px; }
.osm-credit { font-size: 11px; color: var(--fg-3); text-align: right; margin: 2px 0 0; }
.btn-pair { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 12px; }

/* Scorecard marks on the course rounds (20 Nov 2026): eagle gold double circle, birdie red circle, par plain,
   bogey blue square, double bogey dark blue double square. */
:root { --sc-eagle: #f2c14e; --sc-birdie: #e5484d; --sc-bogey: #4c8dff; --sc-double: #2f55c9; }
.ball.sc { border: 0; background: none; color: var(--fg); font-weight: 700; }
.ball.sc-p { border: 2px solid transparent; }
.ball.sc-b { border: 2px solid var(--sc-birdie); border-radius: 50%; color: var(--sc-birdie); }
.ball.sc-e { border: 2px solid var(--sc-eagle); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-0), inset 0 0 0 4px var(--sc-eagle); color: var(--sc-eagle); }
.ball.sc-bo { border: 2px solid var(--sc-bogey); border-radius: 4px; color: var(--sc-bogey); }
.ball.sc-d { border: 2px solid var(--sc-double); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--ink-0), inset 0 0 0 4px var(--sc-double); color: #8fa8ff; }
.zone-grid .btn.sc-btn { border-width: 2px; }
.btn.sc-btn.sc-e { background: var(--sc-eagle); border-color: var(--sc-eagle); color: #2a1d00; }
.btn.sc-btn.sc-b { background: var(--sc-birdie); border-color: var(--sc-birdie); color: #fff; }
.btn.sc-btn.sc-p { background: #e8eeea; border-color: #e8eeea; color: #0b1a12; }
.btn.sc-btn.sc-bo { background: var(--sc-bogey); border-color: var(--sc-bogey); color: #fff; }
.btn.sc-btn.sc-d { background: var(--sc-double); border-color: var(--sc-double); color: #fff; }
.tee-best { margin-left: 6px; font-weight: 700; color: var(--fg); opacity: .8; }
.tee-best-line { margin: 4px 0 10px; }
.round-where .tee-dot { vertical-align: -1px; }
/* Editable tees (20 Nov 2026) */
.tee-own { background: repeating-linear-gradient(45deg, #9aa3ad 0 3px, #d8dde2 3px 6px); }
.tee-head { display: flex; align-items: center; justify-content: space-between; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--flag); font: 600 13px var(--f-body); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tee-edit button { color: var(--fg); }
.tee-edit button svg { opacity: .7; }
.tee-add { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.tee-add .course-q { flex: 1; margin: 0; }
.tee-green { background: #2f9e44; } .tee-gold { background: #d4a017; } .tee-silver { background: #c0c4c8; } .tee-orange { background: #f08c2a; } .tee-purple { background: #7b4fc9; }
.tee-addc button { color: var(--fg-2); border-style: dashed; }
/* Leapfrog over the Trouble (22 Nov 2026): the trouble to carry, then the carry confirmed */
.lb-trouble { margin: 2px 0 4px; font-weight: 700; color: var(--bad, #e5484d); }
.lb-trouble.good { color: var(--z0); }
/* Over the Trouble round 2 (22 Nov 2026): carry tick on the left, total wheel on the right */
.lb-tr-row { display: flex; gap: 10px; align-items: center; }
.lb-tr-row .wheel-wrap { flex: 1; }
.lb-carry { flex: 0 0 38%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 2px solid var(--z0); background: transparent; color: var(--z0); font: 600 14px/1.2 inherit; text-align: center; }
.lb-carry b { display: block; font-size: 18px; }
.lb-carry .lb-box { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 28px; background: var(--z0); color: #04210f; }
.lb-carry.off { border-color: var(--bad); color: var(--bad); }
.lb-carry.off .lb-box { background: var(--bad); color: #fff; }

/* ---------- accounts (account.js) ---------- */
.name-hint { margin: -4px 2px 0; display: flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 15px; }
.name-hint .ic { color: var(--flag); flex: none; }
.name-choices { display: grid; gap: 8px; }
.name-edit { position: relative; display: block; }
.name-edit .name-in { padding-right: 44px; }
.name-edit .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-2); pointer-events: none; }
.name-edit:focus-within .ic { color: var(--flag); }
.name-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: var(--r-s); background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--fg); font: 600 18px var(--f-body); text-align: left; cursor: pointer; }
.name-choice .nc-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fg-2); flex: none; }
.name-choice.on { border-color: var(--z0); }
.name-choice.on .nc-dot { border-color: var(--z0); background: radial-gradient(circle, var(--z0) 45%, transparent 50%); }
.acct-slot { display: grid; gap: 8px; }
.acct-ways { display: grid; gap: 8px; }
.acct-ways .muted { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.acct-btn { text-transform: none; letter-spacing: .01em; font: 600 17px/1 var(--f-body); }
.acct-btn svg { flex: none; }
.acct-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.acct-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.acct-apple { background: #000; color: #fff; border-color: #555; }
.acct-email-step { display: grid; gap: 8px; }
.acct-email-step p { margin: 0; }
.acct-code { text-align: center; letter-spacing: .4em; font: 700 24px var(--f-display); }
.acct-sheet > .muted { margin: -4px 0 0; }
.acct-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--ink-3); border-radius: var(--r-s); background: var(--ink-2); }
.acct-row .acct-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.acct-row.on { border-color: color-mix(in srgb, var(--z0) 55%, var(--ink-3)); }
.acct-label { margin: 6px 0 -2px; display: flex; align-items: center; gap: 6px; font: 700 13px var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
/* Handicap (account.js) */
button.acct-row { width: 100%; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.hcp-row .hcp-val { font: 700 20px var(--f-display); font-variant-numeric: tabular-nums; }
.hcp-sheet h2 { justify-content: center; }
.hcp-wheel { margin-top: 0; }

/* ============ Skill map: Your game (docs/design/skill-map, 25 Nov 2026) ============ */
.sm-card { display: grid; gap: 10px; --tour: #7fb6ff; }
.sm-card > * { min-width: 0; }
.sm-card .hero-head { margin-bottom: 0; align-items: center; }
.sm-card .bighcp { text-align: right; display: grid; gap: 2px; }
.sm-card .bighcp small { font: 600 11px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.sm-card .bighcp b { font: 700 30px/0.9 var(--f-display); color: var(--flag); font-variant-numeric: tabular-nums; }
.sm-seg { display: grid; grid-template-columns: .7fr 1fr 1fr 1fr 1fr; gap: 3px; background: var(--ink-2); border-radius: 999px; padding: 3px; }
.sm-seg button { position: relative; background: none; border: 0; cursor: pointer; text-align: center; font: 600 13px/1 var(--f-body); color: var(--fg-3); padding: 9px 0; border-radius: 999px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sm-seg button.on { background: var(--ink-0); color: var(--flag); }
.sm-seg button.hint::after { content: ""; position: absolute; top: 3px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--tour); }
.sm-card .mx { display: grid; gap: 3px; font-family: var(--f-display); }
.sm-card .mx .ch { font: 600 12px/1.1 var(--f-display); color: var(--fg-2); text-align: center; letter-spacing: 0; white-space: nowrap; align-self: end; padding-bottom: 2px; }
.sm-card .mx .rh { font: 600 14px/1.05 var(--f-display); color: var(--fg); align-self: center; letter-spacing: .02em; }
.mx .cellwrap { display: grid; gap: 2px; min-width: 0; }
.mx .cell { all: unset; box-sizing: border-box; cursor: pointer; position: relative; aspect-ratio: 1 / .78; max-height: 46px; width: 100%; border-radius: 6px; display: grid; place-items: center;
  font: 700 17px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--fg); transition: background-color .5s, box-shadow .2s; }
.mx .cell.sel { box-shadow: 0 0 0 2px var(--flag); z-index: 1; }
.mx .cell.hint { box-shadow: 0 0 0 2px var(--tour); }
.mx .cell.need { background: transparent !important; border: 1.5px dashed var(--ink-3); color: var(--fg-3); }
.mx .cell .old { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--fg-2); }
.mx .cell:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }
.sm-card .cb, .sm-res .cb { height: 3px; border-radius: 2px; background: var(--ink-3); overflow: hidden; display: block; }
.sm-card .cb i, .sm-res .cb i { display: block; height: 100%; background: var(--fg-2); border-radius: 2px; }
.sm-card .scale { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg-3); flex-wrap: wrap; }
.sm-card .scale .sw { display: inline-flex; width: auto; height: 10px; margin: 0; border-radius: 4px; overflow: hidden; }
.sm-card .scale .sw i { flex: 0 0 14px; width: 14px; height: 10px; display: block; }
.sm-card .scale .k { display: inline-flex; align-items: center; gap: 4px; }
.sm-card .scale .k .o { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--fg-2); display: inline-block; }
.sm-card .scale .k .n { width: 12px; height: 10px; border: 1.5px dashed var(--fg-3); border-radius: 3px; display: inline-block; }
.sm-card .trust { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12px; color: var(--fg-3); line-height: 1.35; }
.sm-card .trust .cb { height: 4px; }
.sm-card .cellinfo { background: var(--ink-2); border-radius: 10px; padding: 9px 10px; display: grid; gap: 6px; font-size: 13px; }
.sm-card .ci-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sm-card .ci-head b { font: 700 16px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.sm-card .ci-head .ci-h { color: var(--flag); }
.sm-card .conf { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 12px; color: var(--fg-3); }
.sm-card .conf .bar { height: 6px; background: var(--ink-3); border-radius: 4px; overflow: hidden; }
.sm-card .conf .bar i { display: block; height: 100%; background: var(--fg-2); border-radius: 4px; }
.sm-card .below { font-size: 12.5px; color: var(--fg-2); }
.sm-ov { display: grid; gap: 2px; }
.sm-ov .ovr { display: grid; grid-template-columns: 76px minmax(0, 1fr) 44px; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--ink-2); padding: 8px 2px; color: var(--fg); text-align: left; cursor: pointer; }
.sm-ov .ovr:last-child { border-bottom: 0; }
.sm-ov .nm { font: 600 15px/1 var(--f-body); grid-row: 1 / 3; }
.sm-ov .hs { display: flex; gap: 2px; flex-wrap: wrap; }
.sm-ov .hs i { width: 8px; height: 10px; border-radius: 2px; display: block; }
.sm-ov .hs i.need { border: 1px dashed var(--ink-3); }
.sm-ov .hv { font: 700 20px/1 var(--f-display); text-align: right; font-variant-numeric: tabular-nums; grid-row: 1 / 3; grid-column: 3; }
.sm-ov .cb { grid-column: 2; }
.fchip { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--f-body); padding: 6px 7px 6px 11px; border-radius: 999px; background: var(--flag); color: var(--flag-ink); }
.fchip button { background: #0002; border: 0; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; line-height: 1; color: inherit; padding: 0; }
.node .sm-how { font-style: normal; color: var(--flag); }
/* Skill map on the result screen */
.sm-res { display: grid; gap: 10px; --tour: #7fb6ff; }
.sm-res > * { min-width: 0; }
.sm-res h3 { margin: 0; }
.sm-res .pot { display: flex; align-items: baseline; gap: 10px; }
.sm-res .pot .lab { font: 600 11px/1.15 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.sm-res .pot .from { font: 600 20px/1 var(--f-display); color: var(--fg-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sm-res .pot .to { font: 700 36px/0.9 var(--f-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.sm-res .pot .d { font: 700 15px/1 var(--f-display); }
.sm-res .pot .d.up { color: var(--z0); } .sm-res .pot .d.flat { color: var(--fg-3); }
.sm-res .mx { display: grid; gap: 3px; font-family: var(--f-display); }
.sm-res .mx .ch { font: 600 12px/1.1 var(--f-display); color: var(--fg-3); text-align: center; align-self: end; padding-bottom: 2px; }
.sm-res .mx .rh { font: 600 13px/1.05 var(--f-display); color: var(--fg); align-self: center; }
.sm-res .mx .cell { cursor: default; font-size: 15px; max-height: 38px; }
.mx .cell.better { --pc: var(--z0); } .mx .cell.worse { --pc: var(--z2); } .mx .cell.newc { --pc: var(--flag); }
.mx .cell.touched { animation: sm-pulse 1.2s ease-out 1; box-shadow: 0 0 0 2px var(--pc, var(--flag)); }
@keyframes sm-pulse { 0% { box-shadow: 0 0 0 0 var(--pc, var(--flag)); } 100% { box-shadow: 0 0 0 9px transparent; } }
.sm-res .hit { display: grid; gap: 6px; padding: 9px 0; border-top: 1px solid var(--ink-3); }
.sm-res .hit .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sm-res .hit .t b { font: 700 15px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.sm-res .hit .hv { font: 700 15px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-res .hit .hv s { color: var(--fg-3); font-weight: 600; margin-right: 4px; }
.sm-res .hbar { flex: 1; position: relative; height: 8px; border-radius: 5px; background: var(--ink-3); overflow: hidden; }
.sm-res .hbar span { position: absolute; top: 0; bottom: 0; left: 0; transition: width .9s cubic-bezier(.2,.8,.2,1), left .9s cubic-bezier(.2,.8,.2,1); }
.sm-res .hbar .base { background: var(--flag); } .sm-res .hbar .gain { background: var(--z0); } .sm-res .hbar .loss { background: var(--z2); }
.sm-res .hscale { display: flex; justify-content: space-between; font: 600 10px/1 var(--f-display); color: var(--fg-3); letter-spacing: .04em; padding-top: 4px; }
.sm-res .small2 { font-size: 12px; color: var(--fg-3); }
.sm-res .small2 b { color: var(--fg-2); }
.reason { display: inline-flex; align-items: center; font: 600 11px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.reason.fresh { background: color-mix(in srgb, var(--tour, #7fb6ff) 18%, transparent); color: var(--tour, #7fb6ff); }
.reason.strong { background: color-mix(in srgb, var(--z0) 20%, transparent); color: var(--z0); }
.reason.off { background: var(--ink-2); color: var(--fg-2); }
.reason.filled { background: color-mix(in srgb, var(--flag) 20%, transparent); color: var(--flag); }
.reason.worse { background: color-mix(in srgb, var(--z2) 20%, transparent); color: var(--z2); }
.sm-note { background: var(--ink-2); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: var(--fg-2); display: grid; gap: 3px; }
.sm-note b { color: var(--fg); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .mx .cell.touched { animation: none; } .sm-res .hbar span { transition: none; } }
/* Carousel cards that point at a cell of Your game */
.sm-slide { --tour: #7fb6ff; }
.sm-why { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--tour); }
.sm-why i { width: 8px; height: 8px; border-radius: 50%; background: var(--tour); }
.sm-why.need i { background: none; border: 1.5px dashed var(--tour); }
.sm-slide .sm-how { font-style: normal; color: var(--flag); }
/* Which putt today? */
.putt-pick { display: grid; gap: 12px; }
.putt-pick .picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.putt-pick .pick { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--fg); cursor: pointer; min-width: 0; }
.putt-pick .pick b { font: 600 13px/1.1 var(--f-body); text-align: center; }
.putt-pick .recb { font: 700 10.5px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--flag-ink); background: var(--flag); padding: 3px 6px; border-radius: 6px; }
.putt-pick .edu { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--fg-3); }
.mx .ch.cu { text-align: left; color: var(--fg-3); text-transform: none; }

/* Fair play (25 Nov 2026): one card, once; a one-line note inside existing confirm sheets and before the first event. */
.fair-note { display: flex; gap: 8px; align-items: flex-start; background: var(--ink-2); border-radius: 12px; padding: 9px 12px; margin: 0 0 14px; font-size: 13.5px; line-height: 1.4; color: var(--fg-2); }
.fair-note svg { flex: none; margin-top: 2px; color: var(--flag); }
/* Fair play card v4 (26 Nov 2026): chip, scrolling panels, pinned footer. No visible scrollbar: the fade says "more below". */
.fair-sheet { display: flex; flex-direction: column; gap: 12px; max-height: 88vh; max-height: 88dvh; overflow: hidden; padding-bottom: 14px; }
.fair-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--ink-2); border-radius: 999px; padding: 4px 10px 4px 8px; font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.fair-chip svg { color: var(--flag); }
.fair-scroll { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 12px; align-content: start; padding-bottom: 28px; scrollbar-width: none; overscroll-behavior: contain; }
.fair-scroll::-webkit-scrollbar { display: none; }
.fair-scroll h2 { margin: 0; }
.fair-fade { position: sticky; bottom: -28px; height: 40px; margin-top: -40px; background: linear-gradient(transparent, var(--ink-1)); pointer-events: none; }
.fair-pt { display: grid; gap: 6px; background: var(--ink-2); border-radius: 14px; padding: 12px; }
.fair-pt h3 { margin: 0; font: 600 15px/1.3 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--fg); }
.fair-pt p { margin: 0; font-size: 13px; color: var(--fg-2); }
.fair-foot { display: grid; gap: 10px; border-top: 1px solid var(--ink-3); padding-top: 12px; }
.fair-take { display: flex; gap: 10px; align-items: center; margin: 0; background: color-mix(in srgb, var(--z0) 14%, var(--ink-2)); border: 1px solid color-mix(in srgb, var(--z0) 45%, transparent); border-radius: 14px; padding: 10px 12px; font: 600 14px/1.35 var(--f-body); }
.fair-take svg { flex: none; color: var(--z0); }
.fair-bye { text-align: center; font: 600 15px/1.3 var(--f-body); margin: 0; }
.fair-pic { display: block; width: 100%; height: auto; }
.fair-pic .fp-s { fill: var(--fg-3); font: 500 9px var(--f-body); } .fair-pic .fp-l { fill: var(--fg-2); font: 500 10px var(--f-body); } .fair-pic .fp-b { fill: var(--fg); font: 600 11px var(--f-body); }
.fair-pic .fp-old { text-decoration: line-through; }
.fair-pic .fp-good { fill: var(--z0); } .fair-pic .fp-bad { fill: var(--z2); opacity: .8; }
.fair-pic .fp-arrow { stroke: var(--fg-3); stroke-width: 2; fill: none; } .fair-pic .fp-dash { stroke: var(--fg-2); stroke-dasharray: 4 4; } .fair-pic .fp-arrowhead { fill: var(--fg-2); }
.fair-pic .fp-track { fill: var(--ink-3); } .fair-pic .fp-base { fill: var(--flag); } .fair-pic .fp-gain { fill: var(--z0); } .fair-pic .fp-loss { fill: var(--z2); }
.fair-pic .fp-needle path { fill: var(--fg); }
.fair-pic .fp-c { fill: var(--ink-3); } .fair-pic .fp-c2 { fill: var(--z0); opacity: .7; } .fair-pic .fp-c1 { fill: var(--z0); opacity: .35; } .fair-pic .fp-clow { fill: var(--z1); } .fair-pic .fp-cnew { fill: var(--flag); }
.fair-pic .fp-plus { fill: var(--flag-ink); } .fair-pic .fp-ring { fill: none; stroke: var(--fg); stroke-width: 2; }
.fair-pic .fp-chip { fill: var(--ink-1); stroke: var(--flag); } .fair-pic .fp-rec { fill: var(--flag); }
.fair-pic .fp-loop { fill: none; stroke: var(--z2); stroke-width: 3; } .fair-pic .fp-ahead { fill: var(--z2); }
.fair-pic .fp-no { fill: var(--z2); } .fair-pic .fp-yes { fill: var(--z0); } .fair-pic .fp-mark { fill: none; stroke: var(--ink-1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fair-pic .fp-honest { fill: none; stroke: var(--z0); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .fair-pic .fp-good-t { fill: var(--z0); }
.fair-pic .fp-needle { animation: fpNeedle 1.1s ease-out .3s both; }
.fair-pic .fp-gain, .fair-pic .fp-loss { transform-box: fill-box; transform-origin: left; animation: fpGrow 1.1s ease-out .3s both; }
@keyframes fpNeedle { from { transform: translateX(var(--dx)); } to { transform: none; } }
@keyframes fpGrow { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fair-pic * { animation: none !important; } }

/* ---------- 0.9.157 first-time polish (25 Nov 2026) ---------- */
/* Fresh install: a soft light sweeps across the Combine card; the card's edge and the Start here pill pulse in the same beat. */
.card.combine.fresh { position: relative; overflow: hidden; isolation: isolate; animation: combine-glow 3.2s ease-in-out infinite; }
.card.combine.fresh::before { content: ''; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: -45%; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244, 196, 48, .10) 35%, rgba(255, 236, 170, .22) 50%, rgba(244, 196, 48, .10) 65%, transparent);
  transform: skewX(-18deg); animation: combine-sweep 3.2s ease-in-out infinite; }
.card.combine.fresh .hero-head .pill { animation: combine-pill 3.2s ease-in-out infinite; }
@keyframes combine-sweep { 0% { left: -45%; opacity: 0; } 8% { opacity: 1; } 52% { left: 115%; opacity: 1; } 56%, 100% { left: 115%; opacity: 0; } }
@keyframes combine-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); } 30% { box-shadow: 0 0 26px 0 rgba(244, 196, 48, .32); } 60% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); } }
@keyframes combine-pill { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); } 30% { transform: scale(1.08); box-shadow: 0 0 16px 2px rgba(244, 196, 48, .55); } 60% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); } }
@media (prefers-reduced-motion: reduce) { .card.combine.fresh, .card.combine.fresh::before, .card.combine.fresh .hero-head .pill { animation: none; } .card.combine.fresh::before { display: none; } }
/* Combine progress: Step 2 of 4 */
.c-steps { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 8px 12px; border-radius: var(--r-s);
  background: var(--ink-1); border: 1px solid color-mix(in srgb, var(--flag) 40%, var(--ink-3)); }
.c-steps-l { font: 700 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--flag); white-space: nowrap; }
.c-steps-bar { display: flex; gap: 4px; flex: 1; max-width: 160px; }
.c-steps-bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--ink-3); }
.c-steps-bar i.done { background: var(--z0); }
.c-steps-bar i.on { background: var(--flag); }
/* All balls entered: a check beside 10/10 */
.all-in { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--z0); }
.huge .all-in svg { width: 26px; height: 26px; }
/* Name sheet after the first drill: "Continue as Anna", outlined in white like the Google button beside it */
.btn.name-go { background: transparent; color: #fff; border: 1.5px solid #fff; text-transform: none; letter-spacing: .01em; font: 600 17px/1 var(--f-body); }
.result .res-notes { margin: 10px auto 2px; text-align: left; max-width: 100%; }
.result .res-notes summary { max-width: 100%; }
.res-notes summary .lbls { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.res-notes .rn-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 180px; }

/* ---------- 0.9.158 (26 Nov 2026) ---------- */
/* Data bar: the part this drill added, green and pulsing a few times */
.sm-card .cb, .sm-res .cb { position: relative; }
.sm-res .cb { height: 4px; }
.cb .gain { position: absolute; top: 0; height: 100%; background: var(--z0); border-radius: 2px; animation: cb-gain 1.2s ease-in-out 5; }
@keyframes cb-gain { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 199, 118, 0); } 50% { opacity: .55; box-shadow: 0 0 6px 1px rgba(56, 199, 118, .7); } }
@media (prefers-reduced-motion: reduce) { .cb .gain { animation: none; } }
.tree .c-steps { margin: 0; }
/* Inside a Combine part (details.card) the card's summary padding won: the hat and arrow touched the edge. */
details.why > summary { padding: 0 18px 0 16px; }
/* A person's, nickname's or club's name inside text: its own colour, so it stands out from the words around it. */
.pn { color: var(--name); font-weight: 700; }
/* Between rounds: "Round 2" pops in the middle and fades away (1.6 s); taps go through */
.round-go { position: fixed; left: 50%; top: auto; bottom: calc(12% + env(safe-area-inset-bottom)); z-index: 40; pointer-events: none; display: grid; justify-items: center; gap: 2px;
  padding: 18px 34px 16px; border-radius: var(--r-l); background: color-mix(in srgb, var(--ink-1) 94%, transparent); border: 1.5px solid var(--flag);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7), 0 0 40px -8px rgba(244, 196, 48, .45); animation: round-go 1.6s ease-out forwards; }
.round-go .rg-done { display: inline-flex; align-items: center; gap: 6px; color: var(--z0); font-size: 14px; font-weight: 600; }
.round-go b { white-space: nowrap; font: 700 46px/1 var(--f-display); text-transform: uppercase; color: var(--flag); letter-spacing: .02em; }
.round-go .rg-of { color: var(--fg-2); font-size: 13px; }
@keyframes round-go { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  24% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .round-go { animation: round-go-fade 1.6s linear forwards; transform: translate(-50%, -50%); } }
@keyframes round-go-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.rounds .rchip.cur.fresh { animation: lvpop .6s ease-out 2; border-color: var(--flag); }

/* ---------- Practice home v4 (26 Nov 2026): level panel, Your game message, drills panel with folder tabs ---------- */
.lvl-card { display: grid; gap: 8px; padding: 12px 14px 10px; }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lc-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; font: 700 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.lc-head h2 .ic { color: var(--xpc); }
.lvl-card .lvl { margin: 0; }
.lc-flow { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; padding-top: 8px; border-top: 1px solid var(--ink-3); font-size: 12px; line-height: 1.15; color: var(--fg-2); }
.lc-flow > span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lc-flow > span .ic { color: var(--fg-3); --xp-ink: var(--ink-1); }
.lc-flow > span .ic.ic { width: 16px; height: 16px; }
.lc-flow .lv { font: 700 11px/16px var(--f-display); letter-spacing: .04em; background: var(--xpc); color: var(--ink-0); border-radius: var(--r-pill); padding: 0 6px; }
.lc-flow > i { font-style: normal; color: var(--fg-3); font-size: 15px; line-height: 16px; }
.lc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.lc-list li { display: flex; align-items: center; gap: 8px; }
.lc-list .ic { color: var(--fg-3); flex: none; }

.sm-card { border-color: color-mix(in srgb, var(--tour) 40%, var(--ink-3)); }
.sm-msg { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.35;
  color: color-mix(in srgb, var(--tour) 80%, var(--fg)); background: color-mix(in srgb, var(--tour) 8%, transparent); border: 1px solid color-mix(in srgb, var(--tour) 22%, transparent); }
.sm-msg .ic { flex: none; margin-top: 1px; }

.dpanel { margin-top: 22px; }
.dpanel .drills-head { align-items: center; margin: 0 2px 10px; }
.dpanel .chips-r { display: flex; align-items: center; gap: 8px; }
.dpanel .seg2.drill-mode { margin: 0; padding: 3px; gap: 2px; grid-template-columns: auto auto; }
.dpanel .seg2.drill-mode button { height: 34px; padding: 0 12px; font-size: 13px; }
.fav-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--ink-3); background: var(--ink-1); color: var(--fav); cursor: pointer; touch-action: manipulation; }
.fav-btn.on { border-color: var(--fav); background: var(--ink-2); }
.ftabs { display: flex; gap: 4px; padding: 0 2px; position: relative; z-index: 1; }
.ftabs .cat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; flex: 0 0 46px; min-width: 0;
  padding: 10px 0 8px; border: 1px solid var(--ink-3); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--ink-0); color: var(--fg-2); text-align: center; }
.ftabs .cat.on { flex: 1 1 auto; margin-bottom: -1px; padding-bottom: 9px; border-color: var(--flag); background: var(--ink-1); color: var(--fg); box-shadow: inset 0 3px 0 var(--flag); }
.ftabs .cat .cat-icon { display: flex; justify-content: center; color: inherit; }
.ftabs .cat.on .cat-icon { color: var(--flag); }
.ftabs .cat .cat-label { font-size: 14px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 4px; }
.ftabs .cat .bar { width: calc(100% - 8px); height: 5px; margin: auto 0 0; }
.ftabs .cat .cat-new { top: 5px; left: auto; right: 5px; width: 8px; height: 8px; padding: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink-0); }
.ftabs .cat.on .cat-new { box-shadow: 0 0 0 2px var(--ink-1); }
.dbody { background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: 16px; padding: 4px 10px 10px; margin: 0 2px; }
.ftabs:has(.cat.on) + .dbody { border-color: var(--flag); }
.dbody.first { border-top-left-radius: 0; }
.dbody.sets { padding-top: 10px; }
.dbody > .section-head.sub { margin: 10px 2px; }
.dbody .node { background: var(--ink-0); }
.ftabs:not(:has(.cat.on)) .cat { flex: 1 1 0; }
/* 0.9.161: data gain value green; foldable tip; set areas marked on Your game */
.sm-res .cv.up { color: var(--z0); }
.sm-tip > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--fg); min-height: 28px; }
.sm-tip > summary::-webkit-details-marker { display: none; }
.sm-tip .why-chev { transform: rotate(-90deg); transition: transform .2s; }
.sm-tip[open] .why-chev { transform: rotate(90deg); }
.sm-tip:not([open]) { padding-top: 6px; padding-bottom: 6px; }
.sm-ov .ovr { padding-left: 12px; }
.sm-ov .ovr.hint { box-shadow: inset 3px 0 0 var(--tour); }
.mx.hint { outline: 2px solid var(--tour); outline-offset: 4px; border-radius: 8px; }
.sm-tip p { margin: 4px 0 0; }
.run-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.run-title-row .run-title { min-width: 0; }
.run-title-row .putt-btn { flex: none; }

/* "DrillTree has moved" card on the old address (move.js) */
.move-wrap .move-host { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; color: var(--fg); margin: 10px 0 4px; letter-spacing: .5px; }
