
/* ===== INÍCIO: css/style.css ===== */
/* ============================================================
   CONFRAPLAY · style.css
   Estilos globais + tela inicial + moldura padrão dos módulos.
   Cada módulo pode ter um .css próprio para estilos exclusivos
   (ver js/modules/bingo/bingo.css), mas a base visual (cores,
   tipografia, espaçamento) vem sempre daqui.
   ============================================================ */

:root {
  --brand-purple: #6C3CE0;
  --brand-pink: #F0568C;
  --brand-turquoise: #16C6C0;
  --brand-coral: #FF6B4A;
  --ink: #2B2B33;
  --muted: #6b6b76;
  --muted-dark: #52525c;
  --bg: #F4F4F8;
  --card-bg: #FFFFFF;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(43, 43, 51, 0.08);
}

* { box-sizing: border-box; }

html, body {
  /* Impede o gesto nativo do navegador de "puxar pra baixo no topo pra
     atualizar a página" (pull-to-refresh) — sem isso, tentar rolar pra
     cima quando já se está no topo da tela podia disparar um recarregamento
     sem querer, voltando pro menu inicial no meio de um jogo. */
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.screen-hidden { display: none !important; }

/* ---------------- Cabeçalho (marca) ---------------- */
.app-header {
  background: linear-gradient(120deg, var(--brand-purple), var(--brand-turquoise) 130%);
  color: #fff;
  padding: 34px 20px 36px;
  text-align: center;
}

.app-title {
  font-family: "Baloo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.app-title-confra,
.app-title-play {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.app-title-confra {
  color: #fff;
}

.app-title-play {
  color: var(--brand-coral);
}

.app-tagline {
  margin: 2px 0 0;
  font-family: "Baloo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.96;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ---------------- Grade da tela inicial ---------------- */
.modules-grid {
  max-width: 980px;
  margin: -18px auto 0;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.module-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(43, 43, 51, 0.14);
}

/* Animação discreta ao tocar (mobile) ou clicar (desktop) — dá uma
   sensação de resposta física ao toque, sem ser exagerada. */
.module-card:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(43, 43, 51, 0.10);
}

.module-card:focus-visible {
  outline: 3px solid var(--brand-purple);
  outline-offset: 2px;
}

.module-card-soon { opacity: 0.72; }

/* Módulos "featured" (mais usados) ganham uma borda sutil na cor da marca,
   além de aparecerem primeiro na grade (ver ModuleRegistry.list()). */
.module-card-featured {
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(108, 92, 231, 0.35);
}

.module-card-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg);
  color: var(--muted-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
/* Quando tem selo de categoria, o ícone principal desce um pouco pra não sobrepor. */
.module-card:has(.module-card-category-badge) .module-card-icon { margin-top: 22px; }

.module-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.module-card-name { font-weight: 700; font-size: 15px; }
.module-card-desc { font-size: 12.5px; color: var(--muted-dark); line-height: 1.4; }

.module-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* Botão ⓘ — canto do card, abre a explicação sem entrar no jogo */
.module-card-info-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.module-card-info-btn:hover,
.module-card-info-btn:focus-visible {
  background: var(--brand-purple);
  color: #fff;
  outline: none;
}
/* Quando há badge "Em breve", o ⓘ desce um pouco para não sobrepor */
.module-card-soon .module-card-info-btn { top: 40px; }

/* ---------------- Janela flutuante translúcida: explicação do tema ---------------- */
.theme-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 51, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 20px;
  animation: theme-info-fade-in 0.15s ease;
}
@keyframes theme-info-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.theme-info-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 28px 22px 22px;
  text-align: center;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.theme-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(43, 43, 51, 0.08);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.theme-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}

.theme-info-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.theme-info-duration {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-purple);
}

.theme-info-print-advice {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.theme-info-print-advice-recommended { background: #E3F5F3; color: #0E7A70; }
.theme-info-print-advice-optional { background: #E9EFFD; color: #2E4FA3; }
.theme-info-print-advice-flexible { background: #F3E9FD; color: #6C3CE0; }

.theme-info-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-line;
}

.theme-info-play-btn { width: 100%; }

/* Cores dos ícones — uma classe por módulo, fácil de estender */
.card-orange  { background: #F5A623; }
.card-pink    { background: #F0568C; }
.card-teal    { background: #17A398; }
.card-purple  { background: #8E6CF0; }
.card-magenta { background: #D6449B; }
.card-blue    { background: #4C7CF0; }
.card-red     { background: #E85D3B; }
.card-indigo  { background: #5A4FCF; }
.card-rose    { background: #E8547A; }
.card-navy    { background: #2E3A59; }
.card-gray    { background: #8A8A94; }
.card-green   { background: #1E8E5A; }

/* ---------------- Moldura padrão dos módulos ---------------- */
.module-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 5;
}

.icon-btn {
  border: none;
  background: var(--bg);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.module-topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  flex: 1;
}

.module-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* ---------------- Botões genéricos (reutilizáveis por qualquer módulo) ---------------- */
.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary  { background: var(--brand-purple); color: #fff; }

/* ---------------- Tela de erro amigável (falha ao abrir um módulo) ---------------- */
.module-error-box {
  max-width: 420px;
  margin: 60px auto 0;
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
}
.module-error-icon { font-size: 48px; margin-bottom: 8px; }
.module-error-title { font-weight: 800; font-size: 16px; margin: 0 0 6px; }
.module-error-hint { color: var(--muted-dark); font-size: 13.5px; margin: 0 0 20px; line-height: 1.5; }
.btn-secondary{ background: var(--bg); color: var(--ink); }
.btn-ghost    { background: transparent; color: var(--muted); text-decoration: underline; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------- Rodapé ---------------- */
.app-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  /* padding-bottom soma um respiro fixo + a área "segura" do sistema
     (barra de gestos/navegação do celular), pra nunca ficar cortado. */
  padding: 18px 18px calc(28px + env(safe-area-inset-bottom, 0px));
}
.app-build-tag { font-size: 9px; opacity: 0.5; }

/* ---------------- Toast (aviso "em breve") ---------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.toast-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Modal de impressão simulada (usado pelo PrintService) ---------------- */
.print-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.print-preview-receipt {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  font-family: "Courier New", monospace;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  /* Sem isso, um recibo mais alto que a tela (ex.: várias cartelas de
     Bingo impressas em lote) "vazava" pra fora da janela flutuante sem
     jeito de rolar até o fim — o toque acabava indo pra página de trás
     em vez de rolar o próprio recibo. */
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.print-preview-header { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 10px; }
.ticket-brand { text-align: center; font-weight: 800; font-size: 15px; }
.ticket-title { text-align: center; font-size: 12px; margin-bottom: 6px; }
.ticket-divider { border-top: 1px dashed #999; margin: 8px 0; }
.ticket-line, .ticket-clue { font-size: 13px; margin: 4px 0; }
.ticket-challenge { font-size: 15px; font-weight: 700; text-align: center; margin: 10px 0; }
.ticket-sequence { font-size: 11px; color: var(--muted); }
.ticket-qr-image { display: block; width: 100%; max-width: 200px; margin: 10px auto; }
.ticket-qr-caption { font-size: 11px; color: var(--muted); text-align: center; margin: 0 0 6px; line-height: 1.4; }
.ticket-row { display: flex; gap: 6px; justify-content: center; margin: 3px 0; }
.ticket-row span { width: 22px; text-align: center; font-size: 12px; }

.ticket-cut-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 10px;
  color: #999;
}
.ticket-cut-dashes { font-size: 12px; letter-spacing: 1px; }

.ticket-big-letter {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin: 6px 0 12px;
}
.ticket-fill-category { font-size: 13px; font-weight: 700; margin-top: 10px; }
.ticket-fill-line { border-bottom: 1px dashed #999; height: 16px; margin: 2px 0 0; }
.print-preview-close {
  display: block;
  margin: 14px auto 0;
  background: var(--brand-purple);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
}

.print-preview-open {
  display: block;
  margin: 16px auto 0;
  background: #F5A623;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.print-preview-real-btn {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  background: #1FAA59;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
}
.print-preview-real-btn:disabled { opacity: 0.7; cursor: wait; }

.print-preview-folded .ticket-cover-line {
  text-align: center;
  font-weight: 700;
}

.print-preview-folded .ticket-reveal-line {
  text-align: center;
}

@media (max-width: 480px) {
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .app-title { font-size: 38px; }
}

/* ===== FIM: css/style.css ===== */

/* ===== INÍCIO: css/solo-card.css ===== */
/* ============================================================
   TELA SOLO DA CARTELA · solo-card.css
   Tela isolada (fora da moldura normal do app) que abre quando
   alguém escaneia o QR code ou clica no link de uma cartela do
   Bingo. Usa o prefixo "solo-card-" para não colidir com nada.
   ============================================================ */

#solo-card-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, #6C3CE0 0%, #16C6C0 130%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}

.solo-card-wrap {
  width: 100%;
  max-width: 420px;
}

.solo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.solo-card-brand {
  font-family: "Baloo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}
.solo-card-brand-confra { color: #fff; }
.solo-card-brand-play { color: #FF6B4A; }

.solo-card-round-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.solo-card-round-badge strong { font-weight: 800; letter-spacing: 0.04em; }

.solo-card-title {
  color: #fff;
  text-align: center;
  font-size: 26px;
  margin: 8px 0 4px;
}

.solo-card-hint {
  color: rgba(255,255,255,0.9);
  text-align: center;
  font-size: 13.5px;
  margin: 0 0 20px;
  line-height: 1.4;
}

.solo-card-grid {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.solo-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.solo-card-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F4F8;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 22px;
  color: #2B2B33;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease;
}
.solo-card-cell:active { transform: scale(0.94); }

.solo-card-cell-marked {
  background: linear-gradient(120deg, #6C3CE0, #16C6C0);
  color: #fff;
}

.solo-card-clear-btn {
  display: block;
  margin: 18px auto 0;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.solo-card-footer {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  margin: 24px 0 0;
}

.solo-card-invalid {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.solo-card-invalid-icon { font-size: 40px; margin-bottom: 10px; }
.solo-card-invalid h1 { font-size: 19px; margin: 0 0 10px; }
.solo-card-invalid p { font-size: 14px; color: var(--muted-dark); line-height: 1.5; margin: 0; }

/* ---------------- Tela solo · Adedonha ---------------- */
.solo-card-letter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}

.solo-card-letter-badge {
  background: #fff;
  color: #6C3CE0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.solo-adedonha-timer {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  padding: 10px 18px;
  border-radius: 14px;
  min-width: 64px;
  text-align: center;
}

.solo-adedonha-fields {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  margin-bottom: 16px;
}

.solo-adedonha-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solo-adedonha-field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #6b6b76;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.solo-adedonha-input {
  border: 2px solid #E2E2EA;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: #2B2B33;
}
.solo-adedonha-input:focus { outline: none; border-color: #6C3CE0; }
.solo-adedonha-input[readonly] {
  background: #F4F4F8;
  color: #9a9aa4;
  border-color: #E2E2EA;
}

.solo-adedonha-name-field {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px dashed #E2E2EA;
}
.solo-adedonha-name-field .solo-adedonha-field-label { color: #6C3CE0; }
.solo-adedonha-name-required-hint {
  display: block;
  color: #9a9aa4;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  font-size: 11.5px;
  margin-top: 2px;
}

#solo-adedonha-share-wrap { margin-top: 10px; }
.solo-adedonha-share-btn { width: 100%; padding: 14px; font-size: 15px; }

/* ---------------- Tela solo · Amigo Secreto ---------------- */
.solo-amigo-reveal-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solo-amigo-gift-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: 3px dashed #6C3CE0;
  border-radius: 18px;
  padding: 28px 32px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease;
}
.solo-amigo-gift-btn:active { transform: scale(0.96); }

.solo-amigo-gift-icon { font-size: 48px; }
.solo-amigo-gift-label { font-size: 14px; font-weight: 700; color: #6C3CE0; }

.solo-amigo-name-label {
  font-size: 13px;
  color: #6b6b76;
  margin: 0 0 8px;
}

.solo-amigo-name-value {
  font-size: 30px;
  font-weight: 800;
  color: #2B2B33;
  margin: 0;
}

.solo-amigo-value-note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #4A3FC4;
  background: rgba(108, 60, 224, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.4;
}

/* ---------------- Tela solo · Consórcio (tabela completa) ---------------- */
.solo-card-wrap-wide { max-width: 560px; }

.solo-consorcio-table-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  overflow-x: auto;
}

.solo-consorcio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.solo-consorcio-table th {
  text-align: left;
  padding: 10px 8px;
  background: #F4F4F8;
  color: #6b6b76;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.solo-consorcio-table td {
  padding: 10px 8px;
  border-top: 1px solid #F0F0F5;
  color: #2B2B33;
}

/* ===== FIM: css/solo-card.css ===== */

/* ===== INÍCIO: js/modules/bingo/bingo.css ===== */
/* ============================================================
   MÓDULO BINGO · bingo.css
   Estilos exclusivos deste módulo. Usa o prefixo "bingo-" em
   todas as classes para nunca colidir com o CSS de outro módulo
   ou do Core — cada novo módulo deve seguir o mesmo cuidado.
   ============================================================ */

/* ---------------- Tabs de etapas (1. Configurar / 2. Cartelas / 3. Sorteio) ---------------- */
.bingo-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.bingo-step-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.bingo-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }

.bingo-step-tab-active {
  background: linear-gradient(120deg, #6C5CE7, #F5A623);
  color: #fff;
}

/* ---------------- Caixa de conteúdo genérica (usada em Configurar e nas Cartelas) ---------------- */
.bingo-card-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
}

.bingo-box-title { margin: 0 0 3px; font-size: 17px; }
.bingo-box-subtitle { margin: 0 0 20px; color: var(--muted-dark); font-size: 14px; }

.bingo-field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 18px 0 10px;
}

/* ---------------- Stepper de quantidade ---------------- */
.bingo-stepper {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 10px;
  max-width: 280px;
}

.bingo-stepper-btn {
  border: none;
  background: #F4F4F8;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  height: 56px;
}

.bingo-stepper-value {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

/* ---------------- Opções de números por cartela ---------------- */
.bingo-options-row {
  display: flex;
  gap: 10px;
}

.bingo-option-btn {
  flex: 1;
  padding: 14px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  max-width: 140px;
}

.bingo-option-btn-active {
  background: linear-gradient(120deg, #6C5CE7, #F5A623);
  color: #fff;
  border-color: transparent;
}

.bingo-hint { font-size: 12.5px; color: var(--muted-dark); margin: 18px 0 22px; }

.bingo-success-banner {
  background: rgba(108, 92, 231, 0.08);
  color: #4A3FC4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin: 6px 0 16px;
  text-align: center;
  line-height: 1.4;
}

.bingo-btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* ---------------- Toolbar da etapa "Cartelas" ---------------- */
.bingo-cards-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.bingo-cards-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.bingo-round-code-tag {
  display: inline-block;
  background: rgba(108, 60, 224, 0.1);
  color: #4A3FC4;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 0;
}
.bingo-round-code-tag strong { letter-spacing: 0.04em; }

/* ---------------- Botões grandes de imprimir/compartilhar (em destaque) ---------------- */
.bingo-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.bingo-tile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 16px;
  border: 2px solid #E2E2EA;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.bingo-tile-btn:active { transform: scale(0.97); }

.bingo-tile-btn-icon { font-size: 30px; line-height: 1; }
.bingo-tile-btn-label { font-size: 14.5px; font-weight: 700; color: #2B2B33; text-align: center; }

.bingo-tile-btn-highlight {
  border-color: transparent;
  background: linear-gradient(120deg, #6C3CE0, #16C6C0);
  box-shadow: 0 8px 20px rgba(108, 60, 224, 0.3);
}
.bingo-tile-btn-highlight .bingo-tile-btn-label { color: #fff; }

/* ---------------- Reconfigurar + Iniciar Sorteio (maiores, lado a lado) ---------------- */
.bingo-toolbar-btn-lg {
  flex: 1;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 14px;
}

/* ---------------- Carrossel de compartilhamento (QR code + link) ---------------- */
.bingo-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.bingo-share-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.bingo-share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #F4F4F8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

.bingo-share-position {
  font-size: 13px;
  font-weight: 700;
  color: #6b6b76;
  margin: 0 0 14px;
}

.bingo-share-qr {
  border-radius: 12px;
  border: 1px solid #E2E2EA;
  margin-bottom: 14px;
}

.bingo-share-hint {
  font-size: 12.5px;
  color: var(--muted-dark);
  line-height: 1.4;
  margin: 0 0 16px;
}

.bingo-share-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.bingo-share-link-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #6b6b76;
  font-family: inherit;
}

.bingo-share-nav {
  display: flex;
  gap: 8px;
}
.bingo-share-nav .btn { flex: 1; }

/* ---------------- Galeria de cartelas ---------------- */
.bingo-cards-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.bingo-cards-gallery-compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.bingo-card-box-compact { padding: 14px; }

.bingo-card-label { font-size: 12px; font-weight: 700; color: #6b6b76; margin-bottom: 10px; }

/* ---------------- Layout da etapa "Sorteio" ---------------- */
.bingo-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

.bingo-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 20px;
}

.bingo-panel-title {
  margin: 0 0 14px;
  font-size: 15px;
  color: #6b6b76;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bingo-drawn-number {
  font-size: 56px;
  font-weight: 800;
  text-align: center;
  color: #6C5CE7;
  margin-bottom: 16px;
}

.bingo-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.bingo-remaining {
  font-size: 13px;
  color: #6b6b76;
  text-align: center;
  margin: 0 0 12px;
}

.bingo-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.bingo-history-chip {
  background: #F4F4F8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- Grade de números dentro de uma cartela ---------------- */
.bingo-card-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bingo-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bingo-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F4F8;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.bingo-cell-marked {
  background: #6C5CE7;
  color: #fff;
}

@media (max-width: 640px) {
  .bingo-layout { grid-template-columns: 1fr; }
  .bingo-steps { flex-direction: row; }
  .bingo-step-tab { font-size: 12px; padding: 10px 4px; }
}

/* ===== FIM: js/modules/bingo/bingo.css ===== */

/* ===== INÍCIO: js/modules/mimica/mimica.css ===== */
/* ============================================================
   MÓDULO MÍMICA · mimica.css
   Estilos exclusivos deste módulo, prefixados com "mimica-"
   para nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

.mimica-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mimica-step-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.mimica-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }
.mimica-step-tab-active {
  background: linear-gradient(120deg, #F0568C, #8E6CF0);
  color: #fff;
}

.mimica-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.mimica-box-title { margin: 0 0 6px; font-size: 19px; text-align: center; }
.mimica-box-subtitle { margin: 0 0 20px; color: #6b6b76; font-size: 14px; text-align: center; }

.mimica-field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 18px 0 10px;
}

.mimica-options-row { display: flex; gap: 10px; }
.mimica-options-wrap { flex-wrap: wrap; }

.mimica-option-btn {
  flex: 1;
  min-width: 130px;
  padding: 12px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.mimica-option-btn-active {
  background: linear-gradient(120deg, #F0568C, #8E6CF0);
  color: #fff;
  border-color: transparent;
}

/* Categorias selecionadas ganham um anel de destaque extra, além do
   preenchimento, para ficar bem claro de longe o que já está marcado. */
.mimica-category-btn.mimica-option-btn-active {
  box-shadow: 0 0 0 2px rgba(240, 86, 140, 0.35);
}
.mimica-category-check { margin-right: 4px; }

.mimica-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 10px;
  max-width: 260px;
}
.mimica-stepper-btn {
  border: none;
  background: #F4F4F8;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.mimica-stepper-value {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

.mimica-hint { font-size: 12.5px; color: #6b6b76; margin: 18px 0 6px; line-height: 1.5; }

.mimica-config-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mimica-btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* ---------------- Placar durante o jogo ---------------- */
.mimica-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.mimica-score-chip {
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(43,43,51,0.08);
}
.mimica-score-chip-active {
  background: linear-gradient(120deg, #F0568C, #8E6CF0);
  color: #fff;
  font-weight: 700;
}

.mimica-play-box { text-align: center; }
.mimica-turn-label { margin: 0; font-size: 13px; color: #6b6b76; text-transform: uppercase; letter-spacing: 0.05em; }
.mimica-turn-team { margin: 4px 0 20px; font-size: 24px; }

.mimica-word-area {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.mimica-word { font-size: 32px; font-weight: 800; color: #8E6CF0; }
.mimica-word-hidden { font-size: 13.5px; color: #9a9aa4; max-width: 320px; margin: 0 auto; }
.mimica-word-printed {
  font-size: 17px;
  font-weight: 700;
  color: #2B2B33;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mimica-word-printed span { font-size: 12.5px; font-weight: 400; color: #6b6b76; }

.mimica-choose-label { font-size: 13px; color: #6b6b76; margin: 0 0 10px; }
.mimica-reveal-choices { display: flex; gap: 10px; }
.mimica-reveal-choices .btn { flex: 1; }

.mimica-timer {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #2B2B33;
}

.mimica-active-controls { display: flex; gap: 10px; }
.mimica-active-controls .btn { flex: 1; }

.mimica-timeup-label { font-weight: 700; margin-bottom: 12px; }
.mimica-waiting-label { font-weight: 700; color: #6b6b76; margin: 10px 0; }

.mimica-end-link { display: block; margin-top: 20px; text-align: center; }

/* ---------------- Placar final ---------------- */
.mimica-final-box { text-align: center; }
.mimica-winner-label { font-weight: 700; color: #8E6CF0; margin-bottom: 18px; }

.mimica-ranking { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mimica-ranking-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #F4F4F8;
  border-radius: 10px;
  font-size: 14px;
}
.mimica-ranking-row-winner {
  background: linear-gradient(120deg, #F0568C, #8E6CF0);
  color: #fff;
}

@media (max-width: 640px) {
  .mimica-options-row { flex-wrap: wrap; }
  .mimica-option-btn { min-width: 100%; }
}

/* ===== FIM: js/modules/mimica/mimica.css ===== */

/* ===== INÍCIO: js/modules/ciranda-presente/ciranda-presente.css ===== */
/* ============================================================
   MÓDULO CIRANDA DO PRESENTE · ciranda-presente.css
   Estilos exclusivos deste módulo, prefixados com "ciranda-"
   para nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

.ciranda-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.ciranda-step-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.ciranda-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }
.ciranda-step-tab-active {
  background: linear-gradient(120deg, #17A398, #0E7A70);
  color: #fff;
}

.ciranda-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.ciranda-box-title { margin: 0 0 6px; font-size: 19px; text-align: center; }
.ciranda-box-subtitle { margin: 0 0 22px; color: #6b6b76; font-size: 14px; text-align: center; }

.ciranda-field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 4px 0 10px;
}

.ciranda-options-row { display: flex; gap: 10px; margin-bottom: 22px; }
.ciranda-option-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.ciranda-option-btn-active {
  background: linear-gradient(120deg, #17A398, #0E7A70);
  color: #fff;
  border-color: transparent;
}

.ciranda-btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* ---------------- Etapa 1 · Início (critério de largada) ---------------- */
.ciranda-start-box { text-align: center; }
.ciranda-gift-icon { font-size: 52px; margin-bottom: 8px; }

.ciranda-criterion-area { min-height: 30px; margin-bottom: 18px; }
.ciranda-criterion-text {
  background: #E3F5F3;
  color: #0E7A70;
  border-radius: 12px;
  padding: 16px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
}

.ciranda-cta-block {
  border: 2px dashed #17A398;
  border-radius: 16px;
  padding: 18px 16px;
  margin: 4px 0 16px;
  background: #F5FCFB;
}

.ciranda-cta-highlight {
  font-size: 17px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(23, 163, 152, 0.35);
}
.ciranda-cta-highlight:disabled {
  background: #BFEAE5;
  color: #0E7A70;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.ciranda-locked-hint {
  font-size: 12px;
  color: #9a9aa4;
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.4;
}

.ciranda-start-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ciranda-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 4px 0 10px;
}
.ciranda-stepper-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #F4F4F8;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: #0E7A70;
}
.ciranda-stepper-value { font-size: 20px; font-weight: 800; min-width: 24px; text-align: center; }

.ciranda-estimate-hint {
  font-size: 12.5px;
  color: #6b6b76;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 20px;
}
.ciranda-estimate-hint strong { color: #0E7A70; }

/* ---------------- Etapa 2 · Desafios (sorteio em sequência) ---------------- */
.ciranda-play-box { text-align: center; }

.ciranda-remaining-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ciranda-remaining-label { font-weight: 700; font-size: 14px; }
.ciranda-remaining-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #F4F4F8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #0E7A70;
}
.ciranda-remaining-value { font-size: 18px; font-weight: 800; min-width: 22px; text-align: center; }

.ciranda-round-counter { font-weight: 600; margin: 0 0 18px; color: #9a9aa4; font-size: 12px; }

.ciranda-stage { min-height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }

.ciranda-idle-stage,
.ciranda-revealed-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ciranda-idle-hint { color: #6b6b76; font-size: 13.5px; margin: 0; }

.ciranda-challenge-text {
  background: #E3F5F3;
  color: #0E7A70;
  border-radius: 12px;
  padding: 20px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  width: 100%;
}

.ciranda-end-link { display: block; margin-top: 18px; }

/* ---------------- Etapa 3 · Campeão ---------------- */
.ciranda-champion-box { text-align: center; }
.ciranda-trophy { font-size: 52px; margin-bottom: 8px; }
.ciranda-champion-title { font-size: 20px; margin: 0 0 10px; }
.ciranda-champion-text { font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.ciranda-champion-hint { font-size: 12px; color: #9a9aa4; line-height: 1.4; margin: 0 0 22px; }
.ciranda-config-actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 640px) {
  .ciranda-options-row { flex-direction: column; }
}

/* ===== FIM: js/modules/ciranda-presente/ciranda-presente.css ===== */

/* ===== INÍCIO: js/modules/sorteio-aleatorio/sorteio.css ===== */
/* ============================================================
   MÓDULO SORTEIO ALEATÓRIO · sorteio.css
   Estilos exclusivos deste módulo, prefixados com "sorteio-"
   para nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

.sorteio-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.sorteio-step-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.sorteio-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }
.sorteio-step-tab-active {
  background: linear-gradient(120deg, #8E6CF0, #6C5CE7);
  color: #fff;
}

.sorteio-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.sorteio-box-title { margin: 0 0 6px; font-size: 19px; text-align: center; }
.sorteio-box-subtitle { margin: 0 0 20px; color: #6b6b76; font-size: 14px; text-align: center; }

.sorteio-add-row { display: flex; gap: 10px; margin-bottom: 16px; }
.sorteio-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.sorteio-input:focus { outline: 2px solid #8E6CF0; border-color: transparent; }

.sorteio-participants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 20px;
}
.sorteio-empty-hint { color: #9a9aa4; font-size: 13px; }

.sorteio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F4F4F8;
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.sorteio-chip-remove {
  border: none;
  background: #E2E2EA;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: #6b6b76;
}
.sorteio-chip-active { background: #EFEAFD; color: #6C5CE7; padding: 8px 14px; }
.sorteio-chip-eliminated { background: #F4F4F8; color: #9a9aa4; text-decoration: line-through; padding: 8px 14px; }

.sorteio-field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 4px 0 10px;
}

.sorteio-options-row { display: flex; gap: 10px; margin-bottom: 20px; }
.sorteio-option-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.sorteio-option-btn-active {
  background: linear-gradient(120deg, #8E6CF0, #6C5CE7);
  color: #fff;
  border-color: transparent;
}

.sorteio-btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* ---------------- Etapa de sorteio (eliminação) ---------------- */
.sorteio-draw-box { text-align: center; }
.sorteio-remaining-count { font-weight: 700; margin: 0 0 14px; }
.sorteio-remaining-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.sorteio-reveal-area { min-height: 60px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.sorteio-shuffling { font-weight: 700; color: #6b6b76; }

.sorteio-screen-reveal { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sorteio-result-elimination { font-size: 17px; font-weight: 700; }
.sorteio-result-runnerup { font-size: 16px; font-weight: 700; }
.sorteio-result-champion { font-size: 19px; font-weight: 800; color: #6C5CE7; }

.sorteio-eliminated-section { margin-top: 22px; text-align: left; }
.sorteio-eliminated-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- Resultado final ---------------- */
.sorteio-final-box { text-align: center; }
.sorteio-trophy { font-size: 56px; margin-bottom: 6px; }
.sorteio-champion-name { font-size: 26px; margin: 0; }
.sorteio-champion-label { color: #6b6b76; margin: 4px 0 18px; }
.sorteio-runnerup-label { margin: 0 0 22px; font-size: 14px; }

.sorteio-config-actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 640px) {
  .sorteio-add-row { flex-direction: column; }
  .sorteio-options-row { flex-direction: column; }
}

/* ===== FIM: js/modules/sorteio-aleatorio/sorteio.css ===== */

/* ===== INÍCIO: js/modules/amigo-secreto/amigo-secreto.css ===== */
/* ============================================================
   MÓDULO AMIGO SECRETO / AMIGO DA ONÇA · amigo-secreto.css
   Estilos exclusivos deste módulo, prefixados com "amigo-" para
   nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

.amigo-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.amigo-step-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.amigo-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }
.amigo-step-tab-active {
  background: linear-gradient(120deg, #D6449B, #8E6CF0);
  color: #fff;
}

.amigo-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.amigo-box-title { margin: 0 0 6px; font-size: 19px; text-align: center; }
.amigo-box-subtitle { margin: 0 0 20px; color: #6b6b76; font-size: 14px; text-align: center; }

.amigo-add-row { display: flex; gap: 10px; margin-bottom: 16px; }
.amigo-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.amigo-input:focus { outline: 2px solid #D6449B; border-color: transparent; }

.amigo-participants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 20px;
}
.amigo-empty-hint { color: #9a9aa4; font-size: 13px; }

.amigo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F4F4F8;
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.amigo-chip-remove {
  border: none;
  background: #E2E2EA;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: #6b6b76;
}

.amigo-field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 4px 0 10px;
}

.amigo-options-row { display: flex; gap: 10px; margin-bottom: 10px; }
.amigo-option-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.amigo-option-btn-active {
  background: linear-gradient(120deg, #D6449B, #8E6CF0);
  color: #fff;
  border-color: transparent;
}

.amigo-hint { font-size: 12.5px; color: #6b6b76; margin: 0 0 20px; line-height: 1.5; }

.amigo-btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* ---------------- Etapa 2 · modo QR code ---------------- */
.amigo-qr-box { text-align: center; }

.amigo-qr-name {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 2px;
}

.amigo-qr-hint {
  font-size: 13px;
  color: var(--muted-dark);
  margin: 0 0 16px;
}

.amigo-qr-image {
  border-radius: 12px;
  border: 1px solid #E2E2EA;
  margin-bottom: 16px;
}

.amigo-qr-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.amigo-qr-link-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #6b6b76;
  font-family: inherit;
}

.amigo-qr-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.amigo-qr-nav .btn { flex: 1; }

/* ---------------- Etapa de sorteio (vez de cada participante) ---------------- */
.amigo-turn-box { text-align: center; }
.amigo-turn-count { font-size: 13px; color: #6b6b76; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.amigo-turn-name { font-size: 28px; margin: 6px 0 2px; }
.amigo-turn-subtitle { color: #6b6b76; margin: 0 0 24px; }

.amigo-turn-area { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }

.amigo-turn-warning { font-size: 12px; color: #9a9aa4; margin: 18px 0 0; }

.amigo-printing-message { font-size: 17px; font-weight: 700; margin: 0; }
.amigo-printing-phrase { font-size: 14px; color: #D6449B; margin: 0; }
.amigo-printing-hint { font-size: 12.5px; color: #6b6b76; margin: 0; }

.amigo-done-check { font-size: 16px; font-weight: 700; margin: 0; }

/* ---------------- Etapa final ---------------- */
.amigo-done-box { text-align: center; }
.amigo-done-icon { font-size: 48px; margin-bottom: 8px; }

.amigo-config-actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 640px) {
  .amigo-add-row { flex-direction: column; }
  .amigo-options-row { flex-direction: column; }
}

/* ===== FIM: js/modules/amigo-secreto/amigo-secreto.css ===== */

/* ===== INÍCIO: js/modules/adedonha/adedonha.css ===== */
/* ============================================================
   MÓDULO ADEDONHA (STOP) · adedonha.css
   Estilos exclusivos deste módulo, prefixados com "adedonha-"
   para nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

.adedonha-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.adedonha-step-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.adedonha-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }
.adedonha-step-tab-active {
  background: linear-gradient(120deg, #2E3A59, #4C7CF0);
  color: #fff;
}

.adedonha-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.adedonha-box-title { margin: 0 0 6px; font-size: 19px; text-align: center; }
.adedonha-box-subtitle { margin: 0 0 20px; color: #6b6b76; font-size: 14px; text-align: center; }

.adedonha-field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 18px 0 10px;
}

.adedonha-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 10px;
  max-width: 260px;
}
.adedonha-stepper-btn {
  border: none;
  background: #F4F4F8;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.adedonha-stepper-value {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

.adedonha-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.adedonha-cat-btn {
  padding: 10px 14px;
  border: 1px solid #E2E2EA;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.adedonha-cat-btn-active {
  background: linear-gradient(120deg, #2E3A59, #4C7CF0);
  color: #fff;
  border-color: transparent;
}

.adedonha-options-row { display: flex; gap: 10px; }
.adedonha-option-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.adedonha-option-btn-active {
  background: linear-gradient(120deg, #2E3A59, #4C7CF0);
  color: #fff;
  border-color: transparent;
}

.adedonha-btn-block { width: 100%; padding: 14px; font-size: 15px; margin-top: 20px; }

/* ---------------- Faixa da letra sorteada ---------------- */
.adedonha-letter-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(120deg, #2E3A59, #4C7CF0);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}
.adedonha-letter-label { font-size: 13px; opacity: 0.85; }
.adedonha-letter-value { font-size: 30px; font-weight: 800; }

/* ---------------- Resumo de cartelas (ocultas por padrão) ---------------- */
.adedonha-cards-summary { text-align: center; margin-bottom: 20px; }
.adedonha-cards-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.adedonha-round-code-tag {
  display: inline-block;
  background: rgba(108, 60, 224, 0.1);
  color: #4A3FC4;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 6px 0 14px;
}
.adedonha-round-code-tag strong { letter-spacing: 0.04em; }

/* ---------------- Botões grandes de imprimir/compartilhar (em destaque) ---------------- */
.adedonha-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0 14px;
}

.adedonha-tile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 16px;
  border: 2px solid #E2E2EA;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.adedonha-tile-btn:active { transform: scale(0.97); }

.adedonha-tile-btn-icon { font-size: 30px; line-height: 1; }
.adedonha-tile-btn-label { font-size: 14.5px; font-weight: 700; color: #2B2B33; text-align: center; }

.adedonha-tile-btn-highlight {
  border-color: transparent;
  background: linear-gradient(120deg, #6C3CE0, #16C6C0);
  box-shadow: 0 8px 20px rgba(108, 60, 224, 0.3);
}
.adedonha-tile-btn-highlight .adedonha-tile-btn-label { color: #fff; }

/* ---------------- Tela de compartilhamento (QR code + link único) ---------------- */
.adedonha-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.adedonha-share-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.adedonha-share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #F4F4F8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

.adedonha-share-round {
  font-size: 13px;
  font-weight: 700;
  color: #6b6b76;
  margin: 0 0 14px;
}

.adedonha-share-qr {
  border-radius: 12px;
  border: 1px solid #E2E2EA;
  margin-bottom: 14px;
}

.adedonha-share-hint {
  font-size: 12.5px;
  color: var(--muted-dark);
  line-height: 1.4;
  margin: 0 0 16px;
}

.adedonha-share-link-row {
  display: flex;
  gap: 8px;
}

.adedonha-share-link-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #6b6b76;
  font-family: inherit;
}

.adedonha-cards-gallery.adedonha-cards-hidden { display: none; }

.adedonha-cards-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.adedonha-cards-toolbar .adedonha-btn-block { flex: 1; margin-top: 0; }

.adedonha-cards-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.adedonha-card-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 16px;
  text-align: center;
}
.adedonha-card-label { font-size: 12px; font-weight: 700; color: #6b6b76; margin-bottom: 6px; }
.adedonha-card-big-letter { font-size: 34px; font-weight: 800; color: #4C7CF0; margin-bottom: 10px; }
.adedonha-card-list { margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 2; text-align: left; }

/* ---------------- Etapa da rodada ---------------- */
.adedonha-round-box { text-align: center; }
.adedonha-timer {
  font-size: 56px;
  font-weight: 800;
  color: #4C7CF0;
  margin-bottom: 20px;
}
.adedonha-no-timer-hint {
  font-size: 14px;
  color: #6b6b76;
  background: #F4F4F8;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  line-height: 1.4;
}
.adedonha-round-controls { display: flex; flex-direction: column; gap: 10px; }

.adedonha-round-end-label { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.adedonha-round-end-hint { font-size: 13px; color: #6b6b76; margin: 0 0 18px; }

/* ---------------- Apuração (host escaneia QR dos jogadores) ---------------- */
.adedonha-apuracao-card {
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
}
.adedonha-apuracao-card-wide { max-width: 640px; }

.adedonha-apuracao-title { margin: 4px 0 16px; font-size: 17px; text-align: center; }

.adedonha-apuracao-scan-area {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}
.adedonha-apuracao-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.adedonha-apuracao-scan-status {
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #4A3FC4;
  text-align: center;
  margin: 8px 0 0;
}

.adedonha-apuracao-no-camera {
  font-size: 13px;
  color: #6b6b76;
  background: #F4F4F8;
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.adedonha-apuracao-manual-label { margin-top: 20px; }
.adedonha-apuracao-manual-row { display: flex; gap: 8px; }
.adedonha-apuracao-manual-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}

.adedonha-apuracao-empty {
  font-size: 13px;
  color: #9a9aa4;
  text-align: center;
  padding: 10px 0;
}
.adedonha-apuracao-list { list-style: none; margin: 0; padding: 0; }
.adedonha-apuracao-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid #F0F0F5;
  font-size: 14px;
  font-weight: 600;
}
.adedonha-apuracao-remove-btn {
  border: none;
  background: #F4F4F8;
  color: #9a9aa4;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}

/* ---------------- Resultado da apuração (placar + tabela) ---------------- */
.adedonha-apuracao-ranking { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: none; }
.adedonha-apuracao-ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #F4F4F8;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.adedonha-apuracao-ranking-first {
  background: linear-gradient(120deg, #6C3CE0, #16C6C0);
  color: #fff;
}

.adedonha-apuracao-hint {
  font-size: 12.5px;
  color: #6b6b76;
  line-height: 1.4;
  margin: 0 0 14px;
  text-align: center;
}

.adedonha-apuracao-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #E2E2EA;
  margin-bottom: 18px;
}
.adedonha-apuracao-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.adedonha-apuracao-table th {
  text-align: left;
  padding: 10px 10px;
  background: #F4F4F8;
  color: #6b6b76;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.adedonha-apuracao-cat-cell {
  font-weight: 700;
  white-space: nowrap;
  padding: 10px;
  border-top: 1px solid #F0F0F5;
}
.adedonha-apuracao-cell {
  padding: 10px;
  border-top: 1px solid #F0F0F5;
  border-left: 1px solid #F0F0F5;
  text-align: center;
  white-space: nowrap;
}
.adedonha-apuracao-cell-answer { display: block; font-weight: 600; }
.adedonha-apuracao-cell-points { display: block; font-size: 11px; color: #6b6b76; margin-top: 2px; }
.adedonha-apuracao-cell-valid { background: rgba(22, 198, 192, 0.08); }
.adedonha-apuracao-cell-invalid { background: rgba(255, 111, 94, 0.06); }
.adedonha-apuracao-cell-zeroed { background: rgba(255, 111, 94, 0.16); }
.adedonha-apuracao-cell-zeroed .adedonha-apuracao-cell-points { color: #C0392B; font-weight: 700; }
.adedonha-apuracao-cell-clickable { cursor: pointer; }
.adedonha-apuracao-cell-clickable:active { transform: scale(0.97); }

.adedonha-apuracao-totals-row td {
  font-weight: 800;
  background: #F4F4F8;
  border-top: 2px solid #E2E2EA;
  padding: 10px;
  text-align: center;
}
.adedonha-apuracao-totals-row td:first-child { text-align: left; }

@media (max-width: 640px) {
  .adedonha-options-row { flex-direction: column; }
}

/* ===== FIM: js/modules/adedonha/adedonha.css ===== */

/* ===== INÍCIO: js/modules/quiz-casal/quiz-casal.css ===== */
/* ============================================================
   MÓDULO QUIZ PARA CASAL · quiz-casal.css
   Estilos exclusivos deste módulo, prefixados com "quizcasal-"
   para nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

.quizcasal-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.quizcasal-step-tab {
  flex: 1;
  padding: 12px 6px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}
.quizcasal-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }
.quizcasal-step-tab-active {
  background: linear-gradient(120deg, #E8547A, #F0568C);
  color: #fff;
}

.quizcasal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.quizcasal-box-title { margin: 0 0 6px; font-size: 19px; text-align: center; }
.quizcasal-box-subtitle { margin: 0 0 20px; color: #6b6b76; font-size: 14px; text-align: center; }

.quizcasal-field-label { display: block; font-weight: 700; font-size: 13px; margin: 18px 0 10px; }

.quizcasal-options-row { display: flex; gap: 10px; margin-bottom: 10px; }
.quizcasal-option-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.quizcasal-option-btn-active {
  background: linear-gradient(120deg, #E8547A, #F0568C);
  color: #fff;
  border-color: transparent;
}

.quizcasal-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 10px;
  max-width: 260px;
}
.quizcasal-stepper-btn {
  border: none;
  background: #F4F4F8;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.quizcasal-stepper-value {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

.quizcasal-questions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 6px;
}
.quizcasal-question-check {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.quizcasal-question-check-active { background: #FDEDF2; border-color: #E8547A; }
.quizcasal-check-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid #E2E2EA;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #E8547A;
}
.quizcasal-topic-tag { font-style: normal; color: #9a9aa4; font-size: 11.5px; }

.quizcasal-btn-block { width: 100%; padding: 14px; font-size: 15px; margin-top: 16px; }

.quizcasal-volume-teaser {
  text-align: center;
  font-size: 12.5px;
  color: #8b5cf6;
  background: rgba(108, 60, 224, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 14px 0 0;
  line-height: 1.4;
}

/* ---------------- Cadastro de casais ---------------- */
.quizcasal-add-couple-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.quizcasal-input {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.quizcasal-input:focus { outline: 2px solid #E8547A; border-color: transparent; }

.quizcasal-couples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 8px;
}
.quizcasal-empty-hint { color: #9a9aa4; font-size: 13px; }
.quizcasal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F4F4F8;
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.quizcasal-chip-remove {
  border: none;
  background: #E2E2EA;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: #6b6b76;
}

.quizcasal-nav-row { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ---------------- Entrevista ---------------- */
.quizcasal-interview-box { text-align: center; }
.quizcasal-interview-progress { font-size: 12.5px; color: #6b6b76; margin: 0 0 4px; }
.quizcasal-interview-partner { font-size: 24px; margin: 4px 0; }
.quizcasal-interview-warning { font-size: 12.5px; color: #E8547A; font-weight: 700; margin: 0 0 20px; }

.quizcasal-question-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
}
.quizcasal-tag-self { background: #E6F7F4; color: #17A398; }
.quizcasal-tag-guess { background: #FDEEDC; color: #F5A623; }

.quizcasal-interview-question { font-size: 17px; font-weight: 700; margin: 0 0 18px; }
.quizcasal-answer-input { width: 100%; text-align: center; margin-bottom: 4px; }

.quizcasal-done-check { font-size: 16px; font-weight: 700; margin: 0 0 18px; }

/* ---------------- Apresentação ---------------- */
.quizcasal-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.quizcasal-score-chip {
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  box-shadow: 0 2px 8px rgba(43,43,51,0.08);
}
.quizcasal-score-chip-active {
  background: linear-gradient(120deg, #E8547A, #F0568C);
  color: #fff;
  font-weight: 700;
}

.quizcasal-present-box { text-align: center; }
.quizcasal-present-progress { font-size: 12.5px; color: #6b6b76; margin: 0; }
.quizcasal-present-couple { font-size: 22px; margin: 4px 0 14px; }
.quizcasal-present-question { font-size: 17px; font-weight: 700; margin: 0 0 20px; }

.quizcasal-present-reveal { min-height: 60px; margin-bottom: 14px; }

.quizcasal-answers-compare {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.quizcasal-answer-card {
  flex: 1;
  background: #F4F4F8;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quizcasal-answer-card span { font-size: 11.5px; color: #6b6b76; font-weight: 700; text-transform: uppercase; }
.quizcasal-answer-card strong { font-size: 15px; }

.quizcasal-match-buttons { display: flex; gap: 10px; }
.quizcasal-match-buttons .btn { flex: 1; }

.quizcasal-result-label { font-size: 16px; font-weight: 800; margin: 0; }
.quizcasal-result-yes { color: #17A398; }
.quizcasal-result-no { color: #E85D3B; }

/* ---------------- Ranking final ---------------- */
.quizcasal-final-box { text-align: center; }
.quizcasal-trophy { font-size: 48px; margin-bottom: 8px; }
.quizcasal-ranking { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.quizcasal-ranking-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #F4F4F8;
  border-radius: 10px;
  font-size: 13.5px;
}
.quizcasal-ranking-row-winner {
  background: linear-gradient(120deg, #E8547A, #F0568C);
  color: #fff;
}

@media (max-width: 640px) {
  .quizcasal-add-couple-row { flex-direction: column; }
  .quizcasal-answers-compare { flex-direction: column; }
}

/* ===== FIM: js/modules/quiz-casal/quiz-casal.css ===== */

/* ===== INÍCIO: js/modules/consorcio/consorcio.css ===== */
/* ============================================================
   MÓDULO CONSÓRCIO DE DINHEIRO · consorcio.css
   Estilos exclusivos deste módulo, prefixados com "consorcio-"
   para nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

.consorcio-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.consorcio-step-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ECECF2;
  color: #9a9aa4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.consorcio-step-tab:disabled { cursor: not-allowed; opacity: 0.7; }
.consorcio-step-tab-active {
  background: linear-gradient(120deg, #1E8E5A, #17A398);
  color: #fff;
}

.consorcio-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.consorcio-box-title { margin: 0 0 6px; font-size: 19px; text-align: center; }
.consorcio-box-subtitle { margin: 0 0 20px; color: #6b6b76; font-size: 13.5px; text-align: center; }

.consorcio-add-row { display: flex; gap: 10px; margin-bottom: 16px; }
.consorcio-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.consorcio-input:focus { outline: 2px solid #1E8E5A; border-color: transparent; }

.consorcio-participants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 4px;
}
.consorcio-empty-hint { color: #9a9aa4; font-size: 13px; }
.consorcio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F4F4F8;
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.consorcio-chip-remove {
  border: none;
  background: #E2E2EA;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: #6b6b76;
}

.consorcio-hint { font-size: 12.5px; color: var(--muted-dark); margin: 6px 0 18px; line-height: 1.5; }

.consorcio-percent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.consorcio-percent-btn {
  flex: 1;
  min-width: 54px;
  padding: 10px 6px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.consorcio-percent-btn-active {
  background: linear-gradient(120deg, #1FAA59, #17A398);
  color: #fff;
  border-color: transparent;
}

.consorcio-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 6px;
}
.consorcio-field-label { display: block; font-weight: 700; font-size: 12.5px; margin: 0 0 6px; }

.consorcio-btn-block { width: 100%; padding: 14px; font-size: 15px; margin-top: 8px; }

/* ---------------- Compartilhar extrato via QR ---------------- */
.consorcio-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.consorcio-share-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.consorcio-share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #F4F4F8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

.consorcio-share-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}

.consorcio-share-qr {
  border-radius: 12px;
  border: 1px solid #E2E2EA;
  margin-bottom: 14px;
}

.consorcio-share-hint {
  font-size: 12.5px;
  color: var(--muted-dark);
  line-height: 1.4;
  margin: 0 0 16px;
}

.consorcio-share-link-row {
  display: flex;
  gap: 8px;
}

.consorcio-share-link-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #6b6b76;
  font-family: inherit;
}

/* ---------------- Tabela do consórcio ---------------- */
.consorcio-schedule-summary { text-align: center; margin-bottom: 20px; }
.consorcio-cards-toolbar-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.consorcio-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(43,43,51,0.08);
  padding: 8px;
}
.consorcio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.consorcio-table th {
  text-align: left;
  padding: 12px;
  color: #6b6b76;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #F4F4F8;
}
.consorcio-table td {
  padding: 12px;
  border-bottom: 1px solid #F4F4F8;
}
.consorcio-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .consorcio-add-row { flex-direction: column; }
  .consorcio-fields-grid { grid-template-columns: 1fr; }
}

/* ===== FIM: js/modules/consorcio/consorcio.css ===== */

/* ===== INÍCIO: js/modules/videoke/videoke.css ===== */
/* ============================================================
   MÓDULO VIDEOKE · videoke.css
   Estilos exclusivos deste módulo, prefixados com "videoke-"
   para nunca colidir com o CSS de outros módulos ou do Core.
   ============================================================ */

/* ---------------- Busca (topo, destaque principal) ---------------- */
.videoke-search-wrap { max-width: 640px; margin: 0 auto 14px; }

.videoke-total-count {
  text-align: center;
  font-size: 12px;
  color: #9a9aa4;
  margin: -6px 0 14px;
}
.videoke-search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E2E2EA;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}
.videoke-search-input:focus { outline: 2px solid var(--brand-purple); border-color: transparent; }

.videoke-search-summary {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 12px;
}

/* ---------------- Abas de atalho ---------------- */
.videoke-tabs {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 14px;
}
.videoke-tab {
  flex: 1;
  padding: 11px 6px;
  border: none;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.videoke-tab-active {
  background: linear-gradient(120deg, var(--brand-purple), #5847D6);
  color: #fff;
}

/* ---------------- Lista / agrupamento por artista ---------------- */
.videoke-results-area { max-width: 640px; margin: 0 auto; }
.videoke-list { display: flex; flex-direction: column; gap: 10px; }

.videoke-letter-block { margin-bottom: 8px; }

.videoke-letter-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--brand-purple), #4C7CF0);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  padding: 11px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.25);
  letter-spacing: 0.3px;
}
.videoke-letter-header:active { box-shadow: 0 1px 4px rgba(108, 92, 231, 0.25); transform: scale(0.99); }
.videoke-letter-arrow { font-size: 13px; width: 16px; flex-shrink: 0; opacity: 0.85; }
.videoke-letter-text { flex-shrink: 0; }
.videoke-letter-count { margin-left: auto; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8); }
.videoke-letter-content { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }

.videoke-empty-hint { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0; }

/* Faixa de artista: fundo bem discreto, alternando entre dois tons quase
   iguais só para o olho conseguir separar um artista do seguinte. */
.videoke-artist-band {
  border-radius: 14px;
  overflow: hidden;
}
.videoke-artist-band-a { background: rgba(108, 92, 231, 0.045); }
.videoke-artist-band-b { background: rgba(43, 43, 51, 0.03); }

.videoke-artist-band-header {
  margin: 10px 14px 6px;
  padding: 8px 14px;
  display: inline-block;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  background: var(--brand-purple);
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.videoke-artist-band-header-toggle {
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.videoke-artist-band-header-toggle:active { transform: scale(0.98); }
.videoke-artist-band-header-toggle .videoke-letter-arrow { color: rgba(255,255,255,0.85); font-size: 11px; }
.videoke-artist-count { font-weight: 600; color: rgba(255,255,255,0.75); font-size: 11px; }

/* ---------------- Linha de música: ▶️ | nome | ⭐ | 🖨️ ---------------- */
.videoke-song-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
}
.videoke-song-row-active { background: rgba(108, 92, 231, 0.09); border-radius: 10px; }

.videoke-play-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: var(--card-bg);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(43,43,51,0.08);
}
.videoke-play-btn:hover { background: var(--brand-purple); }

.videoke-song-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.videoke-song-artist-inline {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-purple);
  margin-top: 1px;
}

.videoke-favorite-btn,
.videoke-qr-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  color: var(--muted);
}
.videoke-favorite-btn-active { color: #F5A623; }
.videoke-favorite-btn:hover,
.videoke-qr-btn:hover { background: rgba(43,43,51,0.06); }

/* ---------------- Player incorporado ---------------- */
.videoke-player-area { max-width: 720px; margin: 0 auto; }
.videoke-player-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.videoke-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.videoke-player-now { font-size: 14px; }
.videoke-player-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.videoke-player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ---------------- Adicionar manualmente (colapsável) ---------------- */
.videoke-add-toggle-row {
  max-width: 640px;
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.videoke-add-toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px;
}
.videoke-add-toggle-btn:hover { color: var(--brand-purple); }

.videoke-add-form {
  max-width: 640px;
  margin: 10px auto 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.videoke-input {
  padding: 12px 14px;
  border: 1px solid #E2E2EA;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.videoke-input:focus { outline: 2px solid var(--brand-purple); border-color: transparent; }
.videoke-btn-block { width: 100%; padding: 13px; font-size: 14.5px; }
.videoke-error { color: #E85D3B; font-size: 12.5px; margin: 2px 0 0; text-align: center; }

@media (max-width: 640px) {
  .videoke-player-header { flex-direction: column; align-items: stretch; }
}

/* ===== FIM: js/modules/videoke/videoke.css ===== */
