/* chirp social tournament system. Barlow Condensed display type, Inter interface type. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-800.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-900.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-money: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --social-font: var(--font-ui);
  --social-ink: #111111;
  --social-muted: #626a65;
  --social-soft: var(--brand-green-50);
  --social-page: #f5f5f5;
  --leaderboard-page: #f5f5f5;
  --social-white: #ffffff;
  --social-green: var(--brand-green-800);
  --social-green-dark: var(--brand-green-900);
  --social-green-soft: var(--brand-green-100);
  --social-live: var(--brand-green-500);
  --social-moment: #f0744f;
  --social-gold: #f2c94c;
  --social-stake: var(--social-green);
  --social-stake-icon: var(--social-green);
  --social-rule: rgba(23, 32, 28, 0.1);
  --social-rule-strong: rgba(23, 32, 28, 0.2);
  --template-green: var(--brand-green-800);
  --template-green-deep: var(--brand-green-800);
  --template-heading: var(--font-display);
  --radius-large: var(--app-radius-surface);
  --radius-medium: var(--app-radius-control);
  --radius-control: var(--app-radius-control);
  --border-subtle: rgba(34, 39, 36, 0.14);
  --border-control: rgba(34, 39, 36, 0.22);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.06);
  --you-bg: #fffdf2;
  --you-accent: #f2c94c;
  --broadcast-height: 72px;
  --tab-height: 58px;
  --app-page-bg: var(--social-page);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--social-font);
}

h1,
h2,
h3,
.ios-large-title,
.ios-screen-title,
.section-title,
.competition-title,
.organizer-competition-title,
.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.live-touch {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.live-touch:focus-visible {
  position: relative;
  z-index: 3;
  outline: 2px solid var(--social-green);
  outline-offset: -2px;
}

/* Live awareness screen */
.ios-screen.app-main.leaderboard-main {
  min-height: 100dvh;
  padding: max(10px, env(safe-area-inset-top)) 0 calc(var(--broadcast-height) + var(--tab-height) + env(safe-area-inset-bottom) + 16px);
  background: linear-gradient(to bottom, var(--template-green-deep) 0 124px, var(--leaderboard-page) 124px 100%);
  color: var(--social-ink);
}

.live-experience {
  width: 100%;
}

.live-event-header {
  position: relative;
  display: grid;
  height: 68px;
  grid-template-areas:
    "title status"
    "meta meta";
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 38px 22px;
  align-items: end;
  gap: 0 8px;
  margin: 0 12px;
  padding: 0 16px;
}

.live-event-header__title {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: white;
  font-family: var(--font-display);
  font-size: var(--app-masthead-title-size);
  line-height: var(--app-masthead-title-line-height);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-event-header__identity {
  display: flex;
  min-width: 0;
  grid-area: title;
  align-items: center;
  gap: 7px;
}

.live-event-header__logo {
  width: var(--app-masthead-logo-size);
  height: var(--app-masthead-logo-size);
}

.live-event-header__topline {
  display: inline-flex;
  grid-area: status;
  align-self: center;
  align-items: center;
  gap: 5px;
  color: #f2c94c;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-event-header__topline span {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2c94c;
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.22);
}

.live-event-header__topline span::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(242, 201, 76, 0.78);
  border-radius: inherit;
  content: "";
  animation: live-header-pulse 1.8s ease-out infinite;
}

@keyframes live-header-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.45);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-event-header__topline span::after {
    animation: none;
    opacity: 0;
  }
}

.live-event-header__meta {
  display: flex;
  grid-area: meta;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-scoring-panel:empty {
  display: none;
}

.live-scoring {
  margin: 0 12px;
}

.live-score-panel {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-large);
  background: var(--social-white);
  box-shadow: var(--shadow-card);
}

.live-score-loading {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f6;
  color: var(--template-green-deep);
  font-family: var(--font-ui);
}

.live-score-loading[hidden] {
  display: none;
}

.live-score-loading i {
  font-size: 20px;
}

.live-hole-bar {
  position: relative;
  display: grid;
  height: 60px;
  grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  column-gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--social-white);
}

.live-hole-bar__nav {
  display: grid;
  width: 38px;
  height: 38px;
  align-self: center;
  border: 1px solid var(--border-control);
  border-radius: var(--app-radius-compact);
  place-items: center;
  background: var(--social-white);
  color: var(--social-green);
  font-size: 18px;
}

.live-hole-bar__nav:active {
  background: var(--social-green-soft);
}

.live-hole-bar__nav--right {
  grid-column: 4;
}

.live-hole-bar__nav:disabled {
  color: rgba(163, 170, 165, 0.35);
  opacity: 0.28;
}

.live-hole-bar__copy {
  display: grid;
  min-width: 0;
  align-self: center;
  row-gap: 1px;
}

.live-hole-bar__title {
  overflow: hidden;
  margin: 0;
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-hole-bar__meta {
  overflow: hidden;
  margin: 0;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-hole-bar__progress {
  align-self: center;
  justify-self: end;
  margin-top: 0;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-hole-bar__overview {
  display: inline-flex;
  min-height: 34px;
  min-width: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 5px;
  color: var(--social-green);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 14px;
  font-weight: 750;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-hole-bar__overview-label {
  font-size: 8px;
  line-height: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.live-hole-bar__overview-label i {
  margin-right: 2px;
  font-size: 8px;
}

.live-hole-bar__overview strong {
  font-size: 12px;
  line-height: 14px;
}

.live-hole-bar__overview.is-active {
  min-width: 52px;
  color: var(--social-green-dark);
}

.live-hole-bar__overview.is-active .live-hole-bar__overview-label {
  font-size: 9px;
  line-height: 14px;
}

.live-hole-bar__overview:active {
  background: rgba(0, 67, 35, 0.14);
  color: var(--social-green-dark);
}

.live-hole-bar__scorecard {
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--social-white);
  color: var(--social-green);
  font-size: 18px;
  text-decoration: none;
}

.live-hole-bar__scorecard:active {
  background: #f1f3f1;
  color: var(--social-green-dark);
}

.live-score-targets {
  background: transparent;
}

.live-score-panel--locked .live-score-targets {
  background: var(--social-white);
}

.live-score-panel--locked .live-round-summary {
  background: #f7f7f4;
}

.live-score-panel--locked .live-stepper__button:disabled,
.live-score-panel--locked .live-stepper__input:disabled {
  opacity: 0.55;
  cursor: default;
}

.live-hole-bar__lock {
  color: var(--social-green-dark);
  opacity: 1;
}

.live-lock-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(calc(100% - 40px), 300px);
  max-width: 300px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-control);
  border-radius: var(--app-radius-surface);
  background: var(--social-white);
  box-shadow: 0 18px 50px rgba(7, 31, 25, 0.22);
  color: var(--social-ink);
  font-family: var(--font-ui);
  transform: translate(-50%, -50%);
}

.live-lock-dialog::backdrop {
  background: rgba(7, 31, 25, 0.34);
}

.live-lock-dialog__content {
  display: grid;
  justify-items: center;
  padding: 22px 20px 16px;
  text-align: center;
}

.live-lock-dialog__content > i {
  color: var(--social-green);
  font-size: 20px;
}

.live-lock-dialog__content h3 {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 22px;
}

.live-lock-dialog__content p {
  margin: 5px 0 18px;
  color: var(--social-muted);
  font-size: 13px;
  line-height: 18px;
}

.live-lock-dialog__button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: var(--app-radius-control);
  background: var(--social-green-dark);
  color: white;
  font-size: 14px;
  font-weight: 750;
}

.live-score-target {
  position: relative;
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) 154px;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-bottom: 0;
}

.live-score-target + .live-score-target {
  border-top: 0;
}

.live-score-target:last-child {
  padding-bottom: 12px;
}

.live-score-target:not(:last-child)::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: var(--border-subtle);
  content: "";
}

.live-score-target__name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-score-target__name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.handicap-stroke-indicator {
  display: inline-flex;
  min-width: 14px;
  min-height: 14px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 4px;
  border-radius: 999px;
  background: var(--social-green-soft);
  vertical-align: middle;
}

.handicap-stroke-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--social-green);
}

.live-stepper {
  display: grid;
  width: 154px;
  height: 42px;
  grid-template-columns: 50px 54px 50px;
  overflow: hidden;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: #f7f7f4;
}

.live-stepper__button {
  display: grid;
  width: 50px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #f7f7f4;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 500;
}

.live-stepper__button:last-child {
  color: var(--social-green);
}

.live-stepper__button:active {
  background: #dceee4;
}

.live-stepper__button:disabled {
  color: rgba(23, 32, 28, 0.2);
}

.live-stepper__value {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  background: white;
}

.live-stepper__input {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  appearance: textfield;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 21px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms ease, border-radius 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.live-stepper__input.score-selection-indicator--birdie,
.live-stepper__input.score-selection-indicator--eagle {
  border-color: var(--social-green);
  border-radius: 50%;
  color: var(--social-green-dark);
}

.live-stepper__input.score-selection-indicator--bogey,
.live-stepper__input.score-selection-indicator--double-bogey {
  border-color: #a9681f;
  border-radius: 4px;
  color: #7b4314;
}

.live-stepper__input.score-selection-indicator--eagle {
  box-shadow: 0 0 0 1px white, 0 0 0 3px var(--social-green);
}

.live-stepper__input.score-selection-indicator--double-bogey {
  box-shadow: 0 0 0 1px white, 0 0 0 3px #a9681f;
}

.live-stepper__input::-webkit-inner-spin-button,
.live-stepper__input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.live-round-summary {
  display: grid;
  height: 45px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid #d3d8d4;
  background: #f7f7f4;
}

.live-round-waiting {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-top: 1px solid #d3d8d4;
  background: #f0f2ef;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
}

.live-round-waiting i {
  color: var(--template-green-deep);
  font-size: 12px;
}

.live-round-waiting strong {
  color: var(--social-ink);
  font-weight: 700;
}

.live-round-waiting span::before {
  margin-right: 7px;
  color: #a3aaa5;
  content: "·";
}

.live-round-stat {
  display: flex;
  height: 36px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
}

.live-round-stat + .live-round-stat {
  position: relative;
}

.live-round-stat + .live-round-stat::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
  content: "";
  transform: translateY(-50%);
}

.live-round-stat strong {
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.live-round-stat span {
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-round-stat--primary strong {
  color: var(--template-green-deep);
}

/* The leaderboard is the continuous product surface. */
.live-leaderboard-carousel,
.live-leaderboard-stack {
  margin: 6px 12px 0;
}

.live-leaderboard-carousel {
  overflow: hidden;
}

.live-leaderboard-carousel .leaderboard-carousel-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.live-leaderboard-carousel .leaderboard-carousel-track::-webkit-scrollbar {
  display: none;
}

.live-leaderboard-carousel .leaderboard-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
}

.live-board {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-large);
  background: white;
  box-shadow: var(--shadow-card);
}

.round-history {
  margin-top: 12px;
}

.round-history__heading {
  margin: 0 0 7px;
  padding: 0 4px;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 15px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.round-history__list {
  display: grid;
  gap: 8px;
}

.round-history__round {
  overflow: hidden;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-medium);
  background: var(--social-white);
  box-shadow: 0 2px 8px rgba(7, 31, 25, 0.06);
}

.round-history__summary {
  display: grid;
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
}

.round-history__summary::-webkit-details-marker {
  display: none;
}

.round-history__summary:focus-visible {
  outline: 2px solid var(--social-green);
  outline-offset: -2px;
}

.round-history__status {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  place-items: center;
  background: #eef1ee;
  color: var(--social-green-dark);
  font-size: 10px;
}

.round-history__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.round-history__copy strong,
.round-history__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-history__copy strong {
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.round-history__copy small,
.round-history__final {
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 15px;
  font-weight: 550;
}

.round-history__final {
  font-weight: 700;
  white-space: nowrap;
}

.round-history__chevron {
  color: #939a95;
  font-size: 13px;
  transition: transform 180ms ease;
}

.round-history__round[open] .round-history__summary {
  border-bottom: 1px solid var(--border-subtle);
}

.round-history__round[open] .round-history__chevron {
  transform: rotate(180deg);
}

.round-history__board .live-board--historical {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.round-history__board .match-play-board__header,
.round-history__board .live-board__columns {
  background: #f7f7f4;
}

.live-board__identity {
  display: flex;
  height: 80px;
  min-height: 80px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--social-white);
}

.live-board-switcher {
  position: relative;
  width: 100%;
}

.live-board-switcher__summary {
  display: grid;
  width: 100%;
  height: 52px;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.live-board-switcher__summary::-webkit-details-marker {
  display: none;
}

.live-board__name-block {
  width: 100%;
  min-width: 0;
}

.live-board__headline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-board__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--social-ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-board__stake {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  color: var(--social-stake);
  white-space: nowrap;
}

.money-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-family: var(--font-money);
  font-weight: 700;
  line-height: 1;
}

.live-board__stake .money-icon {
  color: var(--social-stake-icon);
  font-size: 17px;
}

.live-board__stake--button {
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  min-height: 36px;
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.live-board__stake-value {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.live-board__stake-detail {
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.live-board__stake--button:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--social-green);
  outline-offset: 2px;
}

.live-board__stake > span {
  font-family: var(--font-money);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.live-board__meta {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
  letter-spacing: 0;
  padding-left: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-board__counter {
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.live-board__switch-icon {
  color: #a3aaa5;
  font-size: 16px;
  transition: transform 180ms ease;
}

.live-board-switcher[open] .live-board__switch-icon {
  transform: rotate(180deg);
}

.live-board-switcher__options {
  position: absolute;
  z-index: 20;
  top: 54px;
  right: 0;
  left: 0;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: white;
  box-shadow: 0 12px 32px rgba(23, 32, 28, 0.16);
}

.live-board-switcher__option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: white;
  color: var(--social-ink);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.live-board-switcher__option-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.live-board-switcher__option-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-board-switcher__option-copy > small {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  color: var(--social-stake);
  font-family: var(--font-money);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.live-board-switcher__option-copy > small .money-icon {
  color: var(--social-stake-icon);
}

.live-board__table {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: white;
  box-shadow: none;
}

.match-play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.match-play-board__context {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: white;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
  white-space: normal;
}

.match-play-board__context h2 {
  margin: 0;
  color: var(--social-ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 18px;
  font-weight: 600;
}

.match-play-board__title {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.match-play-board__meta {
  display: block;
  margin: 1px 0 0;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 13px;
  font-weight: 550;
}

body.wager-dialog-open {
  overflow: hidden;
}

.wager-dialog {
  position: fixed;
  z-index: 100;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(calc(100% - 28px), 380px);
  max-width: 380px;
  max-height: min(76dvh, 560px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-control);
  border-radius: 18px;
  background: var(--social-white);
  color: var(--social-ink);
  box-shadow: 0 24px 70px rgba(7, 31, 25, 0.28);
  transform: translate(-50%, -50%);
}

.wager-dialog:focus {
  outline: none;
}

.wager-dialog[open] {
  animation: wager-dialog-in 160ms ease-out;
}

.wager-dialog::backdrop {
  background: rgba(7, 31, 25, 0.42);
}

.wager-dialog__card {
  max-height: min(76dvh, 560px);
  padding-bottom: 8px;
  overflow-y: auto;
  background: var(--social-white);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.wager-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.wager-dialog__eyebrow {
  margin: 0 0 1px;
  color: var(--social-green);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 14px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wager-dialog__header h2 {
  margin: 0;
  color: var(--social-ink);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 31px;
  font-weight: 600;
}

.wager-dialog__close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-control);
  border-radius: 50%;
  background: var(--social-white);
  color: var(--social-green);
  font-size: 16px;
}

.wager-dialog__close:focus-visible {
  outline: 2px solid rgba(0, 67, 35, 0.45);
  outline-offset: 1px;
}

.wager-dialog__pool-row,
.wager-dialog__rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.wager-dialog__pool-row {
  padding: 16px 18px;
  background: #f7f7f4;
}

.wager-dialog__pool-row > span:first-child,
.wager-dialog__rule > span:first-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.wager-dialog__pool-row strong,
.wager-dialog__rule strong {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 19px;
  font-weight: 650;
}

.wager-dialog__pool-row small,
.wager-dialog__rule small {
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
}

.wager-dialog__section {
  padding: 16px 18px 0;
}

.wager-dialog__section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
}

.wager-dialog__section-heading h3 {
  margin: 0;
  color: var(--social-ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
}

.wager-dialog__section-heading span {
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
}

.wager-dialog__rules {
  border-top: 1px solid var(--border-subtle);
}

.wager-dialog__rule {
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.wager-dialog__money {
  display: inline-flex;
  min-width: 54px;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  color: var(--social-stake);
  text-align: right;
  white-space: nowrap;
}

.wager-dialog__money .money-icon {
  color: var(--social-stake-icon);
  font-size: 15px;
}

.wager-dialog__money strong {
  font-family: var(--font-money);
  font-size: 22px;
  line-height: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wager-dialog__pool-row .wager-dialog__money strong {
  font-size: 26px;
  line-height: 30px;
}

@keyframes wager-dialog-in {
  from { transform: translate(-50%, -48%) scale(0.97); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.match-play-board__header {
  height: 31px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #faf9f6;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-play-board__header span:nth-child(2) {
  color: var(--social-green);
  text-align: center;
}

.match-play-board__header span:last-child {
  text-align: right;
}

.match-play-board__result {
  border-bottom: 1px solid var(--border-subtle);
  background: white;
}

.match-play-board__result--current {
  background: var(--you-bg);
}

.match-play-board__row {
  width: 100%;
  min-height: 60px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.match-play-board__row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--social-green);
  outline-offset: -2px;
}

.match-play-board__player {
  display: grid;
  min-width: 0;
  grid-template-rows: 20px 11px;
  align-content: center;
  align-items: center;
  gap: 0;
  overflow: hidden;
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-play-board__player--left {
  justify-items: start;
}

.match-play-board__player--right {
  justify-items: end;
  text-align: right;
}

.match-play-board__player-name {
  min-width: 0;
  overflow: hidden;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-play-board__player-name--winner {
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.match-play-board__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.match-play-board__score-value {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.match-play-board__leader-direction {
  position: absolute;
  top: 50%;
  right: calc(100% + 7px);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-right: 6px solid var(--social-green);
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}

.match-play-board__score strong {
  color: var(--social-green);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.match-play-board__score small {
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-play-board__score-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.match-play-board__row--bye {
  cursor: default;
}

.match-play-board__row--bye .match-play-board__score-value strong {
  color: var(--social-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.match-play-board__bet-amount {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 1px;
  color: var(--social-stake);
  font-family: var(--font-money);
  font-size: 10px;
  line-height: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

.match-play-board__bet-amount .money-icon {
  color: var(--social-stake-icon);
  font-size: 8px;
}

.match-scorecard {
  padding: 8px;
  border-top: 1px solid var(--border-subtle);
  background: var(--social-white);
}

.match-scorecard__grid {
  grid-template-columns: 4.5rem repeat(var(--scorecard-hole-count, 9), minmax(0, 1fr)) 2.5rem;
}

.scorecard-hole-grid--round {
  grid-template-columns: 3rem repeat(var(--scorecard-hole-count, 9), minmax(0, 1fr)) 2.75rem;
}

.match-scorecard__player-score {
  position: relative;
}

.match-scorecard__player-score.has-bonus {
  padding-bottom: 7px;
}

.match-scorecard__bonus {
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  overflow: hidden;
  padding: 0 1px;
  border-radius: 2px;
  background: #eef0ed;
  color: var(--social-stake);
  font-family: var(--font-money);
  font-size: 6px;
  line-height: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-overflow: clip;
  white-space: nowrap;
}

.match-scorecard__bonus .money-icon {
  margin-right: 1px;
  color: var(--social-stake-icon);
  font-size: 5px;
}

.match-scorecard__player-score.is-winner {
  background: #e6f3ec;
  box-shadow: inset 0 0 0 1px rgba(0, 67, 35, 0.14);
}

.live-board-grid {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px 44px 54px 16px;
  column-gap: 4px;
}

.live-board-grid--single-score {
  grid-template-columns: 36px minmax(0, 1fr) 64px 54px 16px;
}

.live-board__columns {
  height: 31px;
  min-height: 31px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: #f7f7f4;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-board__columns span:nth-child(3),
.live-board__columns span:nth-child(4),
.live-board__columns span:nth-child(5) {
  text-align: right;
}

.live-board__columns span:nth-child(5) {
  text-align: center;
}

.live-board__columns span:nth-child(4) {
  color: var(--social-green);
}

.live-board__columns--single-score span:nth-child(3) {
  color: var(--social-green);
}

.live-board__columns--single-score span:nth-child(4) {
  color: var(--social-muted);
  text-align: center;
}

.live-board__result {
  position: relative;
  min-height: 45px;
  border-bottom: 1px solid var(--border-subtle);
  background: white;
}

.live-board__result + .live-board__result {
  border-top: 0;
}

.live-board__result--pinned {
  background: white;
}

.live-board__result--current {
  background: var(--you-bg);
  box-shadow: none;
}

.live-board__row {
  position: relative;
  width: 100%;
  height: 45px;
  min-height: 45px;
  grid-template-rows: 19px 15px;
  align-content: center;
  align-items: center;
  padding: 3px 10px;
  border: 0;
  background: transparent;
  color: var(--social-ink);
  text-align: left;
}

.live-board__row:active {
  background: var(--social-green-soft);
}

.live-board__row--current {
  background: transparent;
  box-shadow: none;
}

.live-board__rank {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.live-board__player {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.live-board__row--single-line .live-board__player {
  grid-row: 1 / span 2;
  align-self: center;
}

.live-board__player .leaderboard-name-line,
.live-board__player .leaderboard-name-list {
  display: flex;
  min-width: 0;
  align-items: center;
}

.live-board__player .leaderboard-name-list {
  overflow: hidden;
}

.live-board__player .leaderboard-name {
  overflow: hidden;
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-board__progress {
  overflow: hidden;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-board__secondary-score,
.live-board__primary-score {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.live-board__secondary-score {
  grid-column: 3;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.live-board__primary-score {
  grid-column: 4;
  color: var(--social-green);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
}

.live-board__row--single-score .live-board__primary-score {
  grid-column: 3;
}

.live-board__row--single-score .live-board__through {
  grid-column: 4;
}

.live-board__row--single-score .live-board__disclosure {
  grid-column: 5;
}

.live-board__through {
  grid-column: 5;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.live-board__through--tee-time {
  display: flex;
  width: 54px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.live-board__tee-time-clock {
  font-size: 12px;
  line-height: 13px;
  font-weight: 700;
}

.live-board__tee-time-detail {
  font-size: 9px;
  line-height: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-board__disclosure {
  display: grid;
  grid-column: 6;
  grid-row: 1 / span 2;
  align-self: center;
  place-items: center;
  color: #a3aaa5;
  font-size: 14px;
}

.live-board__row[aria-expanded="true"] .live-board__disclosure i {
  transform: rotate(180deg);
}

.live-board__result .scorecard-panel {
  padding: 10px;
  border-top: 1px solid var(--border-subtle);
  background: var(--social-soft);
}

.leaderboard-show-all {
  min-height: 46px;
  border-top: 1px solid var(--border-subtle);
  background: #f7faf8;
}

.live-board__show-all {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--template-green-deep);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
  text-align: center;
}

.live-board__show-all i {
  font-size: 11px;
  transition: transform 160ms ease;
}

.live-board__show-all[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.live-board__show-all:hover {
  background: var(--social-green-soft);
}

.live-board__show-all:active {
  background: #e3f1e8;
}

.live-board__show-all:focus-visible {
  outline: 2px solid var(--social-green);
  outline-offset: -3px;
}

.leaderboard-result--updating .live-board__row {
  animation: social-score-change 1.1s ease-out;
}

@keyframes social-score-change {
  0% { background: rgba(49, 212, 123, 0.32); transform: translateX(3px); }
  45% { background: rgba(49, 212, 123, 0.12); }
  100% { background: transparent; transform: translateX(0); }
}

/* Broadcast is a live story, with audio as a secondary control. */
.broadcast-player-shell {
  position: fixed;
  z-index: 60;
  right: auto;
  bottom: calc(64px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(100%, var(--app-max-width));
  margin: 0;
  transform: translateX(-50%);
}

.broadcast-player.social-broadcast {
  width: calc(100% - 24px);
  min-height: var(--broadcast-height);
  height: var(--broadcast-height);
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  margin: 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--app-radius-compact);
  background: #f7f7f4;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.07);
}

.broadcast-player-shell.is-active .broadcast-player.social-broadcast,
.broadcast-player-shell.is-playing .broadcast-player.social-broadcast {
  border-color: rgba(0, 67, 35, 0.2);
  background: linear-gradient(90deg, #f9fcf9, #eef6f1);
}

.social-broadcast__audio {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #68706c;
  color: white;
  font-size: 16px;
}

.broadcast-player-shell.is-active .social-broadcast__audio,
.broadcast-player-shell.is-playing .social-broadcast__audio {
  background: var(--template-green-deep);
}

.broadcast-player-background-link {
  display: none;
  min-height: 20px;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7e9e7;
  color: var(--template-green-deep);
  font-size: 9px;
  line-height: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
}

body.hotwire-native .broadcast-player-background-link {
  display: inline-flex;
}

.broadcast-player-background-link:active {
  background: #daddda;
}

.broadcast-player-background-link:focus-visible {
  outline: 2px solid var(--social-green);
  outline-offset: 2px;
}

.social-broadcast__audio:active {
  background: var(--social-green-dark);
  transform: scale(0.96);
}

.social-broadcast__moment {
  gap: 5px;
  color: var(--social-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.social-broadcast__moment .broadcast-player-dot {
  width: 6px;
  height: 6px;
  background: #a3aaa5;
}

.broadcast-player-shell.is-active .social-broadcast__moment .broadcast-player-dot,
.broadcast-player-shell.is-playing .social-broadcast__moment .broadcast-player-dot,
.broadcast-player-shell.has-new-alert .social-broadcast__moment .broadcast-player-dot {
  background: var(--social-live);
}

.social-broadcast .broadcast-player-message {
  height: 19px;
  margin-top: 1px;
}

.social-broadcast .broadcast-player-title-track,
.broadcast-player-shell.is-idle .social-broadcast .broadcast-player-title-track {
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 19px;
  font-weight: 600;
  white-space: nowrap;
}

.broadcast-player-shell.is-idle .social-broadcast .broadcast-player-message {
  height: 19px;
  min-height: 19px;
}

.broadcast-player-shell.is-idle .social-broadcast .broadcast-headline {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.social-broadcast__status {
  position: relative;
  color: var(--social-muted);
  padding-right: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
  text-transform: uppercase;
}

.social-broadcast__status::after {
  position: absolute;
  margin-left: 6px;
  content: "›";
  font-size: 18px;
  line-height: 10px;
}

.broadcast-player-shell.is-active .social-broadcast__status,
.broadcast-player-shell.is-playing .social-broadcast__status,
.broadcast-player-shell.has-new-alert .social-broadcast__status {
  color: var(--social-green);
}

.ios-tab-bar.bottom-nav {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, var(--app-max-width));
  min-height: calc(var(--tab-height) + env(safe-area-inset-bottom));
  height: calc(var(--tab-height) + env(safe-area-inset-bottom));
  padding: 4px 8px env(safe-area-inset-bottom);
  border-top: 0;
  background: var(--template-green-deep);
  transform: translateX(-50%);
  backdrop-filter: none;
}

.ios-tab-item.bottom-nav-item {
  min-height: 50px;
  gap: 1px;
  border-radius: var(--app-radius-compact);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.ios-tab-item.bottom-nav-item i {
  font-size: 17px;
}

.ios-tab-item.bottom-nav-item.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.has-broadcast-player .ios-screen.app-main.leaderboard-main {
  padding-bottom: calc(var(--broadcast-height) + var(--tab-height) + env(safe-area-inset-bottom) + 16px);
}

/* Shared product language: editorial lists, not settings cards. */
.ios-large-title {
  font-family: var(--social-font);
  font-size: 28px;
  line-height: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.live-event-header__title,
.ios-navigation-bar .ios-navigation-bar__title,
.ios-large-title-header .ios-large-title,
.organizer-events-masthead .organizer-events-title,
.organizer-dashboard-masthead .organizer-dashboard-title,
.ios-screen-title {
  display: block;
  overflow: hidden;
  margin: 0;
  color: white;
  font-family: var(--font-display);
  font-size: var(--app-masthead-title-size);
  line-height: var(--app-masthead-title-line-height);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h2.app-subheading,
h3.app-subheading,
.event-card-title,
.events-empty-state h2,
.performance-history-copy h3,
.marketing-preview-heading h2,
.leaderboard-title,
.competition-title,
.organizer-summary-heading h2,
.organizer-quick-actions__heading h2,
.organizer-focused-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ios-section-header,
.section-eyebrow {
  color: var(--social-green);
  font-size: 9px;
  line-height: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.organizer-events-section-title {
  margin: 0;
  color: var(--social-green);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.profile-summary,
.profile-settings,
.app-entry-features,
.auth-card {
  border-radius: 0;
  box-shadow: none;
}

.organizer-events-page .events-list {
  display: grid;
  gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.organizer-events-page .event-list-card {
  min-height: 82px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--app-radius-surface);
  background: var(--social-white);
}

.organizer-events-page .event-card-title {
  display: block;
  margin-bottom: 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--social-green) 14%, transparent);
  letter-spacing: 0;
}

.organizer-events-page .event-card-title + .event-card-course {
  margin-top: 0;
}

.organizer-events-page .events-section--live .event-list-card {
  background: var(--social-white);
}

.organizer-event-hero {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--social-white);
  color: var(--social-ink);
  box-shadow: 0 1px 0 var(--social-rule-strong);
}

.organizer-event-hero::after {
  display: none;
}

.organizer-event-hero .organizer-event-status,
.organizer-event-hero .organizer-event-title,
.organizer-event-hero .organizer-event-meta,
.organizer-event-hero .organizer-player-count,
.organizer-event-hero .organizer-public-link,
.organizer-event-hero .organizer-broadcast-test {
  color: var(--social-ink);
}

.organizer-event-hero .organizer-event-status {
  color: var(--social-green);
}

.organizer-event-hero .organizer-event-meta,
.organizer-event-hero .organizer-player-count small {
  color: var(--social-muted);
}

.organizer-event-actions,
.organizer-public-link,
.organizer-broadcast-test-form {
  border-color: var(--social-rule);
}

.organizer-card-list {
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--social-rule-strong);
  border-bottom: 1px solid var(--social-rule);
  border-radius: 0;
  background: var(--social-white);
}

.organizer-card-list > *,
.organizer-card-list .surface-card,
.organizer-card-list .organizer-disclosure,
.player-list-card,
.team-list-card,
.pairing-list-card {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.auth-card {
  border: 0;
  border-top: 3px solid var(--social-live);
  background: var(--social-white);
}

.auth-card-header,
.auth-card-body,
.auth-card-footer {
  background: transparent;
}

.form-control {
  border-width: 0 0 2px;
  border-radius: 0;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-result--updating .live-board__row {
    animation: none;
  }
}

/* Keep tournament identity in the header while standings sit on a neutral canvas. */
.ios-app-shell:has(.leaderboard-main) {
  background: var(--leaderboard-page);
}

.ios-screen.app-main.leaderboard-main {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: linear-gradient(to bottom, var(--template-green-deep) 0 124px, var(--leaderboard-page) 124px 100%);
}

/* Shared background motifs echo the landing-page rings without competing with content. */
.ios-screen.app-main:not(.landing-main):not(.leaderboard-main) {
  --screen-motif-primary: rgba(48, 112, 171, 0.045);
  --screen-motif-secondary: rgba(0, 67, 35, 0.035);
  --header-motif-primary: rgba(114, 207, 124, 0.09);
  --header-motif-secondary: rgba(255, 255, 255, 0.045);
  background-color: var(--app-page-bg);
  background-image:
    radial-gradient(circle, transparent 0 88px, var(--screen-motif-primary) 89px 90px, transparent 91px 126px, var(--screen-motif-secondary) 127px 128px, transparent 129px),
    radial-gradient(circle, transparent 0 108px, var(--screen-motif-secondary) 109px 110px, transparent 111px 148px, var(--screen-motif-primary) 149px 150px, transparent 151px);
  background-position: -176px 44px, calc(100% + 214px) 310px;
  background-size: 360px 620px, 440px 760px;
  background-repeat: repeat-y;
}

.ios-screen.app-main.organizer-main:not(.landing-main):not(.leaderboard-main) {
  --screen-motif-primary: rgba(0, 67, 35, 0.05);
  --screen-motif-secondary: rgba(242, 201, 76, 0.035);
  --header-motif-primary: rgba(114, 207, 124, 0.1);
  --header-motif-secondary: rgba(239, 200, 94, 0.065);
}

.ios-screen.app-main.welcome-main:not(.landing-main):not(.leaderboard-main) {
  --screen-motif-primary: rgba(242, 201, 76, 0.045);
  --screen-motif-secondary: rgba(0, 67, 35, 0.04);
  --header-motif-primary: rgba(239, 200, 94, 0.1);
  --header-motif-secondary: rgba(114, 207, 124, 0.065);
}

.ios-screen.app-main.performance-history-main:not(.landing-main):not(.leaderboard-main) {
  --screen-motif-primary: rgba(0, 67, 35, 0.04);
  --screen-motif-secondary: rgba(242, 201, 76, 0.035);
  background-color: #f7f7f4;
}

.ios-navigation-bar,
.ios-large-title-header,
.organizer-events-masthead,
.organizer-dashboard-masthead,
.performance-history-masthead {
  overflow: hidden;
  background-color: var(--app-primary-strong);
  background-image:
    radial-gradient(circle at calc(100% + 48px) -38px,
      transparent 0 72px,
      var(--header-motif-primary, rgba(114, 207, 124, 0.075)) 73px 101px,
      transparent 102px 128px,
      var(--header-motif-secondary, rgba(255, 255, 255, 0.03)) 129px 154px,
      transparent 155px),
    radial-gradient(circle at -48px calc(100% + 48px),
      transparent 0 48px,
      var(--header-motif-secondary, rgba(255, 255, 255, 0.03)) 49px 67px,
      transparent 68px 88px,
      var(--header-motif-primary, rgba(114, 207, 124, 0.06)) 89px 107px,
      transparent 108px);
  background-repeat: no-repeat;
}

.ios-screen.app-main.leaderboard-main {
  background-image:
    radial-gradient(circle at calc(100% + 56px) -48px, transparent 0 88px, rgba(114, 207, 124, 0.055) 89px 126px, transparent 127px 158px, rgba(255, 255, 255, 0.025) 159px 194px, transparent 195px),
    radial-gradient(circle, transparent 0 82px, rgba(242, 201, 76, 0.065) 83px 84px, transparent 85px 118px, rgba(0, 67, 35, 0.055) 119px 120px, transparent 121px),
    radial-gradient(circle, transparent 0 102px, rgba(0, 67, 35, 0.06) 103px 104px, transparent 105px 138px, rgba(242, 201, 76, 0.055) 139px 140px, transparent 141px),
    linear-gradient(to bottom, var(--template-green-deep) 0 124px, var(--leaderboard-page) 124px 100%);
  background-position: 0 0, -132px 72px, calc(100% + 158px) 338px, 0 0;
  background-size: 100% 124px, 320px 560px, 370px 650px, 100% 100%;
  background-repeat: no-repeat, repeat-y, repeat-y, no-repeat;
}

.leaderboard-main .live-event-header {
  height: 76px;
  margin-right: 14px;
  margin-left: 14px;
  padding-right: 2px;
  padding-left: 2px;
}

.leaderboard-main .live-scoring {
  margin-top: 16px;
  margin-right: 14px;
  margin-left: 14px;
}

.leaderboard-main :is(.live-leaderboard-carousel, .live-leaderboard-stack) {
  margin-top: 16px;
  margin-right: 14px;
  margin-left: 14px;
}

.leaderboard-main .match-play-board__context {
  min-height: 80px;
  align-items: flex-start;
  padding-top: 14px;
  padding-right: 16px;
  padding-bottom: 14px;
  padding-left: 16px;
  background: var(--social-white);
  color: var(--social-muted);
}

.leaderboard-main .match-play-board__context h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.leaderboard-main .match-play-board__meta {
  margin: 0;
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
}

.leaderboard-main .match-play-board__header {
  height: 34px;
  padding-right: 16px;
  padding-left: 16px;
}

/* The scorecard is eagerly loaded with the live scorer, then uses the dialog
   top layer so it cannot be constrained by the scoring panel beneath it. */
html.scorecard-overview-expanded,
body.scorecard-overview-expanded {
  overflow: hidden;
  scrollbar-width: none;
}

html.scorecard-overview-expanded::-webkit-scrollbar,
body.scorecard-overview-expanded::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scorecard-overlay {
  position: fixed;
  z-index: 80;
  top: var(--scorecard-overlay-top, 0px);
  right: auto;
  bottom: 0;
  left: var(--scorecard-overlay-left, 0px);
  width: var(--scorecard-overlay-width, min(100%, var(--app-max-width)));
  height: calc(100dvh - var(--scorecard-overlay-top, 0px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border-control);
  border-top: 0;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  background: var(--social-white);
  color: inherit;
  scrollbar-width: none;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transform-origin: top center;
  will-change: clip-path;
  -webkit-overflow-scrolling: touch;
}

.scorecard-overlay::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scorecard-overlay::backdrop {
  background: transparent;
}

.scorecard-overlay__frame {
  display: block;
  min-height: 100%;
}

.scorecard-overlay__loading {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--social-muted);
  font-size: 13px;
  font-weight: 650;
}

.scorecard-overview-screen.scorecard-overview-screen--embedded {
  min-height: 100%;
  background: var(--leaderboard-page);
}

.scorecard-overview-chrome.scorecard-overview-chrome--embedded {
  padding-top: 0;
  background: transparent;
}

.scorecard-overview-chrome--embedded .live-scoring {
  margin: 0;
}

.scorecard-overview-chrome.scorecard-overview-chrome--embedded .live-score-panel {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.scorecard-overview-screen--embedded #scorecard_overview_content {
  margin: 0;
}

.scorecard-overview-screen--embedded .scorecard-overview-table {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.scorecard-overview-screen--embedded .scorecard-columns {
  top: 0;
}

/* Full-height scorecard editing reached directly from live score entry. */
.scorecard-overview-screen {
  min-height: calc(100dvh - var(--tab-height));
}

.scorecard-overview-chrome {
  position: sticky;
  z-index: 5;
  top: 0;
  padding-bottom: 0;
  background: linear-gradient(to bottom, var(--template-green-deep) 0 68px, transparent 68px);
}

#scorecard_overview_content {
  margin: 0 12px;
}

.scorecard-overview-chrome .live-score-panel {
  border-bottom: 0;
  border-radius: var(--app-radius-surface) var(--app-radius-surface) 0 0;
  box-shadow: none;
}

.scorecard-overview-table {
  overflow: clip;
  border: 1px solid var(--border-subtle);
  border-top: 0;
  border-radius: 0 0 var(--app-radius-surface) var(--app-radius-surface);
  background: var(--social-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.045);
}

.scorecard-summary-grid {
  display: grid;
  grid-template-columns: 38px 34px 58px 36px repeat(var(--scorecard-player-count), 50px);
  column-gap: 0;
  align-items: center;
  justify-content: space-between;
}

.scorecard-overview-table--scrolling {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.scorecard-overview-table--scrolling::-webkit-scrollbar {
  display: none;
}

.scorecard-overview-table--scrolling .scorecard-columns {
  position: relative;
  top: auto;
}

.scorecard-overview-row {
  position: relative;
  height: 58px;
  padding: 0 12px;
  background: var(--social-white);
  color: var(--social-ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.scorecard-overview-row + .scorecard-overview-row {
  border-top: 1px solid rgba(60, 60, 67, 0.12);
}

.scorecard-overview-row > * {
  min-width: 0;
  padding: 0;
}

.scorecard-columns {
  position: sticky;
  z-index: 3;
  top: 129px;
  height: 42px;
  background: rgba(247, 247, 244, 0.98);
  backdrop-filter: blur(8px);
}

.scorecard-overview-row--header {
  color: var(--social-muted);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scorecard-overview-row--header > span {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorecard-summary-hole {
  display: grid;
  grid-column: 1 / 5;
  min-width: 0;
  height: 100%;
  grid-template-columns: subgrid;
  align-items: center;
  border-radius: var(--app-radius-compact);
  color: var(--social-muted);
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.scorecard-summary-hole:active {
  background: rgba(0, 120, 86, 0.07);
}

.scorecard-summary-hole:focus-visible {
  outline: 2px solid var(--social-green);
  outline-offset: -2px;
}

.scorecard-summary-hole > strong {
  color: var(--social-ink);
  font-size: 19px;
  line-height: 23px;
  font-weight: 700;
  text-align: center;
}

.scorecard-summary-hole > span {
  color: var(--social-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.scorecard-summary-score {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  justify-self: center;
  padding: 0;
  border: 1px solid rgba(28, 49, 42, 0.16);
  border-radius: var(--app-radius-control);
  background: rgba(255, 255, 255, 0.72);
  color: var(--social-ink);
  transition: background-color 100ms ease, border-color 100ms ease, transform 100ms ease;
}

.scorecard-summary-score > .handicap-stroke-indicator {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 50%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
}

.scorecard-summary-score > .handicap-stroke-indicator .handicap-stroke-dot {
  width: 4px;
  height: 4px;
}

.scorecard-summary-score:active {
  border-color: rgba(0, 120, 86, 0.35);
  background: rgba(0, 120, 86, 0.08);
  transform: scale(0.96);
}

.scorecard-summary-score:focus-visible {
  outline: 2px solid var(--social-green);
  outline-offset: 2px;
}

.scorecard-overview-table--locked .scorecard-summary-score:disabled {
  border-color: rgba(28, 49, 42, 0.08);
  background: #f1f2ef;
  color: #68706b;
  cursor: default;
  opacity: 0.82;
}

.scorecard-summary-score__value.score-selection-indicator {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scorecard-overview-row--subtotal {
  height: 50px;
  border-top: 2px solid rgba(60, 60, 67, 0.18);
  background: #f3f4f1;
  color: var(--social-muted);
  font-size: 13px;
  font-weight: 700;
}

.scorecard-overview-row + .scorecard-overview-row--back-nine-start {
  border-top: 2px solid rgba(60, 60, 67, 0.18);
}

.scorecard-overview-row--total {
  height: 52px;
  border-top: 2px solid rgba(0, 67, 35, 0.22);
  background: #e7f1eb;
  color: var(--social-green-dark);
  font-size: 14px;
  font-weight: 800;
}

.scorecard-overview-row.is-active {
  background: #eff8f3;
}

.scorecard-overview-row.is-active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--social-green);
  content: "";
}

.scorecard-overview-row.is-active .scorecard-summary-hole > strong {
  color: var(--social-green-dark);
  font-weight: 800;
}

body.scorecard-editor-open {
  overflow: hidden;
}

.scorecard-editor-dialog {
  width: 100%;
  max-width: var(--app-shell-width);
  height: 100%;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--social-ink);
}

.scorecard-editor-dialog::backdrop {
  background: rgba(7, 31, 25, 0.42);
  backdrop-filter: blur(2px);
}

.scorecard-editor-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: var(--app-radius-sheet) var(--app-radius-sheet) 0 0;
  background: var(--social-white);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.14);
}

.scorecard-editor-sheet__grabber {
  width: 36px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.22);
}

.scorecard-editor-sheet__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--social-muted);
}

.scorecard-editor-sheet__title {
  margin: 0;
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 27px;
  font-weight: 750;
}

.scorecard-editor-sheet__meta {
  margin: 2px 0 18px;
  color: var(--social-muted);
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
}

.scorecard-editor-sheet__player {
  margin: 0 0 10px;
  color: var(--social-green-dark);
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scorecard-editor-stepper {
  display: grid;
  width: 100%;
  height: 56px;
  grid-template-columns: 1fr 72px 1fr;
  overflow: hidden;
  border: 1px solid rgba(35, 45, 40, 0.2);
  border-radius: var(--app-radius-control);
  background: var(--surface-secondary);
}

.scorecard-editor-stepper__button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #4d5551;
  font-size: 18px;
}

.scorecard-editor-stepper__button--increase {
  color: var(--social-green);
}

.scorecard-editor-stepper__button:active {
  background: rgba(0, 120, 86, 0.08);
}

.scorecard-editor-stepper__button:focus-visible {
  outline: 2px solid var(--social-green);
  outline-offset: -2px;
}

.scorecard-editor-stepper__input.score-selection-indicator {
  align-self: center;
  width: 38px;
  height: 38px;
  justify-self: center;
  padding: 0;
  background: var(--social-white);
  color: var(--social-ink);
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 34px;
  font-weight: 750;
  text-align: center;
  appearance: textfield;
  pointer-events: none;
}

.scorecard-editor-stepper__input::-webkit-inner-spin-button,
.scorecard-editor-stepper__input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.scorecard-editor-form__save {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: var(--app-radius-control);
  background: var(--social-green);
  color: var(--social-white);
  font-size: 16px;
  line-height: 20px;
  font-weight: 750;
}

@media (max-width: 340px) {
  #scorecard_overview_content {
    margin-right: 8px;
    margin-left: 8px;
  }

  .scorecard-summary-grid {
    grid-template-columns: 34px 30px 50px 32px repeat(var(--scorecard-player-count), 48px);
  }

  .scorecard-overview-row {
    padding-right: 8px;
    padding-left: 8px;
  }

  .scorecard-summary-hole { font-size: 12px; }
}

/* iOS Safari and WKWebView zoom focused controls whose text is below 16px. */
@media (max-width: 767px), (pointer: coarse) {
  input:not([type="button"]):not([type="checkbox"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="radio"]):not([type="range"]):not([type="reset"]):not([type="submit"]),
  select,
  textarea {
    font-size: max(16px, 1em) !important;
  }
}

/* The live screen uses the same safe-area-aware masthead height as the rest of
   the app. Keep safe-area space inside the header instead of stacking it above. */
.ios-screen.app-main.leaderboard-main {
  --leaderboard-masthead-height: calc(var(--app-top-masthead-height) + 10px);
  padding-top: 0;
  background-image:
    radial-gradient(circle at calc(100% + 56px) -48px, transparent 0 88px, rgba(114, 207, 124, 0.055) 89px 126px, transparent 127px 158px, rgba(255, 255, 255, 0.025) 159px 194px, transparent 195px),
    radial-gradient(circle, transparent 0 82px, rgba(242, 201, 76, 0.065) 83px 84px, transparent 85px 118px, rgba(0, 67, 35, 0.055) 119px 120px, transparent 121px),
    radial-gradient(circle, transparent 0 102px, rgba(0, 67, 35, 0.06) 103px 104px, transparent 105px 138px, rgba(242, 201, 76, 0.055) 139px 140px, transparent 141px),
    linear-gradient(to bottom, var(--template-green-deep) 0 var(--leaderboard-masthead-height), var(--leaderboard-page) var(--leaderboard-masthead-height) 100%);
}

.leaderboard-main .live-event-header {
  box-sizing: border-box;
  height: var(--leaderboard-masthead-height);
  min-height: var(--leaderboard-masthead-height);
  max-height: var(--leaderboard-masthead-height);
  grid-template-rows: 40.5px 17px;
  align-content: start;
  row-gap: 3px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 8px;
}
