:root {
  --ink: #12334c;
  --blue: #86c8ec;
  --blue-dark: #164f79;
  --line: #9eb4c5;
  --muted: #465a68;
  --paper: #f4f7fa;
  --white: #fff;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: #b9d9ed;
  font-synthesis: none;
}
.auth-form { display: grid; gap: 8px; margin: 12px 0 18px; max-width: 420px; }
.auth-form input,.auth-form select { width: 100%; min-width: 0; min-height: 44px; }
.auth-form .check-label { display: flex; align-items: center; gap: 9px; }
.auth-form input[type=checkbox] { width: 20px; min-height: 20px; flex: 0 0 20px; }
.auth-form small { font-size: 12px; }
.auth-box { border: 1px solid var(--line); padding: 12px; margin-top: 12px; max-width: 460px; background: #f6fbff; }
.auth-box summary { cursor: pointer; font-weight: bold; }
#local-access h2 { margin-top: 24px; font-size: 20px; }
#coach-reset-code { overflow-wrap: anywhere; white-space: normal; }
* { box-sizing: border-box; }
body { margin: 0; background: repeating-linear-gradient(135deg, #b9d9ed 0 3px, #c2dfef 3px 6px); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: #064f91; text-underline-offset: 2px; }
button:disabled, [aria-disabled=true] { cursor: not-allowed; opacity: .65; }
:focus-visible { outline: 3px solid #ab4b0d; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: 'Trebuchet MS', Tahoma, Arial, sans-serif; }
.top-stripes { height: 8px; max-width: 1060px; margin: 18px auto 0; background: linear-gradient(#164f79 0 30%, #86c8ec 30% 65%, #e8b551 65% 80%, #ae4f30 80%); border: 1px solid #164f79; }
.masthead { max-width: 1060px; min-height: 100px; margin: auto; padding: 23px 28px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: linear-gradient(#e5f5ff, #86c8ec 65%, #64a5d0); border: 1px solid #527c9b; border-top: 1px solid #fff; box-shadow: inset 0 -2px 0 #d5efff; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: 'Trebuchet MS', Tahoma, sans-serif; font-size: 34px; font-weight: 900; font-style: italic; letter-spacing: 1px; color: #103955; text-shadow: 1px 2px #e1f4ff; line-height: .95; }
.brand small { display: block; font-family: Tahoma, Arial, sans-serif; font-size: 12px; font-style: normal; letter-spacing: 5px; line-height: 1.5; margin-top: 7px; }
.brand-ball { position: relative; font-size: 58px; line-height: .7; color: #153f60; text-shadow: none; }
.brand-ball:after { content: '\2234'; position: absolute; top: 4px; left: 14px; color: #cdeaff; font-size: 25px; }
.school-monogram { display: block; width: 102px; height: auto; padding: 5px; border: 1px solid #6388a2; background: #fff; flex-shrink: 0; }
.school-stars { display: block; width: 94px; height: auto; flex-shrink: 0; }
.school-mountain { display: block; width: 100px; height: auto; background: #fff; padding: 4px; border: 1px solid #91b8d2; }
.club-logo { display: block; width: 242px; height: auto; max-width: 100%; }
.welcome-art { display: grid; place-items: center; padding: 24px; background: linear-gradient(#eef8ff, #bfdff3); border: 3px ridge #afcddd; }
.welcome-art img { display: block; width: 100%; height: auto; max-width: 300px; }
.entry-heading { display: flex; align-items: center; gap: 12px; }
.entry-heading .art-heading { flex: 1; min-width: 0; max-width: 280px; }
.strike-art { display: block; width: 76px; height: auto; flex-shrink: 0; }
.board-intro { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.trophy-art { display: block; width: 64px; height: auto; flex-shrink: 0; }
.board-intro p + p { margin-top: 6px; }
.art-heading { width: 280px; height: 56px; max-width: 100%; margin: 0; }
.heading-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.section-heading > div { min-width: 0; flex: 1; }
.section-heading .art-heading { width: 240px; height: 48px; }
.header-right { display: flex; align-items: center; }
main { max-width: 1060px; min-height: 72vh; padding: 22px 26px 30px; margin: auto; background: #fff; border-left: 1px solid #527c9b; border-right: 1px solid #527c9b; }
.text-button { color: #064f91; background: transparent; border: 0; padding: 8px 0; min-height: 36px; font-size: 12px; text-decoration: underline; }
.button { border: 2px solid; border-color: #fff #51728b #51728b #fff; outline: 1px solid #718da2; background: linear-gradient(#f6fbff, #c6def0); color: #133650; padding: 13px 17px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: bold; font-size: 14px; text-decoration: none; border-radius: 0; box-shadow: none; }
.button:hover { background: linear-gradient(#fff, #abd4ee); }
.button:active { border-color: #51728b #fff #fff #51728b; }
.fine-print, .muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.eyebrow { font-family: Tahoma, Arial, sans-serif; font-size: 11px; font-weight: bold; letter-spacing: .7px; margin-bottom: 8px; }
.preview-banner, .notice { border: 1px solid #7496b0; background: #e8f4fc; padding: 11px 13px; font-size: 12px; line-height: 1.6; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.preview-banner span, .preview-banner a { font-size: 11px; }
.notice { margin-bottom: 16px; margin-top: 16px; display: block; }
.notice.error { background: #fff2e8; border-color: #a65625; }
.welcome { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 30px 12px; align-items: center; }
.welcome h1 { font-size: 50px; line-height: 1.05; color: #164f79; letter-spacing: -1px; text-shadow: 1px 1px #badcf2; }
.welcome h1 em { font-style: italic; color: #215f8e; }
.intro { font-size: 14px; line-height: 1.8; margin: 22px 0; max-width: 360px; }
.welcome .fine-print { max-width: 380px; margin-top: 17px; }
.google-button { max-width: 360px; }
.google-letter { font-family: Arial, sans-serif; font-size: 20px; }
.preview-link { display: inline-block; margin-top: 20px; font-size: 12px; }
.poster { position: relative; height: 400px; overflow: hidden; background: linear-gradient(135deg, #d3efff, #77bce7); border: 4px ridge #a8cee6; }
.poster-caption { position: absolute; top: 25px; width: 100%; text-align: center; font-family: 'Trebuchet MS', Tahoma, sans-serif; font-weight: 900; font-style: italic; font-size: 42px; color: #164f79; line-height: 1; text-shadow: 2px 2px #fff; }
.poster-rings { position: absolute; top: 230px; left: -80px; width: 290px; height: 290px; border: 20px solid #b45335; box-shadow: 0 0 0 18px #e5b559, 0 0 0 36px #f3f6f7; border-radius: 50%; }
.pin { position: absolute; top: 160px; left: 190px; width: 47px; height: 170px; background: #fff; border: 2px solid #153f60; border-radius: 45% 45% 40% 40%; transform: rotate(18deg); }
.pin:before { content: ''; position: absolute; top: 43px; left: 5px; width: 33px; height: 19px; background: repeating-linear-gradient(#b45335 0 6px,#fff 6px 10px); }
.pin-two { top: 185px; left: 250px; transform: rotate(38deg); }
.bowling-ball { position: absolute; top: 255px; left: 105px; width: 130px; height: 130px; background: radial-gradient(circle at 30% 25%, #326b91, #12334c 70%); border-radius: 50%; box-shadow: 3px 4px 3px #305e7e66; transform: rotate(-20deg); }
.bowling-ball i { position: absolute; top: 25px; left: 42px; width: 14px; height: 17px; background: #c9e8f8; border-radius: 50%; }
.bowling-ball i:nth-child(2) { left: 67px; top: 28px; }
.bowling-ball i:nth-child(3) { left: 54px; top: 49px; }
.dashboard-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 2px 22px; }
.dashboard-title h1 { font-size: 31px; line-height: 1.15; color: #164f79; }
.dashboard-title p:last-child { font-size: 12px; margin-top: 8px; }
.club-select-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.club-select-wrap label { font-size: 11px; font-weight: bold; }
select { min-height: 38px; max-width: 240px; padding: 8px; border: 1px solid #748fa4; border-radius: 0; background: #fff; color: var(--ink); font-size: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 3px solid #245a82; padding-left: 7px; margin-bottom: 20px; }
.tab { min-height: 42px; padding: 10px 19px; border: 1px solid #7e9db5; border-bottom: 0; border-radius: 0; background: linear-gradient(#f8fbfd,#d3e3ee); font-size: 13px; color: #254d6b; font-weight: bold; display: flex; gap: 22px; align-items: center; }
.tab.active { background: linear-gradient(#4082b1,#215b88); border-color: #245a82; color: #fff; }
.tab span { font-size: 14px; }
.score-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.panel { background: #f7f9fb; border: 1px solid #8ca6ba; }
.entry-card { padding: 19px; border-top: 5px solid #3476a5; }
.card-heading .eyebrow { font-size: 10px; margin-bottom: 5px; color: #526e83; }
.entry-card h2 { font-size: 23px; color: #174c73; }
.entry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 8px; }
.pins-input { display: flex; align-items: baseline; border: 2px inset #d0dbe4; background: #fff; padding: 4px 9px; max-width: 220px; }
.pins-input input { font-family: 'Courier New', monospace; font-size: 58px; font-weight: bold; width: 100%; min-width: 0; height: 72px; padding: 0; border: 0; color: #12334c; background: none; appearance: textfield; -moz-appearance: textfield; }
.pins-input input::-webkit-inner-spin-button,.pins-input input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pins-input input::placeholder { color: #748fa4; }
.pins-input span { font-size: 10px; font-weight: bold; }
.pins-field small { display: block; color: #465a68; font-size: 11px; margin-top: 8px; line-height: 1.5; }
input[type=date], #join-code { padding: 11px 9px; min-height: 44px; border: 2px inset #d0dbe4; border-radius: 0; background: #fff; color: #12334c; width: 100%; min-width: 0; font-size: 13px; }
.date-field .fine-print { margin-top: 10px; }
.save-button { width: 100%; }
#save-status { margin-top: 12px; color: #285273; font-size: 12px; line-height: 1.6; }
.stats-card { border: 1px solid #6286a2; background: #dceefa; padding: 19px; border-top: 5px solid #3476a5; }
.stats-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stats-top > span { color: #255d84; font-size: 20px; line-height: 1; }
.big-stat > span { display: block; font-family: 'Courier New', monospace; font-weight: bold; font-size: 61px; line-height: 1.2; letter-spacing: -3px; }
.big-stat p { font-size: 11px; font-weight: bold; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; padding-bottom: 19px; border-bottom: 1px solid #8facbf; }
.stat-pair > div + div { padding-left: 20px; border-left: 1px solid #8facbf; }
.stat-pair strong { display: block; font-family: 'Courier New', monospace; font-size: 28px; }
.stat-pair span { display: block; margin-top: 4px; font-size: 10px; font-weight: bold; }
.handicap { margin-top: 14px; }
.handicap > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.handicap span { font-size: 11px; font-weight: bold; }
.handicap strong { font-size: 25px; }
.handicap p { font-size: 12px; line-height: 1.6; margin-top: 5px; }
.history-section { margin-top: 27px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(#e9f1f7,#c9dce9); border: 1px solid #8ca6ba; padding: 10px 13px; margin-bottom: 0; }
.section-heading h2 { font-size: 19px; color: #174c73; }
.pill { font-family: Tahoma, Arial, sans-serif; font-size: 10px; font-weight: bold; white-space: nowrap; }
.history-list, .leaderboard-list { border: 1px solid #8ca6ba; border-top: 0; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #d2dee7; padding: 13px; background: #fff; }
.history-row:nth-child(even),.leaderboard-row:nth-child(even) { background: #f0f6fa; }
.history-row:last-child,.leaderboard-row:last-child { border-bottom: 0; }
.history-date { font-size: 12px; font-weight: bold; }
.history-meta { font-size: 11px; color: #465a68; margin-top: 5px; }
.history-score { font-family: 'Courier New', monospace; font-size: 28px; font-weight: bold; }
.history-score small { font-family: Tahoma, sans-serif; font-size: 10px; margin-left: 8px; color: #465a68; }
.empty { padding: 20px 14px; font-size: 13px; line-height: 1.7; color: #465a68; }
#board-view > .muted { margin: 15px 0 5px; }
#board-view > .fine-print { margin-bottom: 18px; }
.leaderboard-list { border-top: 1px solid #8ca6ba; }
.leaderboard-row { display: grid; grid-template-columns: 42px 1fr 85px; align-items: center; gap: 12px; padding: 16px 13px; border-bottom: 1px solid #d2dee7; }
.rank { font: bold 23px 'Courier New', monospace; }
.board-name { font-size: 13px; font-weight: bold; }
.board-meta { font-size: 11px; color: #465a68; margin-top: 5px; line-height: 1.6; }
.board-average { font: bold 25px 'Courier New', monospace; text-align: right; }
.board-average small { display: block; font: 10px Tahoma, sans-serif; margin-top: 5px; }
.join-panel { max-width: 500px; margin: 28px auto; padding: 24px; border-top: 5px solid #3476a5; }
.join-panel h1 { font-size: 29px; color: #164f79; margin-bottom: 14px; }
.join-panel > p { font-size: 13px; line-height: 1.7; }
.join-panel form { margin-top: 22px; }
.join-panel .button { width: 100%; margin-top: 20px; }
footer { max-width: 1060px; margin: auto auto 25px; border: 1px solid #285675; border-top: 2px solid #d5e9f7; background: #245a82; color: #fff; padding: 13px 26px; font: bold 10px Tahoma, sans-serif; letter-spacing: 1px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
footer b { padding: 0 5px; color: #bfe8ff; }
.coach-note { margin: 14px 0; }
.coach-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.coach-panel { padding: 18px; border-top: 4px solid #3476a5; }
.coach-panel h3 { font: bold 18px 'Trebuchet MS',Tahoma,sans-serif; color: #174c73; margin: 0 0 12px; }
.coach-panel .fine-print { margin-bottom: 16px; }
.coach-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 17px 0; }
.coach-panel input,.coach-panel select { width: 100%; max-width: none; min-width: 0; min-height: 42px; padding: 9px; border: 2px inset #d0dbe4; background: #fff; color: var(--ink); font-size: 13px; }
.coach-panel select { text-overflow: ellipsis; }
.coach-panel .button { width: 100%; margin-top: 17px; }
.coach-panel,.coach-fields > div { min-width: 0; }
.coach-panel form > label { margin-top: 14px; }
.coach-subheading { margin-top: 28px !important; }
.join-code-output { display: block; margin-top: 18px; border: 1px solid #7496b0; background: #fff; padding: 13px; font: bold 19px 'Courier New',monospace; overflow-wrap: anywhere; user-select: all; }
.coach-corrections { margin-top: 20px; }
.audit-detail { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.history-row.voided { opacity: .75; }
.history-row.voided .history-score { text-decoration: line-through; }
@media(max-width:700px) { .coach-grid,.welcome { grid-template-columns: minmax(0,1fr); } #games-view .score-layout { grid-template-columns: minmax(0,1fr); } .coach-fields { gap: 14px; } }
@media(max-width:560px) { .tabs { flex-wrap: wrap; } .tab { flex: 1 1 auto; min-width: 0; } }
@media(max-width:800px) {
  .top-stripes { margin-top: 0; }
  .masthead { padding: 20px; }
  main { padding: 18px; }
  .welcome { gap: 25px; padding: 20px 3px; }
  .welcome h1 { font-size: 42px; }
  .poster { height: 360px; }
  .pin { left: 145px; }
  .pin-two { left: 195px; }
  .bowling-ball { left: 65px; top: 225px; }
  .poster-caption { font-size: 36px; }
  .score-layout { grid-template-columns: 1.4fr 1fr; gap: 14px; }
  .entry-card,.stats-card { padding: 16px; }
  .entry-fields { grid-template-columns: 1fr; gap: 18px; }
  .big-stat > span { font-size: 53px; }
  .date-field .fine-print { display: none; }
}
@media(max-width:560px) {
  .masthead { min-height: 88px; padding: 20px 15px; }
  .brand { font-size: 26px; letter-spacing: 0; gap: 10px; }
  .brand small { font-size: 9px; letter-spacing: 3px; }
  .school-monogram { width: 72px; padding: 3px; }
  .school-stars { width: 82px; }
  .school-mountain { width: 80px; }
  .club-logo { width: 205px; }
  .strike-art { display: none; }
  .trophy-art { width: 48px; }
  .welcome-art { padding: 18px; }
  .welcome-art img { max-width: 235px; }
  .brand-ball { font-size: 49px; }
  .brand-ball:after { left: 11px; top: 1px; }
  main { padding: 14px 12px 24px; }
  .preview-banner { display: block; padding: 10px; }
  .preview-banner span,.preview-banner a { display: block; margin-top: 4px; }
  .dashboard-title { display: block; padding: 21px 1px 15px; }
  .dashboard-title h1 { font-size: 29px; }
  .club-select-wrap { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 7px 12px; margin-top: 16px; }
  .club-select-wrap label { margin: 0; }
  .club-select-wrap select { max-width: 200px; }
  .club-select-wrap .text-button { font-size: 11px; }
  .tabs { padding-left: 0; gap: 3px; margin-bottom: 15px; }
  .tab { flex: 1; justify-content: space-between; padding: 11px 12px; gap: 10px; font-size: 12px; }
  .score-layout { grid-template-columns: 1fr; gap: 17px; }
  .entry-card { padding: 16px 13px; }
  .entry-fields { grid-template-columns: 1fr 1fr; gap: 14px; margin: 21px 0; }
  .entry-fields label { font-size: 11px; }
  .pins-input { padding: 4px 6px; }
  .pins-input input { font-size: 46px; height: 61px; }
  .pins-input span { font-size: 9px; }
  input[type=date] { font-size: 11px; padding: 10px 6px; min-height: 44px; }
  .pins-field small { font-size: 10px; }
  .stats-card { padding: 16px; }
  .stats-top { margin-bottom: 7px; }
  .big-stat > span { font-size: 55px; }
  .stat-pair { margin-top: 17px; }
  .stat-pair strong { font-size: 28px; }
  .section-heading { padding: 10px; }
  .section-heading h2 { font-size: 18px; }
  .pill { font-size: 9px; }
  .history-row { padding: 13px 10px; gap: 10px; }
  .history-date { font-size: 11px; }
  .history-score { font-size: 25px; }
  .history-score small { font-size: 9px; margin-left: 5px; }
  .leaderboard-row { grid-template-columns: 32px 1fr 72px; gap: 10px; padding: 14px 10px; }
  .board-average { font-size: 23px; }
  .welcome { grid-template-columns: 1fr; padding: 17px 2px; gap: 30px; }
  .welcome h1 { font-size: 46px; }
  .welcome .fine-print { font-size: 12px; }
  .poster { height: 340px; max-width: 350px; width: 100%; margin: auto; }
  .poster-caption { font-size: 36px; }
  .pin { top: 140px; left: 165px; height: 150px; width: 43px; }
  .pin-two { top: 160px; left: 215px; }
  .pin:before { top: 37px; left: 4px; width: 31px; }
  .bowling-ball { left: 90px; top: 215px; width: 115px; height: 115px; }
  .bowling-ball i { left: 35px; top: 20px; }
  .bowling-ball i:nth-child(2) { left: 58px; top: 23px; }
  .bowling-ball i:nth-child(3) { left: 47px; top: 44px; }
  .join-panel { margin: 17px auto; padding: 19px; }
  footer { padding: 14px; font-size: 10px; }
}

.auth-choices { display:flex; gap:10px; margin:18px 0; }
.auth-choices [aria-pressed=true] { outline:2px solid #164d76; outline-offset:2px; }
.contact-row { display:grid; gap:5px; padding:12px 0; border-bottom:1px solid #b4ccdd; overflow-wrap:anywhere; }
.entry-modes { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 20px; }
.entry-modes .button { font-size:13px; padding:9px 12px; }
.entry-modes [aria-pressed=true] { outline:2px solid #164d76; outline-offset:2px; }
.series-games { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0 12px; }
.series-games input { width:100%; min-width:0; padding:12px 6px; font-size:27px; text-align:center; }
.series-games label { font-size:13px; }
.series-summary { margin:0; padding:12px; font-weight:bold; background:#d3eafa; border-bottom:1px solid #8cb7d2; }

.score-actions { margin-top: 16px; padding-top: 12px; border-top: 1px solid #6898b6; }
