.score-box {
  min-width: 66px;
  padding: 7px 9px;
  border: 1px solid #2a3039;
  border-radius: 10px;
  text-align: right;
  background: rgba(17, 21, 27, 0.78);
}
.score-box span { display: block; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.score-box strong { display: block; font: 900 15px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }

.pass-status {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #2e3540;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #596370;
  background: #10151b;
  font-size: 14px;
  font-weight: 900;
  transition: 180ms ease;
}
.pass-status.ready {
  color: var(--accent);
  border-color: rgba(215,255,63,.42);
  background: rgba(215,255,63,.08);
  box-shadow: 0 0 18px rgba(215,255,63,.16);
}
.pass-status.used { color: var(--muted); opacity: .55; }

.score-toast {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  min-width: 120px;
  padding: 9px 14px;
  border: 1px solid rgba(215,255,63,.28);
  border-radius: 999px;
  background: rgba(11,14,18,.92);
  color: var(--accent);
  text-align: center;
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .05em;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  pointer-events: none;
  animation: score-pop 180ms ease-out both;
}
.score-toast.pass { border-color: rgba(215,255,63,.5); font-size: 11px; }
.score-toast.hidden { display: none; }
@keyframes score-pop { from { opacity: 0; transform: translate(-50%,-6px) scale(.94); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }

.final-score {
  margin: 14px 0 8px;
  padding: 14px 16px;
  border: 1px solid rgba(215,255,63,.25);
  border-radius: 16px;
  background: rgba(215,255,63,.055);
}
.final-score span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.final-score strong { display: block; margin-top: 5px; color: var(--accent); font: 950 38px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.score-row.compact { margin-top: 8px; margin-bottom: 8px; }

@media (max-width: 400px) {
  .topbar-actions { gap: 5px; }
  .score-box { min-width: 58px; padding-left: 7px; padding-right: 7px; }
  .score-box strong { font-size: 13px; }
  .best-box { min-width: 50px; }
}

@media (max-width: 350px) {
  .microcopy { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .score-box { min-width: 54px; }
}
