@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/serif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("/fonts/block.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Augusta, refined: deep green, soft gold, cream paper. Colour carries meaning: red under par, black over, green even. */
  --green: #0D4A30;
  --green-2: #0D4A30;
  --green-deep: #08301F;
  --green-ink: #0D4A30;
  --green-tint: #E7EEE4;
  --paper: #F4F0E4;
  --surface: #FFFDF8;
  --ink: #17221B;
  --muted: #56645B;
  --line: #E2DAC5;
  --line-strong: #CFC6AD;
  --gold: #82651F;
  /* Gold text on the deep greens (header, reveals): 5:1 or better */
  --gold-on-green: #D9B866;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gold-rule: #C9A44C;
  --gold-soft: #EFE3BF;
  --gold-tint: #FBF6E6;
  --red: #B3261E;
  --red-tint: #F6E1DE;
  --white: #ffffff;
  --ink-strong: #17221B;
  --muted-2: #6F7A72;
  --cell: #FBF6E6;
  --red-bright: #FF6B5E;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --block: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --focus: #1D6B46;
  --r: 14px;
  --r-sm: 10px;
  --tap: 48px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font: 16px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }

a { color: inherit; }
[hidden] { display: none !important; }
p { margin: 0 0 12px; }

/* Shell */

.top .me { font-size: 14px; font-weight: 500; opacity: .85; min-height: 36px; padding: 0 2px; }

.top .chat-link svg { width: 24px; height: 24px; }

main { padding: 0 0 calc(132px + var(--safe-b)); max-width: 680px; margin: 0 auto; }
main > .btn.block, main > .row-btns, main > input[type="search"], main > .seg, main > p, main > .holebar, main > .hole-head { margin-left: 16px; margin-right: 16px; }
main > .btn.block { width: calc(100% - 32px); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line-strong);
  padding-bottom: var(--safe-b);
}
.tabs a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--muted);
}
.tabs a svg { width: 22px; height: 22px; }

.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 25%; right: 25%; height: 2px; background: var(--green-ink); }

/* Sections: flat, full width, hairline rules */
.card, .panel {
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.nav-list { overflow: hidden; }

.nav-row:first-child { border-top: 0; }
.nav-row::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); }
.nav-row:active { background: var(--green-tint); }

h2.section, .sub-head {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 20px 16px 8px;
}

/* Buttons */

.btn.block { width: 100%; }

.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.btn:disabled { opacity: .4; cursor: default; }
.link { color: var(--green-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-btns > * { flex: 1; }

/* Groups (setup) */
.group.drop { box-shadow: inset 0 0 0 2px var(--green-ink); }
.group .card-head { background: var(--green-tint); }
.group .tee.editable { text-decoration: underline dotted; text-underline-offset: 3px; color: var(--ink); }
.group .tee { font-size: 14px; color: var(--muted); min-height: 44px; min-width: 44px; padding: 0 8px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; min-height: 64px; }

.chip[data-drag] { cursor: grab; }

.chip.add { box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); border: 0; }
.chip.dragging { opacity: .3; }
.ghost-chip { position: fixed; z-index: 50; pointer-events: none; transform: translate(-50%, -60%); box-shadow: 0 6px 20px rgba(0,0,0,.22), inset 0 0 0 1px var(--line-strong); }
.status { font-size: 14px; color: var(--muted); }
.status.live { color: var(--green-ink); font-weight: 600; }

/* Jacket and cart marks */
.jacket { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 600; color: var(--green-ink); vertical-align: -2px; margin-left: 6px; }
.jacket svg { width: 16px; height: 16px; }
.cart-owed { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 600; color: var(--red); vertical-align: -2px; margin-left: 6px; }
.cart-owed svg { width: 16px; height: 16px; }

/* Leaderboard */
.board { list-style: none; margin: 0; padding: 0; }
.board li { border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.scorecard { padding: 4px 10px 12px; background: var(--cell); border-top: 1px solid var(--green); }
.scorecard table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 14px; }
.scorecard th, .scorecard td { text-align: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.scorecard th { font-weight: 700; color: var(--green); font-size: 11px; font-family: var(--serif); }
.scorecard th:first-child, .scorecard td:first-child { text-align: left; width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.scorecard tr.par td { color: var(--muted); font-size: 12px; font-weight: 400; }
.scorecard .birdie { display: inline-block; width: 22px; line-height: 20px; border: 1.5px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 700; }

/* Scoring */
.holebar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.holebar button { min-height: 44px; font-weight: 600; font-size: 15px; border-right: 1px solid var(--line); }
.holebar button:last-child { border-right: 0; }
.holebar button.done { background: var(--green-tint); color: var(--green-ink); }
.holebar button[aria-current="true"] { background: var(--green-2); color: var(--white); }
.hole-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.hole-head .num { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; min-width: 34px; letter-spacing: -.02em; }
.hole-head .meta { flex: 1; }
.hole-head .par { font-size: 16px; font-weight: 600; }
.hole-head .note { color: var(--muted); font-size: 14px; }
.hole-head .sub { font-weight: 700; color: var(--red); letter-spacing: .06em; font-size: 13px; }
.hole-head .map-btn { width: 60px; height: 60px; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-strong); flex: none; }
.hole-head .map-btn img { width: 100%; height: 100%; object-fit: cover; }

.card-table { width: 100%; border-collapse: collapse; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); table-layout: fixed; }
.card-table thead th { background: var(--green); color: var(--white); font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 0; border-bottom: 3px solid var(--gold-rule); }
.card-table th:first-child { width: auto; text-align: left; padding-left: 16px; }
.card-table thead th:nth-child(2) { width: 70px; }
.card-table thead th:nth-child(n+3) { width: 56px; }
.card-table thead th:last-child { width: 64px; padding-right: 8px; }
.card-table tbody tr { border-bottom: 1px solid var(--line); }
.card-table tbody tr:last-child { border-bottom: 0; }
.card-table tbody th { padding: 0 0 0 16px; }
.card-table td { text-align: center; padding: 8px 0; }
.card-table td:last-child { padding-right: 8px; }
.card-table .who-btn { font-family: var(--serif); font-weight: 600; font-size: 17px; min-height: 44px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.card-table tr.out .who-btn { color: var(--muted); }
.card-table tr.out td { text-align: right; padding-right: 16px; }
.card-table input.score-in {
  width: 58px; min-height: 50px; margin: 0; padding: 0;
  text-align: center; font-family: var(--serif); font-size: 24px; font-weight: 600;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
}
.card-table input.score-in::placeholder { color: var(--muted-2); font-weight: 400; }
.card-table input.score-in:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.card-table input.score-in.under { color: var(--red); border-color: var(--red); }

.seg button:last-child { border-right: 0; }

.score-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  background: var(--surface); border-top: 1px solid var(--line-strong);
  padding: 10px 16px calc(10px + var(--safe-b));
  display: flex; gap: 10px;
}
.score-foot .btn { flex: 1; }

/* Sheets */
.sheet-back { position: fixed; inset: 0; background: rgba(10, 16, 12, .45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; border-radius: 8px 8px 0 0; padding: 18px 16px calc(16px + var(--safe-b)); }

.sheet p { margin: 0 0 16px; line-height: 1.45; }
.sheet-back.at-top { align-items: flex-start; }

.sheet-back.at-top .pick-list { overflow-y: auto; flex: 1; min-height: 0; }
.pick-list { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.pick-list button { width: 100%; text-align: left; min-height: 56px; padding: 9px 4px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.pick-list button:active { background: var(--green-tint); }

.pick-sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.pinned { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.pin { display: inline-flex; align-items: center; gap: 0; padding: 0 0 0 12px; min-height: 36px; border-radius: var(--r); background: var(--green); color: var(--white); font-weight: 600; font-size: 14px; }
.pin button { width: 44px; height: 44px; margin: -5px -2px -5px 0; color: var(--white); font-size: 18px; line-height: 1; opacity: .85; }
.sheet-foot { padding-top: 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], input[type="number"], input[type="date"], input[type="password"] {
  width: 100%; min-height: var(--tap); padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); margin-bottom: 12px;
}
main > input[type="search"] { width: calc(100% - 32px); }
label.field { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
fieldset.choice { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 8px 12px 4px; margin: 0 0 12px; }
fieldset.choice legend { font-weight: 600; padding: 0 4px; }
fieldset.choice label { display: flex; align-items: center; gap: 10px; min-height: 44px; }

/* Map */
.map { position: relative; overflow: hidden; border-radius: var(--r); background: #cfe3c9; box-shadow: inset 0 0 0 1px var(--line); }
.map img { display: block; width: 100%; transition: transform .35s ease; }
.map .ring { position: absolute; aspect-ratio: 1; border: 3px solid var(--red); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }

/* Night summary */
.result { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.result .what { color: var(--muted); font-size: 14px; width: 104px; flex: none; }
.result .who { font-family: var(--serif); font-weight: 600; font-size: 18px; flex: 1; min-width: 0; max-width: none; margin: 0; padding: 0; }
.result .amt { font-weight: 600; font-size: 16px; }
.playoff { padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.playoff .seg button[aria-pressed="true"] { background: var(--gold); }

/* Pot o' Gold */
.pot-total { text-align: center; padding: 20px 0 14px; }
.pot-total .amt { font-family: var(--serif); font-size: 48px; font-weight: 600; color: var(--gold); line-height: 1; letter-spacing: -.02em; }
.pot-holes { list-style: none; margin: 0; padding: 0; }
.pot-holes li { display: grid; grid-template-columns: 48px 1fr; align-items: center; min-height: 48px; padding: 4px 16px; border-bottom: 1px solid var(--line); transition: opacity .4s, background .4s; }
.pot-holes li:last-child { border-bottom: 0; }
.pot-holes .h { font-weight: 600; font-size: 16px; color: var(--muted); }
.pot-holes .names { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pot-holes .n { position: relative; font-weight: 500; }
.pot-holes .n.eagle { color: var(--gold); font-weight: 600; }
.pot-holes .n::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.pot-holes li.out { opacity: .32; }
.pot-holes li.cancel .n:not(.eagle)::after { transform: scaleX(1); }
.pot-holes li.cancel.revive .n.eagle { animation: pop .5s ease both; }
.pot-holes li.live { background: var(--gold-tint); }
.pot-holes li.live .h { color: var(--gold); }
.pot-holes li.ace-won { background: var(--gold); }
.pot-holes li.ace-won .h, .pot-holes li.ace-won .n.ace { color: var(--white); }
.pot-holes li.ace-won .n:not(.ace) { opacity: .3; transition: opacity .6s; }
.pot-holes li.ace-won .n.ace { font-size: 19px; font-weight: 700; animation: pop .5s ease both; }
.pot-holes li.drawn { background: var(--gold); color: var(--white); }
.pot-holes li.drawn .h, .pot-holes li.drawn .n.eagle { color: var(--white); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.draw-grid { display: grid; grid-template-columns: repeat(9, 1fr); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--surface); }
main > .draw-grid { margin: 0 16px; }
.draw-grid button { min-height: 48px; font-size: 17px; font-weight: 600; border-right: 1px solid var(--line); }
.draw-grid button:last-child { border-right: 0; }
.draw-grid button[aria-pressed="true"] { background: var(--gold); color: var(--white); }
.pot-result { text-align: center; font-size: 18px; font-weight: 600; padding: 16px; }

/* Lists and key values */
.list { list-style: none; margin: 0; padding: 0; }

.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { color: var(--muted); font-size: 13px; }
.list .num { font-weight: 600; min-width: 56px; text-align: right; }
.list button.grow { text-align: left; min-height: 44px; }

.kv > span:first-child { color: var(--muted); font-size: 14px; }
.kv > span:last-child { font-weight: 600; }
.kv.big > span:last-child { font-size: 28px; }
.gold { color: var(--gold); }
.contact { display: flex; gap: 10px; padding: 0 16px 14px; }
.contact .btn { flex: 1; }

/* Login */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px; max-width: 400px; margin: 0 auto; }
.login h1 { font-family: var(--serif); font-style: italic; font-size: 34px; font-weight: 600; margin: 0 0 2px; color: var(--green-ink); letter-spacing: -.01em; }
.who { max-width: 480px; margin: 0 auto; padding: 32px 16px 24px; }
.who h1 { font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 600; margin: 0 0 16px; color: var(--green-ink); }
.who input[type="search"] { margin-bottom: 12px; }
.login .err { color: var(--red); min-height: 22px; font-size: 14px; }

/* Overlays and banners */
#toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(74px + var(--safe-b)); z-index: 90;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r); font-weight: 500; text-align: center;
}
#toast.error { background: var(--red); color: var(--white); }
.banner { padding: 10px 16px; font-weight: 500; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.banner.warn { background: var(--gold-tint); color: var(--ink); border-bottom: 1px solid var(--gold); }
.banner.error { background: var(--red); color: var(--white); }
.banner button { font-weight: 600; text-decoration: underline; flex: none; min-height: 44px; min-width: 44px; }

/* Laptop: tabs move to the top, content gets room */
@media (min-width: 900px) {
  /* One header height on every page (with or without the back arrow), so the tabs sit flush under it. */
  .top { padding-left: 32px; padding-right: 32px; min-height: 71px; }
  .tabs {
    position: sticky; top: 71px; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line-strong);
    display: flex; justify-content: center; gap: 4px; padding: 0 16px;
  }
  .tabs a { flex-direction: row; gap: 8px; min-height: 46px; padding: 0 18px; font-size: 14px; }
  .tabs a svg { width: 18px; height: 18px; }
  .tabs a[aria-current="page"]::before { top: auto; bottom: -1px; left: 12px; right: 12px; }
  main { max-width: 1080px; padding: 8px 32px 48px; }
  main.narrow { max-width: 720px; }
  .card, .panel { border: 1px solid var(--line); border-radius: 4px; }
  main > .btn.block, main > .row-btns, main > input[type="search"], main > .seg, main > p, main > .holebar, main > .hole-head, main > .draw-grid, h2.section { margin-left: 0; margin-right: 0; }
  main > .btn.block, main > input[type="search"] { width: 100%; }
  .players-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .players-grid li { border-right: 1px solid var(--line); }
  .score-foot { left: 50%; transform: translateX(-50%); max-width: 720px; border: 1px solid var(--line-strong); border-bottom: 0; }
  #toast { left: 50%; right: auto; transform: translateX(-50%); bottom: 24px; min-width: 320px; }
  .sheet-back { align-items: center; }
  .sheet { border-radius: 6px; max-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .15s !important; scroll-behavior: auto !important; }
  .slam, .r-cart, .r-jacket.crowned, .r-flag.crowned, .pot-holes li.ace-won .n.ace, .r-row, .pot-holes li.cancel.revive .n.eagle, .intro-title, .intro-club, .intro-flag, .intro-season, .fade { animation-name: r-fade-only !important; animation-duration: .4s !important; }
  .r-jacket.beat, .r-flag.beat, .r-name.pending, .live-count i, .reveal.flash::after { animation: none !important; }
  .confetti { display: none; }
  #intro { animation: intro-out .3s ease 1.2s forwards !important; }
}
@keyframes r-fade-only { from { opacity: 0; } to { opacity: 1; } }

/* Night's end reveals */
.reveal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; color: var(--white); animation: r-in .5s ease both; }
.reveal.green { background: radial-gradient(ellipse at 50% 30%, #0b7a55 0%, #004d35 70%, #003826 100%); }
.reveal.ace { background: radial-gradient(ellipse at 50% 35%, #1a9a6a 0%, #004d35 60%, #001f15 100%); }
.r-ace { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 15vw, 88px); font-weight: 700; line-height: 1; color: var(--white); text-shadow: 0 0 28px rgba(252,227,0,.75), 0 4px 24px rgba(0,0,0,.4); }
.r-flag { width: 110px; height: 110px; }
.r-flag svg { width: 100%; height: 100%; }
.r-flag.beat { opacity: .35; animation: r-beat .8s ease-in-out infinite; }
.r-flag.crowned { width: 140px; height: 140px; animation: r-crown 1s cubic-bezier(.2,1.5,.4,1) both; }

.reveal.flash::after { content: ""; position: absolute; inset: 0; background: #fff8c4; animation: r-flash .9s ease-out forwards; pointer-events: none; }
.reveal-inner { width: 100%; max-width: 520px; padding: 24px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.r-title { font-family: var(--serif); font-style: italic; font-size: 34px; font-weight: 600; margin: 0 0 10px; }

.r-type { font-family: var(--serif); font-style: italic; font-size: 24px; min-height: 1.4em; margin: 0; }

.slam { animation: r-slam .45s cubic-bezier(.2,1.6,.4,1) both; }
.r-big { font-family: var(--serif); font-size: clamp(40px, 13vw, 72px); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }

.r-big.red { color: var(--red-bright); }

.fade { animation: r-fade .9s ease both; }
.r-cart { width: 180px; animation: r-drive 1.2s cubic-bezier(.2,.8,.3,1.1) both; }
.r-cart svg { width: 100%; }
.r-jacket { width: 120px; height: 120px; }
.r-jacket svg { width: 100%; height: 100%; }
.r-jacket.beat { filter: brightness(0) invert(1) opacity(.25); animation: r-beat .8s ease-in-out infinite; }
.r-jacket.crowned { width: 150px; height: 150px; animation: r-crown 1s cubic-bezier(.2,1.5,.4,1) both; }
.confetti { position: absolute; inset: 0; pointer-events: none; }

@keyframes r-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes r-flash { from { opacity: .95; } to { opacity: 0; } }
@keyframes r-rule { to { width: 160px; } }
@keyframes r-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes r-pulse { 50% { opacity: .35; } }
@keyframes r-slam { from { transform: scale(2.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes r-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: .9; transform: none; } }
@keyframes r-drive { from { transform: translateX(-120vw) rotate(-4deg); } 80% { transform: translateX(12px) rotate(2deg); } to { transform: none; } }
@keyframes r-beat { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.08); } }
@keyframes r-crown { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes r-fall { to { transform: translateY(110vh) rotate(720deg); } }

.nights-end .step { border-bottom: 1px solid var(--line); }
.nights-end .step:last-of-type { border-bottom: 0; }
.nights-end .step-head { padding: 12px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nights-end .step .result { border-bottom: 0; padding-top: 6px; }
.nights-end .step-note { padding: 4px 16px; font-size: 13px; color: var(--muted); }
.group.done .card-head { background: var(--surface); }
.group.done .row-btns { flex: 0 0 auto; }

.r-kicker.dark { color: var(--green); }
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: 15px; }
.standings th, .standings td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.standings th:first-child, .standings td:first-child { text-align: left; font-family: var(--serif); font-weight: 600; }
.standings th button { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-height: 44px; padding: 0 4px; }
.standings th button[aria-pressed="true"] { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.banner span { flex: 1; }

.cart-tally { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: -2px; margin-left: 6px; }
.cart-tally svg { width: 17px; height: 17px; }
.selectable { user-select: text; font-weight: 500; }
.round-head { display: flex; gap: 10px; padding: 8px 16px 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.list.rounds li { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; }
.list.rounds li a { color: inherit; text-decoration: none; min-height: 50px; display: flex; align-items: center; }
.r-total, .r-pts { width: 52px; text-align: right; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.round-head .r-total, .round-head .r-pts { font-family: inherit; font-size: 11px; }
.r-pts { color: var(--green); }

.player-hero .full { color: var(--muted); margin-top: 4px; }
.player-hero .tallies { margin-top: 10px; display: flex; justify-content: center; gap: 14px; }
.player-hero .tallies > span { margin: 0; font-size: 15px; }

.season-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 16px 16px; border: 1px solid var(--line-strong); background: var(--surface); }
.season-strip > div { padding: 12px 6px; text-align: center; }
.season-strip > div + div { border-left: 1px solid var(--line); }

.season-strip .k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
@media (min-width: 900px) { .season-strip { margin-left: 0; margin-right: 0; } }
.round-head .grow, .list.rounds .grow { flex: 1; min-width: 0; }

.live-count i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); animation: live-pulse 2.4s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: .35; box-shadow: 0 0 0 0 rgba(255,77,94,.0); } 50% { opacity: 1; box-shadow: 0 0 0 3px rgba(255,77,94,.25); } }

.fb-btn { position: fixed; right: 12px; bottom: calc(66px + var(--safe-b)); z-index: 7; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 18px; background: var(--surface); color: var(--muted); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fb-btn svg { width: 15px; height: 15px; }
.fb-btn.raised { bottom: calc(80px + var(--safe-b)); }
textarea { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); font: inherit; margin-bottom: 12px; resize: vertical; }
.list li.fb { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.list li.fb.done { opacity: .5; }
.fb-page { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; }
@media (min-width: 900px) { .fb-btn, .fb-btn.raised { bottom: 20px; right: 20px; } }

.beta { display: inline-block; margin-left: 8px; padding: 1px 5px; border: 1px solid var(--gold-rule); border-radius: 2px; color: var(--gold-on-green); font-family: var(--sans); font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; vertical-align: 4px; }
.login .beta { color: var(--gold); border-color: var(--gold); vertical-align: 8px; }

/* Opening */
#intro { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
  background: radial-gradient(ellipse at 50% 38%, #0b7a55 0%, #005a3e 55%, #00301f 100%); animation: intro-out 1.1s ease 4.7s forwards; }
#intro.skip { animation: intro-out .3s ease forwards; }
.intro-inner { display: flex; flex-direction: column; align-items: center; }
.intro-flag { width: 34px; height: 51px; opacity: 0; animation: intro-up 1.2s ease .3s forwards; margin-bottom: 14px; }
.intro-crest { width: 132px; height: 132px; margin-bottom: 22px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.intro-club { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em;
  color: rgba(255,255,255,.85); opacity: 0; animation: intro-track 1.8s cubic-bezier(.2,.7,.2,1) .8s forwards; }
.intro-rule { width: 0; height: 2px; margin: 16px 0 14px; background: linear-gradient(90deg, transparent, var(--gold-rule), transparent); animation: intro-rule 1.5s ease 1.6s forwards; }
.intro-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(44px, 13vw, 76px); line-height: 1; letter-spacing: -.01em;
  opacity: 0; animation: intro-title 1.7s cubic-bezier(.2,.8,.2,1) 2.1s forwards; text-shadow: 0 6px 30px rgba(0,0,0,.3); }
.intro-season { margin-top: 14px; font-family: var(--serif); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-on-green); opacity: 0; animation: intro-up 1.2s ease 3.1s forwards; }
@keyframes intro-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes intro-track { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .42em; } }
@keyframes intro-rule { to { width: 180px; } }
@keyframes intro-title { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #intro { animation: intro-out .3s ease .8s forwards; } }

/* Popup: centred card with an × (the in-round leaderboard) */
.sheet-back.at-popup { align-items: center; padding: 16px 4px; }
.sheet-back.at-popup .sheet { position: relative; border-radius: 4px; max-height: 86vh; padding: 0; overflow: hidden auto; background: transparent; }

/* Consistency pass */

@media (max-width: 899px) {
}

/* Leaderboard: the Augusta board. Hole-by-hole scores across, BBB points at the end, sorted by BBB. */
.masters { background: var(--white); border: 3px solid var(--green); margin: 12px 4px; }
.leaders { text-align: center; font-family: var(--block); font-size: 26px; font-weight: 600; letter-spacing: .3em; padding: 10px 0 8px .32em; color: var(--green); text-transform: uppercase; border-bottom: 3px solid var(--green); }

.augusta { width: 100%; min-width: 360px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-family: var(--block); font-variant-numeric: tabular-nums; }
.augusta col.c-pos { width: 24px; }
.augusta col.c-who { width: 104px; }
.augusta col.c-hole { width: auto; }
.augusta col.c-pts { width: 42px; }
.augusta col.c-tot { width: 28px; }
.augusta .tot { color: var(--muted-2); font-size: 13px !important; font-weight: 500 !important; font-family: "Inter", sans-serif; }
.augusta thead .tot { font-size: 10px !important; letter-spacing: .06em; text-transform: uppercase; }
.augusta th, .augusta td { text-align: center; padding: 0; border-right: 1px solid var(--green); border-bottom: 1px solid var(--green); background: var(--white); }
.augusta th:last-child, .augusta td:last-child { border-right: 0; }
.augusta tbody tr:last-child td { border-bottom: 0; }
.augusta .pos, .augusta .who, .augusta .pts { position: sticky; z-index: 1; }
.augusta .pos { left: 0; }
.augusta .who { left: 24px; box-shadow: 2px 0 0 var(--green); }
.augusta .pts { right: 0; box-shadow: -2px 0 0 var(--green); }
.augusta thead th { color: var(--green); font-size: 14px; font-weight: 600; height: 24px; }
.augusta thead tr.par th { color: var(--muted); font-weight: 500; font-size: 13px; border-bottom: 2px solid var(--green); }
.augusta thead .who { text-align: left; padding-left: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.augusta tbody td { height: 42px; font-size: 18px; font-weight: 600; color: var(--ink-strong); }
.augusta td.pos { font-size: 14px; font-weight: 500; }
.augusta tbody .who { text-align: left; padding: 0 3px 0 6px; font-size: 16px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.augusta tbody .who .jacket { margin-left: 3px; vertical-align: -3px; }
.augusta tbody .who .jacket svg { width: 13px; height: 13px; }
.augusta td.under { color: var(--red); }
.augusta td.even { color: var(--green); }
.augusta td.off { background: repeating-linear-gradient(45deg, var(--white) 0 4px, var(--paper) 4px 8px); }
.augusta td.pts { font-size: 22px; color: var(--green); background: var(--cell); line-height: 1; }
.augusta td.pts small { display: block; font-family: "Inter", sans-serif; font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.augusta tr.first td.pts { color: var(--red); }
@media (min-width: 900px) { .masters { margin: 16px 0; } .augusta tbody .who { font-size: 16px; } .augusta col.c-who { width: 150px; } }
.sheet-back.at-popup .masters { margin: 0; }
.sheet-back.at-popup .card { margin: 0; border-top: 0; }

/* Consistency pass */
.list a.grow b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.list a.grow .sub { margin-top: 1px; }
.list li > .sub { min-width: 56px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list li > .num { min-width: 64px; }
.list li > .btn.sm { min-width: 72px; }
@media (max-width: 899px) {
}

/* Scoring: the Prev / Next bar sits on top of the tab bar. */
main.scoring { padding-bottom: calc(150px + var(--safe-b)); }
main.scoring ~ .score-foot, .score-foot { bottom: calc(58px + var(--safe-b)); padding-bottom: 10px; }
.fb-btn.raised { bottom: calc(136px + var(--safe-b)); }
@media (min-width: 900px) { .score-foot { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); } main.scoring { padding-bottom: 100px; } .fb-btn.raised { bottom: 88px; } }

.bbb-strip { margin-top: -8px; }
.bbb-strip .v { font-size: 22px; color: var(--ink); }

/* Hole names and Amen Corner */
.hole-name { font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 600; color: var(--green); line-height: 1.15; }
.amen-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: var(--green); padding: 2px 6px; border-radius: 2px; margin-bottom: 3px; }
.amen-tag.inline { margin: 0 0 0 6px; vertical-align: 2px; }
.augusta thead tr.amen-row th { height: 18px; border-bottom: 0; }
.augusta thead th.amen { background: var(--green); color: var(--white); font-size: 8px !important; letter-spacing: .04em; text-transform: uppercase; font-family: "Inter", sans-serif; font-weight: 700; white-space: nowrap; overflow: hidden; height: 16px !important; }
.hole-n { min-width: 22px !important; text-align: left !important; color: var(--green); font-family: var(--serif); }
.course-name { font-family: var(--serif); font-weight: 600; }
label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; font-weight: 500; }
label.check input { width: 20px; height: 20px; accent-color: var(--green); }

/* Browser surfaces */
::selection { background: rgba(0, 103, 71, .22); color: var(--ink); }
input, textarea { caret-color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--green) transparent; }
.board-scroll::-webkit-scrollbar { height: 4px; }
.board-scroll::-webkit-scrollbar-thumb { background: var(--green); }

.pot-card { margin-top: 16px; }
.pot-card .kv { border-bottom: 0; padding: 14px 16px; }
.pot-card .kv > span:first-child { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.pot-card .kv.big > span:last-child { font-family: var(--serif); font-size: 32px; }
.augusta tbody th.who { font-weight: 500; }

/* Whole row is the tap target in lists that open a page */
.list a.grow { display: flex; flex-direction: column; justify-content: center; min-height: 48px; align-self: stretch; margin: -6px 0; padding: 6px 0; }

/* Chat: one feed, newest at the bottom, the typing box held above the tabs */
main.chat { padding-bottom: 0; min-height: calc(100dvh - 71px - var(--safe-t)); display: flex; flex-direction: column; }
main.chat > .chat-pinned { margin-top: 0; }
.chat-pinned { position: sticky; top: calc(56px + var(--safe-t)); z-index: 3; display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 16px; background: var(--gold-tint); border-bottom: 1px solid var(--line-strong); border-left: 4px solid var(--gold-rule); font-size: 15px; line-height: 1.35; }
.chat-pinned svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold); }
.chat-pinned span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-pinned b { font-family: var(--serif); font-weight: 600; margin-right: 4px; }
.chat-more { margin-top: 12px; }
main.chat .chat-list { list-style: none; margin: auto 0 0; padding: 8px 0 12px; }
.msg { padding: 8px 16px 2px; cursor: pointer; }
.msg.follows { padding-top: 0; }
.msg:active { background: var(--green-tint); }
.msg.is-pinned { box-shadow: inset 4px 0 0 var(--gold-rule); }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-name { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--green-ink); }
.msg-head time { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.msg-body { font-size: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; padding-bottom: 4px; }
.msg-photo { display: block; width: min(100%, 320px); max-height: 360px; margin: 2px 0 6px; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--line); }
.msg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.msg-day { margin: 14px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.msg-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg-full { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }

.photo-full { display: block; width: 100%; max-height: 70vh; object-fit: contain; margin-bottom: 12px; }
.compose { position: sticky; bottom: 0; z-index: 4; background: var(--surface); border-top: 1px solid var(--line-strong); padding: 8px 12px calc(8px + var(--safe-b)); }
.compose-row { display: flex; align-items: flex-end; gap: 8px; }
.compose textarea { flex: 1; margin: 0; min-height: 44px; max-height: 140px; resize: none; font-size: 16px; line-height: 1.35; padding: 10px 12px; }
.compose-cam { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--green-ink); cursor: pointer; border-radius: var(--r); }
.compose-cam svg { width: 24px; height: 24px; }
.compose-send { flex: none; }
.compose-photo { position: relative; display: inline-block; margin-bottom: 8px; }
.compose-photo img { display: block; height: 72px; border-radius: var(--r); }
.compose-photo button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 18px; line-height: 1; }
.fb-btn.chatting { display: none; }
@media (min-width: 900px) {
  main.chat { min-height: calc(100vh - 71px); }
  .chat-pinned { top: 71px; border: 1px solid var(--line-strong); border-left: 4px solid var(--gold-rule); }
  .compose { bottom: 0; border: 1px solid var(--line-strong); border-bottom: 0; }
  .msg { padding-left: 12px; padding-right: 12px; }
  .msg-day { margin-left: 0; margin-right: 0; }
}

/* Weeks: the season as a tee sheet. The current week is boxed, with the pot; past weeks are muted. */
.weeks { list-style: none; margin: 16px 0; padding: 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.week:last-child { border-bottom: 0; }
.week:has(.w-tick) { display: flex; align-items: stretch; }
.week:has(.w-tick) > a { flex: 1; min-width: 0; padding-right: 4px; }

.w-tick:active { background: var(--green-tint); }
.week > a { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 4px 12px; min-height: 56px; padding: 8px 16px; text-decoration: none; }
.week > a:active { background: var(--green-tint); }
.w-date { font-family: var(--serif); font-weight: 600; font-size: 17px; white-space: nowrap; }
.w-label { font-family: var(--serif); font-style: italic; color: var(--green-ink); font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-right { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.week.past .w-date, .week.past .w-label { color: var(--muted); font-weight: 500; }
.week.past .w-right { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink); }
.week.current { position: relative; margin: 8px 0; background: var(--surface); box-shadow: inset 0 0 0 2px var(--green); border-bottom: 0; }
.week.current:first-child { margin-top: 0; }
.week.current::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-rule); }
.week.current > a { padding-top: 16px; min-height: 68px; }
.week.current .w-date { font-size: 21px; color: var(--green-ink); }
.week.current .w-right { color: var(--green-ink); font-weight: 600; }
/* A played week: the jacket photo beside it, the night's recap under the date. */
.week.played > a { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; align-content: start; align-items: start; gap: 4px 14px; padding: 12px 16px; }
.w-photo { grid-row: 1 / 3; width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); background: var(--green-tint); }
.w-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.w-recap { display: grid; grid-template-columns: auto 1fr auto; gap: 1px 10px; max-width: 380px; font-size: 14px; line-height: 1.35; }
.w-recap .rc-what { color: var(--muted); }
.w-recap .rc-who { font-family: var(--serif); font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-recap .rc-amt { font-family: var(--serif); font-weight: 600; color: var(--gold); text-align: right; }
@media (max-width: 374px) { .week > a { grid-template-columns: 1fr auto; } .w-label { grid-column: 1 / -1; grid-row: 2; } }
@media (min-width: 900px) { .weeks { margin-left: 0; margin-right: 0; border: 1px solid var(--line); } }

h2.section.week-title { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--green-ink); }
.tee-row { text-align: left; font-family: var(--serif); font-weight: 600; font-size: 18px; min-height: 44px; }
.num.wait-n { min-width: 24px; text-align: left; color: var(--muted); font-family: var(--serif); }
.pick-list .pick-head { padding: 12px 4px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }

/* Player page: a tick per week. */
.list a.name-link { text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.tee-row.blank { color: var(--muted-2); font-weight: 500; }

/* Week photos: the lead full width at the top of the week, the rest as a grid, full screen on a tap. */
.photo-top { border: 0; }
.row-btns + .photos { margin-top: 16px; }
.photo-lead { display: block; width: 100%; max-height: 70vh; padding: 0; border: 0; background: var(--line); cursor: pointer; }
.photo-lead img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.photos .photo-lead + .photo-grid { margin-top: 3px; }
.photo-tile { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; background: var(--line); overflow: hidden; cursor: pointer; }
.photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-tile.sending img { opacity: .45; }
.photo-tile.failed img { opacity: .35; }
.photo-retry { position: absolute; left: 6px; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 6px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--red); font: 600 13px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.photo-add { cursor: pointer; }
.photo-view { position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; background: #000; touch-action: pan-y; }
.photo-view-bar { flex: none; display: flex; justify-content: center; gap: 10px; min-height: 64px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
.photo-view-bar:first-child { justify-content: flex-end; }
.photo-view-bar:last-child { padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); }
.photo-view-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.photo-view-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.photo-x { width: 48px; height: 48px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.photo-view :focus-visible { outline-color: #fff; }
.photo-view .photo-del { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }

/* Sign up: past weeks fold away under the weeks still to come */

/* Camera on the green jacket reveal: the night's shots in a strip, Photo and Close along the bottom. */
.reveal.with-cam .reveal-inner { padding-bottom: 170px; }
.reveal-cam { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 16px calc(18px + var(--safe-b)); display: grid; gap: 10px; background: linear-gradient(transparent, rgba(0, 30, 20, .7) 30%); }
.reveal-strip { display: flex; gap: 8px; overflow-x: auto; justify-content: center; padding: 4px 2px; }
.reveal-strip > * { position: relative; flex: none; width: 60px; height: 60px; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: rgba(255, 255, 255, .15); }
.reveal-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reveal-strip .main { box-shadow: 0 0 0 3px var(--gold-rule); }
.reveal-strip .sending img { opacity: .45; }
.reveal-strip .failed img { opacity: .3; }
.reveal-strip [data-retry] { position: absolute; inset: 0; width: 100%; background: transparent; color: var(--white); font: 600 12px/1 Inter, system-ui, sans-serif; }
.reveal-btns { display: flex; justify-content: center; gap: 10px; }

.reveal-shoot svg { width: 22px; height: 22px; }
.reveal-cam .reveal-close { position: static; transform: none; min-height: 52px; animation: none; }

/* Player page: his green jackets, one photo per win. */

.jacket-photos li { display: grid; gap: 4px; }

.jp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jp-date { font-size: 13px; color: var(--muted); text-align: center; }
.start-round { margin-bottom: 16px; }

/* ===== Redesign: Augusta, refined (approved Sep 30 2026). Later rules win over the older ones above. ===== */
.top { top: 0; z-index: 5; background: var(--green); color: var(--white); align-items: center; gap: 12px; position: relative; display: block; padding: calc(var(--safe-t) + 8px) 20px 18px; border-bottom: 3px solid var(--gold-rule); }
.top-row { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.top-gap { flex: 1; }
.top h1 { flex: 1; font-family: var(--serif); font-style: normal; font-size: 34px; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 8px 0 0; }
.top.home h1, .top.compact h1 { margin: 0; flex: 1; }
.top.home h1 { font-style: italic; font-size: 30px; }

.top.compact h1 { font-size: 20px; }
.top-eyebrow { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.top.home .top-eyebrow { margin-top: 6px; }
.top-sub { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold-soft); margin-top: 4px; }
.top .back { line-height: 1; align-items: center; text-decoration: none; width: 44px; height: 44px; margin-left: -12px; display: grid; place-items: center; color: var(--white); font-size: 0; }
.top .back svg { width: 22px; height: 22px; }
.top .chat-link { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--white); margin-right: -10px; }
.top .chat-link .unread { position: absolute; top: 8px; right: 7px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--green); background: var(--gold-rule); }
.top .top-link { color: var(--white); font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; border-color: rgba(239, 227, 191, .6); }
.live-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 2px; color: var(--gold-soft); }

.tabs { background: var(--surface); border-top: 1px solid var(--line); }
.tabs a { font-size: 11px; font-weight: 600; letter-spacing: .02em; min-height: 60px; }
.tabs a svg { width: 24px; height: 24px; }

.tabs a[aria-current="page"]::before { display: none; }

main > :first-child { margin-top: 20px; }
.card, .panel { margin: 0 16px 16px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sheet .card { margin: 0 0 14px; }
.card-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.card-head h2, .card-head h3 { margin: 0; font-family: var(--serif); flex: 1; font-size: 20px; font-weight: 500; }
.card-body { padding: 14px 18px; }
h2.section { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 26px 20px 10px; }
.sub-head { margin: 16px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.nav-row { display: flex; align-items: center; font-family: var(--serif); color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); min-height: 60px; padding: 0 18px; font-weight: 500; font-size: 19px; }
.list li { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); min-height: 56px; padding: 8px 18px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding: 12px 18px; }

.btn { color: var(--white); letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 52px; border-radius: 26px; padding: 0 24px; font-weight: 700; font-size: 16px; background: var(--green); }
.btn.big { font-size: 16px; min-height: 56px; border-radius: 28px; }

.btn.quiet { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost { background: transparent; color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green); }
.btn.gold { background: var(--gold-rule); color: var(--green-deep); }
.btn.in { background: var(--green-tint); color: var(--green); }
.btn svg { width: 20px; height: 20px; }
.chip { display: inline-flex; align-items: center; padding: 0 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; touch-action: none; user-select: none; border-radius: 22px; min-height: 40px; }
.seg { display: flex; overflow: hidden; border: 0; border-radius: 14px; padding: 4px; background: #E9E3D2; gap: 0; }

.seg button[aria-pressed="true"] { font-weight: 600; background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 34, 27, .12); }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], input[type="number"], input[type="date"], input[type="password"], textarea { border-radius: 12px; }
.sheet { border-radius: 22px 22px 0 0; }
.sheet h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.sheet-back.at-top .sheet { padding-top: calc(18px + var(--safe-t)); max-height: 92vh; display: flex; flex-direction: column; border-radius: 0 0 22px 22px; }
.pick-name { font-family: var(--serif); line-height: 1.2; font-weight: 500; font-size: 18px; }
#toast { border-radius: 14px; }
.fb-btn { border-radius: 22px; }

/* Tick: a round button, filled green when you are on */
.tick { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); }
.tick[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.tick[aria-pressed="true"]::after { content: ""; position: absolute; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; inset: 11px; }

/* Avatars: his photo, else his latest green jacket photo, else his initial */
.av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--green-tint); color: var(--green); font-family: var(--serif); font-size: 16px; font-weight: 600; }

.av.jacket { background: var(--green); color: var(--gold-soft); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--gold-rule); overflow: visible; }
.av.jacket img { border-radius: 50%; }
.av.sm { width: 32px; height: 32px; font-size: 13px; }
.av.lg { width: 128px; height: 128px; font-size: 56px; }
.faces { display: flex; }
.faces .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.faces .av.jacket { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--gold-rule); }
.faces .av:first-child { margin-left: 0; }

/* Sign up: this Thursday as the hero, the weeks to come below */
.hero { margin: 20px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.hero::before { content: ""; display: block; height: 4px; background: var(--gold-rule); }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero .eyebrow { color: var(--gold); }
.hero-date { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -.015em; color: var(--green); }
.hero-label { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--green); margin-top: -6px; }
.hero-meta { font-size: 15px; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 600; }

.hero-actions { padding: 0 20px 20px; }
.weeks { margin: 0 16px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.week { border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.week > a { flex: 1; min-width: 0; display: block; padding: 14px 8px 14px 18px; min-height: 72px; }
.week .w-when { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.week .w-title { font-family: var(--serif); font-size: 20px; font-weight: 500; margin-top: 3px; line-height: 1.2; }
.week .w-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.w-tick { flex: none; display: grid; place-items: center; width: 72px; align-self: stretch; }
.w-tick .tick { width: 44px; height: 44px; border: 2px solid var(--line); box-shadow: none; }
.w-tick[aria-pressed="true"] .tick { box-shadow: none; background: var(--green); border-color: var(--green); }
.w-tick[aria-pressed="true"] .tick::after { content: ""; position: absolute; width: 8px; height: 15px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); left: 16px; top: 8px; }
.past-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); text-decoration: none; min-height: 68px; }
main > .past-row:first-child { margin-top: 0; }
.past-row .thumb { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--green); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 600; flex: none; }
.past-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.past-row .grow { flex: 1; min-width: 0; }
.past-row b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.past-row span.sub { font-size: 13px; color: var(--muted); }
.past-row svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.add-week { display: block; margin: 18px auto 0; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--green); }

/* A week: you, then the list or the tee sheet */
.you { margin: 18px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.you .grow { flex: 1; min-width: 0; }
.you b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.you span.sub { font-size: 13px; color: var(--muted); }
main > .seg { margin-top: 18px; margin-bottom: 14px; }
.signed .pos { width: 22px; text-align: right; color: var(--muted); font-weight: 600; font-size: 14px; flex: none; }
.signed li.mine { background: var(--gold-tint); }
.signed .nm { font-family: var(--serif); font-size: 18px; font-weight: 500; text-decoration: none; }
.tee-block { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tee-block:last-child { border-bottom: 0; }
.tee-block .tee-head { display: flex; align-items: center; gap: 10px; }
.tee-block .tee-time { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--green); min-height: 44px; text-align: left; }
.tee-block .tee-time.blank { color: var(--muted-2); font-size: 20px; }
.tee-names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tee-names .chip { gap: 8px; padding: 4px 12px 4px 4px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; }

@media (min-width: 900px) {
  .top { padding-left: 32px; padding-right: 32px; min-height: 0; }
  .tabs { top: 0; }
  .card, .panel, .weeks, .hero, .you { margin-left: 0; margin-right: 0; }
}
.week .w-when, .week .w-title, .week .w-meta { display: block; }
.hero-body > span { display: block; }

.x-btn { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; color: var(--muted-2); border-radius: 22px; flex: none; }
.x-btn svg { width: 18px; height: 18px; }
.x-btn:active { background: var(--red-tint); color: var(--red); }

/* The hole screen: the hole big on green, who is on it, the stroke pad, Bingo Bango Bongo */
.top.compact { padding-bottom: 10px; border-bottom: 0; }
main.scoring > .hole-mast:first-child { margin-top: 0; }
.hole-mast { background: var(--green); color: var(--white); padding: 4px 20px 16px; border-bottom: 3px solid var(--gold-rule); }
.hm-row { display: flex; align-items: flex-end; gap: 16px; }
.hm-no { font-family: var(--serif); font-size: 88px; font-weight: 500; line-height: .82; letter-spacing: -.03em; color: var(--gold-soft); min-width: 52px; }
.hm-meta { flex: 1; min-width: 0; padding-bottom: 4px; }
.hm-name { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; }
.hm-par { font-size: 14px; color: var(--gold-soft); margin-top: 4px; }
.hm-note { font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 2px; }
.hm-sub { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold-soft); margin-top: 6px; }
.hole-mast .map-btn { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(239, 227, 191, .5); flex: none; }
.hole-mast .map-btn img { width: 100%; height: 100%; object-fit: cover; }
.hm-amen { display: inline-block; margin-top: 10px; padding: 3px 10px; border: 1px solid var(--gold-rule); color: var(--gold-soft); border-radius: 12px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ticker { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--green-deep); color: var(--white); padding: 8px 16px 8px 20px; font-size: 14px; text-align: left; border: 0; }
.ticker .tk-lines { flex: 1; display: grid; gap: 4px; }
.ticker .tk-line { display: grid; grid-template-columns: 62px 1fr auto; align-items: baseline; gap: 8px; }
.ticker b { color: var(--gold-soft); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker .tk-p { font-variant-numeric: tabular-nums; }
.ticker .tk-l { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-rule); }
.ticker svg { width: 18px; height: 18px; flex: none; color: var(--gold-rule); }

/* The board over the hole screen: x returns to the same hole */
.board-over { position: fixed; inset: 0; z-index: 15; overflow-y: auto; background: var(--paper); padding-bottom: calc(24px + var(--safe-b)); animation: bo-in .18s ease-out both; }
@keyframes bo-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.bo-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 12px 12px 20px; background: var(--green-deep); color: var(--white); margin-bottom: 16px; }
.bo-head h2 { flex: 1; margin: 0; font-family: var(--serif, Georgia, serif); font-size: 20px; color: var(--white); }
.bo-x { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 26px; line-height: 1; }
.lb-rows li.mine { background: var(--gold-tint); box-shadow: inset 4px 0 0 var(--gold-rule); }
@media (min-width: 900px) { .board-over .lb { max-width: 720px; margin: 0 auto 16px; } }
.prs { list-style: none; margin: 0; padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }

.pr:first-child { border-top: 0; }

.pr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 4px 10px 18px; min-height: 66px; text-align: left; }
.pr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.pr-line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pr-line b { font-weight: 700; color: var(--ink); }
.pr-line b.under { color: var(--red); }
.pr-line b.even { color: var(--focus); }
.pr-won { color: var(--gold); font-weight: 700; }
.pr.out .pr-main { opacity: .6; }
.pr-score { width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex: none; }
.pr-score.empty { border: 1.5px dashed var(--line-strong); border-radius: 12px; }
.pr-more { width: 40px; display: grid; place-items: center; color: var(--muted-2); flex: none; }
.pr-more svg { width: 16px; height: 16px; }
.mk { border-radius: 0; }
.mk.b { border: 1.5px solid var(--red); border-radius: 50%; color: var(--red); }
.mk.e { border: 1.5px solid var(--red); border-radius: 50%; color: var(--red); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--red); }
.mk.o { border: 1.5px solid var(--ink); }
.mk.oo { border: 1.5px solid var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.pad-for { padding: 16px 20px 0; font-size: 13px; color: var(--muted); }
.pad-for b { color: var(--ink); }
.pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 4px; }
.sheet .pad { padding: 0 0 8px; }
.key { min-height: 64px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.key .n { font-size: 26px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.key .l { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.key.par { background: var(--green); border-color: var(--green); color: var(--white); }
.key.par .l { color: var(--gold-soft); }
.key.red .n { color: var(--red); }
.key.picked { box-shadow: 0 0 0 3px var(--gold-rule); }
.key.wide { min-height: 48px; }
.key.wide .n { font-size: 18px; }
.key.quiet { background: transparent; border-style: dashed; }
.key:active { transform: scale(.97); }
.bbb-card { margin: 18px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.bbb-head { background: var(--green); color: var(--gold-soft); padding: 11px 18px; font-family: var(--serif); font-style: italic; font-size: 19px; border-bottom: 2px solid var(--gold-rule); }
.bbb-row { padding: 12px 18px; border-top: 1px solid var(--line); }
.bbb-row:first-of-type { border-top: 0; }
.bbb-k { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bbb-k b { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--green); }
.bbb-k span { font-size: 12px; color: var(--muted); }
.bbb-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.bbb-pick { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; }
.bbb-pick[aria-pressed="true"] { background: var(--gold-rule); border-color: var(--gold-rule); color: var(--green-deep); }
.hole-in { margin: 16px; padding: 18px; border-radius: 18px; background: var(--green-tint); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hole-in b { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.link.late { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: 12px 16px 0; }
.holebar2 { position: fixed; left: 0; right: 0; bottom: calc(60px + var(--safe-b)); z-index: 6; display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px; }
.holebar2 .hb { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 16px; color: var(--green); }
.holebar2 .hb:disabled { opacity: .3; }
.holebar2 .hb svg { width: 20px; height: 20px; }
.holebar2 .hb.fin { background: var(--green); color: var(--white); border-radius: 24px; }
.hb-mid { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.hb-mid i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.hb-mid i.done { background: var(--green); }
.hb-mid i.now { background: var(--gold-rule); box-shadow: 0 0 0 3px var(--gold-soft); }
main.scoring { padding-bottom: calc(150px + var(--safe-b)); }
@media (min-width: 900px) { .holebar2 { bottom: 0; left: 50%; transform: translateX(-50%); max-width: 720px; border: 1px solid var(--line); border-bottom: 0; } .hole-mast, .ticker, .prs { border-radius: 0; } }

/* Leaderboard, Masters style */
.lb { margin: 0 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lb-head, .lb-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px 50px 38px; align-items: center; gap: 0 6px; padding: 0 14px; }
.lb-head { background: var(--green-deep); color: var(--gold-soft); min-height: 34px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lb-head span:nth-child(n+3) { text-align: right; }
.lb-rows { list-style: none; margin: 0; padding: 0; }
.lb-rows li { border-top: 1px solid var(--line); }
.lb-rows li:first-child { border-top: 0; }
.lb-rows li.open { background: var(--gold-tint); }
.lb-row { width: 100%; min-height: 62px; text-align: left; }
.lb-pos { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-pos.first { color: var(--gold); font-family: var(--serif); font-size: 21px; }
.lb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-text { display: flex; flex-direction: column; min-width: 0; }
.lb-name { font-family: var(--serif); font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name .jacket { margin-left: 4px; }

.lb-pts { text-align: right; font-size: 20px; font-weight: 700; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.lb-pts small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.lb-par { text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-par.under { color: var(--red); }
.lb-par.even { color: var(--focus); }
.lb-thru { text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); }
.lb-card { padding: 4px 14px 14px; }
.lb-grid { display: grid; grid-template-columns: 46px repeat(9, minmax(0, 1fr)) 32px; align-items: center; text-align: center; font-size: 13px; min-height: 30px; }
.lb-grid .lbl { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lb-grid .r { text-align: right; }
.lb-grid .tot { font-weight: 700; }
.lb-grid.par { color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.lb-grid span.amen { color: var(--gold); font-weight: 700; }
.lb-grid .mk { width: 24px; height: 24px; margin: 0 auto; display: grid; place-items: center; font-weight: 600; }
.lb-grid .mk.e, .lb-grid .mk.oo { box-shadow: 0 0 0 2px var(--gold-tint), 0 0 0 3.5px currentColor; }
.lb-grid .mk.off { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--line) 3px 5px); border-radius: 4px; }
.lb-grid.bbb span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.lb-grid.bbb i { font-style: normal; font-size: 9px; font-weight: 800; color: var(--green-deep); background: var(--gold-rule); border-radius: 4px; padding: 0 3px; line-height: 13px; }
.lb-grid.bbb .r { font-weight: 700; color: var(--green); }
.lb-player { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--green); min-height: 44px; line-height: 44px; }
@media (min-width: 900px) { .lb { margin-left: 0; margin-right: 0; } }
.fb-btn.raised { width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; bottom: calc(128px + var(--safe-b)); }
.fb-btn.raised svg { width: 18px; height: 18px; }

/* Night's end reveals: broadcast calm. Deep green stage, gold rule, the name rising. */
.reveal.green, .reveal.ace { background: radial-gradient(120% 70% at 50% 38%, #145C3C 0%, #0A3B26 45%, #051E13 100%); }
.reveal.dark { background: radial-gradient(120% 70% at 50% 40%, #2a2a2a 0%, #0d0d0d 80%); }
.r-kicker { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .28em; color: var(--gold-soft); }
.r-title, .r-type { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--white); }
.r-type.big { font-size: 30px; }
.r-rule { width: 0; animation: r-rule 1.2s ease forwards; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-rule), transparent); }
@keyframes r-rule { to { width: 200px; } }
.r-row { width: 100%; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; animation: r-up .45s ease both; text-align: left; background: rgba(255, 255, 255, .06); color: var(--white); border: 1px solid rgba(201, 164, 76, .45); border-radius: 14px; border-bottom-width: 1px; }
.r-label { font-weight: 600; text-transform: uppercase; color: var(--gold-soft); font-family: var(--sans, inherit); font-size: 11px; letter-spacing: .16em; }
.r-name { font-family: var(--serif); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 24px; }
.r-name.pending { animation: r-pulse .6s ease-in-out infinite; color: rgba(239, 227, 191, .35); }
.r-amt { font-weight: 700; color: var(--gold-soft); font-family: inherit; font-size: 17px; }
.r-portrait { margin-top: 8px; border-radius: 50%; }
.r-portrait .av.lg { width: 168px; height: 168px; font-size: 72px; background: #0D4A30; color: var(--gold-soft); box-shadow: 0 0 0 3px #051E13, 0 0 0 5px var(--gold-rule), 0 30px 60px rgba(0, 0, 0, .45); }
.r-portrait.beat .av { color: rgba(239, 227, 191, .25); animation: r-beat .8s ease-in-out infinite; }
.r-portrait.crowned { animation: r-crown 1s cubic-bezier(.2, 1.3, .4, 1) both; }
.r-rise { display: flex; justify-content: center; flex-wrap: wrap; perspective: 600px; font-family: var(--serif); font-size: clamp(56px, 20vw, 88px); font-weight: 500; letter-spacing: -.02em; line-height: 1; color: var(--white); margin-top: 18px; }
.r-rise span { display: inline-block; opacity: 0; animation: r-letter .9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes r-letter { from { opacity: 0; transform: translateY(40px) rotateX(60deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.r-sub { font-weight: 500; opacity: .9; color: var(--gold-soft); font-size: 15px; letter-spacing: .04em; }
.r-big.gold { text-shadow: 0 4px 24px rgba(0,0,0,.35); color: var(--gold-soft); }
.reveal-close { position: absolute; bottom: calc(24px + var(--safe-b)); left: 50%; transform: translateX(-50%); font-weight: 600; border: 1px solid rgba(255,255,255,.6); padding: 10px 28px; animation: r-fade 1s ease both; border-radius: 26px; border-color: rgba(239, 227, 191, .5); color: var(--gold-soft); }
.reveal-shoot { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 28px; font-size: 17px; cursor: pointer; border-radius: 26px; }
.confetti i { position: absolute; top: -12px; animation: r-fall linear forwards; background: linear-gradient(180deg, #F4E2A8, #B58A2E) !important; width: 6px; height: 10px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .r-rise span, .r-portrait.crowned { animation: r-fade-only .4s forwards !important; } .r-portrait.beat .av { animation: none !important; } }

/* Player page: his picture over the gold rule, name, jackets, the season in one strip */
.player-hero { text-align: center; padding: 0 16px 8px; margin-top: -64px !important; position: relative; }
.top:has(+ .tabs + main .player-hero), .top:has(~ main .player-hero) { padding-bottom: 76px; }
.player-hero .av.lg { margin: 0 auto 14px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold-rule); }
.player-hero .av.lg.jacket { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold-rule); }
.player-hero h2 { margin: 0; line-height: 1.1; font-family: var(--serif); font-size: 44px; font-weight: 500; text-transform: none; letter-spacing: -.015em; }
.player-hero .tallies svg { width: 24px; height: 24px; }
.season-strip { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 18px; }
.season-strip .v { font-family: var(--serif); font-size: 28px; color: var(--green); line-height: 1.1; font-weight: 500; }
.jacket-photos { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; padding: 14px 18px 18px; }
.jp-photo { display: block; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: var(--green-tint); border-radius: 12px; }
.lb-bbb { font-size: 11px; white-space: nowrap; margin-top: 1px; display: flex; align-items: center; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow: visible; gap: 6px; text-overflow: clip; }
.lb-bbb i { font-style: normal; font-size: 9px; font-weight: 800; color: var(--green-deep); background: var(--gold-rule); border-radius: 4px; padding: 0 3px; line-height: 13px; margin-right: 1px; }
h2.section .gold { color: var(--gold); }
.pay-name { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }

/* The photo fills the circle exactly, whatever the circle size */
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.view-pick { display: grid; gap: 12px; margin-top: 8px; }
.view-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.view-card b { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--green); }
.view-card span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.view-card:active { background: var(--gold-tint); border-color: var(--gold-rule); }

/* Sign up: past weeks, this Thursday and the weeks to come share one row style */
.w-pic { width: 72px; align-self: stretch; display: grid; place-items: center; flex: none; }
.w-pic img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.w-pic .av { width: 44px; height: 44px; }
.week.more > a { min-height: 56px; padding-top: 16px; }
.week.more .w-title { font-size: 17px; color: var(--green); margin: 0; }
.week.more svg { width: 18px; height: 18px; color: var(--muted); margin-right: 26px; flex: none; }
.weeks + h2.section, .hero + h2.section { margin-top: 28px; }
.week-line { margin: 0 20px 10px; font-size: 13px; color: var(--muted); }
.stack-btns { display: grid; gap: 10px; }
.tee-block.drop { background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold-rule); }
.chip.drag { cursor: grab; touch-action: none; user-select: none; }
/* A played week: the night's end as it closed */
.nights-end .result .who { display: flex; align-items: center; gap: 10px; }
.nights-end .step.done .step-head { color: var(--gold); }
/* A one-winner prize is one line: the prize's name where a group's number sits */
.nights-end .step > .result:first-child { padding-top: 10px; padding-bottom: 10px; }
.nights-end .step > .result:first-child .what { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nights-end .step .result { padding-bottom: 8px; }
/* Before every group has finished: the prizes to come, greyed */
.nights-end .step.pending .step-head { padding: 10px 16px; color: var(--muted-2); opacity: .7; }

/* Tabs: the one you are on carries a filled pill behind its icon (Material 3 active indicator); Round is greyed out until round day */
.tabs a svg, .tabs .tab-off svg { box-sizing: content-box; padding: 4px 18px; border-radius: 16px; }
.tabs a[aria-current="page"] svg { background: var(--green-tint); }
.tabs a[aria-current="page"] { color: var(--green); font-weight: 700; }
.tabs .tab-off { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: 11px; font-weight: 600; color: var(--line-strong); cursor: default; }
@media (min-width: 900px) { .tabs .tab-off { flex-direction: row; gap: 8px; min-height: 46px; padding: 0 18px; font-size: 14px; } .tabs a svg, .tabs .tab-off svg { padding: 0; background: none; } .tabs a[aria-current="page"] { background: var(--green-tint); border-radius: 23px; } }

/* This week: the same three lines as every week row, set larger */
.hero-body .w-when { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero-body .w-title { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; color: var(--green); }
.hero-body .w-meta { font-size: 15px; color: var(--muted); }
.hero-body { display: flex; flex-direction: column; padding: 20px 20px 18px; text-decoration: none; gap: 10px; }
.hero-who { align-items: center; gap: 12px; font-size: 13px; color: var(--muted); display: flex !important; margin-top: 4px; }

/* Tee sheet as seats: four across, five for a fivesome, an open seat dashed */
.seats { display: grid; grid-template-columns: repeat(var(--seats, 4), minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; background: var(--paper); min-width: 0; }
.seat .av { width: 40px; height: 40px; }
.seat-name { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.open { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.seat.open .av { background: transparent; box-shadow: inset 0 0 0 1.5px dashed var(--line-strong); border: 1.5px dashed var(--line-strong); }
.seat.open .seat-name { color: var(--muted-2); font-weight: 500; }
.seat.drag { cursor: grab; touch-action: none; user-select: none; }
.seat.dragging { opacity: .3; }

/* Notifications (Board of Directors): a switch per notification, its timing, audience and wording */

.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch[aria-pressed="true"] { background: var(--green); }
.switch[aria-pressed="true"] i { transform: translateX(20px); }
.notif-msg { margin: 12px 18px 4px; padding: 12px 14px; border-radius: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
.notif-msg b { font-weight: 700; font-size: 15px; }
.notif-msg span { font-size: 14px; color: var(--muted); }
.notif .kv > span:last-child { text-align: right; font-weight: 500; }
select { width: 100%; min-height: var(--tap); padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); margin-bottom: 12px; font: inherit; }

/* Group card: Change opens the edits for no-shows and subs */

.group .card-head .tee { order: 3; }

/* Payments on the night: one row per man, one tap per thing he owes */
.list.pays li.pay-row { display: block; padding: 12px 18px; }
.pay-who { display: flex; align-items: baseline; gap: 10px; }
.pay-who .pay-name { flex: 1; }
.pay-amt { margin-right: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.pay-item.done { background: var(--green); border-color: var(--green); color: var(--white); }
.pay-item.done::before { content: "\2713  "; }

/* Hole screen: Bi / Ba / Bo on each player's row */
.pr { display: flex; border-top: 1px solid var(--line); align-items: center; }

.pr.out .pr-who { opacity: .6; }
.key.more .n { font-size: 18px; }

.pay-item.done.cart { background: var(--gold-rule); border-color: var(--gold-rule); color: var(--green-deep); }

/* Your own name in tonight's groups */
.chip.me { font-weight: 700; background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold-rule); }

/* A group's scorer QR code */
.qr { background: var(--white); border-radius: 14px; padding: 12px; margin: 8px auto 4px; max-width: 300px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-note { text-align: center; color: var(--muted); margin: 8px 0 16px; }
.log-out-row { margin: 28px 16px 0; }

/* Tonight's groups: one Edit for the section */
h2.section.groups-head { display: flex; align-items: center; justify-content: space-between; }
h2.section.groups-head .tee-change { margin-left: 0; text-transform: none; letter-spacing: 0; }

/* The Round tab before round day: same size as the live tabs */
.tabs .tab-off { flex: 1; }
.tabs .tab-off svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .tabs .tab-off { flex: none; } .tabs .tab-off svg { width: 18px; height: 18px; } }

/* The night's purse, in the Round masthead */
.top-purse { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-on-green); }
.top-purse b { margin-left: 6px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* Whole-round actions: last on the Round page, apart from everything else */
.round-end { margin: 32px 16px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.new-season-row { margin: 28px 16px 0; }
.undo-start { display: block; margin: 10px 0 0; font-size: 14px; }

/* Every sheet closes with an x in its corner */
.sheet { position: relative; }
.sheet-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 22px; font-size: 26px; line-height: 1; color: var(--muted); background: transparent; z-index: 1; }
.sheet > h2 { padding-right: 44px; }
.sheet-back.at-top .sheet-x { top: calc(8px + var(--safe-t)); }

/* + Group sits under the last group with the same gap as between cards */
.add-group-row { margin-bottom: 16px; }

/* Critique pass, Oct 1 */
/* Bi / Ba / Bo: full-size targets, readable in sunlight, solid gold when won */
.pr-who { flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 4px 10px 18px; min-height: 66px; text-align: left; gap: 10px; padding-left: 12px; }
.pr-bbb { display: flex; flex: none; gap: 4px; }
.bbb-tog { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line-strong); font-size: 16px; font-weight: 800; color: var(--ink); background: var(--surface); }
.bbb-tog[aria-pressed="true"] { background: var(--gold-rule); border-color: var(--gold); color: var(--green-deep); }
.pr .pr-score { margin: 0 10px 0 6px; }
/* The player being scored: a strong mark, not a pale tint */
.pr.on { background: var(--gold-tint); box-shadow: inset 6px 0 0 var(--gold); }
.pr.on .pr-name { font-weight: 700; }
.pr.on .pr-score.empty { border: 2px solid var(--gold); }
/* Leader strip: a full touch target */
.ticker { min-height: 48px; }
/* On the course: no tab bar, the hole bar sits on the bottom edge */
.holebar2 { bottom: 0; padding-bottom: calc(6px + var(--safe-b)); }
main.scoring { padding-bottom: calc(96px + var(--safe-b)); }
/* Feedback sits in the header beside chat; nothing floats over the page */
.top .fb-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: rgba(255, 255, 255, .85); background: transparent; }
.top .fb-link svg { width: 22px; height: 22px; }
/* Switch off-state reads against the card */
.switch { width: 52px; height: 32px; border-radius: 16px; position: relative; flex: none; transition: background .15s; background: var(--muted-2, #8b948d); }
/* Names on a week's list are full-height targets */

/* A long name on the hole screen stays on one line */
.pr-name { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 44px targets on the secondary buttons */
.btn.sm { white-space: nowrap; border-radius: 20px; padding: 0 16px; font-size: 14px; min-height: 44px; }
.seg button { flex: 1 1 0; padding: 0 6px; border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); min-height: 44px; }
.tee-change { margin-left: auto; padding: 0 14px; border-radius: 18px; font-size: 13px; font-weight: 700; color: var(--green); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); min-height: 44px; }
.pay-item { padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; min-height: 44px; }
a.nm { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.switch::after { content: ""; position: absolute; inset: -6px -2px; }

/* Second critique pass, Oct 1 */
/* A blank score box shows the par it becomes on Next */
.pr-score .ghost { color: var(--muted-2); opacity: .55; font-weight: 600; }
/* Par is outlined until it is the score; the picked key is filled */
.key.par { background: var(--surface); border: 2px solid var(--green); color: var(--green); }
.key.par .l { color: var(--green); }
.key.picked { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 0 0 3px var(--gold-rule); }
.key.picked .n, .key.picked .l { color: var(--white); }
/* Leaderboard: names whole, the jacket beside them, BBB as one readable line */
.lb-head, .lb-row { grid-template-columns: 28px minmax(0, 1fr) 40px 44px 34px; gap: 0 5px; padding: 0 12px; }
.lb-who { gap: 8px; }
.lb-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lb-line .lb-name { min-width: 0; }
.lb-line .jacket { flex: none; margin-left: 0; }
.lb-bbb { display: block; font-size: 13px; font-weight: 600; color: var(--muted); gap: 0; }
/* Group card: the tee time is the group's key fact */
.group .card-head .tee { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--green); }
/* Week page: spots or waiting under the list it describes */
.week-line.in-card { margin: 0; padding: 10px 18px 0; color: var(--muted); }
/* Paid rows tap to undo */
.row-tap { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; text-align: left; }
.notif-send { padding-top: 0; }
/* Feedback (beta): a small pill in the header */
.top .fb-link { width: auto; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .45); font-size: 13px; font-weight: 600; color: var(--white); }
/* Reveals: the × is there from the start, in the corner */
.reveal-close { top: calc(12px + var(--safe-t)); right: 12px; bottom: auto; left: auto; transform: none; width: 44px; height: 44px; padding: 0; border-radius: 22px; font-size: 26px; line-height: 1; animation: none; }
.view-card b { font-size: 20px; }

/* Round page: tonight's groups as the tee sheet (the Sign up look), with each group's actions under its seats */
.tee-sheet .tee-group { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tee-sheet .tee-actions { margin-top: 12px; }
.tee-sheet .tee-actions .row-btns > .status { flex: 1; }
.tee-sheet .seat.me { background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold-rule); }
.tee-sheet .seat.me .seat-name { font-weight: 800; }
.tee-sheet .seat.add { color: var(--green); }
.tee-sheet .seat.add .av { display: grid; place-items: center; font-size: 22px; font-weight: 600; color: var(--green); }
.tee-sheet .seat.add .seat-name { color: var(--green); font-weight: 700; }
.tee-sheet .tee-block.done .seats { opacity: .7; }
.tee-sheet .tee-block.drop { background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold-rule); }
.tee-sheet .tee-add { margin-top: 10px; }

/* Group status sits in its heading; every group's button is full width */
.tee-sheet .tee-status { font-size: 14px; font-weight: 700; color: var(--muted); }
.tee-sheet .tee-status.live { color: var(--green); }
.tee-sheet .undo-start { margin-top: 12px; color: var(--red); }

/* Week settings: night's-end prize ticks. */
.tick-row { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.tick-row input { width: 22px; height: 22px; margin: 0; }
.sheet .sub-head { margin: 16px 0 6px; }
/* Board: rank by BBB, Gross or Net. */
.lb-seg { margin: 0 16px 10px; }
@media (min-width: 900px) { .board-over .lb-seg { max-width: 720px; margin: 0 auto 10px; } }
/* 2-man team nights: the two pairs in a tee time, a thin rule between. */
.seats.pair + .seats.pair { border-top: 1px solid var(--line); padding-top: 10px; }

/* Team nights: a Scramble team row (its men's faces), and the drive strip under each team. */
.pr-faces { display: flex; flex: none; }
.pr-faces .av + .av { margin-left: -12px; }
.drive-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px; }
.dr-l { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.drive-chip { min-height: 44px; padding: 4px 14px; border-radius: 22px; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 15px; color: var(--ink); display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.drive-chip small { font-size: 11px; font-weight: 700; color: var(--red); }
.drive-chip[aria-pressed="true"] { background: var(--gold-rule); border-color: var(--gold); color: var(--green-deep); }

/* Hole 1: a man's face is the handle to drag him into tee order */
.pr[data-order] .pr-who > .av { touch-action: none; cursor: grab; }
.pr.lifting { background: var(--gold-tint); box-shadow: 0 6px 18px rgba(0,0,0,.18); position: relative; z-index: 2; }

/* A row that acts (Round QR) looks like a row that opens a page */
button.nav-row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
button.nav-row:first-child { border-top: 0; }

/* A guest's way back to tonight's names, last on the Round page */
.not-me { text-align: center; margin: 24px 16px 8px; }


/* Draw prize on the sign-up list: a gift beside the name; gold when he's bringing it */
.prize-tog { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 22px; color: var(--line-strong); }
.prize-tog svg { width: 22px; height: 22px; }
.prize-tog[aria-pressed="true"] { color: var(--gold); }
span.prize-tog { width: 32px; }

/* A group that has teed off: one line on the Round page */
.tee-sheet .tee-block.compact { padding-top: 10px; padding-bottom: 10px; }
.tee-sheet .tee-block.compact .tee-time { font-size: 18px; min-height: 0; }
.compact-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.compact-names { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-names .me { color: var(--ink); font-weight: 700; }

/* Night's end, draw prize: Board's fix links */
.draw-prize .dp-fix { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 16px 12px; font-size: 14px; }

/* Format rules (hidden page #/rules, temporary): the rules as they stand, the questions, one Send */
.rule-who-am-i { margin: 0 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.rule-lead { margin: 0 16px 4px; line-height: 1.45; }
.rule-head { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 28px 16px 10px; color: var(--green-ink); padding-bottom: 6px; border-bottom: 3px solid var(--gold-rule); }
.rule-now-card { background: var(--green-tint); }
.rule-now-card .card-head h3 { font-size: 16px; font-family: inherit; font-weight: 700; }
.rule-q { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.4; display: flex; gap: 12px; align-items: baseline; }
.rule-q > span:first-child { flex: 1; }
.rule-req { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.rule.missing { box-shadow: inset 4px 0 0 var(--red); }
.rule-err { margin: 0; padding: 8px 18px 0; color: var(--red); font-weight: 600; }
.rule .list li { padding: 0; }
.rule-opt { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px 18px; min-height: 56px; line-height: 1.4; }
.rule-opt:disabled { cursor: default; }
.rule-opt[aria-pressed="true"] { background: var(--green-tint); }
.rule-letter { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.rule-opt[aria-pressed="true"] .rule-letter { background: var(--green); color: var(--white); box-shadow: none; }
.rule-who { display: block; margin-top: 4px; color: var(--green-ink); font-weight: 600; font-size: 14px; }
.rule .card-body input, .rule .card-body textarea { width: 100%; margin: 0; }
.rule-said { display: block; white-space: pre-wrap; }
.rule .list li > span.grow { padding: 10px 18px; }
.list.rule-now li { line-height: 1.45; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
.rules-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 12px; background: var(--surface); border-top: 1px solid var(--line-strong); padding: 10px 16px calc(10px + var(--safe-b)); }
.rules-count { flex: 1; font-weight: 600; }
.rules-foot .btn { min-width: 150px; }
@media (min-width: 720px) { .rules-foot { left: 50%; transform: translateX(-50%); max-width: 680px; border: 1px solid var(--line-strong); border-bottom: 0; } }

/* Sign in: email and password, and the new-or-forgot flow */
.login input + label.field { margin-top: 14px; }
.login .btn.big { margin-top: 8px; }
.auth-link { display: block; margin: 18px auto 0; min-height: 44px; }
.auth-h { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--green-ink); margin: 14px 0 12px; }
.auth-links { display: flex; justify-content: center; gap: 28px; margin-top: 14px; }
.auth-links .link { min-height: 44px; }
.auth-sent { color: var(--muted); margin: 8px 0 16px; overflow-wrap: anywhere; }
.auth-name { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--green-ink); margin: 12px 0 16px; }
#a-code { font-size: 28px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.no-account { white-space: nowrap; margin-right: 8px; }
.remove-account { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Notifications: Delete last on the card, set apart */
.notif-del { padding-top: 4px; }
.notif-del .btn { margin-top: 8px; }
