/* Базовая вёрстка */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  margin: 0;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
}

.app {
  background: #020617;
  border-radius: 16px;
  padding: 20px 18px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
  margin-top: 32px;
}

h1 {
  margin-top: 0;
  margin-bottom: 12px;
}

.status-text {
  margin-bottom: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Кнопка */

button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #e5e7eb;
  color: #020617;
}

button#btn-start {
  background: #22c55e;
  color: #022c22;
  font-size: 0.95rem;
}

button#btn-start:disabled {
  background: #4b5563;
  cursor: default;
}

/* Блок подсказки / задания */

.hint-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.hint-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 4px;
}

.hint {
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-line;
}

/* режим выбора (CHOICE) */
.hint-choice .hint-label {
  color: #7dd3fc;
}

/* режим задания (TASK) */
.hint-task {
  background: rgba(132, 204, 22, 0.09);
  border-color: rgba(190, 242, 100, 0.6);
}

.hint-task .hint-label {
  color: #bef264;
}

/* Debug-блок */

.debug {
  margin-top: 20px;
  font-size: 12px;
  color: #9ca3af;
}

/* Адаптив */

@media (min-width: 768px) {
  body {
    align-items: center;
    padding: 32px;
  }

  .app {
    max-width: 520px;
    padding: 24px 28px;
    margin-top: 0;
  }
}


/* Контрол скорости */

.speed-control {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.speed-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  opacity: 0.8;
}

.speed-value {
  min-width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Базовый вид range */

.speed-control input[type="range"] {
  flex: 1;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #1f2937;
  outline: none;
}

/* Ползунок (thumb) */

.speed-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  border: 2px solid #022c22;
}

.speed-control input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  border: 2px solid #022c22;
}
