/* typing-race - goals strip, rank and daily lines. Paired with meta.js. */
.trm-strip { display: flex; justify-content: space-between; align-items: center; gap: .5rem; max-width: 400px; margin: .4rem auto 0; padding: .3rem .6rem; min-height: 28px; border-radius: 10px; background: #0f172a; color: #cbd5e1; font: 600 .74rem 'JetBrains Mono', monospace; }
.trm-strip[hidden] { display: none; }
.trm-goal { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5eead4; }
.trm-best { flex: 0 0 auto; color: #94a3b8; white-space: nowrap; }
.trm-strip.over-best .trm-best { color: #fbbf24; }
.trm-strip.pulse { animation: trm-pulse .7s ease-out; }
@keyframes trm-pulse { 0% { box-shadow: 0 0 0 0 rgb(251 191 36 / .8); } 100% { box-shadow: 0 0 0 12px rgb(251 191 36 / 0); } }
.trm-menu, .trm-over { width: 100%; max-width: 300px; font: .72rem/1.35 'JetBrains Mono', monospace; color: #cbd5e1; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.trm-rank b { font-weight: 800; }
.trm-bar { display: block; width: 70%; height: 5px; border-radius: 3px; background: rgb(148 163 184 / .25); overflow: hidden; }
.trm-bar u { display: block; height: 100%; text-decoration: none; border-radius: 3px; }
.trm-daily.is-done, .trm-l.is-done { color: #fbbf24; }
.trm-l { text-align: center; }
.tr-ov { gap: .4rem; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { .trm-strip.pulse { animation: none; } }
