/* ===== classroom.css — панель отряда, топ, ученики ===== */
.cr-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cr-students {
  background: var(--dt-panel);
  border: 1.5px solid var(--dt-line);
  border-radius: var(--dt-radius);
  padding: 13px;
}
.cr-students-title { font-weight: 700; color: var(--dt-gold); font-size: .92rem; margin-bottom: 10px; }

.cr-student {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: 'name score actions';
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px dashed var(--dt-line);
}
.cr-student:last-child { border-bottom: none; }
.cr-student-name {
  grid-area: name;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cr-student-score { grid-area: score; font-weight: 700; font-size: .88rem; }
.cr-student-score.pos { color: #7ed6a2; }
.cr-student-score.neg { color: #ff9e9e; }

.cr-student-actions { grid-area: actions; display: flex; gap: 5px; }
.cr-btn {
  border: 1.5px solid var(--dt-line);
  background: var(--dt-panel2);
  color: var(--dt-text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  transition: border-color .15s ease, background .15s ease;
}
.cr-btn:hover { border-color: var(--dt-gold); }
.cr-btn:active { transform: scale(.94); }
.cr-btn:disabled { opacity: .35; cursor: default; }
.cr-btn-correct.on { background: rgba(46, 139, 87, .3); border-color: var(--dt-green); }
.cr-btn-wrong { color: #ff9e9e; }
.wrong-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--dt-red);
  color: #fff;
  font-style: normal;
  font-size: .66rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}

.cr-leaderboard {
  background: var(--dt-panel);
  border: 1.5px solid var(--dt-line);
  border-radius: var(--dt-radius);
  padding: 13px;
}
.cr-lb-title { font-weight: 700; color: var(--dt-gold); font-size: .92rem; margin-bottom: 8px; }
.cr-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dt-line) transparent;
}
.cr-lb-list::-webkit-scrollbar { width: 7px; }
.cr-lb-list::-webkit-scrollbar-thumb { background: var(--dt-line); border-radius: 99px; }
.cr-lb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--dt-bg2);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: .86rem;
}
.cr-lb-rank {
  background: var(--dt-gold);
  color: #241a08;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .76rem;
}
.cr-lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-lb-score { font-weight: 700; color: var(--dt-gold); }

/* Соло-модалка решённого дела */
.solved-modal { text-align: center; }
.solved-clue {
  font-size: 3.4rem;
  margin: 6px 0 10px;
  animation: bounceIn .5s ease;
}

@media (max-width: 900px) {
  .cr-side { flex-direction: column; }
}
@media (max-width: 480px) {
  .cr-student { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name score' 'actions actions'; }
  .cr-student-actions { justify-content: flex-start; }
}

/* Печать диплома */
@media print {
  .cr-side, .task-nav, .btn-back, .hint-panel { display: none !important; }
}
