/* ====== ESTILOS DO QUIZ E MÓDULOS ====== */
.mt {
  font-size: 24px;
  margin: 8px 0 4px;
}

.ms {
  opacity: 0.85;
  margin: 0 0 18px;
}

/* Lista de Módulos */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px #5a3fd114;
  transition: transform 0.15s;
}

.row:active {
  transform: scale(0.98);
}

.bd {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e7e1fb;
  color: var(--pd);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.row .t {
  flex: 1;
}

.row b {
  font-size: 14px;
  display: block;
}

.row small {
  color: var(--mut);
}

.row .ch {
  color: var(--pd);
  font-size: 24px;
}

/* Barras de progresso */
.pb {
  height: 12px;
  background: #ffffff33;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pb div {
  height: 100%;
  background: linear-gradient(90deg, #305986, #AC3437);
  border-radius: 9px;
  transition: width 0.4s ease;
}

.pb2 {
  height: 6px;
  background: #f0ebe6;
  border-radius: 9px;
  overflow: hidden;
  margin-top: 7px;
}

.pb2 div {
  height: 100%;
  background: linear-gradient(90deg, #305986, #AC3437);
  border-radius: 9px;
  transition: width 0.4s ease;
}

/* Seleção de Nível */
.lv {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px #2a1a7a40;
  transition: transform 0.15s;
}

.lv:active {
  transform: scale(0.98);
}

.lv .t {
  flex: 1;
}

.lv b {
  font-size: 17px;
  display: block;
}

.lv small {
  color: var(--mut);
}

.dot {
  width: 14px;
  height: 44px;
  border-radius: 9px;
  flex: none;
}

.go {
  background: var(--pd);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 99px;
  padding: 9px 14px;
}

/* Cabeçalho do Quiz */
.qh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.qh b {
  font-size: 17px;
}

.qh button {
  font-size: 30px;
  line-height: 1;
  padding: 0 8px;
}

.qh span {
  font-size: 13px;
}

/* Card da Pergunta */
.qc {
  background: #fff;
  color: var(--ink);
  border-radius: 26px;
  padding: 22px 20px;
  margin-top: 10px;
  box-shadow: 0 16px 36px #2a1a7a55;
}

.qc small {
  display: block;
  text-align: center;
  color: var(--mut);
  margin-top: 10px;
}

.qc h3 {
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
  margin: 10px 0 18px;
}

.pill {
  display: block;
  width: max-content;
  margin: 0 auto;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1d1b2e;
}

/* Alternativas */
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 2px solid #e8e4f6;
  border-radius: 18px;
  padding: 13px 14px;
  margin: 10px 0;
  font-weight: 600;
  color: #4a4760;
  background: #fff;
  font-size: 15px;
  line-height: 1.35;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}

.opt:hover:not([disabled]) {
  border-color: #cfc5f6;
  background: #faf8ff;
}

.opt:active:not([disabled]) {
  transform: scale(0.99);
}

.cb {
  width: 24px;
  height: 24px;
  border: 2px solid #b9b3d1;
  border-radius: 7px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.opt.ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.opt.no {
  background: var(--no);
  border-color: var(--no);
  color: #fff;
}

.opt.ok .cb,
.opt.no .cb {
  border-color: #fff;
}

.opt.sel {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.opt[disabled] {
  cursor: default;
}

/* Feedback de Resposta */
.fb {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f2fb;
  border-left: 5px solid var(--gold);
  font-size: 14px;
  line-height: 1.45;
}

.fb.g {
  border-color: var(--ok);
}

.fb.b {
  border-color: var(--no);
}

.fb small {
  display: inline;
  text-align: left;
  margin: 0;
  color: var(--mut);
}

/* Tela de Resultados */
.res {
  background: #fff;
  color: var(--ink);
  border-radius: 26px;
  padding: 26px 20px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 16px 36px #2a1a7a55;
}

.res .big {
  font-size: 56px;
  font-weight: 700;
  color: var(--pd);
  line-height: 1.1;
  margin: 10px 0;
}


/* ====== BARRA DE AUTOPASSAMENTO INTELIGENTE ====== */
.auto-next-wrapper {
  margin-top: 14px;
  position: relative;
}

.auto-bar-track {
  width: 100%;
  height: 4px;
  background: #e8e4f6;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.auto-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ok), var(--gold));
  border-radius: 99px;
  width: 100%;
  transition: width 0.1s linear;
}

.auto-bar-fill.erro {
  background: linear-gradient(90deg, #f2cf5b, #e0524a);
}

.pbtn small {
  font-size: 13px;
  opacity: 0.85;
  margin-left: 6px;
  font-weight: 500;
}

/* Card de Duelo Bíblico (Modo Competição) */
.battle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, #1f3b5c, #AC3437);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(172, 52, 55, 0.3);
  border: 1px solid rgba(254, 238, 23, 0.4);
  transition: transform 0.15s;
}

.battle-card:active {
  transform: scale(0.98);
}

.battle-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #ffffff26;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: none;
}

.battle-card .t {
  flex: 1;
}

.battle-card b {
  font-size: 16px;
  display: block;
  color: #fff;
}

.battle-card small {
  color: #cfc2fb;
  display: block;
}

.badge-new {
  background: var(--gold);
  color: #1d1b2e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
  text-transform: uppercase;
}


/* ====== COMPARATIVO MELHOR DE 3 E RESULTADO FRENTE A FRENTE ====== */
.vs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f4f2fb, #ede7fc);
  padding: 16px 14px;
  border-radius: 20px;
  margin: 16px 0;
  border: 1px solid #dcd3f8;
}

.vs-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.vs-player b {
  font-size: 14px;
  margin-top: 6px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-score {
  font-size: 28px;
  font-weight: 700;
  color: var(--pd);
}

.vs-divider {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  padding: 0 8px;
}

.duelo-item {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(90, 63, 209, 0.08);
  text-align: left;
}

.duelo-item small {
  color: var(--mut);
  display: block;
  font-size: 12px;
}

.duelo-item p {
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.duelo-scores {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e8e4f6;
}

.score-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.score-chip.ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.score-chip.no {
  background: #ffebee;
  color: #c62828;
}

/* Card de Sala Aberta / Wi-Fi */
.wifi-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e3def5;
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(90, 63, 209, 0.06);
}

.wifi-card b {
  font-size: 14px;
  display: block;
}

.wifi-card small {
  color: var(--mut);
  font-size: 12px;
}

.btn-join {
  background: linear-gradient(135deg, #AC3437, #305986);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 99px;
  padding: 8px 16px;
}


/* ====== COMPONENTES DA TRILHA, GAMIFICAÇÃO E REVISÃO ====== */

/* Barra de XP e Nível do Aluno */
.xp-card {
  background: linear-gradient(135deg, #1f3b5c 0%, #305986 40%, #AC3437 100%);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 10px 24px rgba(172, 52, 55, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.xp-header b {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.xp-header small {
  color: #fcebeb;
  font-weight: 600;
}

.xp-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffe57f);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Atalhos Rápidos (Conquistas, Revisão, Professor) */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.quick-btn {
  background: #fff;
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(90, 63, 209, 0.08);
  border: 1px solid #e8e4f6;
  text-align: left;
  transition: transform 0.15s;
}

.quick-btn:active {
  transform: scale(0.97);
}

.quick-btn .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f4f2fb;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}

.quick-btn b {
  font-size: 13px;
  display: block;
  color: var(--ink);
}

.quick-btn small {
  font-size: 11px;
  color: var(--mut);
}

/* Trilha de Aprendizagem (Status dos Módulos) */
.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge.dominado {
  background: #fff3c4;
  color: #7a5800;
}

.status-badge.concluido {
  background: #d4f7dc;
  color: #1b6829;
}

.status-badge.andamento {
  background: #e0f2fe;
  color: #0369a1;
}

.status-badge.disponivel {
  background: #f3e8ff;
  color: #6b21a8;
}

.status-badge.bloqueado {
  background: #f1f5f9;
  color: #64748b;
}

/* Vitrine de Conquistas (Medalhas) */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.ach-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(90, 63, 209, 0.08);
  border: 1px solid #e8e4f6;
  transition: transform 0.2s;
}

.ach-card.locked {
  opacity: 0.6;
  filter: grayscale(0.85);
  background: #faf9fd;
}

.ach-icon {
  font-size: 36px;
  margin-bottom: 6px;
}

.ach-card b {
  font-size: 13px;
  display: block;
  color: var(--ink);
}

.ach-card small {
  font-size: 11px;
  color: var(--mut);
  line-height: 1.3;
  display: block;
  margin-top: 4px;
}

/* Painel de Revisão */
.review-item {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(90, 63, 209, 0.08);
  border-left: 5px solid var(--no);
  text-align: left;
}

.review-item.mastered {
  border-left-color: var(--ok);
}

.review-item h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--mut);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e8e4f6;
}

/* Dica de Memorização Bíblica */
.dica-memorizacao {
  background: #fff9e6;
  border: 1px solid #fde7a6;
  color: #7a5800;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.dica-memorizacao span {
  font-size: 16px;
  line-height: 1;
}

/* Painel do Professor */
.admin-metric {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(90, 63, 209, 0.08);
  margin-bottom: 12px;
}

.admin-metric .val {
  font-size: 32px;
  font-weight: 800;
  color: var(--pd);
}

.admin-metric small {
  color: var(--mut);
  font-size: 13px;
  display: block;
}

/* Abas de Ranking (Geral vs Semanal) */
.rank-tabs {
  display: flex;
  background: #f7ebeb;
  border-radius: 99px;
  padding: 4px;
  margin: 10px 0 16px;
  gap: 4px;
}

.rank-tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 99px;
  border: 0;
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rank-tab-btn.active {
  background: #fff;
  color: var(--pd);
  box-shadow: 0 4px 12px rgba(172, 52, 55, 0.15);
}

/* Tabela e listas de gestão do professor */
.admin-list {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  margin-top: 14px;
  box-shadow: 0 6px 16px rgba(90, 63, 209, 0.08);
  border: 1px solid #e8e4f6;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-bottom: 1px solid #f1f0f9;
}

.admin-row:last-child {
  border-bottom: none;
}

/* ====== GRADE 2x2 COMPACTA DE MÓDULOS ====== */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 24px;
}

.mod-card {
  background: #fff;
  border-radius: 18px;
  padding: 12px 10px;
  border: 1px solid #e8e4f6;
  box-shadow: 0 4px 14px rgba(90, 63, 209, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 142px;
  width: 100%;
  box-sizing: border-box;
}

.mod-card:active {
  transform: scale(0.97);
}

.mod-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 4px;
}

.mod-card .bd {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b2a82;
  flex: none;
}

.mod-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.mod-card-footer {
  margin-top: auto;
}

.mod-card-footer small {
  font-size: 10.5px;
  color: var(--mut);
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ====== CENTRAL DE QUIZ (ABA QUIZ) ====== */

.quiz-hub-wrapper,
.quiz-play-wrapper {
  padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  animation: fadeIn 0.4s ease-out both;
}

/* Cabeçalho do Hub */
.quiz-hub-header {
  text-align: center;
  margin: 12px 0 16px;
}

.quiz-badge-top {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.quiz-hub-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.quiz-hub-subtitle {
  color: #fce8e8;
  font-size: 13.5px;
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
}

/* Banner de Métricas Rápidas */
.quiz-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px 8px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(90, 63, 209, 0.1);
  text-align: center;
}

.quiz-stat-box b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.quiz-stat-box small {
  display: block;
  font-size: 10px;
  color: var(--mut);
  font-weight: 600;
  margin-top: 2px;
}

/* Seletor Segmentado de Dificuldade */
.quiz-level-section {
  margin-bottom: 16px;
}

.quiz-section-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
  padding-left: 2px;
}

.quiz-diff-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.quiz-diff-btn {
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  color: #f7f5ff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.quiz-diff-btn span {
  font-size: 13px;
  font-weight: 700;
}

.quiz-diff-btn small {
  font-size: 9.5px;
  opacity: 0.85;
}

.quiz-diff-btn.active {
  background: #ffffff;
  color: var(--pd);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quiz-diff-btn.active small {
  color: var(--mut);
  opacity: 1;
}

/* Cards de Modos */
.quiz-modes-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-card-mode {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.quiz-card-mode:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.quiz-card-mode:active {
  transform: scale(0.99);
}

.quiz-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.quiz-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: none;
}

.quiz-card-info {
  flex: 1;
}

.quiz-mode-pill {
  display: inline-block;
  background: #fdf2f2;
  color: #ac3437;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.quiz-card-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.3;
}

.quiz-card-info p {
  font-size: 12.5px;
  color: var(--mut);
  margin: 0;
  line-height: 1.4;
}

/* Progresso no card */
.quiz-card-progress {
  background: #f8f7fc;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #eeebf8;
}

.quiz-prog-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--mut);
  margin-bottom: 6px;
}

.quiz-prog-track {
  height: 7px;
  background: #e6e2f4;
  border-radius: 99px;
  overflow: hidden;
}

.quiz-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #ac3437, #f4be18);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.quiz-btn-play {
  width: 100%;
  background: linear-gradient(135deg, #ac3437, #851c20);
  color: #ffffff;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(172, 52, 55, 0.25);
  transition: opacity 0.2s ease;
}

.quiz-btn-play:hover {
  opacity: 0.95;
}

/* ====== TELA DE JOGO / PERGUNTA ====== */

.quiz-play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.quiz-btn-back {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.quiz-btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
}

.quiz-topbar-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quiz-tag-mode {
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.quiz-tag-level {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: #ffffff;
}

/* Barra de progresso da partida */
.quiz-play-progress-box {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.quiz-prog-text-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 6px;
}

.quiz-streak-pill {
  background: #ffffff;
  color: var(--pd);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.quiz-play-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  overflow: hidden;
}

.quiz-play-fill {
  height: 100%;
  background: linear-gradient(90deg, #f4be18, #4caf50);
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* Card da afirmação */
.quiz-statement-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 24px 20px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin-bottom: 16px;
  animation: fadeIn 0.4s ease-out both;
}

.quiz-statement-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.quiz-statement-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.2px;
}

/* Botões de Resposta */
.quiz-options-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-btn-choice {
  background: #ffffff;
  border: 2px solid #e8e4f6;
  border-radius: 20px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  min-height: 70px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.quiz-btn-choice:active:not(:disabled) {
  transform: scale(0.96);
}

.quiz-btn-choice .choice-icon {
  font-size: 22px;
}

.quiz-btn-choice .choice-label {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.true-btn {
  border-color: #c8e6c9;
}

.true-btn .choice-icon {
  color: #2e7d32;
}

.false-btn {
  border-color: #ffcdd2;
}

.false-btn .choice-icon {
  color: #c62828;
}

/* Estados pós-resposta */
.quiz-btn-choice.correct {
  background: #e8f5e9 !important;
  border-color: #2e7d32 !important;
  color: #1b5e20 !important;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.22);
}

.quiz-btn-choice.correct .choice-label {
  color: #1b5e20 !important;
}

.quiz-btn-choice.wrong {
  background: #ffebee !important;
  border-color: #c62828 !important;
  color: #b71c1c !important;
  transform: scale(0.98);
  opacity: 0.9;
}

.quiz-btn-choice.wrong .choice-label {
  color: #b71c1c !important;
}

.quiz-btn-choice.faded {
  opacity: 0.45;
  cursor: not-allowed;
}

.quiz-btn-choice:disabled {
  cursor: not-allowed;
}

/* Card de Explicação */
.quiz-feedback-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  margin-bottom: 16px;
  animation: fadeIn 0.35s ease-out both;
}

.feedback-success {
  border-left: 5px solid #2e7d32;
}

.feedback-danger {
  border-left: 5px solid #c62828;
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.feedback-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}

.feedback-success .feedback-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.feedback-danger .feedback-icon {
  background: #ffebee;
  color: #c62828;
}

.feedback-header-text strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.feedback-header-text small {
  display: block;
  font-size: 12px;
  color: var(--mut);
}

.feedback-explanation {
  font-size: 13.5px;
  line-height: 1.45;
  color: #3c4043;
  margin: 0 0 12px;
  background: #fbfbfe;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f0eff8;
}

.feedback-reference {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--pd);
  background: #fdf2f2;
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.feedback-reference strong {
  font-weight: 700;
}

.quiz-btn-next {
  width: 100%;
  background: linear-gradient(135deg, #ac3437, #851c20);
  color: #ffffff;
  border: 0;
  border-radius: 99px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(172, 52, 55, 0.28);
  transition: transform 0.15s ease;
}

.quiz-btn-next:active {
  transform: scale(0.98);
}

/* ====== TELA DE FINALIZAÇÃO DE CICLO ====== */

.quiz-complete-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 28px 20px 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin: 12px 0 20px;
  animation: fadeIn 0.5s ease-out both;
}

.quiz-trophy-halo {
  font-size: 56px;
  margin-bottom: 8px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.quiz-complete-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.quiz-complete-sub {
  font-size: 13.5px;
  color: var(--mut);
  margin: 0 0 20px;
  line-height: 1.45;
}

.quiz-complete-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #f8f7fc;
  border-radius: 18px;
  padding: 14px 8px;
  margin-bottom: 16px;
  border: 1px solid #eeebf8;
}

.quiz-complete-stat-item b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.quiz-complete-stat-item small {
  display: block;
  font-size: 10.5px;
  color: var(--mut);
  margin-top: 2px;
}

.quiz-complete-xp-box {
  background: #fff8e1;
  color: #795548;
  border: 1px solid #ffe082;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quiz-complete-xp-box strong {
  font-size: 16px;
  color: #e65100;
}

.quiz-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-btn-restart-cycle {
  background: linear-gradient(135deg, #305986, #1c3b5e);
  color: #ffffff;
  border: 0;
  border-radius: 99px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(48, 89, 134, 0.28);
}

.quiz-btn-return-hub {
  background: #f4f2fb;
  color: var(--ink);
  border: 1px solid #e0dbf2;
  border-radius: 99px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}



