/* Post a score, fast (Luke, 2026-10-20): last course played pre-chosen, one big hole, a keypad that stays open, one tap per hole.
   Luke, 2026-11-03: bright results (eagle electric blue, birdie green, par yellow, bogey orange, double red), big tiles, no number pad.
   Luke, 2026-11-08: dimples only on the panel's edge, never behind a number. Each hole is its own small black screen: the hole number
   in white, a white line, then the score in its colour (the look of the in-play hole strip). The total sits on a plain white plate. */
.qp-hole, .qp-tiles, .qp-strip, .qp-sum, .rv-panel, .mk-ask { --eg: #0A6CFF; --eg-hi: #5AA2FF; --bd: #4B7A47; --bd-hi: #8CCB7F; --pr: #FFD400; --pr-hi: #FFE55C; --bg: #FF2E2E; --bg-hi: #FF6B6B; --db: #FF7A00; --db-hi: #FFA64D;
  --scr: linear-gradient(180deg, #17191A, #060707 70%); --scr-edge: rgba(255, 255, 255, .1); }
/* the golf-ball dimples live in a rim around the panel; the face inside is plain black */
.screen.dusk .lx-panel.qp-panel { border: 7px solid transparent; padding: 13px 9px 11px;
  background: linear-gradient(180deg, #121314, #08090A) padding-box, url("/img/ball-black-hex.svg") 0 0 / 8px auto repeat border-box, #26282A border-box;
  background-blend-mode: normal; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 2px 6px rgba(0, 0, 0, .7); }
.screen.dusk .lx-panel.qp-panel::before, .screen.dusk .lx-panel.qp-panel::after { display: none; }   /* the leather bands of the other panels: the rim does that job here */
.qp-course { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; margin-top: 6px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: #fff; text-align: left; font: inherit; }
.qp-ct { display: grid; min-width: 0; flex: 1; }
.qp-cn { font: 650 16px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-cs { font-size: 13px; color: var(--quiet); }
.qp-chg { font: 700 13px/1 var(--sans); color: var(--brass-ink); }
.qp-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 10px; padding: 0 14px; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(244, 239, 228, .05); color: #fff; font: 600 14px/1 var(--sans); text-align: left; touch-action: manipulation; }
.qp-meta:active { background: rgba(244, 239, 228, .1); }
.qp-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-mc { font: 700 13px/1 var(--sans); color: #E2C27A; flex: none; }
.qp-open { animation: qp-open 220ms cubic-bezier(.16, 1, .3, 1) both; }
.qp-opts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; align-items: flex-end; }
.qp-opt { display: grid; gap: 3px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }
.qp-opt select, .qp-opt input { height: 44px; box-sizing: border-box; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: #fff; font: 600 14px var(--sans); color-scheme: dark; }
.qp-seg { flex: 1 0 100%; }
.qp-seg button { padding: 0 11px; min-height: 38px; font-size: 13px; }
.qp-strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.qp-dot { --c: rgba(255, 255, 255, .2); min-width: 0; width: 100%; box-sizing: border-box; position: relative; display: block; aspect-ratio: 1 / 1.5; padding: 0; overflow: hidden; border-radius: 8px;
  border: 1px solid var(--scr-edge); background: var(--scr); color: #fff; font: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(0, 0, 0, .6); -webkit-tap-highlight-color: transparent; }
.qp-dot b { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font: 800 10.5px/1 var(--sans); color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.qp-dot::before { content: ""; position: absolute; top: 20px; left: 20%; right: 20%; height: 1.5px; border-radius: 1px; background: rgba(255, 255, 255, .28); }
.qp-dot i { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 900 18px/1 var(--sans); font-style: normal; color: var(--c); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.qp-dot i:empty::before { content: "–"; font-weight: 700; color: rgba(255, 255, 255, .16); }
/* a scored hole: the white line lights up and the score shows in its colour, with a thin bar of the colour along the foot */
.qp-dot.has b { color: #fff; } .qp-dot.has::before { background: #fff; }
.qp-dot.has::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); }
.qp-dot.on { border-color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 2px 4px rgba(0, 0, 0, .6); }
.qp-dot.on b { color: #fff; }
.qp-dot.eg { --c: var(--eg-hi); } .qp-dot.bd { --c: var(--bd-hi); } .qp-dot.pr { --c: var(--pr); } .qp-dot.bg { --c: var(--bg-hi); } .qp-dot.db { --c: var(--db-hi); } .qp-dot.pk { --c: rgba(255, 255, 255, .55); }
/* the hole that was just scored switches on like a screen, once */
.qp-dot.just i, .qp-dot.just::after { animation: qp-on 360ms steps(1, end) both; }
@keyframes qp-on { 0% { opacity: 0; } 30% { opacity: .55; } 45% { opacity: .15; } 60%, 100% { opacity: 1; } }
.qp-hole { display: flex; align-items: flex-end; justify-content: space-between; margin: 14px 2px 14px; }
.qp-hn { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.qp-hn span { font: 650 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.qp-hn b { font: 400 88px/0.86 var(--serif); color: #fff; font-variation-settings: "opsz" 144; animation: qp-roll 300ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes qp-roll { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qp-par { margin: 0; font-size: 15px; color: var(--ink-2); text-align: right; display: grid; gap: 6px; justify-items: end; } .qp-par b { color: #fff; } .qp-par small { font-size: 12.5px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.qp-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qp-t { display: grid; place-items: center; align-content: center; gap: 3px; min-height: 84px; padding: 0; border: 0; border-radius: 16px; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  color: #14100A; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 42%), var(--c);
  box-shadow: inset 0 3px 0 #fff, inset 0 -3px 5px rgba(0, 0, 0, .2), 0 6px 12px -8px rgba(0, 0, 0, .8); transition: transform 110ms cubic-bezier(.2, .9, .3, 1), filter 110ms ease-out; }
.qp-t b { font: 900 36px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qp-t span { font: 900 12px/1 var(--sans); letter-spacing: .01em; }
.qp-t:active { transform: scale(.94); filter: brightness(.92); }
.qp-t.eg { --c: var(--eg); color: #fff; } .qp-t.bd { --c: var(--bd); color: #fff; } .qp-t.pr { --c: var(--pr); } .qp-t.bg { --c: var(--bg); color: #fff; } .qp-t.db { --c: var(--db); }
.qp-t.eg b, .qp-t.eg span, .qp-t.bd b, .qp-t.bd span, .qp-t.bg b, .qp-t.bg span { text-shadow: 0 1px 2px rgba(0, 0, 0, .5); -webkit-text-stroke: .6px rgba(0, 0, 0, .35); paint-order: stroke fill; }
.qp-t.pr b, .qp-t.pr span, .qp-t.db b, .qp-t.db span { -webkit-text-stroke: .5px rgba(0, 0, 0, .25); paint-order: stroke fill; }
.qp-t.sel { outline: 3px solid #F4EFE4; outline-offset: 2px; }
.qp-ot { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(244, 239, 228, .22); background: rgba(244, 239, 228, .06); color: #F4EFE4; font: 650 14.5px/1 var(--sans); touch-action: manipulation; }
.qp-ot b { font-weight: 800; } .qp-ot span { font: 500 20px/1 var(--sans); color: rgba(244, 239, 228, .7); }
.qp-ot:active { background: rgba(244, 239, 228, .14); }
.qp-ot.sel { border-color: #F4EFE4; }
.qp-t:focus-visible, .qp-ot:focus-visible, .qp-k:focus-visible, .qp-dot:focus-visible { outline: 3px solid #F4EFE4; outline-offset: 3px; }
.qp-pad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; padding: 12px; border-radius: 18px; background: rgba(244, 239, 228, .05); border: 1px solid var(--line); animation: qp-open 220ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes qp-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.qp-k.wide { grid-column: 1 / -1; min-height: 46px; }
.qp-k { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 64px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: #fff; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 90ms ease-out; }
.qp-k:active { transform: scale(.95); }
.qp-k b { font: 700 24px/1 var(--sans); } .qp-k span { font: 650 11.5px/1 var(--sans); letter-spacing: .02em; color: rgba(255, 255, 255, .8); }
.qp-pad .qp-k { min-height: 52px; border-radius: 14px; } .qp-pad .qp-k b { font-size: 21px; }
.qp-k.sel { outline: 2px solid #E2C27A; outline-offset: 1px; background: rgba(226, 194, 122, .28); }
.qp-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.qp-k.ghost { grid-auto-flow: column; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; background: transparent; } .qp-k.ghost span { font-size: 14px; }
.qp-k.ghost:disabled { opacity: .35; } .qp-k.ghost .ico { width: 18px; height: 18px; }
.qp-left { margin: 0; font-size: 14px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.qp-finish { margin-top: 14px; }
.qp-sum { margin: 22px 0 6px; text-align: center; }
.qp-sk { margin: 0; font: 650 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.screen.dusk .lx-panel .qp-big { color: #0A0A0A; }
.qp-big { display: table; margin: 10px auto 0; padding: 14px 30px 8px; border-radius: 22px; font: 700 104px/0.95 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.02em; color: #0A0A0A;
  background: linear-gradient(180deg, #FFFFFF, #ECE9E1); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .1), 0 10px 20px -10px rgba(0, 0, 0, .9); }
.qp-vs { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.qp-pill { padding: 7px 13px; border-radius: 999px; font: 900 14px/1 var(--sans); color: #1A1406; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.qp-pill.bd, .qp-pill.bg, .qp-pill.eg { color: #fff; } .qp-pill.bd { --c: var(--bd); } .qp-pill.pr { --c: var(--pr); } .qp-pill.bg { --c: var(--bg); } .qp-pill.db { --c: var(--db); } .qp-pill.eg { --c: var(--eg); }
.qp-counts { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qp-counts li { display: grid; gap: 6px; padding: 12px 0 9px; border-radius: 12px; background: var(--scr); border: 1px solid var(--scr-edge); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .85); }
.qp-counts b { font: 900 28px/1 var(--sans); color: var(--c); font-variant-numeric: tabular-nums; }
.qp-counts span { font: 850 10.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); }
.qp-counts li.eg { --c: var(--eg-hi); } .qp-counts li.bd { --c: var(--bd-hi); } .qp-counts li.pr { --c: var(--pr); } .qp-counts li.bg { --c: var(--bg-hi); } .qp-counts li.db { --c: var(--db-hi); }
.qp-counts li.none b { opacity: .35; }
.qp-edit { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .qp-k, .qp-t { transition: none; } .qp-hn b, .qp-pad, .qp-dot.just i, .qp-dot.just::after { animation: none; } }

/* ── The review page after posting (Luke, 2026-11-03): contour behind, dimpled black panel, big score, coloured score cells ── */
.rv-panel { padding-top: 14px; }
.rv-course { display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(244, 239, 228, .75); }
.rv-hero { margin: 14px 0 6px; text-align: center; }
/* the score sits on a white plate, in black (Luke, 2026-11-03; plain, no dimples, 2026-11-08); the panel's own paragraph colour is white, so the rule names the panel too */
.screen.dusk .lx-panel .rv-big { color: #0A0A0A; }
.rv-big { display: table; margin: 0 auto; padding: 14px 30px 10px; border-radius: 24px; font: 700 104px/0.95 var(--serif); font-variation-settings: "opsz" 144; color: #0A0A0A; letter-spacing: -.02em;
  background: linear-gradient(180deg, #FFFFFF, #ECE9E1); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .1), 0 10px 20px -10px rgba(0, 0, 0, .9); }
.rv-vs { margin: 8px 0 0; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 14px; color: var(--quiet); }
.rv-trio { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.rv-trio li { display: grid; gap: 6px; padding: 13px 0 10px; border-radius: 12px; background: var(--scr); border: 1px solid var(--scr-edge); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .85); }
.rv-trio b { font: 700 34px/1 var(--serif); color: #fff; font-variation-settings: "opsz" 72; }
.rv-trio span { font: 850 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.rv-note { margin: 10px 4px 0; text-align: center; }
.rv-sum { display: grid; gap: 8px; }
.rv-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 14px; background: var(--scr); border: 1px solid var(--scr-edge); }
.rv-row > div { display: grid; gap: 3px; min-width: 0; }
.rv-row b { font: 700 22px/1.15 var(--serif); color: #fff; }
.rv-row > div > span { font: 650 13px/1.3 var(--sans); color: rgba(244, 239, 228, .7); }
.rv-badge { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 1px; color: #1A1406;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 42%), var(--c); box-shadow: inset 0 3px 0 #fff, inset 0 -3px 5px rgba(0, 0, 0, .2); }
.rv-badge b { font: 900 26px/1 var(--sans); color: inherit; letter-spacing: -.02em; } .rv-badge i { font: 900 9.5px/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.rv-badge.eg { --c: var(--eg); color: #fff; } .rv-badge.bd { --c: var(--bd); color: #fff; } .rv-badge.pr { --c: var(--pr); } .rv-badge.bg { --c: var(--bg); color: #fff; } .rv-badge.db { --c: var(--db); }
/* the scorecard's own cells, in the same colours */
.rv-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font: 900 14px/1 var(--sans); color: #1A1406;
  background: var(--c); box-shadow: inset 0 2px 0 #fff; }
.rv-n.eg { --c: var(--eg); color: #fff; } .rv-n.bd { --c: var(--bd); color: #fff; } .rv-n.pr { --c: var(--pr); } .rv-n.bg { --c: var(--bg); color: #fff; } .rv-n.db { --c: var(--db); }
/* the scorecard table on the review page: plain black face */
.screen.dusk .lx-panel.rv-panel table.card { background: #060707; box-shadow: inset 0 0 0 1px var(--scr-edge); }

/* ── The Marker question that pops up when the first round is posted (Luke, 2026-11-08): the same black face with a dimpled rim ── */
html[data-dusk] .sheet.mk-ask, .sheet.mk-ask { border: 7px solid transparent; border-bottom: 0; color: #fff;
  background: linear-gradient(180deg, #121314, #08090A) padding-box, url("/img/ball-black-hex.svg") 0 0 / 8px auto repeat border-box, #26282A border-box;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.sheet.mk-ask .mk-what { padding: 2px 14px; border-radius: 12px; background: var(--scr); border: 1px solid var(--scr-edge); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .85); }
html[data-dusk] .sheet.mk-ask .btn:not(.primary) { background: linear-gradient(180deg, #232425, #0E0F10); border-color: rgba(255, 255, 255, .16); }
