/* ============================================
   XPLOSION — Отметка тренировки
   ============================================ */

.ci-start-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.ci-start-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.ci-start-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* Прогресс */
.ci-progress-wrap { margin-bottom: 16px; }

.ci-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 700;
  text-transform: uppercase;
}

.ci-progress-info b {
  color: var(--gold-text);
  font-size: 16px;
}

.ci-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--input-bg);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ci-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  border-radius: 3px;
  transition: width .4s;
}

/* Карточка ученика */
.ci-card {
  background: var(--panel-2);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ci-ava {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 36px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 30px rgba(255, 215, 0, .4);
}

.ci-name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.ci-meta {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ci-med {
  background: rgba(255, 77, 94, .1);
  border: 1px solid rgba(255, 77, 94, .35);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.5;
}

/* Кнопки отметки */
.ci-att-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.ci-att-btn {
  background: var(--input-bg);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  color: var(--text);
  transition: transform .15s, border-color .15s, background .15s;
}

.ci-att-btn .ic { font-size: 26px; line-height: 1; }
.ci-att-btn .lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; }

.ci-att-btn:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(255, 215, 0, .06);
}

.ci-att-btn.was {
  border-color: rgba(74, 222, 128, .6);
  background: rgba(74, 222, 128, .1);
  color: var(--green);
}

.ci-att-btn.miss-ok {
  border-color: rgba(251, 191, 36, .6);
  background: rgba(251, 191, 36, .1);
  color: #d99a00;
}

.ci-att-btn.miss-bad {
  border-color: rgba(255, 77, 94, .6);
  background: rgba(255, 77, 94, .1);
  color: var(--red);
}

/* Звёзды */
.ci-stars-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 700;
  margin-bottom: 8px;
}

.ci-stars {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.ci-stars span {
  font-size: 42px;
  color: #2a2a32;
  cursor: pointer;
  line-height: 1;
  transition: transform .12s, color .12s;
}

[data-theme="light"] .ci-stars span { color: #d8d8dc; }

.ci-stars span:hover { transform: scale(1.15); }

.ci-stars span.on {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, .7);
}

/* Заметка + действия */
.ci-note-input {
  margin-bottom: 18px;
  text-align: left;
}

.ci-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ci-skip-btn,
.ci-back-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-2);
  padding: 10px 18px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .15s, color .15s;
}

.ci-skip-btn:hover,
.ci-back-btn:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.ci-back-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Финал сессии */
.ci-done {
  background: var(--panel-2);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--green);
  border-radius: 16px;
  padding: 40px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ci-done-ic {
  font-size: 60px;
  margin-bottom: 16px;
}

.ci-done-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--green);
}

.ci-done-stat {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.ci-done-stat b {
  color: var(--gold-text);
}

.ci-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 16px 0 20px;
  max-height: 200px;
  overflow-y: auto;
}

.ci-mini-item {
  background: var(--input-bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.ci-mini-item.was       { color: var(--green); border-color: rgba(74, 222, 128, .4); }
.ci-mini-item.miss-ok   { color: #d99a00;      border-color: rgba(251, 191, 36, .4); }
.ci-mini-item.miss-bad  { color: var(--red);   border-color: rgba(255, 77, 94, .4); }
.ci-mini-item.skipped   { color: var(--muted); }

@media (max-width: 780px) {
  .ci-att-grid    { grid-template-columns: 1fr; }
  .ci-name        { font-size: 20px; }
  .ci-ava         { width: 76px; height: 76px; font-size: 28px; }
  .ci-stars span  { font-size: 34px; }
}