/* Reset básico */
body {
  margin: 0;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

/* Barra superior estilo RPG */
#barra-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #eae6d5;
  border-bottom: 4px solid #000;
  box-shadow: 0 4px 0 #000;
  padding: 10px 20px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.logo-container {
  flex-shrink: 0;
  margin-right: 35px;
}

.logo {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.filtros-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: flex-start;
  overflow: hidden;
}

.filtro {
  display: flex;
  flex-direction: column;
  min-width: 80px;
  flex-shrink: 0;
}

.filtro:last-of-type {
  margin-right: 15px;
}

#filtroPorte {
  min-width: 120px; /* Largura mínima para manter o espaço */
}

.filtro label {
  margin-bottom: 4px;
  font-weight: bold;
}

.filtro select {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  padding: 4px 8px;
  border: 3px solid #000;
  background-color: #fff;
  box-shadow: 2px 2px 0 0 #000;
  cursor: pointer;
}

/* Estilo para as opções do select */
.filtro select option {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  padding: 4px 8px;
  border: 3px solid #000;
  background-color: #fff;
  box-shadow: 2px 2px 0 0 #000;
}

/* Área do jogo */
#game {
  width: 100vw;
  height: 100vh;
  background-image: url("../imagens/grama.png");
  background-size: 75px 75px;
  position: relative;
  padding-top: 60px;
  /* Sistema adaptativo para grama */
  background-size: calc(min(75px, 8vw)) calc(min(75px, 8vw));
}

/* Sistema adaptativo para diferentes tamanhos de tela */
@media (max-width: 1200px) {
  #game {
    background-size: calc(min(65px, 7vw)) calc(min(65px, 7vw));
  }
}

@media (max-width: 900px) {
  #game {
    background-size: calc(min(55px, 6vw)) calc(min(55px, 6vw));
  }
}

@media (max-width: 768px) {
  #game {
    background-size: calc(min(45px, 5.5vw)) calc(min(45px, 5.5vw));
  }
}

@media (max-width: 480px) {
  #game {
    background-size: calc(min(35px, 5vw)) calc(min(35px, 5vw));
  }
}

@media (max-width: 360px) {
  #game {
    background-size: calc(min(30px, 4.5vw)) calc(min(30px, 4.5vw));
  }
}

#objetos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#personagem {
  position: absolute;
  width: 62px;
  height: 62px;
  top: 200px;
  left: 200px;
  z-index: 3;
}

.objeto {
  position: absolute;
  width: 50px !important;
  height: 50px !important;
  background-size: 100% 100% !important;
  background-position: top left !important;
  background-repeat: no-repeat !important;
  pointer-events: none;
  z-index: 2;
}

/* Flores - sempre atrás dos outros objetos */
.flor {
  width: 50px !important;
  height: 50px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important; /* Não interfere com cliques */
  z-index: 0 !important; /* Sempre atrás */
}

/* Placa direita - objeto decorativo */
.placa-direita {
  width: 80px !important;
  height: 80px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  z-index: 1 !important; /* Abaixo dos animais */
}

/* Placa esquerda - objeto decorativo */
.placa-esquerda {
  width: 80px !important;
  height: 80px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  z-index: 1 !important; /* Abaixo dos animais */
}

/* NPC - personagem não jogável */
.npc {
  width: 62px;
  height: 62px;
  background-size: 100% 100% !important;
  background-position: top left !important;
  background-repeat: no-repeat !important;
  position: absolute !important;
  cursor: pointer !important;
  z-index: 3 !important; /* Acima dos objetos, abaixo dos animais */
  transition: none !important; /* Sem transição para movimento suave */
  opacity: 1 !important; /* Garantir que nunca fique transparente */
  visibility: visible !important; /* Garantir que sempre esteja visível */
  display: block !important; /* Garantir que sempre seja exibido */
}

/* Removido efeito hover do NPC */

/* Modal estilo RPG (boas-vindas) */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-conteudo {
  background-color: #eae6d5;
  color: #222;
  border: 4px solid #000;
  box-shadow: 0 0 0 4px #000, 4px 4px 0 0 #000;
  padding: 20px 30px;
  max-width: 80%;
  max-height: 85vh;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  position: relative;
  font-weight: 500;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-left: 24px;
  margin-right: 24px;
}

/* Botão principal do modal */
#fecharModal {
  margin-top: 20px;
  background-color: #ffffff;
  border: 3px solid #000;
  padding: 6px 18px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 #000;
  transition: background-color 0.2s;
}

#fecharModal:hover {
  background-color: #d5d5d5;
}

/* Botão "X" do modal */
#fecharX,
#fecharCachorroX,
#fecharCachorroPretoX,
#fecharGatoMarromX,
#fecharAnimalAprovadoX {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  font-weight: bold;
  background-color: #ffffff;
  border: 3px solid #000;
  box-shadow: 2px 2px 0 0 #000;
  cursor: pointer;
  line-height: 20px;
  padding: 0;
}

#fecharX:hover,
#fecharCachorroX:hover,
#fecharCachorroPretoX:hover,
#fecharGatoMarromX:hover,
#fecharAnimalAprovadoX:hover {
  background-color: #d5d5d5;
}

/* Modal do Cachorro - estilo RPG */
.modal-rpg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Layout específico para o modal do cachorro */
.cachorro-layout {
  max-width: 1200px;
  width: 95%;
  text-align: left;
  overflow: hidden;
}

/* Forçar layout horizontal para todos os tamanhos de tela exceto mobile */
.cachorro-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px;
  padding: 0 20px;
  text-align: left;
  align-items: flex-start;
  justify-content: space-between;
}

/* Breakpoint específico para notebooks */
@media (min-width: 769px) {
  .cachorro-container {
    flex-direction: row !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 30px !important;
  }
  
  .cachorro-imagem {
    flex-shrink: 0 !important;
    min-width: 350px !important;
    width: 350px !important;
    max-width: 350px !important;
  }
  
  .cachorro-info {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  .slider-container img {
    width: 350px !important;
    height: 350px !important;
  }
}



.cachorro-imagem {
  min-width: 350px;
  width: 350px;
  max-width: 350px;
  flex-shrink: 0;
}

.cachorro-info {
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-width: 0;
}

.cachorro-info p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cachorro-info strong {
  font-weight: 700; /* Peso médio-alto para títulos */
  font-size: 19px;
}

/* Estilo específico para o telefone (mais destacado) */
.cachorro-info .telefone {
  font-weight: 800; /* Peso alto para destaque */
  font-size: 24px;
  color: darkred;
}

.modal-flex {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  position: relative;
  justify-content: flex-start;
  overflow: visible;
}
.modal-flex .btn-fechar-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: #fff;
  border: 3px solid #000;
  width: 36px;
  height: 36px;
  font-size: 26px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  cursor: pointer;
}
.modal-body {
  flex: 1 1 auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.modal-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 8px;
}
.btn-entendi {
  min-width: 140px;
  font-size: 18px;
  border-radius: 8px;
  font-family: inherit;
  margin: 0 auto;
  display: block;
}

.slider-container {
  position: relative;
  margin-bottom: 20px;
}

.slider-container img {
  width: 350px;
  height: 350px;
  border: 3px solid #000;
  background-color: #fff;
  box-shadow: 3px 3px 0 0 #000;
  object-fit: contain;
  object-position: center;
}

.bullets {
  margin-top: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.bullet {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: #fff;
  border: 2px solid #000;
  margin: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.bullet.ativo {
  background-color: #000;
}

.bullet:hover {
  background-color: #e0e0e0;
}

.cachorro {
  cursor: pointer;
}

/* Tamanho específico para cachorros */
.cachorro,
.cachorro-preto,
.gato-marrom {
  width: 55px !important;
  height: 55px !important;
  background-size: cover !important;
  background-position: center !important;
  cursor: pointer !important;
}

/* Responsividade para notebooks e tablets */
@media (max-width: 1024px) {
  /* Layout do modal do cachorro em notebooks/tablets */
  .cachorro-container {
    flex-direction: row !important;
    gap: 20px;
    text-align: left;
    padding: 0 15px;
    display: flex !important;
  }
  
  .cachorro-imagem {
    min-width: 280px;
    width: 280px;
    max-width: 280px;
    flex-shrink: 0;
  }
  
  .slider-container img {
    width: 280px;
    height: 280px;
  }
  
  .cachorro-info p {
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  /* Barra superior responsiva */
  #barra-topo {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 15px;
    gap: 8px;
  }
  
  .logo {
    height: 30px;
    max-width: 150px;
  }
  
  .filtros-container {
    display: none !important;
  }
  
  #filtroPorte {
    min-width: auto; /* Remove largura mínima em mobile */
  }
  
  .filtro {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .filtro:last-child {
    margin-bottom: 0;
  }
  
  .filtro label {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .filtro select {
    font-size: 14px;
    padding: 6px 8px;
  }
  
  /* Área do jogo responsiva */
  #game {
    padding-top: 120px; /* Aumenta padding para acomodar barra superior maior */
  }
  
  #personagem, .npc {
    width: 48px;
    height: 48px;
  }
  
  .objeto {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Cachorros menores em mobile */
  .cachorro,
  .cachorro-preto,
  .gato-marrom {
    width: 45px !important;
    height: 45px !important;
  }
  
  /* Flores menores em mobile */
  .flor {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Modal responsivo */
  .modal-conteudo {
    padding: 15px 20px;
    font-size: 18px;
    max-width: 95%;
    margin: 10px;
  }
  
  /* Layout do modal do cachorro em mobile */
  .cachorro-container {
    flex-direction: column !important;
    gap: 20px;
    text-align: center;
    padding: 0 15px;
  }
  
  .cachorro-imagem {
    align-self: center;
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }
  
  .cachorro-layout {
    text-align: center;
    max-width: 98%;
  }
  
  .slider-container img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    object-position: center;
  }
  
  .cachorro-info p {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400; /* Mantém peso base em mobile */
    text-align: left;
  }
  
  .cachorro-info strong {
    font-weight: 700; /* Mantém peso dos títulos em mobile */
  }
  
  .cachorro-info .telefone {
    font-weight: 800; /* Mantém destaque do telefone em mobile */
    font-size: 22px; /* Ligeiramente menor em mobile */
  }
  
  /* Botões responsivos */
  #fecharX,
  #fecharCachorroX,
  #fecharCachorroPretoX,
  #fecharGatoMarromX,
  #fecharAnimalAprovadoX {
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 24px;
  }
  
  #fecharModal {
    padding: 8px 20px;
    font-size: 16px;
  }
  
  /* Bullets menores */
  .bullet {
    width: 12px;
    height: 12px;
  }
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
  #modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 0;
  }
  .modal-conteudo {
    max-width: 96vw;
    width: 96vw;
    margin: 6vw 2vw 0 2vw;
    padding: 14px 4vw;
    font-size: 16px;
    border-radius: 14px;
    box-sizing: border-box;
  }
  #barra-topo {
    padding: 6px 10px;
  }
  
  .logo {
    height: 25px;
    max-width: 120px;
  }
  
  .filtros-container {
    gap: 6px;
  }
  
  .filtro label {
    font-size: 12px;
  }
  
  .filtro select {
    font-size: 12px;
    padding: 4px 6px;
  }
  
  #game {
    padding-top: 140px;
  }
  
  #personagem, .npc {
    width: 40px;
    height: 40px;
  }
  
  .objeto {
    width: 45px !important;
    height: 45px !important;
  }
  
  .cachorro,
  .cachorro-preto,
  .gato-marrom {
    width: 32px !important;
    height: 32px !important;
  }
  
  .flor {
    width: 60px !important;
    height: 60px !important;
  }
  
  .modal-conteudo {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  .slider-container img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    object-position: center;
  }
  
  .cachorro-info p {
    font-size: 15px;
    font-weight: 400; /* Mantém peso base em telas pequenas */
    text-align: left;
  }
  
  .cachorro-info strong {
    font-weight: 700; /* Mantém peso dos títulos em telas pequenas */
  }
  
  .cachorro-info .telefone {
    font-weight: 800; /* Mantém destaque do telefone em telas pequenas */
    font-size: 20px; /* Ainda menor em telas muito pequenas */
  }
  
  .bullet {
    width: 10px;
    height: 10px;
  }
}
@media (max-width: 360px) {
  .modal-conteudo {
    max-width: 99vw;
    width: 99vw;
    margin: 2vw 0 0 0;
    padding: 8px 2vw;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* Prevenir zoom em inputs em iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input {
    font-size: 16px;
  }
}

/* Orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #barra-topo {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .logo {
    height: 25px;
    max-width: 120px;
  }
  
  .filtros-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  #filtroPorte {
    min-width: auto; /* Remove largura mínima em landscape mobile */
  }
  
  .filtro {
    margin-right: 20px;
    margin-bottom: 0;
  }
  
  #game {
    padding-top: 80px;
  }
}

/* Caixinha de Instruções */
#instrucoes-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f5f5dc;
  border: 3px solid #8b4513;
  border-radius: 15px;
  padding: 20px;
  color: #2c3e50;
  font-family: 'Georgia', serif;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
  z-index: 1000;
  max-width: 320px;
  display: none; /* Volta a ficar oculta por padrão */
  backdrop-filter: blur(5px);
  border-left: 8px solid #8b4513;
}

.instrucoes-conteudo {
  padding: 0;
  color: #2c3e50;
  font-family: 'Georgia', serif;
}

.instrucoes-conteudo h3 {
  color: #8b4513;
  margin: 0 0 15px 0;
  font-size: 18px;
  text-align: center;
  border-bottom: 2px solid #d2691e;
  padding-bottom: 8px;
}

.controles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.controle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: rgba(139, 69, 19, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(139, 69, 19, 0.2);
}

.tecla {
  background: #8b4513;
  color: #f5f5dc;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 30px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid #8b4513;
}

.controle-item span {
  font-size: 12px;
  color: #2c3e50;
  font-weight: 500;
}

.dica {
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: #8b4513;
  font-weight: 500;
  padding: 8px;
  background: rgba(210, 105, 30, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(210, 105, 30, 0.3);
}

#instrucoes-box .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #8b4513;
  color: #f5f5dc;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

#instrucoes-box .close-btn:hover {
  background: #d2691e;
  transform: scale(1.1);
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  #instrucoes-box {
    bottom: 10px;
    right: 10px;
    min-width: 250px;
    max-width: 280px;
  }
  
  .instrucoes-conteudo {
    padding: 0;
  }
  
  .controles-grid {
    gap: 8px;
  }
  
  .tecla {
    font-size: 12px;
    padding: 4px 8px;
    min-width: 25px;
  }
  
  .controle-item span {
    font-size: 11px;
  }
}

/* Estilo do botão RPG */
.rpg-btn {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Georgia', serif;
    font-size: 0.8em;
    border: 3px solid #5d2e0d;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    transition: all 0.3s;
    margin: 0 6px;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.rpg-btn + .rpg-btn {
    margin-left: 10px;
}

.rpg-btn:hover {
    background: linear-gradient(135deg, #a0522d, #cd853f);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* Estilos para o menu de usuário */
.user-menu-container {
    position: relative;
    margin-left: 15px;
    flex-shrink: 0;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0px 16px;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #5d2e0d;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
    height: 36px;
    box-sizing: border-box;
}

.user-icon:hover {
    background: linear-gradient(135deg, #a0522d, #cd853f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.user-avatar {
    font-size: 18px;
}

.user-name {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    color: white;
}

.user-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #f5f5dc, #fff8e1);
    border: 3px solid #8b4513;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    min-width: 200px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.user-email {
    color: #8b4513;
    font-size: 12px;
    font-weight: bold;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
    margin: 5px 0;
}

.dropdown-item {
    display: block;
    padding: 12px 15px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    transform: translateX(5px);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* Responsividade para o menu de usuário */
@media (max-width: 768px) {
    .user-menu-container {
        margin-left: 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-icon {
        padding: 8px;
    }
    
    .user-dropdown {
        right: -50px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        right: -100px;
        min-width: 160px;
    }
}

.menu-acoes {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .menu-acoes {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .menu-acoes {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

.mobile-header-actions {
  display: none;
}
@media (max-width: 1400px) {
  .mobile-header-actions {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 1200;
  }
  .menu-acoes {
    display: none !important;
  }
}
@media (min-width: 1401px) {
  .mobile-header-actions {
    display: none !important;
  }
  .menu-acoes {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    justify-content: flex-end;
  }
}

#npc-mensagem {
  z-index: 99999 !important;
  position: fixed !important;
  pointer-events: auto !important;
}

.filtros-mobile-btn {
  display: none;
}
@media (max-width: 768px) {
  .filtros-mobile-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    margin-right: 8px;
  }
  .filtros-container {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .filtros-mobile-btn {
    display: none !important;
  }
  .filtros-container {
    display: flex !important;
  }
}

.modal-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-mobile-overlay.show {
  display: flex !important;
}
.modal-mobile-content {
  background: #eae6d5;
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: 0 4px 24px #0008;
  padding: 24px 16px 16px 16px;
  max-width: 95vw;
  width: 350px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.modal-mobile-content .btn-fechar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  border-radius: 6px;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
#btnSairMobile.rpg-btn {
  background: #fff3f3;
  color: #a00;
  border: 2px solid #a00;
}
#btnSairMobile.rpg-btn:hover {
  background: #ffeaea;
  color: #d00;
  border-color: #d00;
}
.modal-mobile-content > .filtros-container-mobile,
.modal-mobile-content > .menu-acoes-mobile {
  margin-top: 48px;
}
.filtros-container-mobile .filtro {
  margin-bottom: 20px;
}
.filtros-container-mobile .filtro:last-child {
  margin-bottom: 0;
}
.filtros-container-mobile {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.menu-acoes-mobile .rpg-btn, .menu-acoes-mobile .dropdown-item {
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
  text-align: center;
}
.menu-acoes-mobile .user-menu-container {
  margin-bottom: 16px;
}

@media (max-width: 1495px) {
  #barra-topo {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: unset;
    height: auto;
    gap: 0;
    padding: 8px 10px 24px 10px;
  }
  .mobile-header-actions {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .menu-mobile-btn, .filtros-mobile-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    margin-right: 8px;
    min-width: 44px;
    height: 40px;
    transition: background 0.2s, color 0.2s;
  }
  .menu-mobile-btn:hover, .filtros-mobile-btn:hover {
    background: #f5f5f5;
  }
  .menu-acoes, .filtros-container {
    display: none !important;
  }
}
@media (min-width: 1496px) {
  .menu-mobile-btn, .filtros-mobile-btn {
    display: none !important;
  }
  .mobile-header-actions {
    display: none !important;
  }
  .menu-acoes {
    display: flex !important;
  }
  .filtros-container {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .filtros-mobile-btn, .menu-mobile-btn, .user-menu-container, .user-icon, .user-name, .user-dropdown {
    min-width: unset !important;
    width: auto !important;
    box-sizing: border-box;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .filtros-mobile-btn, .menu-mobile-btn, .user-menu-container, .user-icon, .user-name, .user-dropdown {
    min-width: unset !important;
    width: auto !important;
    box-sizing: border-box;
    max-width: 100%;
  }
  #instrucoes-box {
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 350px;
    width: 80vw;
    min-width: 0;
    box-sizing: border-box;
    z-index: 2000;
  }
  .instrucoes-conteudo {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .controles-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #instrucoes-box .close-btn {
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .menu-acoes, .filtros-container {
    gap: 6px;
  }
  .filtros-mobile-btn, .menu-mobile-btn {
    font-size: 13px;
    padding: 4px 8px;
    min-width: 28px;
    min-height: 28px;
    height: 32px;
    width: 32px;
  }
  .user-menu-container {
    min-width: 28px;
    min-height: 28px;
  }
  .user-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
  }
  .user-name {
    font-size: 13px;
    padding: 0 4px;
  }
  .user-dropdown {
    font-size: 13px;
    min-width: 90px;
  }
}
@media (max-width: 480px) {
  .menu-acoes, .filtros-container {
    gap: 3px;
  }
  .filtros-mobile-btn, .menu-mobile-btn {
    font-size: 11px;
    padding: 2px 4px;
    min-width: 22px;
    min-height: 22px;
    height: 24px;
    width: 24px;
  }
  .user-menu-container {
    min-width: 22px;
    min-height: 22px;
  }
  .user-icon {
    font-size: 14px;
    width: 22px;
    height: 22px;
  }
  .user-name {
    font-size: 11px;
    padding: 0 2px;
  }
  .user-dropdown {
    font-size: 11px;
    min-width: 70px;
  }
}

@media (max-width: 768px) {
  #personagem, .npc, .objeto, .cachorro, .cachorro-preto, .gato-marrom, .flor, .placa-direita, .placa-esquerda {
    width: 48px !important;
    height: 48px !important;
  }
}

@media (max-width: 480px) {
  #personagem, .npc, .objeto, .cachorro, .cachorro-preto, .gato-marrom, .flor, .placa-direita, .placa-esquerda {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 360px) {
  #instrucoes-box {
    padding: 10px 2vw 10px 2vw;
    max-width: 98vw;
    width: 98vw;
    border-radius: 12px;
  }
  .instrucoes-conteudo h3 {
    font-size: 15px;
    padding-bottom: 5px;
  }
  .controles-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .controle-item {
    font-size: 11px;
    padding: 3px;
  }
  .tecla {
    font-size: 11px;
    min-width: 22px;
    padding: 4px 7px;
  }
  .dica {
    font-size: 13px;
    padding: 5px;
  }
  #instrucoes-box .close-btn {
    width: 22px;
    height: 22px;
    font-size: 15px;
    top: 5px;
    right: 6px;
  }
}

@media (max-width: 768px) {
  .modal-conteudo.cachorro-layout {
    max-width: 98vw;
    width: 98vw;
    min-width: unset;
    margin: 4vw;
    padding: 24px 5vw;
    border-radius: 12px;
    font-size: 15px;
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
  }
  .cachorro-container {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100%;
    min-width: 0;
  }
  .cachorro-imagem {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .slider-container img {
    width: 90vw !important;
    max-width: 320px !important;
    height: auto !important;
    max-height: 40vh !important;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
  }
  .cachorro-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 14px;
    overflow-wrap: break-word;
  }
  .cachorro-info p {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
  }
  .cachorro-info strong {
    font-size: 15px;
  }
  .cachorro-info .telefone {
    font-size: 17px;
  }
  .modal-conteudo .btn-fechar-modal,
  .modal-conteudo .btn-fechar-modal[aria-label] {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .modal-conteudo.cachorro-layout {
    max-width: 99vw;
    width: 99vw;
    margin: 2vw;
    padding: 18px 4vw;
    font-size: 13px;
    border-radius: 8px;
    max-height: 95vh;
  }
  .slider-container img {
    width: 92vw !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: 32vh !important;
  }
  .modal-conteudo .btn-fechar-modal,
  .modal-conteudo .btn-fechar-modal[aria-label] {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .modal-conteudo.cachorro-layout {
    max-width: 100vw;
    width: 100vw;
    margin: 1vw;
    padding: 10px 2vw;
    font-size: 11px;
    border-radius: 5px;
    max-height: 98vh;
  }
  .slider-container img {
    width: 98vw !important;
    max-width: 120px !important;
    max-height: 18vh !important;
  }
  .modal-conteudo .btn-fechar-modal,
  .modal-conteudo .btn-fechar-modal[aria-label] {
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}

.modal-conteudo.cachorro-layout,
.modal-conteudo,
#instrucoes-box {
  margin-left: 10%;
  margin-right: 10%;
}

@media (max-width: 768px) {
  .modal-conteudo.cachorro-layout,
  .modal-conteudo,
  #instrucoes-box {
    margin-left: 10%;
    margin-right: 10%;
  }
  #modal {
    align-items: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 480px) {
  .modal-conteudo.cachorro-layout,
  .modal-conteudo,
  #instrucoes-box {
    margin-left: 10%;
    margin-right: 10%;
  }
  #modal {
    align-items: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 360px) {
  .modal-conteudo.cachorro-layout,
  .modal-conteudo,
  #instrucoes-box {
    margin-left: 10%;
    margin-right: 10%;
  }
  #modal {
    align-items: center !important;
    justify-content: center !important;
  }
}