/* ============================================================
   老师面板
   ------------------------------------------------------------
   错得多的字母画得更大、底色更重 —— 老师扫一眼就能看出先讲哪个，
   不用读任何文字。
   ============================================================ */
.tp { width: min(820px, 94vw); text-align: left; }

.tp__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.tp__title { font-size: 32px; line-height: 1; }

.tp__stats { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.tp__stats .stat { flex: 1 1 0; }

/* ---------- 错字热力 ---------- */
.tp__heat {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: center;
  gap: 8px;
  padding: var(--sp-4) var(--sp-3);
  background: var(--c-cream-2);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  min-height: 110px;
}
.tp__cell {
  position: relative;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  /* --k 是相对最高错误数的比例，0—1 */
  background: hsl(var(--lh) 72% calc(94% - var(--k) * 26%));
  box-shadow: 0 3px 0 hsl(var(--lh) 55% calc(84% - var(--k) * 26%));
  transition: all var(--t-mid) var(--ease-bounce);
}
.tp__cell[data-zero="true"] { opacity: .3; box-shadow: none; background: #fff; }
.tp__cell img { height: 66%; width: auto; }
.tp__n {
  position: absolute; right: -5px; top: -7px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--c-wrong-deep); color: #fff;
  font-family: var(--font-en); font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 谁上过台 ---------- */
.tp__who { display: flex; flex-direction: column; gap: 7px; max-height: 34vh; overflow: auto; }
.tp__row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px 14px;
  border-radius: var(--r-md);
  background: var(--c-cream-2);
}
.tp__name { flex: 0 0 96px; font-size: 16px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp__bar { flex: 1 1 auto; height: 12px; border-radius: var(--r-full); background: #fff; overflow: hidden; }
.tp__barf {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--c-mint), var(--c-success));
  transition: width var(--t-slow) var(--ease-out);
}
.tp__acc { flex: 0 0 46px; text-align: right; font-family: var(--font-en);
  font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tp__lvl { flex: 0 0 30px; text-align: right; font-family: var(--font-en);
  font-size: 13px; font-weight: 800; color: var(--c-ink-soft); }

.tp__empty { text-align: center; color: var(--c-ink-soft); padding: var(--sp-6) 0; width: 100%; }

@media (max-width: 900px) {
  .tp__stats { flex-wrap: wrap; }
  .tp__stats .stat { flex: 1 1 40%; }
  .tp__heat { gap: 6px; padding: var(--sp-3) var(--sp-2); }
  .tp__name { flex-basis: 68px; font-size: 14px; }
  .tp__who { max-height: 30vh; }
}

.tp__title { display: flex; align-items: center; color: var(--c-grape-deep); }
.tp__stats .stat__v svg { margin: 0 auto; }
