/* Member Number. Clubhouse green, scorecard cream, one loud accent. Square corners. */
@font-face { font-family: 'Anton'; src: url('../fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --green: #0E2B1F; --green-2: #143827; --cream: #ECE6D6; --muted: #B9C4B2; --faint: #8FA093; --accent: #F2C94C;
  --line: rgba(236, 230, 214, 0.28);
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--green); color: var(--cream); font-family: var(--mono); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--cream); text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 760px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 16px clamp(16px, 4vw, 32px) calc(96px + env(safe-area-inset-bottom)); }
.wrap.home { padding-bottom: 32px; }

.label, .btn, .tab, th, .chip { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.label { color: var(--muted); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.9; margin: 0; }
.h1 { font-size: clamp(64px, 19vw, 150px); }
.h2 { font-size: clamp(40px, 11vw, 76px); overflow-wrap: anywhere; }
.evhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evhead h1 { min-width: 0; }
.evhead.marked h1 { font-size: clamp(32px, 9.4vw, 76px); }
.evmark { flex: 0 0 auto; width: clamp(84px, 25vw, 170px); height: auto; margin: -6px 0 -2px; }
.h3 { font-size: clamp(26px, 6.4vw, 38px); line-height: 0.98; overflow-wrap: anywhere; }
.lede { font-family: var(--serif); font-size: clamp(22px, 5.4vw, 30px); line-height: 1.15; margin: 0; text-wrap: balance; }
.lede em { color: var(--accent); }
.stack { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g40 { gap: 40px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrapx { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mark { display: inline-flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 44px; font-family: var(--display); font-size: 24px; line-height: 0.9; text-transform: uppercase; text-decoration: none; color: var(--cream); background: none; border: 0; padding: 0; text-align: left; }
.mark span + span { display: flex; align-items: flex-end; gap: 0.12em; }
.mark i { flex: 1 1 auto; min-width: 1.5em; height: 0.11em; margin-bottom: 0.08em; background: var(--accent); }
.sitenav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 20px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.sitenav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--cream); }
.sitenav a[aria-current] { color: var(--accent); }
a.mark { text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); min-height: 44px; background: none; border: 0; padding: 0; text-align: right; }
.dot { width: 8px; height: 8px; background: var(--faint); flex: 0 0 auto; }
.dot.on { background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; background: var(--accent); color: var(--green); border: 1px solid var(--accent); font-weight: 500; text-decoration: none; text-align: center; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn.small { min-height: 44px; padding: 0 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; }
.link { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--cream); text-decoration: underline; text-underline-offset: 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.link.accent { color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=tel], input[type=email], input:not([type]), select, textarea { height: 48px; width: 100%; min-width: 0; padding: 0 12px; background: transparent; color: var(--cream); border: 1px solid var(--cream); font-size: 16px; }
textarea { height: auto; min-height: 140px; padding: 12px; line-height: 1.5; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--green); color: var(--cream); }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input.code { font-family: var(--display); font-size: 32px; letter-spacing: 0.12em; text-transform: uppercase; height: 64px; }

.rule { border-top: 1px solid var(--cream); }
.box { border: 1px solid var(--cream); padding: 16px; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--muted); font-size: 13px; }
.toast { position: fixed; left: 16px; right: 16px; top: 12px; z-index: 30; margin: 0 auto; max-width: 520px; background: var(--cream); color: var(--green); padding: 14px 16px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; overflow-wrap: anywhere; }

/* Bottom tabs */
/* the bottom bar: scorecard cream against the green, so it reads as the way around */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--cream); border-top: 3px solid var(--accent); box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.38); padding-bottom: env(safe-area-inset-bottom); }
.tabs div { max-width: 760px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tab { min-height: 60px; background: none; border: 0; color: #0E2B1F; font-weight: 500; }
.tab[aria-current=true] { background: #0E2B1F; color: var(--accent); }
.tab + .tab { border-left: 1px solid rgba(14, 43, 31, 0.18); }

/* Leaderboard */
.lb { display: flex; flex-direction: column; border-top: 1px solid var(--cream); }
.lbh, .lbr { display: grid; grid-template-columns: 28px minmax(0, 1fr) 52px 36px; gap: 6px; align-items: center; }
.lbh { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.lbh span:nth-child(n+3), .lbr > span:nth-child(n+3) { text-align: right; }
.lbr { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; text-align: left; min-height: 64px; }
.lbr .pos { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.mv { font-style: normal; font-size: 10px; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.mv.up { color: var(--accent); } .mv.down { color: var(--faint); }
.hot { display: inline-flex; align-items: center; gap: 5px; background: #F2C94C; color: #F25A3C; font-weight: 500; padding: 2px 7px 2px 5px; margin-right: 10px; letter-spacing: 0.14em; }
.hot svg { width: 12px; height: 15px; fill: #F25A3C; margin-top: -2px; }
.hot svg .core { fill: #FFF1B8; }
.oil { display: inline-flex; align-items: center; gap: 5px; background: #0A1A13; color: var(--muted); border: 1px solid var(--faint); font-weight: 500; padding: 1px 7px 1px 5px; margin-right: 10px; letter-spacing: 0.14em; }
.oil svg { width: 9px; height: 13px; fill: #000; stroke: var(--muted); stroke-width: 1.2; margin-top: -1px; }
.oil svg .shine { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
/* side games */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); border: 1px solid var(--cream); }
.seg.wide { display: grid; max-width: 440px; }
.seg button { min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--cream); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.seg button + button { border-left: 1px solid var(--cream); }
.seg button.on { background: var(--accent); color: #0E2B1F; font-weight: 500; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sg-pl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sg-pl > span { min-width: 0; font-size: 14px; }
.sg-pl small { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent); margin-left: 6px; }
.sg-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); background: var(--green-2); }
.sg-sw { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--cream); text-align: left; font-family: var(--display); font-size: 26px; text-transform: uppercase; line-height: 1; }
.sg-sw i { flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid var(--cream); position: relative; }
.sg-sw.on i { background: var(--accent); border-color: var(--accent); }
.sg-sw.on i::after { content: ''; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid #0E2B1F; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sg-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.sg-rules .sg-sw { font-family: var(--mono); font-size: 13px; text-transform: none; }
.sg-rules .sg-sw i { width: 22px; height: 22px; }
.sg-rules .sg-sw.on i::after { left: 5px; top: 1px; width: 6px; height: 11px; }
.sg-rules small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.sg-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.sg-vs b { font-weight: 400; font-size: clamp(20px, 6vw, 34px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.sg-vs b.r { text-align: right; }
.sg-vs .v { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 20px; }
.sg-bank { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--accent); color: #0E2B1F; }
.sg-bank .aw-t, .sg-bank .aw-d { color: #0E2B1F; font-weight: 500; }
.sg-bank h2 { margin: 0; font-weight: 400; font-size: clamp(28px, 8.4vw, 52px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.sg-bank.flat { background: none; color: var(--cream); border: 1px solid var(--cream); }
.sg-bank.flat .aw-t { color: var(--accent); } .sg-bank.flat .aw-d { color: var(--muted); }
.sg-holes { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
.sg-holes i { font-style: normal; text-align: center; font-size: 11px; line-height: 26px; height: 26px; border: 1px solid var(--line); color: var(--faint); }
.sg-holes i.a, .sg-key i.a { background: var(--accent); border-color: var(--accent); color: #0E2B1F; font-weight: 500; }
.sg-holes i.b, .sg-key i.b { background: var(--cream); border-color: var(--cream); color: #0E2B1F; font-weight: 500; }
.sg-holes i.h, .sg-key i.h { border-color: var(--muted); color: var(--muted); }
.sg-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sg-key span { display: inline-flex; align-items: center; gap: 6px; }
.sg-key i { width: 10px; height: 10px; border: 1px solid var(--muted); }
.sg-seg { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); align-items: flex-start; }
.sg-bet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; align-items: baseline; }
.sg-bet .sg-l { grid-column: 1; grid-row: 1; font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1; }
.sg-bet.press .sg-l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.sg-bet .sg-a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--display); font-size: 22px; color: var(--muted); }
.sg-bet .sg-a.won { color: var(--accent); }
.sg-bet .sg-s { grid-column: 1; grid-row: 2; font-size: 12px; line-height: 1.45; color: var(--muted); }
.sg-bet .sg-s b { color: var(--cream); font-weight: 500; }
.sg-bet.pending .sg-s { color: var(--faint); }
.sg-bet .sg-x { grid-column: 1 / -1; justify-self: start; font-size: 11px; }
.sg-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: center; }
.sg-score b { display: block; font-weight: 400; font-size: 64px; line-height: 1; }
.sg-score .dash { font-size: 36px; color: var(--faint); }
.sg-tab td, .sg-tab th { text-align: center; } .sg-tab td:first-child, .sg-tab th:first-child { text-align: left; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 12px; }

/* the awards: handed out when the last card is in */
.awards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.aw { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 16px; border-top: 1px solid var(--line); min-width: 0; }
.aw-t { color: var(--accent); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.aw b.display { font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.aw-d { color: var(--cream); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.aw p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.2; color: var(--muted); }
.aw.champ { background: var(--accent); color: #0E2B1F; border: 0; padding: 20px 18px 22px; gap: 8px; }
.aw.champ .aw-t, .aw.champ .aw-d { color: #0E2B1F; font-weight: 500; }
.aw.champ h2 { margin: 0; font-weight: 400; font-size: clamp(34px, 11vw, 64px); line-height: 0.92; text-transform: uppercase; overflow-wrap: anywhere; }
.aw.champ p { color: #0E2B1F; font-size: 19px; }
.aw.k-snowman .aw-t, .aw.k-slide .aw-t, .aw.k-last .aw-t { color: var(--muted); }
.pay { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 6px; border-top: 1px solid var(--line); }
.paytab { width: 100%; border-collapse: collapse; }
.paytab th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px 0; }
.paytab td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); font-size: 13px; vertical-align: baseline; white-space: nowrap; }
.paytab td.nm { font-family: var(--display); font-size: 19px; text-transform: uppercase; white-space: normal; line-height: 1.05; }
.paytab td.big { font-family: var(--display); font-size: 24px; color: var(--accent); padding-right: 0; text-align: right; }
.paytab th:last-child { text-align: right; padding-right: 0; }
.awgrid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .awgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.livedot { display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: livedot 1.8s ease-in-out infinite; }
@keyframes livedot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } }
.lb-head { margin-top: 20px; }
/* the ticker: latest from the course, sitting in the leaderboard's own rules */
.ticker { border-top: 1px solid var(--cream); padding-top: 4px; display: flex; flex-direction: column; }
.tk { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.tk p { margin: 0; }
.tk-h { font-family: var(--display); font-size: 15px; color: var(--faint); line-height: 1; }
.tk-h small { display: block; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.tk.top .tk-h small { color: var(--muted); font-size: 8px; }
.tk-t { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.tk.top { padding: 10px 0 8px; color: var(--cream); }
.tk.top p { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.tk.top .tk-h { color: var(--accent); font-size: 22px; }
.tk.top.k-blow .tk-h { color: var(--muted); }
.tk.new { animation: tk-in 0.5s ease-out; }
.tk.new .tk-h { animation: tk-flash 1.6s ease-out; }
@keyframes tk-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes tk-flash { 0%, 40% { background: var(--accent); color: #0E2B1F; box-shadow: 0 0 0 4px var(--accent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .tk.new, .tk.new .tk-h { animation: none; } }
.tk-more { align-self: flex-start; margin: 2px 0 6px 34px; font-size: 11px; }
@media (min-width: 620px) { .tk { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; } .tk-more { margin-left: 64px; } }
.lbr .nm { font-family: var(--display); font-size: clamp(15px, calc((100vw - 172px) / 9.4), 30px); /* sized so two surnames and their handicaps hold one line on a phone */ line-height: 1; text-transform: uppercase; display: block; overflow-wrap: anywhere; }
.prow button.armed { background: #F25A3C; border-color: #F25A3C; color: #0E2B1F; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 2px; }
.fixes { border: 1px solid var(--line); }
.fixes summary { list-style: none; cursor: pointer; padding: 14px 16px; min-height: 48px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; align-items: center; }
.fixes summary::-webkit-details-marker { display: none; }
.fixes summary::after { content: '+'; font-size: 18px; letter-spacing: 0; }
.fixes[open] summary::after { content: '–'; }
.fixlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fixlist button { display: flex; flex-direction: column; gap: 4px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; min-height: 60px; color: var(--cream); }
.fixlist button:last-child { border-bottom: 0; }
.fixlist b { font-weight: 500; font-size: 14px; }
.fixlist span { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; line-height: 1.45; }
.ctlist { border-top: 1px solid var(--line); }
.ctrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ctrow span { font-size: 13px; }
.ctrow input { min-height: 44px; }
@media (min-width: 620px) { .ctrow { grid-template-columns: 1.1fr 1fr 1.3fr; align-items: center; } }
textarea[rows="2"], textarea[rows="4"] { min-height: 76px; }
.sent { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.sent::before { content: '✓ '; color: var(--accent); }
.label.due { color: var(--accent); }
.mail-s { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; }
.mail-b { margin: 0; padding: 14px 16px; background: var(--green-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--cream); }
.codecard { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.codecard input.code { text-align: left; }
.nh { white-space: nowrap; }
.nh sup { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.64em; line-height: 1; color: #FFD24A; -webkit-text-stroke: 0.045em #FFD24A; paint-order: stroke fill; vertical-align: baseline; line-height: 0; position: relative; top: -0.72em; margin-left: 0.1em; }
.lbr.idle .nh sup { color: #FFD24A; }
.lbr .sub { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.lbr .sc { font-family: var(--display); font-size: clamp(30px, 8vw, 42px); line-height: 1; }
.lbr .sc.under { color: var(--accent); }
.lbr .th { color: var(--muted); font-size: 13px; }
.lbr.idle .nm, .lbr.idle .sc { color: var(--muted); }
.detail { border-bottom: 1px solid var(--cream); padding: 12px 0 18px; display: flex; flex-direction: column; gap: 14px; }

/* Scorecard tables */
.cardx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.sc { border-collapse: collapse; width: 100%; min-width: 330px; font-size: 12px; font-variant-numeric: tabular-nums; }
table.sc th, table.sc td { border: 1px solid var(--line); padding: 0; height: 30px; text-align: center; font-weight: 400; letter-spacing: 0; }
table.sc th:first-child, table.sc td:first-child { text-align: left; padding: 0 6px; width: 76px; max-width: 76px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
table.sc tr.par td, table.sc tr.hd th { color: var(--muted); }
table.sc td.tot, table.sc th.tot { width: 34px; color: var(--cream); background: var(--green-2); }
table.sc td .g { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; position: relative; }
table.sc td .g.bird { border: 1px solid var(--accent); border-radius: 50%; }
table.sc td .g.bog { border: 1px solid var(--faint); }
table.sc td.cnt { color: var(--accent); font-weight: 500; }
table.sc td.off { color: var(--faint); }
table.sc td .pip { position: absolute; top: -3px; right: -4px; font-size: 9px; line-height: 1; color: var(--cream); }
table.sc tr.net td { font-weight: 500; }
.legend { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }

/* The Card */
.bout { padding: 20px 0; border-bottom: 1px solid var(--cream); display: flex; flex-direction: column; gap: 14px; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.vs .v { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); }
.vs .r { text-align: right; }
.side .sub { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6; }

/* Score entry */
.holebar { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; border: 1px solid var(--cream); }
.holebar button { height: 84px; background: none; border: 0; font-family: var(--display); font-size: 30px; }
.holebar button:first-child { border-right: 1px solid var(--cream); }
.holebar button:last-child { border-left: 1px solid var(--cream); }
.holebar .mid { text-align: center; padding: 8px 4px; }
.holebar .n { font-family: var(--display); font-size: 46px; line-height: 1; text-transform: uppercase; }
.strip { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; }
.strip button { height: 30px; min-width: 0; padding: 0; background: none; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.strip button.done { background: var(--cream); color: var(--green); border-color: var(--cream); }
.strip button.cur { border-color: var(--accent); color: var(--accent); background: none; box-shadow: inset 0 0 0 1px var(--accent); }
.strip button.cur.done { background: var(--accent); color: var(--green); }
.entry { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.entry .who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.entry .who b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; text-transform: uppercase; }
.pips { color: var(--accent); letter-spacing: 0.2em; }
.picks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.picks button { height: 52px; min-width: 0; padding: 0; background: none; border: 1px solid var(--cream); font-family: var(--display); font-size: 24px; }
.picks button.sel { background: var(--accent); border-color: var(--accent); color: var(--green); }
.picks button.par { border-width: 2px; }
.picks button.more { font-family: var(--mono); font-size: 18px; color: var(--muted); border-color: var(--line); }
.teamline { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.teamline b { font-family: var(--display); font-weight: 400; font-size: 26px; }

/* Setup */
.subnav { display: flex; gap: 0; overflow-x: auto; border: 1px solid var(--cream); }
.subnav button { flex: 1 0 auto; min-height: 44px; padding: 0 12px; background: none; border: 0; border-right: 1px solid var(--cream); color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.subnav button:last-child { border-right: 0; }
.subnav button[aria-current=true] { background: var(--cream); color: var(--green); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 92px 44px; gap: 6px; align-items: center; }
.prow.withface { grid-template-columns: 48px minmax(0, 1fr) 80px 44px; }
.prow .facebtn { width: 48px; background: var(--green-2); }
.facebtn { width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); background: var(--green-2); color: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 20px; }
.facebtn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sharebar { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.cardview { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--green-2); scroll-margin-top: 70px; }
.cardview img { width: 100%; max-width: 440px; height: auto; display: block; align-self: center; border: 1px solid var(--line); }
.prow button, .x { height: 48px; width: 44px; background: none; border: 1px solid var(--line); color: var(--muted); font-size: 18px; padding: 0; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pair.four { grid-template-columns: minmax(0, 1fr) 64px 64px 64px; }
.pair .nm { overflow: hidden; }
.pair .nm b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair .nm span { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.pair select { padding: 0 22px 0 8px; background-position: calc(100% - 11px) 21px, calc(100% - 6px) 21px; }
.pair.head { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 0; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) 44px 76px 58px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hrow.label { padding: 6px 0; }
.hrow > span:nth-child(2), .hrow > :nth-child(4) { text-align: right; }
.hrow .nm { overflow: hidden; }
.hrow .nm b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .nm span { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.hrow input { text-align: center; padding: 0 4px; }
.hrow .po { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--accent); }
.tees { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 44px; gap: 6px; align-items: center; }
table.holes { border-collapse: collapse; width: 100%; }
table.holes th { color: var(--muted); font-weight: 400; font-size: 11px; height: 28px; letter-spacing: 0.08em; }
table.holes th:first-child { text-align: left; width: 44px; }
table.holes td { padding: 0; }
table.holes input { height: 44px; padding: 0; text-align: center; border-color: var(--line); font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.big { font-family: var(--display); font-size: clamp(56px, 16vw, 96px); line-height: 0.9; }
.pts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; border: 1px solid var(--cream); padding: 16px; }
.pts .r { text-align: right; }
@media (min-width: 620px) { .lbh, .lbr { grid-template-columns: 56px minmax(0, 1fr) 88px 64px; } table.sc { font-size: 13px; } }
@media (prefers-reduced-motion: no-preference) { .dot.on { animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { opacity: 0.35; } } }

/* Embedded in a site page (Home Game event, Away Game): no chrome, tabs on top. */
.embed .wrap { min-height: 0; padding: 0; gap: 20px; max-width: none; }
.embed .tabs { position: static; border: 1px solid var(--cream); padding: 0; }
.embed .tabs div { max-width: none; }
.embed .tab { min-height: 48px; margin-top: 0; border-top: 0; border-bottom: 4px solid transparent; }
.embed .tab[aria-current=true] { border-bottom-color: var(--accent); }
.embed .toast { position: static; margin: 0; }

/* The scorecard: white paper, green ink. Inside .paper the ink and ground swap, so every
   component reads dark-on-light; yellow stays as the highlighter. */
.paper { --paper: #FDFCF8; --ink: #0E2B1F; background: var(--paper); color: var(--ink); padding: 16px clamp(12px, 3vw, 24px) 20px;
  --cream: #0E2B1F; --green: #FDFCF8; --green-2: #F1ECDD; --muted: #4A5F54; --faint: #7B8A81; --accent: #0E2B1F; --line: rgba(14, 43, 31, 0.2); }
.paper .link { color: var(--ink); }
.paper .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.paper .holebar { border-width: 2px; }
.paper .holebar .n { box-shadow: inset 0 -0.16em 0 #F2C94C; display: inline-block; padding: 0 0.08em; }
.paper .picks button { border-color: var(--ink); background: #fff; }
.paper .picks button.par { border-width: 2px; background: #F1ECDD; }
.paper .picks button.sel { background: #F2C94C; color: var(--ink); border-color: var(--ink); border-width: 2px; }
.paper .picks button.more { background: transparent; border-color: var(--line); color: var(--muted); }
.paper .strip button.cur, .paper .strip button.cur.done { background: #F2C94C; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.paper .pips { color: var(--ink); }
.paper .note { border-left-color: #F2C94C; }
.paper table.sc td.cnt { background: #F2C94C; color: var(--ink); }
.paper table.sc td .g.bird { border-color: var(--ink); }
.paper table.sc td .pip { color: var(--ink); }
.paper .teamline b { color: var(--ink); }
.detail.paper { padding: 14px 12px 16px; border-bottom: 0; margin-bottom: 8px; }
.holebar .mid .label { display: block; margin-top: 6px; }

/* Publish checklist */
.pubbox { border-color: var(--accent); border-width: 2px; }
.pubbox.on { border-color: var(--cream); border-width: 1px; }
.chk { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 0; min-height: 48px; color: var(--cream); }
.chk .st { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chk .st.ok { color: var(--accent); }
.chk .st.todo { color: var(--green); background: var(--cream); padding: 3px 6px; justify-self: start; }
.chk .st.warn { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.chk b { display: block; font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.chk b + span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }

input.yards { margin: -2px 0 8px; height: 44px; font-size: 14px; border-color: var(--line); }
table.sc tr.yd td { font-size: 10px; color: var(--faint); }

/* App chrome: sticky bar with a back button, icon tabs */
.wrap.app { padding-top: 0; }
.appbar { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 calc(-1 * clamp(16px, 4vw, 32px)); padding: 6px clamp(12px, 4vw, 32px); background: var(--green); border-bottom: 1px solid var(--line); }
.appbar .back { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 8px 0 0; background: none; border: 0; color: var(--cream); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.appbar .ttl { font-family: var(--display); font-size: 18px; line-height: 1; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .chip { min-height: 48px; font-size: 11px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; padding: 6px 2px; font-size: 9.5px; letter-spacing: 0.07em; }
.tab svg { flex: 0 0 auto; }
.subnav.steps button { display: inline-flex; align-items: center; gap: 8px; }
.subnav.steps i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid currentColor; font-size: 10px; letter-spacing: 0; }
.draftbar { width: 100%; text-align: left; background: var(--accent); color: #0E2B1F; border: 0; padding: 14px 16px; min-height: 52px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }
.draftbar b { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.draftbar.live { background: transparent; color: var(--cream); border: 1px solid var(--cream); }

/* Strokes ("pops") on the scorecard: a yellow tag beside the name, and a one-line roll call for the hole */
.entry .who .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.pop { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 8px; background: #F2C94C; color: #0E2B1F; font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; transform: rotate(-2deg); box-shadow: 2px 2px 0 #0E2B1F; }
.pop i { font-style: normal; font-size: 9px; letter-spacing: 0.1em; }
.pop.give { background: transparent; box-shadow: none; transform: none; border: 1px solid currentColor; color: var(--cream); }
.paper .pop { border: 1px solid #0E2B1F; }
.paper .pop.give { color: #0E2B1F; }
.popline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 12px; background: #F2C94C; color: #0E2B1F; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.popline b { font-weight: 500; }
.popline span { font-family: var(--display); font-size: 18px; letter-spacing: 0.02em; line-height: 1; }
.popline.none { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ---------- Printed scorecards: landscape letter, one group per sheet ---------- */
.printwrap { background: #cfd3cc; min-height: 100vh; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; overflow-x: auto; }
.pbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #0E2B1F; position: sticky; left: 0; }
.pbar .label { color: #0E2B1F; }
.pbar .btn.ghost { color: #0E2B1F; border-color: #0E2B1F; }
.sheet { --ink: #0E2B1F; --bone: #ECE6D6; --hi: #F2C94C; flex: 0 0 auto; width: 10.3in; height: 7.75in; box-sizing: border-box; background: #fff; color: var(--ink); padding: 0; display: flex; flex-direction: column; gap: 0.1in; font-family: var(--mono); font-size: 8.5pt; line-height: 1.25; -webkit-print-color-adjust: exact; print-color-adjust: exact; overflow: hidden; }
.sheet .sh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.3in; align-items: stretch; border-bottom: 3pt solid var(--ink); padding-bottom: 0.1in; }
.sheet .smark { display: flex; flex-direction: column; justify-content: center; font-family: var(--display); font-size: 20pt; line-height: 0.9; text-transform: uppercase; }
.sheet .smark span + span { display: flex; align-items: flex-end; gap: 3pt; }
.sheet .smark i { width: 0.55in; height: 3pt; margin-bottom: 2pt; background: var(--hi); }
.sheet .stitle { display: flex; flex-direction: column; justify-content: center; gap: 3pt; min-width: 0; }
.sheet .stitle h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30pt; line-height: 0.92; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .stitle p { margin: 0; font-size: 8.5pt; letter-spacing: 0.14em; text-transform: uppercase; }
.sheet .sgroup { background: var(--ink); color: var(--bone); padding: 0.08in 0.22in; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 3pt; }
.sheet .sgroup b { font-family: var(--display); font-weight: 400; font-size: 28pt; line-height: 0.95; text-transform: uppercase; color: var(--hi); }
.sheet .sgroup span { font-size: 9pt; letter-spacing: 0.14em; text-transform: uppercase; }
.sheet .sfmt { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.3in; font-size: 8pt; letter-spacing: 0.04em; }
.sheet .sfmt b { display: inline-block; margin-right: 6pt; padding: 1.5pt 5pt; background: var(--hi); font-weight: 500; font-size: 7pt; letter-spacing: 0.14em; text-transform: uppercase; }
.sheet table.st { border-collapse: collapse; width: 100%; table-layout: fixed; flex: 1 1 auto; }
.sheet table.st th, .sheet table.st td { border: 0.75pt solid var(--ink); padding: 0; text-align: center; font-weight: 400; overflow: hidden; }
.sheet col.c-who { width: 1.6in; } .sheet col.c-gets { width: 0.46in; } .sheet col.c-t { width: 0.47in; }
.sheet table.st th.who { text-align: left; padding: 0 6pt; }
.sheet table.st td.t { background: #F6F2E6; }
.sheet table.st td.t.net { border-left-width: 2pt; }
.sheet tr.hh th, .sheet tr.hh td { background: var(--ink); color: var(--bone); font-family: var(--display); font-size: 12pt; height: 0.27in; text-transform: uppercase; border-color: var(--ink); }
.sheet tr.hh th.who { font-family: var(--mono); font-size: 7.5pt; letter-spacing: 0.14em; }
.sheet tr.hh td.t { background: var(--ink); color: var(--hi); font-size: 10pt; }
.sheet tr.yd td, .sheet tr.pr td, .sheet tr.hc td, .sheet tr.tp td { height: 0.19in; font-size: 8pt; }
.sheet tr.yd th, .sheet tr.pr th, .sheet tr.hc th, .sheet tr.tp th { font-size: 7pt; letter-spacing: 0.14em; text-transform: uppercase; }
.sheet tr.pr td { font-weight: 500; font-size: 9.5pt; }
.sheet tr.hc td { color: #4A5F54; }
.sheet tr.tp th, .sheet tr.tp td { background: #F6F2E6; }
.sheet tr.band th { background: var(--bone); text-align: left; height: 0.24in; padding: 0 6pt; font-family: var(--display); font-size: 12.5pt; letter-spacing: 0.01em; text-transform: uppercase; border-top-width: 2pt; }
.sheet tr.band th span { display: inline-block; margin-right: 8pt; padding: 2pt 6pt; background: var(--ink); color: var(--hi); font-family: var(--mono); font-size: 7pt; letter-spacing: 0.14em; vertical-align: 2pt; }
.sheet tr.pl th.who b { display: block; font-family: var(--display); font-weight: 400; font-size: 13pt; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet tr.pl th.who span, .sheet tr.tn th.who span { display: block; margin-top: 2pt; font-size: 6.5pt; letter-spacing: 0.1em; text-transform: uppercase; color: #4A5F54; white-space: nowrap; }
.sheet tr.pl th.gets b { display: block; font-family: var(--display); font-weight: 400; font-size: 14pt; line-height: 1; }
.sheet tr.pl th.gets span { display: block; font-size: 5.5pt; letter-spacing: 0.12em; text-transform: uppercase; color: #4A5F54; }
.sheet tr.pl td { vertical-align: top; text-align: right; } /* no positioning on cells: it paints the tint over the grid lines */
.sheet tr.pl td.pp { background: #FBEDB4; }
.sheet tr.pl td i { display: inline-flex; margin: 2.5pt 2.5pt 0 0; gap: 1.5pt; font-style: normal; font-size: 7pt; line-height: 1; }
.sheet tr.pl td i u { display: block; width: 4.6pt; height: 4.6pt; border-radius: 50%; background: var(--ink); text-decoration: none; }
.sheet tr.tn th, .sheet tr.tn td { background: #F6F2E6; height: 0.3in; border-bottom-width: 2pt; }
.sheet tr.tn th.who b { font-weight: 500; font-size: 8pt; letter-spacing: 0.14em; text-transform: uppercase; }
.sheet .sf { display: grid; grid-template-columns: 1.25fr 1.2fr 1fr; gap: 0.3in; align-items: end; font-size: 7.5pt; }
.sheet .sf b { display: block; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2pt; }
.sheet .sf .rules span { color: #23392f; }
.sheet .sf .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25in; }
.sheet .sf .sign span { border-top: 0.75pt solid var(--ink); padding-top: 3pt; font-size: 7pt; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.26in; }
.sheet .sf .voice { text-align: right; }
.sheet .sf .voice b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 12pt; letter-spacing: 0; text-transform: none; }
.sheet .sf .voice span { letter-spacing: 0.12em; text-transform: uppercase; font-size: 7pt; }
.ppage { flex: 0 0 auto; width: 11in; height: 8.5in; box-sizing: border-box; background: #fff; padding: 0.375in 0.35in; display: flex; flex-direction: column; overflow: hidden; }
.ppage.two { padding: 0; }
/* Card size: 11 x 4.25in, the club scorecard-stock size. Two to a letter sheet. */
.sheet.half { width: 11in; height: 4.25in; padding: 0.22in 0.3in 0.2in; gap: 0.045in; font-size: 6.5pt; }
.ppage.two .sheet.half + .sheet.half { border-top: 0.75pt dashed #9aa39c; }
.sheet.half .sh { gap: 0.2in; border-bottom-width: 2pt; padding-bottom: 0.04in; }
.sheet.half .smark { font-size: 12.5pt; }
.sheet.half .smark i { width: 0.34in; height: 2pt; margin-bottom: 1.5pt; }
.sheet.half .stitle { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 0.16in; align-self: center; }
.sheet.half .stitle h1 { font-size: 18pt; flex: 0 1 auto; }
.sheet.half .stitle p { font-size: 6.5pt; white-space: nowrap; }
.sheet.half .sgroup { flex-direction: row; align-items: baseline; gap: 0.12in; padding: 0.035in 0.14in; align-self: stretch; }
.sheet.half .sgroup b { font-size: 16pt; }
.sheet.half .sgroup span { font-size: 7.5pt; }
.sheet.half .sfmt { grid-template-columns: auto auto; justify-content: space-between; gap: 0.15in; font-size: 6pt; letter-spacing: 0; white-space: nowrap; }
.sheet.half .sfmt b { font-size: 5.5pt; margin-right: 4pt; padding: 1pt 4pt; }
.sheet.half tr.hh th, .sheet.half tr.hh td { font-size: 9.5pt; height: 0.19in; }
.sheet.half tr.hh th.who { font-size: 6pt; }
.sheet.half tr.hh td.t { font-size: 8pt; }
.sheet.half tr.yd td, .sheet.half tr.pr td, .sheet.half tr.hc td, .sheet.half tr.tp td { height: 0.135in; font-size: 6.5pt; }
.sheet.half tr.yd th, .sheet.half tr.pr th, .sheet.half tr.hc th, .sheet.half tr.tp th { font-size: 5.5pt; }
.sheet.half tr.pr td { font-size: 7.5pt; }
.sheet.half tr.band th { height: 0.16in; font-size: 9pt; border-top-width: 1.5pt; }
.sheet.half tr.band th span { font-size: 5.5pt; padding: 1pt 4pt; margin-right: 6pt; vertical-align: 1.5pt; }
.sheet.half tr.pl th.who b { font-size: 10.5pt; }
.sheet.half tr.pl th.who span { font-size: 5.5pt; margin-top: 1.5pt; }
.sheet.half tr.pl th.gets b { font-size: 11pt; }
.sheet.half tr.pl th.gets span { font-size: 4.5pt; }
.sheet.half tr.pl td i { margin: 2pt 2pt 0 0; gap: 1pt; }
.sheet.half tr.pl td i u { width: 3.8pt; height: 3.8pt; }
.sheet.half tr.tn th, .sheet.half tr.tn td { height: 0.19in; border-bottom-width: 1.5pt; }
.sheet.half tr.tn th.who b { font-size: 6.5pt; }
.sheet.half tr.tn th.who span { display: none; }
.sheet.half .sf { grid-template-columns: 1.6fr 1fr; gap: 0.3in; font-size: 6pt; align-items: end; }
.sheet.half .sf .rules { display: none; }
.sheet.half .sf .sign span { margin-top: 0.13in; padding-top: 2pt; font-size: 5.5pt; }
.sheet.half .sf .voice { display: flex; justify-content: flex-end; align-items: baseline; gap: 0.12in; }
.sheet.half .sf .voice b { font-size: 9.5pt; margin: 0; }
.sheet.half .sf .voice span { font-size: 5.5pt; }
@page { size: 11in 8.5in; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .noprint, .toast { display: none !important; }
  .printwrap { background: #fff; padding: 0; gap: 0; display: block; overflow: visible; min-height: 0; }
  .ppage { page-break-after: always; break-after: page; margin: 0; }
  .ppage:last-child { page-break-after: auto; break-after: auto; }
}

/* ----- playoff ----- */
.po { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; border: 2px solid var(--accent); margin-bottom: 8px; }
.po h2 { margin: 0; overflow-wrap: anywhere; }
.po .lede { margin: 0; }
.po-opts { display: flex; flex-direction: column; gap: 8px; }
.po-opts button { min-height: 52px; padding: 8px 14px; text-align: left; background: none; color: var(--cream); border: 1px solid var(--cream); font-size: 13px; }
.po-opts button.on { background: var(--accent); border-color: var(--accent); color: #0E2B1F; font-weight: 500; }
.po-win { display: flex; flex-direction: column; gap: 6px; background: var(--accent); color: #0E2B1F; margin: -18px -16px 0; padding: 18px 16px; }
.po-win .aw-t, .po-win .aw-d { color: #0E2B1F; font-weight: 500; }
.po-win h2 { font-weight: 400; font-size: clamp(30px, 9vw, 52px); line-height: 0.94; text-transform: uppercase; }
.po-h { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line, rgba(236, 230, 214, 0.35)); }
.po-n { font-family: var(--display); font-weight: 400; font-size: 20px; text-transform: uppercase; }
.po-pick { width: auto; height: 44px; font-size: 14px; }
.po-t { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid rgba(236, 230, 214, 0.35); }
.po-t .nm { font-family: var(--display); font-size: 20px; text-transform: uppercase; line-height: 1; }
.po-t .sc { font-family: var(--display); font-size: 22px; }
.po-t.won { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.po-t.won .sc { color: var(--accent); }
.po-t.out { opacity: 0.55; }
.po-l { display: grid; grid-template-columns: minmax(0, 1fr) 84px 56px; align-items: center; gap: 10px; min-height: 44px; }
.po-l select { height: 44px; }
.po-l b { font-size: 18px; font-weight: 500; text-align: center; }
.po-l .net { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.po-l.counted .net { color: var(--accent); }
.po-dot { font-style: normal; color: var(--accent); margin-left: 6px; letter-spacing: 2px; }
.po-v { color: var(--accent); }
.lbr .powon { color: var(--accent); font-weight: 500; margin-right: 6px; }

/* ----- Venmo hand-off ----- */
.vm { display: flex; flex-direction: column; gap: 0; }
.pay + .vm, .awards .vm { padding: 16px 0 6px; border-top: 1px solid var(--line); }
.vm > .row { margin-bottom: 8px; }
.vm > .legend { margin-top: 12px; }
.vm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.vm-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vm-who b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.vm-who .label { overflow-wrap: anywhere; text-transform: none; letter-spacing: 0.04em; }
.vm-amt { font-family: var(--display); font-size: 26px; color: var(--accent); }
.vm-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.vm-act .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.vm-in { flex: 1 1 220px; min-height: 44px; }
.vm-row.paid .vm-who b, .vm-row.paid .vm-amt { opacity: 0.55; }
.vm .fixes { margin-top: 12px; }

/* ----- quick game ----- */
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; }
.qrow input { min-height: 48px; }
.qbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--accent); margin-bottom: 14px; }
.qbar b { font-size: 30px; line-height: 1; color: var(--accent); font-weight: 400; letter-spacing: 0.02em; }

/* ----- setup: the course this game uses, then how to change or edit it ----- */
.crs-now { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: var(--accent); color: #0E2B1F; }
.crs-now .label, .crs-now .crs-facts { color: #0E2B1F; font-weight: 500; }
.crs-now h2 { margin: 0; font-weight: 400; font-size: clamp(28px, 8vw, 48px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.crs-now .crs-facts { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }
.crs-now .field { margin-top: 6px; }
.crs-now select { background: #0E2B1F; color: var(--cream); border-color: #0E2B1F; }
.crs-now.none { background: none; color: var(--cream); border: 2px dashed var(--accent); }
.crs-now.none .label { color: var(--accent); }
.crs-in { padding: 4px 16px 18px; }
