/* =============================================================
   teen-challenge.css
   Challenge Mode styles for Florentis Teen Lesson Previews.
   Builds on fl-teen-card / fl-teen-opt from teen-slides.css.
   ============================================================= */

/* ── Transparent wrapper (same as smart start slides) ─────── */
.fl-kids-question[data-question-container][data-mini-kind="ch_locked"],
.fl-kids-question[data-question-container][data-mini-kind="ch_intro"],
.fl-kids-question[data-question-container][data-mini-kind="ch_item"],
.fl-kids-question[data-question-container][data-mini-kind="ch_finish"],
.fl-kids-question[data-question-container][data-mini-kind="ch_error"] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* ── Intro screen ──────────────────────────────────────────── */
.fl-ch-intro .fl-teen-title {
  margin-top: 6px;
}

.fl-ch-rules-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.fl-ch-rules-list li {
  font-size: 15px;
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.75);
}

.fl-ch-rules-list li:last-child {
  border-bottom: none;
}

.fl-ch-start-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: rgba(39,83,122,0.9);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, transform 0.1s;
}

.fl-ch-start-btn:hover {
  background: rgba(39,83,122,1);
  transform: translateY(-1px);
}

.fl-ch-start-btn:active {
  transform: translateY(0);
}

/* ── Top bar (timer + progress + XP) ──────────────────────── */
.fl-ch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
}

.fl-ch-timer {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.05);
  transition: color 0.3s, background 0.3s;
}

.fl-ch-timer.is-low {
  color: #c0392b;
  background: rgba(192,57,43,0.1);
  animation: fl-ch-pulse 1s ease-in-out infinite;
}

@keyframes fl-ch-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.fl-ch-xp {
  color: rgba(39,83,122,0.9);
}

/* ── Question body ─────────────────────────────────────────── */
.fl-ch-lead-in {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.65;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.fl-ch-stem {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 18px;
}

/* ── Option buttons ────────────────────────────────────────── */
/* Inherits .fl-teen-opt from teen-slides.css */
.fl-ch-opt {
  transition: border-color 0.15s, background 0.15s;
}

.fl-ch-opt.is-correct {
  border-color: rgba(46,160,67,0.7);
  background: rgba(46,160,67,0.07);
  font-weight: 600;
}

.fl-ch-opt.is-wrong {
  border-color: rgba(200,50,50,0.55);
  background: rgba(200,50,50,0.05);
}

/* ── Skip footer ───────────────────────────────────────────── */
.fl-ch-foot {
  margin-top: 14px;
  text-align: right;
}

.fl-ch-skip {
  font-size: 13px;
  opacity: 0.65;
}

/* ── Finish screen ─────────────────────────────────────────── */
.fl-ch-finish .fl-teen-title {
  margin-top: 6px;
  font-size: 24px;
}

.fl-ch-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}

.fl-ch-stat {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}

.fl-ch-stat-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: rgba(39,83,122,0.9);
}

.fl-ch-stat-lbl {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fl-ch-finish-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fl-ch-finish-btn {
  flex: 1;
  min-width: 160px;
  display: block;
  text-align: center;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  color: rgba(0,0,0,0.75);
  transition: background 0.15s, transform 0.1s;
}

.fl-ch-finish-btn.primary {
  background: rgba(39,83,122,0.9);
  color: #fff;
  border-color: transparent;
}

.fl-ch-finish-btn:hover {
  transform: translateY(-1px);
}

.fl-ch-finish-btn.primary:hover {
  background: rgba(39,83,122,1);
}

/* ── Locked screen ─────────────────────────────────────────── */
.fl-ch-locked {
  text-align: center;
}
