* {
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #a7c67d, #f0f7e8);
  color: #2e4a1f;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  width: 100%;
  background-color: #f7d94c;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #3a6611;
}

#axeCount {
  font-weight: bold;
  font-size: 1.3rem;
  color: #3a6611;
}

#btnVoltar {
  background: #3a6611;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#btnVoltar:hover {
  background: #5b9030;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  width: 100%;
  max-width: 480px;
  margin: 20px auto 0 auto;
}

#tabuleiro {
  display: grid;
  grid-template-columns: repeat(6, 60px);
  grid-template-rows: repeat(6, 60px);
  gap: 5px;
  background: #d9f7e7;
  padding: 10px;
  border-radius: 15px;
  box-shadow: inset 0 0 10px #3a6611aa;
}

.celula {
  background: #f7f5e6;
  border-radius: 10px;
  font-size: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
  border: 3px solid transparent;
}

.celula.selecionada {
  border-color: #3a6611;
  transform: scale(1.1);
  box-shadow: 0 0 8px #3a6611cc;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 360px;
  background: #f0f7e8;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 15px #00000088;
  transform: translate(-50%, -50%);
  z-index: 100;
  text-align: center;
}

.popup.hidden {
  display: none;
}

.orixas-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.orixas-container img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  border: 3px solid #3a6611;
  background: #f7f5e6;
}

#btnProximaMissao {
  background: #3a6611;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
}

#btnProximaMissao:hover {
  background: #5b9030;
}

#sumario {
  max-width: 480px;
  margin: 20px auto 40px;
  padding: 10px 20px;
  background: #d9f7e7;
  border-radius: 15px;
  box-shadow: inset 0 0 8px #3a6611aa;
}

#sumario h2 {
  color: #3a6611;
  text-align: center;
  margin-bottom: 12px;
}

#orixasSumario {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.orixa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  font-size: 0.9rem;
  color: #2e4a1f;
}

.orixa-item img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin-bottom: 5px;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.orixa-item.desbloqueado img {
  border-color: #3a6611;
}
/* ... (todo o seu CSS anterior continua igual até aqui) ... */

/* Responsividade */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header h1 {
    font-size: 1.2rem;
    text-align: left;
  }

  #axeCount {
    font-size: 1.1rem;
  }

  #btnVoltar {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  main {
    padding: 10px;
    max-width: 100%;
  }

  #tabuleiro {
    grid-template-columns: repeat(6, 45px);
    grid-template-rows: repeat(6, 45px);
    gap: 4px;
    padding: 6px;
  }

  .celula {
    font-size: 28px;
  }

  .popup {
    width: 95%;
    padding: 15px;
  }

  .orixas-container img {
    width: 50px;
    height: 50px;
  }

  #btnProximaMissao {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  #sumario {
    padding: 8px 10px;
  }

  .orixa-item {
    width: 70px;
    font-size: 0.8rem;
  }

  .orixa-item img {
    width: 45px;
    height: 45px;
  }
}
