/* ============ COURSE TICKER ============ */
.ticker-strip {
  position: relative;
  padding: 28px 0;
  background: var(--bone-2);
  overflow: hidden;
}
.ticker-strip::before, .ticker-strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--fairway);
  opacity: 0.45;
}
.ticker-strip::before { top: 0; }
.ticker-strip::after { bottom: 0; }
.ticker-strip > .fade-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bone-2) 0%, transparent 8%, transparent 92%, var(--bone-2) 100%);
  pointer-events: none;
  z-index: 2;
}
.ticker-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--fairway);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
  font-weight: 600;
}
.ticker-label .green { color: var(--green-live); }
.ticker-track-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  white-space: nowrap;
}
.ticker-item .routing {
  width: 28px; height: 28px;
  flex-shrink: 0;
  opacity: 0.85;
}
.ticker-item .routing svg { width: 100%; height: 100%; overflow: visible; }
.ticker-item .nm {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  color: var(--fairway);
}
.ticker-item .city {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fairway-faint);
  text-transform: uppercase;
  margin-left: -6px;
  opacity: 0;
  transition: opacity 0.4s var(--ui-curve);
}
.ticker-strip:hover .city { opacity: 1; }
.flag-sep {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--green-live);
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 700px) {
  .ticker-item .nm { font-size: 22px; }
  .ticker-item { gap: 12px; padding: 0 14px; }
  .ticker-track { animation-duration: 30s; }
}

/* ============ SCORECARD (Section 01) ============ */
.scorecard {
  position: relative;
  padding: 30px;
  background: var(--bone);
  border: 1.5px solid var(--fairway);
  border-radius: 6px;
}
.scorecard::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  pointer-events: none;
}
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  gap: 16px;
}
.sc-hole {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fairway);
  text-transform: uppercase;
  font-weight: 600;
}
.sc-hole .num-big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--fairway);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 1;
}
.sc-hole .par { color: var(--fairway-dim); }

.pin-flag {
  width: 30px; height: 36px;
}
.pin-flag .pole { stroke: var(--fairway); stroke-width: 1.6; fill: none; }
.pin-flag .flag {
  fill: var(--pin);
  stroke: var(--fairway);
  stroke-width: 1;
  transform-origin: 8px 6px;
  animation: flagWave 2.2s ease-in-out infinite;
}
@keyframes flagWave {
  0%, 100% { d: path("M 8 4 Q 18 6 22 4 Q 18 8 22 12 Q 18 10 8 12 Z"); }
  50% { d: path("M 8 4 Q 18 2 22 6 Q 16 8 22 10 Q 14 12 8 12 Z"); }
}
.scorecard:hover .pin-flag .flag { animation-duration: 1.1s; }

.sc-course {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--fairway-dim);
  text-align: right;
}
.sc-course em { font-style: italic; color: var(--fairway); }

.sc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 26px;
}
.sc-result .label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 72px;
  letter-spacing: -0.035em;
  color: var(--green-live);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.sc-result .meta { text-align: right; }
.sc-result .meta .strokes {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 56px;
  font-weight: 500;
  color: var(--fairway);
  line-height: 1;
  letter-spacing: -0.03em;
}
.sc-result .meta .strokes-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fairway-faint);
  text-transform: uppercase;
  margin-top: 8px;
}

.sc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.sc-stats > div {
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--hair);
}
.sc-stats > div:last-child { border-right: none; }
.sc-stats .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fairway-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.sc-stats .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fairway);
}
.sc-stats .v.green { color: var(--green-live); }

.sc-holes {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}
.sc-holes .dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fairway-faint);
  background: var(--bone-3);
  border: 1px solid var(--hair);
  font-weight: 600;
}
.sc-holes .dot.played {
  color: var(--fairway);
  background: var(--bone);
  border-color: var(--fairway);
}
.sc-holes .dot.current {
  background: var(--green-live);
  color: var(--fairway);
  border-color: var(--green-live);
  box-shadow: 0 0 0 3px rgba(47, 182, 124, 0.25);
}

/* ============ BROADCAST LEADERBOARD (Section 02) ============ */
.bcast {
  position: relative;
  background: var(--bone);
  border: 1.5px solid var(--fairway);
  border-radius: 6px;
  overflow: hidden;
}
.bcast::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  pointer-events: none;
  z-index: 4;
}
.bcast-chyron {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--fairway);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.bcast-chyron .left { display: inline-flex; align-items: center; gap: 14px; }
.bcast-chyron .live-mini {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.bcast-chyron .sep {
  width: 1px; height: 12px;
  background: rgba(244, 239, 227, 0.3);
}
.bcast-chyron .clock {
  color: var(--green-glow);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

.bcast-title-row {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--hair);
}
.bcast-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fairway);
  font-variation-settings: "opsz" 144;
  line-height: 1;
}
.bcast-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fairway-dim);
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}

.bcast-table {
  padding: 4px 0 6px;
  position: relative;
}
.bcast-table-head, .bcast-row {
  display: grid;
  grid-template-columns: 56px 1fr 110px 80px;
  gap: 12px;
  padding: 14px 24px;
  align-items: center;
}
.bcast-table-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fairway-faint);
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--hair);
}
.bcast-row {
  border-bottom: 1px solid var(--hair);
  position: relative;
  transition: transform 0.7s var(--snap), background 0.4s var(--ui-curve);
}
.bcast-row:last-child { border-bottom: none; }
.bcast-row.you {
  background: rgba(47, 182, 124, 0.1);
}
.bcast-row.you::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--green-live);
  box-shadow: 0 0 10px rgba(47, 182, 124, 0.5);
}
.bcast-row .pos {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  color: var(--fairway);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bcast-row .move {
  display: inline-block;
  font-size: 10px;
  color: var(--green-live);
  opacity: 0;
  transition: opacity 0.6s var(--ui-curve);
}
.bcast-row.moved .move { opacity: 1; }
.bcast-row .name {
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--fairway);
  font-weight: 500;
}
.bcast-row .score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 500;
  text-align: right;
  color: var(--fairway);
  letter-spacing: -0.02em;
}
.bcast-row.you .score { color: var(--green-live); }
.bcast-row .thru {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  color: var(--fairway-dim);
  text-align: right;
  font-weight: 500;
}

/* split-flap */
.flip {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 1.3em;
  text-align: right;
}
.flip-inner { display: inline-block; transition: transform 0.5s var(--snap); }
.flip.flipping .flip-inner { animation: flipFall 0.4s var(--snap); }
@keyframes flipFall {
  0% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(-100%); opacity: 0; }
  55% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* tournament clubhouse 3D tilt */
.clubhouse-stage {
  perspective: 1500px;
  position: relative;
}
.clubhouse-stage .bcast {
  transform: rotateY(6deg) rotateX(3deg);
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 1px var(--fairway),
    -20px 30px 50px rgba(14, 61, 42, 0.18),
    -8px 12px 30px rgba(14, 61, 42, 0.12);
}
.clubhouse-stage .bcast-chyron {
  background: var(--fairway);
}
@media (max-width: 1100px) {
  .clubhouse-stage .bcast { transform: rotateY(4deg) rotateX(2deg); }
}

/* ============ CLUBHOUSE FEED (Section 03) ============ */
.feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feed-card {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  background: var(--bone);
  border: 1.5px solid var(--fairway);
  border-radius: 6px;
  transition: transform 0.4s var(--ui-curve), box-shadow 0.4s var(--ui-curve);
}
.feed-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  pointer-events: none;
}
.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(47, 182, 124, 0.18);
}
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--bone);
  background: var(--fairway);
  flex-shrink: 0;
  position: relative;
}
.avatar.live::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--green-live);
  border-right-color: transparent;
  animation: ringSpin 2.4s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.feed-body { flex: 1; min-width: 0; }
.feed-row1 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  color: var(--fairway-faint);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 600;
  flex-wrap: wrap;
}
.feed-row1 .nm {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--fairway);
  font-weight: 600;
}
.feed-row1 .where { color: var(--fairway-faint); }
.feed-row1 .tag {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  color: var(--green-live);
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.feed-row1 .flag-inline {
  width: 14px; height: 18px;
  display: inline-block;
  vertical-align: middle;
}
.feed-msg {
  font-size: 14.5px;
  color: var(--fairway-dim);
}
.feed-msg em { font-style: italic; font-family: var(--serif); color: var(--fairway); }
.feed-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green-live);
  color: var(--fairway);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--fairway);
  transition: transform 0.3s var(--ui-curve);
}
.feed-btn:hover { transform: translateY(-1px); background: var(--green-glow); }
.feed-btn.outline {
  background: transparent;
  color: var(--fairway);
}
.feed-btn.outline:hover { background: var(--fairway); color: var(--bone); }

/* section 04 inline 90s countdown */
.countdown {
  display: inline-block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  font-size: 0.42em;
  background: var(--green-live);
  color: var(--fairway);
  padding: 6px 12px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.4s var(--ui-curve);
}
.countdown.on { opacity: 1; }
