/* LEVEL EDITOR */
#editor-screen {
  position: fixed; inset: 0; background: #1e1e1e; z-index: 5000;
  overflow: hidden;
}
#editor-canvas {
  position: absolute; top: 60px; left: 0; right: 0; bottom: 100px;
  width: 100%; image-rendering: pixelated;
  background: #f7f7f7;
  cursor: crosshair;
}

#editor-toolbar-top {
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  background: #2a2a2a; display: flex; align-items: center;
  padding: 0 14px; gap: 12px; z-index: 10;
}
#editor-toolbar-top input {
  background: #1e1e1e; border: 1px solid #444; color: #fff;
  padding: 8px 12px; border-radius: 4px; font-family: inherit;
  font-size: .85rem; outline: none; min-width: 200px;
}
#editor-level-id { color: #888; font-size: .75rem; flex: 1; }

#editor-side-buttons {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 10;
}
.ed-side-btn {
  background: #535353; color: #fff; border: 2px solid #333;
  padding: 14px 12px; font-family: inherit; font-weight: bold;
  cursor: pointer; font-size: .75rem; letter-spacing: 1px;
}
.ed-side-btn:hover { background: #333; }

#editor-toolbar-bottom {
  position: absolute; left: 0; right: 0; bottom: 32px; height: 68px;
  background: #2a2a2a; display: flex; align-items: center;
  padding: 0 14px; z-index: 10; overflow-x: auto;
}
.ed-block-row { display: flex; gap: 6px; }
.ed-block {
  width: 50px; height: 50px; background: #444; border: 2px solid #555;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .65rem; font-weight: bold; text-align: center;
  padding: 4px; flex-shrink: 0;
}
.ed-block.active { border-color: #27ae60; background: #1e3a1e; }
.ed-block:hover { border-color: #888; }

#editor-slider {
  position: absolute; bottom: 8px; left: 14px; right: 14px;
  z-index: 10; height: 18px;
}

/* LEVEL PLAY */
#level-play-screen {
  position: fixed; inset: 0; background: #f7f7f7; z-index: 4000;
}
#level-play-canvas {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  image-rendering: pixelated;
}
#level-play-hud {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; gap: 14px; z-index: 50;
  font-family: 'Courier New', monospace; font-weight: bold;
}
#lp-percent { font-size: 1.5rem; color: #535353; }
#lp-best { font-size: .85rem; color: #888; align-self: center; }
#lp-quit {
  background: #e74c3c; color: #fff; border: none; padding: 8px 16px;
  font-family: inherit; font-weight: bold; cursor: pointer; border-radius: 4px;
}
