/**
 * Дополнения к SB Admin 2: стили тренажёра и детский акцент.
 * Основа темы: https://github.com/StartBootstrap/startbootstrap-sb-admin-2
 */

/* Шрифт для контента */
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sidebar-brand-text {
  font-weight: 700;
}

/* Блок с примером */
.task-display {
  font-size: 3rem;
  font-weight: 800;
  color: #4e73df;
  letter-spacing: 0.05em;
}

.timer-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid #4e73df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}

.timer-ring.warning {
  border-color: #f6c23e;
  background: rgba(246, 194, 62, 0.15);
}

.timer-ring.danger {
  border-color: #e74a3b;
  background: rgba(231, 74, 59, 0.15);
  animation: pulse 0.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.05); }
}

.pile-badge {
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.answer-input {
  font-size: 1.75rem;
  text-align: center;
  border-radius: 0.5rem;
  border: 2px solid #4e73df;
  max-width: 8rem;
  margin: 0 auto;
}

.answer-input:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.fun-message {
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-game {
  border-radius: 0.5rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
}

.btn-game-primary {
  background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  border: none;
  color: #fff;
}

.btn-game-primary:hover {
  background: linear-gradient(180deg, #224abe 10%, #1d3a8a 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(78, 115, 223, 0.4);
}

.result-ok {
  color: #1cc88a !important;
  font-weight: 700;
}

.result-retry {
  color: #f6c23e !important;
  font-weight: 700;
}

.result-fail {
  color: #e74a3b !important;
  font-weight: 700;
}

.sidebar-text {
  font-size: 0.75rem;
}
