/* ---------- One-handed scorer ---------- */
.sheet.fx-on { z-index: 35; }
.sheet.fx-on .sheet-card { max-height: none; height: 100vh; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.sheet.fx-on #sheet-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.sheet.fx-on .sheet-head .home-btn { display: none; }
.sheet.fx-on .sheet-head { padding: 8px 12px 6px; }
.sheet.fx-on .sheet-head h2 { font-size: 20px; }
.sheet.fx-on .readonly-note { display: none; }
#sheet-body.fx-hide-list > :not(#fx) { display: none; }
.fx { display: flex; flex-direction: column; gap: 10px; flex: 1 0 auto; min-height: 520px; }
.fx-sum { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.fx-sum b.under { color: var(--birdie); } .fx-sum b.over { color: var(--bogey); }
.fx-sun { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; font: 700 14px/1 Outfit, system-ui, sans-serif; color: var(--ink); min-height: 40px; }
.fx-dots { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.fx-dot { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: 700 14px/1 Outfit, system-ui, sans-serif; color: var(--muted); position: relative; padding: 0; }
.fx-dot.done { background: #e6efe2; color: var(--pine); border-color: #c9dcc2; }
.fx-dot.chal::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.fx-dot.wait { box-shadow: inset 0 -3px 0 #d9772b; }
.fx-dot.cur { background: var(--accent, var(--pine)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--pine)); transform: scale(1.08); box-shadow: 0 4px 12px rgba(18,53,38,.25); }
.fx-card { flex: 1; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); touch-action: pan-y; }
.fx-card.slide { animation: fxslide .22s ease-out; }
@keyframes fxslide { from { opacity: .3; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-nav { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); font-size: 34px; line-height: 1; color: var(--pine); }
.fx-nav:disabled { opacity: .3; }
.fx-title { text-align: center; }
.fx-title small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--gold-2); }
.fx-title strong { display: block; font: 680 64px/1 Fraunces, Georgia, serif; color: var(--pine); }
.fx-title span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; font-weight: 600; }
.fx-card .hole-sp, .fx-card .chal-badges { margin-top: 10px; }
.fx-score { margin-top: auto; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 10px; padding-top: 18px; }
.fx-btn { height: 104px; border-radius: 24px; border: 0; font: 600 56px/1 Outfit, system-ui, sans-serif; color: #fff; background: var(--pine); box-shadow: 0 6px 0 rgba(0,0,0,.18); touch-action: manipulation; }
.fx-btn[data-dir="-1"] { background: #5e6758; }
.fx-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.fx-num { text-align: center; }
.fx-num strong { display: block; font: 680 72px/1 Fraunces, Georgia, serif; }
.fx-num small { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.fx-num small.under { color: var(--birdie); } .fx-num small.over { color: var(--bogey); } .fx-num small.eagle { color: var(--eagle); }
.btn.fx-next { margin-top: 16px; min-height: 60px; font-size: 18px; border-radius: 16px; background: var(--accent, var(--fairway)); color: var(--accent-ink, #fff); }
.btn.fx-next:disabled { opacity: .5; }
.fx-hint { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.fx-full { border: 0; background: transparent; color: var(--pine); font-weight: 700; text-decoration: underline; padding: 10px; min-height: 44px; }

/* ---------- Offline banner ---------- */
#offline-banner { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: none; background: #2b2b2b; color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); border-left: 6px solid #d9772b; }
#offline-banner.show { display: block; }
#offline-banner.ok { border-left-color: #3fae6a; }
#offline-banner b { display: block; font-size: 16px; }
#offline-banner span { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.sheet.fx-on ~ #offline-banner.show, body:has(.sheet.fx-on:not(.hidden)) #offline-banner.show { top: calc(8px + env(safe-area-inset-top)); bottom: auto; }

/* ---------- Leaderboard movement ---------- */
.rank { position: relative; }
.mv { display: block; font: 700 11px/1 Outfit, system-ui, sans-serif; margin-top: 3px; letter-spacing: 0; }
.mv.up { color: var(--birdie); } .mv.down { color: var(--bogey); }
.team-row.moved { animation: rowflash 2.2s ease-out; }
.team-row.moved-up { --flash: rgba(47,125,78,.28); } .team-row.moved-down { --flash: rgba(163,59,36,.22); }
@keyframes rowflash { 0% { box-shadow: 0 0 0 3px var(--flash), var(--shadow); background: #fff7df; } 100% { box-shadow: var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .team-row.moved, .fx-card.slide, .tv-row.moved { animation: none; } }

/* ---------- Organizer checklist ---------- */
.ck { padding: 0; overflow: hidden; }
.ck-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: var(--pine); color: #f7f3e8; padding: 14px 16px; text-align: left; font: inherit; }
.ck-head b { display: block; font-size: 18px; font-family: Fraunces, Georgia, serif; }
.ck-head small { color: #e8c983; font-size: 13px; }
.ck-ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ck-ring i { font-style: normal; font-weight: 700; font-size: 13px; width: 40px; height: 40px; border-radius: 50%; background: var(--pine); display: grid; place-items: center; }
.ck-list { list-style: none; margin: 0; padding: 4px 14px 10px; }
.ck-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ck-list li:last-child { border-bottom: 0; }
.ck-list li p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ck-tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: #fff; }
.ck-list li.done .ck-tick { background: var(--fairway); border-color: var(--fairway); }
.ck-list li.part .ck-tick { border-color: var(--gold); background: conic-gradient(var(--gold) 50%, transparent 0); }
.ck-list li.done b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.ck .row-actions .btn { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.ck > .members { padding: 0 16px 12px; }

/* ---------- Branding ---------- */
.brand-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.brand-prev { width: 84px; height: 84px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line); flex: none; }
.brand-prev.empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.brand-row label.btn { cursor: pointer; display: inline-flex; min-height: 40px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--ink); }
.sw.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); position: relative; overflow: hidden; }
.sw.custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.lbl { font-weight: 700; margin: 12px 0 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.branded .top { border-bottom-color: var(--accent); }
html.branded .top .eyebrow, html.branded .top .eyebrow a { color: var(--accent-light, var(--gold)); }
html.branded .tabs button.on { background: var(--accent); color: var(--accent-ink); }
html.branded .rank { color: var(--accent); }
.org-logo { display: block; max-height: 64px; max-width: 160px; border-radius: 10px; background: #fff; padding: 4px; margin: 0 0 10px; }
.tv-body .tv-org-logo { position: fixed; top: 18px; right: 22px; max-height: 90px; max-width: 220px; background: #fff; border-radius: 12px; padding: 6px; }
html.branded .tv-kicker, html.branded .tv-row b { color: var(--accent-light, var(--gold)); }
html.branded .tv-stage h1 { border-left: 8px solid var(--accent); padding-left: 16px; }
.t-org-logo { display: block; max-height: 80px; max-width: 200px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 10px; }

/* ---------- TV movement ---------- */
.tv-row .tv-mv { font-size: 22px; margin-left: 10px; font-weight: 700; }
.tv-row .tv-mv.up { color: #5fd28f; } .tv-row .tv-mv.down { color: #ff8a6b; }
.tv-row.moved { animation: tvflash 2.4s ease-out; }
@keyframes tvflash { 0% { background: rgba(232,201,131,.35); } 100% { background: transparent; } }

/* ---------- Sun mode (high contrast for bright sunlight) ---------- */
html.sun { --paper: #ffffff; --card: #ffffff; --ink: #000000; --muted: #1a1a1a; --line: #000000; --birdie: #00662b; --bogey: #b30000; --eagle: #6b4a00; --gold-2: #000000; --shadow: none; --pine: #000000; --fairway: #00662b; }
html.sun body { background: #fff !important; color: #000; }
html.sun .top { background: #000; border-bottom: 6px solid #ffd400; }
html.sun .top h1, html.sun .course-line, html.sun #live-text { color: #fff; }
html.sun .eyebrow, html.sun .eyebrow a { color: #ffd400 !important; filter: none !important; }
html.sun .home-bar { background: #000; }
html.sun .tabs { background: #fff; }
html.sun .tabs button { color: #000; border: 2px solid #000; }
html.sun .tabs button.on { background: #000 !important; color: #fff !important; }
html.sun .team-row, html.sun .panel, html.sun .fx-card, html.sun .fx-dot, html.sun .fx-nav, html.sun .stepper button, html.sun .side, html.sun .readonly-note { border: 2px solid #000; background: #fff; }
html.sun .members, html.sun .meta, html.sun .thru, html.sun .gross, html.sun .fx-title span, html.sun .fx-hint { color: #000; font-weight: 600; }
html.sun .team-row .name, html.sun .rel { font-weight: 800; }
html.sun .fx-btn { background: #000 !important; color: #fff; box-shadow: 0 6px 0 #ffd400; }
html.sun .fx-dot.done { background: #d8f0dd; color: #000; }
html.sun .fx-dot.cur { background: #ffd400 !important; color: #000 !important; border: 3px solid #000; }
html.sun .btn.fx-next, html.sun .btn { background: #000; color: #fff; border: 2px solid #000; }
html.sun .btn.ghost { background: #fff; color: #000; }
html.sun .fx-title small, html.sun .fx-title strong, html.sun .rank { color: #000 !important; }
html.sun .sheet-card, html.sun .sheet-head { background: #fff; }
html.sun .fx-sun { background: #ffd400; color: #000; border: 2px solid #000; }
html.sun a { color: #0033cc; }
html.sun .tv-body { background: #000; color: #fff; }
html.sun .tv-row { border-bottom: 2px solid #fff; }
html.sun .tv-row b, html.sun .tv-kicker { color: #ffd400 !important; filter: none !important; }
.sun-toggle { display: flex !important; align-items: center; justify-content: space-between; width: 100%; padding: 15px 20px; border: 0; border-bottom: 1px solid #eee5d3; background: transparent; text-align: left; font: 600 18px/1.2 Outfit, system-ui, sans-serif; color: #123526; cursor: pointer; }
.sun-toggle small { display: block; font-weight: 400; font-size: 14px; color: #6b6457; margin-top: 3px; }
.sun-toggle .sw-pill { width: 50px; height: 28px; border-radius: 999px; background: #d8d2c4; position: relative; flex: none; }
.sun-toggle .sw-pill::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.sun-toggle[aria-checked="true"] .sw-pill { background: #123526; }
.sun-toggle[aria-checked="true"] .sw-pill::after { left: 25px; }

/* ---------- Simplified homepage ---------- */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero-sub { color: #f7f3e8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pricing .price-card { background: var(--card); border: 2px solid var(--gold); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); max-width: 560px; }
.pricing .price { margin: 0 0 10px; font-size: 18px; color: var(--muted); }
.pricing .price strong { font: 680 48px/1 Fraunces, Georgia, serif; color: var(--pine); margin-right: 6px; }
.price-list { margin: 0 0 16px; padding: 0; list-style: none; }
.price-list li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid var(--line); }
.price-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--fairway); font-weight: 800; }
.signup-cta { display: block; text-align: center; font-size: 18px; padding: 16px; }
.price-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.more-info > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 700; color: var(--pine); }
.more-info > summary::-webkit-details-marker { display: none; }
.more-info > summary::after { content: "+"; font-size: 24px; line-height: 1; }
.more-info[open] > summary::after { content: "−"; }
.more-info[open] > summary { margin-bottom: 8px; }
.signup-cta.primary { background: var(--pine); color: #fffdf8; border-radius: 14px; font-weight: 700; text-decoration: none; }
.hero-actions a.hero-sub { background: transparent; padding: 0; border: 0; min-height: 0; }
.tv-row .tv-mv { font-style: normal; }
@media (max-width: 700px) { .tv-body .tv-org-logo { top: 64px; right: 12px; max-height: 60px; max-width: 150px; } }

/* ---------- 4-card uses ---------- */
.uses .use-grid.use4 { grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .uses .use-grid.use4 { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.use4 .use-card { flex-direction: row; gap: 14px; padding: 18px; align-items: flex-start; }
.use4 .use-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--pine); color: #e8c983; display: grid; place-items: center; }
.use4 .use-body { padding: 0; }
.use4 .use-body h3 { font-size: 21px; }
.use4 .use-ex { font-size: 14px; color: var(--ink); margin: 0 0 10px; }
.use4 .use-ex span { font-weight: 700; color: var(--gold-2); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-right: 4px; }
