* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #1a1a2e;
}

#app {
  width: 100%; height: 100%;
  position: relative;
}

canvas {
  display: block;
  width: 100%; height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#search-bar {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0;
}

#search-bar input {
  font-family: monospace;
  font-size: 16px;
  padding: 8px 14px;
  border: 3px solid #222;
  border-right: none;
  background: #1a1a2e;
  color: #e0e0e0;
  outline: none;
  width: 220px;
  text-align: center;
  letter-spacing: 1px;
}

#search-bar input::placeholder { color: #555; }
#search-bar input:focus { border-color: #FFD700; }

#search-bar button {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 16px;
  border: 3px solid #222;
  background: #FFD700;
  color: #222;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.1s;
}

#search-bar button:hover { background: #ffe44d; }
#search-bar button:active {
  transform: translate(2px, 2px);
}

#error-msg {
  position: absolute;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 14px;
  color: #FF6B6B;
  z-index: 10;
  text-shadow: 1px 1px 0 #000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

#error-msg.show { opacity: 1; }

@media (max-width: 480px) {
  #search-bar input { width: 160px; font-size: 14px; padding: 6px 10px; }
  #search-bar button { font-size: 14px; padding: 6px 12px; }
}
