/* Bullseye Estimate on the CogniBump Arcade look (/shared/cb-arcade.css). Linked after
   cb-arcade.css. Teal accent; a chunky slider with a filled track and a target thumb, a big
   live readout, and on reveal two pins on the track (your guess vs the answer). */
body.cb-bullseye { --cbx-accent: #0e7490; }
body.cbx.cb-bullseye main { display: block; }
/* the page body is a flex column (sticky footer); auto side margins would shrink these to fit */
.cbx .be-wrap, .cbx .be-stage { width: 100%; }
/* the kit's `.cbx a` accent colour would otherwise paint the dark site header/footer links */
.cbx .cb-header a, .cbx .cb-nav a, .cbx .cb-menu-trigger { color: #fff; }
.cbx .cb-footer a { color: inherit; }

.cbx .be-wrap { padding-bottom: 0; }
.cbx .be-stage { max-width: 720px; margin: 0 auto; padding: 0 16px 8px; }
.cbx .be-card { scroll-margin-top: 70px; }

/* ---- top line + countdown ---- */
.cbx .be-label { font: 900 13px var(--cbx-body); letter-spacing: .12em; text-transform: uppercase; color: var(--cbx-muted); }
.cbx .be-timer {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font: 900 15px var(--cbx-body);
  font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--cbx-accent) 12%, #fff); color: color-mix(in srgb, var(--cbx-accent) 78%, #000);
}
.cbx .be-timer::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.cbx .be-timer.low { background: var(--cbx-bad-soft); color: #a32b22; animation: be-pulse 1s ease-in-out infinite; }
@keyframes be-pulse { 50% { transform: scale(1.06); } }
.cbx .be-bar { margin: 0 0 12px; }
.cbx .be-bar > span { width: 100%; transition: width 1s linear; }
.cbx #prompt { color: var(--cbx-ink); }
.cbx .be-unit { margin: -6px 0 6px; }

/* ---- the slider ---- */
.cbx .be-slider-wrap { margin: 8px 0 6px; }
.cbx .be-readout { text-align: center; margin: 0 0 8px; }
.cbx .be-value {
  display: inline-block; min-width: 140px; padding: 8px 18px 10px; border-radius: 18px; background: var(--cbx-paper);
  box-shadow: inset 0 0 0 2px var(--cbx-line); font: 900 clamp(28px, 8vw, 40px)/1 var(--cbx-display); color: var(--cbx-ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.cbx .be-track { position: relative; padding: 14px 0 6px; }
.cbx .be-slider {
  --p: 50%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y;
}
.cbx .be-slider:active { cursor: grabbing; }
.cbx .be-slider:focus-visible { outline: none; }
.cbx .be-slider::-webkit-slider-runnable-track {
  height: 14px; border-radius: 99px;
  background: linear-gradient(90deg, var(--cbx-accent) 0 var(--p), var(--cbx-soft) var(--p) 100%);
  box-shadow: inset 0 2px 3px rgba(42,29,23,.12);
}
.cbx .be-slider::-moz-range-track { height: 14px; border-radius: 99px; background: var(--cbx-soft); box-shadow: inset 0 2px 3px rgba(42,29,23,.12); }
.cbx .be-slider::-moz-range-progress { height: 14px; border-radius: 99px; background: var(--cbx-accent); }
.cbx .be-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 40px; height: 40px; margin-top: -13px; border-radius: 50%; border: 0;
  background:
    radial-gradient(circle, var(--cbx-bad) 0 4px, #fff 4.5px 8px, var(--cbx-bad) 8.5px 12px, #fff 12.5px 100%);
  box-shadow: 0 0 0 3px var(--cbx-ink), 0 6px 12px rgba(42,29,23,.3);
  transition: transform .12s;
}
.cbx .be-slider::-moz-range-thumb {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--cbx-ink);
  background: radial-gradient(circle, var(--cbx-bad) 0 4px, #fff 4.5px 8px, var(--cbx-bad) 8.5px 11px, #fff 11.5px 100%);
  box-shadow: 0 6px 12px rgba(42,29,23,.3);
}
.cbx .be-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.cbx .be-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--cbx-ink), 0 0 0 7px color-mix(in srgb, var(--cbx-accent) 40%, transparent); }
.cbx .be-slider:disabled { cursor: default; }
.cbx .be-slider:disabled::-webkit-slider-thumb { opacity: .9; }
.cbx .be-ends { display: flex; justify-content: space-between; gap: 8px; font: 800 13px var(--cbx-body); color: var(--cbx-muted); font-variant-numeric: tabular-nums; }
.cbx .be-hint { color: color-mix(in srgb, var(--cbx-accent) 78%, #000); text-align: center; }

/* reveal pins: drop onto the track over your guess and the real answer (the thumb steps aside) */
.cbx .be-track.revealed { padding: 30px 0 36px; }
.cbx .be-track.revealed .be-slider::-webkit-slider-thumb { opacity: 0; }
.cbx .be-track.revealed .be-slider::-moz-range-thumb { opacity: 0; }
.cbx .be-marks { position: absolute; inset: 0 20px; pointer-events: none; }
.cbx .be-mark { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; animation: be-drop .5s cubic-bezier(.2,1.4,.4,1) both; }
.cbx .be-mark i { width: 4px; height: 34px; border-radius: 4px; background: currentColor; }
.cbx .be-mark b { padding: 2px 9px; border-radius: 99px; font: 900 12px var(--cbx-body); letter-spacing: .04em; color: #fff; white-space: nowrap; }
.cbx .be-mark-guess { color: var(--cbx-ink); }
.cbx .be-mark-guess b { order: -1; background: var(--cbx-ink); }
.cbx .be-mark-guess::after { content: ''; position: absolute; top: 44px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--cbx-ink); }
.cbx .be-mark-answer { color: #136b3b; top: 52px; animation-delay: .25s; }
.cbx .be-mark-answer b { background: #136b3b; }
.cbx .be-mark-answer::before { content: ''; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, var(--cbx-bad) 0 3px, #fff 3.5px 6px, var(--cbx-bad) 6.5px 100%); box-shadow: 0 0 0 3px #fff, 0 3px 6px rgba(42,29,23,.3); z-index: 1; }
@keyframes be-drop { from { opacity: 0; transform: translate(-50%, -14px); } }
.cbx .be-actions [hidden] { display: none; }
.cbx .be-value small { display: block; margin-top: 4px; font: 900 14px var(--cbx-body); letter-spacing: .04em; color: var(--cbx-muted); }

.cbx .be-actions { margin-top: 12px; }

/* ---- results ---- */
.cbx .be-result { margin-top: 14px; padding-top: 6px; border-top: 2px solid var(--cbx-soft); }
.cbx .be-result .cbx-big small { font-size: .42em; }
.cbx .be-result.be-timed-out .cbx-kicker { color: #a32b22; }
.cbx .be-result .cbx-chips b { overflow-wrap: anywhere; }
.cbx .be-countdown { text-align: center; font-weight: 900; font-size: 14px; color: var(--cbx-good); margin: 8px 0 0; }
.cbx .be-countdown:empty { display: none; }
.cbx .cb-post-game-bar.hidden { display: none; }

/* ---- reading ---- */
.cbx .be-note { max-width: 688px; margin: 14px auto 0; text-align: center; }
.cbx .be-read { margin-top: 18px; }
.cbx .be-read h3 { margin-top: 16px; }
.cbx .be-read p { margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .cbx .be-bar > span { transition: none; }
}
