/* GLOBAL PIXEL FONT */
@font-face {
  font-family: 'Pixely';
  src: local('Press Start 2P'), local('VT323'), local('Courier New'), monospace;
}

* {
  font-family: 'Pixely', monospace !important;
  letter-spacing: 0.5px;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: none;
}


body {
  background: #111;
  color: #eee;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

h1 {
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 10px;
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid #555;
  background: #000;
  margin-bottom: 10px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

button,
select,
input[type="checkbox"] {
  background: #222;
  color: #eee;
  border: 1px solid #555;
  padding: 6px 10px;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover {
  background: #333;
}

button.active {
  border-color: #9cf;
  background: #1c2735;
}

.panel {
  width: 420px;
  max-width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  background: #1a1a1a;
  margin-top: 10px;
}

label {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  align-items: center;
}

textarea {
  width: 100%;
  height: 120px;
  margin-top: 8px;
  background: #000;
  color: #ccc;
  border: 1px solid #444;
  font-size: 11px;
  padding: 6px;
}

.small {
  font-size: 10px;
  opacity: 0.7;
}

/* Paint Editor Overlay */
#paintOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#paintContainer {
  background: #111;
  border: 2px solid #444;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#paintCanvas {
  image-rendering: pixelated;
  border: 1px solid #555;
  background: #222;
  margin-bottom: 10px;
}

.tools {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

#paletteBox {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
