
/* v6.1.1 — FULL-APP COMMERCIAL POLISH PASS
   Visual-only. No IDs, handlers, storage, scoring, Firebase, or navigation logic changed. */
:root{
  --c9-noir:#17131d;
  --c9-noir-2:#241a2d;
  --c9-plum:#3c2948;
  --c9-orange:#b94f22;
  --c9-orange-hi:#d66b32;
  --c9-champagne:#f3eadb;
  --c9-ivory:#fbf8f2;
  --c9-sage:#dfe5dd;
  --c9-slate:#526177;
  --c9-ink:#211c25;
  --c9-muted:#5f5963;
  --c9-line:rgba(54,38,62,.24);
  --c9-line-strong:rgba(54,38,62,.48);
  --c9-shadow:0 12px 30px rgba(25,18,29,.12),0 2px 8px rgba(25,18,29,.08),inset 0 1px 0 rgba(255,255,255,.78);
  --c9-shadow-lg:0 18px 45px rgba(20,14,24,.18),0 4px 12px rgba(20,14,24,.10),inset 0 1px 0 rgba(255,255,255,.82);
}

/* v7.0.13 — Unified Canardly NAVY header across the application.
   Removes the remaining purple/plum header treatment; visual only. */
.screen:where(:not(:is(#screen-multiplayer-setup,#screen-multiplayer-play,#screen-multiplayer-card,#screen-multiplayer-results,#screen-groups,#screen-mod2-challenges,#screen-mod2-challenge-setup,#screen-mod2-challenge-detail,#screen-chall-invite-detail,#screen-chall-opponent-setup,#screen-chall-match-setup))):not(#screen-splash):not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) > .header{
  background:
    radial-gradient(circle at 82% -30%,rgba(92,117,147,.30),transparent 48%),
    linear-gradient(135deg,#0f1e30 0%,#162840 62%,#1e3a5f 100%) !important;
  border-bottom:1px solid rgba(246,236,216,.40) !important;
  box-shadow:0 7px 20px rgba(5,15,28,.24) !important;
  min-height:66px;
}
.screen:where(:not(:is(#screen-multiplayer-setup,#screen-multiplayer-play,#screen-multiplayer-card,#screen-multiplayer-results,#screen-groups,#screen-mod2-challenges,#screen-mod2-challenge-setup,#screen-mod2-challenge-detail,#screen-chall-invite-detail,#screen-chall-opponent-setup,#screen-chall-match-setup))):not(#screen-splash):not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) .header-title{
  color:#fffaf2 !important;
  letter-spacing:.035em !important;
  text-shadow:0 1px 1px rgba(0,0,0,.35);
}
.screen:where(:not(:is(#screen-multiplayer-setup,#screen-multiplayer-play,#screen-multiplayer-card,#screen-multiplayer-results,#screen-groups,#screen-mod2-challenges,#screen-mod2-challenge-setup,#screen-mod2-challenge-detail,#screen-chall-invite-detail,#screen-chall-opponent-setup,#screen-chall-match-setup))):not(#screen-splash):not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) .header-sub{
  color:rgba(255,248,236,.72) !important;
}
.screen:where(:not(:is(#screen-multiplayer-setup,#screen-multiplayer-play,#screen-multiplayer-card,#screen-multiplayer-results,#screen-groups,#screen-mod2-challenges,#screen-mod2-challenge-setup,#screen-mod2-challenge-detail,#screen-chall-invite-detail,#screen-chall-opponent-setup,#screen-chall-match-setup))):not(#screen-splash):not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) .header-back{
  color:#fff7ec !important;
  border-color:rgba(255,239,218,.34) !important;
  background:rgba(255,255,255,.08) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}

/* App-wide legibility and control finish, excluding live-play surfaces. */
.screen:where(:not(:is(#screen-multiplayer-setup,#screen-multiplayer-play,#screen-multiplayer-card,#screen-multiplayer-results,#screen-groups,#screen-mod2-challenges,#screen-mod2-challenge-setup,#screen-mod2-challenge-detail,#screen-chall-invite-detail,#screen-chall-opponent-setup,#screen-chall-match-setup))):not(#screen-splash):not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie){color:var(--c9-ink)}
.screen:where(:not(:is(#screen-multiplayer-setup,#screen-multiplayer-play,#screen-multiplayer-card,#screen-multiplayer-results,#screen-groups,#screen-mod2-challenges,#screen-mod2-challenge-setup,#screen-mod2-challenge-detail,#screen-chall-invite-detail,#screen-chall-opponent-setup,#screen-chall-match-setup))):not(#screen-splash):not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) .screen-body{
  color:var(--c9-ink);
}
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) input,
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) select,
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) textarea{
  border:1.5px solid var(--c9-line-strong) !important;
  background:rgba(255,255,255,.92) !important;
  color:var(--c9-ink) !important;
  box-shadow:inset 0 1px 2px rgba(27,18,31,.05) !important;
}
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) input:focus,
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) select:focus,
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) textarea:focus{
  border-color:var(--c9-orange) !important;
  box-shadow:0 0 0 3px rgba(185,79,34,.15),inset 0 1px 2px rgba(27,18,31,.05) !important;
}

/* Premium auxiliary-page environment: visible character, structure, and depth. */
#screen-19th-hole > .screen-body,
#screen-mod2-challenges > .screen-body,
#screen-review-game > .screen-body,
#screen-doc-quick-start > .screen-body,
#screen-doc-manual > .screen-body,
#screen-doc-sip-golf > .screen-body,
#screen-doc-free-trial > .screen-body,
#screen-merch > .screen-body,
#screen-partners > .screen-body,
#screen-education > .screen-body,
#screen-tunes > .screen-body,
#screen-stats > .screen-body,
#screen-my-game > .screen-body{
  background:
    radial-gradient(circle at 100% 0%,rgba(89,66,101,.13),transparent 34%),
    radial-gradient(circle at 0% 100%,rgba(185,79,34,.08),transparent 38%),
    linear-gradient(180deg,#f7f2e9 0%,#ece9e2 48%,#dfe4df 100%) !important;
  padding-bottom:44px !important;
}

/* Direct section hierarchy on content-heavy auxiliary pages. */
#screen-19th-hole .screen-body > div[style*="justify-content:space-between"],
#screen-mod2-challenges .challv2-section-header,
#screen-doc-quick-start .section-title,
#screen-doc-manual .section-title,
#screen-doc-sip-golf .section-title,
#screen-doc-free-trial .section-title,
#screen-merch .section-title,
#screen-partners .section-title,
#screen-education .section-title,
#screen-tunes .section-title{
  position:relative;
  color:var(--c9-noir-2) !important;
  font-family:'Playfair Display',serif !important;
  font-weight:800 !important;
  letter-spacing:.02em !important;
}
#screen-mod2-challenges .challv2-section-header,
#screen-19th-hole .screen-body > div[style*="justify-content:space-between"]{
  margin:18px 12px 8px !important;
  padding:11px 14px !important;
  border-radius:12px !important;
  background:linear-gradient(135deg,rgba(35,26,43,.96),rgba(61,40,72,.94)) !important;
  border:1px solid rgba(217,171,125,.35) !important;
  box-shadow:0 7px 18px rgba(25,18,29,.16) !important;
}
#screen-mod2-challenges .challv2-section-label,
#screen-mod2-challenges .challv2-section-hint,
#screen-19th-hole .screen-body > div[style*="justify-content:space-between"] span{
  color:#fff7eb !important;
}
#screen-mod2-challenges .challv2-section-divider{display:none !important}

/* Convert old flat document blocks into a consistent editorial card system. */
#screen-doc-quick-start .screen-body > div[style*="background:#fff"],
#screen-doc-manual .screen-body > div[style*="background:#fff"],
#screen-doc-sip-golf .screen-body > div[style*="background:#fff"],
#screen-doc-free-trial .screen-body > div[style*="background:#fff"],
#screen-education .course-item,
#screen-merch .course-item,
#screen-partners .course-item,
#screen-tunes #tunes-launchers > *{
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(248,243,235,.98)) !important;
  border:1px solid var(--c9-line) !important;
  border-left:4px solid var(--c9-orange) !important;
  border-radius:16px !important;
  box-shadow:var(--c9-shadow) !important;
  margin-bottom:13px !important;
}
#screen-doc-quick-start .screen-body > div[style*="background:var(--green-deep)"],
#screen-doc-manual .screen-body > div[style*="background:var(--green-deep)"],
#screen-doc-sip-golf .screen-body > div[style*="background:var(--green-deep)"],
#screen-doc-free-trial .screen-body > div[style*="background:var(--green-deep)"],
#screen-education .screen-body > div[style*="background:var(--green-deep)"],
#screen-merch .screen-body > div[style*="background:var(--green-deep)"],
#screen-partners .screen-body > div[style*="background:var(--green-deep)"]{
  background:
    radial-gradient(circle at 88% 5%,rgba(122,80,139,.32),transparent 42%),
    linear-gradient(145deg,var(--c9-noir),#302039) !important;
  border:1px solid rgba(214,169,126,.40) !important;
  border-radius:18px !important;
  box-shadow:var(--c9-shadow-lg) !important;
}

/* Challenge and social rows: stronger edge, grouping, and empty states. */
#screen-mod2-challenges .challv2-card,
#screen-19th-hole .hole-round-row,
#screen-19th-hole .hole-feed-row,
#screen-19th-hole [class*="hole-"][class*="card"]{
  background:linear-gradient(180deg,#fff,#f8f3eb) !important;
  border:1px solid var(--c9-line) !important;
  border-left:4px solid var(--c9-plum) !important;
  border-radius:15px !important;
  box-shadow:var(--c9-shadow) !important;
  margin-bottom:11px !important;
}
#screen-mod2-challenges .challv2-empty-state,
#screen-19th-hole [id$="empty"]{
  background:rgba(255,255,255,.62) !important;
  border:1px dashed var(--c9-line-strong) !important;
  border-radius:14px !important;
  color:var(--c9-muted) !important;
  padding:18px 16px !important;
}

/* Main navigation cards and broad reusable cards: more premium and decisive. */
.course-item,.comm-hub-card,.path-card,.game-card,.challv2-card,.club-bag-item,.totals-card,.feedback-card{
  border-color:var(--c9-line) !important;
  box-shadow:var(--c9-shadow) !important;
}
.course-item:hover,.comm-hub-card:hover,.path-card:hover,.game-card:hover{
  box-shadow:var(--c9-shadow-lg) !important;
}
.course-item-arrow,.comm-hub-arrow{color:var(--c9-orange) !important;font-weight:900 !important}
.section-title{
  color:var(--c9-noir-2) !important;
  font-weight:800 !important;
}
.divider,.ds-section-divider,.ds-row-divider{
  border-color:var(--c9-line-strong) !important;
  background:var(--c9-line-strong) !important;
}

/* Profile, forms, stats, and utility panels. */
#screen-golfer .screen-body > div[style*="background:var(--green-deep)"]{
  background:
    radial-gradient(circle at 86% 0%,rgba(92,117,147,.26),transparent 44%),
    linear-gradient(145deg,#0f1e30,#1e3a5f) !important;
  border:1px solid rgba(246,236,216,.36) !important;
  box-shadow:0 12px 28px rgba(5,15,28,.20) !important;
}
/* v7.0.13 — Clubhouse identity is plain profile information, not another boxed option. */
#screen-clubhouse #clubhouse-profile-bar{
  width:100%;
  box-sizing:border-box;
  margin:0 0 18px 0;
  padding:2px 2px 14px;
  border:0;
  border-bottom:1px solid rgba(15,30,48,.18);
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
  cursor:pointer;
  text-align:left;
  -webkit-tap-highlight-color:transparent;
}
#screen-clubhouse #clubhouse-profile-bar:active{transform:none !important;opacity:.72;filter:none !important}
#screen-clubhouse #clubhouse-profile-bar #ch-name{
  color:#0f1e30 !important;
}
#screen-clubhouse #clubhouse-profile-bar #ch-nick,
#screen-clubhouse #clubhouse-profile-bar #ch-home,
#screen-clubhouse #clubhouse-profile-bar #ch-groups{
  color:#526177 !important;
}
.profile-input,.form-input,.form-select,.form-textarea{
  border-radius:11px !important;
}
.stat-row,.club-bag-item{
  background:rgba(255,255,255,.84) !important;
  border:1px solid var(--c9-line) !important;
  border-radius:13px !important;
}

/* Strong, consistent selected state everywhere. */
.selected,.ds-selected,.game-selected,.mod2-type-selected,.tees-selected,.v3-mode-card-selected,.v3holes-btn.selected,.tee-option.selected,.chip.selected{
  outline:3px solid var(--c9-noir-2) !important;
  outline-offset:1px !important;
  box-shadow:0 0 0 2px rgba(255,255,255,.86) inset,0 8px 20px rgba(27,18,31,.18) !important;
}

/* Remove weak gray presentation on light surfaces. */
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) [style*="color:#555"],
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) [style*="color: #555"],
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) [style*="color:#666"],
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) [style*="color:#777"],
.screen:not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) [style*="color:#888"]{
  color:var(--c9-muted) !important;
}

/* Restrained motion and tactile feedback. */
.screen:not(#screen-hole) button,.course-item,.comm-hub-card,.path-card,.game-card,.challv2-card{
  transition:transform .16s cubic-bezier(.2,.75,.25,1),box-shadow .18s ease,border-color .18s ease,filter .18s ease !important;
}
.screen:not(#screen-hole) button:active,.course-item:active,.comm-hub-card:active,.path-card:active,.game-card:active,.challv2-card:active{
  transform:scale(.985) !important;
  filter:saturate(1.04) !important;
}

@media (max-width:480px){
  #screen-mod2-challenges .challv2-section-header,
  #screen-19th-hole .screen-body > div[style*="justify-content:space-between"]{margin-left:10px !important;margin-right:10px !important}
  .screen:where(:not(:is(#screen-multiplayer-setup,#screen-multiplayer-play,#screen-multiplayer-card,#screen-multiplayer-results,#screen-groups,#screen-mod2-challenges,#screen-mod2-challenge-setup,#screen-mod2-challenge-detail,#screen-chall-invite-detail,#screen-chall-opponent-setup,#screen-chall-match-setup))):not(#screen-splash):not(#screen-hole):not(#screen-v3-scoring):not(#screen-scorecard):not(#screen-caddie) > .header{min-height:62px}
}
