/* Quiz im eigenen Tempo: Klassen mit tp-, damit nichts mit anderen Typen zusammenstößt. */

/* --------------------------------------------------------------- Handy */
.tp-head { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 2px 0 8px; }
.tp-lives { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.tp-lives-svg { display: block; flex: none; }
.tp-more { font-size: 14px; color: var(--muted); }
.tp-time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tp-life.new { animation: tp-pop .45s ease-out; transform-box: fill-box; transform-origin: center; }
.tp-life.gone { animation: tp-fade .6s ease-in forwards; transform-box: fill-box; transform-origin: center; }
.tp-msg h1 { font-size: 21px; margin: 0 0 8px; }

/* -------------------------------------------------------------- Beamer */
.tp-b { height: 100%; display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; }
.tp-top { display: flex; align-items: center; gap: 2vw; }
.tp-lead { margin: 0; font-size: 2.5vh; color: var(--muted); line-height: 1.3; flex: 1; }
.tp-clock { font-size: 6vh; font-variant-numeric: tabular-nums; line-height: 1; }
.tp-clock.hot { color: var(--bad); }
.tp-area { flex: 1; min-height: 0; position: relative; }
.tp-svg { position: absolute; inset: 0; display: block; }
.tp-foot { font-size: 1.9vh; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp-free rect { fill: none; stroke: #2a303d; stroke-width: 1.2; }
.tp-lab text { fill: #6b7385; font-family: var(--mono); font-size: 12px; }
.tp-node.pop { animation: tp-pop .5s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes tp-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.tp-ring { fill: none; stroke-width: 2.5; }
.tp-node.head > g > rect { stroke: #fff; stroke-width: 2.2; }
.tp-ghost { animation: tp-fade .9s ease-in forwards; transform-box: fill-box; transform-origin: center; }
@keyframes tp-fade { from { opacity: .9; } to { opacity: 0; transform: scale(.5); } }
.tp-arr { fill: none; stroke-width: 2; stroke-linecap: round; }
.tp-arr.jump { stroke-width: 1.5; stroke-opacity: .5; }
.tp-arrows { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tp-node.pop, .tp-ghost { animation: none; } }

.tp-keys { font-size: 1.8vh; color: var(--muted); white-space: nowrap; }
.tp-itemhead { display: flex; justify-content: space-between; font-size: 2vh; color: var(--muted); }
.tp-item { flex: 1; min-height: 0; position: relative; }
.tp-item .qz-b-top { display: none; }
/* Auswertung: Code nach dem Aufdecken bei jedem Item weg (Taste C holt ihn), Platz für Antworten und explain */
.tp-item .qz-b.rev:not(.show-code) .qz-b-code { display: none; }
.tp-o-list { display: flex; flex-direction: column; gap: .8vh; overflow: hidden; }
.tp-o-row { display: grid; grid-template-columns: 3vh minmax(0, 1.1fr) minmax(0, .7fr) 5vw minmax(0, 1.5fr) 5.5vw; gap: 0 1vw; align-items: center;
  background: var(--surface); border-radius: 1vh; padding: .7vh 1vw; font-size: 2.2vh; }
.tp-o-k { color: var(--muted); font-weight: 700; }
.tp-o-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-o-track { height: 1.8vh; background: #232835; border-radius: 99px; overflow: hidden; }
.tp-o-track i { display: block; height: 100%; background: var(--ok); }
.tp-o-pct { text-align: right; font-variant-numeric: tabular-nums; }
.tp-o-n { color: var(--muted); font-size: 1.7vh; text-align: right; }
.tp-o-dist { display: flex; flex-wrap: nowrap; overflow: hidden; gap: .8vw; font-size: 1.7vh; color: var(--muted); white-space: nowrap; }
.tp-o-chip code { font-family: var(--mono); color: var(--text); background: var(--surface-2); padding: 0 .4em; border-radius: .4vh; }
.tp-o-chip.ok code { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
