@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Oxanium', cursive;
}

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body {
  text-align: center;
  background: linear-gradient(to bottom, #6ab7f5, #fff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  display: inline-block;
  margin: 0 auto;
  padding: 15px 15px 95px;
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 500px;
  height: 100vh;
}

.pokedex {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Ajustar a área onde o Pokémon aparece para corresponder à tela da Pokédex */
.pokemon-screen-area {
  position: absolute;
  top: 23.5%;
  left: 14.5%;
  width: 71%;
  height: 30%;
  z-index: 2;
  pointer-events: none;
}

/* Configurações do Pokémon */
.pokemon__image {
  position: absolute;
  bottom: 57%;
  left: 50%;
  transform: translate(-63%, 20%);
  height: auto;
  max-height: 30%;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  z-index: 5;
  display: block;
  opacity: 1;
  image-rendering: pixelated;  /* Melhorar a exibição dos pixels para GIFs de baixa resolução */
}

.pokemon__data {
  position: absolute;
  font-weight: 600;
  color: #aaa;
  top: 54%;
  right: 27%;
  font-size: clamp(8px, 5vw, 25px);
  width: 46%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pokemon__number {
  display: flex;
  align-items: center;
  margin-right: 5px;
}

.pokemon__number .type-badge {
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  line-height: 24px;
  margin: 0 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.pokemon__name {
  color: #3a444d;
  text-transform: capitalize;
}

/* Estilo para o balão multifuncional */
.multifunctional-bubble {
  position: absolute;
  bottom: 14%;
  left: 46%;
  transform: translateX(-50%);
  width: 71%;
  max-width: 310px;
  background-color: white;
  border: 3px solid #3a444d;
  border-radius: 15px;
  box-shadow: -10px 10px 15px rgba(0, 0, 0, 0.3);
  z-index: 20;
  box-sizing: border-box;
  overflow: hidden;
}

/* Conteúdo das abas - definição completa */
.tab-content {
  height: 160px;
  position: relative;
  transition: height 0.3s ease;
  overflow: hidden;
  background: white;
}

.tab-panel {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 10px;
  display: none;
  transition: transform 0.3s ease;
  transform: translateX(100%);
  overflow-y: auto;
}

.tab-panel.active {
  display: block;
  transform: translateX(0);
}

/* Ajustar o container de tentativas para acomodar o formulário */
.tab-panel#attempts-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
}

/* Reorganizar a aba de tentativas */
.attempts-container {
  display: flex;
  flex-direction: column;
  padding: 6px 6px 4px 6px;
  max-height: 145px;
  overflow: auto;
  gap: 2px;
  margin-top: 5px;
}

/* Ajustar a área de tentativas */
.attempts-title {
  font-size: 0.65rem;
  margin: 1px 0 2px 0;
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: #3a444d;
  text-transform: uppercase;
  border-bottom: 1px solid #ff3e3e;
  padding-bottom: 2px;
}

/* Compactar os itens de tentativa */
.attempt {
  padding: 2px;
  width: 100%;
  margin-bottom: 1px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(58, 68, 77, 0.2);
  transition: all 0.2s ease;
}

.attempt-image {
  width: 25px;
  height: 25px;
  object-fit: contain;
  margin-right: 4px;
}

.attempt-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #333;
  flex-grow: 1;
}

.attempt .type-badge {
  width: 16px;
  height: 16px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin: 0 1px;
}

/* Campo de busca */
.form-container {
  position: absolute;
  width: 71%;
  max-width: 310px;
  left: 46%;
  transform: translateX(-50%);
  bottom: calc(14% - 36px); /* Encosta diretamente embaixo do balão */
  padding: 0;
  height: auto;
  background: white;
  border: 3px solid #3a444d;
  border-radius: 12px;
  overflow: visible;
  z-index: 20;
  box-shadow: -10px 10px 15px rgba(0, 0, 0, 0.3);
}

.form {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 2px 15px;
  height: auto;
  z-index: 10;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.input__search {
  width: 100%;
  padding: 3px 35px;
  outline: none;
  border: none;
  background-color: white;
  color: #3a444d;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
}

.input__search::placeholder {
  color: rgba(58, 68, 77, 0.9);
  font-size: 0.95rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #3a444d;
  text-shadow: none;
  z-index: 11;
}

.clear-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #3a444d;
  text-shadow: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 11;
  display: none;
  padding: 2px;
}

.form.has-text .clear-button {
  display: block;
}

/* Estilo para quando houver foco no input */
.input__search:focus {
  background-color: #f5f5f5;
  box-shadow: inset 0 0 8px rgba(58, 68, 77, 0.3);
}

/* Efeito de fade-out do placeholder quando o input estiver em foco */
.input__search:focus::placeholder {
  opacity: 0.6;
}

/* Remover X azul nativo */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Remover estilos duplicados */
.form input,
.form-container input {
  all: unset;
  width: 100%;
  padding: 6px 35px;
  color: #3a444d;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: white;
}

/* Estilos para o botão de limpar */
.clear-button {
  display: none;
}

/* Botões precisam ser reposicionados */
.buttons {
  position: absolute;
  bottom: 2%;
  left: 50%;
  width: 60%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  justify-content: center;
  z-index: 5;
}

.button {
  width: 45%;
  padding: 3%;
  border: 2px solid #000;
  border-radius: 5px;
  font-size: clamp(8px, 3.8vw, 0.85rem);
  font-weight: 600;
  color: white;
  background-color: #ff3e3e;
  box-shadow: -2px 3px 0 #222, -3px 5px 0 #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button:active {
  box-shadow: inset -4px 4px 0 #222;
  font-size: 0.8rem;
}

/* Efeitos visuais do Pokémon */
.silhouette {
  filter: brightness(0);
}

.hint-visible {
  border: 2px solid #ffcc00;
  background-color: rgba(255, 204, 0, 0.2);
  padding: 5px;
  border-radius: 4px;
}

.pokemon__name.highlight {
  font-weight: bold;
  color: #ff3e3e;
}

.pokemon__data.highlight {
  background-color: rgba(255, 62, 62, 0.2);
  padding: 5px;
  border-radius: 4px;
}

.pokemon__image.revealed {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* Animações */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.button.shake {
  animation: shake 0.5s ease-in-out;
}

/* Lista de sugestões */
.suggestions-list {
  display: none !important;
}

/* Barra de vida */
.life-bar {
  position: absolute;
  top: 22%;
  right: 24%;
  width: 90px;
  height: 10px;
  border: 2px solid #000;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  z-index: 7;
}

.life-bar__segment {
  height: 100%;
  flex: 1;
  margin: 0 1px;
}

.life-bar__segment.green {
  background-color: #4caf50;
}

.life-bar__segment.yellow {
  background-color: #ffeb3b;
}

.life-bar__segment.red {
  background-color: #f44336;
}

.life-bar__segment.inactive {
  background-color: #ddd;
}

/* Hint text - Reposicionado para o centro e mais visível */
.hint-text {
  font-size: 0.9rem;
  color: #333;
  position: absolute;
  bottom: 35%; /* Movido para cima */
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 320px;
  z-index: 10; /* Aumentado para ficar acima de outros elementos */
  padding: 0;
  border-radius: 5px;
  text-align: center;
}

/* Container de dicas com melhor estilo */
.hint-container {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #333;
  border-radius: 10px;
  padding: 10px;
  box-shadow: -3px 4px 0 #888, -5px 7px 0 #333;
  margin-bottom: 15px;
}

/* Título da dica */
.hint-title {
  margin: 0 0 8px 0;
  color: #3a444d;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #ff3e3e;
  padding-bottom: 5px;
}

/* Container para badges de tipo */
.hint-type-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 5px;
}

/* Badges de tipo nas dicas */
.hint-type-badges .type-badge {
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  line-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.hint-type-badges .type-badge:hover {
  transform: scale(1.1);
}

/* Container para nome parcialmente revelado */
.hint-name-container {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3a444d;
  letter-spacing: 2px;
  text-transform: capitalize;
  background-color: rgba(255, 62, 62, 0.2);
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #ff3e3e;
}

/* Classe para mostrar as dicas */
.hint-active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Caixa de resposta do jogo */
.game-response-box {
  position: absolute;
  width: 65%;
  top: 91%;
  left: 46%;
  transform: translateX(-50%);
  padding: clamp(6px, 3%, 12px);
  font-size: clamp(8px, 3.5vw, 0.9rem);
  box-shadow: var(--box-shadow-standard);
  z-index: 5;
  background-color: rgba(255, 255, 255, 0.9);
  outline: none;
  border: 2px solid #333;
  border-radius: 5px;
  font-weight: 600;
  color: #3a444d;
}

.game-response-box.correct {
  background-color: #4caf50;
  color: white;
}

.game-response-box.incorrect {
  background-color: #f44336;
  color: white;
}

.game-response-box.game-over {
  background-color: #ff9800;
  color: white;
}

.game-response-box p {
  margin: 0;
}

/* Classe para esconder a imagem do Pokémon inicialmente */
.hidden {
  display: none;
}

/* Footer estilizado - Ajustado para ficar mais próximo */
footer {
  background: linear-gradient(to top, #3d7dca, #5090d6);
  color: white;
  padding: 10px 0;
  margin-top: 85px; /* Aumentado para dar mais espaço */
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  border-top: none;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-text {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-pokeball {
  display: inline-block;
  margin: 0 8px;
  animation: spin 3s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.developer-name {
  font-weight: 700;
  color: #ff3e3e;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.social-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #ff3e3e;
  transform: translateY(-3px);
}

/* Versão do jogo */
.game-version {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Estilo para o display de pontuação - Atualizado: alinhado com a life-bar, mas à esquerda */
.score-display {
  position: absolute;
  top: 17%;
  left: 13%;
  transform: translateX(0);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #3a444d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 0.85rem;
  width: 120px;
  z-index: 5;
}

.score-display p {
  margin: 3px 0;
  color: #3a444d;
}

#current-score, #high-score {
  font-weight: 700;
  color: #d61a1f;
}

/* Animação para pontos ganhos */
@keyframes scoreAdd {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.score-add {
  animation: scoreAdd 0.5s ease-out;
}

/* Cores para os tipos de Pokémon */
.type-badge.normal { background-color: #A8A878; }
.type-badge.fire { background-color: #F08030; }
.type-badge.water { background-color: #6890F0; }
.type-badge.electric { background-color: #F8D030; }
.type-badge.grass { background-color: #78C850; }
.type-badge.ice { background-color: #98D8D8; }
.type-badge.fighting { background-color: #C03028; }
.type-badge.poison { background-color: #A040A0; }
.type-badge.ground { background-color: #E0C068; }
.type-badge.flying { background-color: #A890F0; }
.type-badge.psychic { background-color: #F85888; }
.type-badge.bug { background-color: #A8B820; }
.type-badge.rock { background-color: #B8A038; }
.type-badge.ghost { background-color: #705898; }
.type-badge.dragon { background-color: #7038F8; }
.type-badge.dark { background-color: #705848; }
.type-badge.steel { background-color: #B8B8D0; }
.type-badge.fairy { background-color: #EE99AC; }

/* Destaque para tipo correto */
.type-badge.correct-type {
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
  border: 1px solid #2ecc71;
  animation: gentlePulse 1.5s infinite alternate;
}

@keyframes gentlePulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.1); opacity: 0.9; }
}

/* Estilo do scrollbar para a lista de sugestões */
.suggestions-list-fixed::-webkit-scrollbar {
  width: 5px;
  height: 0;
}

.suggestions-list-fixed::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

/* Estilos para os badges de tipo nas sugestões */
.suggestions-list-fixed .type-badge {
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Navegação de abas */
.tab-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3a444d;
  padding: 2px;
  position: relative;
  border-bottom: 2px solid #ff3e3e;
  z-index: 25;
}

.tab-button {
  flex: 1;
  background-color: transparent;
  border: none;
  color: #fff;
  padding: 6px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  border-radius: 5px 5px 0 0;
  opacity: 0.7;
}

.tab-button i {
  font-size: 0.9rem;
}

.tab-button.active {
  background-color: #ff3e3e;
  color: white;
  opacity: 1;
}

.tab-text {
  display: none;
}

/* Flechas de navegação entre abas */
.tab-arrows {
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 10;
}

.tab-arrow {
  background-color: #ff3e3e;
  border: 2px solid #3a444d;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.tab-arrow:hover {
  transform: scale(1.1);
}

.tab-arrow:active {
  transform: scale(0.95);
}

/* Estilos para a aba de dicas */
.hints-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.hints-container .button {
  width: 95%;
  margin: 0;
  padding: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: -2px 3px 0 #222, -3px 5px 0 #000;
}

.hints-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hints-container .hint-container {
  width: 95%;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin: 0;
}

/* Ajustar o título da dica para ficar parecido com os títulos de tipos */
.hint-title {
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  padding-bottom: 5px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid #ff3e3e;
  color: #3a444d;
}

/* Container para badges de tipo nas dicas */
.hint-type-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

/* Aba de resposta */
.response-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 10px;
}

/* Estilo para o botão de recomeçar */
.response-content .button {
  width: 90%;
  margin: 0 auto;
  background-color: #ff3e3e;
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #000;
  box-shadow: -2px 3px 0 #222, -3px 5px 0 #000;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.response-content .button:hover {
  transform: translateY(-2px);
  box-shadow: -2px 5px 0 #222, -3px 7px 0 #000;
}

.response-content .button:active {
  transform: translateY(3px);
  box-shadow: -1px 1px 0 #222;
}

/* Estilos para quando o jogo está correto/incorreto/game over */
.response-content.correct .response-text {
  background-color: #4caf50;
  color: white;
}

.response-content.incorrect .response-text {
  background-color: #f44336;
  color: white;
}

.response-content.game-over .response-text {
  background-color: #ff9800;
  color: white;
}

/* Estilos para as variações de cores da game response box na aba de tentativas */
.attempts-container .game-response-box.correct {
  background-color: rgba(76, 175, 80, 0.2);
  border: 2px solid #4caf50;
  color: #2e7d32;
}

.attempts-container .game-response-box.incorrect {
  background-color: rgba(244, 67, 54, 0.2);
  border: 2px solid #f44336;
  color: #c62828;
}

.attempts-container .game-response-box.game-over {
  background-color: rgba(255, 152, 0, 0.2);
  border: 2px solid #ff9800;
  color: #ef6c00;
}

/* Ajustar o padding e tamanho da aba de tentativas */
.tab-panel#attempts-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
}

/* Ajustar o tamanho da aba de conteúdo para evitar barras de rolagem */
.tab-content {
  height: 152px;
}

/* Estilos para a caixa de resposta na aba de tentativas */
.attempt-response {
  position: relative;
  width: 95%;
  margin: 0 auto 8px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 30;
  color: #3a444d;
  border: 1px solid #3a444d;
}

.attempt-response.correct {
  background-color: rgba(139, 199, 96, 0.2);
  border-color: #8bc760;
}

.attempt-response.incorrect {
  background-color: rgba(255, 62, 62, 0.2);
  border-color: #ff3e3e;
}

.attempt-response.game-over {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: #3a444d;
}

.attempt .type-badge {
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Tabelas para dispositivos maiores */
@media screen and (min-width: 768px) {
  .tab-text {
    display: block;
    white-space: nowrap;
    overflow: visible;
  }
  
  .tab-button {
    flex-direction: row;
    gap: 5px;
    padding: 8px;
    font-size: 0.9rem;
    min-width: 33%;
    white-space: nowrap;
  }
  
  .multifunctional-bubble {
    width: 75%;
    max-width: 360px;
  }
  
  .form-container {
    width: 75%;
    max-width: 360px;
  }
}

/* Media queries ajustadas para o novo layout */
@media (max-width: 768px) {
  .multifunctional-bubble {
    bottom: 14%;
    width: 71%;
    left: 46%;
  }
  
  .tab-content {
    height: 155px;
  }
  
  .attempts-container {
    max-height: 140px;
    margin-top: 5px;
  }
  
  .attempts-bubble {
    bottom: 14%;
  }
  
  .form-container {
    bottom: calc(14% - 36px); /* Ajustado para encostar no balão */
    width: 71%;
    left: 46%;
  }
  
  .pokemon__image {
    bottom: 57%;
    left: 50%;
    transform: translate(-63%, 20%);
  }
  
  .pokemon__data {
    top: 54%;
    right: 27%;
    width: 46%;
  }
  
  .suggestions-list-fixed {
    top: 100%;
  }
  
  .buttons {
    bottom: 7%;
  }
}

@media (max-width: 480px) {
  .multifunctional-bubble {
    bottom: 14%;
    width: 71%;
    left: 46%;
  }
  
  .tab-content {
    height: 155px;
  }
  
  .attempts-container {
    max-height: 140px;
    margin-top: 5px;
  }
  
  .attempts-bubble {
    bottom: 14%;
  }
  
  .form-container {
    bottom: calc(14% - 36px); /* Ajustado para encostar no balão */
    width: 71%;
    left: 46%;
  }
  
  .pokemon__image {
    bottom: 57%;
    left: 50%;
  }
  
  .pokemon__data {
    top: 54%;
    right: 27%;
    width: 46%;
  }
  
  .suggestions-list-fixed {
    top: 100%;
  }
  
  .buttons {
    bottom: 5%;
  }
  
  .attempt-item {
    padding: 4px 6px;
  }
  
  .hint {
    width: 14px;
    height: 14px;
    font-size: 0.55rem;
  }
  
  .attempt-hint {
    gap: 4px;
  }
}

.suggestions-list-fixed {
  position: absolute;
  z-index: 9999;
  background-color: white;
  border: 2px solid #3a444d;
  border-radius: 5px;
  max-height: 160px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  top: 100%;
  margin-top: 8px;
  box-shadow: -10px 10px 15px rgba(0, 0, 0, 0.3);
}

.suggestions-list-fixed li {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(58, 68, 77, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
  font-weight: normal;
  color: #3a444d;
  font-size: 0.9rem;
}

.suggestions-list-fixed li:hover {
  background-color: #f5f5f5;
}

.suggestions-list-fixed li.selected {
  background-color: #e9e9e9;
  color: #3a444d;
  font-weight: 600;
}

/* Aba de tentativas */
.attempts-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 100%;
  position: relative;
  overflow-y: auto;
}

.attempts-list-container {
  width: 100%;
  height: calc(100% - 40px);
  overflow-y: auto;
  padding-right: 4px;
}

.attempts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.attempt-item {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  border: 1px solid #3a444d;
  padding: 3px 6px;
  position: relative;
  transition: all 0.2s ease;
  gap: 4px;
}

.attempt-number {
  font-weight: bold;
  font-size: 0.7rem;
  color: #fff;
  background-color: #3a444d;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attempt-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #333;
  flex-grow: 1;
}

.attempt-hint {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.hint {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.hint.generation {
  background-color: #6c79db;
}

.hint.type {
  background-color: #ff5350;
}

.hint.height {
  background-color: #4acfb0;
}

.hint.weight {
  background-color: #ff9a55;
}

.hint.correct {
  background-color: #8bc760;
}

.attempts-clear {
  font-size: 0.7rem;
  padding: 4px 8px;
  margin-top: 2px;
}

/* Aba de estatísticas */
.stats-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow-y: auto;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  border: 1px solid #3a444d;
}

.stats-label {
  font-weight: 600;
  color: #3a444d;
}

.stats-value {
  font-weight: 700;
  color: #ff3e3e;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-width: 30px;
  text-align: center;
}

/* Ajustes para a bolha de tentativas */
.attempts-bubble {
  position: absolute;
  bottom: 17%;
  left: 80%;
  transform: translateX(-50%);
  width: 34%;
  height: 130px;
  background-color: white;
  border: 3px solid #3a444d;
  border-radius: 15px;
  box-shadow: -10px 10px 15px rgba(0, 0, 0, 0.3);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 25px;
}

.attempts-bubble-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #3a444d;
  color: white;
  text-align: center;
  padding: 3px 0;
  font-weight: 600;
  font-size: 0.7rem;
  z-index: 6;
  border-bottom: 2px solid #ff3e3e;
}

.attempts-area {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: white;
  box-sizing: border-box;
}

/* Adicionar media query para desktop */
@media screen and (min-width: 1024px) {
  .form-container {
    width: 75%;
    max-width: 380px;
    left: 46%;
    bottom: calc(14% - 40px); /* Padronizado com outras telas */
  }
  
  .multifunctional-bubble {
    width: 75%;
    max-width: 380px;
    left: 46%;
    bottom: 14%;
  }
  
  .pokemon__image {
    bottom: 57%;
    left: 50%;
    transform: translate(-63%, 15%);
    max-height: 35%;
    max-width: 60%;
  }
}

.attempt-count {
  position: relative;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
  background-color: #ff3e3e;
  color: white;
  border-radius: 15px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  align-self: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.attempt .type-badge {
  width: 24px;
  height: 24px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

