:root {
    --green: #173c2f;
    --green-2: #245642;
    --gold: #c6a15b;
    --cream: #f4f0e7;
    --white: #ffffff;
    --ink: #17211d;
    --muted: #6f766f;
    --line: #d8d2c6;
    --shadow: 0 14px 38px rgba(20, 35, 28, 0.12);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; padding-bottom: 88px; font-family: Arial, Helvetica, sans-serif; background: var(--cream); color: var(--ink); }
a { color: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: var(--green); color: white; }
.brand { color: white; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 1.6px; }
.profile { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.container { width: min(720px, 100%); margin: auto; padding: 22px 18px; }
.btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 9px; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--gold); color: #111; }
.btn-outline { border: 1px solid var(--gold); background: white; color: var(--green); }
.eyebrow { margin: 0 0 8px; color: #8c6b32; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: white; }
.bottom-nav a { display: grid; place-items: center; color: var(--muted); text-decoration: none; text-transform: uppercase; font-size: 9px; font-weight: 800; }
.bottom-nav .score-nav { color: var(--green); font-size: 11px; }

/* Existing V0.3 shared pages */
.landing { min-height: 100vh; padding: 28px 18px; display: grid; place-items: center; background: radial-gradient(circle at top, rgba(198,161,91,.22), transparent 40%), linear-gradient(145deg, #173c2f, #0d1d17); }
.login-shell { width: min(430px, 100%); padding: 28px; border: 1px solid rgba(198,161,91,.5); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.landing-logo { width: 100%; max-height: 240px; object-fit: contain; }
.login-form { display: grid; gap: 14px; text-align: left; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
input, select { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.text-link { display: inline-block; margin-top: 18px; font-size: 13px; }
.alert { margin: 12px 0; padding: 12px; border-radius: 8px; background: #f9dddd; color: #78231e; }
.event-banner { margin-top: 18px; padding: 14px; display: grid; gap: 5px; border-top: 1px solid #dfcfab; border-bottom: 1px solid #dfcfab; color: #8c6b32; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.event-banner strong { color: var(--green); font-size: 15px; }
.iphone-tip { margin-top: 16px; padding: 13px; display: grid; gap: 5px; border: 1px solid #e6d9b9; border-radius: 10px; background: #f7f3ea; color: var(--green); font-size: 12px; }
.event-title { margin: 5px 0 18px; text-align: center; }
.event-title h1 { margin: 7px 0; font-size: 26px; }
.event-title p, .event-title span { margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.score-card, .next-card, .quick-grid a, .course-card, .leaderboard { border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.score-card { padding: 16px; text-align: center; }
.score-row { margin: 8px 0 12px; display: flex; align-items: center; justify-content: space-around; }
.score-row div { display: grid; gap: 3px; }
.score-row strong { color: var(--green-2); font-size: 38px; }
.score-row span { font-size: 10px; font-weight: 800; }
.next-card { margin-top: 14px; padding: 16px; background: #e9e3d7; }
.scoring-cta { margin: 14px 0; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a { padding: 18px 12px; color: var(--green); text-align: center; text-decoration: none; font-size: 18px; }
.quick-grid span { display: block; margin-top: 8px; color: var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.course-grid { display: grid; gap: 14px; }
.course-card { padding: 18px; }
.course-hero { height: 110px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(145deg, var(--green), var(--green-2)); font-size: 42px; }
.course-address { margin-bottom: 12px; color: var(--muted); line-height: 1.5; }
.course-detail { margin-top: 8px; font-size: 14px; font-weight: 600; }
.course-notes { margin-top: 14px; padding: 12px; border-radius: 10px; background: #f7f3ea; font-size: 13px; line-height: 1.5; }
.course-buttons { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.course-buttons .btn { flex: 1; min-width: 100px; }
.player-list, .timeline { display: grid; gap: 10px; }
.player-list article, .timeline article { padding: 13px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.avatar, .round-badge { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 12px; font-weight: 800; }
.leader-row { padding: 13px; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; border-bottom: 1px solid var(--line); }

/* Live Scoring V1 */
.live-score-header { margin-bottom: 18px; text-align: center; }
.live-score-header h1 { margin: 4px 0 7px; font-size: clamp(24px, 7vw, 34px); }
.live-score-header > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.save-confirmation { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #a8c9b7; border-radius: 10px; background: #eaf6ef; color: var(--green); font-size: 13px; font-weight: 800; text-align: center; }
.scoring-controls { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 15px; }
.scoring-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.scoring-controls select { padding: 12px; font-size: 14px; font-weight: 700; }
.hole-navigator { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 14px; margin-bottom: 13px; }
.hole-arrow { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--green); box-shadow: var(--shadow); font-size: 32px; text-decoration: none; }
.hole-arrow.disabled { pointer-events: none; opacity: .3; }
.current-hole { min-height: 94px; display: grid; place-items: center; align-content: center; border: 1px solid var(--gold); border-radius: 15px; background: var(--green); color: var(--white); box-shadow: var(--shadow); }
.current-hole span { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.current-hole strong { font-size: 40px; line-height: 1; }
.current-hole small { min-height: 14px; margin-top: 5px; font-size: 10px; }
.hole-strip { display: grid; grid-template-columns: repeat(9, minmax(28px, 1fr)); gap: 5px; margin-bottom: 18px; }
.hole-strip a { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--muted); font-size: 10px; font-weight: 800; text-decoration: none; }
.hole-strip a.has-score { border-color: #99bbaa; background: #eaf6ef; color: var(--green); }
.hole-strip a.active { border-color: var(--gold); background: var(--gold); color: #111; }
.live-score-form { display: grid; gap: 8px; }
.score-column-labels, .live-player-row { display: grid; grid-template-columns: minmax(0, 1fr) 66px 52px; gap: 9px; }
.score-column-labels { padding: 0 12px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.score-column-labels span:first-child { text-align: left; }
.live-player-row { align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 7px 20px rgba(20,35,28,.07); }
.live-player-identity { min-width: 0; display: grid; gap: 3px; }
.live-player-identity strong, .live-player-identity span, .live-player-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-player-identity strong { font-size: 13px; }
.live-player-identity span, .live-player-identity small { color: var(--muted); font-size: 9px; }
.gross-score-input { width: 66px; min-height: 50px; padding: 6px; border: 2px solid var(--line); border-radius: 9px; background: #fffdf8; color: var(--ink); font-size: 24px; font-weight: 800; text-align: center; }
.gross-score-input:focus { border-color: var(--gold); outline: 3px solid rgba(198,161,91,.2); }
.net-score { min-height: 50px; display: grid; place-items: center; border-radius: 9px; background: #edf3ef; color: var(--green); font-size: 21px; font-weight: 800; }
.net-note { margin: 7px 0 4px; padding: 11px; border-radius: 9px; background: #f7f3ea; color: var(--muted); font-size: 10px; line-height: 1.45; }
.score-save-bar { position: sticky; bottom: 68px; z-index: 12; display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px -8px 0; padding: 10px 8px; border-top: 1px solid rgba(216,210,198,.9); background: rgba(244,240,231,.96); backdrop-filter: blur(10px); }
.empty-state { padding: 28px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); text-align: center; }
@media (min-width: 560px) { .scoring-controls, .score-save-bar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .quick-grid, .course-grid { grid-template-columns: repeat(2, 1fr); } }
.player-photo{ width:60px; height:60px; border-radius:50%; object-fit:cover; border:2px solid #c6a15b; }
