/* SportsBadger: Badger Blitz (play/blitz.html). Loaded after sb.css and sb-play.css. Phone first. */

/* ---------- intro ---------- */
.blz-intro { text-align: center; padding: 18px 0 8px; display: grid; justify-items: center; gap: 10px; }
.blz-dial {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 6px solid var(--turf); background: var(--surface); box-shadow: 0 0 0 6px color-mix(in srgb, var(--turf) 14%, transparent);
}
.blz-dial b { font: 700 3.6rem/.9 var(--font-display); }
.blz-dial small { font: 600 .75rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.blz-intro h2 { font-size: 2.1rem; text-transform: uppercase; margin-top: 6px; }
.blz-intro > p { margin: 0; max-width: 34ch; color: var(--muted); }
.blz-intro > p b { color: var(--ink); }
.blz-start { width: 100%; margin-top: 8px; }
.blz-fine { font-size: .9rem; }

.blz-count { min-height: 320px; display: grid; place-items: center; }
.blz-count b { font: 700 7rem/1 var(--font-display); color: var(--turf); animation: blz-pop .5s ease-out; }
@keyframes blz-pop { from { transform: scale(1.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- the run ---------- */
.blz-run { padding-top: 6px; }
.blz-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.blz-clock { display: grid; justify-items: start; line-height: 1; }
.blz-num { position: relative; }
.blz-clock b { font: 700 3.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; transition: color .2s; }
.blz-clock small { font: 600 .75rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.blz-clock.low b { color: var(--loss); }
.blz-pen {
  position: absolute; left: calc(100% + 6px); top: 4px; font: 700 1.3rem/1 var(--font-display); color: var(--loss); opacity: 0;
  white-space: nowrap;
}
.blz-clock.hit b { animation: blz-hit .45s ease-out; }
.blz-clock.hit .blz-pen { animation: blz-pen .9s ease-out; }
@keyframes blz-hit { 30% { color: var(--loss); transform: translateX(-3px); } 60% { transform: translateX(3px); } }
@keyframes blz-pen { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-14px); } }
.blz-score { display: grid; justify-items: center; line-height: 1; }
.blz-score b { font: 700 3.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.blz-score small, .blz-streak { font: 600 .75rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.blz-streak { justify-self: end; text-align: right; align-self: center; }
.blz-streak b { display: inline-block; font: 700 1.5rem/1 var(--font-display); color: var(--win); margin-right: 2px; }
.blz-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 9%, transparent); margin: 10px 0 16px; overflow: hidden; }
.blz-bar i { display: block; height: 100%; width: 100%; background: var(--turf); border-radius: 3px; transition: width .1s linear; }

.blz-q { position: relative; min-height: 300px; }
.blz-n { margin: 0; font: 600 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.blz-prompt { font-size: clamp(1.6rem, 6.4vw, 2.1rem); margin-top: 6px; }
.blz-sub { margin: 4px 0 14px; color: var(--muted); font-size: .92rem; }
.blz-choices { display: grid; gap: 10px; }
.blz-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 10px 16px; text-align: left;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer;
  font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform .08s, background .08s;
}
.blz-choice:active { transform: scale(.985); background: var(--chalk); }
.blz-choice:focus-visible { outline: 3px solid var(--turf); outline-offset: 2px; }
.blz-choice:disabled { opacity: .45; cursor: default; }
.blz-choice .badge { flex: none; height: 40px; }
.blz-choice span { display: grid; gap: 2px; min-width: 0; }
.blz-choice b { font: 700 1.45rem/1.05 var(--font-display); overflow-wrap: anywhere; }
.blz-choice small { color: var(--muted); font-size: .85rem; }

.blz-last { margin: 14px 0 0; min-height: 2.8em; font-size: .92rem; color: var(--muted); }
.blz-last b { color: var(--ink); }
.blz-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 700;
  color: var(--chalk); background: var(--muted); margin-right: 4px; vertical-align: 1px; }
.blz-last.ok .blz-mark, .blz-review li.ok .blz-mark { background: var(--win); }
.blz-last.no .blz-mark, .blz-review li.no .blz-mark { background: var(--loss); }
.blz-vs { margin: 0 4px; }
.blz-cost { color: var(--loss); font-weight: 700; white-space: nowrap; }

.blz-time {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--chalk) 82%, transparent);
  font: 700 3.4rem/1 var(--font-display); text-transform: uppercase; text-align: center;
  animation: blz-pop .35s ease-out;
}

/* ---------- results ---------- */
.blz-result { margin-top: 12px; }
.blz-big { font: 700 clamp(2.8rem, 13vw, 4rem)/.95 var(--font-display); text-transform: uppercase; margin-top: 6px; }
.blz-line { margin: 6px 0 0; color: var(--muted); }
.blz-again { margin-top: 14px; }
.blz-spread li { grid-template-columns: 3.6em minmax(0, 1fr) auto; }
.blz-spread li span { font-size: .95rem; white-space: nowrap; }
.blz-rvh { font-size: 1.3rem; margin: 22px 0 6px; }
.blz-review { list-style: none; margin: 0; padding: 0; }
.blz-review li { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.blz-review li > div { min-width: 0; flex: 1; }
.blz-review p { margin: 0; font-weight: 600; font-size: .95rem; }
.blz-pair { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; font-size: .9rem; color: var(--muted); }
.blz-pair .win { color: var(--ink); font-weight: 600; }
.blz-pair .pick { text-decoration: underline; text-underline-offset: 3px; }
.blz-pair small { font-weight: 500; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .blz-count b, .blz-time, .blz-clock.hit b, .blz-clock.hit .blz-pen { animation: none; }
  .blz-bar i, .blz-choice { transition: none; }
}
