/* banner-v1 (owner, 26 Nov 2026, design A "Gold prize"): the ScoreProb Challenge strip under the site header on the
   home pages, and the card sp-chb.js puts in the middle of every other public page. See partials/challenge-banner. */

/* ---- the strip (phones: part of the fixed header, folds away with it while scrolling down) ---- */
html .sp-chb { display: block; background: #0b1220; border-bottom: 2px solid #f5c451; color: #ffffff; }
html .sp-chb-in { background: #0b1220; }
html .sp-chb .sp-chb-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px 8px 12px; }
html .sp-chb .sp-chb-ico {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: #2a2412; border: 1.5px solid #f5c451; color: #f5c451; box-sizing: border-box;
}
html .sp-chb .sp-chb-ico svg { width: 19px; height: 19px; display: block; }
html .sp-chb a.sp-chb-txt {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px;
  color: #ffffff !important; text-decoration: none !important; background: none; padding: 0;
}
html .sp-chb .sp-chb-kick {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #f5c451; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html .sp-chb .sp-chb-t { font-size: 14px; font-weight: 800; line-height: 1.25; color: #ffffff; }
html .sp-chb .sp-chb-gold, html .sp-chc .sp-chb-gold { color: #f5c451; }
html .sp-chb .sp-chb-sub { display: none; }
html .sp-chb a.sp-chb-btn {
  flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  background-color: #f5c451; color: #1a1405 !important; font-size: 13px; font-weight: 800; line-height: 1;
  text-decoration: none !important; white-space: nowrap; border: 0;
}
html .sp-chb .sp-chb-btn-l { display: none; }
html .sp-chb button.sp-chb-x {
  flex: none; display: grid; place-items: center; width: 40px; height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: #a9b6cc; cursor: pointer; box-shadow: none;
}
html .sp-chb button.sp-chb-x svg { width: 16px; height: 16px; display: block; }
html .sp-chb button.sp-chb-x:hover { color: #ffffff; }
html .sp-chb a:focus-visible, html .sp-chb button:focus-visible, html .sp-chc a:focus-visible { outline: 2px solid #f5c451; outline-offset: 2px; }
html[data-theme="dark"] .sp-chb, html[data-theme="dark"] .sp-chb-in { background: #141d30; }
html[data-theme="dark"] .sp-chb { border-top: 1px solid #3a3115; }
.sp-chb-space { display: none; }

@media (max-width: 760px) {
  html.sh-down .sp-chb { display: none; }
}
@media (max-width: 359px) {
  html .sp-chb .sp-chb-kick { display: none; }
  html .sp-chb .sp-chb-t { font-size: 13px; }
}

/* ---- desktop: hangs under the sticky header (a spacer keeps its room at the top of the page) and slides away
        while scrolling down, back on the way up (sp-chb.js sets html.chb-hide) ---- */
@media (min-width: 761px) {
  html .sp-chb {
    position: absolute; left: 0; right: 0; top: 100%; z-index: -1; overflow: hidden; pointer-events: none;
    background: none; border: 0;
  }
  html[data-theme="dark"] .sp-chb { background: none; border: 0; }
  html .sp-chb-in {
    pointer-events: auto; border-bottom: 2px solid #f5c451;
    transform: translateY(0); transition: transform .26s ease, visibility .26s;
  }
  html[data-theme="dark"] .sp-chb-in { border-top: 1px solid #3a3115; }
  html.chb-hide .sp-chb-in { transform: translateY(-105%); visibility: hidden; }
  html .sp-chb .sp-chb-row {
    width: min(1180px, calc(100% - 40px)); margin: 0 auto; height: 56px; padding: 0; gap: 14px; box-sizing: border-box;
  }
  html .sp-chb a.sp-chb-txt { flex-direction: row; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; }
  html .sp-chb .sp-chb-kick { flex: none; font-size: 11px; letter-spacing: .08em; overflow: visible; }
  html .sp-chb .sp-chb-t { flex: none; font-size: 16px; }
  html .sp-chb .sp-chb-sub {
    display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    font-size: 13.5px; font-weight: 500; color: #a9b6cc;
  }
  html .sp-chb a.sp-chb-btn { height: 40px; padding: 0 18px; font-size: 14px; }
  html .sp-chb .sp-chb-btn-s { display: none; }
  html .sp-chb .sp-chb-btn-l { display: inline; }
  .sp-chb-space { display: block; height: 58px; }
}
@media (min-width: 761px) and (max-width: 1499px) {
  html .sp-chb .sp-chb-sub { display: none; }
}
@media (min-width: 761px) and (max-width: 920px) {
  html .sp-chb .sp-chb-kick { display: none; }
  html .sp-chb .sp-chb-btn-s { display: inline; }
  html .sp-chb .sp-chb-btn-l { display: none; }
}

/* ---- the card in the middle of other pages ---- */
html .sp-chc {
  box-sizing: border-box; width: 100%; max-width: 720px; margin: 24px auto; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  background: #0b1220; border: 1.5px solid #f5c451; border-radius: 18px; color: #ffffff;
}
html .sp-chc .sp-chc-top { display: flex; align-items: center; gap: 12px; }
html .sp-chc .sp-chc-ico {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: #2a2412; border: 1.5px solid #f5c451; color: #f5c451; box-sizing: border-box;
}
html .sp-chc .sp-chc-ico svg { width: 25px; height: 25px; display: block; }
html .sp-chc .sp-chc-kick { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f5c451; }
html .sp-chc p.sp-chc-t { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #ffffff; }
html .sp-chc p.sp-chc-p { margin: 0; font-size: 14px; line-height: 1.45; color: #c9d3e4; }
html .sp-chc .sp-chc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html .sp-chc a.sp-chc-btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 12px;
  background-color: #f5c451; color: #1a1405 !important; font-size: 15px; font-weight: 800; text-decoration: none !important;
}
html .sp-chc .sp-chc-note { font-size: 12.5px; color: #a9b6cc; }
@media (min-width: 761px) {
  html .sp-chc { padding: 22px 26px; }
  html .sp-chc p.sp-chc-t { font-size: 26px; }
}

/* ---- the shine on the gold buttons ---- */
@keyframes spChbShine { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
html .sp-chb-shine {
  background-image: linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 65%);
  background-size: 250% 100%; background-repeat: no-repeat; animation: spChbShine 3.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html .sp-chb-shine { animation: none; }
  html .sp-chb-in { transition: none; }
}

/* ---- hidden: × pressed in the last 7 days, or a Challenge name already reserved in this browser ---- */
/* reminder-v1 (29 Nov 2026): players (sp-ch-in) see the "today's card" variants (.is-pl, live only) instead;
   html.sp-chb-pl-off hides those for the day (a call made on today's card, or × pressed today) */
html.sp-chb-off:not(.sp-ch-in) .sp-chb:not(.is-pl), html.sp-chb-off:not(.sp-ch-in) .sp-chb-space:not(.is-pl),
html.sp-ch-in .sp-chb:not(.is-pl), html.sp-ch-in .sp-chb-space:not(.is-pl), html.sp-ch-in .sp-chc:not(.is-pl),
html:not(.sp-ch-in) .sp-chb.is-pl, html:not(.sp-ch-in) .sp-chb-space.is-pl, html:not(.sp-ch-in) .sp-chc.is-pl,
html.sp-chb-pl-off .sp-chb.is-pl, html.sp-chb-pl-off .sp-chb-space.is-pl, html.sp-chb-pl-off .sp-chc.is-pl { display: none !important; }
