/* buzzer-auto.css */
/* ============================================================
   CLASSROOM SHOWDOWN — the phone in Autopilot (buzzer-auto.js): the clock
   bar, the A–D choices, the Poll bars, the reveal; the buzzer itself is
   hidden while the body carries .sd-auto (buzzer.js sets it). The Blur
   power blurs the question card (.sd-blurred, both modes).
   ============================================================ */
body.sd-auto .sd-buzz-wrap,body.sd-auto #buzzHint{display:none}
.sd-auto-area{width:100%;max-width:560px;margin:0 auto}
.sd-auto-area[hidden]{display:none}
body:not(.sd-auto) .sd-auto-area{display:none}
.sd-auto-clock{display:flex;align-items:center;gap:10px;margin:10px 0 12px}
.sd-auto-bar{flex:1;height:12px;border-radius:99px;background:rgba(255,255,255,.55);overflow:hidden;box-shadow:inset 0 1px 3px rgba(23,24,78,.2)}
.sd-auto-bar span{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#50E8FF,#2F63D8);transition:width .9s linear}
.sd-auto-bar span.low{background:linear-gradient(90deg,#FFC52E,#F0441F)}
.sd-auto-clockn{flex:0 0 auto;min-width:40px;text-align:right;font-family:var(--display);font-size:18px;font-weight:700;color:#fff;text-shadow:0 2px 0 rgba(23,24,78,.35);font-variant-numeric:tabular-nums}

.sd-auto-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sd-auto-choices.two{grid-template-columns:1fr}
.sd-auto-choices[hidden]{display:none}
/* 2026-10-19 (0021) — the type-it box */
.sd-auto-typed{display:flex;flex-wrap:wrap;gap:10px}
.sd-auto-typed[hidden]{display:none}
.sd-auto-typed-in{flex:1 1 180px;min-width:0;min-height:58px;padding:12px 14px;border:3px solid #fff;border-radius:18px;background:#2F63D8;color:#fff;font-family:var(--sans);font-size:19px;font-weight:800;box-shadow:0 6px 0 rgba(23,24,78,.28),0 10px 18px rgba(0,0,0,.18)}
.sd-auto-typed-in::placeholder{color:rgba(255,255,255,.7);font-weight:700}
.sd-auto-typed-in:focus{outline:4px solid #FFC52E;outline-offset:2px}
.sd-auto-typed-in:disabled{opacity:.75}
.sd-auto-typed-go{flex:0 0 auto;min-height:58px;padding:0 22px;border:3px solid #fff;border-radius:18px;background:#2EB872;color:#fff;font-family:var(--sans);font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 6px 0 rgba(23,24,78,.28),0 10px 18px rgba(0,0,0,.18)}
.sd-auto-typed-go:disabled{opacity:.6;cursor:default}
.sd-auto-typed-mine{flex:1 1 100%;font-weight:800;color:#fff;opacity:.9}
.sd-auto-typed-mine[hidden]{display:none}
@media (max-width:420px){.sd-auto-choices{grid-template-columns:1fr}}
.sd-choice{
  display:flex;align-items:center;gap:10px;min-height:66px;padding:10px 12px;
  border:3px solid #fff;border-radius:18px;background:var(--cc,#2F63D8);color:#fff;
  font-family:var(--sans);font-size:17px;font-weight:800;text-align:left;cursor:pointer;line-height:1.25;
  box-shadow:0 6px 0 rgba(23,24,78,.28),0 10px 18px rgba(0,0,0,.18);
  transition:transform .1s ease,box-shadow .1s ease,opacity .2s ease;
}
.sd-choice-a{--cc:#E63946}.sd-choice-b{--cc:#2F63D8}.sd-choice-c{--cc:#F2A900}.sd-choice-d{--cc:#2EB872}
.sd-choice:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 rgba(23,24,78,.28)}
.sd-choice.picked{outline:4px solid #FFC52E;outline-offset:2px;transform:scale(1.02)}
.sd-choice:disabled{cursor:default;opacity:.6}
.sd-choice.picked:disabled{opacity:1}
.sd-choice.gone{visibility:hidden}
.sd-choice-letter{flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:#fff;color:var(--ink);font-family:var(--display);font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center}
.sd-choice-text{flex:1;min-width:0;overflow-wrap:anywhere}

.sd-auto-poll{margin-top:12px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.92);color:var(--ink)}
.sd-auto-poll[hidden]{display:none}
.sd-poll-lab{font-size:11.5px;font-weight:900;letter-spacing:.08em;color:#5F6B8A;margin-bottom:6px}
.sd-poll-row{display:flex;align-items:center;gap:8px;margin:4px 0}
.sd-poll-letter{flex:0 0 auto;width:22px;font-family:var(--display);font-weight:700}
.sd-poll-bar{flex:1;height:14px;border-radius:99px;background:#E3F1FF;overflow:hidden}
.sd-poll-fill{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#50E8FF,#2F63D8);transition:width .5s ease}
.sd-poll-n{flex:0 0 auto;min-width:22px;text-align:right;font-weight:900;font-variant-numeric:tabular-nums}

.sd-auto-reveal{margin-top:4px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.94);color:var(--ink);text-align:center}
.sd-auto-reveal[hidden]{display:none}
.sd-auto-reveal.mine{background:linear-gradient(180deg,#FFF6D6,#FFE9A8);box-shadow:0 0 0 4px rgba(255,197,46,.6)}
.sd-reveal-ans{display:inline-flex;align-items:center;gap:10px;font-family:var(--sans);font-size:19px;font-weight:900;color:#1B6B3A}
.sd-reveal-ans .sd-choice-letter{background:#2EB872;color:#fff}
.sd-reveal-who{margin-top:8px;font-family:var(--display);font-size:18px;font-weight:700}

.sd-qcard.sd-blurred .sd-prompt,.sd-qcard.sd-blurred .qimg{filter:blur(12px);user-select:none;transition:filter .3s ease}
body.sd-auto .sd-qcard.sd-blurred ~ .sd-auto-area .sd-choice-text{filter:blur(8px)}
