* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #1c1c1c; color: #fff; min-height: 100vh; }
.screen { display: none; padding: 20px; max-width: 480px; margin: 0 auto; }
.screen.active { display: block; }
.title { color: #00B2A9; font-size: 2rem; font-weight: 900; text-align: center; margin: 20px 0 8px; text-transform: uppercase; }
.subtitle { text-align: center; color: #ccc; margin-bottom: 20px; }
.section-title { color: #EF3E96; font-size: 1.4rem; font-weight: 900; margin: 24px 0 12px; }
.btn-primary { display: block; width: 80%; max-width: 300px; margin: 20px auto; padding: 16px; background: #F9A01B; color: #000; font-size: 1.2rem; font-weight: 900; border: none; border-radius: 30px; cursor: pointer; text-transform: uppercase; }
.btn-primary:active { background: #FFC72C; }
.btn-nav { background: none; border: none; color: #00B2A9; font-size: 1.1rem; font-weight: 900; cursor: pointer; padding: 8px 0; }
.btn-link { background: none; border: none; color: #F9A01B; font-size: 1rem; font-weight: 700; cursor: pointer; display: block; text-align: center; margin: 16px 0; }
.btn-small { background: #F9A01B; color: #000; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1.4rem; font-weight: 900; cursor: pointer; }
.nav-row { display: flex; justify-content: space-between; margin: 12px 0; }
.hole-info { text-align: center; color: #ccc; font-size: 1.1rem; margin-bottom: 12px; }
.score-area { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.score-info { flex: 1; }
.player-name { font-size: 1.6rem; }
.player-hdcp { color: #00B2A9; font-size: 0.9rem; font-weight: 700; }
.player-total { color: #FFC72C; font-size: 1.1rem; margin-top: 4px; }
.player-strokes { color: #4caf50; font-size: 0.9rem; font-weight: 700; margin-top: 2px; }
.score-input { display: flex; align-items: center; gap: 12px; }
.score-circle { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ccc); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: #000; }
.score-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #EF3E96; background: none; color: #EF3E96; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.score-btn:active { background: #EF3E96; color: #000; }
.divider { border: none; border-top: 2px solid #00B2A9; margin: 16px 0; opacity: 0.4; }
/* Golfer list */
.golfer-item { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; gap: 12px; }
.golfer-radio { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #00B2A9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.golfer-radio.selected { background: radial-gradient(circle at 35% 35%, #fff, #ccc); border-color: #F9A01B; }
.golfer-name { font-size: 1.2rem; }
/* Leaderboard table */
.lb-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.lb-table th { text-align: left; color: #ccc; font-size: 0.85rem; padding: 6px 4px; }
.lb-table td { padding: 10px 4px; font-size: 1rem; }
.lb-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.lb-name { color: #FFC72C; font-weight: 700; }
.lb-hdcp { color: #999; font-size: 0.8rem; margin-left: 4px; }
/* Admin */
.form-group { margin: 16px 0; }
.form-group label { display: block; color: #00B2A9; font-weight: 700; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 12px; border-radius: 8px; border: none; font-size: 1rem; background: #1a1a1a; color: #fff; }
.add-row { display: flex; gap: 8px; align-items: center; }
.add-row input:first-child { flex: 2; }
.add-row input:nth-child(2) { flex: 1; }
.admin-golfer-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-link { text-align: center; margin-top: 30px; }
.share-link { margin-top: 16px; text-align: center; word-break: break-all; color: #4caf50; font-size: 0.9rem; }
.remove-btn { background: none; border: none; color: #e74c3c; font-size: 1.2rem; cursor: pointer; }
/* Share screen */
.share-url-box { background: #1a1a1a; padding: 16px; border-radius: 8px; word-break: break-all; font-size: 1rem; margin: 16px 0; text-align: center; color: #4caf50; font-weight: 700; }
/* Master Scorecard */
.scorecard-wrap { margin-top: 12px; }
.scorecard-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scorecard-table { border-collapse: collapse; font-size: 0.75rem; white-space: nowrap; width: max-content; }
.scorecard-table th, .scorecard-table td { padding: 6px 5px; text-align: center; border: 1px solid rgba(255,255,255,0.15); min-width: 28px; }
.scorecard-table thead th { background: #1a1a1a; color: #00B2A9; font-weight: 700; position: sticky; top: 0; }
.scorecard-table .sc-name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #1c1c1c; z-index: 1; padding-right: 8px; min-width: 70px; font-weight: 700; }
.scorecard-table thead .sc-name { z-index: 2; background: #1a1a1a; }
.scorecard-table .sc-total { font-weight: 700; background: rgba(0,178,169,0.1); }
.par-row td { color: #999; font-weight: 700; }
.sc-eagle { color: #ffd700; font-weight: 900; }
.sc-birdie { color: #4caf50; font-weight: 700; }
.sc-bogey { color: #ff9800; }
.sc-dbl { color: #e74c3c; font-weight: 700; }
.sc-skin { background: #F9A01B !important; color: #000 !important; font-weight: 900; border-radius: 4px; }
/* History */
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.stat-card { background: #1a1a1a; border-radius: 12px; padding: 16px; text-align: center; }
.stat-label { color: #EF3E96; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.stat-value { font-size: 1.8rem; font-weight: 900; margin-top: 6px; }
/* Beta gating */
.beta-only { display: none !important; }
body.beta-active .beta-only { display: block !important; }
