/* ====== Base ====== */ :root {
  --primary: #2563EB;
  --secondary: #FFD93D;
  --green: #34D399;
  --pink: #F9A8D4;
  --bg: #F7F8FA;
  --text: #1F2937;
  --muted: #6B7280;
  --card: #FFFFFF;
  --ring: rgba(37, 99, 235, 0.25);
  --card: #ffffff;
  --ink: #1f2a44;
  --brand: #6c8cff;
  /* mais contrastado para botões */ --brand-dark: #4f6fe0;
  --accent: #ffd166;
  --success: #35b37e;
  --danger: #ff6b6b;
  --grid: #e9eefc;
  --found: #b7e4c7;
  --select: #ffeaa7;
  --shadow: 0 10px 30px rgba(31, 42, 68, .08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

main .card, .cta{
  margin-left:20px;
  margin-right:20px;
}

/* ====== Header / Nav ====== */ .header {
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
}

.nav .menu {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a.active, .nav a:hover {
  background: rgba(255,255,255,0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ====== Layout ====== */ .container {
  padding: 24px 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 800px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* ====== Hero ====== */ .hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 32px 20px;
  background: linear-gradient(180deg, var(--primary), #3b82f6);
  color: white;
  align-items:center;
}

.hero__content {
  grid-column: span 7;
  align-items:center;
}

.hero__content h1 {
  font-size: 2.2rem;
  margin: 0 0 10px;
  line-height: 1.2;
}

.hero__content h1 span {
  color: var(--secondary);
}

.hero__content p {
  max-width: 540px;
}

.hero__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.hero__art {
  grid-column: span 5;
  font-size: 4rem;
  text-align: right;
  opacity: .9;
}

/* ====== Cards ====== */ .cards {
  margin: 24px auto;
  max-width: 1100px;
}

.card {
  grid-column: span 4;
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  margin-bottom:12px;
}

.card h2 {
  margin-top: 0;
}

.card-navegacao {
  margin-top:30px;
  grid-column: span 4;
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
}

/* ====== Buttons / Chips ====== */ .btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: transform .05s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

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

.btn:focus {
  box-shadow: 0 0 0 4px var(--ring);
}

.btn-primary {
  background: var(--secondary);
  color: #1f2937;
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 12px 18px;
}

.btn-chip {
  background: #eef2ff;
  color: #1e3a8a;
  box-shadow: none;
}

/* ====== Toolbar ====== */ .toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.toolbar h1 {
  margin: 0;
}

.toolbar .filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

input[type="search"], select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: white;
  outline: none;
}

input[type="search"]:focus, select:focus {
  box-shadow: 0 0 0 4px var(--ring);
  border-color: transparent;
}

/* ====== Chips grid (capítulos) ====== */ .chips {
  grid-template-columns: repeat(auto-fill, minmax(70px, 0.5fr));
}

.chips .chip {
  background: white;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  text-decoration:none;
  color:black;
}

.chip:hover {
  border: 2px solid var(--primary);
}

/* ====== Badges and callouts ====== */ .badge {
  display: inline-block;
  padding: 6px 10px;
  background: #e0e7ff;
  color: #1e3a8a;
  border-radius: 999px;
  font-weight: 700;
}

.callout {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 16px;
  border-radius: 14px;
}

/* ====== Memory game ====== */ .memory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 12px;
  margin-bottom:15px;
}

.memory .tile {
  width:120px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: transform .08s ease;
}

.memory .tile.flipped {
  background: #eef2ff;
  border-color: var(--primary);
  transform: scale(1.02);
}

/* ====== Footer ====== */ .footer {
  text-align: center;
  padding: 18px;
  color: white;
  background: var(--primary);
  margin-top: 24px;
}

/* ====== Icon helpers ====== */ .icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

/* ====== Wordsearch (Caça-palavras) ====== */ .wordsearch {
  max-width:400px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(28px, 28px));
  gap:6px;
  user-select:none;
}

.wordsearch .cell {
  width:28px;
  height:28px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  cursor:pointer;
}

.wordsearch .cell.active {
  background:#e0e7ff;
  border-color: var(--primary);
}

.wordsearch .cell.found {
  background:#34D399;
  color:#fff;
}

/* ====== Puzzle (Quebra-cabeça) ====== */ .puzzle {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
  max-width:420px;
}

.piece {
  background:#fff;
  border:2px dashed #cbd5e1;
  height:120px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:grab;
}

.piece.dragging {
  opacity:.7;
  border-style: solid;
}

/* ====== Guess (Adivinhe o Personagem) ====== */ .guess {
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:520px;
}

.guess .hints {
  background:#fff;
  border:1px solid #e5e7eb;
  padding:12px;
  border-radius:12px;
}

.guess input {
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e5e7eb;
}

.guess .result {
  font-weight:800;
}

/* ====== Modal (popup bonito) ====== */ .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  display: none;
  align-items:center;
  justify-content:center;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  width: min(520px, 92%);
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
}

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

.modal header h3 {
  margin:0;
  font-size: 1.25rem;
}

.modal .modal-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 12px;
}

.modal .opt {
  flex:1 1 100%;
}

.modal .close-x {
  margin-left:auto;
  cursor:pointer;
  font-weight: bold;
}

.modal-show {
  display:flex;
}

/* ====== Attractive chapter chips ====== */ .chapters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chapter-chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef2ff;
  color:#1f2937;
  text-decoration:none;
  border:1px solid #dbeafe;
  transition: transform .05s ease;
}

.chapter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37,99,235,.18);
}

.chapter-chip .num {
  background:#2563EB;
  color:#fff;
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
}

/* estilo só dos números antes dos versículos */ .numero {
  font-weight: bold;
  color: darkred;
  font-size: 1em;
  margin-right: 5px;
}

.numerotitulo {
  font-weight: bold;
  color: darkred;
  font-size: 1.2em;
  margin-left: 5px;
  margin-right: 5px;
}

#navegacao-dos-livros {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

#navegacao-dos-livros a{
  text-decoration:none;
  color:var(--primary);
}

#navegacao-dos-livros a:hover{
  text-decoration:none;
  color:#000;
}

#navegacao-dos-capitulos {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

#navegacao-dos-capitulos a{
  text-decoration:none;
  color:var(--primary);
}

#navegacao-dos-capitulos a:hover{
  text-decoration:none;
  color:#000;
}

#scrumb{
  text-decoration:none;
  color:var(--primary);
  font-size:14px;
}

#scrumb a{
  text-decoration:none;
  color:#808080;
  font-size:14px;
}

#scrumb a:hover{
  text-decoration:none;
  color:#000;
  font-size:14px;
}

#scrumb-cap{
  text-decoration:none;
  color:var(--primary);
  font-size:14px;
}

#scrumb-cap a{
  text-decoration:none;
  color:#808080;
  font-size:14px;
}

#scrumb-cap a:hover{
  text-decoration:none;
  color:#000;
  font-size:14px;
}

.resumo{
  color: #808080;
}

/* Botão */ #backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  caret-color: transparent;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: #0056cc;
  transform: scale(1.1);
}

.cards-jogos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom:30px;
}

.card-jogos {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 15px;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-jogos i {
  font-size: 1.5rem;
}

.card-jogos:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.yellow {
  background: #FEF9C3;
}

.green {
  background: #D1FAE5;
}

.pink {
  background: #FCE7F3;
}

.blue {
  background: #DBEAFE;
}

.red {
  background: #FEE2E2;
}

.purple {
  background: #EDE9FE;
}

#historia-dia{
  color:var(--primary);
}

/* ---- Modal estilizado ---- */ .modal-puzzle {
  display: none;
  /* escondido por padrão */ position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s ease;
}

.modal-content h2 {
  margin: 0 0 10px;
  color: #2c3e50;
  font-size: 1.4rem;
}

.modal-content p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
}

.modal-content button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.modal-content button:hover {
  background: #2980b9;
}

@keyframes scaleIn {
  from { transform: scale(0.8);
  opacity: 0;
}

to {
  transform: scale(1);
  opacity: 1;
}