body {
  font-family: 'VT323', monospace;
  background-color: #1a1a1a;
  color: #f0f0f0;
}
.font-press-start {
  font-family: 'Press Start 2P', cursive;
}
.nes-container {
  border: 4px solid #f0f0f0;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.nes-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  margin: 10px;
  color: #1a1a1a;
  background-color: #f0f0f0;
  border: 4px solid #1a1a1a;
  box-shadow: inset -4px -4px 0px 0px #a0a0a0;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}
.nes-button:hover:not(:disabled) {
  background-color: #e0e0e0;
  box-shadow: inset -6px -6px 0px 0px #a0a0a0;
}
.nes-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset -2px -2px 0px 0px #a0a0a0;
}
.nes-button.is-primary { background-color: #209cee; box-shadow: inset -4px -4px 0px 0px #146a9c; color: white; }
.nes-button.is-primary:hover:not(:disabled) { background-color: #108de0; box-shadow: inset -6px -6px 0px 0px #146a9c; }
.nes-button.is-success { background-color: #92cc41; box-shadow: inset -4px -4px 0px 0px #5a8e22; color: white; }
.nes-button.is-success:hover:not(:disabled) { background-color: #82b931; box-shadow: inset -6px -6px 0px 0px #5a8e22; }
.nes-button.is-warning { background-color: #f7d51d; box-shadow: inset -4px -4px 0px 0px #b4960d; }
.nes-button.is-disabled { background-color: #a0a0a0; box-shadow: inset -4px -4px 0px 0px #606060; color: #606060; cursor: not-allowed; }
.code-editor { background-color: #282c34; color: #abb2bf; border: 4px solid #f0f0f0; height: 250px; font-size: 18px; line-height: 1.5; white-space: pre; overflow: auto; resize: vertical; }
.console { background-color: #000; color: #00ff00; border: 4px solid #f0f0f0; height: 150px; padding: 10px; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; }
.hidden { display: none; }

/* Estilos do Mapa */
.map-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  aspect-ratio: 2 / 1;
  background-color: #1e3a8a; /* Mar azul escuro */
  border: 4px solid #f0f0f0;
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 40L40 0H20L0 20M40 40V20L20 40" fill="%232563eb" fill-opacity="0.3" fill-rule="evenodd"/></svg>');
}
.map-node {
  position: absolute;
  width: 110px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.map-node:hover {
  transform: scale(1.1);
}
.map-node-icon {
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.map-node-label {
  margin-top: 5px;
  color: white;
  font-size: 14px;
  text-shadow: 2px 2px #000;
}
.is-locked {
  filter: grayscale(100%) brightness(0.5);
  cursor: not-allowed;
}
.is-completed .map-node-icon::after {
  content: '⭐';
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 24px;
}
.path {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  z-index: -1;
}
.explanation-box code, .hint-box code {
  background-color: #111;
  color: #fde047;
  padding: 2px 6px;
  border-radius: 4px;
}
.hint-box {
  background-color: #2b2b2b;
  border: 2px dashed #f7d51d;
  border-radius: 8px;
  color: #f7d51d;
}
