:root {
  --felt: #0A3324;
  --felt-2: #0F4430;
  --fairway: #13573D;
  --line: rgba(244, 236, 216, .14);
  --foam: #F4ECD8;
  --foam-dim: rgba(244, 236, 216, .66);
  --amber: #F5B530;
  --amber-ink: #3A2600;
  --flag: #E8432F;
  --birdie: #7FD89B;
  --display: 'Alfa Slab One', Georgia, serif;
  --body: 'Karla', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--felt);
  /* subtle mown-grass stripes */
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.018) 0 56px, transparent 56px 112px);
  color: var(--foam);
  font: 16px/1.45 var(--body);
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
input, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: .01em; }
a { color: var(--amber); }
.muted { color: var(--foam-dim); }
.small { font-size: 14px; }

/* ---------- layout ---------- */
.shell { min-height: 100%; padding: calc(var(--safe-t) + 10px) 16px calc(88px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand { font-family: var(--display); font-size: 20px; flex: 1; }
.brand span { color: var(--amber); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--felt-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.ava { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: #1a1a1a; flex: none; }
.ava.lg { width: 40px; height: 40px; font-size: 18px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(7, 38, 26, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + var(--safe-b));
}
.tabs button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--foam-dim); border-radius: 12px; }
.tabs button svg { width: 24px; height: 24px; }
.tabs button[aria-current="page"] { color: var(--amber); background: rgba(245, 181, 48, .1); }

.section-title { font-family: var(--display); font-size: 22px; margin: 26px 0 10px; }

.panel { background: var(--felt-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.panel + .panel { margin-top: 12px; }

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 800; background: var(--fairway); border: 1px solid var(--line); }
.btn.primary { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.btn.danger { background: var(--flag); color: #fff; border-color: transparent; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* ---------- login ---------- */
.login { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 40px) 20px calc(30px + var(--safe-b)); max-width: 480px; margin: 0 auto; }
.login h1 { font-size: clamp(54px, 17vw, 84px); line-height: .9; }
.login h1 small { display: block; font-size: .42em; color: var(--amber); margin-top: 10px; }
.login p { color: var(--foam-dim); margin: 14px 0 28px; max-width: 32ch; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who button { padding: 18px 14px; border-radius: 18px; background: var(--felt-2); border: 2px solid var(--line); text-align: left; display: grid; gap: 10px; }
.who button[aria-pressed="true"] { border-color: var(--amber); background: var(--fairway); }
.who b { font-size: 18px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 26px 0 8px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--foam-dim); }
.pin-dots i.on { background: var(--amber); border-color: var(--amber); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.keypad button { height: 58px; border-radius: 16px; background: var(--felt-2); border: 1px solid var(--line); font-family: var(--display); font-size: 24px; }
.keypad button:active { background: var(--fairway); }

/* ---------- tee sign (hole card) ---------- */
.tee { position: relative; border-radius: 22px; overflow: hidden; background: var(--foam); color: #16261d; }
.tee-head { display: flex; align-items: stretch; background: var(--fairway); color: var(--foam); }
.tee-flag { position: relative; width: 104px; flex: none; display: grid; place-items: center; background: var(--flag); clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%); }
.tee-flag b { font-family: var(--display); font-size: 64px; line-height: 1; color: #fff; margin-right: 14px; }
.tee-meta { flex: 1; padding: 14px 16px 14px 8px; display: grid; align-content: center; gap: 2px; }
.tee-meta .k { font-size: 13px; color: var(--foam-dim); font-weight: 700; }
.tee-meta .par { font-family: var(--display); font-size: 30px; color: var(--amber); line-height: 1; }
.tee-body { padding: 18px 18px 16px; }
.tee-body h2 { font-size: 32px; }
.tee-body .area { color: #4c5d53; font-weight: 700; margin-top: 4px; }
.tee-body .vibe { margin: 12px 0 0; }
.drink { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #EBDDBC; font-weight: 800; }
.drink svg { flex: none; }
.rule { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #FBE1DB; color: #6b1b10; border-left: 6px solid var(--flag); }
.rule b { display: block; font-size: 13px; }
.tee-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 18px; }
.tee-actions .btn { background: #16261d; color: var(--foam); }
.tee-actions .btn.primary { background: var(--amber); color: var(--amber-ink); }
.backup { padding: 0 18px 16px; font-size: 14px; color: #4c5d53; }

.clock { display: flex; gap: 10px; margin: 12px 0; }
.clock > div { flex: 1; padding: 10px 12px; border-radius: 14px; background: var(--felt-2); border: 1px solid var(--line); }
.clock b { font-family: var(--display); font-size: 22px; font-weight: 400; display: block; }
.clock .late b { color: var(--flag); }
.clock .ok b { color: var(--birdie); }

/* ---------- scoring ---------- */
.score-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-row .nm { flex: 1; font-weight: 800; }
.score-row .nm small { display: block; font-weight: 500; color: var(--foam-dim); }
.stepper { display: flex; align-items: center; background: var(--felt); border-radius: 14px; border: 1px solid var(--line); }
.stepper button { width: 44px; height: 44px; font-size: 24px; font-weight: 800; }
.stepper output { min-width: 36px; text-align: center; font-family: var(--display); font-size: 24px; }
.stepper output.empty { color: var(--foam-dim); font-family: var(--body); font-size: 18px; }
.rel { font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--felt); }
.rel.under { color: var(--birdie); }
.rel.over { color: var(--flag); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick button { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--felt); font-weight: 700; font-size: 14px; }

.start-hero { padding: 26px 20px; border-radius: 22px; background: var(--fairway); text-align: left; }
.start-hero h1 { font-size: 46px; line-height: .95; }
.start-hero p { color: var(--foam-dim); }
.stats { display: flex; gap: 18px; margin: 16px 0 20px; }
.stats b { font-family: var(--display); font-size: 28px; font-weight: 400; display: block; color: var(--amber); }

/* ---------- map ---------- */
.map-wrap { margin: 0 -16px; height: 58vh; position: relative; }
#map { position: absolute; inset: 0; background: #0b1a14; }
#map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.5); }
.map-btns { position: absolute; right: 12px; bottom: 12px; z-index: 500; display: grid; gap: 8px; }
.map-btns .btn { min-height: 42px; padding: 0 14px; background: var(--felt); }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; background: var(--foam); border: 2px solid var(--felt); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.pin b { transform: rotate(45deg); font-family: var(--display); font-weight: 400; color: var(--felt); font-size: 16px; }
.pin.done { background: #6b7d73; }
.pin.now { background: var(--amber); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-45deg) translate(3px, -3px); } }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #4aa3ff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(74,163,255,.3); }
.leaflet-container { font-family: var(--body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--felt-2); color: var(--foam); }

.holes-list { list-style: none; margin: 14px 0 0; padding: 0; }
.holes-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.holes-list .num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); background: var(--felt-2); border: 1px solid var(--line); flex: none; }
.holes-list li.now .num { background: var(--amber); color: var(--amber-ink); }
.holes-list li.done { opacity: .55; }
.holes-list .info { flex: 1; min-width: 0; }
.holes-list .info b { display: block; }
.holes-list .walk { font-size: 13px; color: var(--foam-dim); padding-left: 50px; margin: -4px 0 0; }

/* ---------- leaderboard & scorecard ---------- */
.board { display: grid; gap: 10px; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--felt-2); border: 1px solid var(--line); }
.board-row.first { background: var(--fairway); border-color: var(--amber); }
.board-row .pos { font-family: var(--display); font-size: 22px; width: 26px; color: var(--foam-dim); }
.board-row.first .pos { color: var(--amber); }
.board-row .nm { flex: 1; font-weight: 800; font-size: 18px; }
.board-row .nm small { display: block; font-size: 13px; font-weight: 500; color: var(--foam-dim); }
.board-row .topar { font-family: var(--display); font-size: 34px; line-height: 1; }
.couples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.couples > div { padding: 14px; border-radius: 18px; background: var(--felt-2); border: 1px solid var(--line); }
.couples > div.lead { border-color: var(--amber); }
.couples b { font-family: var(--display); font-weight: 400; font-size: 30px; display: block; }

.card-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.card { border-collapse: collapse; background: var(--foam); color: #16261d; border-radius: 16px; overflow: hidden; min-width: 100%; font-variant-numeric: tabular-nums; }
.card th, .card td { padding: 8px 0; text-align: center; min-width: 27px; border-right: 1px solid #d9caa6; }
.card th:first-child, .card td:first-child { text-align: left; padding-left: 10px; min-width: 60px; font-weight: 800; }
.card thead th { background: var(--fairway); color: var(--foam); font-weight: 800; font-size: 13px; }
.card tr.par td { background: #EBDDBC; font-size: 13px; font-weight: 700; }
.card td.tot { font-weight: 800; padding: 0 8px; }
.card td.cur { background: #fff6dc; }
.sc { display: inline-grid; place-items: center; width: 24px; height: 24px; font-weight: 800; }
.sc.birdie { border: 2px solid #1d7a43; border-radius: 50%; }
.sc.eagle { border: 2px solid #1d7a43; border-radius: 50%; box-shadow: 0 0 0 2px var(--foam), 0 0 0 4px #1d7a43; }
.sc.bogey { border: 2px solid #b33a2a; }
.sc.double { border: 2px solid #b33a2a; box-shadow: 0 0 0 2px var(--foam), 0 0 0 4px #b33a2a; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--foam-dim); margin-top: 10px; }
.legend .sc { width: 18px; height: 18px; background: var(--foam); vertical-align: middle; margin-right: 4px; }

.adj { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.adj .d { font-family: var(--display); width: 34px; }
.adj .d.p { color: var(--flag); }
.adj .d.m { color: var(--birdie); }
.adj .what { flex: 1; }
.adj button { color: var(--foam-dim); padding: 6px; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.joker { padding: 14px; border-radius: 16px; border: 2px dashed var(--amber); text-align: left; display: grid; gap: 4px; }
.joker b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.joker.used { border-color: var(--line); opacity: .5; text-decoration: line-through; }

/* ---------- games ---------- */
.game-list { display: grid; gap: 10px; }
.game-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--felt-2); border: 1px solid var(--line); text-align: left; width: 100%; }
.game-item.now { border-color: var(--amber); }
.game-item .h { font-family: var(--display); font-size: 13px; color: var(--amber); width: 46px; flex: none; text-align: center; line-height: 1.1; }
.game-item .h b { display: block; font-size: 26px; font-weight: 400; }
.game-item div:last-child { flex: 1; }
.game-item b.t { display: block; font-size: 17px; }
.rules dt { font-weight: 800; margin-top: 12px; }
.rules dd { margin: 2px 0 0; color: var(--foam-dim); }

.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel { position: relative; width: 100%; max-width: 560px; margin: 0 auto; max-height: 92vh; overflow-y: auto; background: var(--felt); border-radius: 24px 24px 0 0; border-top: 2px solid var(--amber); padding: 22px 16px calc(24px + var(--safe-b)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--felt-2); font-size: 18px; }
.sheet h2 { font-size: 28px; margin-right: 44px; }
.sheet .lead { color: var(--foam-dim); margin: 6px 0 16px; }

.react-pad { height: 46vh; border-radius: 22px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: 30px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.react-pad.idle { background: var(--fairway); }
.react-pad.wait { background: var(--flag); }
.react-pad.go { background: #2ECC71; color: #08331b; }
.react-pad small { display: block; font-family: var(--body); font-size: 16px; margin-top: 8px; opacity: .8; }

.results { list-style: none; padding: 0; margin: 14px 0; }
.results li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.results li span { flex: 1; font-weight: 700; }
.results li b { font-family: var(--display); font-weight: 400; }
.results li.win b { color: var(--amber); }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-cell { border-radius: 16px; overflow: hidden; background: var(--felt-2); border: 2px solid var(--line); }
.photo-cell img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.photo-cell .empty { aspect-ratio: 3/4; display: grid; place-items: center; color: var(--foam-dim); font-size: 14px; text-align: center; padding: 10px; }
.photo-cell .cap { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-weight: 800; font-size: 14px; }
.photo-cell.voted { border-color: var(--amber); }
.photo-cell.winner { border-color: var(--birdie); }

.big-q { font-family: var(--display); font-size: 26px; line-height: 1.15; margin: 8px 0 18px; }
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vote-grid button { padding: 16px 12px; border-radius: 16px; background: var(--felt-2); border: 2px solid var(--line); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.vote-grid button[aria-pressed="true"] { border-color: var(--amber); background: var(--fairway); }
.bar { height: 10px; border-radius: 6px; background: var(--amber); margin-top: 4px; transition: width .4s; }

.quiz-q { padding: 14px 0; border-bottom: 1px solid var(--line); }
.quiz-q > b { display: block; margin-bottom: 10px; font-size: 17px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--felt-2); font-weight: 700; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.seg-label { font-size: 13px; color: var(--foam-dim); margin: 10px 0 6px; font-weight: 700; }
.match { font-weight: 800; }
.match.y { color: var(--birdie); }
.match.n { color: var(--flag); }

.wheel-wrap { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 10px auto 18px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--foam); transition: transform 4s cubic-bezier(.17,.67,.12,1); position: relative; }
.wheel span { position: absolute; left: 50%; top: 50%; width: 45%; transform-origin: 0 50%; font-weight: 800; font-size: 11px; color: #1b1b1b; padding-left: 26%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wheel-pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--flag); z-index: 2; }
.wheel-result { text-align: center; font-family: var(--display); font-size: 24px; min-height: 60px; }

.playing-card { width: 140px; height: 196px; margin: 10px auto 20px; border-radius: 16px; background: #fff; color: #1b1b1b; display: grid; place-items: center; font-family: var(--display); font-size: 64px; box-shadow: 0 10px 30px rgba(0,0,0,.35); position: relative; }
.playing-card.red { color: #c62828; }
.playing-card small { position: absolute; top: 10px; left: 12px; font-size: 22px; }
.streak { text-align: center; font-weight: 800; margin-bottom: 14px; }

.mc { display: grid; gap: 8px; }
.mc button { text-align: left; padding: 14px; border-radius: 14px; background: var(--felt-2); border: 2px solid var(--line); font-weight: 700; }
.mc button.right { border-color: var(--birdie); background: rgba(127,216,155,.15); }
.mc button.wrong { border-color: var(--flag); background: rgba(232,67,47,.15); }

.podium { display: grid; gap: 10px; }
.award { padding: 16px; border-radius: 18px; background: var(--felt-2); border: 1px solid var(--line); }
.award.gold { background: var(--amber); color: var(--amber-ink); border: 0; }
.award small { font-weight: 700; opacity: .8; }
.award b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; }
canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1100; }

/* ---------- feed ---------- */
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { flex: 1; min-height: 48px; max-height: 120px; resize: none; border-radius: 14px; background: var(--felt-2); color: var(--foam); border: 1px solid var(--line); padding: 12px; }
.compose .btn { min-height: 48px; padding: 0 14px; }
.feed { list-style: none; padding: 0; margin: 16px 0 0; }
.feed li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed .body { flex: 1; min-width: 0; }
.feed .meta { font-size: 13px; color: var(--foam-dim); }
.feed .txt { overflow-wrap: anywhere; }
.feed li.penalty .txt { color: #ffb3a7; }
.feed li.bonus .txt { color: var(--birdie); }
.feed img { width: 100%; max-height: 62vh; object-fit: cover; border-radius: 14px; margin-top: 8px; display: block; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + var(--safe-b)); z-index: 1200; max-width: 520px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; background: var(--foam); color: #16261d; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.err { background: var(--flag); color: #fff; }

.field-label { font-size: 14px; font-weight: 700; color: var(--foam-dim); margin: 14px 0 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { padding: 8px 12px 8px 8px; border-radius: 999px; border: 2px solid var(--line); background: var(--felt-2); font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.pick button[aria-pressed="true"] { border-color: var(--amber); }
.reason { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--felt-2); color: var(--foam); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- round 2: live bits ---------- */
.offline { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--flag); color: #fff; }
.offline[hidden] { display: none; }
.tabs button { position: relative; }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--flag); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.badge[hidden] { display: none; }

.hole-nav { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; margin: 0 0 14px; }
.hole-nav button { height: 38px; border-radius: 10px; background: var(--felt-2); border: 1px solid var(--line); font-family: var(--display); font-size: 16px; color: var(--foam-dim); position: relative; }
.hole-nav button.done { color: var(--foam); background: var(--fairway); }
.hole-nav button.done::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--birdie); }
.hole-nav button.now { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.hole-nav button[aria-current="true"] { outline: 2px solid var(--foam); outline-offset: 2px; }

.sipper { margin-top: 16px; padding: 18px 16px 16px; border-radius: 22px; background: var(--fairway); border: 1px solid var(--line); }
.sipper-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.sipper-head h3 { font-size: 20px; }
.sip-btn { display: grid; place-items: center; align-content: center; width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #FFD36B, var(--amber) 60%, #D9971A); color: var(--amber-ink); box-shadow: 0 0 0 8px rgba(245,181,48,.15), 0 12px 30px rgba(0,0,0,.35); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sip-btn b { font-family: var(--display); font-weight: 400; font-size: 72px; line-height: 1; }
.sip-btn span { font-weight: 800; font-size: 14px; }
.sip-btn:active { transform: scale(.96); }
.sip-btn.pop b { animation: pop .25s ease-out; }
@keyframes pop { 40% { transform: scale(1.25); } }

.mini-board { display: flex; gap: 8px; margin: -2px 0 10px; }
.mini-board > span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 4px; border-radius: 12px; background: var(--felt-2); border: 1px solid var(--line); }
.mini-board > span.lead { border-color: var(--amber); }
.mini-board b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.mini-board b.under, .board-row .topar.under { color: var(--birdie); }
.mini-board b.over { color: var(--flag); }

.panel.next { display: flex; gap: 12px; align-items: center; }
.num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); background: var(--felt); border: 1px solid var(--line); flex: none; }

.course { list-style: none; margin: 0; padding: 0; }
.course li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.course li > div { display: grid; }
.course li.leg { padding: 0 0 0 50px; font-size: 13px; color: var(--foam-dim); }

.cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.joker { padding: 12px 10px; }
.joker b { font-size: 16px; }
.joker.sab { border-color: var(--flag); }
.react-pad.done { opacity: .6; }

.splash { position: fixed; inset: 0; z-index: 1150; background: rgba(4, 22, 15, .94); display: grid; place-items: center; padding: 24px; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.splash-card { width: 100%; max-width: 380px; text-align: center; }
.splash-flag { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; background: var(--flag); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(232,67,47,.2); animation: drop .5s cubic-bezier(.2,1.6,.4,1); }
.splash-flag b { font-family: var(--display); font-weight: 400; font-size: 92px; color: #fff; line-height: 1; }
@keyframes drop { from { transform: translateY(-60px) scale(.6); opacity: 0; } }
.splash h2 { font-size: 36px; margin: 6px 0; }
.splash p { margin: 4px 0 18px; }

/* ---------- Claude extras ---------- */
.ava.caddie { background: var(--foam); font-size: 15px; }
.caddie-card { margin: 16px 0 10px; padding: 14px 16px; border-radius: 18px; background: var(--foam); color: #16261d; position: relative; }
.caddie-card blockquote { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.caddie-card figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 800; color: #4c5d53; }
.caddie-card figcaption .ava { background: var(--fairway); }
.feed li.caddie .txt { font-style: italic; }
.jury { padding: 0 10px 10px; font-size: 13px; color: var(--foam-dim); }
.jury b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--amber); margin-right: 4px; }
.ai-box { margin: 14px 0; padding: 14px; border-radius: 16px; border: 1px dashed var(--amber); }
.ai-box p { margin: 0 0 10px; }
.key-panel input { font-family: ui-monospace, monospace; }
