/* ===== Live scoreboard: full page /scores/ and the compact strip under the homepage game tiles ===== */
.activity { padding: 26px 0 8px; }
.activity[hidden] { display: none; }
.activity .section-title {
  font-family: "Kaushan Script", cursive; font-weight: 400; letter-spacing: 0; line-height: 1.2;
  font-size: clamp(1.6rem, 5vw, 2.1rem); background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--pink); text-shadow: 0 2px 14px rgba(224, 24, 92, .35);
}
.activity .section-sub { margin: 0 0 14px; font-size: .9rem; color: var(--pink-hi); opacity: .85; }
.act-live { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-weight: 700; color: var(--pink); }
.act-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4f7e; box-shadow: 0 0 0 0 rgba(255, 79, 126, .7); animation: act-pulse 1.8s infinite; }
@keyframes act-pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 79, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 126, 0); } }
.act-example { display: inline-block; margin-left: 6px; padding: .1em .6em; border-radius: 999px; background: var(--gold-grad); color: #2a1a05; font: 700 .7rem/1.6 system-ui, sans-serif; letter-spacing: .08em; vertical-align: middle; opacity: 1; }

/* stat tiles */
.act-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.act-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px;
  padding: 12px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; overflow: hidden;
}
.act-tile b { font: 800 clamp(1.7rem, 6vw, 2.3rem)/1.05 "Fraunces", Georgia, serif; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.act-tile span { font-size: .8rem; color: var(--muted); line-height: 1.25; }
.act-tile .act-big-script { font-family: "Kaushan Script", cursive; font-weight: 400; font-size: clamp(1.25rem, 4.6vw, 1.6rem); color: var(--pink); line-height: 1.15; }
.act-vs-bar { display: flex; width: 100%; max-width: 180px; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .08); margin: 4px 0 6px; }
.act-vs-bar i { display: block; height: 100%; transition: width .6s ease; }
.act-vs-bar .her { background: linear-gradient(90deg, var(--rose), var(--pink)); }
.act-vs-bar .him { background: linear-gradient(90deg, var(--blue), var(--blue-dk)); }
.act-vs-nums { font: 700 1rem/1.2 "Fraunces", Georgia, serif; }
.act-vs-nums .her { color: var(--pink); } .act-vs-nums .him { color: var(--blue-hi); }

/* recent results ticker */
.act-ticker {
  position: relative; margin: 12px 0 0; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.act-track { display: flex; width: max-content; gap: 0; animation: act-scroll var(--act-dur, 40s) linear infinite; }
.act-ticker:hover .act-track, .act-ticker:focus-within .act-track { animation-play-state: paused; }
@keyframes act-scroll { to { transform: translateX(-50%); } }
.act-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px 9px 0; white-space: nowrap; font-size: .88rem; color: var(--text); }
.act-item::before { content: "\2665"; color: var(--rose); padding-left: 22px; font-size: .8rem; }
.act-item .g { font-family: "Kaushan Script", cursive; color: var(--pink); font-size: 1rem; }
.act-item .w-her { color: var(--pink-hi); } .act-item .w-him { color: var(--blue-hi); }
.act-item .meta { color: var(--muted); font-size: .78rem; }
.act-item .nick { padding: .05em .55em; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-hi); font-size: .74rem; }
@media (prefers-reduced-motion: reduce) {
  .act-track { animation: none; }
  .act-ticker { overflow-x: auto; scrollbar-width: none; }
  .act-track .act-dup { display: none; }
  .act-live::before { animation: none; }
}

/* leaderboards */
.act-boards-title { margin: 18px 0 8px; text-align: center; font: 600 .8rem/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.act-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.act-board { padding: 10px 12px 8px; border-radius: 14px; background: rgba(24, 14, 20, .6); border: 1px solid rgba(255, 255, 255, .1); }
.act-board h3 { margin: 0 0 4px; text-align: center; font-family: "Kaushan Script", cursive; font-weight: 400; font-size: 1.15rem; color: var(--pink); }
.act-board ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.act-board li { counter-increment: r; display: grid; grid-template-columns: 1.3em minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .84rem; }
.act-board li:first-child { border-top: 0; }
.act-board li::before { content: counter(r); color: var(--gold); font-weight: 700; }
.act-board .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-board .s { color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.act-board .s .her { color: var(--pink-hi); } .act-board .s .him { color: var(--blue-hi); }
.act-board .empty { margin: 4px 0 6px; text-align: center; color: var(--muted); font-size: .8rem; }

.act-foot { margin: 14px auto 0; max-width: 46em; text-align: center; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.act-foot label { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--pink-hi); cursor: pointer; white-space: nowrap; }
.act-foot input { accent-color: var(--rose); width: 16px; height: 16px; margin: 0; }

@media (max-width: 639px) {
  .act-boards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
  .act-boards::-webkit-scrollbar { display: none; }
  .act-board { scroll-snap-align: start; }
  .act-tile { min-height: 84px; }
}
@media (min-width: 760px) {
  .act-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .act-tile { min-height: 110px; }
}
/* Empty state (no games yet this week) */
.act-vs-bar.is-empty i { opacity: .35; }
.act-ticker.is-empty { -webkit-mask-image: none; mask-image: none; }
.act-ticker.is-empty .act-track { width: 100%; justify-content: center; }
.act-item.act-empty { color: var(--text, #fff); font-weight: 600; }
.activity [hidden] { display: none !important; }   /* e.g. the EXAMPLE DATA badge must really disappear */

/* /scores/ page */
.scores { width: min(1120px, 100%); margin: 0 auto; padding: 8px 16px 10px; }
.scores .activity { padding-top: 18px; }
.scores .activity .section-title { margin: 0 0 4px; font-size: clamp(2rem, 8vw, 2.8rem); }
.act-unavailable { margin: 40px auto; text-align: center; color: var(--muted); }
.act-back { margin: 22px 0 6px; text-align: center; }

/* homepage compact strip */
.act-mini { padding: 18px 0 4px; }
.act-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.act-mini-title { margin: 0; font: 400 clamp(1.3rem, 4.6vw, 1.6rem)/1.2 "Kaushan Script", cursive; color: var(--pink); }
.act-mini-title .act-live { font: 700 .8rem/1 system-ui, sans-serif; vertical-align: middle; margin-right: 6px; }
.act-more { font-weight: 600; font-size: .9rem; color: var(--gold-hi); text-decoration: none; white-space: nowrap; }
.act-more:hover { text-decoration: underline; }
.act-mini-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.act-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; min-width: 0; }
.act-chip b { font: 800 1.35rem/1.1 "Fraunces", Georgia, serif; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.act-chip span { font-size: .74rem; color: var(--muted); line-height: 1.2; }
.act-chip .act-vs-nums { font-size: .98rem; color: var(--text); white-space: nowrap; }
.act-mini .act-ticker { margin-top: 8px; }
.act-mini .act-item { padding-top: 7px; padding-bottom: 7px; font-size: .84rem; }
